/* ================================================================
   MACHINED BRASS — one control system for every HTML control in the game (Build 196, David
   23 Oct 2026: "I want uniformity and a beautiful look based on the professional rival games").
   Two systems had been living side by side: the Build 68 materials (2px leather-cabinet bevels,
   a 3px hard drop, engraved type — the Settings DONE in David's screenshot) and the Build 188
   skin (flat glass, flat brass). This sheet replaces both wherever a button is HTML: the menus,
   the sheets, Settings, every modal in and out of a match. The reference is a real brass plate
   the way Gwent, Runeterra and Hearthstone read gold as metal: a flat gradient face, a 1px light
   edge on top, a hairline of shade underneath, a soft shadow that collapses under the thumb.
   Two kinds only — a brass PRIMARY (one per screen) and a hairline-glass SECONDARY — plus tabs as
   text with a sliding brass underline, and danger as the secondary in the crash colour.
   Motion: the game's own tactile press (translate 1px + scale .985, spring release) is kept; the
   brass catches one light sweep on hover and lifts 1px; nothing moves under either Reduce-motion
   path. The Play doors, the credential rail and .houseUtility keep their own laws and are not
   touched here. Scoped to html.hall-world, which hall-world.js sets.
   ================================================================ */
html.hall-world{
 --ec-face:linear-gradient(180deg,#f2dc9c 0%,#dcb86c 46%,#c09b47 100%);
 --ec-face-hi:linear-gradient(180deg,#f9e6b0 0%,#e6c47c 46%,#caa553 100%);
 --ec-ink:#1b1508;
 --ec-edge:rgba(255,242,205,.62);
 --ec-under:rgba(42,28,6,.6);
 --ec-glass:rgba(5,19,14,.5);
 --ec-glass-hi:rgba(12,34,25,.62);
 --ec-hair:rgba(232,200,122,.3);
 --ec-hair-hi:rgba(232,200,122,.7);
 --ec-ivory:#f5efdd;
 --ec-muted:#8ca69a;
 --ec-brass:#c9a24b;
 --ec-crash:#ff6b6b;
 --ec-radius:4px;
 --ec-shadow:0 1px 0 var(--ec-under),0 8px 18px rgba(0,0,0,.32);
 --ec-shadow-up:0 2px 0 var(--ec-under),0 12px 24px rgba(0,0,0,.38);
 --ec-shadow-down:0 0 0 var(--ec-under),0 2px 6px rgba(0,0,0,.3);
 --ec-ease:cubic-bezier(.2,.8,.25,1);
}

/* ── the two kinds ───────────────────────────────────────────────────────────────────────── */
/* PRIMARY — brass plate */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary),
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover{
 position:relative;isolation:isolate;overflow:hidden;
 border:1px solid rgba(255,236,190,.55);border-top-color:var(--ec-edge);border-radius:var(--ec-radius);
 background:var(--ec-face);background-image:var(--ec-face);
 color:var(--ec-ink);text-shadow:none;
 box-shadow:inset 0 1px 0 rgba(255,250,228,.55),inset 0 -1px 0 rgba(60,40,10,.28),var(--ec-shadow);
 font:800 12px/1.2 Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase;text-align:center;
 min-height:44px;padding:10px 18px;
 transition:transform .18s var(--ec-ease),box-shadow .18s var(--ec-ease),filter .18s var(--ec-ease),border-color .18s var(--ec-ease)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover{
 background-image:var(--ec-face-hi);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,250,228,.6),inset 0 -1px 0 rgba(60,40,10,.28),var(--ec-shadow-up)}
/* the light sweep: once, on hover, over the brass only */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary)::before{
 content:'';position:absolute;inset:-2px;z-index:-1;pointer-events:none;background:linear-gradient(112deg,transparent 32%,rgba(255,255,255,.42) 50%,transparent 68%);transform:translateX(-130%);}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover::before{animation:ecSheen .7s var(--ec-ease) forwards}
@keyframes ecSheen{from{transform:translateX(-130%)}to{transform:translateX(130%)}}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary) small{color:rgba(27,21,8,.72);text-shadow:none}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):disabled{filter:saturate(.35) brightness(.72);box-shadow:var(--ec-shadow-down);transform:none;cursor:default}

