Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

110 KB
Raw Blame
/* Statecraft UI language, restyled to the promo's interface (promo/final/03-gameplay-1936.png, 05, 08): translucent navy
   panels with a thin gold border, an inset gold rule, corner brackets and a soft shadow (UiFrame), round gold-rimmed icon
   buttons (UiIcon), an icon per indicator in the top bar, and EB Garamond throughout. */
:root {
    --navy: rgba(13, 21, 37, 0.97);   /* blended in linear space: 0.97 still lets the map's light through faintly */
    --navy-deep: rgb(9, 14, 26);
    --navy-solid: rgb(14, 22, 38);   /* --navy without its transparency */
    --navy-raised: rgb(20, 31, 52);  /* the date badge and a hovered button */
    --gold: rgb(196, 160, 92);
    --gold-light: rgb(232, 204, 142);
    --gold-dim: rgba(196, 160, 92, 0.45);
    --ink: rgb(236, 228, 210);
    --ink-dim: rgb(170, 164, 150);
    --up: rgb(126, 196, 120);
    --down: rgb(222, 120, 104);
    --focus: rgb(120, 98, 58);       /* keyboard focus fill: >= 3:1 against --navy-deep (WCAG 2.4.13) */
    --focus-ink: rgb(255, 252, 244); /* text on the focus fill: 5.7:1 on it (ink is 4.6, gold-light 3.7; #41 M3) */
}

.root {
    flex-grow: 1;
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-Regular.ttf");
    color: var(--ink);
    font-size: 20px;
}

.panel {
    background-color: var(--navy);
    border-color: var(--gold-dim);
    border-width: 1px;
    border-radius: 3px;
    padding: 12px;
}

/* UiFrame: the trim overlay (drawn in code) fills its panel and is never laid out with the content. */
.ui-frame { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

.title {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 30px;
    color: var(--ink);
}

.muted { color: var(--ink-dim); }
.delta-up { color: var(--up); }
.delta-down { color: var(--down); }
/* A thin gold rule under a heading (the promo's divider). */
.gold-rule { height: 1px; flex-shrink: 0; background-color: var(--gold-dim); margin: 4px 0 6px 0; }

.button, Button {
    background-color: var(--navy-deep);
    border-color: var(--gold-dim);
    border-width: 1px;
    border-radius: 4px;
    color: var(--ink);
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-Regular.ttf");
    font-size: 19px;
    padding: 6px 12px;
    margin: 3px 0;
    -unity-text-align: middle-left;
}
Button:hover { border-color: var(--gold); background-color: var(--navy-raised); }
/* Keyboard focus shows as a bright gold edge (navigation with Tab and the arrow keys). */
Button:focus { border-color: var(--gold-light); background-color: var(--focus); color: var(--focus-ink); }
Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4); background-color: var(--navy-deep); }
/* A screen button stays transparent around its disc in every state. */
.nav-button:disabled, .nav-button:focus { background-color: rgba(0, 0, 0, 0); border-width: 0; }

/* Top bar: the date badge, the national indicators (icon, name, value and change), the round screen buttons, attention
   and End Turn. */
.top-bar {
    position: absolute; left: 0; right: 0; top: 0; height: 70px;
    flex-direction: row; align-items: center;
    border-width: 0 0 1px 0; border-radius: 0; padding: 0 14px 0 8px;
    border-color: rgba(196, 160, 92, 0.75);
    background-color: var(--navy-solid);   /* opaque: map labels must not show through it (Task 24 review M7) */
}
/* HUD round 2, part 3 (#398): the one-row bar is 70 px, 6.5% of a 16:9 frame, as promo 03's and T29's (T54: it was 96,
   8.8%). Everything in it fits two lines (EB Garamond lines are about 1.55 x the font size): labels lose their default
   vertical padding and margin; the date plate hangs below the bar, as promo 03's "1936 / Turn 1 / January 1936" does. */
.top-bar Label { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
/* The date badge: a raised, trimmed box at the left, as the promo's "1936 / Turn 1 / January 1936" plate. */
.date-box {
    /* A fixed width, wide enough for the widest line ("Turn 120  30 September 1956"), so the meters never shift when the
       month changes; at least 98 px tall, so it hangs 28 px below the 70 px bar as promo 03's plate does, and grows if the
       date wraps to a third line. */
    flex-shrink: 0; width: 230px; min-height: 98px; align-self: flex-start; justify-content: center;
    padding: 2px 10px 2px 12px; margin-right: 10px;
    background-color: var(--navy-raised); border-width: 1px; border-color: var(--gold-dim); border-radius: 2px;
}
/* Turn and date share a line; if they do not fit, the date wraps to a line of its own inside the plate, which grows. */
.date-row { flex-direction: row; flex-wrap: wrap; }
/* The year, and the GDD loop's score at the line's far end (#380): the year line has the room the date line lacks. */
.year-row { flex-direction: row; justify-content: space-between; align-items: center; }
#score { font-size: 17px; flex-shrink: 0; }
/* The exhausted-turn count (R-END-002) takes a line of its own under the date, only while it is above 0. */
#exhausted { font-size: 15px; white-space: nowrap; }   /* one line: wrapping runs it into the frame; at 15 px (#2522) the plate widens to it (HudPresenter.PadPlate) */
.date-row Label { font-size: 15px; margin-right: 8px; }
.year { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); font-size: 27px; color: var(--ink); }
.meters { flex-direction: row; flex-grow: 1; align-items: center; }
/* Seven meters with Social cohesion (#380): the owner chose "tighten and re-tier" (16 October 2026), so each meter's
   sides are 6 px narrower than the six meters' 7 and 6 px, here, on the stacked bar and in Hebrew. */
.meter {
    flex-direction: row; align-items: center; min-width: 130px; flex-shrink: 1; padding: 0 4px 0 3px;
    border-right-width: 1px; border-color: rgba(196, 160, 92, 0.25);
}
/* The icon gives way first in a narrow window (down to 26px), so the caption keeps its line. */
.meter-icon { width: 30px; height: 30px; flex-shrink: 1; min-width: 24px; margin-right: 5px; }
/* With room to spare (HudPresenter sets top-bar--roomy on the one-row bar), the promo's sizes. */
.top-bar--roomy .meter-icon { width: 38px; height: 38px; margin-right: 7px; }
.top-bar--roomy .meter-value { font-size: 24px; }
.meter-body { flex-shrink: 1; flex-grow: 1; min-width: 0; }
.meter-name { font-size: 15px; color: var(--ink); white-space: normal; }
.meter-caption-row { flex-direction: row; align-items: flex-end; }
/* In the bar a long caption wraps rather than widen its meter; on the roomy bar it keeps one line, as in the promo (B8). */
.meter .meter-name { max-width: 120px; }
.top-bar--roomy .meter .meter-name { max-width: none; white-space: nowrap; }
#security-level { font-size: 15px; color: var(--ink-dim); margin-left: 6px; margin-right: 0; white-space: nowrap; flex-shrink: 0; }   /* margin-right: 0, or the default theme's Label margin stays on the far side (#2687) */
.meter-row { flex-direction: row; align-items: flex-end; }
.meter-value { font-size: 21px; color: var(--ink); }
.meter-delta { font-size: 16px; margin-left: 7px; }
/* Room before a rise or a fall for its up or down mark, so the change is not told by colour alone (L1, #2340; painted by
   HudPresenter.PaintChange, 9 px = its ChangeMarkPadPx). */
.meter-delta.delta-up, .meter-delta.delta-down { padding-left: 9px; }
/* The screen buttons: a round, gold-rimmed icon with its name under it (the name keeps them legible without tooltips). */
.nav { flex-direction: row; flex-shrink: 0; align-items: center; }
.nav-button {
    width: 60px; height: 86px; margin: 0 1px; padding: 56px 0 0 0;
    background-color: rgba(0, 0, 0, 0); border-width: 0;
    font-size: 15px; color: var(--ink-dim); -unity-text-align: upper-center; white-space: nowrap;
}
.nav-disc {
    position: absolute; top: 2px; left: 5px; width: 50px; height: 50px; padding: 11px;
    border-radius: 25px; border-width: 1.5px; border-color: var(--gold-dim); background-color: var(--navy-deep);
}
/* New Game in the bar, as promo 03's round bar buttons (HUD round 2, part 3): icon-only; its name is its text, drawn clear
   (the event log reads it), and its tooltip, which HoverTip shows beside it on hover and on focus. */
#new-game.bar-button { width: 52px; height: 52px; margin: 0 10px; padding: 0; font-size: 1px; color: rgba(0, 0, 0, 0); }
#new-game.bar-button:hover, #new-game.bar-button:focus, #new-game.bar-button.nav-open { color: rgba(0, 0, 0, 0); }
#new-game.bar-button .nav-disc { top: 0; left: 0; width: 52px; height: 52px; padding: 13px; border-radius: 26px; }
.nav-button:hover { background-color: rgba(0, 0, 0, 0); color: var(--ink); }
.nav-button:hover .nav-disc { border-color: var(--gold); background-color: var(--navy-raised); }
/* Two separate signals: "open" (ScreenNav's nav-open) is a gold-light rim on a raised disc with a gold caption; keyboard
   focus is an ink rim on the warm focus fill, which a pointer click clears (ScreenNav blurs the button). */
.nav-open { color: var(--gold-light); }
.nav-open .nav-disc { border-color: var(--gold-light); background-color: var(--navy-raised); }
.nav-button:focus { color: var(--ink); }
.nav-button:focus .nav-disc { border-color: var(--ink); background-color: var(--focus); }
/* A window too narrow for the icons (HudPresenter sets top-bar--compact below HudPresenter.CompactBelowPx): the meters
   drop their icons and tighten, as the bar was before the icons. */
.top-bar--compact .meter-icon { display: none; }
.top-bar--compact .date-box { width: 226px; margin-right: 6px; }
.top-bar--compact .date-row Label { font-size: 15px; margin-right: 6px; }
.top-bar--compact .meter { padding: 0 8px; }
/* The narrow HUD (HudPresenter sets hud-narrow on the root, with the compact bar): a taller bar whose meters put the
   change under the value, so no change runs into its neighbour; the panels below the bar move down with it. */
.hud-narrow .top-bar { height: 124px; }
.hud-narrow .right-column, .hud-narrow .left-column, .hud-narrow .event-gutter, .hud-narrow .event-layer, .hud-narrow .screen, .hud-narrow .toast { top: 140px; }
.hud-narrow .meter { min-width: 96px; padding: 0 3px; }
.hud-narrow .meter-row { flex-direction: column; align-items: flex-start; }
.hud-narrow .meter-value { font-size: 22px; }
.hud-narrow .meter-delta { margin-left: 0; font-size: 15px; }
/* Narrower than about square (HudPresenter adds hud-two-row): the bar wraps into two rows, the date badge and the meters
   (78% of the bar, so they always take the first row) above, the screen buttons and End Turn below; the panels move down. */
.hud-two-row .top-bar { height: 216px; padding-top: 6px; padding-bottom: 4px; flex-wrap: wrap; justify-content: space-between; align-content: space-around; }
.hud-two-row .meters { width: 78%; flex-grow: 1; }
.hud-two-row .right-column, .hud-two-row .left-column, .hud-two-row .event-gutter, .hud-two-row .event-layer, .hud-two-row .screen, .hud-two-row .toast { top: 232px; }
/* #380's re-tier gives a square window (1024x1024) the two-row bar: the event layer keeps the 92 px the bar grew by free at its
   bottom (padding: the backdrop still reaches the window's bottom), so the centred card stays where the stacked bar left it,
   clear of the map's border label (review B1 of #831; ArmisticeTests). */
.hud-two-row .event-layer { padding-bottom: 92px; }
/* Narrower still (a phone upright; HudPresenter adds hud-three-row with hud-two-row): the badge, the meters and the
   screen buttons with End Turn take a row each, and the panels move down under the taller bar (#210). Seven meters do not
   fit a phone's width with the widest values (#380): they wrap to two lines (a consequence of the owner's "tighten + re-tier", 16 October 2026), and the bar is a meter line
   (96 px) taller than the six meters' 312 px. The owner's text floor (#642) raises the small text to 25 px on a 390x844
   phone: the plate, the meters and the attention line grow, and the bar takes 32 px more (with the widest values and
   changes its rows end at about 431 px; each meter line already holds two caption lines, Security's level or "International
   support", so a caption that wraps once more does not add to it). Smaller phones raise it further (26 px at 360x800, 30 px
   at 375x667; the owner: the floor holds "down to 375x667", and the bar grows taller to fit, review of #859): the bar takes
   its rows' height when that is more than 440 px, and the panels under it move down by what it grew (HudPresenter.PlaceUnderBar).
   When its rows come in shorter (390x844 with turn 1's values, or in Hebrew), it shrinks to them and the panels move up, so
   no empty band lies between the stats and the map (#1089, the owner: 440 px "stays as the maximum, not a fixed height"). */
.hud-three-row .top-bar { height: 440px; }
.hud-three-row .meters { width: 100%; flex-wrap: wrap; }
/* Each meter a quarter of the row, so the seven always take two lines (four, then three) and the bar's second line is
   never an empty band (a phone's turn-1 values would otherwise fit one line). A quarter (~190 px) is wider than the widest
   meter there (~154 px). */
.hud-three-row .meter { flex-basis: 25%; flex-grow: 0; flex-shrink: 0; }
/* At the floor's 25 px (#642) a caption may take most of its quarter, not the 120 px that would break "Immigration" inside the
   word (170 px: a phone's quarter, about 193 px, keeps 5% free, PromoHudTests), and "Security" and its level, too wide for a
   quarter side by side, wrap the level under the caption. */
.hud-three-row .meter .meter-name { max-width: 170px; }
.hud-three-row .meter-caption-row { flex-wrap: wrap; }
/* In Hebrew each caption, and Security's wrapped caption row, ends at the text column's right edge (review of #859: the
   wrapped row had moved to the column's left). */
