/* ================================================================
   WORLD TABLE — Build 184. The door count, the queue panel, the ACCEPT check and the MATCHED
   ceremony. Same materials as the rest of the front of house: Bebas Neue display, Barlow eyebrows,
   Bodoni Moda for the one ceremonial word, brass on ink. Nothing here overlaps a sibling element:
   the door's count sits in the mode row's own trailing slot, the panel is a lobby step like JOIN,
   the ceremony is a full-screen layer that holds above the Exchange's own convening screen (z 59 > 58) for a beat, then fades to reveal the lineup already in progress.
   ================================================================ */

/* ── the door ─────────────────────────────────────────────────────────────────────────────── */
#v2title .ttmode.worldMode>b{min-width:0;white-space:nowrap}
#v2title .ttmode.worldMode.wtLive{border-color:rgba(232,200,122,.62)}
#v2title .ttmode.worldMode.wtLive>b{color:var(--brass-hi);animation:wtDoorPulse 2.4s ease-in-out infinite}
#v2title .ttmode.worldMode.wtWanting>b{color:var(--brass)}
@keyframes wtDoorPulse{0%,100%{opacity:1}50%{opacity:.55}}

/* ── the panel ────────────────────────────────────────────────────────────────────────────── */
#lbStepWorld{text-align:center}
#lbStepWorld .wtLead{max-width:430px;margin:8px auto 0;color:var(--muted);font:500 14px/1.45 Barlow,sans-serif}
#lbStepWorld .lbJoinIdent{text-align:left}
#lbStepWorld .lbJoinIdent .seatAv img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:1px solid rgba(201,162,75,.4)}
#lbStepWorld .lbJoinWho strong{display:block;color:var(--brass);font:400 22px/1 'Bebas Neue';letter-spacing:var(--ls-label)}
#lbStepWorld .lbJoinWho input{width:100%;margin-top:4px;padding:8px 10px;border:1px solid rgba(201,162,75,.28);border-radius:var(--r-chip,8px);background:rgba(5,19,14,.6);color:#f2e6c8;font:600 15px Barlow,sans-serif;letter-spacing:.02em}
.wtWish{max-width:430px;margin:14px auto 0}
.wtWish>label{display:block;margin-bottom:8px;color:var(--muted);font:800 11px Barlow;letter-spacing:var(--ls-eyebrow)}
.wtChips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wtChips>button{display:grid;grid-template-rows:auto auto;gap:3px;min-height:58px;padding:8px 6px;border:1px solid rgba(201,162,75,.24);border-radius:var(--r-chip,8px);background:linear-gradient(160deg,rgba(18,53,40,.6),rgba(5,19,14,.55));color:#e9dfc4;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.wtChips>button>b{font:400 26px/1 'Bebas Neue';letter-spacing:.04em;color:var(--brass)}
.wtChips>button>span{font:700 9.5px/1.2 Barlow;letter-spacing:.1em;color:var(--muted)}
.wtChips>button:hover{border-color:rgba(232,200,122,.6)}
.wtChips>button.on{border-color:var(--brass-hi);background:linear-gradient(160deg,rgba(201,162,75,.26),rgba(18,53,40,.7));box-shadow:inset 0 1px rgba(255,255,255,.18),0 0 0 1px rgba(232,200,122,.22)}
.wtChips>button.on>b{color:var(--brass-hi)}
.wtChips>button.on>span{color:#f2e6c8}
.wtBoard{max-width:430px;margin:14px auto 0;padding:14px 14px 12px;border:1px solid rgba(201,162,75,.2);border-radius:var(--r-card,14px);background:rgba(5,19,14,.42)}
.wtBoard.searching{border-color:rgba(232,200,122,.5);background:linear-gradient(160deg,rgba(18,53,40,.78),rgba(5,19,14,.7));box-shadow:0 0 0 1px rgba(232,200,122,.12),0 14px 30px rgba(0,0,0,.28)}
.wtCounts{display:flex;align-items:center;justify-content:center;gap:14px;color:#e9dfc4;font:700 11px Barlow;letter-spacing:var(--ls-eyebrow)}
.wtCounts>span>b{margin-right:6px;font:400 24px/1 'Bebas Neue';letter-spacing:.03em;color:var(--brass-hi);vertical-align:-2px}
.wtCounts>i{width:1px;height:22px;background:rgba(201,162,75,.3)}
.wtBoard>small{display:block;margin-top:10px;color:var(--muted);font:500 12.5px/1.4 Barlow,sans-serif}
.wtSearch{display:grid;justify-items:center;gap:6px;margin-bottom:12px}
.wtSearch>strong{font:400 28px/1 'Bebas Neue';letter-spacing:var(--ls-label);color:var(--brass-hi)}
.wtSearch>em{font:600 15px Barlow;font-style:normal;letter-spacing:.08em;color:#e9dfc4;font-variant-numeric:tabular-nums}
.wtVoice{font:500 12.5px Barlow,sans-serif;font-style:italic;color:var(--muted);transition:opacity .18s}
.wtVoice.swap{opacity:0}
.wtPulse{display:flex;gap:6px;height:10px;align-items:center}
.wtPulse>i{width:7px;height:7px;border-radius:50%;background:var(--brass);animation:wtDot 1.4s ease-in-out infinite}
.wtPulse>i:nth-child(2){animation-delay:.2s}.wtPulse>i:nth-child(3){animation-delay:.4s}
@keyframes wtDot{0%,80%,100%{transform:scale(.6);opacity:.35}40%{transform:scale(1);opacity:1}}
#v3lobby #wtGo.wtLeave,#wtGo.wtLeave{background:linear-gradient(180deg,rgba(18,53,40,.9),rgba(5,19,14,.9));color:var(--brass-hi);border-color:rgba(201,162,75,.5);box-shadow:none}
.wtNote{max-width:430px;margin:10px auto 0;color:var(--muted);font:500 12.5px/1.45 Barlow,sans-serif}
.wtNote b{color:#e9dfc4}
.wtLink{margin-left:6px;padding:0;border:0;background:none;color:var(--brass-hi);font:800 11px Barlow;letter-spacing:var(--ls-eyebrow);cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* ── the ACCEPT check ─────────────────────────────────────────────────────────────────────────
   One dominant countdown, the faces, one big ACCEPT, a quiet DECLINE. The dial turns brass to red in
   the last five seconds, when the tick speaks. */
#v2mbox.wtAcceptModal{max-width:480px}
.wtAccept{display:grid;justify-items:center;text-align:center}
.wtAccept h3{margin:4px 0 0;font:400 clamp(28px,6vw,40px)/1 'Bebas Neue';letter-spacing:var(--ls-label);color:var(--brass-hi)}
.wtDial{position:relative;width:132px;height:132px;margin:14px 0 6px;display:grid;place-items:center}
.wtDial svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.wtDialTrack{fill:none;stroke:rgba(201,162,75,.18);stroke-width:5}
.wtDialFill{fill:none;stroke:var(--brass-hi);stroke-width:5;stroke-linecap:round;stroke-dasharray:339.3;stroke-dashoffset:calc(339.3 * (1 - var(--wt-frac,1)));transition:stroke-dashoffset .12s linear,stroke .3s}
.wtDial>b{font:400 58px/1 'Bebas Neue';letter-spacing:.02em;color:#f7efd9;font-variant-numeric:tabular-nums;margin-top:6px}
.wtDial>small{position:absolute;bottom:22px;font:800 9px Barlow;letter-spacing:.2em;color:var(--muted)}
.wtDial.urgent .wtDialFill{stroke:#e0603f}
.wtDial.urgent>b{color:#ffd9c9;animation:wtUrgent .5s ease-in-out infinite alternate}
@keyframes wtUrgent{from{transform:scale(1)}to{transform:scale(1.06)}}
.wtFaces{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:6px 0 2px}
.wtFaces figure{position:relative;margin:0;width:88px;display:grid;justify-items:center;gap:4px;opacity:.72;transition:opacity .25s}
.wtFaces figure img{width:60px;height:60px;border-radius:50%;object-fit:cover;border:2px solid rgba(201,162,75,.35);transition:border-color .25s,box-shadow .25s}
.wtFaces figure.you img{border-color:var(--brass-hi)}
.wtFaces figcaption{font:800 10.5px Barlow;letter-spacing:var(--ls-eyebrow);color:#f2e6c8;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wtFaces figure small{font:600 9.5px Barlow;letter-spacing:.1em;color:var(--muted)}
.wtFaces figure.accepted{opacity:1}
.wtFaces figure.accepted img{border-color:#9ad59a;box-shadow:0 0 0 3px rgba(120,200,120,.18)}
.wtFaces figure.accepted small{color:#9ad59a}
.wtTick{position:absolute;top:40px;left:calc(50% + 12px);width:22px;height:22px;border-radius:50%;background:#2f8f4e;border:2px solid #0a211b;transform:scale(0);transition:transform .22s cubic-bezier(.2,1.4,.4,1)}
.wtTick::after{content:'';position:absolute;left:6px;top:3px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.wtFaces figure.accepted .wtTick{transform:scale(1)}
.wtAccept .wtWho{margin:4px 0 12px;color:#e9dfc4;font:500 14px/1.45 Barlow,sans-serif}
.wtAcceptBig{width:min(100%,360px);min-height:60px;border:1px solid var(--brass-hi);border-radius:var(--r-chip,10px);background:linear-gradient(180deg,var(--brass-hi),var(--brass));box-shadow:inset 0 1px rgba(255,255,255,.55),0 4px 0 var(--brass-deep),0 12px 24px rgba(0,0,0,.3);color:var(--ink-2);font:400 28px 'Bebas Neue';letter-spacing:.12em;cursor:pointer;transition:transform .12s,filter .2s}
.wtAcceptBig:hover{filter:brightness(1.05)}
.wtAcceptBig:active{transform:translateY(3px);box-shadow:inset 0 1px rgba(255,255,255,.4),0 1px 0 var(--brass-deep)}
.wtAcceptBig:disabled,.wtAcceptBig.done{filter:none;background:linear-gradient(180deg,rgba(18,53,40,.95),rgba(5,19,14,.95));color:#9ad59a;border-color:rgba(154,213,154,.5);box-shadow:none;transform:none;cursor:default;font-size:18px}
.wtDecline{margin-top:12px;padding:6px 10px;border:0;background:none;color:var(--muted);font:800 11px Barlow;letter-spacing:var(--ls-eyebrow);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.wtDecline:hover{color:#e9dfc4}
.wtDecline:disabled{opacity:.35;cursor:default}
.wtAccept>small{display:block;margin-top:10px;color:var(--muted);font:500 12px/1.4 Barlow,sans-serif}
.wtWishNote{max-width:430px;margin:8px auto 0;color:#e9dfc4;font:500 13px/1.4 Barlow,sans-serif}
@media(max-width:520px){.wtFaces figure{width:72px}.wtFaces figure img{width:52px;height:52px}.wtTick{top:34px}.wtDial{width:116px;height:116px}.wtDial>b{font-size:50px}}

/* ── MATCHED ──────────────────────────────────────────────────────────────────────────────── */
#wtCeremony{position:fixed;inset:0;z-index:59;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:center;justify-items:center;gap:clamp(10px,2.4vh,26px);padding:max(22px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));color:#f7efd9;text-align:center;background:radial-gradient(120% 90% at 50% 10%,rgba(28,74,54,.96),rgba(5,19,14,.985) 62%),#05130e;opacity:0;transition:opacity .42s ease}
#wtCeremony.in{opacity:1}
#wtCeremony.out{opacity:0;transition-duration:.5s}
#wtCeremony .wtHall{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#wtCeremony .wtHall>i{position:absolute;left:50%;top:-20%;width:1px;height:140%;background:linear-gradient(180deg,transparent,rgba(232,200,122,.35),transparent);transform:translateX(-50%) rotate(var(--r,0deg));opacity:0;animation:wtBeam 2.6s ease-out .25s forwards}
#wtCeremony .wtHall>i:nth-child(1){--r:-22deg}#wtCeremony .wtHall>i:nth-child(2){--r:0deg;animation-delay:.4s}#wtCeremony .wtHall>i:nth-child(3){--r:22deg;animation-delay:.55s}
@keyframes wtBeam{0%{opacity:0;transform:translateX(-50%) rotate(var(--r)) scaleY(.2)}40%{opacity:.9}100%{opacity:.35;transform:translateX(-50%) rotate(var(--r)) scaleY(1)}}
#wtCeremony>header{position:relative;display:grid;gap:4px}
#wtCeremony>header>b{font:800 11px Barlow;letter-spacing:.22em;color:var(--brass)}
#wtCeremony>header>span{font:500 clamp(44px,9vw,96px)/1 'Bodoni Moda',Georgia,serif;letter-spacing:.06em;color:#eee4cc;opacity:0;transform:translateY(10px) scale(.96);animation:wtWord .7s cubic-bezier(.2,.9,.25,1) .15s forwards}
#wtCeremony>header>em{font:700 11.5px Barlow;font-style:normal;letter-spacing:.16em;color:#d9cfae;opacity:0;animation:wtFade .5s ease .6s forwards}
@keyframes wtWord{to{opacity:1;transform:none}}
@keyframes wtFade{to{opacity:1}}
#wtCeremony .wtLineup{position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,28px);flex-wrap:wrap;max-width:min(92vw,900px)}
#wtCeremony .wtLineup figure{margin:0;display:grid;justify-items:center;gap:8px;opacity:0;transform:translateY(18px);animation:wtArrive .6s cubic-bezier(.2,.9,.25,1) calc(.55s + var(--i,0) * .16s) forwards}
@keyframes wtArrive{to{opacity:1;transform:none}}
#wtCeremony .wtLineup figure img{width:clamp(88px,15vw,150px);height:clamp(88px,15vw,150px);border-radius:50%;object-fit:cover;border:2px solid rgba(201,162,75,.45);box-shadow:0 18px 40px rgba(0,0,0,.45)}
#wtCeremony .wtLineup figure.you img{border-color:var(--brass-hi);box-shadow:0 0 0 4px rgba(232,200,122,.16),0 18px 40px rgba(0,0,0,.45)}
#wtCeremony .wtLineup figcaption{font:400 clamp(18px,3vw,26px)/1 'Bebas Neue';letter-spacing:var(--ls-label);color:#f2e6c8}
#wtCeremony .wtLineup figure small{font:700 10px Barlow;letter-spacing:.14em;color:var(--muted);transition:color .3s}
#wtCeremony .wtLineup figure.seated small{color:#9ad59a}
#wtCeremony .wtLineup figure.seated img{border-color:#9ad59a}
#wtCeremony .wtAmp{font:400 clamp(28px,5vw,48px)/1 'Bodoni Moda',Georgia,serif;color:var(--brass);opacity:0;animation:wtFade .4s ease .9s forwards}
#wtCeremony>footer{position:relative;font:700 11.5px Barlow;letter-spacing:.18em;color:#d9cfae;opacity:0;animation:wtFade .5s ease 1.1s forwards}
#wtCeremony.dealing>footer{color:var(--brass-hi)}
#wtCeremony.dealing .wtLineup figure img{box-shadow:0 0 0 4px rgba(232,200,122,.22),0 18px 40px rgba(0,0,0,.45)}
#wtCeremony>footer>span::after{content:'';display:inline-block;width:1.2em;text-align:left;animation:wtDots 1.2s steps(4,end) infinite}
@keyframes wtDots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
@media(prefers-reduced-motion:reduce){#wtCeremony *,#v2title .ttmode.worldMode>b,.wtPulse>i{animation:none!important;opacity:1!important;transform:none!important}}

/* ── SIX DOORS (David 21 Oct 2026: "six nice buttons ... make the world table the same size as the rest").
   Every composition becomes a plain 2×3 grid of equal cells (3×2 on short landscape screens): no full-row
   hero, no orphan. The sixth door only changed the count; the sizes, materials and hover of the siblings are
   theirs. The World Table's live count sits on its own line under the label, the way TUTORIAL carries
   RECOMMENDED and THE SCHISM carries its subtitle. */
#v2title .playDeck .ttmodes>.worldMode,#v2title .playDeck .ttmodes>.tutorialMode,#v2title .playDeck .ttmodes>.climbMode,#v2title .playDeck .ttmodes>.campaignRow{grid-column:auto;flex:1 1 calc(50% - 6px);max-width:none}
#v2title .playDeck>.ttmodes{grid-template-rows:repeat(3,minmax(48px,1fr));align-items:stretch} /* equal rows: six identical rectangles (David 22 Oct 2026) */
body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode,body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.campaignRow{flex:0 0 calc(50% - 6px);max-width:none;grid-column:auto} /* a fixed flex basis sizes the phone row; no max-width so the 3-column landscape grids are never clipped */
body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;justify-items:center;align-content:center;gap:0}
body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode>span:not(.modeIcon){grid-column:1;grid-row:1}
body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode>b,#v2title.cardStoryTitle .playDeck .ttmode.worldMode>b,#v2title .playDeck .ttmode.worldMode>b{display:block;grid-column:1;grid-row:2;justify-self:center;margin:3px 0 0;padding:2px 8px;border:1px solid rgba(232,200,122,.35);border-radius:999px;background:rgba(5,19,14,.82);color:var(--brass-hi);font:800 9px/1.2 var(--font-body,Barlow);letter-spacing:.12em;white-space:nowrap;text-shadow:none;box-shadow:inset 0 1px rgba(255,255,255,.08)}
@media(min-width:901px){
 body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck>.ttmodes{grid-template-rows:repeat(3,minmax(56px,1fr))}
 body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode,body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.campaignRow{grid-column:auto;max-width:none}
}
@media(max-width:900px){body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.worldMode,body.exchange-world:not(.playing) #v2title.cardStoryTitle .playDeck .ttmodes>button.ttmode.campaignRow{grid-column:auto}}
/* Stress test (27 Oct 2026, phones and flaky networks): short screens keep ACCEPT on screen and the MATCHED lineup inside it */
#wtCeremony .wtLineup:has(figure:nth-of-type(3)) .wtAmp{display:none}
@media(max-height:560px){
 #v2mbox.wtAcceptModal{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto}
 .wtAccept h3{font-size:26px}
 .wtDial{width:84px;height:84px;margin:6px 0 2px}.wtDial>b{font-size:34px;margin-top:2px}.wtDial>small{display:none}
 .wtFaces{gap:8px;margin:2px 0}.wtFaces figure{width:64px}.wtFaces figure img{width:40px;height:40px}.wtTick{top:24px}.wtFaces figure small{display:none}
 .wtAccept .wtWho{margin:2px 0 6px;font-size:13px}.wtAccept>small{display:none}
 .wtAcceptBig{position:sticky;bottom:0;min-height:48px;z-index:1}
 #wtCeremony{gap:8px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
 #wtCeremony>header>span{font-size:clamp(30px,9vh,56px)}
 #wtCeremony .wtLineup{flex-wrap:nowrap;gap:12px}
 #wtCeremony .wtLineup figure{gap:4px}
 #wtCeremony .wtLineup figure img{width:clamp(52px,17vh,96px);height:clamp(52px,17vh,96px)}
 #wtCeremony .wtLineup figcaption{font-size:16px}
 #wtCeremony .wtAmp{display:none}
}
@media(max-width:400px){
 .wtDial{width:96px;height:96px;margin:8px 0 2px}.wtDial>b{font-size:40px}
 .wtFaces figure{width:64px}.wtFaces figure img{width:44px;height:44px}.wtTick{top:26px}
 .wtAcceptBig{position:sticky;bottom:0;z-index:1}
 #wtCeremony .wtLineup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
 #wtCeremony .wtLineup:not(:has(figure:nth-of-type(3))){display:flex}
 #wtCeremony .wtLineup figure img{width:clamp(64px,22vw,96px);height:clamp(64px,22vw,96px)}
 #wtCeremony .wtAmp{display:none}
}
/* Round 2 (27 Oct 2026): a phone held sideways at 568x320 keeps ACCEPT tappable; long names never run into each other on MATCHED */
@media(max-height:360px){
 .wtDial{width:64px;height:64px;margin:2px 0}.wtDial>b{font-size:26px}
 .wtFaces figure{width:56px}.wtFaces figure img{width:34px;height:34px}.wtTick{top:18px}
 .wtAccept h3{font-size:22px;margin:0}
 .wtAcceptBig{min-height:44px}
}
#wtCeremony .wtLineup figure{min-width:0;max-width:100%}
#wtCeremony .wtLineup figcaption{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wtFaces figure>span,.wtFaces figure>b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