/* SECONDARY — hairline glass */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger,.lbShareActions button,.lbChatComposer button,.matchHistoryMore,.friendRemoveBtn),
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger,.lbShareActions button,.lbChatComposer button,.matchHistoryMore,.friendRemoveBtn):hover{
 border:1px solid var(--ec-hair);border-top-color:rgba(232,200,122,.42);border-radius:var(--ec-radius);
 background:var(--ec-glass);background-image:none;
 color:var(--ec-ivory);text-shadow:none;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 0 rgba(0,0,0,.45);
 font:800 12px/1.2 Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase;text-align:center;
 min-height:44px;padding:10px 16px;
 transition:transform .18s var(--ec-ease),box-shadow .18s var(--ec-ease),border-color .18s var(--ec-ease),background-color .18s var(--ec-ease),color .18s var(--ec-ease)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger,.lbShareActions button,.lbChatComposer button,.matchHistoryMore,.friendRemoveBtn):hover{
 border-color:var(--ec-hair-hi);background:var(--ec-glass-hi);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 0 rgba(0,0,0,.45),0 8px 18px rgba(0,0,0,.28)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.red,.metaDanger),
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.red,.metaDanger):hover{color:var(--ec-crash);border-color:rgba(255,107,107,.45)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger):disabled{opacity:.55;transform:none;box-shadow:none;cursor:default}
/* a secondary that carries a sentence (a tutorial prompt, a long choice) stays readable */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt,.metaPrimary,.metaSecondary) small{display:block;margin-top:3px;font:700 10px/1.3 Barlow,sans-serif;letter-spacing:.14em;text-transform:none}

/* the press: the game's tactile grammar (translate 1px, scale .985, spring release) with the shadow collapsing under the thumb */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary):is(.tactile-down,:active){transform:translateY(1px);box-shadow:var(--ec-shadow-down);filter:brightness(.96)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary):focus-visible{outline:2px solid var(--ec-brass);outline-offset:3px}

/* ── tabs: text with a brass underline that slides in ───────────────────────────────────── */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button){position:relative;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;box-shadow:none;padding:10px 2px;color:var(--ec-muted);font:700 11px Barlow,sans-serif;letter-spacing:.24em;text-transform:uppercase;transition:color .18s var(--ec-ease)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button)::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ec-brass);transform:scaleX(0);transform-origin:50% 50%;transition:transform .26s var(--ec-ease)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button):hover{color:var(--ec-ivory);background:none}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab[aria-selected="true"],.collectionDiscoveryTabs button[aria-pressed="true"],.lbSteps button.on){color:var(--ec-ivory);background:none;border-bottom-color:transparent;box-shadow:none}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab[aria-selected="true"],.collectionDiscoveryTabs button[aria-pressed="true"],.lbSteps button.on)::after{transform:scaleX(1)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button):is(.tactile-down,:active){transform:none;filter:none}

/* ── the modal and the sheet carry the same glass as the pages ──────────────────────────── */
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) #v2mbox{border:1px solid var(--ec-hair);border-radius:var(--ec-radius);background:linear-gradient(160deg,rgba(9,28,21,.96),rgba(5,19,14,.97));box-shadow:0 30px 80px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.04)}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) #v2mbox .rowGroup{border:1px solid var(--ec-hair);border-radius:var(--ec-radius);background:var(--ec-glass);box-shadow:none}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) #v2mbox button.pill{border-radius:999px;font:800 10.5px Barlow,sans-serif;letter-spacing:.2em}
html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) #v2mbox h3{font:500 clamp(22px,2.4vw,28px)/1.1 'Bodoni Moda',Georgia,serif;letter-spacing:.06em;color:var(--ec-ivory)}