.lang-he.hud-three-row .meter-body { align-items: flex-end; }
.lang-he.hud-three-row .meter-caption-row { justify-content: flex-start; }
.hud-three-row .right-column, .hud-three-row .left-column, .hud-three-row .event-gutter, .hud-three-row .event-layer, .hud-three-row .screen, .hud-three-row .toast { top: 456px; }
/* The owner's ruling on #859 (17 October 2026): on a phone no rail button sits under the decision card, Why? and Settings
   included. The card starts right of the column (the layer's left padding, from its 16 px: the column's 60 px and a 12 px gap; padding, so
   the backdrop still reaches the column, LeftColumnTests.OnAPhoneThePhotoCardLeavesTheRailClear) and hangs from the layer's
   top, under the bar, rather than sitting in the middle: centred, the card at 375x667 reached the map's border label above
   the minimap (since #915 that label is hidden while the card is open, so no test pins this any more). The 88 px at the bottom keep the tallest card off
   the window's foot (padding, so its backdrop still reaches it, DecisionCardTests.TheBackdropReachesTheWindowsEdgesAtEveryTier). */
.hud-three-row .event-layer { justify-content: flex-start; padding-left: 72px; padding-bottom: 88px; }
.turn-box { width: 150px; flex-shrink: 1; min-width: 150px; align-items: flex-end; }
.turn-box.needs-orders { width: 230px; min-width: 230px; }   /* the blocked End turn label and its hourglass, EN and HE */
#attention { font-size: 15px; }   /* the audit's floor (H4): 15 px in the stylesheet */
.end-turn {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); font-size: 20px;
    border-color: var(--gold); border-width: 1.5px; color: var(--gold-light); padding: 2px 12px 2px 38px;
}
.end-turn:hover { border-color: var(--gold-light); }
/* A card waits that the Attention left cannot answer (#1034): End Turn is the way on, so it stands out. */
.end-turn-waiting { border-color: var(--gold-light); border-width: 3px; background-color: rgba(196, 160, 92, 0.35); }

/* The decision card in the middle (decision cards, 2026-10-13), the info panel at the bottom-left, the minimap at the
   bottom-right. The right-hand column keeps its 480 px width, so the screens and the border layer's caption stay where
   they were; it now holds only the minimap. */
.right-column { position: absolute; right: 16px; top: 112px; bottom: 16px; width: 480px; }
/* HUD round 2, part 2 (#398): promo 03's left icon column, the screens' round buttons under the bar at the left edge
   (promo 03: discs about 5.3% of the frame's height, 6.3% apart). Icon-only: the caption is the button's text (the event
   log and the strings read it) but drawn clear; HoverTip shows it beside the disc on hover and on focus. The decision
   card's backdrop, the screens and the toast start right of it (68 px: its 56 px and a 12 px gap), so nothing covers it
   and it stays usable under the decision card, as the top bar does; the card itself stays centred in the window. */
.left-column { position: absolute; left: 16px; top: 112px; width: 56px; align-items: center; }
/* The backdrop's strip under the column (review of #602): from the window's left edge to where the backdrop starts (72 px),
   full height (the bar draws over its top), shown and taking the pointer only while the decision card is open. */
.event-gutter { display: none; position: absolute; left: 0; top: 112px; bottom: 0; width: 72px; background-color: rgba(5, 9, 18, 0.55); }
.event-modal .event-gutter { display: flex; }
.left-column .rail-button { width: 40px; height: 40px; margin: 0 0 2px 0; padding: 0; font-size: 1px; color: rgba(0, 0, 0, 0); }
.left-column .rail-button:hover, .left-column .rail-button:focus, .left-column .nav-open { color: rgba(0, 0, 0, 0); }
/* Eight discs with Timeline (#955) after Objectives (#1189). On the one-row bar: 40 px, 2 px apart, so the column still
   ends at 112 + 336 px (seven 45 px discs 3 px apart, #1189, and six 50 px discs 6 px apart, #1041: the same), above the
   info panel's top (456 px) in a short, wide window (InfoPanelLayoutTests), and at least 26 screen px in the smallest
   one-row window (1366x657), over the 24 screen px floor. The glyph keeps its 24 px through the smaller padding. The
   narrow, two-row and three-row tiers keep their discs (50 px; 60 px on a phone): the column starts lower there, the info
   panel is far below it, and 960x600 needs 50 px for the 24 screen px floor (LeftColumnTests). The column keeps its 56 px
   width, so the backdrop, the screens and the toast keep their places. */
.left-column .rail-button .nav-disc { top: 0; left: 0; width: 40px; height: 40px; padding: 8px; border-radius: 20px; }
.hud-narrow .left-column > .rail-button { width: 50px; height: 50px; margin: 0 0 6px 0; }
.hud-narrow .left-column > .rail-button .nav-disc { width: 50px; height: 50px; padding: 11px; border-radius: 25px; }
/* A screen with something to do this turn (#1109, HudPresenter.ActionClass): a small gold dot on the disc's upper right,
   ringed in the column's navy so it reads against the rim; the gold-light of End Turn's waiting highlight (#1034). */
.nav-badge {
    display: none; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px;
    border-radius: 7px; border-width: 2px; border-color: var(--navy-deep); background-color: var(--gold-light);
}
.nav-action .nav-badge { display: flex; }
/* On a phone held upright the panel's scale falls to about 0.41 (375x667), where a 56 px disc is 22.8 px on screen: the
   column's discs are 60 px there, at least 24 on screen (LeftColumnTests), and the backdrop's strip and the backdrop
   follow the wider column. */
.hud-three-row .left-column { width: 60px; }
.hud-three-row .left-column > .rail-button { width: 60px; height: 60px; margin: 0 0 12px 0; }
.hud-three-row .left-column > .rail-button .nav-disc { width: 60px; height: 60px; padding: 14px; border-radius: 30px; }
.hud-three-row .event-gutter { width: 76px; }
/* Star, Report and Share (#1236, CommunityIconsPresenter): the side menu's discs at each tier (the same numbers as the rules
   above, in rules of their own: tools/headed.py reads the side menu's rules by their selectors), one above the other at
   the foot of the same lane, from the window's bottom up, so they keep the bottom left whatever the bar's height. The side
   menu ends far above them at every size (CommunityIconsTests). In Hebrew they stay at the left, as the side menu does
   (#550): the Hebrew UI mirrors rows, not the screen's corners. The info panel starts right of the lane to make room. */
.community-column { position: absolute; left: 16px; bottom: 16px; width: 56px; align-items: center; }
.community-column .rail-button { width: 45px; height: 45px; margin: 0 0 3px 0; padding: 0; font-size: 1px; color: rgba(0, 0, 0, 0); }
.community-column .rail-button:hover, .community-column .rail-button:focus { color: rgba(0, 0, 0, 0); }
.community-column .rail-button .nav-disc { top: 0; left: 0; width: 45px; height: 45px; padding: 10.5px; border-radius: 22.5px; }
.hud-narrow .community-column > .rail-button { width: 50px; height: 50px; margin: 0 0 6px 0; }
.hud-narrow .community-column > .rail-button .nav-disc { width: 50px; height: 50px; padding: 11px; border-radius: 25px; }
.hud-three-row .community-column { width: 60px; }
.hud-three-row .community-column > .rail-button { width: 60px; height: 60px; margin: 0 0 12px 0; }
.hud-three-row .community-column > .rail-button .nav-disc { width: 60px; height: 60px; padding: 14px; border-radius: 30px; }
.hud-three-row .event-scrim { left: 60px; }
.right-gap { flex-grow: 1; flex-shrink: 0; min-height: 16px; }
/* The decision layer: the room under the bar, top per HUD tier as the column's. While an event is open (event-open on the
   root) the map is blocked: the backdrop dims it and takes the pointer, so map clicks and drags stop at it, and
   ScreenNav.DisableCovered takes the panels under it out of Tab's reach; the top bar stays usable. The card sits in the
   middle. Hide collapses the card to the "Decision
   waiting" button at the layer's top right (EventCardPresenter), which takes no more room than itself. */
.event-layer { position: absolute; left: 16px; right: 16px; top: 112px; bottom: 16px; justify-content: center; align-items: center; }
.event-scrim { display: none; position: absolute; left: 56px; right: -16px; top: 0; bottom: -16px; background-color: rgba(5, 9, 18, 0.55); }
.event-open .event-scrim, .capture-open .event-scrim { display: flex; }
/* The backdrop reaches up to the bar's bottom at every tier: a full-width band from the bar to the layer's top (42 px under the
   70 px one-row bar, where the date plate hangs; 16 px under the taller tiers' bars), then the layer's own part right of
   the left column, and the column's strip (event-gutter) beside and below its discs. No strip of map stays live under a
   card, and the hanging plate is dimmed evenly (review of #624). */
.event-scrim-top { display: none; position: absolute; left: -16px; right: -16px; top: -42px; height: 42px; background-color: rgba(5, 9, 18, 0.55); }
.event-open .event-scrim-top, .capture-open .event-scrim-top { display: flex; }
.hud-narrow .event-scrim-top, .hud-two-row .event-scrim-top, .hud-three-row .event-scrim-top { top: -16px; height: 16px; }
.event-reopen {
    display: none; position: absolute; right: 0; top: 0; margin: 0; padding: 6px 18px; font-size: 20px; -unity-text-align: middle-center;
    background-color: var(--navy-solid); border-color: var(--gold); border-width: 1.5px; color: var(--gold-light);
}
.event-reopen:hover { border-color: var(--gold-light); }
/* Up to 1040 px wide, its 960 px content holding the 16:9 media header at 960x540 (the photographs' and the clips' size);
   the layer bounds its height. When the window is short the media header gives way first, then the body: the text and
   the options scroll together (event-scroll, #1853), while the head and the foot with Hide stay in the card. */
.event-card { width: 1040px; max-width: 100%; max-height: 100%; flex-shrink: 1; min-height: 0; overflow: hidden; padding: 16px 40px 10px 40px; }
.hud-two-row .event-card { padding-left: 16px; padding-right: 16px; }
/* The card takes the keyboard focus when an event opens (EventCardPresenter.FocusCard): a lighter gold edge says so.
   #2340 L3: the edge is 2 px when focused, the card's own 1 px border and 1 px more on its trim overlay just inside it.
   The overlay lays nothing out (.ui-frame), so nothing in the card moves when the focus comes or goes; a 2 px border on
   the card itself would take a pixel from its content box, and at 150% UI scale the panel's pixel snapping keeps 1 px
   less padding from giving it back exactly (measured: the content moved by one screen pixel). */
.event-card:focus { border-color: var(--gold-light); }
.event-card:focus > .ui-frame { border-width: 1px; border-color: var(--gold-light); }
.event-card > * { flex-shrink: 0; }
.event-card > .event-scroll { flex-shrink: 1; min-height: 48px; }
#event-options { flex-shrink: 0; }
.event-foot { flex-direction: row; align-items: center; justify-content: space-between; }
.event-count { flex-shrink: 1; white-space: normal; }
.event-hide { font-size: 17px; margin: 2px 0 0 12px; padding: 3px 16px; -unity-text-align: middle-center; }
/* Hidden until EventCardPresenter shows an event (never visible while loading). */
.event-card { display: none; }
/* The card's head is its picture band: a dark plate holding the minister's framed portrait beside the title. */
.event-head {
    flex-direction: row; align-items: center; margin-bottom: 2px; padding: 4px;
    background-color: rgba(5, 9, 18, 0.65); border-width: 1px; border-color: var(--gold-dim); border-radius: 2px;
}
.event-heading { flex-grow: 1; flex-shrink: 1; }
/* Portrait-shaped, so the whole head shows; EventCardPresenter sets background-position-y from the portrait's focal point. */
.event-image {
    width: 96px; height: 128px; flex-shrink: 0; margin-right: 12px; background-size: cover; background-color: var(--navy-deep);
    border-width: 1px; border-color: var(--gold);
}
/* The media header (promo 03 and 05): full width, 16:9 (EventCardPresenter sets its height from the card's width; 540 px
   is the 960 px content's), a gold frame, its credit as a caption strip along the bottom (so the credit costs the card no
   height). It gives way first on a short window (the large flex-shrink takes the shortfall before the text); below its
   credit's height plus EventCardPresenter.MinPhotoHeight it is dropped until the window grows again, so the body and the
   options never scroll for it and the credit (CC BY 4.0) is never cut. */
.event-card > .event-photo {
    display: none; height: 540px; min-height: 0; flex-shrink: 1000; margin-bottom: 4px; overflow: hidden;
    justify-content: flex-end; background-size: cover; background-color: var(--navy-deep); border-width: 1px; border-color: var(--gold);
}
/* The End Turn outcome clip (decision videos, phase 3; OutcomePresenter): over everything but the toast while it plays,
   a dim backdrop that takes the pointer (a click skips) and the clip in a 16:9 frame in the middle (OutcomePresenter sizes
   it from its width), its order under it. */
.outcome-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; background-color: rgba(5, 9, 18, 0.72); padding: 16px; }
.outcome-open .outcome-layer { display: flex; }
.outcome-open .event-layer { display: none; }
.outcome-frame { width: 1000px; max-width: 100%; padding: 16px 20px 12px 20px; align-items: stretch; }
.outcome-media { width: 100%; height: 540px; justify-content: flex-end; background-color: var(--navy-deep); background-size: cover; border-width: 1px; border-color: var(--gold); }
.outcome-label { font-size: 15px; -unity-font-style: italic; -unity-text-align: middle-center; margin: 0; padding: 2px 8px 3px 8px; color: var(--ink); background-color: rgba(5, 9, 18, 0.92); }
.outcome-caption { font-size: 26px; white-space: normal; -unity-text-align: middle-center; margin: 10px 0 2px 0; color: var(--gold-light); }
.outcome-hint { font-size: 15px; -unity-text-align: middle-center; margin: 0; }
/* The Illustration switch (decision videos): over the media header's top right corner (the card's padding plus 8 px; it
   is the card's last child, for the focus order); hidden unless the event has a clip (EventCardPresenter.ApplyIllustration). */
