/* 백야의 여덟 장소 (owner, 2026-11-04: "각 메뉴 탭 안의 장소가 입체적으로 독립된 장소처럼").
   Every lobby section stands on its own stage: a fixed backdrop in three depth layers (.st-far, mid props, .st-near),
   a nameplate (.place-plate), a street-map bar at the bottom that replaces the top tabs (.street-map), and a shutter
   that drops and lifts when moving between places (.place-shutter). Loaded after every other sheet.
   Everything on the stage is drawn in CSS to match the concept board (owner, 2026-11-04: no stock images):
   https://claude.ai/artifact/X1d1ZAYE4LhvDmjNBTeFj3 */

/* ---- shared stage ---- */
.portal-shell .portal-layout::before{display:none}
.portal-shell .portal-embers{display:none}
.place-stage{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:var(--night);--px:0;--py:0}
.place-stage>*{position:absolute}
.place-stage .st-far{inset:0;translate:calc(var(--px) * -8px) calc(var(--py) * -4px)}
.place-stage .st-mid{translate:calc(var(--px) * -16px) calc(var(--py) * -8px)}
.place-stage .st-near{translate:calc(var(--px) * -26px) calc(var(--py) * -12px)}
.place-stage .st-veil{inset:0;background:linear-gradient(180deg,#0b1018d9,#0b101855 32%,#0b101800 55%,#0b1018 92%)}
.portal-shell:not(.portal-still) .place-stage>*{animation:st-arrive .55s cubic-bezier(.2,.7,.2,1) both}
.portal-shell:not(.portal-still) .place-stage>.st-mid{animation-delay:.1s}
.portal-shell:not(.portal-still) .place-stage>.st-near{animation-delay:.2s}
@keyframes st-arrive{from{opacity:0}to{opacity:1}}
.portal-shell .portal-layout{z-index:2}
.portal-shell .portal-top{position:relative;z-index:5}

/* nameplate: number-free address, name, Korean time, the place's sound */
.place-plate{display:inline-flex;flex-direction:column;gap:2px;margin:0 0 18px;padding:8px 16px 8px 12px;border-left:4px solid var(--accent,#9fb0bf);background:#0b1018d9;color:var(--frost);max-width:100%}
.place-plate small{font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.16em;text-transform:uppercase;color:var(--steel)}
.place-plate b{font-size:22px;font-weight:900;line-height:1.1;color:#fff}
.place-plate span{font-size:12px;color:var(--frost-2)}

/* street map: the eight doors, fixed along the bottom */
.portal-shell .portal-nav.street-map{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;padding:28px 18px 12px;border:0;background:linear-gradient(180deg,#0b101800,#0b1018 40%);overflow-x:auto;scrollbar-width:none;min-width:0}
.portal-shell .portal-nav.street-map::before{content:'거리 지도';flex:none;writing-mode:vertical-rl;rotate:180deg;font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.2em;color:var(--steel);margin-right:4px}
.portal-shell .portal-nav.street-map button{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:128px;padding:8px 12px;border:1px solid var(--slate-2);border-radius:4px;background:#141a24e6;color:var(--frost);text-align:left;font-size:13px;font-weight:700;box-shadow:none;transition:border-color .18s,box-shadow .18s,translate .18s;white-space:nowrap}
.portal-shell .portal-nav.street-map button span{display:block;font:500 11px 'Paperlogy',sans-serif;letter-spacing:0;text-transform:none;color:var(--steel);min-width:0;width:auto}
.portal-shell .portal-nav.street-map button small{display:inline;font:inherit;color:var(--neon);margin:0}
.portal-shell .portal-nav.street-map button:hover:not(:disabled){background:#1b232b;color:#fff;translate:0 -2px;border-color:var(--steel-2)}
.portal-shell .portal-nav.street-map button.active{background:#141a24;color:#fff;border-color:var(--accent,#9fb0bf);box-shadow:0 0 14px color-mix(in srgb,var(--accent,#9fb0bf) 45%,transparent)}
.portal-shell .portal-nav.street-map button.active span{color:var(--frost-2)}
.portal-shell .portal-nav.street-map button.closed{opacity:.55}
.portal-shell .portal-layout{padding-bottom:150px}

/* shutter move between places */
.place-shutter{position:fixed;inset:0;z-index:300;pointer-events:none;animation:place-shutter-root .72s linear both}
@keyframes place-shutter-root{from{opacity:1}to{opacity:1}}
.place-shutter-panel{position:absolute;inset:0 0 auto;height:100%;background:repeating-linear-gradient(0deg,#2c3642 0 14px,#222c38 14px 18px);border-bottom:4px solid #5d6b7a;box-shadow:0 20px 50px #000000cc;translate:0 -100%;animation:place-shutter-panel .72s cubic-bezier(.76,0,.24,1) both}
@keyframes place-shutter-panel{0%{translate:0 -100%}32%{translate:0 0}56%{translate:0 0}100%{translate:0 -100%}}
.place-shutter-stamp{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);rotate:-3deg;padding:10px 24px;background:var(--frost);color:var(--night);font:900 clamp(20px,3vw,30px)/1.2 'Paperlogy',sans-serif;box-shadow:0 10px 24px #000;opacity:0;animation:place-shutter-stamp .72s both}
@keyframes place-shutter-stamp{0%,24%{opacity:0;scale:1.25}36%{opacity:1;scale:1}58%{opacity:1}70%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.place-shutter{display:none}.portal-shell:not(.portal-still) .place-stage>*{animation:none}}

/* ---- 아레나 광장 (온라인 대전) ---- */
.st-city{background:#0b1018 url(/art/baekya-city.webp) center 28%/cover no-repeat;filter:brightness(.5) saturate(.85)}
/* Rain, film noir (owner, 2026-11-04: "비를 느와르풍으로"). The rain itself is almost invisible: long thin streaks
   that only catch the light near the billboard and the lamp (a radial mask), a faint wider sheet behind them, a fog
   bank drifting along the ground, and the lights smeared down the wet pavement. */
.st-rain{inset:0;width:100%;height:100%;display:block}
.place-stage-play .st-veil{background:linear-gradient(180deg,#0b1018f2,#0b101888 30%,#0b101822 55%,#0b1018 92%)}
.place-stage-play .st-city{filter:brightness(.38) saturate(.45) contrast(1.3)}
.place-stage-play .st-billboard::before{content:'';position:absolute;left:50%;top:50%;width:170%;height:260%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ff5fa833,#ff5fa80e 45%,transparent 70%);pointer-events:none;z-index:-1}
.place-stage-play .st-pole{top:calc(120px + 160px);width:10px;background:linear-gradient(#5d6b7a,#1b232b)}
.place-stage-play .st-pole::before{content:'';position:absolute;left:-32px;top:-26px;width:74px;height:26px;background:linear-gradient(#4a5665,#222c38);clip-path:polygon(28% 0,72% 0,100% 100%,0 100%)}
.place-stage-play .st-pole::after{content:'';position:absolute;left:-250px;top:0;width:510px;height:70vh;background:radial-gradient(ellipse at 50% 0%,#e9f3ff2e,#b9f5e10c 40%,transparent 70%);clip-path:polygon(47% 0,53% 0,100% 100%,0 100%);pointer-events:none}
.place-stage-play .st-wet{height:34vh;background:linear-gradient(180deg,#0b101800,#0b1018b0 55%,#0b1018e6)}
.place-stage-play .st-wet::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 16% 92% at 83% 0%,#ff5fa83a,transparent 100%),radial-gradient(ellipse 11% 82% at 57% 0%,#dff1ff26,transparent 100%),repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 9px)}
.place-stage-play .st-wet::after{content:'';position:absolute;left:-10%;right:-10%;bottom:8vh;height:22vh;background:radial-gradient(ellipse 60% 100% at 40% 100%,#8a9bad1e,transparent 70%),radial-gradient(ellipse 50% 100% at 85% 100%,#8a9bad16,transparent 70%);animation:st-fog 22s ease-in-out infinite alternate;will-change:transform}
@keyframes st-fog{from{transform:translateX(-30px)}to{transform:translateX(30px)}}
@media (prefers-reduced-motion:reduce){.place-stage-play .st-wet::after{animation:none}}
.st-billboard{right:5vw;top:120px;width:min(440px,34vw);padding:16px 22px;border:5px solid #2c3642;border-radius:6px;background:#0b1018;background-image:repeating-linear-gradient(0deg,#ffffff06 0 2px,transparent 2px 4px);box-shadow:0 0 0 2px #0b1018,0 30px 60px #00000099,0 0 60px #ff5fa822;display:flex;flex-direction:column;gap:10px}
.st-billboard .st-live{display:flex;justify-content:space-between;font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.16em;color:#ff9fcd}
.st-billboard .st-live i{font-style:normal;color:var(--steel)}
.st-numbers{display:flex;gap:26px;align-items:flex-end}
.st-numbers span{display:flex;flex-direction:column;font-size:12px;color:var(--frost-2)}
.st-numbers b{font:800 48px/.9 Archivo,sans-serif;color:#ff5fa8;text-shadow:0 0 22px #ff5fa888}
.st-numbers span:nth-child(2) b{color:#8fe6ff;text-shadow:0 0 22px #8fe6ff66}
.st-numbers span:nth-child(3) b{color:#7be2bb;text-shadow:0 0 22px #7be2bb66}
.st-pole{right:calc(5vw + min(220px,17vw));top:calc(120px + 150px);width:14px;height:34vh;background:linear-gradient(#3a404a,#1b232b)}
.st-wet{left:0;right:0;bottom:0;height:36vh;background:linear-gradient(180deg,#0b101800,#0b1018e6 55%,#0b1018)}
.st-curb{left:0;right:0;bottom:118px;height:2px;background:linear-gradient(90deg,transparent,#5d6b7a,transparent)}
.place-play .play-tabs button{border:2px solid var(--slate-2)!important;border-radius:4px!important;padding:8px 14px!important;margin:0!important;background:#0b1018d9!important;color:#fff!important;font-weight:800!important}
.place-play .play-tabs button.active,.place-play .play-tabs button[aria-pressed="true"]{border-color:#ff5fa8!important;box-shadow:0 0 16px #ff5fa877,inset 0 0 10px #ff5fa833}
.place-play .play-tabs{border-bottom:0!important;gap:10px!important}
/* The pass is a dark ticket (owner, 2026-11-04: the cream one jumped out of the noir scene). */
.place-play .rank-card{position:relative;padding-left:52px!important;background:linear-gradient(180deg,#1b232b,#121922)!important;color:var(--frost)!important;border:1px solid #3a404a!important;border-radius:8px!important;box-shadow:0 20px 40px #00000099,inset 0 0 0 1px #ffffff08!important;overflow:hidden}
.place-play .rank-card::before{content:'ARENA PASS';position:absolute;left:0;top:0;bottom:0;width:36px;background:linear-gradient(180deg,#d9478f,#8e2d5e);color:#ffe3f1;writing-mode:vertical-rl;rotate:180deg;display:flex;align-items:center;justify-content:center;font:800 10px Archivo,sans-serif;letter-spacing:.3em}
.place-play .rank-card::after{content:'';position:absolute;left:44px;top:0;bottom:0;border-left:2px dashed #ffffff1f}
.place-play .rank-card :is(small,span,p,.rank-record,.rank-rating){color:var(--frost-2)!important}
.place-play .rank-card strong{color:#d99a56!important}
.place-play .rank-card .rank-rating b{color:#fff!important}
.place-play .rank-card.tier-silver strong{color:#c9d6e2!important}
.place-play .rank-card.tier-gold strong{color:#ffd36b!important}
.place-play .rank-card.tier-platinum strong{color:#7be2bb!important}
.place-play .rank-card.tier-diamond strong{color:#8fe6ff!important}
.place-play .rank-card.tier-master strong{color:#ff9fcd!important}
.place-play .rank-queue-button,.place-play .portal-actions .primary{box-shadow:0 0 30px #ff5fa866,0 14px 30px #00000088!important}

/* ---- 지하 훈련실 (AI 연습) ---- */
.st-wall{background:linear-gradient(180deg,#0b1018,#141a24 40%,#1b232b 70%,#0f151d);background-image:repeating-linear-gradient(90deg,#ffffff05 0 2px,transparent 2px 120px),repeating-linear-gradient(0deg,#00000033 0 1px,transparent 1px 60px)}
.st-pipe{left:0;right:0;top:44px;height:10px;border-radius:5px;background:linear-gradient(#5d6b7a,#2c3642);box-shadow:0 4px 8px #00000088}
.st-pipe-2{top:66px;right:36%}
.st-lamp{left:calc(72% - 240px);top:44px;width:4px;height:110px;background:#5d6b7a}
.st-lamp::before{content:'';position:absolute;left:-46px;top:106px;width:96px;height:34px;background:linear-gradient(#3a404a,#1b232b);clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}
.st-lamp::after{content:'';position:absolute;left:-16px;top:136px;width:36px;height:8px;border-radius:50%;background:#b9f5e1;box-shadow:0 0 30px #7be2bb,0 0 70px #7be2bb88}
.st-cone{left:calc(72% - 240px - 250px);top:150px;width:500px;height:52vh;background:radial-gradient(ellipse at 50% 0%,#7be2bb33,#7be2bb0a 45%,transparent 70%);clip-path:polygon(44% 0,56% 0,100% 100%,0 100%)}
.st-glow{left:72%;top:60px;transform:translateX(-50%);width:420px;height:440px;background:radial-gradient(ellipse at 50% 60%,#7be2bb2e,transparent 65%)}
.st-seated{left:72%;top:max(40px,calc(58vh - 460px));transform:translateX(-50%);width:min(520px,38vw);height:auto;filter:brightness(.9) drop-shadow(0 20px 30px #000000cc)}
.st-table{left:72%;top:58vh;transform:translateX(-50%);width:min(640px,48vw);height:200px;background:linear-gradient(180deg,#2c3642,#1b232b);clip-path:polygon(14% 0,86% 0,100% 100%,0 100%);box-shadow:0 30px 50px #00000099}
.st-table::after{content:'';position:absolute;left:11%;right:11%;top:22px;height:120px;background-image:linear-gradient(#7be2bb44 1px,transparent 1px),linear-gradient(90deg,#7be2bb44 1px,transparent 1px);background-size:14.3% 33.4%;transform:perspective(600px) rotateX(38deg);transform-origin:50% 100%;opacity:.8}
.st-plaque{left:calc(72% + 170px);top:48vh;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid #5d6b7a;border-radius:4px;background:#0b1018e6}
.st-plaque small{font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.16em;color:#7be2bb}
.st-plaque b{font-size:14px;color:#fff}
.place-ai .ai-levels{border:1px solid var(--slate-2)!important;border-radius:6px;background:#141a24;padding:8px 10px}
.place-ai .ai-level{position:relative;padding-left:34px!important;box-shadow:none!important;border:0!important}
.place-ai .ai-level::before{content:'';position:absolute;left:10px;top:50%;translate:0 -50%;width:14px;height:14px;border-radius:50%;border:2px solid #5d6b7a}
.place-ai .ai-level.active::before{background:#7be2bb;border-color:#7be2bb;box-shadow:0 0 12px #7be2bb}
.place-ai .portal-panel .primary{box-shadow:0 0 30px #7be2bb55,0 14px 30px #00000088!important}

/* ---- 의뢰 창구 (미션) ---- */
.st-office{background:linear-gradient(180deg,#0f151d,#1b232b 55%,#141a24);background-image:repeating-linear-gradient(90deg,#ffffff06 0 1px,transparent 1px 160px)}
.st-rail{left:0;right:0;top:112px;height:3px;background:#4a5665}
.st-sign{right:12vw;top:64px;padding:6px 18px;border:2px solid #ffd36b;border-radius:3px;color:#ffd36b;font-size:14px;font-weight:900;letter-spacing:.2em;box-shadow:0 0 18px #ffd36b66;background:#0b1018cc}
.st-glass{right:5vw;top:130px;width:min(560px,40vw);height:50vh;border:10px solid #2c3642;border-bottom:0;background:linear-gradient(160deg,#8fe6ff14,#8fe6ff05 40%,#ffffff00 60%,#8fe6ff0d);box-shadow:inset 0 0 60px #0b101866}
.st-desk{right:0;top:calc(130px + 50vh);width:min(760px,52vw);height:120px;background:linear-gradient(180deg,#3a404a,#1b232b);box-shadow:0 -6px 0 #4a5665,0 30px 50px #00000099}
.st-clock{right:calc(5vw + 30px);top:calc(130px + 50vh - 120px);display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #5d6b7a;border-radius:4px;background:#0b1018e6;min-width:180px}
.st-clock small{font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.16em;color:#ffd36b}
.st-clock b{font:800 30px/1 Archivo,sans-serif;color:#fff;font-variant-numeric:tabular-nums}
.st-clock span{font-size:11px;color:var(--frost-2)}
.place-missions .mission-list{border:0!important;gap:10px!important;display:grid}
.place-missions .mission-card{position:relative;background:var(--frost)!important;color:var(--night)!important;border:0!important;border-radius:3px!important;box-shadow:0 10px 24px #00000088!important;background-image:repeating-linear-gradient(0deg,transparent 0 23px,#9fb0bf33 23px 24px)!important;padding:14px 16px!important}
.place-missions .mission-card :is(h3,strong){color:var(--night)!important}
.place-missions .mission-card :is(small,span,p){color:#3a404a!important}
.place-missions .mission-card.ready::after{content:'달성';position:absolute;right:14px;top:10px;width:54px;height:54px;border:3px solid #e07a85;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#e07a85;font-size:14px;font-weight:900;rotate:-14deg;pointer-events:none}
.place-missions .mission-card.claimed{opacity:.55}
.place-missions .mission-claim-all{border:1px solid #ffd36b66;border-radius:6px;background:#141a24;padding:12px 14px}
.place-missions .mission-claim-all .primary{background:linear-gradient(180deg,#ffe29a,#ffd36b)!important;border-color:#ffd36b!important;color:#2a1a05!important;box-shadow:0 0 24px #ffd36b44!important}

/* ---- 자판기 골목 (상점) ---- */
.st-alley{background:linear-gradient(180deg,#0b1018,#141a24 60%,#0f151d)}
.st-wall-l{left:0;top:0;width:26vw;height:100%;background:linear-gradient(90deg,#1b232b,#1b232b00);background-image:repeating-linear-gradient(0deg,#00000033 0 1px,transparent 1px 40px);mask-image:linear-gradient(90deg,#000,transparent)}
.st-wall-r{right:0;top:0;width:34vw;height:100%;background:linear-gradient(270deg,#1b232b,#1b232b00);background-image:repeating-linear-gradient(0deg,#00000033 0 1px,transparent 1px 40px),repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 70px);mask-image:linear-gradient(270deg,#000,transparent)}
.st-ground{left:0;right:0;bottom:0;height:30vh;background:linear-gradient(180deg,#0f151d00,#0b1018b0);background-image:radial-gradient(ellipse at 30% 0%,#ff5fa82a,transparent 50%),radial-gradient(ellipse at 72% 0%,#49e6d52a,transparent 50%)}
.st-neon{padding:6px 14px;border:2px solid var(--c);border-radius:4px;color:var(--c);font:800 15px Archivo,sans-serif;letter-spacing:.16em;box-shadow:0 0 16px var(--c),inset 0 0 10px var(--c);background:#0b1018cc}
.st-neon-pink{--c:#ff5fa8;right:22vw;top:110px;rotate:-2deg}
.st-neon-teal{--c:#49e6d5;right:6vw;top:150px;rotate:2deg}
.place-shop .shop-grid{border:0!important}
.place-shop .shop-item,.place-shop .pack-product{border:1px solid var(--slate-2)!important;border-radius:6px!important;background:linear-gradient(180deg,#222c38,#141a24)!important;box-shadow:inset 0 0 0 1px #ffffff10,0 14px 30px #00000066!important;margin-bottom:10px}
.place-shop .shop-item:hover,.place-shop .pack-product:hover{border-color:#ff9fcd!important;box-shadow:0 0 16px #ff5fa844,inset 0 0 0 1px #ffffff10!important}
.place-shop .portal-panel .primary{box-shadow:0 0 20px #ff5fa855!important}

/* ---- 작업실 (덱 관리) ---- */
.st-lamp-left{left:12vw}
.st-cone-left{left:calc(12vw - 250px)}
.st-bench{left:0;right:0;bottom:0;height:22vh;background:linear-gradient(180deg,#2c364200,#2c3642 40%,#1b232b);opacity:.7}
.place-deck .st-wall{background-image:repeating-linear-gradient(90deg,#ffffff04 0 1px,transparent 1px 48px),repeating-linear-gradient(0deg,#00000022 0 1px,transparent 1px 48px)}

/* ---- 기록 보관소 (퍼즐) ---- */
/* Rendered scene (2026-11-20, owner: "모든 에셋이 벡터 수준이라 짜친다"): a path-traced archive aisle replaces the CSS shelf bars.
   The picture keeps its subject on the right; the veil darkens the left where the text column sits. */
.st-archive{inset:-14px auto -14px -30px!important;width:124vw;background:#0b1018 url(/art/place-archive.webp?v=1) 50% 42%/cover no-repeat}
.st-archive::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 22% 40% at 44% 21%,#bfe9ff24,transparent 70%);animation:st-archive-lamp 7s ease-in-out infinite}
@keyframes st-archive-lamp{0%,100%{opacity:.75}43%{opacity:1}46%{opacity:.55}48%{opacity:1}72%{opacity:.85}}
.st-dust{left:48%;right:6%;top:8%;bottom:18%;background-image:radial-gradient(circle,#dff4ffb0 0 1px,transparent 1.6px),radial-gradient(circle,#dff4ff80 0 1px,transparent 1.5px),radial-gradient(circle,#dff4ff66 0 .8px,transparent 1.3px);background-size:173px 211px,241px 157px,127px 139px;background-position:0 0,60px 90px,30px 40px;-webkit-mask-image:radial-gradient(ellipse 46% 60% at 42% 34%,#000 10%,transparent 78%);mask-image:radial-gradient(ellipse 46% 60% at 42% 34%,#000 10%,transparent 78%);opacity:.5;animation:st-dust 46s linear infinite}
@keyframes st-dust{to{background-position:-173px 211px,301px 247px,-97px 179px}}
.place-stage-puzzle .st-veil{background:linear-gradient(90deg,#0b1018f2 0,#0b1018d9 30%,#0b101866 52%,#0b101800 72%),linear-gradient(180deg,#0b101899 0,#0b101800 16%,#0b101800 70%,#0b1018 96%)}
@media (max-width:760px){.st-archive{inset:-14px -30px!important;width:auto;background-position:46% 42%}.place-stage-puzzle .st-veil{background:linear-gradient(180deg,#0b1018cc 0,#0b1018b3 45%,#0b1018 92%)}.st-dust{left:10%;right:0}}
@media (prefers-reduced-motion:reduce){.st-archive::after,.st-dust{animation:none}}
.place-puzzle .puzzle-list{border:0!important}
.place-puzzle .ai-level{border-left:4px solid #8fe6ff66!important;background:#141a24!important;margin-bottom:6px;border-radius:0 4px 4px 0}
.place-puzzle .ai-level.cleared{border-left-color:#e07a85!important}

/* ---- rendered scenes (2026-11-21, owner: "이대로 나머지도") ----
   One path-traced picture per place replaces the CSS props. Each picture is composed with its subject right of
   the text column; the veil darkens the left and the bottom. Phones get a heavier veil. */
.st-scene{inset:-14px -30px!important;background:#0b1018 50% 42%/cover no-repeat}
.st-scene-shop{background-image:url(/art/place-alley.webp?v=1)}
.st-scene-missions{background-image:url(/art/place-teller.webp?v=1)}
.st-scene-story{background-image:url(/art/place-theatre.webp?v=1)}
.st-scene-friends{background-image:url(/art/place-rooftop.webp?v=1)}
.st-scene-deck{background-image:url(/art/place-workshop.webp?v=1)}
.place-stage .st-scene~.st-veil{background:linear-gradient(90deg,#0b1018f2 0,#0b1018d9 30%,#0b101866 52%,#0b101800 72%),linear-gradient(180deg,#0b101899 0,#0b101800 16%,#0b101800 70%,#0b1018 96%)}
@media (max-width:760px){.st-scene{background-position:66% 42%}.place-stage .st-scene~.st-veil{background:linear-gradient(180deg,#0b1018cc 0,#0b1018b3 45%,#0b1018 92%)}}

/* ---- 옥상 (친구) ---- */
.st-sky{background:linear-gradient(180deg,#0b1018,#141a24 70%)}
.st-tower{bottom:18vh;background:#1b232b;border:1px solid #2c3642;background-image:radial-gradient(#ffd98a99 2px,transparent 2.5px),radial-gradient(#49e6d5aa 2px,transparent 2.5px);background-size:30px 40px,70px 90px;background-position:8px 10px,24px 30px}
.st-tower-1{right:8vw;width:180px;height:46vh}
.st-tower-2{right:calc(8vw + 200px);width:140px;height:36vh;background-size:28px 38px,90px 110px}
.st-tower-3{right:calc(8vw + 360px);width:110px;height:28vh;background-size:26px 36px,80px 100px;opacity:.7}
.st-ledge{left:0;right:0;bottom:0;height:18vh;background:linear-gradient(180deg,#2c3642,#141a24)}
.st-ledge::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:#5d6b7a}
.st-ledge::after{content:'';position:absolute;left:5%;right:5%;top:4px;height:28px;background:repeating-linear-gradient(90deg,#5d6b7a 0 3px,transparent 3px 40px)}
.place-friends .social-list{border:0!important}
.place-friends .social-person{border:1px solid var(--slate-2)!important;border-radius:4px!important;background:#141a24!important;margin-bottom:6px}

/* ---- 극장 (스토리) ---- */
.st-shutter-wall{right:10vw;top:150px;width:min(520px,40vw);height:44vh;background:repeating-linear-gradient(0deg,#3a404a 0 14px,#2c3642 14px 18px);border:4px solid #4a5665;border-top:0;opacity:.8}
.st-marquee{right:calc(10vw - 20px);top:118px;width:calc(min(520px,40vw) + 40px);height:34px;background:#222c38;border:2px solid #5d6b7a;display:flex;align-items:center;justify-content:center;gap:10px;font:800 14px Archivo,sans-serif;letter-spacing:.2em;color:#ffd36b;box-sizing:border-box}
.st-marquee::before,.st-marquee::after{content:'';width:8px;height:8px;border-radius:50%;background:#ffd36b;box-shadow:0 0 10px #ffd36b}

/* ---- 사물함·관리실 (프로필·관리): plain wall ---- */

/* ---- narrow screens: the stage thins out, props step back, the street map scrolls ---- */
@media (max-width:1100px){
.st-billboard{width:min(360px,46vw);padding:12px 16px}
.st-numbers b{font-size:36px}
.st-seated{width:min(420px,44vw);opacity:.55}
.st-table{width:52vw}
.st-plaque{display:none}
.st-glass{width:44vw;height:40vh}
.st-desk{width:56vw}
.st-clock{min-width:150px}
}
@media (max-width:760px){
.place-stage .st-billboard,.place-stage .st-sign,.place-stage .st-pole,.place-stage .st-seated,.place-stage .st-table,.place-stage .st-plaque,.place-stage .st-glass,.place-stage .st-desk,.place-stage .st-clock,.place-stage .st-shelf,.place-stage .st-shelf-2,.place-stage .st-shelf-light,.place-stage .st-tower,.place-stage .st-shutter-wall,.place-stage .st-marquee,.place-stage .st-neon,.place-stage .st-wall-l,.place-stage .st-wall-r{display:none}
.place-stage .st-cone,.place-stage .st-glow{left:50%;translate:-50% 0}
.place-plate{margin-bottom:12px;padding:6px 12px 6px 10px}
.place-plate b{font-size:18px}
.portal-shell .portal-nav.street-map{padding:20px 10px 10px;gap:6px}
.portal-shell .portal-nav.street-map::before{display:none}
.portal-shell .portal-nav.street-map button{min-width:96px;padding:6px 10px;font-size:12px}
.portal-shell .portal-nav.street-map button span{font-size:10px}
.portal-shell .portal-layout{padding-bottom:110px}
.place-shutter-stamp{font-size:20px}
}
@media (hover:none){.place-stage .st-far,.place-stage .st-mid,.place-stage .st-near{translate:none}}

/* ---- 자판기 골목: the board's vending machine (six lit slots, a dispenser) and the photo booth ---- */
.st-machine{right:7vw;bottom:70px;width:min(300px,22vw);height:min(420px,32vw);padding:14px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px;border:4px solid #3a404a;border-radius:8px;background:linear-gradient(180deg,#222c38,#141a24);box-shadow:0 30px 50px #00000099,inset 0 0 0 1px #ffffff10}
.st-machine i{display:block;border:1px solid #5d6b7a;border-radius:4px;background:#0b1018;position:relative;overflow:hidden}
.st-machine i::after{content:'';position:absolute;left:22%;right:22%;top:14%;bottom:26%;border-radius:3px;background:linear-gradient(160deg,var(--c,#ff5fa8),#0b1018 85%);box-shadow:0 0 12px var(--c,#ff5fa8)}
.st-machine i:nth-child(1){--c:#ff5fa8}.st-machine i:nth-child(2){--c:#8fe6ff}.st-machine i:nth-child(3){--c:#7be2bb}.st-machine i:nth-child(4){--c:#e07a85}.st-machine i:nth-child(5){--c:#9fb0bf}.st-machine i:nth-child(6){--c:#5d6b7a;opacity:.5}
.st-machine b{grid-column:1/-1;display:block;height:22px;border:1px solid #5d6b7a;border-radius:3px;background:#0b1018}
.st-booth{right:calc(7vw + min(300px,22vw) + 30px);bottom:70px;width:min(200px,15vw);height:min(300px,24vw);border:4px solid #5e2232;border-radius:8px;background:linear-gradient(180deg,#2a1a22,#141a24);box-shadow:0 30px 50px #00000099;overflow:hidden}
.st-booth::before{content:'';position:absolute;left:0;right:0;top:0;height:46%;background:repeating-linear-gradient(90deg,#5e2232 0 14px,#3a1620 14px 28px)}
.st-booth span{position:absolute;left:14%;right:14%;top:52%;height:34%;border-radius:4px;background:#0b1018;box-shadow:inset 0 0 18px #ff5fa844}
.st-booth::after{content:'사진 부스';position:absolute;left:0;right:0;top:46%;height:16px;line-height:16px;text-align:center;font:800 9px Archivo,sans-serif;letter-spacing:.2em;color:#ff9fcd;background:#0b1018}
/* ---- 의뢰 창구: the slot under the glass where the slips pass ---- */
.st-slot{right:calc(5vw + 160px);top:calc(130px + 50vh - 24px);width:140px;height:30px;border-radius:3px;background:#0b1018;border:2px solid #4a5665}
@media (max-width:760px){.place-stage .st-machine,.place-stage .st-booth,.place-stage .st-slot{display:none}}
/* ---- 지하 훈련실 cohesion (owner, 2026-11-04: "이질적이지 않아?"): the illustration's steel desk is cropped off and her
   hands rest on the practice table, whose top edge is pinned to her hands; a lamp-colored light pass in her own shape
   (mask) and a floor shadow tie her to the room; film grain over the whole stage evens painted and drawn surfaces. ---- */
.place-stage::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse 78% 74% at 50% 45%,transparent 60%,#0b101855 88%,#0b101899 100%)}
.place-stage .st-far:not(.st-city):not(.st-rain){filter:contrast(1.1) brightness(.92) saturate(.8)}
.place-stage::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.055;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E")}
.place-stage-ai{--seat-w:min(480px,36vw);--seat-top:max(40px,calc(58vh - 420px))}
.place-stage-ai .st-seated{top:var(--seat-top);width:var(--seat-w);height:var(--seat-w);object-fit:contain;clip-path:inset(0 0 8.5% 0);filter:brightness(.82) contrast(1.04) saturate(.85)}
.st-seated-light{left:72%;top:var(--seat-top);transform:translateX(-50%);width:var(--seat-w);height:var(--seat-w);clip-path:inset(0 0 8.5% 0);-webkit-mask-image:url(/art/android-rig-mask.webp?v=4);mask-image:url(/art/android-rig-mask.webp?v=4);-webkit-mask-size:100% 100%;mask-size:100% 100%;background:linear-gradient(180deg,#b9f5e166,#7be2bb22 28%,#0b101800 48%,#0b1018aa 100%);mix-blend-mode:normal}
.place-stage-ai .st-table{top:calc(var(--seat-top) + var(--seat-w) * .905);width:min(960px,calc(var(--seat-w) * 2));height:230px;background:linear-gradient(180deg,#5d6b7a,#3a404a 22%,#222c38 60%,#141a24);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);box-shadow:0 30px 50px #00000099}
.place-stage-ai .st-table::before{content:'';position:absolute;left:12%;right:12%;top:0;height:3px;background:linear-gradient(90deg,#9fb0bf00,#b9f5e1aa,#9fb0bf00)}
.place-stage-ai .st-table::after{top:18px;height:140px;opacity:.55}
.place-stage-ai .st-shadow{left:72%;top:calc(var(--seat-top) + var(--seat-w) * .86);transform:translateX(-50%);width:calc(var(--seat-w) * .9);height:60px;border-radius:50%;background:radial-gradient(ellipse,#0b1018cc,transparent 70%)}
.place-stage-ai .st-plaque{top:calc(var(--seat-top) + var(--seat-w) * .62)}
@media (max-width:760px){.place-stage .st-seated-light{display:none}.place-stage::after{opacity:.05}}
/* Seated android rig (2026-11-04): 57 atlas cut-outs in a 1024-unit box, positioned in percentages so it scales with
   --seat-w. No filter on the container (it would re-rasterize the whole rig every frame); the tone is baked into the
   atlas. The groups: body breathes, head tilts (and follows the pointer a little), hair sways with a lag, eyes glance,
   fingers tap. */
.place-stage-ai .st-seated{top:var(--seat-top);width:var(--seat-w);height:var(--seat-w);clip-path:none;filter:none;transform:translateX(-50%);contain:layout style}
.rig{position:absolute;inset:0}
.rig .rg,.rig .rg-g{position:absolute;display:block}
.rig .rg{background-image:url(/art/android-rig.webp?v=4);background-repeat:no-repeat;pointer-events:none}
.rig .rg-g{inset:0;transform-origin:50% 42%}
.rig .rg-breathe{transform-origin:50% 92%;animation:rg-breathe 4.6s ease-in-out infinite}
.rig .rg-head{animation:rg-head 9s ease-in-out infinite;rotate:calc(var(--px,0) * .8deg)}
.rig .rg-sway{transform-origin:50% 12%;animation:rg-sway 6.8s ease-in-out infinite;animation-delay:-1.2s}
.rig .rg-iris{translate:calc((var(--px,0) * 3 + var(--gx,0)) * 1px) calc((var(--py,0) * 1.5 + var(--gy,0)) * 1px);transition:translate .28s cubic-bezier(.3,.8,.3,1)}
.rig .rg-finger{transform-origin:50% 10%;transition:transform .12s ease-out}
.rig .rg-finger.tap{transform:rotate(-6deg) translateY(-1.5%);transition-timing-function:ease-in}
@keyframes rg-breathe{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-1.5px) scaleY(1.006)}}
@keyframes rg-head{0%,100%{transform:rotate(-.45deg) translateY(0)}38%{transform:rotate(.35deg) translateY(.8px)}70%{transform:rotate(.5deg) translateY(-.6px)}}
@keyframes rg-sway{0%,100%{transform:rotate(-.4deg)}50%{transform:rotate(.45deg)}}
.place-stage-ai .st-seated-light{-webkit-mask-image:url(/art/android-rig-mask.webp?v=4);mask-image:url(/art/android-rig-mask.webp?v=4);clip-path:none}
.place-stage-ai .st-table{top:calc(var(--seat-top) + var(--seat-w) * .84);height:calc(230px + var(--seat-w) * .081);clip-path:polygon(14% 0,86% 0,100% 100%,0 100%)}
.place-stage-ai .st-table::before{left:14%;right:14%}
@media (prefers-reduced-motion:reduce){.rig .rg-g,.rig .rg-finger{animation:none;transition:none}.rig .rg-head{rotate:none}.rig .rg-iris{translate:none}}
/* Training-room table as the duel board (2026-11-05): the match screen's own court plate, twice (far half and near half,
   the far one with the court art turned round), lying on the table. Same plate colour, border, concrete plinth, court SVG
   and faint 7×3 cells as .duel-shell .board; rotateX(66deg) with perspective 1880px matches the table's taper. */
.place-stage-ai .st-table::after{display:none}
.place-stage-ai .st-field{position:absolute;left:6%;right:6%;bottom:14px;aspect-ratio:1.18;display:grid;grid-template-rows:minmax(0,1fr) 4px minmax(0,1fr);gap:6px;transform:perspective(1880px) rotateX(66deg);transform-origin:50% 100%}
.place-stage-ai .st-grid{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;min-height:0;background:#292e38;border:1px solid #a3aab05c;box-shadow:0 2px 0 #090e15,0 10px 18px #00000080}
.place-stage-ai .st-grid::before{content:'';position:absolute;inset:0;z-index:0;background:url(/art/baekya-court.svg?v=1) center/100% 100% no-repeat;pointer-events:none}
.place-stage-ai .st-grid-far::before{transform:rotate(180deg)}
.place-stage-ai .st-grid::after{content:'';position:absolute;z-index:-1;inset:-9px -9px -11px;border:1px solid #8e969e88;border-radius:3px;background:linear-gradient(105deg,#5c636c,#343c48 8%,#222934 50%,#46505b 94%,#777e86);box-shadow:inset 0 1px 0 #c9ced34d,inset 0 -4px 0 #111721,0 7px 0 #141a24,0 12px 16px #00000070;pointer-events:none}
.place-stage-ai .st-grid-far::after{bottom:-4px;border-bottom:0;border-radius:3px 3px 0 0}
.place-stage-ai .st-grid-near::after{top:-4px;border-top:0;border-radius:0 0 3px 3px}
.place-stage-ai .st-grid i{position:relative;z-index:1;display:block;min-height:0;border:1px solid #abb4c02b;border-radius:2px;background:linear-gradient(135deg,#c0c9d409,#080e1710);box-shadow:inset 0 1px 0 #c6ced60a,inset 0 -1px 0 #080c1566}
.place-stage-ai .st-field-line{position:relative;height:4px}
.place-stage-ai .st-field-line::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:linear-gradient(90deg,transparent,#8798aa88 10%,#8798aa88 90%,transparent)}
/* ---- 아레나 광장 host (2026-11-06): one rigged character holding the player's Arena Pass, leaning on the LIVE billboard.
   She is fixed to the viewport beside the panel (like the training-room android), so she stays while the panel
   scrolls. 38 atlas cut-outs in an 896×1216 box (percent positions, scaling with --W). --W is the smallest of 672px,
   what the width leaves beside the 640px panel (--F), what the height above the card leaves for her head, and what
   the height under it leaves for the billboard to sit above the street map. --off centres her in the room right of
   the panel (300px at most). --A is where her hand is, measured from the panel's left edge: the panel width plus --off plus enough for her
   hand to clear the panel's right edge. The season card is the panel's own element but out of the flow there: a
   ticket --cw wide (560px at most, less when the heading needs the room) with its right end at --A and its lower
   edge 88px under the heading's top, so the heading stands left of it and the tabs start under it. The blink
   steps through six pre-rendered frames per eye (.rg-ef-0 is the open eye; 1–5 close it), shown one at a time.
   Her fingers (24% / 34.95% of the box) are pinned to the card's lower right corner as it sits with the page at the
   top: --pass-b, measured by app.js. The card (z 2) lies between her rig (z 1) and .pass-front (z 3), a second rig
   holding only the index finger. .pass-sill is the billboard, in front of her, its top edge at her elbows (79.3%);
   the rig is cut just under that edge. The stage's own billboard hides while she is there, and its downlight comes
   from the top of the screen over her (--host-x, set from app.js). ---- */
.place-stage-play .st-pole{left:calc(var(--host-x,calc(95vw - min(220px,17vw))) - 5px);right:auto;top:267px;background:none}
@media (max-width:1100px){.place-stage-play .st-pole{top:251px}}
@media (min-width:1001px){
.portal-shell:has(.pass-rig) .place-stage-play .st-billboard{display:none}
.portal-shell:has(.pass-rig) .place-stage-play .st-pole{top:0}
.portal-shell:has(.pass-rig) .place-stage-play .st-pole::before{display:none}
}
.pass-slot{position:relative;margin:0 0 22px}
.place-play .pass-slot .rank-card{margin:0}
.pass-hold{--F:calc(100vw - var(--gutter) - 34px - 640px);--W:min(672px,calc(var(--F) / .912),calc((283px + clamp(28px,6vh,72px) - 88px) / .4743),max(360px,calc((100vh - 215px - 283px - clamp(28px,6vh,72px)) / .606)));--off:clamp(0px,calc((var(--F) - var(--W) * .792) / 2),300px);--A:calc(648px + var(--off) + var(--W) * .152);--cw:clamp(400px,calc(var(--A) - 5 * clamp(40px,5.4vw,84px) - 16px),560px);position:relative}
.pass-slot.bare{margin:0}
.pass-slot.bare .pass-hold{height:0}
.pass-rig{position:fixed;z-index:1;left:calc(var(--gutter) + var(--A) - var(--W) * .24);top:calc(var(--pass-b,calc(283px + clamp(28px,6vh,72px))) - 4px - var(--W) * .4743);width:var(--W);aspect-ratio:896/1216;pointer-events:none}
.pass-rig.pass-front{z-index:3}
.pass-rig .rig-host,.pass-light{clip-path:inset(-20% -20% 20.2% -400%)}
.pass-light{position:absolute;inset:0;-webkit-mask-image:url(/art/arena-host-mask.webp?v=7);mask-image:url(/art/arena-host-mask.webp?v=7);-webkit-mask-size:100% 100%;mask-size:100% 100%;background:linear-gradient(180deg,#e9f3ff24,#b9f5e10c 18%,#0b101800 34%,#0b101800 62%,#0b101840 80%)}
.pass-rig .pass-sill{position:absolute;left:8.8%;right:3%;top:79.3%;width:auto}
.pass-rig .pass-sill::before{content:'';position:absolute;left:-11px;right:-11px;top:-11px;height:9px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#8a9bad,#4a5665 45%,#2c3642);box-shadow:0 -1px 0 #b9c6d255,0 6px 12px #000000aa}
.pass-rig .pass-sill::after{content:'';position:absolute;left:0;right:0;top:-5px;height:16px;background:radial-gradient(ellipse 14% 100% at 15% 0,#000000b0,transparent 100%),radial-gradient(ellipse 13% 100% at 73% 0,#000000b0,transparent 100%);pointer-events:none}
.rig-host .rg{background-image:url(/art/arena-host-rig.webp?v=7)}
.rig-host .rg-g{transform-origin:51.1% 43.3%}
.rig-host .rg-breathe{transform-origin:53.2% 77.3%;animation:hs-breathe 5.2s ease-in-out infinite;animation-delay:var(--t,0s)}
.rig-host .rg-head{animation:hs-head 10s ease-in-out infinite;animation-delay:var(--t,0s)}
.rig-host .rg-arm{transform-origin:21.2% 75.2%;animation:hs-arm 7.4s ease-in-out infinite;animation-delay:var(--t,0s)}
.rig-host .rg-sway{transform-origin:36.8% 38.1%;animation:hs-sway 6.4s ease-in-out infinite;animation-delay:calc(var(--t,0s) - 1.4s)}
.rig-host .rg-sway-2{transform-origin:68% 35.9%;animation-delay:calc(var(--t,0s) - 3.3s)}
.rig-host .rg-tail{transform-origin:71.1% 30.1%;animation:hs-tail 5.6s ease-in-out infinite;animation-delay:calc(var(--t,0s) - .8s)}
.rig-host .rg-ef{opacity:0}
.rig-host .rg-ef-0{opacity:1}
.rig-host.blink .rg-ef-0{animation:hs-f0 .3s step-end both}
.rig-host.blink .rg-ef-1{animation:hs-f1 .3s step-end both}
.rig-host.blink .rg-ef-2{animation:hs-f2 .3s step-end both}
.rig-host.blink .rg-ef-3{animation:hs-f3 .3s step-end both}
.rig-host.blink .rg-ef-4{animation:hs-f4 .3s step-end both}
.rig-host.blink .rg-ef-5{animation:hs-f5 .3s step-end both}
@keyframes hs-f0{0%{opacity:0}95%,100%{opacity:1}}
@keyframes hs-f1{0%{opacity:1}5.33%{opacity:0}80%{opacity:1}95%,100%{opacity:0}}
@keyframes hs-f2{0%{opacity:0}5.33%{opacity:1}10.67%{opacity:0}66.67%{opacity:1}80%,100%{opacity:0}}
@keyframes hs-f3{0%{opacity:0}10.67%{opacity:1}16.67%{opacity:0}55%{opacity:1}66.67%,100%{opacity:0}}
@keyframes hs-f4{0%{opacity:0}16.67%{opacity:1}23.33%{opacity:0}45%{opacity:1}55%,100%{opacity:0}}
@keyframes hs-f5{0%{opacity:0}23.33%{opacity:1}45%,100%{opacity:0}}
@keyframes hs-breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.006)}}
@keyframes hs-head{0%,100%{transform:rotate(-.4deg)}40%{transform:rotate(.25deg)}72%{transform:rotate(.4deg)}}
@keyframes hs-arm{0%,100%{transform:rotate(-.2deg)}50%{transform:rotate(.25deg)}}
@keyframes hs-sway{0%,100%{transform:rotate(-.55deg)}50%{transform:rotate(.6deg)}}
@keyframes hs-tail{0%,100%{transform:rotate(-.9deg)}50%{transform:rotate(1deg)}}
.rig-host .rg-ticket{position:absolute;left:24%;top:34.95%;width:0;height:0;font-size:calc(var(--W) / 100)}
.rig-host .tk{position:absolute;right:0;bottom:0;width:36em;height:15em;display:flex;border:1px solid #3a404a;border-radius:.9em;background:linear-gradient(180deg,#1b232b,#121922);box-shadow:0 1.2em 2.4em #000000aa,inset 0 0 0 1px #ffffff08;overflow:hidden;color:#d0dce8}
.rig-host .tk-stub{flex:0 0 4.4em;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#d9478f,#8e2d5e);color:#ffe3f1;writing-mode:vertical-rl;rotate:180deg;font:800 1.3em Archivo,sans-serif;letter-spacing:.28em}
.rig-host .tk-body{flex:1;display:flex;align-items:center;gap:1.1em;min-width:0;margin-left:.9em;padding:0 1em 0 1.2em;border-left:2px dashed #ffffff1f}
.rig-host .tk-body .rank-tier-mark{width:5.6em;height:5.6em;margin:.9em;border-radius:1.4em}
.rig-host .tk-body small{display:block;font-size:1.65em;color:#9fb0bf;white-space:nowrap}
.rig-host .tk-body strong{display:block;font-size:3.4em;line-height:1.15;color:#d99a56;white-space:nowrap}
.rig-host .tier-silver strong{color:#c9d6e2}
.rig-host .tier-gold strong{color:#ffd36b}
.rig-host .tier-platinum strong{color:#7be2bb}
.rig-host .tier-diamond strong{color:#8fe6ff}
.rig-host .tier-master strong{color:#ff9fcd}
.rig-host .tk-rate{display:block;font-size:1.6em;color:#9fb0bf;white-space:nowrap}
.rig-host .tk-rate b{font-size:1.9em;margin-right:.25em;color:#fff}
@media (min-width:1001px){
.pass-slot{margin:0}
.pass-hold{height:0}
.place-play .pass-hold>.rank-card{position:absolute;z-index:2;left:calc(var(--A) - var(--cw));bottom:-88px;width:var(--cw);box-shadow:inset 0 0 0 1px #ffffff08!important}
/* The ticket's drop shadow is a separate box under the character (z 0), so that it falls on the billboard and not on
   her hand, which lies between the ticket and the shadow. placeHostLamp() measures the ticket's height (--pass-h). */
.place-play .pass-hold:has(>.rank-card)::before{content:"";position:absolute;z-index:0;left:calc(var(--A) - var(--cw));bottom:-88px;width:var(--cw);height:var(--pass-h,0px);border-radius:8px;box-shadow:0 24px 44px #000000b3;pointer-events:none}
.place-play .portal-panel.wide{max-height:none;overflow:visible}
}
@media (max-width:1000px){.pass-rig{display:none}.pass-slot.bare{display:none}}
@media (prefers-reduced-motion:reduce){.rig-host .rg-g,.rig-host.blink .rg-ef{animation:none}}

/* ---- live scenes: plaza and training room (2026-11-21, owner: "랭크 대전 부분도 새로 해주고. AI와 연습 대전 부분도") ----
   Background render, the character's layered rig and, on the plaza, the counter in front of her share one 16:9
   frame (.live-stack) that covers the viewport, anchored 70% across so the character keeps her place when the sides
   are cropped. 1em inside the stack is 1% of its width. The plaza host holds the season card (.lv-card, behind her
   fingers) and leans on the counter whose screen carries the LIVE numbers (.lv-board). */
.place-stage .live-stack{inset:auto;--sw:max(100vw,177.78vh);--sh:max(100vh,56.25vw);width:var(--sw);height:var(--sh);left:calc((100vw - var(--sw)) * .7);top:calc((100vh - var(--sh)) * .3);font-size:calc(var(--sw) / 100);translate:none}
.live-stack>*{position:absolute}
/* Pointer parallax as before the rebuild (owner, 2026-11-21: "화면 움직임도 달라졌고"): the far render drifts 8px, the
   training-room table with the android and her plaque 26px. The far render is laid 1.5% oversize so no edge shows. */
.lv-bg{inset:-1.5%;background:#0b1018 center/100% 100% no-repeat;translate:calc(var(--px) * -8px) calc(var(--py) * -4px)}
.live-stack-ai :is(.lv-table,.lv-char,.lv-plaque){translate:calc(var(--px) * -26px) calc(var(--py) * -12px)}
.lv-table{left:-2%;right:-2%;top:50%;height:50%;background:url(/art/scene-training-table.webp?v=1) center/100% 100% no-repeat}
.live-stack-ai .lv-bg{background-image:url(/art/scene-training.webp?v=2)}
.live-stack-play .lv-bg{background-image:url(/art/scene-plaza.webp?v=2)}
.live-stack-ai .lv-char{left:56.8%;top:11.33%;width:30%;height:53.33%}
.live-stack-play .lv-char{left:59.06%;top:8.67%;width:31.11%;height:75.11%}
/* The host must not follow the pointer (owner, 2026-11-07 and again 2026-11-21): inside the stage she would inherit --px. */
.lv-char .rig-host{--px:0;--py:0}
.lv-light{position:absolute;inset:0;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%}
.lv-light-ai{-webkit-mask-image:url(/art/android-rig-mask.webp?v=4);mask-image:url(/art/android-rig-mask.webp?v=4);background:linear-gradient(180deg,#c9f7e833,#7be2bb14 24%,#0b101800 44%,#0b101800 70%,#0b101873 100%)}
.lv-light-play{-webkit-mask-image:url(/art/arena-host-mask.webp?v=7);mask-image:url(/art/arena-host-mask.webp?v=7);background:radial-gradient(ellipse 55% 34% at 104% 58%,#ff5fa838,transparent 72%),radial-gradient(ellipse 40% 30% at -6% 62%,#ff5fa81f,transparent 72%),linear-gradient(180deg,#e9f3ff33,#cfe6ff10 18%,#0b101800 36%,#0b101800 56%,#0b101870 80%)}
.lv-fg{left:0;right:0;top:61.48%;height:38.52%;background:url(/art/scene-plaza-front.webp?v=1) center/100% 100% no-repeat}
.lv-card{right:34.5%;bottom:65.4%;width:min(440px,27.5em)}
.lv-card .rank-card{margin:0!important;box-shadow:0 18px 34px #000000b0!important;gap:8px!important;padding-top:12px!important;padding-bottom:12px!important}
.lv-card .rank-card .rank-record{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:12px}
.lv-card .rank-card>p{grid-column:1/-1;margin:4px 0 0}
.lv-card-bare{width:auto}
.lv-card-bare .rg-ticket{position:static;font-size:5px}
.lv-board{left:58.9%;width:31.2%;top:79.7%;height:10.6%;display:flex;flex-direction:column;justify-content:center;gap:.35em;padding:0 1.3em;box-sizing:border-box;background:repeating-linear-gradient(0deg,#ffffff05 0 2px,transparent 2px 4px)}
.lv-board .st-live{display:flex;justify-content:space-between;font:600 .62em var(--label,Archivo,sans-serif);letter-spacing:.16em;color:#ff9fcd}
.lv-board .st-live i{font-style:normal;color:var(--steel)}
.lv-board .st-numbers{gap:1.6em;align-items:flex-end}
.lv-board .st-numbers span{font-size:.72em;flex-direction:row;align-items:baseline;gap:.5em}
.lv-board .st-numbers b{font-size:2.6em;line-height:.9}
.lv-plaque{left:86%;top:50%;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid #5d6b7a;border-radius:4px;background:#0b1018e6;white-space:nowrap;font-size:14px}
.lv-plaque small{font:600 10px var(--label,Archivo,sans-serif);letter-spacing:.16em;color:#7be2bb}
.lv-plaque b{font-size:14px;color:#fff}
.live-stack .lv-veil{position:fixed;inset:0;background:linear-gradient(90deg,#0b1018f2 0,#0b1018cc 26%,#0b101855 44%,#0b101800 58%),linear-gradient(180deg,#0b101880 0,#0b101800 12%,#0b101800 78%,#0b1018 99%)}
.pass-flow{display:none}
@media (max-width:1000px){.pass-flow{display:block}.lv-card,.lv-board,.lv-plaque{display:none}.live-stack .lv-veil{position:fixed;inset:0;background:linear-gradient(180deg,#0b1018d9 0,#0b1018b8 50%,#0b1018 94%)}}

/* ---- console: the panel as one pane of glass in the scene (2026-11-21, owner: "배경은 퀄리티 업을 했는데 UI는 그대로라서
   조금 이상해 … 바꿔야지") ----
   The content column is a single slab: a pre-blurred copy of the place's render, fixed to the viewport so it lines up
   with the stage behind it (frosted glass without backdrop-filter), under a dark tint, edged with the place's accent.
   Tabs, notes, the deck picker and the main button take the same light instead of flat fills; the wide left veil is
   thinned because the slab now carries legibility. The season card is back in the panel; the host holds a small pass. */
.portal-shell[class*="place-"]:not(.deck-workspace) .portal-content{--gpos:50% 42%;--gsize:cover;width:min(100%,668px);box-sizing:border-box;margin-left:-22px;padding:26px 28px 30px;border:1px solid #ffffff14;border-radius:6px;background:linear-gradient(180deg,#0b1018bf,#0b1018d6),var(--glass,linear-gradient(#141a24,#141a24)) var(--gpos)/var(--gsize) fixed #0f151d;box-shadow:0 30px 60px #00000070,inset 0 1px 0 #ffffff1f,inset 3px 0 0 color-mix(in srgb,var(--accent,#9fb0bf) 72%,transparent),-20px 0 44px -26px var(--accent,#9fb0bf)}
.place-play{--glass:url(/art/glass-play.webp?v=1)}.place-ai{--glass:url(/art/glass-ai.webp?v=1)}.place-puzzle{--glass:url(/art/glass-puzzle.webp?v=1)}.place-missions{--glass:url(/art/glass-missions.webp?v=1)}.place-story{--glass:url(/art/glass-story.webp?v=1)}.place-shop{--glass:url(/art/glass-shop.webp?v=1)}.place-friends{--glass:url(/art/glass-friends.webp?v=1)}
.portal-shell:is(.place-play,.place-ai) .portal-content{--gpos:70% 30%;--gsize:max(100vw,177.78vh) auto}
.portal-shell[class*="place-"]:not(.deck-workspace) .place-plate{margin-bottom:12px}
.portal-shell[class*="place-"]:not(.deck-workspace) .mission-tabs button{background:transparent!important;border:0!important;border-bottom:1px solid #ffffff22!important;border-radius:0!important;box-shadow:none!important;color:var(--frost-2)}
.portal-shell[class*="place-"]:not(.deck-workspace) .mission-tabs button:hover:not(:disabled){color:#fff}
.portal-shell[class*="place-"]:not(.deck-workspace) .mission-tabs button.active{color:#fff;border-bottom-color:var(--accent,#9fb0bf)!important;background:linear-gradient(180deg,transparent 50%,color-mix(in srgb,var(--accent,#9fb0bf) 16%,transparent))!important;box-shadow:0 12px 18px -14px var(--accent,#9fb0bf)!important}
.portal-shell[class*="place-"]:not(.deck-workspace) .first-win-line{background:transparent!important;border-radius:0!important;border-left:2px solid color-mix(in srgb,var(--accent,#9fb0bf) 60%,transparent);padding:3px 0 3px 12px!important}
.portal-shell[class*="place-"]:not(.deck-workspace) .match-deck-picker{background:#0b10188c!important;border:1px solid #ffffff1c!important;border-radius:6px!important;box-shadow:inset 0 1px 0 #ffffff12}
.portal-shell[class*="place-"]:not(.deck-workspace) .portal-content .primary:not(:disabled){background:linear-gradient(180deg,color-mix(in srgb,var(--accent,#9fb0bf) 86%,#fff),var(--accent,#9fb0bf))!important;border-color:var(--accent,#9fb0bf)!important;color:#0b1018!important;border-radius:6px!important;font-weight:800;box-shadow:0 0 26px color-mix(in srgb,var(--accent,#9fb0bf) 42%,transparent),0 12px 26px #00000088!important}
.portal-shell[class*="place-"]:not(.deck-workspace) .portal-content .primary:disabled{border-radius:6px!important}
.portal-shell[class*="place-"]:not(.deck-workspace) .portal-content :is(.secondary,.tiny){border-radius:5px!important}
/* request slips: dark glass with ruled lines and an amber edge instead of white paper */
.place-missions .mission-card{background:#0b10188c!important;color:var(--frost)!important;border:1px solid #ffffff1c!important;border-left:3px solid #ffd36b99!important;border-radius:5px!important;box-shadow:inset 0 1px 0 #ffffff12!important;background-image:repeating-linear-gradient(0deg,transparent 0 23px,#ffffff0a 23px 24px)!important}
.place-missions .mission-card :is(h3,strong){color:#fff!important}
.place-missions .mission-card :is(small,span,p){color:var(--frost-2)!important}
.place-missions .mission-claim-all{background:#0b10188c;border-color:#ffd36b55}
.pass-flow{display:block;margin:0 0 18px}
.place-play .pass-flow .rank-card{margin:0}
.live-stack-play .lv-char{--W:calc(var(--sw) * .3111)}
@media (min-width:761px){.place-stage .st-scene~.st-veil,.live-stack .lv-veil,.place-stage-puzzle .st-veil{background:linear-gradient(90deg,#0b1018b8 0,#0b101870 26%,#0b101800 50%),linear-gradient(180deg,#0b101880 0,#0b101800 12%,#0b101800 78%,#0b1018 99%)}}
@media (max-width:760px){.portal-shell[class*="place-"]:not(.deck-workspace) .portal-content{margin-left:0;padding:18px 16px 22px;background:#0b1018e0;box-shadow:inset 0 1px 0 #ffffff1f,inset 3px 0 0 color-mix(in srgb,var(--accent,#9fb0bf) 72%,transparent)}}

/* ---- places to operate, not pages to read (2026-11-21, owner: the UX itself was foreign to the backdrop;
   the plaza prototype was approved for every place) ---- desktop only; narrower screens keep the glass slab.
   No document column: title, index, slab and explanatory paragraphs go. A place's modes are lit signs on a rail at the
   left (the place's accent as the neon); what belongs to the chosen mode sits beside the rail as separate small
   plates and one list board that scrolls inside itself; the thing you press to act (deck + start, claim) is docked
   on the furniture in front of the scene (counter, table, teller desk), fixed to the scene's own coordinates. */
@media (min-width:1001px){
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace){--sw:max(100vw,177.78vh);--sh:max(100vh,56.25vw);--sx:calc((100vw - var(--sw)) * .7);--sy:calc((100vh - var(--sh)) * .3)}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-layout .portal-content{width:auto;max-width:720px;margin-left:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-content::before{display:none!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>h1,.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>.eyebrow,.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>p:not([class]),.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>p.small:not(.muted){display:none!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .lv-board{display:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel{display:grid!important;grid-template-columns:236px minmax(0,440px);column-gap:22px;row-gap:10px;align-items:start;align-content:start;width:auto!important;max-width:none!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>*{grid-column:2;margin-top:0!important;margin-bottom:0!important;min-width:0}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs){grid-column:1;grid-row:1 / span 12}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel:not(:has(>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs))){grid-template-columns:minmax(0,460px)}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel:not(:has(>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs)))>*{grid-column:1}
/* mode signs */
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs){display:flex!important;flex-direction:column;gap:9px!important;width:236px;padding:0!important;border:0!important;position:relative}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs)::before{content:'';position:absolute;left:22px;right:22px;top:20px;bottom:20px;border-left:2px solid #3a404a;border-right:2px solid #3a404a;pointer-events:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button{position:relative;flex:none;width:100%;height:56px!important;min-height:56px!important;margin:0!important;padding:0 20px!important;text-align:left;justify-content:flex-start;border:1px solid #3a404a!important;border-radius:3px!important;background:linear-gradient(180deg,#1a222cf5,#0d1219f5)!important;box-shadow:0 10px 22px #000000a0,inset 0 1px 0 #ffffff14!important;color:#6f7d8c!important;font:800 21px/1 'Nanum Myeongjo','Paperlogy',serif!important;letter-spacing:.04em;transition:color .2s,box-shadow .2s,border-color .2s}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button::after{content:'';position:absolute;right:14px;top:50%;width:7px;height:7px;margin-top:-4px;border-radius:50%;background:#2c3642;box-shadow:inset 0 1px 1px #000}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button:hover:not(:disabled){color:#c9d6e2!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button.active{color:#fff!important;border-color:color-mix(in srgb,var(--accent,#9fb0bf) 70%,transparent)!important;text-shadow:0 0 10px var(--accent,#9fb0bf),0 0 26px color-mix(in srgb,var(--accent,#9fb0bf) 60%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--accent,#9fb0bf) 14%,#141a24),#0d1219f5)!important;box-shadow:0 0 26px color-mix(in srgb,var(--accent,#9fb0bf) 32%,transparent),0 10px 22px #000000a0,inset 0 0 22px color-mix(in srgb,var(--accent,#9fb0bf) 14%,transparent)!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button.active::after{background:var(--accent,#9fb0bf);box-shadow:0 0 10px var(--accent,#9fb0bf)}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs) button b{margin-left:8px;font:700 11px Paperlogy,sans-serif}
/* plates */
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>p[class]{width:fit-content;max-width:100%;padding:6px 10px 6px 12px!important;background:#0b1018c7!important;border-radius:0!important;border-left:2px solid color-mix(in srgb,var(--accent,#9fb0bf) 65%,transparent);font-size:12px}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.learn-entry,.beginner-notice,.ai-deck-preview){box-sizing:border-box;padding:10px 12px!important;background:#0b1018d1!important;border:1px solid #ffffff1a!important;border-radius:4px!important;box-shadow:0 12px 26px #00000080}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>.beginner-notice p{font-size:12px;margin:4px 0 8px}
/* the list board: scrolls inside itself */
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.mission-list,.shop-grid,.puzzle-list,.rank-board,.spectate-list,.social-list){max-height:calc(100vh - 372px);overflow-y:auto;padding:10px!important;background:#0b1018c2!important;border:1px solid #ffffff1a!important;border-top:2px solid color-mix(in srgb,var(--accent,#9fb0bf) 70%,transparent)!important;border-radius:4px;box-shadow:0 18px 36px #00000080;scrollbar-width:thin;scrollbar-color:#3a404a transparent}
/* shop: its products need the old 600px */
.portal-shell.place-shop:not(.deck-workspace) .portal-layout .portal-content{max-width:880px}
.portal-shell.place-shop:not(.deck-workspace) .portal-panel{grid-template-columns:236px minmax(0,600px)}
/* shop: the SR entrance preview gets the full width of the board, its picks run under it, and its badge sits above the picture instead of on it */
.portal-shell.place-shop:not(.deck-workspace) .cutin-showcase{grid-template-columns:1fr}
.portal-shell.place-shop:not(.deck-workspace) .cutin-showcase::before{content:'SR 등장 연출 · 이 팩에서 등장';justify-self:start;padding:4px 10px;border-radius:3px;background:linear-gradient(90deg,var(--neon-3),var(--neon));color:#2a0616;font:800 11px/1.2 sans-serif;letter-spacing:.06em}
.portal-shell.place-shop:not(.deck-workspace) .cutin-stage-badge{display:none}
.portal-shell.place-shop:not(.deck-workspace) .cutin-picks{flex-direction:row;flex-wrap:wrap}
.portal-shell.place-shop:not(.deck-workspace) .cutin-picks button{flex:1 1 170px}
/* plaza: one pass only. The host holds it (tier and rating); the rail keeps just the record as a plain line */
.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;display:block}
.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card::before,.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card::after,.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card .rank-tier{display:none!important}
.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card .rank-record{display:inline-flex;flex-wrap:wrap;gap:4px 14px;padding:6px 10px 6px 12px;background:#0b1018c7;border-left:2px solid #ff5fa8a6;font-size:12px}
.portal-shell.place-play:not(.deck-workspace) .pass-flow .rank-card>p{margin:6px 0 0;padding:6px 10px 6px 12px;background:#0b1018c7;border-left:2px solid #ff5fa8a6;font-size:12px;width:fit-content}
/* the plates never run under what the character holds: on narrower windows the column stops short of the pass in
   the host's hand (55.3% across the scene) and of the android's hair (58%), and the plates wrap instead */
.portal-shell.place-play:not(.deck-workspace) .portal-panel{grid-template-columns:236px minmax(170px,min(440px,calc(var(--sx) + var(--sw) * .553 - 346px)))}
.portal-shell.place-ai:not(.deck-workspace) .portal-panel{grid-template-columns:236px minmax(200px,min(440px,calc(var(--sx) + var(--sw) * .58 - 346px)))}
.portal-shell:is(.place-play,.place-ai):not(.deck-workspace) .portal-panel>p[class]{width:auto;max-width:fit-content;flex-wrap:wrap}
/* plaza */
.place-play .pass-flow{width:100%}
/* docked consoles */
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker{position:fixed;z-index:4;left:calc(var(--sx) + var(--sw) * .5935);top:calc(var(--sy) + var(--sh) * .802);width:calc(var(--sw) * .192);height:calc(var(--sh) * .1);box-sizing:border-box;margin:0!important;padding:0 10px!important;display:flex;align-items:center;gap:10px;background:#05080ce0!important;border:1px solid #ffffff1c!important;border-radius:3px!important;box-shadow:inset 0 0 18px #000,0 14px 30px #000000a0!important}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker .deck-case-art{width:auto;height:76%;flex:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker label{flex:1;min-width:0;font-size:10px}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker{overflow:hidden}
.portal-shell[class*="place-"]:not(.deck-workspace) .match-deck-picker select{width:100%;min-width:0;max-width:100%;font-size:14px!important;text-overflow:ellipsis}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker label p{display:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .match-deck-picker .tiny{flex:none;padding:4px 8px}
.portal-shell.place-play:not(.deck-workspace) .portal-content .portal-actions:has(.rank-queue-button),.portal-shell.place-ai:not(.deck-workspace) .portal-content .portal-panel>button.primary.full{position:fixed;z-index:4;left:calc(var(--sx) + var(--sw) * .792);top:calc(var(--sy) + var(--sh) * .802);width:calc(var(--sw) * .106);height:calc(var(--sh) * .1);margin:0!important;display:block}
.portal-shell.place-play:not(.deck-workspace) .portal-content .portal-actions:has(.rank-queue-button) .primary{width:100%;height:100%;padding:0;font-size:19px;letter-spacing:.06em;border-radius:3px!important}
.portal-shell.place-play:not(.deck-workspace) .portal-content .portal-actions:has(.rank-queue-button)>span{display:none}
.portal-shell.place-ai:not(.deck-workspace) .portal-content .match-deck-picker{left:calc(var(--sx) + var(--sw) * .56);top:calc(var(--sy) + var(--sh) * .795);width:calc(var(--sw) * .215)}
.portal-shell.place-ai:not(.deck-workspace) .portal-content .portal-panel>button.primary.full{left:calc(var(--sx) + var(--sw) * .781);top:calc(var(--sy) + var(--sh) * .795);width:calc(var(--sw) * .118);padding:0;font-size:17px;letter-spacing:.04em;border-radius:3px!important}
.portal-shell.place-play:not(.deck-workspace) .portal-content .portal-actions:has(.rank-queue-button) .primary:not(:disabled),.portal-shell.place-ai:not(.deck-workspace) .portal-content .portal-panel>button.primary.full:not(:disabled){background:linear-gradient(180deg,#1b242d,#0b1016)!important;border:1px solid color-mix(in srgb,var(--accent) 75%,transparent)!important;color:color-mix(in srgb,var(--accent) 55%,#fff)!important;text-shadow:0 0 12px var(--accent);box-shadow:inset 0 0 22px color-mix(in srgb,var(--accent) 22%,transparent),inset 0 1px 0 #ffffff1f,0 0 24px color-mix(in srgb,var(--accent) 30%,transparent),0 14px 30px #000000a0!important;font-weight:800}
.portal-shell.place-play:not(.deck-workspace) .portal-content .portal-actions:has(.rank-queue-button) .primary:not(:disabled):hover,.portal-shell.place-ai:not(.deck-workspace) .portal-content .portal-panel>button.primary.full:not(:disabled):hover{background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 24%,#1b242d),#0b1016)!important;color:#fff!important}
.place-missions .portal-panel>.mission-claim-all{position:fixed;z-index:4;right:calc(5vw + 30px);bottom:112px;width:340px;box-sizing:border-box;margin:0!important;background:#05080ce0!important;box-shadow:inset 0 0 18px #000,0 14px 30px #000000a0}
/* training room: the four levels as a 2x2 of plates */
.place-ai .portal-panel>.ai-levels{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;border:0!important}
.place-ai .portal-panel>.ai-levels .ai-level{margin:0!important;padding:9px 12px 9px 40px!important;background:#0b1018d1!important}
.place-ai .portal-panel>.ai-levels .ai-level{display:flex!important;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
.place-ai .portal-panel>.ai-levels .ai-level :is(strong,small){white-space:nowrap;width:auto!important}
.place-ai .portal-panel>.ai-levels .ai-level span{display:none}
.portal-shell[class*="place-"]:not(.deck-workspace) .portal-panel>button.tiny{justify-self:start}
.place-story .portal-panel>p:not([class]){display:block!important;width:fit-content;padding:8px 12px;background:#0b1018c7;border-left:2px solid #9fb0bfa6;font-size:13px}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .place-stage :is(.st-veil,.lv-veil){background:linear-gradient(90deg,#0b10188c 0,#0b101840 24%,#0b101800 44%),linear-gradient(180deg,#0b101880 0,#0b101800 12%,#0b101800 80%,#0b1018 99%)}
}

/* ---- no page scroll in the places (2026-11-21, owner: picking a mode sign made the whole screen twitch sideways).
   The page was a few pixels taller than the window on some modes and not on others, so the window scrollbar came and
   went and everything recentred by its width. Now the shell is exactly one window tall and only the content column
   scrolls, inside itself with a reserved thin gutter; the sign rail stays put while it does. */
@media (min-width:1001px){
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace){display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace)>.portal-top{flex:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace)>.portal-layout{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:0;padding-bottom:104px;box-sizing:border-box}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace)>.portal-layout>.place-plate{flex:none}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace)>.portal-layout>.portal-content{flex:0 1 auto;min-height:0;width:min(750px,100%);max-width:none;box-sizing:border-box;margin-left:-30px;padding:0 0 26px 30px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3a404a transparent;scrollbar-gutter:stable}
/* The archive, theatre and rooftop lists are one 460px column, so the scrolling box hugs it; at 750px its scrollbar floated
   far to the right of the list (owner, 2026-11-22). */
.portal-shell:is(.place-puzzle,.place-story,.place-friends):not(.deck-workspace)>.portal-layout>.portal-content{width:min(510px,100%)}
.portal-shell:is(.place-play,.place-ai,.place-puzzle,.place-missions,.place-story,.place-shop,.place-friends):not(.deck-workspace) .portal-panel>:is(.play-tabs,.ai-mode-tabs,.mission-tabs,.shop-tabs){position:sticky;top:0;align-self:start}
}