/* ── reduced motion: nothing lifts, sweeps or slides ─────────────────────────────────────── */
@media(prefers-reduced-motion:reduce){
 html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary,.tab,.collectionDiscoveryTabs button,.lbSteps button){transition:none!important;transform:none!important}
 html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary,.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover::before{animation:none}
 html.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button)::after{transition:none}
}
html.exchangeReducedUI.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary,.tab,.collectionDiscoveryTabs button,.lbSteps button){transition:none!important;transform:none!important}
html.exchangeReducedUI.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay) :is(.v2opt.gold,.metaPrimary,.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover::before{animation:none}
html.exchangeReducedUI.hall-world:not(.schism-world) body.exchange-world:not(.ec-x) :is(#metaPanel,#v3lobby) :is(.tab,.collectionDiscoveryTabs button,.lbSteps button)::after{transition:none}

/* ── MOBILE PASS (v0.21.0): the rooms the first pass never reached ───────────────────────────
   The sheet above is scoped to the menus and the modal, and it opts out of the whole campaign
   (html.schism-world). Three kinds of control therefore still wore the Build 68 cabinet or the
   Build 48 leather: the body-appended celebrations (House pledge / goals / weekly result, the
   Founder reveal, mastery and look unlocks, the Climb promotion, demotion and clock), the
   loading lineup, the old tutorial coach and the First Week opening; and every dialog inside a
   Schism floor (Settings, leave, prompts, report, redraw, Market choosers). This block gives
   them the SAME two kinds, the same press and the same focus ring. The schism's own rooms —
   the map, the reader, the gate and the result — keep the gold and paper they were drawn in.
   The rules above are left byte-identical so the Table Talk scope addition merges cleanly. */
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *){
 position:relative;isolation:isolate;overflow:hidden;
 border:1px solid rgba(255,236,190,.55);border-top-color:var(--ec-edge);border-radius:var(--ec-radius);
 background:var(--ec-face);background-image:var(--ec-face);
 color:var(--ec-ink);text-shadow:none;
 box-shadow:inset 0 1px 0 rgba(255,250,228,.55),inset 0 -1px 0 rgba(60,40,10,.28),var(--ec-shadow);
 font:800 12px/1.2 Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase;text-align:center;
 min-height:44px;padding:10px 18px;
 transition:transform .18s var(--ec-ease),box-shadow .18s var(--ec-ease),filter .18s var(--ec-ease),border-color .18s var(--ec-ease)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):hover{
 background-image:var(--ec-face-hi);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,250,228,.6),inset 0 -1px 0 rgba(60,40,10,.28),var(--ec-shadow-up)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *)::before{
 content:'';position:absolute;inset:-2px;z-index:-1;pointer-events:none;background:linear-gradient(112deg,transparent 32%,rgba(255,255,255,.42) 50%,transparent 68%);transform:translateX(-130%);}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):hover::before{animation:ecSheen .7s var(--ec-ease) forwards}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *) small{color:rgba(27,21,8,.72);text-shadow:none}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary:not(.metaDanger):not(.red),.btnPrimary,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):disabled{filter:saturate(.35) brightness(.72);box-shadow:var(--ec-shadow-down);transform:none;cursor:default}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger,.lbShareActions button,.lbChatComposer button,.matchHistoryMore,.friendRemoveBtn):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *){
 border:1px solid var(--ec-hair);border-top-color:rgba(232,200,122,.42);border-radius:var(--ec-radius);
 background:var(--ec-glass);background-image:none;
 color:var(--ec-ivory);text-shadow:none;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 0 rgba(0,0,0,.45);
 font:800 12px/1.2 Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase;text-align:center;
 min-height:44px;padding:10px 16px;
 transition:transform .18s var(--ec-ease),box-shadow .18s var(--ec-ease),border-color .18s var(--ec-ease),background-color .18s var(--ec-ease),color .18s var(--ec-ease)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger,.lbShareActions button,.lbChatComposer button,.matchHistoryMore,.friendRemoveBtn):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):hover{
 border-color:var(--ec-hair-hi);background:var(--ec-glass-hi);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 0 rgba(0,0,0,.45),0 8px 18px rgba(0,0,0,.28)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.red,.metaDanger):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *),
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.red,.metaDanger):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):hover{color:var(--ec-crash);border-color:rgba(255,107,107,.45)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt:not(.gold),.metaSecondary,.btnSecondary,.metaDanger):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):disabled{opacity:.55;transform:none;box-shadow:none;cursor:default}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt,.metaPrimary,.metaSecondary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *) small{display:block;margin-top:3px;font:700 10px/1.3 Barlow,sans-serif;letter-spacing:.14em;text-transform:none}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):is(.tactile-down,:active){transform:translateY(1px);box-shadow:var(--ec-shadow-down);filter:brightness(.96)}
:is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary):not(:is(#campaignMap,#campaignScene,.campGate,.campResult) *):focus-visible{outline:2px solid var(--ec-brass);outline-offset:3px}
/* tabs inside a modal (the card guide's four decks) use the same sliding underline as the pages */
html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab,.libTabs button){position:relative;flex:1 1 auto;min-height:44px;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;box-shadow:none;padding:10px 2px;color:var(--ec-muted);font:700 11px Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase;transition:color .18s var(--ec-ease)}
html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab,.libTabs button)::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--ec-brass);transform:scaleX(0);transform-origin:50% 50%;transition:transform .26s var(--ec-ease)}
html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab,.libTabs button):hover{color:var(--ec-ivory);background:none}
html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab[aria-selected="true"],.libTabs button.on){color:var(--ec-ivory);background:none;border-color:transparent;box-shadow:none}
html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab[aria-selected="true"],.libTabs button.on)::after{transform:scaleX(1)}
html.hall-world body.exchange-world:not(.ec-x) #v2mbox .libTabs{border-bottom:1px solid var(--ec-hair)}
@media(prefers-reduced-motion:reduce){
 :is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,#lbReady,.lbContinue,.tactile-primary){transition:none!important}
 :is(html.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn),html.hall-world.schism-world body.exchange-world:not(.ec-x) :is(#v2mbox,#metaPanel,#v3lobby,#v2title,.alertDrawer,.climbTowerCard,.tutorialCard,#tutorialOverlay)) :is(.v2opt.gold,.metaPrimary,.btnPrimary,#lbReady,.lbContinue,.tactile-primary):hover::before{animation:none}
 html.hall-world body.exchange-world:not(.ec-x) #v2mbox :is(.tab,.libTabs button)::after{transition:none}
}
html.exchangeReducedUI.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn) :is(.v2opt,.metaPrimary,.metaSecondary,.btnPrimary,.btnSecondary,.metaDanger,.tactile-primary){transition:none!important}
html.exchangeReducedUI.hall-world body.exchange-world:not(.ec-x) :is(.houseCeremony,.founderCeremony,.founderMasteryCeremony,.friendshipCeremony,#v3coach,#fwOpening,#matchIntro,#exchangeBoot,#exchangeReturn) :is(.v2opt.gold,.metaPrimary,.btnPrimary,.tactile-primary):hover::before{animation:none}
/* B17: a modal opened by touch focuses its first control for the keyboard trap; the brass ring is for
   keyboards only, so a pointer-opened dialog does not greet a phone player with a gold outline */
html.hall-world body.exchange-world :is(#v2mbox,.houseCeremony,.founderCeremony,.founderMasteryCeremony) :is(button,.v2opt):focus:not(:focus-visible){outline:none}
/* the turn guide's rows read as the same hairline glass, but they are information, not buttons */
#v2mbox .turnGuideRow{display:block;box-sizing:border-box;width:100%;margin:6px 0;padding:10px 14px;border:1px solid rgba(232,200,122,.22);border-radius:4px;background:rgba(5,19,14,.5);text-align:left}
#v2mbox .turnGuideRow b{display:block;color:#e8c87a;font:800 12px/1.25 Barlow,sans-serif;letter-spacing:.16em}
#v2mbox .turnGuideRow small{display:block;margin-top:3px;color:#d7e2da;font:600 12px/1.45 Barlow,sans-serif;letter-spacing:0;text-transform:none}
/* the coach's EXIT keeps its phone corner seat (58px, tight padding) inside the new danger kind */
@media(max-width:700px){html.hall-world body.exchange-world:not(.ec-x) #v3coach #coachSkip.metaDanger.metaDanger.metaDanger{padding:4px;letter-spacing:.12em}}
/* the member profile's small controls (EDIT, LOCAL SAVE / ACCOUNT, CHANGE LOOK) are one MB chip: hairline glass, ivory type */
html.hall-world body.exchange-world:not(.ec-x) #metaPanel :is(.profileNameEditBtn,.profileAccountBtn){border:1px solid var(--ec-hair);border-top-color:rgba(232,200,122,.42);border-radius:var(--ec-radius);background:var(--ec-glass);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 0 rgba(0,0,0,.45);color:var(--ec-ivory);font:800 11px/1.2 Barlow,sans-serif;letter-spacing:.2em;text-transform:uppercase}
html.hall-world body.exchange-world:not(.ec-x) #metaPanel :is(.profileNameEditBtn,.profileAccountBtn):hover{border-color:var(--ec-hair-hi);background:var(--ec-glass-hi)}
html.hall-world body.exchange-world:not(.ec-x) #metaPanel .wardrobeShortcut .wardrobeHint{border:1px solid var(--ec-hair);border-radius:var(--ec-radius);background:var(--ec-glass);color:var(--ec-ivory);font:800 10px/1.2 Barlow,sans-serif;letter-spacing:.2em}
@media(max-width:700px){html.hall-world body.exchange-world:not(.ec-x) #metaPanel :is(.profileNameEditBtn,.profileAccountBtn){min-height:44px}}

/* ── phone layout (B8, B10, B12, B16) ─────────────────────────────────────────────────────────── */
/* B8 Settings: DONE is pinned flush to the sheet's foot with an opaque apron under and beside it, so no row shows
   below or around it while the list scrolls; the sheet's last 14px is a spacer after DONE, not open padding */
/* 23 Nov 2026: the match exit and DONE dock together at every size, so the exit is never under DONE */
#v2modal #v2mbox.settingsSheet .settingsFoot.settingsFoot{position:sticky!important;bottom:0!important;z-index:3;display:flex;flex-direction:column;gap:8px;margin-top:10px;padding-top:10px;background:#05130e;box-shadow:0 -14px 18px rgba(2,12,10,.85),0 14px 0 14px #05130e}
#v2modal #v2mbox.settingsSheet .settingsFoot>.v2opt{margin:0!important;width:100%}
@media(max-height:520px){#v2modal #v2mbox.settingsSheet .settingsFoot.settingsFoot{flex-direction:row}}
@media(max-width:700px){
html.hall-world body.exchange-world #v2modal #v2mbox.settingsSheet{padding-bottom:0}
 html.hall-world body.exchange-world #v2modal #v2mbox.settingsSheet::after{content:"";display:block;height:14px}
 html.hall-world body.exchange-world:not(.ec-x) #v2modal #v2mbox.settingsSheet .settingsDone.settingsDone.settingsDone.settingsDone{margin-bottom:0;box-shadow:inset 0 1px 0 rgba(255,250,228,.55),inset 0 -1px 0 rgba(60,40,10,.28),0 -14px 18px rgba(2,12,10,.85),0 10px 0 18px #05130e}
}
/* B10 the lobby's Settings gear kept its table radius (3px) and sat on the lobby card's top-right corner: on phones the
   card starts below the gear and the gear wears the utility family's phone radius */
@media(max-width:900px){
 body.lobby-open:not(.playing) #v2setB.houseUtility{border-radius:12px}
 html.hall-world body.exchange-world.lobby-open:not(.playing) #v3lobby{padding-top:calc(max(6px,env(safe-area-inset-top)) + 52px)}
 html.hall-world body.exchange-world.lobby-open:not(.playing) #v3lobby .lbCard{max-height:calc(100dvh - 64px - max(6px,env(safe-area-inset-top)))}
}
@media(max-height:520px) and (orientation:landscape){html.hall-world body.exchange-world.lobby-open:not(.playing) #v3lobby{padding-top:12px;padding-right:62px}}
/* B12 a control scrolled into view lands above the docked START GAME, not under it */
html.hall-world body.exchange-world.lobby-open:not(.playing) #v3lobby .lbCard{scroll-padding-bottom:84px}
/* ceremony phone legibility (B14/B15): the friendship moment is opaque on a phone, and the ceremonies' small print is 12px */
@media(max-width:700px){
 .friendshipCeremony{background:radial-gradient(circle,rgba(18,67,48,.97),rgba(2,13,9,.98))}
 .houseCeremony .houseCeremonyHint,.founderCeremony .founderCeremonyHint{font-size:12px;line-height:1.4}
}
[data-ec-silent-focus]:focus,[data-ec-silent-focus]:focus-visible{outline:none!important}

/* ── ROUND 2 (verifier item 10): the console's PASS / DISCARD / WAIT control is a machined-brass PRIMARY ─────────────
   The same plate as PLAY and Settings' DONE: the #f2dc9c > #dcb86c > #c09b47 face, a 1px light edge on top, a hairline of
   shade under it, ink type in Barlow 800, radius 4 and the 1px press. Its box (size, seat, wrap) is untouched; its states
   keep their meaning - DISCARD n armed stays red (now on the same plate geometry), WAIT/disabled keeps its stood-down
   opacity, the Market CANCEL keeps its purple, and the Director console skin (a Mastery 9 reward) keeps its own metal. */
:root body #v2command:not([data-console-skin="director"]) #v2end{border-radius:4px;font-family:Barlow,'Venture Sans',sans-serif;font-weight:800;letter-spacing:.1em;text-transform:uppercase;text-shadow:none}
:root body:not([data-turn-state="mine-trim"]) #v2command:not([data-console-skin="director"]) #v2end,
:root body.playing:not([data-turn-state="mine-trim"]) #v2command:not([data-console-skin="director"]) #v2end:not(:disabled):not(.trim):not(.discard){
 border:1px solid rgba(255,236,190,.55);border-top-color:rgba(255,242,205,.62);
 background:linear-gradient(180deg,#f2dc9c 0%,#dcb86c 46%,#c09b47 100%);color:#1b1508;
 box-shadow:inset 0 1px 0 rgba(255,250,228,.55),inset 0 -1px 0 rgba(60,40,10,.28),0 1px 0 rgba(42,28,6,.6),0 8px 18px rgba(0,0,0,.32)}
:root body[data-turn-state="mine-trim"] #v2command:not([data-console-skin="director"]) #v2end{
 border:1px solid rgba(255,138,138,.75);border-top-color:rgba(255,206,206,.7);
 background:linear-gradient(180deg,#C84B4B 0%,#8F252B 58%,#5A161D 100%);color:#FFF4EC;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(40,4,8,.4),0 1px 0 #3B0C12,0 0 22px rgba(226,61,61,.38),0 8px 18px rgba(0,0,0,.32)}
:root body #v2command:not([data-console-skin="director"]) #v2end:not(:disabled):hover{filter:brightness(1.06);transform:translateY(-1px)}
:root body #v2command:not([data-console-skin="director"]) #v2end:not(:disabled):is(:active,.tactile-down){transform:translateY(1px);filter:brightness(.96);box-shadow:inset 0 1px 0 rgba(255,250,228,.4),0 0 0 rgba(42,28,6,.6),0 2px 6px rgba(0,0,0,.3)}
:root body #v2command:not([data-console-skin="director"]) #v2end:focus-visible{outline:2px solid #c9a24b;outline-offset:3px}
@media(max-width:900px){:root body #v2command:not([data-console-skin="director"]) #v2end{font-family:'Barlow Semi Condensed','Venture Condensed',sans-serif;font-size:10.5px;letter-spacing:.02em;line-height:1.12}} /* the phone corner control is 50px wide and carries DISCARD n: the house's condensed cut, wrapping to two lines as before. The bundled Venture faces (Barlow / Barlow Semi Condensed, v3.html) stand in when the web font has not arrived, so the label never falls back to a wide system face and spills out of the plate */
@media(prefers-reduced-motion:reduce){:root body #v2command:not([data-console-skin="director"]) #v2end{transform:none!important}}