.hud-two-row .event-illustration { right: 24px; }
.event-illustration {
    display: none; position: absolute; top: 24px; right: 48px; margin: 0; padding: 3px 14px; font-size: 17px; -unity-text-align: middle-center;
    background-color: rgba(5, 9, 18, 0.88); border-color: var(--gold); color: var(--gold-light);
}
.event-photo-credit {
    flex-shrink: 0; font-size: 15px; white-space: normal; -unity-text-align: middle-center; margin: 0; padding: 2px 8px 3px 8px;
    color: var(--ink); background-color: rgba(5, 9, 18, 0.92); -unity-font-style: italic;   /* 0.92: blending is linear, so less reads grey */
}
.event-office { white-space: normal; -unity-text-align: middle-center; font-size: 18px; }
/* Options wrap inside the card (playtest 2, P2-2). No sign beside the text: a chevron read as "expand", but the press
   chooses (#1105); the gold rim and the hover and focus fills (Button:hover, :focus) mark it as a button. */
#event-options Button, #capture-options Button { white-space: normal; -unity-text-align: middle-left; }
.event-option { min-height: 42px; padding: 5px 12px; margin: 3px 0; border-color: rgba(196, 160, 92, 0.6); }
.event-title { -unity-text-align: middle-center; margin-bottom: 4px; white-space: normal; font-size: 28px; }   /* centred, as before, in the card */
.event-text { white-space: normal; margin-bottom: 8px; }
/* An objective card's line under its text (#380): when it was completed against history. */
.event-objective { white-space: normal; margin-bottom: 8px; }
/* A consequence card's banner (#954): which road it follows and the record beside it, above the text; sober, in the muted
   ink, set off by a thin gold rule at its start edge. The rejoin line and the effect lines (#1125) under an
   option are in the same muted ink, indented 46 px to line up with the option's text after its round sign (.event-option padding). */
.event-alt-banner { display: none; white-space: normal; margin: 0 0 8px 0; padding: 2px 0 2px 10px; border-left-width: 2px; border-color: var(--gold); }
.lang-he .event-alt-banner { border-left-width: 0; border-right-width: 2px; padding: 2px 10px 2px 0; }
.event-rejoin, .event-effect, .event-requirement, .event-requirement-unmet { white-space: normal; margin: -1px 0 4px 46px; }
.event-requirement-unmet { color: var(--down); }
.event-requirement, .event-requirement-unmet { font-size: 15px; }
.lang-he .event-rejoin, .lang-he .event-effect, .lang-he .event-requirement, .lang-he .event-requirement-unmet { margin: -1px 46px 4px 0; }
/* The line over the greyed-out options when the Attention left cannot pay for an answer (#1034). */
.event-delegate { display: none; white-space: normal; margin: 4px 0; color: var(--gold-light); }
/* The capture dialog (CaptureDialogPresenter): under each option its plain description, then the sim's preview of what
   it changes at once, in the muted ink; neither takes a Tab stop. */
.capture-about { white-space: normal; margin: 0 4px 2px 4px; }
.capture-preview { white-space: normal; margin: 0 4px 8px 4px; }
/* A refused option's reason, in the preview's place and the same quiet ink (owner, 24 October 2026 on #799, "button explains"). */
.capture-refusal { white-space: normal; margin: 0 4px 8px 4px; }
.draft { display: none; color: var(--down); -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); -unity-text-align: middle-center; }
/* The info panel: the hex's terrain sign (UiIcon on the biome's map colour, InfoPanelPresenter) beside its facts. It starts
   right of the left icon lane (84 px, as the toast; #1236: Star, Report and Share sit at the lane's foot) and keeps its right
   edge (536 px; 936 px with the GDD column), so the side screens beside it keep their place. */
.info-panel { position: absolute; left: 84px; bottom: 16px; width: 452px; min-height: 160px; flex-direction: row; align-items: flex-start; }
.info-thumb {
    width: 92px; height: 116px; flex-shrink: 0; margin-right: 14px; padding: 10px;
    border-width: 1px; border-color: var(--gold); border-radius: 2px; background-color: var(--navy-deep);
}
.info-body { flex-grow: 1; flex-shrink: 1; min-width: 0; }
.info-body > .row { flex-wrap: wrap; }
.info-body > .row Button { margin-right: 6px; font-size: 18px; }
/* The GDD loop's part (GddHexPanel, #381): a city's counts, its Assign stepper, Train and Cancel; a site's state and
   Build/Stop. A second column beside the hex's facts, so the panel stays under the left column on a short window
   (InfoPanelLayoutTests.TheGddCityAndSitePanelsFitEveryWindow): the panel widens to hold it. Its rows wrap their buttons,
   a long button label wraps, and a row mirrors in Hebrew (.lang-he .row). */
.info-panel.info-gdd-shown { width: 852px; }
.info-gdd { flex-direction: column; width: 380px; flex-shrink: 0; margin-left: 14px; padding-left: 14px; border-left-width: 1px; border-color: var(--gold-dim); }
.info-gdd-line { font-size: 17px; flex-shrink: 1; }
.info-gdd-row { flex-wrap: wrap; align-items: center; }
.info-projects { flex-direction: column; }
.info-gdd Button, .info-projects Button { margin: 2px 6px 2px 0; font-size: 17px; white-space: normal; flex-shrink: 1; }
/* Shorter buttons and lines than the GDD column's: the project part sits under a city's facts and must keep the panel clear of the
   left column on a phone (InfoPanelLayoutTests, #1122). */
.info-projects Button { padding-top: 2px; padding-bottom: 2px; margin-top: 0; margin-bottom: 1px; }
.info-projects Label { margin-top: 0; margin-bottom: 0; padding-top: 1px; padding-bottom: 1px; }
/* Owner ruling on #1150 (21 Oct 2026): on the city's own hex the project list folds behind "City projects (N)" on a stacked bar
   or a short window (InfoPanelPresenter.ShortClass), where the full list ran into the left column; elsewhere the toggle
   hides and the list shows. The toggle opens the list with .info-projects-open (GddHexPanel). */
#city-projects-toggle { display: none; }
.hud-two-row #city-projects-toggle, .info-short #city-projects-toggle { display: flex; }
.hud-two-row .city-projects-list, .info-short .city-projects-list { display: none; }
.hud-two-row .info-projects-open > .city-projects-list, .info-short .info-projects-open > .city-projects-list { display: flex; }
/* Two counts on one row (Jobs | Craftsmen, Refugees waiting | Overflow; #1121): each keeps its width, so the row wraps
   whole rather than squeezing a line into two, and a gap follows each (mirrored in Hebrew). No wrap inside a count (#1789):
   at a fractional scale (1024x768) layout can round its box a raster pixel under its text, and "filled" then dropped onto
   the next row. */
.info-gdd-pairs > .info-gdd-line { flex-shrink: 0; margin-right: 14px; white-space: nowrap; }
/* Before a hex is chosen only the hint shows (InfoPanelPresenter sets info-empty): a one-line chip that hugs its text, as
   the promo shows no panel until a tile is chosen (HUD round 1, #398). */
.info-panel.info-empty { min-height: 0; width: auto; padding: 8px 16px; }
.info-empty .gold-rule, .info-empty #info-subtitle, .info-empty .reason { display: none; }
.info-empty #info-title { font-size: 20px; }
/* On the two-row bar the window is too narrow for the one-line chip beside the right column: it ran under the border
   layer's label (.map-layer, the column's left 250 px). The chip ends 12 px left of the column (16 px + 480 px) and wraps. */
.hud-two-row .info-panel.info-empty { right: 508px; }
.hud-two-row .info-empty #info-title { white-space: normal; }
/* On a phone upright the hint chip keeps the window's width from the left edge (two lines, InfoPanelLayoutTests), so it sits
   over Star, Report and Share (#1236): the window's 16 px, three 60 px discs with their 12 px margins, and a 12 px gap. */
.hud-three-row .info-panel.info-empty { left: 16px; bottom: 244px; right: 254px; }
/* The hex's facts as the promo's icon rows: a gold sign, then the line, which wraps inside the panel (#397). A unit's card
   reuses the lines without the signs (they name a hex's facts, not a unit's). */
.info-row { flex-direction: row; align-items: flex-start; margin-bottom: 3px; }
.info-row-sign { width: 22px; height: 22px; flex-shrink: 0; margin: 3px 10px 0 0; }
.info-row-text { flex-grow: 1; flex-shrink: 1; min-width: 0; }
.info-unit .info-row-sign { display: none; }
/* Token-free selection stays scrollable on crowded hexes; project links use the same wrapping copy. */
.pioneer-list { max-height: 64px; flex-shrink: 1; }
.pioneer-link { white-space: normal; font-size: 16px; flex-shrink: 0; margin: 1px 0; }
#info-pioneer-return { white-space: normal; flex-shrink: 1; }
/* The border layer's label, beside the minimap's lower left: what the outlines are (MapRegions.Label). Out of the column's
   flex flow (absolute), so it takes no height from the event card at any HUD tier (armistice review I-4). */
.map-layer { display: none; position: absolute; right: 230px; bottom: 0; max-width: 250px; padding: 5px 8px; font-size: 15px; white-space: normal; -unity-text-align: middle-center; color: var(--ink); background-color: rgba(9, 14, 26, 0.9); border-radius: 3px; }
/* A phone upright (three-row bar): the info panel spans the bottom left, beside the minimap, but the column is tall, so the
   label goes back above the minimap, in the column's flow. */
.hud-three-row .map-layer { position: relative; right: auto; bottom: auto; align-self: flex-end; max-width: 480px; margin-bottom: 6px; }
/* While the modal decision card is open (event-modal, ScreenNav.DisableCovered) the legend is hidden: no card, the
   photograph's included, covers it, and the card keeps its full size (owner, 17 October 2026, "Hide legend under card", on
   desktop and phone alike; #849). Visibility, not display: GameRoot sets the label's display inline (borders shown or not),
   and it comes back as it was when the card is hidden or answered. Only the label: the minimap and the map stay. */
.event-modal .map-layer { visibility: hidden; }
/* HUD round 2 (#398): promo 03's minimap, the painted relief picture with three round buttons beside it, in one frame. The
   picture's box is as wide as the tall picture needs at this height (MinimapPresenter fits the picture to it). */
.minimap { align-self: flex-end; flex-shrink: 0; flex-direction: row; width: 222px; height: 380px; padding: 12px; background-color: rgba(9, 14, 26, 0.97); }
.minimap-map { width: 134px; flex-shrink: 0; justify-content: center; }
.minimap-image { align-self: center; -unity-background-scale-mode: stretch-to-fill; }   /* sized to the picture's aspect by MinimapPresenter */
.minimap-view { position: absolute; border-color: var(--ink); border-width: 1.5px; }
.minimap-buttons { flex-grow: 1; margin-left: 10px; justify-content: space-around; align-items: center; }
.minimap-button { width: 50px; height: 50px; margin: 0; padding: 0; border-width: 0; border-radius: 25px; background-color: rgba(0, 0, 0, 0); }
.minimap-disc {
    position: absolute; left: 0; top: 0; width: 50px; height: 50px; padding: 11px;
    border-radius: 25px; border-width: 1.5px; border-color: var(--gold-dim); background-color: var(--navy-deep);
}
.minimap-button:hover { background-color: rgba(0, 0, 0, 0); }
.minimap-button:hover .minimap-disc { border-color: var(--gold); background-color: var(--navy-raised); }
.minimap-button:focus { background-color: rgba(0, 0, 0, 0); border-width: 0; }
.minimap-button:focus .minimap-disc { border-color: var(--ink); background-color: var(--focus); }
/* A layer switched off (the names or the borders): the disc goes dim, as a lamp turned off. */
.minimap-off .minimap-disc { opacity: 0.6; }   /* the glyph keeps about 4:1 on its disc (MinimapReliefTests) */
/* An icon-only button's name, beside it while hovered or focused (HoverTip): one line, centred on the button's middle. */
.hud-tip {
    display: none; position: absolute; translate: 0 -50%; padding: 4px 10px; font-size: 16px; white-space: nowrap;
    color: var(--ink); background-color: var(--navy-solid); border-color: var(--gold); border-width: 1px; border-radius: 3px;
}

/* Full screens (Cabinet, Budget, Defence, Why, Settings) open in the centre, one at a time. */
/* Hidden until ScreenNav opens one (never visible while loading; playtest 2, P2-1). Right edge clear of the 480px column. */
.screen { display: none; position: absolute; left: 552px; right: 512px; top: 112px; bottom: 16px; padding: 18px; background-color: rgb(11, 18, 32); }   /* opaque: a reading screen, and the map labels must not show through */
/* #1106 (play-test of v0.1.2): a window, every side-menu screen and the decision card, grows and fades in over 0.5 s when
   it opens and shrinks over 0.3 s when it closes. ScreenNav.Show switches the classes: .window-opening is the start state
   for one layout (no transition, as Unity runs none out of display: none), .window-closing the shrink (the window leaves
   the layout when it ends). Play mode only: an EditMode panel does not tick (ScreenNav.Moves). */
.screen, .event-card { transition-property: scale, opacity; transition-duration: 0.5s, 0.5s; transition-timing-function: ease-out-cubic, ease-out-cubic; }
.screen.window-opening, .event-card.window-opening { scale: 0.8 0.8; opacity: 0; transition-duration: 0s, 0s; }
.screen.window-closing, .event-card.window-closing { scale: 0 0; transition-property: scale; transition-duration: 0.3s; transition-timing-function: ease-in-cubic; }
/* The shrinking window is disabled (out of reach); the theme's half opacity for disabled elements would make the shrink a fade. */
.screen.window-closing.unity-disabled, .event-card.window-closing.unity-disabled, .window-closing .unity-disabled { opacity: 1; }
.screen-header { flex-direction: column; align-items: stretch; border-bottom-width: 1px; border-color: var(--gold-dim); margin-bottom: 10px; padding-bottom: 4px; }   /* the X's side padding is set inline by ScreenNav.FitCloseButtons (it grows with the X) */
/* Screen titles and section names in gold, letter-spaced, as the promo's "DEFENSE" and "LEADERSHIP". */
.screen-header > .title { color: var(--gold-light); letter-spacing: 1px; }
/* The subtitle sits under the title, the screen's full width, and wraps in a narrow window (#211). A column, not a
   wrapping row: a shrinking, wrapping label in a row re-measured itself every frame (PromoScreensTests idle test). */
.screen-header > .muted { white-space: normal; }

/* An X on an open screen (ScreenNav adds one to every screen-header): a phone has no Escape (playtest v0.1.1). */
.screen-close {
    position: absolute; top: 6px; right: 8px;
    width: 44px; height: 44px; margin: 0; padding: 0;
    background-color: rgba(0, 0, 0, 0); border-width: 1px; border-color: var(--gold-dim); border-radius: 22px;
    color: var(--gold-light); font-size: 20px; -unity-font-style: bold; -unity-text-align: middle-center;
}
.screen-close:hover, .screen-close:focus { border-color: var(--gold-light); }
/* Hebrew mirrors: the X sits on the left, and the header's free side moves with it (#1035). */
.lang-he .screen-close { right: auto; left: 8px; }
.screen .meter-name { color: var(--gold); letter-spacing: 2px; font-size: 16px; margin-top: 8px; }
.row { flex-direction: row; align-items: center; }
.grow { flex-grow: 1; }
/* A growing row inside a screen (the Cabinet's seats and candidates) takes the height that is left and stretches its
   lists to it, so a long list scrolls instead of growing out of the screen. */
.screen .row.grow { align-items: stretch; flex-basis: 0; flex-shrink: 1; min-height: 0; }
.screen .row.grow > .grow { min-height: 0; flex-shrink: 1; }
/* Settings (#40): an option's name takes the row's width and wraps; its button keeps room for "On" / "Off". */
.settings-row { margin-top: 8px; }
/* The advisors' encyclopedia (spec 10): the list of pages by advisor, or one page; either scrolls, never grows out. */
.encyclopedia-list, .encyclopedia-page { min-height: 0; }
.encyclopedia-advisor { color: var(--gold); letter-spacing: 1px; margin-top: 10px; margin-bottom: 4px; white-space: normal; }
.encyclopedia-entry { min-height: 44px; white-space: normal; -unity-text-align: middle-left; }
.lang-he .encyclopedia-entry { -unity-text-align: middle-right; }
.encyclopedia-page-title { white-space: normal; margin-bottom: 8px; }
.encyclopedia-text { white-space: normal; font-size: 18px; }
.encyclopedia-actions { flex-shrink: 0; margin-top: 8px; }
.encyclopedia-actions > Button { min-height: 44px; }
/* The Objectives screen (#1189): a row per objective, its name over its status and dates; both wrap at 390x844. */
.objectives-rows { min-height: 0; }
.objectives-row { margin-bottom: 14px; }
.objectives-name { white-space: normal; font-size: 18px; -unity-font-style: bold; }
.objectives-status { white-space: normal; font-size: 18px; color: var(--ink-dim); }
.settings-name { flex-grow: 1; flex-shrink: 1; min-width: 0; white-space: normal; }
.settings-switch { flex-shrink: 0; min-width: 96px; -unity-text-align: middle-center; }
/* The quality choice's buttons sit side by side; the one that is set is marked by a gold fill and dark text, not only a
   border colour, and keeps it while hovered or focused (Button:hover and :focus would otherwise win). */
.settings-choices { flex-shrink: 0; }
/* The Community row's three buttons (Star, Report, Share) are wider than the screen leaves them in Hebrew at 125%: they
   wrap onto a second line instead, and the row's name keeps its width (SettingsScreenTests, 1280x720). */
.settings-community-choices { flex-shrink: 1; flex-wrap: wrap; }
#settings-community-label { flex-shrink: 0; }
.settings-choice-selected, .settings-choice-selected:hover, .settings-choice-selected:focus { background-color: var(--gold); color: var(--navy-solid); }
/* The regular cut's thin strokes fade on the gold. Only as specific as ".lang-he Button", which comes later and keeps
   the Hebrew face in Hebrew. */
Button.settings-choice-selected { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); }
/* The language choice (#1036): "עברית" is in the Hebrew face in the English UI too (EB Garamond has no Hebrew), by id so
   that it beats the selected button's face above; the start screen's too (#2054). */
#settings-language-he, #start-language-he {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/FrankRuhlLibre/FrankRuhlLibre-Medium.ttf");
    -unity-text-generator: advanced;
}

/* The toast sits in the map's free top-left corner, above the info panel: opaque, and never over an open screen's title or
   the minimap column (B7). */
.toast {
    display: none; position: absolute; left: 84px; width: 460px; top: 112px; -unity-text-align: middle-center; white-space: normal;
    background-color: var(--navy-solid); border-color: var(--gold); border-width: 1.5px;
}

/* While the decision card is open (ScreenNav.DisableCovered sets event-modal: the card shows and no screen is open) the
   toast's corner is under the card, so it moves to the middle, over the top of the media header, clear of the options. */
.event-modal .toast { left: 25%; right: 25%; width: auto; }

/* Scroll bars in the theme: a slim gold thumb on a faint track, no arrow buttons. */
.unity-scroller--vertical { width: 10px; border-width: 0; background-color: rgba(0, 0, 0, 0); margin-left: 4px; }
.unity-scroller--vertical > .unity-scroller__low-button, .unity-scroller--vertical > .unity-scroller__high-button { display: none; }
.unity-scroller--vertical .unity-base-slider__tracker { background-color: rgba(196, 160, 92, 0.10); border-width: 0; border-radius: 5px; }
.unity-scroller--vertical .unity-base-slider__dragger { background-color: rgba(196, 160, 92, 0.55); border-width: 0; border-radius: 5px; }
.unity-scroller--vertical .unity-base-slider__dragger-border { display: none; }

.why-group { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); color: var(--gold); letter-spacing: 1px; margin-top: 10px; border-bottom-width: 1px; border-color: rgba(196, 160, 92, 0.25); }
.why-line { white-space: normal; padding-left: 12px; }
/* The turn report (#1037): a backdrop over the HUD, as the outcome clips', with a reading panel in the middle. */
.turn-report { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; background-color: rgba(5, 9, 18, 0.6); padding: 16px; }
.turn-report-panel { width: 640px; max-width: 100%; max-height: 100%; padding: 18px; background-color: rgb(11, 18, 32); }
.turn-report-rows { flex-shrink: 1; min-height: 0; }
.turn-report-row { margin-bottom: 10px; }
.turn-report-heading { white-space: normal; color: var(--gold-light); -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); }
/* A row's causes: one label each (B1: each takes its own direction), set as one block, as the one label was. */
.turn-report-causes { padding: 4px 2px 4px 14px; margin: 1px 3px; }
.turn-report-cause { white-space: normal; margin: 0; padding: 0; }
/* The end screen (#812) reuses the report's backdrop and panel: its outcome in the heading face, one line per part. */
.end-screen-outcome { white-space: normal; margin-bottom: 10px; color: var(--gold-light); -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); }
.end-screen-line { white-space: normal; margin-bottom: 6px; }
/* The history note under a defeat line: quieter than the line above it, still above the contrast floor (--ink-dim on --navy). */
.end-screen-note { white-space: normal; margin-bottom: 14px; color: var(--ink-dim); }
.turn-report-actions { justify-content: flex-end; margin-top: 8px; flex-shrink: 0; }
.turn-report-actions > Button { margin-left: 8px; }
/* #2202: the footer while the Arab forces' moves play (EnemyPlaybackBar). A layer along the window's foot that takes no
   pointer, and a panel in its middle that does (Skip). The flag is large beside the side's name (owner, 8 November 2026:
   "Flag + name (Recommended)"), 3:2 as the sourced cloths are near; it never scales past its box. Short-lived and drawn over
   the info panel and the minimap where they meet it; on a narrow window it takes the width less the 16 px gutters
   (EnemyPlaybackUiTests.TheSkipBarFitsAndMirrorsInHebrew). In Hebrew the row is mirrored, the flag at the right. */
.enemy-playback { display: none; position: absolute; left: 16px; right: 16px; bottom: 16px; align-items: center; }
.enemy-playback-panel { flex-direction: row; align-items: center; max-width: 720px; padding: 10px 14px; background-color: rgb(11, 18, 32); }
.side-flag { width: 96px; height: 64px; flex-shrink: 0; margin-right: 14px; }
.enemy-playback-lines { flex-grow: 1; flex-shrink: 1; min-width: 0; }
.enemy-playback-side { white-space: normal; margin: 0; }
.enemy-playback-step, .enemy-playback-action { white-space: normal; margin: 0; padding: 0; }
.enemy-playback-skip { flex-shrink: 0; margin-left: 14px; white-space: normal; max-width: 220px; }
.lang-he .enemy-playback-panel { flex-direction: row-reverse; }
.lang-he .side-flag { margin-right: 0; margin-left: 14px; }
.lang-he .enemy-playback-skip { margin-left: 0; margin-right: 14px; }
.hud-three-row .side-flag { width: 60px; height: 40px; margin-right: 10px; }
.lang-he.hud-three-row .side-flag { margin-right: 0; margin-left: 10px; }
.hud-three-row .enemy-playback-skip { max-width: 120px; }
/* The encyclopedia's button that opens the opening advice again: under the list, never squeezed by it. */
.encyclopedia-opening { flex-shrink: 0; align-self: flex-start; min-height: 44px; margin-top: 8px; }
.lang-he .encyclopedia-opening { align-self: flex-end; }
/* The advisors' popup (spec 7.1, AdvisorPresenter): placed in code in the free upper part of the right column (AdvisorLayout),
   400 px wide; not modal, so the layer takes no pointer. It slides 16 px in from the right while it fades in (0.25 s) and
   fades out (0.15 s): ScreenNav's opening and closing classes, with a slide instead of the screens' scale (spec 16). */
.advisor-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.advisor-open .advisor-layer { display: flex; }
.advisor-popup {
    position: absolute; width: 400px; padding: 12px 14px 8px 14px; background-color: var(--navy-solid); border-color: var(--gold);
    transition-property: translate, opacity; transition-duration: 0.25s, 0.25s; transition-timing-function: ease-out, ease-out;
}
.advisor-popup.window-opening { translate: 16px 0; opacity: 0; transition-duration: 0s, 0s; }
.advisor-popup.window-closing { opacity: 0; transition-property: opacity; transition-duration: 0.15s; }
.advisor-popup.advisor-critical { border-color: var(--down); border-width: 2px; }
.advisor-head { align-items: flex-start; }
.advisor-portrait { width: 96px; height: 120px; flex-shrink: 0; margin-right: 10px; border-width: 1px; border-color: var(--gold); background-size: cover; }
.lang-he .advisor-portrait { margin-right: 0; margin-left: 10px; }
.advisor-no-portrait .advisor-portrait { display: none; }
.advisor-names { flex-grow: 1; flex-shrink: 1; }
.advisor-name { color: var(--gold-light); font-size: 24px; white-space: normal; }
.advisor-role { font-size: 15px; letter-spacing: 2px; }
.advisor-close { min-width: 44px; min-height: 44px; -unity-text-align: middle-center; }
.advisor-body { flex-shrink: 1; min-height: 0; }
.advisor-text { white-space: normal; font-size: 22px; margin: 6px 0 8px 0; }
.advisor-actions { flex-wrap: wrap; }
.advisor-got-it { margin-left: auto; }
.lang-he .advisor-got-it { margin-left: 0; margin-right: auto; }
.advisor-count { font-size: 15px; -unity-text-align: middle-right; }
.lang-he .advisor-count { -unity-text-align: middle-left; }
/* "Report a bug or idea" (#1169, FeedbackPresenter): the same backdrop over everything, the start screen too; each GitHub
   choice with the lines its form opens with under it, wrapped (a user agent is long). */
.feedback-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; background-color: rgba(5, 9, 18, 0.6); padding: 16px; }
.feedback-open .feedback-layer { display: flex; }
.feedback-panel { width: 560px; max-width: 100%; max-height: 100%; padding: 18px; background-color: rgb(11, 18, 32); }
.feedback-intro, .feedback-preview { white-space: normal; }
.feedback-choice { margin-top: 10px; }
.feedback-preview { font-size: 15px; margin: 2px 4px 0 4px; }
.feedback-actions { justify-content: flex-end; margin-top: 12px; flex-shrink: 0; }
/* "Share" (#1170, SharePresenter): the turn report's kind of backdrop, drawn over everything, the report too; a preview of the picture (#1237), which
   gives way first in a short window, the post, the Share button, the site buttons, and the notes once the picture downloaded. */
.share-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; background-color: rgba(5, 9, 18, 0.6); padding: 16px; }
.share-open .share-layer { display: flex; }
.share-panel { width: 560px; max-width: 100%; max-height: 100%; padding: 18px; background-color: rgb(11, 18, 32); }
.share-preview { height: 160px; min-height: 48px; flex-shrink: 1; margin-bottom: 12px; background-size: contain; background-repeat: no-repeat; background-position-x: center; background-position-y: center; }
.share-post, .share-attach, .share-instagram-note { white-space: normal; }
.share-go { margin-top: 12px; }
.share-copied { white-space: normal; margin-top: 6px; }
.share-attach, .share-instagram-note { margin-top: 12px; }
.share-sites { flex-wrap: wrap; margin-top: 6px; }
.share-sites > Button { margin: 4px 8px 0 0; }
.share-actions { justify-content: flex-end; margin-top: 12px; flex-shrink: 0; }
/* A top-bar number's explanation (MeterTip, #1037): under the bar, wrapped, kept inside the window by MeterTip. */
.meter-tip {
    display: none; position: absolute; max-width: 420px; padding: 6px 10px;
    background-color: var(--navy-solid); border-color: var(--gold); border-width: 1px; border-radius: 3px;
}
.meter-tip-line { font-size: 16px; white-space: normal; color: var(--ink); margin: 0; padding: 0; }

/* Wide screens (Cabinet and Defence, laid out as promo/final/04 and 08): from the left edge to the minimap column, over the
   info panel (an opaque reading screen; the info panel is about a hex, not needed while reading a screen). The event card
   and the minimap stay in view (UiLayoutTests). */
.screen-wide { left: 84px; bottom: 100px; }
/* While a wide screen is open the toast's corner (B7) is under it, so the toast moves to the strip the wide screen leaves
   free at the bottom, between the window's left edge and the minimap column: opaque, clear of the screen and the column
   (PromoHudTests.TheToastIsOpaqueAndClearOfTheScreens). Two lines fit. */
.wide-screen-open .toast { top: auto; bottom: 16px; left: 84px; right: 512px; width: auto; padding: 6px 12px; }
/* The info panel under an open wide screen is hidden (ScreenNav sets wide-screen-open): no focus, no clicks, no updates. */
.wide-screen-open .info-panel { display: none; }
.section-title {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    color: var(--gold); letter-spacing: 3px; font-size: 17px; margin: 0 0 8px 2px; padding: 0;
}
.wrap { white-space: normal; }

/* Bars (UiBar): a dark track and a coloured fill, each fill at least 3:1 against the track (PromoScreensTests). */
.ui-bar { height: 8px; min-width: 40px; flex-grow: 1; flex-shrink: 1; background-color: rgb(34, 42, 58); border-radius: 2px; overflow: visible; }
.ui-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background-color: var(--gold); }
.ui-bar-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background-color: var(--ink); }
.ui-bar--competence .ui-bar-fill { background-color: rgb(86, 164, 204); }
.ui-bar--loyalty .ui-bar-fill { background-color: rgb(104, 186, 132); }
.ui-bar--stability .ui-bar-fill { background-color: var(--gold); }
.ui-bar--mobilization .ui-bar-fill { background-color: rgb(152, 178, 96); }
.ui-bar--budget .ui-bar-fill { background-color: rgb(152, 178, 96); }
.big-bar { height: 16px; }

/* Person cards (PersonCard): a framed portrait (or a plate with the initials), then name, office, party and the two bars. */
.seat {
    flex-direction: column; align-items: stretch; justify-content: flex-start; width: 190px;
    padding: 0 0 8px 0; margin: 4px; -unity-text-align: upper-center; border-color: rgba(196, 160, 92, 0.6);
}
.card-plate { height: 150px; flex-shrink: 0; background-color: var(--navy-raised); border-bottom-width: 1px; border-color: var(--gold-dim); overflow: hidden; }
.card-portrait { flex-grow: 1; background-size: cover; }
.card-initials {
    flex-grow: 1; -unity-text-align: middle-center; font-size: 46px; color: rgba(196, 160, 92, 0.75);
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); letter-spacing: 2px;
}
.card-name {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 19px; color: var(--ink); -unity-text-align: upper-center; white-space: normal; margin: 6px 6px 0 6px; padding: 0;
}
.card-office { font-size: 15px; color: var(--ink-dim); -unity-text-align: upper-center; white-space: normal; margin: 0 6px; padding: 0; }
.card-party { font-size: 15px; color: var(--gold); -unity-text-align: upper-center; white-space: normal; -unity-font-style: italic; margin: 0 6px 4px 6px; padding: 0; }
.card-stat { flex-direction: row; align-items: center; height: 21px; padding: 0 10px; }
.card-stat-name { width: 82px; flex-shrink: 0; font-size: 15px; color: var(--ink-dim); -unity-text-align: middle-left; padding: 0; margin: 0; }
.card-stat-value { width: 24px; flex-shrink: 0; font-size: 16px; color: var(--ink); -unity-text-align: middle-right; padding: 0; margin: 0; }
.seat-selected { border-color: var(--gold-light); background-color: var(--navy-raised); }
/* The selected seat's tag (#41 M6): a gold band with a word across the foot of the plate, the mark that is not a colour.
   Absolute, so the card's layout does not move; not a thicker rim, which the border-box would take out of the content
   and which the audit's L3 proposes for focus. Not in the .seat:focus text list below: it keeps its colours under focus. */
.card-selected {
    display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; padding: 0; margin: 0;
    background-color: var(--gold-light); color: var(--navy-deep); font-size: 15px; -unity-text-align: middle-center;
}
.seat-selected .card-selected { display: flex; }
.seat-vacant .card-name { color: var(--ink-dim); }
.appointed { color: var(--gold); }
/* A keyboard-focused card takes the warm focus fill (Button:focus); its dim and gold text turn light to stay legible on it. */
.seat:focus .card-name, .seat:focus .card-office, .seat:focus .card-party, .seat:focus .card-stat-name, .seat:focus .card-stat-value,
.seat:focus .card-initials { color: var(--focus-ink); }

/* The Cabinet: the Prime Minister's card and the appointment list at the side; the house and the cards in the main column. */
.cabinet-side { width: 300px; flex-shrink: 0; margin-right: 14px; }
.cabinet-main { min-width: 0; }
.pm-card { width: auto; margin: 0 0 8px 0; padding-bottom: 12px; }
.pm-card .card-plate { height: 250px; }
.pm-card .card-name { font-size: 27px; color: var(--gold-light); margin-top: 8px; }
.pm-card .card-office { font-size: 17px; }
.pm-card .card-party { font-size: 17px; margin-bottom: 8px; }
.pm-card .card-stat { height: 26px; padding: 0 16px; }
.pm-card .card-stat-name { font-size: 16px; width: 96px; }
.pm-card .ui-bar { height: 10px; }
/* On a short window (1568x752 is 997 logical px tall) the side column is full. The orders line wraps and is never
   squeezed; the candidate list keeps its heading and two rows (220 px), and the Prime Minister's portrait gives way,
   down to the card's text. On a shorter one (32:9 is 764 px) CabinetPresenter.FitPick lowers the list's floor to the room
   left (#41 M7). */
.pm-card { flex-shrink: 1; min-height: 160px; }
.pm-card > * { flex-shrink: 0; }
.pm-card .card-plate { flex-shrink: 1; min-height: 0; }
#cabinet-pick { flex-grow: 1; flex-shrink: 1; min-height: 220px; }
#cabinet-status { white-space: normal; flex-shrink: 0; }
/* The Appoint heading wraps rather than run past the 300 px side column (B5; PromoHudTests.TheAppointHeadingHasRoom). */
#cabinet-pick-title { white-space: normal; }
.pm-offices { flex-direction: row; flex-wrap: wrap; margin: -2px 0 8px 0; flex-shrink: 0; }
.pm-office { font-size: 15px; padding: 3px 10px; margin: 0 6px 4px 0; border-color: rgba(196, 160, 92, 0.6); }
/* A selected office the Prime Minister holds himself has no plate for the tag (#41 M6): its rim doubles instead, a mark
   that is not a colour. The padding gives the pixel back, so the button keeps its size. */
.pm-office.seat-selected { border-width: 2px; padding: 2px 9px; }
.cabinet-house {
    flex-direction: row; flex-wrap: wrap; align-items: center; flex-shrink: 0; margin: 0 5px 8px 5px; padding: 10px 14px;
    background-color: rgba(5, 9, 18, 0.55); border-width: 1px; border-color: var(--gold-dim); border-radius: 2px;
}
.hemicycle-box { width: 320px; height: 168px; flex-shrink: 0; margin-right: 18px; }
.hemicycle { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.hemicycle-count { position: absolute; left: 0; right: 0; bottom: 0; align-items: center; }
.house-size { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); font-size: 34px; color: var(--ink); padding: 0; margin: 0; -unity-text-align: lower-center; }
.house-unit { font-size: 15px; letter-spacing: 2px; color: var(--ink-dim); padding: 0; margin: 0; -unity-text-align: upper-center; }
.house-legend { flex-grow: 1; flex-shrink: 1; min-width: 260px; }
.house-coalition { font-size: 20px; color: var(--ink); white-space: normal; }
.house-stability { flex-grow: 0; height: 8px; margin: 3px 0 6px 0; max-width: 360px; }
.house-legend > Label { padding-top: 0; padding-bottom: 0; }
/* The chips in two groups, coalition then opposition, each a wrapping row opened by its side's name (#41 M5). */
.party-chips { flex-direction: column; margin-top: 6px; }
.party-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
.party-group-heading {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 15px; color: var(--ink); padding: 0; margin: 0 10px 1px 0;
}
.party-chip { flex-direction: row; align-items: center; margin: 0 12px 1px 0; }   /* 1 px under each row (was 2): the 15 px chips (#2522) keep a card row in view at 2560x1080, 125% */
.party-chip > Label { font-size: 15px; color: var(--ink-dim); padding: 0; margin: 0; }
.party-swatch { width: 11px; height: 11px; border-radius: 6px; margin-right: 5px; }
.party-swatch--hollow { border-width: 1.2px; border-color: var(--ink-dim); }
#cabinet-seats .unity-scroll-view__content-container { flex-direction: row; flex-wrap: wrap; }
.candidate { flex-direction: column; align-items: stretch; margin-bottom: 4px; }
.candidate > Button { white-space: normal; }
.reason { color: var(--ink-dim); font-size: 16px; white-space: normal; flex-shrink: 1; }

/* Defence: three panels side by side that wrap in a narrow window, then the budget share. */
.defence-row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.defence-panel {
    margin: 6px; padding: 14px 16px; background-color: rgba(5, 9, 18, 0.55);
    border-width: 1px; border-color: var(--gold-dim); border-radius: 2px;
}
.defence-leadership { flex-grow: 3; flex-basis: 560px; }
.defence-ladder { flex-grow: 2; flex-basis: 380px; }
.defence-callup { flex-grow: 1; flex-basis: 300px; }
.leaders { flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
.leader .card-plate { height: 200px; }
.leader .card-name { font-size: 20px; }
.leader {
    width: 172px; flex-grow: 1; max-width: 230px; margin: 4px; padding-bottom: 8px; background-color: var(--navy-deep);
    border-width: 1px; border-color: rgba(196, 160, 92, 0.6); border-radius: 2px;
}
.rung { flex-direction: row; align-items: center; padding: 8px 10px; margin: 2px 0; border-left-width: 3px; border-color: rgba(0, 0, 0, 0); background-color: rgba(255, 255, 255, 0.03); }
.rung-name { white-space: normal; font-size: 18px; flex-shrink: 1; min-width: 0; }
.rung-turn { font-size: 15px; margin-left: 8px; flex-shrink: 0; }
/* The turn length is a lighter muted than --ink-dim: 15 px text loses about a fifth of its contrast to anti-aliasing, and
   ink-dim's 5.0:1 on a plain rung measured 4.0 to 4.2:1 (#41 re-check). This is 6.3:1, still quieter than ink. */
.rung .rung-turn { color: rgb(190, 184, 170); }
.rung-current { border-color: var(--gold-light); background-color: rgba(196, 160, 92, 0.20); }
.rung-current .rung-name { color: var(--gold-light); }
/* The muted turn length is 3.3:1 on the lit rung; ink is 6.4:1 (#41 M4). */
.rung-current .rung-turn { color: var(--ink); }
/* The level an order will move to at End Turn: a dashed-looking ink edge, distinct from the lit current level. */
.rung-target { border-color: var(--ink); border-left-width: 3px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; }
.big-figure { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); font-size: 44px; color: var(--ink); padding: 0; margin: 0 0 4px 0; }
.defence-callup .big-bar { flex-grow: 0; margin: 4px 0 10px 0; }
.defence-budget { flex-direction: row; align-items: center; }
.budget-title { margin: 0 18px 0 0; }
.budget-share { margin-left: 16px; font-size: 18px; }
/* A Budget row's office name wraps within the room its buttons leave, so no row is wider than the screen (the
   longest, "Minister of Education and Culture (no office until 10 March 1949)", in either language). */
.budget-office { white-space: normal; flex-shrink: 1; min-width: 0; }
/* A wide screen's header wraps its subtitle under the title when the window is narrow. */
/* Square and narrower windows: a slimmer side column leaves room for two columns of cards. */
.hud-two-row .cabinet-side { width: 250px; }
.hud-two-row .pm-card .card-plate { height: 210px; }
/* #210: in the two-row (narrow) HUD every screen takes the full width under the bar. While one is open the minimap column
   and the info panel under it are hidden (no focus, no clicks), and the toast takes the strip below the screen. */
.hud-two-row .screen { left: 84px; right: 16px; bottom: 100px; }
.hud-two-row.screen-open .right-column, .hud-two-row.screen-open .info-panel { display: none; }
/* Any open screen sits where the decision card does: the card waits, hidden and out of reach, until the screen closes. */
.screen-open .event-layer { display: none; }
.hud-two-row.screen-open .toast { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; padding: 6px 12px; }
.hud-two-row .cabinet-house { justify-content: center; }

/* Loading (playtest 2, P2-1): until GameRoot is ready only this line shows; the bar's values, the info panel and the
   right-hand column are kept out of sight (visibility, so the layout does not jump when they appear). A boot failure is
   longer than the panel at phone width, so the line wraps with a side margin instead of overflowing both edges (#765). */
.loading-line { display: none; position: absolute; left: 0; right: 0; top: 45%; -unity-text-align: middle-center; font-size: 28px; color: var(--ink); white-space: normal; padding-left: 24px; padding-right: 24px; }
.loading .loading-line { display: flex; }
.root.loading { background-color: var(--navy-solid); }   /* the template's navy, not the default sky (final review M1) */
.loading .date-box, .loading .meters, .loading .nav, .loading .left-column, .loading .community-column, .loading .turn-box, .loading .info-panel, .loading .right-column, .loading .event-layer { visibility: hidden; }

/* Map labels (visual v1 Task 9; promo HUD pass: rounder, a firmer gold edge): the promo's dark pill with a thin gold edge, in EB Garamond SemiBold. Each pill sits in a
   zero-size slot that MapLabelsPresenter moves with an inline translate; the anchor class says which corner of the pill sits
   on the marker's top. Hidden while the game loads. */
.map-labels { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.loading .map-labels { display: none; }
/* The map's keyboard stop (#41 B1b, #1116): the whole map area, invisible; only its ring shows, and only while the stop
   has the keyboard focus (and is enabled: ScreenNav disables it under a covering screen). The ring is gold-light between
   two navy-deep outlines, so one of its colours keeps >= 3:1 against any map colour (WCAG 1.4.11; MapFocusTests). The
   outlines are 3 panel px so they stay two screen px at 1280x720 (the panel draws at about 2/3 there).
   MapFocusPresenter puts left/top on the camera's look-at point; the translate centres the ring there. */
.map-focus { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.map-focus-mark {
    display: none; position: absolute; width: 40px; height: 40px; translate: -50% -50%;
    border-width: 3px; border-color: var(--navy-deep); border-radius: 20px;
}
.map-focus:focus:enabled > .map-focus-mark { display: flex; }
.map-focus-ring { flex-grow: 1; border-width: 4px; border-color: var(--gold-light); border-radius: 17px; }
.map-focus-inner { flex-grow: 1; border-width: 3px; border-color: var(--navy-deep); border-radius: 13px; }
.map-label-slot { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; }
.map-label {
    position: absolute;
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 18px;
    color: rgb(243, 234, 216);
    background-color: rgba(14, 22, 38, 0.82);
    border-width: 1px;
    border-color: var(--gold);
    border-radius: 14px;
    padding: 1px 12px 2px 12px;
    margin: 0;
    -unity-text-align: middle-center;
    white-space: nowrap;
}
/* The last hex of each turn in a multi-turn go-to: a number centred on the route, not a settlement name, at a city name's
   size (.map-label-city) so it reads at the default zoom; the disc holds two digits. */
.map-route-turn {
    width: 36px;
    height: 36px;
    translate: -50% -50%;
    padding: 0;
    border-radius: 18px;
    font-size: 23px;
    background-color: rgba(14, 22, 38, 0.92);
}
.map-label-city { font-size: 23px; color: rgb(250, 242, 224); }
.map-label-town, .map-label-arab_town { font-size: 19px; }
/* #1063: the city under the pointer (its hexes or its pill) lights its pill, ivory like the map's selected-hex outline, to say
   a click opens it. Colours only: a border or padding change would resize the pill and move the names round it. */
.map-label-hover { background-color: rgb(250, 242, 224); color: rgb(14, 22, 38); }
/* The population tier (#710): the city's static 1948 tier as a gold disc at the start of its name, over the pill's start
   padding (left, or right in Hebrew). The disc is the pill's sibling in its slot; MapLabelsPresenter sets its left and
   top from the pill's size. */
.map-label-with-tier { padding-left: 36px; }
/* The Hebrew UI mirrors it: the disc starts a Hebrew name on the right (owner, on #897); 12px is .map-label's own padding. */
.lang-he .map-label-with-tier { padding-left: 12px; padding-right: 36px; }
.map-label-tier {
    position: absolute;
    translate: 0 -50%;
    width: 23px;
    height: 23px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background-color: var(--gold);
    color: rgb(14, 22, 38);
    font-size: 17px;
    -unity-text-align: middle-center;
}
/* The 1948 localities (named only at close zoom): the same pill, smaller and quieter; today's name in a tooltip under it. */
.map-label-locality { font-size: 15px; padding: 0 9px 1px 9px; color: rgb(232, 222, 200); background-color: rgba(14, 22, 38, 0.72); }
.map-label-tooltip {
    position: absolute;
    translate: -50% 0;
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 15px;
    color: rgb(243, 234, 216);
    background-color: rgba(14, 22, 38, 0.92);
    border-width: 1px;
    border-color: var(--gold);
    border-radius: 6px;
    padding: 1px 8px 2px 8px;
    margin: 0;
    white-space: nowrap;
}
/* #803 (owner, 24 October 2026, "1521: 1. a 2.a"): a game settlement's control state as a short word tag under its name,
   in one quiet colour for every state (the localities' own), never a number. The tag is the name's sibling in its slot,
   lined up with the name by the anchor class below (the name's, without the lift); MapLabelsPresenter places the two as one. */
.map-label-control {
    position: absolute;
    left: 0;
    top: 0;
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 15px;
    color: rgb(232, 222, 200);
    background-color: rgba(14, 22, 38, 0.72);
    border-radius: 6px;
    padding: 0 6px 1px 6px;
    margin: 0;
    -unity-text-align: middle-center;
    white-space: nowrap;
}
.map-label-control-centre { translate: -50% 0; }
.map-label-control-left { translate: 0 0; }
.map-label-control-right { translate: -100% 0; }
.anchor-lower-centre { translate: -50% -100%; }
.anchor-lower-left { translate: 0 -100%; }
.anchor-lower-right { translate: -100% -100%; }

/* The start screen (StartScreenPresenter): the painting of the 14 May 1948 hall, two lines of the Declaration (official
   Hebrew, official English under each), Continue and New Game. Hidden until GameRoot shows it; while it shows (.start-open
   on the root) the HUD under it is hidden, so it takes no focus and no clicks, and the painting is opaque over the map.
   The painting fills the window (cover, anchored at the top centre, so a narrower window crops both sides alike and the
   aisle stays in the middle) and the panel sits at the foot over the audience; a tall window (.start-band) stacks the
   whole painting, as a full-width band, over the panel (StartScreenPresenter.Fit). */
.start-screen { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: var(--navy-deep); }
.start-open .start-screen { display: flex; }
.start-open .top-bar, .start-open .left-column, .start-open .community-column, .start-open .right-column, .start-open .event-layer, .start-open .info-panel, .start-open .screen, .start-open .map-labels { display: none; }
.start-art {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    background-image: url("project://database/Assets/UI/StartScreen/declaration-hall.jpg");
    background-size: cover; background-position-x: center; background-position-y: top; background-repeat: no-repeat;
}
.start-band .start-art { bottom: auto; }
.start-body { position: absolute; left: 0; top: 0; right: 0; bottom: 0; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 16px 28px 16px; }
.start-band .start-body { padding-top: 16px; padding-bottom: 16px; }
.start-panel {
    width: 1240px; max-width: 100%; flex-shrink: 0; align-items: center; padding: 18px 40px 20px 40px;
    background-color: rgba(9, 14, 26, 0.88);
}
.start-title {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 50px; color: var(--gold-light); letter-spacing: 2px; -unity-text-align: middle-center; margin: 0;
}
.start-rule { width: 60%; margin: 2px 0 10px 0; }
/* Hebrew in Frank Ruhl Libre (EB Garamond has no Hebrew; #193) through the advanced text generator, which orders
   right-to-left text and the numbers in it (StartScreenTests renders it and checks the order). */
.start-he {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/FrankRuhlLibre/FrankRuhlLibre-Medium.ttf");
    -unity-text-generator: advanced;
    font-size: 34px; color: var(--ink); -unity-text-align: middle-center; white-space: normal; margin: 4px 0 0 0;
}
.start-he-date { font-size: 28px; margin-top: 12px; }
/* --ink, not --ink-dim (#2340 L5): the panel blends in linear light, so the lit hats behind it took --ink-dim down to
   2.9:1 at 1568x752 (still 4.3:1 at 0.94 alpha); --ink holds 4.5:1 even where the painting is white. Their size keeps
   them under the Hebrew. */
.start-en { font-size: 18px; color: var(--ink); letter-spacing: 1px; -unity-text-align: middle-center; white-space: normal; margin: 2px 0 0 0; }
.start-source { font-size: 15px; color: var(--ink); -unity-text-align: middle-center; white-space: normal; margin: 14px 0 0 0; }
.start-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
/* A whole-pixel height (#1168): with Star on GitHub wrapped under New game on a phone held upright, a fractional row
   height shifts the panel's lines off whole pixels and the band layout (StartScreenPresenter.Fit) then rounds the
   panel's top back and forth, a layout that never settles. 50 px is the text's own height (49.5) rounded up. 300 px
   wide: Star on GitHub's label and its two signs (about 260 px in English, 290 in Hebrew) fit, so all are one size. */
.start-button {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
    font-size: 24px; min-width: 300px; height: 50px; margin: 4px 10px; padding: 8px 24px; -unity-text-align: middle-center;
}
/* The recording (DeclarationRecording): a quiet button and its credit under the source line; while it plays, its words as
   captions in a dark strip just above the panel, over the painting (the panel is the strip's positioned parent, so the
   strip follows it in every layout). */
.start-recording { display: none; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 8px; }
.start-listen, .start-report { font-size: 18px; padding: 4px 16px; margin: 2px 10px; -unity-text-align: middle-center; }
/* "Report a bug or idea" (#1169) in its own centred row under the actions, as quiet as the recording's button. A
   whole-pixel height: a fractional one shifts the panel's lines off whole pixels, and on a phone held upright the band
   layout (StartScreenPresenter.Fit) then rounds the panel's top back and forth, a layout that never settles. */
.start-community { flex-direction: row; justify-content: center; align-items: center; height: 40px; margin-top: 8px; }
/* The language choice (#2054) beside it, as quiet, with Settings' gold mark on the language in use
   (.settings-choice-selected). In the same row, so the panel keeps its height (StartScreenTests.ItFitsEveryWindowSize). */
.start-language { margin-left: 8px; }
/* In Hebrew the row mirrors like the rest of the UI (the owner, 31 Oct 2026): the pair left of Report, the gap on Report's side. */
.lang-he .start-language { margin-left: 0; margin-right: 8px; }
.start-language-button { font-size: 18px; min-width: 96px; padding: 4px 16px; margin: 2px 4px; -unity-text-align: middle-center; }
/* Quit (#2153), desktop players only: a .start-report after the languages, as far from them as Report is (10 + 8 + 4 px). */
.start-quit { margin-left: 18px; }
.lang-he .start-quit { margin-left: 10px; margin-right: 18px; }
/* Star on GitHub (#1168): a .start-button, New game's size, beside it (the row wraps it under New game in a narrow
   window). Its star and GitHub mark are painted into the left padding (the right in Hebrew; StartScreenPresenter
   PaintStarSigns). Secondary to New game in colour: no fill and a grey edge instead of the gold one; hover and keyboard
   focus still light it like any button (Button:hover and :focus are the more specific rules). */
.start-star { background-color: rgba(0, 0, 0, 0); border-color: var(--ink-dim); padding-left: 80px; -unity-text-align: middle-left; }
/* The label starts right after the signs, on their side. "Button." so it beats .lang-he .start-button (centred, later). */
.lang-he Button.start-star { padding-left: 24px; padding-right: 80px; -unity-text-align: middle-right; }
.start-recording-credit { font-size: 15px; color: var(--ink-dim); margin: 2px 6px; }
.start-caption {
    display: none; position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 12px; padding: 8px 20px 10px 20px;
    align-items: center; background-color: rgba(9, 14, 26, 0.88); border-radius: 3px;
}
.start-caption-he { font-size: 30px; margin: 0; }
.start-caption-en { font-size: 19px; color: var(--ink); white-space: normal; -unity-text-align: middle-center; margin: 4px 0 0 0; }
/* New Game's prompt (the toast) shows at the top of the start screen, clear of the panel. */
.start-open .toast { top: 24px; left: 25%; right: 25%; width: auto; }

/* --- The Hebrew UI (#193; UiLanguage, "?lang=he") -------------------------------------------------------------------
   GameRoot puts .lang-he on the root. Every text is then set in Frank Ruhl Libre (EB Garamond has no Hebrew; one weight,
   so headings lose the semi-bold) through the advanced text generator, which orders right-to-left text and the numbers
   in it. Each rule above that names EB Garamond is listed here; HebrewUiTests fails for one that is missed, including the
   classes only presenters add (it gives a label each). */
.lang-he, .lang-he .title, .lang-he .button, .lang-he Button, .lang-he .year, .lang-he .end-turn, .lang-he .draft,
.lang-he .why-group, .lang-he .turn-report-heading, .lang-he .end-screen-outcome, .lang-he .party-group-heading, .lang-he .section-title, .lang-he .card-initials, .lang-he .card-name, .lang-he .house-size,
.lang-he .big-figure, .lang-he .map-label, .lang-he .map-label-tooltip, .lang-he .map-label-control, .lang-he .start-title, .lang-he .start-button {
    -unity-font-definition: url("project://database/Assets/UI/Fonts/FrankRuhlLibre/FrankRuhlLibre-Medium.ttf");
    -unity-text-generator: advanced;
}
/* Mirrored for a right-to-left reader: text is set from the right, every row runs right to left (so a caption's value,
   a card's bars and a button's neighbours follow it on its left), and the side margins swap. What is placed by the map
   stays where it is: the minimap column, the info panel, the toast and the screens' position. Each text's paragraph
   direction is set in code from its own words (UiDirection), because dates, money and names are still English (#55). */
.lang-he { -unity-text-align: upper-right; }
.lang-he .button, .lang-he Button, .lang-he #event-options Button, .lang-he #capture-options Button { -unity-text-align: middle-right; }
/* The buttons and cards whose text is centred stay centred (the rule above is the more specific one). */
.lang-he .nav-button, .lang-he .seat { -unity-text-align: upper-center; }
.lang-he .event-reopen, .lang-he .event-hide, .lang-he .event-illustration, .lang-he .start-button, .lang-he .start-listen, .lang-he .start-report, .lang-he .start-language-button { -unity-text-align: middle-center; }
.lang-he .card-stat-name { -unity-text-align: middle-right; }
.lang-he .card-stat-value { -unity-text-align: middle-left; }
/* The Hebrew plate shows the first name's initial and the surname ("י. ידין", PersonCard.InitialAndSurname), not two
   letters: at 36 px the longest, "פ. ברנשטיין", fits the narrowest plate (measured by PromoScreensTests). */
.lang-he .card-initials { font-size: 36px; }
.lang-he .top-bar, .lang-he .year-row, .lang-he .date-row, .lang-he .meters, .lang-he .meter, .lang-he .meter-caption-row, .lang-he .meter-row, .lang-he .nav, .lang-he .row,
.lang-he .event-foot, .lang-he .event-head, .lang-he .info-panel, .lang-he .info-row, .lang-he .card-stat, .lang-he .pm-offices,
.lang-he .cabinet-house, .lang-he .party-group, .lang-he .party-chip, .lang-he .defence-row, .lang-he .leaders, .lang-he .rung,
.lang-he .defence-budget, .lang-he #cabinet-seats .unity-scroll-view__content-container, .lang-he .start-recording,
.lang-he .start-actions, .lang-he .start-community { flex-direction: row-reverse; }
.lang-he.hud-narrow .meter-row { flex-direction: column; align-items: flex-end; }
.lang-he .turn-box { align-items: flex-start; }
.lang-he .top-bar { padding: 0 8px 0 14px; }
.lang-he .date-box { margin-right: 0; margin-left: 10px; padding: 0 12px 0 10px; }
.lang-he .date-row Label { margin-right: 0; margin-left: 8px; }
.lang-he .meter { border-right-width: 0; border-left-width: 1px; padding: 0 3px 0 4px; }
.lang-he .meter-icon { margin-right: 0; margin-left: 5px; }
.lang-he #security-level { margin-left: 0; margin-right: 6px; }
.lang-he .meter-delta { margin-left: 0; margin-right: 7px; }
.lang-he.hud-narrow .meter-delta { margin-right: 0; }
.lang-he .meter-delta.delta-up, .lang-he .meter-delta.delta-down { padding-left: 0; padding-right: 9px; }
.lang-he .event-hide { margin: 2px 12px 0 0; }
.lang-he .event-image { margin-right: 0; margin-left: 12px; }
.lang-he .info-thumb { margin-right: 0; margin-left: 14px; }
.lang-he .info-row-sign { margin: 3px 0 0 10px; }
.lang-he .info-body > .row Button { margin-right: 0; margin-left: 6px; }
.lang-he .why-line { padding-left: 0; padding-right: 12px; }
.lang-he .turn-report-causes { padding: 4px 14px 4px 2px; }
.lang-he .section-title { margin: 0 2px 8px 0; }
.lang-he .cabinet-side { margin-right: 0; margin-left: 14px; }
.lang-he .pm-office { margin: 0 0 4px 6px; }
.lang-he .hemicycle-box { margin-right: 0; margin-left: 18px; }
.lang-he .party-chip { margin: 0 0 1px 12px; }   /* 1 px, as the English .party-chip (#2522) */
.lang-he .party-group-heading { margin: 0 0 1px 10px; }
.lang-he .party-swatch { margin-right: 0; margin-left: 5px; }
.lang-he .rung { border-left-width: 0; border-right-width: 3px; }
.lang-he .rung-target { border-left-width: 1px; border-right-width: 3px; }
.lang-he .rung-turn { margin-left: 0; margin-right: 8px; }
.lang-he .budget-title { margin: 0 0 0 18px; }
.lang-he .budget-share { margin-left: 0; margin-right: 16px; }
/* End Turn's hourglass is painted on the right in Hebrew (HudPresenter). */
.lang-he .end-turn { padding: 4px 40px 4px 14px; }
/* A bar fills from the right: the whole bar is flipped, so its fill and its mark (placed from the left in code) follow. */
.lang-he .ui-bar { scale: -1 1; }

/* #381: in Hebrew the GDD column's rule and margins mirror; on the two- and three-row HUD (narrower windows, taller) the
   panel keeps its 520 px and the GDD part stacks under the hex's facts, clear of the minimap. Last, so they win over the
   rules above at equal specificity. */
.lang-he .info-gdd { margin-left: 0; padding-left: 0; border-left-width: 0; margin-right: 14px; padding-right: 14px; border-right-width: 1px; }
.lang-he .info-gdd Button, .lang-he .info-projects Button { margin: 2px 0 2px 6px; }
.lang-he .info-gdd-pairs > .info-gdd-line { margin-right: 0; margin-left: 14px; }
.hud-two-row .info-panel.info-gdd-shown { width: 452px; flex-wrap: wrap; }
.hud-two-row .info-gdd { width: 100%; margin: 8px 0 0 0; padding: 8px 0 0 0; border-left-width: 0; border-right-width: 0; border-top-width: 1px; }

/* The tight HUD (#40, the UI scale's 125% and 150% - HudPresenter.TightClass): a window at 125% or 150% has a logical
   size smaller than any the 100% layout is tested at, in both directions at once (1920x1080 at 150% is 1280x720
   logical). The stacked bar, the icon column, the decision layer and the panels take their tight sizes below, so the
   HUD holds at those sizes. The bounds (HudPresenter.TightBelowHeightPx and friends) sit between the smallest sizes the
   100% suites pin and the sizes only a scale choice reaches. At 100% only a phone held upright (narrower than
   TightBelowWidthPx, 390x844 is about 790 logical px) is tight. */
/* The bar keeps its tier shapes, tightened: the rows the tiers wrap, at sizes the small logical height can pay. The
   three-row height is a floor the rows can outgrow (HudPresenter.PlaceUnderBar, TightThreeRowBarPx). */
.hud-tight.hud-narrow .top-bar { height: 96px; }
.hud-tight.hud-two-row .top-bar { height: 172px; }
/* The tight two-row bar's meters take 79% of it, not 78%: at 960x600 on 125% (1455 logical px) the plate, 78% and New Game
   still fitted the first row, and End Turn wrapped alone under the plate, out of the bar (TopBarTests). At 79% New Game
   and End Turn share the second row on every tight two-row width, 1213 to 1455 px, as on the two-row bar at 100%; at
   80% the meters no longer fit beside the plate at 1213 px. Its rows grow it past 172 px when the text floor raises the
   plate (HudPresenter.PlaceUnderBar, TightTwoRowBarPx). */
.hud-tight.hud-two-row .meters { width: 79%; }
.hud-tight.hud-three-row .meters { width: 100%; }   /* the three-row bar is two-row too: its meters keep their own row */
.hud-tight.hud-three-row .top-bar { height: 200px; }
.hud-tight .top-bar { padding-top: 4px; padding-bottom: 3px; }
.hud-tight .meter { min-width: 0; padding: 0 4px; }
.hud-tight .meter-value { font-size: 16px; }
.hud-tight .meter-delta { font-size: 15px; }
/* The tight three-row bar keeps the narrow bar's values (22 px, deltas 15 px): a phone held upright at 100% is tight too,
   and at its 0.49 scale 16 px values were 8 screen px, smaller than the floored captions above them. Its rows grow the
   bar (PlaceUnderBar). */
.hud-tight.hud-three-row .meter-value { font-size: 22px; }
.hud-tight.hud-three-row .meter-delta { font-size: 15px; }
.hud-tight.hud-narrow .right-column, .hud-tight.hud-narrow .left-column, .hud-tight.hud-narrow .event-gutter, .hud-tight.hud-narrow .event-layer, .hud-tight.hud-narrow .screen, .hud-tight.hud-narrow .toast { top: 108px; }
.hud-tight.hud-two-row .right-column, .hud-tight.hud-two-row .left-column, .hud-tight.hud-two-row .event-gutter, .hud-tight.hud-two-row .event-layer, .hud-tight.hud-two-row .screen, .hud-tight.hud-two-row .toast { top: 184px; }
.hud-tight.hud-three-row .right-column, .hud-tight.hud-three-row .left-column, .hud-tight.hud-three-row .event-gutter, .hud-tight.hud-three-row .event-layer, .hud-tight.hud-three-row .screen, .hud-tight.hud-three-row .toast { top: 212px; }
/* The icon column: 40 px discs, 4 px apart, so six of them end at 372 px under the tight narrow bar and 448 px under
   the tight two-row one, and the info panel caps below them. On the tight three-row window they become a row instead
   (below). */
.hud-tight .left-column { width: 46px; }
.hud-tight .left-column .rail-button { width: 40px; height: 40px; margin: 0 0 4px 0; }
.hud-tight .left-column .rail-button .nav-disc { width: 40px; height: 40px; padding: 9px; border-radius: 20px; }
/* On the tight three-row bar the column is a ROW under it: the upright discs would not fit between the bar and the
   window's foot on a short window, while a row takes only one disc's height. The discs keep the phone's 60 px (the
   three-row column's above): a phone held upright at 100% is tight too, and its panel scale falls to about 0.41
   (375x667), where 60 px is still 24 screen px (LeftColumnTests). In Hebrew the row mirrors and stays at the left, as
   the column does (#550). The panels below it start under the row (top 276 px: the row's 212, its 60 and a 4 px gap).
   The row spans the window less 8 px each side (the full-window screen's inset) and the discs stand 2 px apart (the
   column's own gap at 100%), so the eight of them (494 px) fit the narrowest tight phone, 360x800 at 150% (517 logical
   px wide; LeftColumnTests), with the row's left edge inside the column test's 3% of the window. */
.hud-tight.hud-three-row .left-column { left: 8px; right: 8px; top: 212px; width: auto; flex-direction: row; align-items: flex-start; }
.hud-tight.hud-three-row .left-column > .rail-button { width: 60px; height: 60px; margin: 0 2px 0 0; }
.lang-he.hud-tight.hud-three-row .left-column { flex-direction: row-reverse; justify-content: flex-end; }
.hud-tight.hud-three-row .left-column > .rail-button .nav-disc { width: 60px; height: 60px; padding: 14px; border-radius: 30px; }
.hud-tight.hud-three-row .right-column, .hud-tight.hud-three-row .event-layer, .hud-tight.hud-three-row .toast { top: 276px; }
/* A screen on the tight three-row window takes the window (the mobile-modal pattern): the tight bar and the rail row
   leave no usable strip for one at 853x480 logical (150% on 1280x720). The rail and the bar wait under it; the screen's
   own X closes it (ScreenNav). The two-row rule already hides the right column and the info panel while one is open.
   The toast keeps the two-row rule's place at the window's foot, over the screen's bottom edge, clear of its header. */
.hud-tight.hud-three-row .screen { top: 8px; left: 8px; right: 8px; bottom: 8px; }
.hud-tight.hud-three-row.screen-open .toast { top: auto; }
/* The backdrop's strip and its scrim start at the tight column's right edge; the band over the bar-to-layer gap narrows
   to the tight gap (12 px). On the tight three-row window the column is the rail row: the band stays the 12 px from the
   bar to the row's top, the strip takes over across the window's width from there to the layer's top (the row's 60 px
   and its 4 px gap), still under the buttons, and the scrim spans the window from the layer's top. */
.hud-tight .event-gutter { width: 62px; }
.hud-tight .event-scrim { left: 46px; }
.hud-tight .event-scrim-top { top: -12px; height: 12px; }
.hud-tight.hud-three-row .event-gutter { top: 212px; bottom: auto; left: 0; right: 0; width: auto; height: 64px; }
.hud-tight.hud-three-row .event-scrim { left: -16px; }
.hud-tight.hud-three-row .event-scrim-top { top: -76px; height: 12px; }
/* The decision card starts right of the tight column (the three-row rule's reason, now at every tight tier): the
   column's 46 px at the layer's 16 px, so a narrow window never lays the card over it. */
.hud-tight .event-layer { padding-left: 54px; }
.hud-tight.hud-three-row .event-layer { padding-left: 0; }
/* The info panel never rises into the bar or the side menu: on a tight window HudPresenter.FitInfoPanel caps its height
   below the lower of them (the column, or the rail row on the three-row bar), and on the tight three-row window its
   width clear of the minimap (222 px; it keeps its size there, so its 50 px buttons stay at least 24 screen px on a
   phone held upright, MinimapReliefTests), or, where that leaves the panel too narrow (a phone at 125% or 150%), it
   stands above the minimap and its caption at the window's width. The caps are set in code from laid-out bounds: Unity's USS has no
   calc(). Content taller than the cap scrolls: the panel is a ScrollView now (Game.uxml), its rows laid out by the
   scroll content container. */
.info-panel .unity-scroll-view__content-container { flex-direction: row; align-items: flex-start; }
/* The ScrollView itself lays out its viewport and scroller, not the rows: a column that stretches them, as a ScrollView's
   own default. With the panel's row and flex-start (and Hebrew's row-reverse) the viewport took its content's measured
   width, which varied between layout passes: in a busy run the content was laid out 341 px wide and 1200 px tall at
   390x844, and the panel grew into the border caption (ControlTests, 2 of 5 full runs). */
.info-panel.unity-scroll-view, .lang-he .info-panel.unity-scroll-view { flex-direction: column; align-items: stretch; }
/* In Hebrew the rows mirror as on the row-reversed panel before (#550): the ScrollView's own row-reverse does not reach the
   content container, which lays the rows out (owner decision on #1135, 22 Oct 2026). */
.lang-he .info-panel .unity-scroll-view__content-container { flex-direction: row-reverse; }
.hud-two-row .info-panel.info-gdd-shown .unity-scroll-view__content-container { flex-wrap: wrap; }
/* The pioneer list (#1788) is a ScrollView inside the panel: the three rules above reach its content container too, and
   laid its entries out in one row (InfoPanelLayoutTests' pioneer tests). Its own content stays a list. */
.info-panel .pioneer-list .unity-scroll-view__content-container,
.lang-he .info-panel .pioneer-list .unity-scroll-view__content-container,
.hud-two-row .info-panel.info-gdd-shown .pioneer-list .unity-scroll-view__content-container { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
/* The Cabinet on a tight window: a slimmer side column and a smaller half circle, so the seats list keeps its room. */
.hud-tight .cabinet-side { width: 220px; }
.hud-tight .pm-card .card-plate { height: 180px; }
.hud-tight .cabinet-house { padding: 6px 10px; margin-bottom: 6px; }
.hud-tight .screen { padding: 10px; }
.hud-tight .screen-header { margin-bottom: 6px; padding-bottom: 2px; }

/* #955: paired answers remain side by side, wrapping within equal columns. */
.timeline-columns { flex-direction: row; align-items: stretch; }
.timeline-columns > Label { flex-basis: 0; flex-grow: 1; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: normal; }
.lang-he .timeline-columns { flex-direction: row-reverse; }
.timeline-headings { flex-shrink: 0; margin-bottom: 8px; color: var(--gold-light); }
.timeline-row { flex-shrink: 0; border-bottom-width: 1px; border-color: var(--gold-dim); padding: 10px 4px; }
.timeline-line { white-space: normal; }
#timeline-title { color: var(--gold-light); margin-bottom: 6px; }
#timeline-date { font-size: 16px; }
.timeline-diverged { border-left-width: 3px; padding-left: 8px; }
.lang-he .timeline-diverged { border-left-width: 0; border-right-width: 3px; padding-left: 4px; padding-right: 8px; }
#timeline-difference, #timeline-rejoined { color: var(--gold-light); }

/* Show me's gold ring (spec 7.3), round the named part of the HUD; the guide's ring, moved. The layer shows for the ring
   alone too (the encyclopedia's Show me), with the popup hidden. */
.advisor-ring { display: none; position: absolute; border-width: 3px; border-color: var(--gold-light); border-radius: 6px; }
.advisor-ring-open .advisor-layer, .advisor-ring-open .advisor-ring { display: flex; }
.advisor-popup { display: none; }
.advisor-open .advisor-popup { display: flex; }
/* Under Attention's ring, End Turn's border is kept clear of it (AdvisorOpeningParityTests): 5 px in the
   one-row bar, 8 in the narrow one. */
.advisor-ring-open #attention { margin-bottom: 5px; }
.advisor-ring-open.hud-narrow #attention { margin-bottom: 8px; }

/* The help-level choices can wrap within narrow Settings screens (spec6). */
.settings-advisors { flex-wrap: wrap; flex-shrink: 1; }

/* Only spec3.3 verified quotes, separated from the advisor's game dialogue, with their source. */
.advisor-quote { white-space: normal; font-size: 20px; -unity-font-style: italic; margin: 2px 12px 0 12px; border-left-width: 2px; border-color: var(--gold-dim); padding-left: 8px; }
.lang-he .advisor-quote { border-left-width: 0; border-right-width: 2px; padding-left: 0; padding-right: 8px; }
.advisor-quote-source { white-space: normal; font-size: 15px; margin: 2px 12px 6px 12px; }

/* User-started advisor media: live caption replaces the prose; no shipped media row means no Watch badge. */
.advisor-watch { display: none; position: absolute; bottom: 0; left: 0; right: 0; min-width: 0; font-size: 15px; padding: 1px 2px; }
.advisor-media, .advisor-media-label { display: none; }
.advisor-media { width: 100%; height: 205px; flex-shrink: 0; background-size: contain; background-color: var(--navy-deep); }
.advisor-watching .advisor-media, .advisor-watching .advisor-media-label { display: flex; }
.advisor-narrating .advisor-media-label { display: flex; }   /* a voice-only line: portrait and caption stay, the disclosure under it */
.advisor-watching .advisor-portrait { display: none; }
.advisor-media-label { white-space: normal; font-size: 15px; flex-shrink: 0; }
/* While a clip plays in the popup, the live caption and the buttons keep their full size; the credit's scroll view takes
   what is left (the v0.3.0 release check: Dayan's seven-line credit cut the caption to one line). */
.advisor-media-credits { display: none; flex-shrink: 1; min-height: 0; }
.advisor-watching .advisor-media-credits, .advisor-narrating .advisor-media-credits { display: flex; }
.advisor-watching .advisor-body, .advisor-actions, .advisor-count { flex-shrink: 0; }
.advisor-overlay { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; background-color: rgba(5, 9, 18, 0.72); padding: 16px; }
.advisor-overlay-open .advisor-overlay { display: flex; }
.advisor-overlay-open .advisor-layer { display: none; }
.advisor-overlay-frame { width: 1000px; max-width: 100%; max-height: 100%; padding: 16px 20px; }
.advisor-overlay-frame > .advisor-close { align-self: flex-end; }   /* the X at the top corner, not a full-width bar */
.lang-he .advisor-overlay-frame > .advisor-close { align-self: flex-start; }
.advisor-overlay-media { width: 100%; height: 540px; flex-shrink: 0; background-size: contain; background-color: var(--navy-deep); }
.advisor-overlay .advisor-media-label { display: flex; }
.advisor-overlay-words { flex-shrink: 1; min-height: 0; }

.advisor-watching .advisor-head { position: absolute; right: 8px; top: 8px; margin: 0; }
.lang-he .advisor-watching .advisor-head { right: auto; left: 8px; }
.advisor-no-portrait.advisor-has-media .advisor-portrait { display: flex; }

.advisor-watching .advisor-head > .advisor-portrait, .advisor-watching .advisor-head > .advisor-names { display: none; }

/* Playtest B11: the narrow (not compact) bar has room for each caption on one line; compact and phone tiers keep wrapping. */
.top-bar--caption-line .meter .meter-name { max-width: none; white-space: nowrap; }
/* Playtest B11: Move, Fortify and Hold wrap as one group, so Hold is never left alone on a line; a small window wraps inside it. */
.info-primary-orders { flex-wrap: wrap; max-width: 100%; flex-shrink: 0; }
/* Playtest B6: the city's name over its block on a hex that holds two cities (GddHexPanel.CityNameClass). */
.city-part-name { -unity-font-style: bold; color: var(--gold-light); margin-top: 6px; }

/* Owner 26 Oct: cards first at 150% on short windows. HudPresenter moves the house after the cards in the same scroll.
   The base row/wrap (including Hebrew row-reverse) still lays out cards; the house starts its own final row. */
.hud-tight.hud-scale-150.cabinet-cards-first #cabinet-seats .cabinet-house {
    width: 100%; margin-left: 0; margin-right: 0;
}
/* Only the existing phone tier at 150% gives up the 320x168 pin. Height follows width in FitCabinet, at 168/320. */
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .cabinet-house .hemicycle-box {
    width: 100%; max-width: 320px; margin-left: 0; margin-right: 0;
}
/* The phone column (about 246 px) has no room for the half circle and the legend side by side: the house stacks them, the
   half circle centred over the legend. In one wrapping row the legend shrank to 0 px beside the box and ran 14000 px tall. */
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .cabinet-house,
.lang-he.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .cabinet-house { flex-direction: column; align-items: stretch; }
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .cabinet-house .hemicycle-box { align-self: center; }
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .cabinet-house .house-legend { min-width: 0; flex-shrink: 0; }
/* The legend's lines and party chips wrap in the narrow column rather than run past it. */
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .house-legend > Label,
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .party-chip > Label { white-space: normal; }
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .party-chip,
.hud-tight.hud-three-row.hud-scale-150.cabinet-phone-150 .party-chip > Label { flex-shrink: 1; min-width: 0; }

/* Owner ruling, 27 October: "Compact card + allow scroll (Recommended)" (#1135). At 150% on a tight window the head is compact, so the
   longest cards (#1545's Jerusalem and Rafah follow-ups) keep Hide and the options inside the card. Same 3:4 portrait
   (EventCardPresenter frames it by aspect), smaller; the title one step down. 100% and 125% are unchanged. */
.hud-tight.hud-scale-150 .event-card { padding-top: 8px; padding-bottom: 4px; }
.hud-tight.hud-scale-150 .event-hide { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.hud-tight.hud-scale-150 .event-head { padding: 2px; margin-bottom: 0; }
.hud-tight.hud-scale-150 .event-option { margin: 2px 0; }
.hud-tight.hud-scale-150 .event-image { width: 60px; height: 80px; margin-right: 8px; }
.lang-he.hud-tight.hud-scale-150 .event-image { margin-right: 0; margin-left: 8px; }
.hud-tight.hud-scale-150 .event-title { font-size: 24px; margin-bottom: 2px; }

/* #731: purchase controls remain inside Defence's scroll view; entered numbers must stay visible. */
.arms-actions { flex-wrap: wrap; }
#arms-count { min-width: 0; flex-shrink: 1; }
.lang-he #arms-count { flex-direction: row-reverse; }
#arms-count .unity-base-field__input { background-color: var(--navy-deep); color: var(--ink); border-width: 1px; border-color: var(--gold-dim); }
#arms-count:focus .unity-base-field__input { border-color: var(--gold); }
/* #813: the dollar conversion's amount, as the Arms count. */
#dollars-amount { min-width: 0; flex-shrink: 1; }
.lang-he #dollars-amount { flex-direction: row-reverse; }
#dollars-amount .unity-base-field__input { background-color: var(--navy-deep); color: var(--ink); border-width: 1px; border-color: var(--gold-dim); }
#dollars-amount:focus .unity-base-field__input { border-color: var(--gold); }
/* #530: a still opening in the existing event-card frame. Keep its actions outside the scrolling prose, so Skip
   remains reachable in a short window. In the Hebrew UI the prose is opening.yaml's Hebrew, set from the right like the
   rest of the Hebrew UI (owner, 1 Nov 2026); OpeningPresenter keeps .opening-source-en, left-aligned, only on what stays
   English there: the photo credit, and a panel the file has no Hebrew for. */
.opening-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; align-items: center; justify-content: center; padding: 16px; background-color: var(--navy-deep); }
.opening-layer > .opening-card { display: flex; height: 100%; max-height: 100%; padding: 12px 24px; }
.opening-replay { display: none; }
.opening-preview, .opening-count { white-space: normal; flex-shrink: 0; margin: 2px 0; }
.opening-photo { height: 240px; max-height: 32%; min-height: 80px; flex-shrink: 1; background-size: contain; background-position-x: center; background-position-y: center; background-repeat: no-repeat; }
.opening-scroll { flex-shrink: 1; min-height: 48px; }
.opening-text { font-size: 22px; white-space: normal; margin: 8px 0; }
.opening-arrivals { font-size: 18px; white-space: normal; margin: 8px 0; }
.opening-actions { flex-wrap: wrap; justify-content: center; flex-shrink: 0; }
.opening-actions > Button { min-height: 44px; margin: 4px 6px; }
.opening-caption { display: none; font-size: 17px; white-space: normal; -unity-text-align: middle-center; margin: 2px 0 6px 0; color: var(--gold-light); }
.opening-source-en, .lang-he .opening-source-en { -unity-text-align: upper-left; white-space: normal; }
.opening-open .top-bar, .opening-open .left-column, .opening-open .community-column, .opening-open .right-column, .opening-open .event-layer, .opening-open .info-panel, .opening-open .screen, .opening-open .map-labels, .opening-open .start-screen, .opening-open .advisor-layer { display: none; }
.loading .opening-layer { display: none; }
/* The Tel Aviv raid card on New game (RaidCardPresenter): the opening's card frame over a dim backdrop, so the map of
   Tel Aviv shows around it; the HUD under it is hidden as under the opening. The clip keeps 16:9 inside its frame
   (contain) and gives way first on a short window; OK stays outside the scrolling text. */
.raid-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; align-items: center; justify-content: center; padding: 16px; background-color: rgba(5, 9, 18, 0.72); }
.raid-layer > .raid-card { display: flex; max-height: 100%; padding: 12px 24px; }
.raid-layer > .raid-card > .raid-scroll { flex-shrink: 1; min-height: 48px; }
.raid-media { height: 400px; max-height: 45%; min-height: 0; flex-shrink: 1000; margin: 4px 0; justify-content: flex-end; background-size: contain; background-position-x: center; background-position-y: center; background-repeat: no-repeat; background-color: var(--navy-deep); border-width: 1px; border-color: var(--gold); }
.raid-actions { flex-wrap: wrap; justify-content: center; flex-shrink: 0; }
.raid-actions > Button { min-height: 44px; min-width: 160px; margin: 4px 6px; }
.raid-open .top-bar, .raid-open .left-column, .raid-open .community-column, .raid-open .right-column, .raid-open .event-layer, .raid-open .info-panel, .raid-open .screen, .raid-open .map-labels, .raid-open .start-screen, .raid-open .advisor-layer { display: none; }
.loading .raid-layer { display: none; }
/* New game's raid flight before that card (RaidFlightPresenter, #3000): a clear layer over the whole map, so the Dakotas
   show and any click on it skips the flight; the HUD under it is hidden as under the card, the map's names too. */
.raid-flight-layer { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0); }
.raid-flight-open .top-bar, .raid-flight-open .left-column, .raid-flight-open .community-column, .raid-flight-open .right-column, .raid-flight-open .event-layer, .raid-flight-open .info-panel, .raid-flight-open .screen, .raid-flight-open .map-labels, .raid-flight-open .start-screen, .raid-flight-open .advisor-layer { display: none; }
.loading .raid-flight-layer { display: none; }