/* Lab hub (/lab/): brand paper and ink (design pass 3 kit block below, inserted by
   node ../kiip_prep/tools/pass3-kit/copy.js --css public/hub.css --after "/* kit below *\/"; do not edit the block),
   then the hub's own rules. The experiments keep their own night-time look inside each card's band. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
/* kit below */

/* === OBL-P3:START v1 sha256:e7c67b5d4eb4c42d (design pass 3 kit; canonical kiip_prep/tools/pass3-kit/pass3.css; do not edit copies, run copy.js) === */
/* Design pass 3 kit, canonical source (docs/design-pass3-2026-10-31.md). tools/pass3-kit/copy.js puts this file, between the
   OBL-P3 markers it adds, into each site's main stylesheet; copies must stay byte-identical (each repo's tests check the hash).
   Everything is opt-in: tokens and Korean typesetting apply under .p3 (class on <html> or <body>), components are p3-* classes.
   No gradients and no @font-face here: Pretendard comes from https://obyeollab.com/fonts/pretendard/ through the boot script
   (font-boot.js, OBL-P3-FONTBOOT) with font-display: optional; the same script defines "Pretendard Fallback", the metric-adjusted
   system face that --font lists right after Pretendard (local() only, nothing to download). Motion only on transform/opacity. */

/* ---- tokens: paper and ink (AA: text 15.8 / 8.7 / 6.0 on the canvas; dark 15.8 / 10.1 / 7.2) ---- */
.p3 {
  --font: "Pretendard Variable", Pretendard, "Pretendard Fallback", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Noto Sans", sans-serif;
  --c-bg: #f6f4ef; --c-surface: #fffdf8; --c-surface-2: #efece4; --c-surface-3: #e6e2d8;
  --c-line: #e2ddd2; --c-line-strong: #857e70;
  --c-text: #1c1a16; --c-text-2: #4a453c; --c-text-3: #625c50;
  --c-ok-soft: #e7f2e9; --c-bad-soft: #f9e8e8;
  --c-tint: #bfcbef;
  --sheet: 0 0 0 1px rgba(28, 26, 22, .06), 0 1px 2px rgba(28, 26, 22, .06);
  --r-sheet: 14px;
  --t-mid: 180ms;
}
@media (prefers-color-scheme: dark) {
  .p3 {
    --c-bg: #151412; --c-surface: #1e1c19; --c-surface-2: #25231f; --c-surface-3: #2f2c27;
    --c-line: #36332d; --c-line-strong: #7f796d;
    --c-text: #f1ede5; --c-text-2: #c6bfb2; --c-text-3: #a8a194;
    --c-ok-soft: #16301f; --c-bad-soft: #371a1d;
    --c-tint: #424963;
    --sheet: 0 0 0 1px var(--c-line);
  }
}
/* illustration tint per service: data-svc on any element (a tile, a section, <body>) */
[data-svc="brand"], [data-svc="tools"] { --c-tint: #bfcbef; } [data-svc="kiip"] { --c-tint: #bfcaeb; } [data-svc="topik"] { --c-tint: #cdc4ef; }
[data-svc="eps"] { --c-tint: #b6d2cc; } [data-svc="life"] { --c-tint: #edc0c5; } [data-svc="drive"] { --c-tint: #e4caae; }
[data-svc="kdrama"] { --c-tint: #dcbfde; } [data-svc="games"] { --c-tint: #edbece; } [data-svc="leadhive"] { --c-tint: #c9cced; }
@media (prefers-color-scheme: dark) {
  [data-svc="brand"], [data-svc="tools"] { --c-tint: #424963; } [data-svc="kiip"] { --c-tint: #414863; } [data-svc="topik"] { --c-tint: #4e4763; }
  [data-svc="eps"] { --c-tint: #335750; } [data-svc="life"] { --c-tint: #664145; } [data-svc="drive"] { --c-tint: #664d2e; }
  [data-svc="kdrama"] { --c-tint: #58455a; } [data-svc="games"] { --c-tint: #663e4c; } [data-svc="leadhive"] { --c-tint: #464863; }
}

/* ---- Korean typesetting: Hangul breaks between words only; a word longer than the line still breaks; scripts without spaces
   break as they need, but Korean inside them (lang="ko" or .p3-ko) keeps whole words. Headings balance, text wraps "pretty". ---- */
.p3 { word-break: keep-all; overflow-wrap: anywhere; }
html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)).p3, html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)) .p3 { word-break: normal; }
.p3 [lang="ko"], .p3 .p3-ko { word-break: keep-all; }
.p3 :is(h1, h2, h3) { text-wrap: balance; }
.p3 :is(p, li) { text-wrap: pretty; }

/* ---- spot illustrations: one hand. 64x64 grid, 2px ink line (thin 1.5, bold 3), round caps; one flat tint mass set 3px off ---- */
.p3-art { display: block; flex: none; width: 56px; height: 56px; overflow: visible; transition: transform var(--t-mid, 180ms) cubic-bezier(.2, 0, 0, 1); }
.p3-art .ink { fill: none; stroke: var(--c-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p3-art .ink.paper { fill: var(--c-surface); }
.p3-art .thin { stroke-width: 1.5; }
.p3-art .bold { stroke-width: 3; }
.p3-art .dots { stroke-width: 3.4; }
.p3-art .solid { fill: var(--c-text); }
.p3-art .tint { fill: var(--c-tint); }
:is(a, button):hover > .p3-art, :is(a, button):hover > .p3-art-wrap > .p3-art { transform: rotate(-4deg) scale(1.04); }

/* ---- surfaces: a sheet of paper, a printed rule over a section title, a printed box, a receipt ---- */
.p3-sheet { border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); }
.p3-rule { padding-top: 12px; border-top: 2px solid var(--c-text); letter-spacing: -.02em; }
.p3-rule--thin { border-top-width: 1px; }
.p3-print { border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); }
.p3-receipt { border-radius: 2px; background: var(--c-surface); box-shadow: var(--sheet); padding-bottom: 22px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 95% 100%, 90% calc(100% - 6px), 85% 100%, 80% calc(100% - 6px), 75% 100%, 70% calc(100% - 6px), 65% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 6px), 45% 100%, 40% calc(100% - 6px), 35% 100%, 30% calc(100% - 6px), 25% 100%, 20% calc(100% - 6px), 15% 100%, 10% calc(100% - 6px), 5% 100%, 0 calc(100% - 6px)); }
.p3-receipt__rule { border: 0; border-top: 1px dashed var(--c-line-strong); margin: 10px 0; }
.p3-press { transition: transform var(--t-fast, 120ms) cubic-bezier(.2, 0, 0, 1); -webkit-tap-highlight-color: transparent; }
.p3-press:not([disabled]):active { transform: scale(.985); }

/* ---- data bars: a square track and a fill scaled with transform: scaleX(share) (set by the page; no width animation) ---- */
.p3-bar__track { display: block; height: 8px; background: var(--c-surface-3); overflow: hidden; }
.p3-bar__fill { display: block; height: 100%; background: var(--c-tint); transform-origin: 0 50%; }
.p3-bar__fill--accent { background: var(--c-accent); }

/* ---- answer choices: an OMR bubble that fills when chosen; after grading the grader's hand circle round the right answer and an
   ink slash across a wrong pick (shape + colour + the page's hidden words, never colour alone). Put .p3-opt on the choice (the
   positioned box) and .p3-bubble on its number; states .is-chosen / .is-right / .is-wrong on .p3-opt. --p3-bubble-x = centre of
   the bubble from the choice's padding edge (default 25px). ---- */
.p3-opt { position: relative; }
.p3-opt .p3-bubble { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none; width: 20px; height: 28px; padding: 0;
  border: 1.5px solid var(--c-text-2); border-radius: 50%; background: none; color: var(--c-text-2); font-size: .8125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.p3-opt .p3-bubble::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; background: var(--p3-fill, var(--c-accent)); opacity: 0; }
.p3-opt.is-chosen .p3-bubble { --p3-fill: var(--c-accent); border-color: var(--c-accent); background: none; color: var(--c-on-accent, #fff); }
.p3-opt.is-right .p3-bubble { --p3-fill: var(--c-ok); border-color: var(--c-ok); background: none; color: var(--c-surface); }
.p3-opt.is-wrong .p3-bubble { --p3-fill: var(--c-bad); border-color: var(--c-bad); background: none; color: var(--c-surface); }
.p3-opt:is(.is-chosen, .is-right, .is-wrong) .p3-bubble::before { opacity: 1; animation: p3-fill 160ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right { border-color: var(--c-ok); background: var(--c-ok-soft); }
.p3-opt.is-wrong { border-color: var(--c-bad); background: var(--c-bad-soft); }
.p3-opt:is(.is-right, .is-wrong)::after { content: ""; position: absolute; left: calc(var(--p3-bubble-x, 25px) - 24px); top: 50%; width: 48px; height: 48px; margin-top: -24px;
  background: currentColor; pointer-events: none; animation: p3-mark 180ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right::after { color: var(--c-ok); -webkit-mask: var(--p3-circle) center / contain no-repeat; mask: var(--p3-circle) center / contain no-repeat; }
.p3-opt.is-wrong::after { color: var(--c-text); -webkit-mask: var(--p3-slash) center / contain no-repeat; mask: var(--p3-slash) center / contain no-repeat; }
:root {
  --p3-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 24.5C7.5 14 15 6.5 24 7c9.5.5 15 8 13 16.5-2 9.5-11.5 14-20 11.5C11 33 7.5 28 8.5 21.5'/%3E%3C/svg%3E");
  --p3-slash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 38 36 6'/%3E%3C/svg%3E");
}

/* ---- motion: transform and opacity only ---- */
.p3-in { animation: p3-in 200ms cubic-bezier(.2, 0, 0, 1) both; }
@keyframes p3-fill { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes p3-mark { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes p3-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes p3-pulse { from { transform: scale(1); } to { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .p3-art, .p3-press, .p3-in, .p3-opt::after, .p3-opt .p3-bubble::before { transition: none !important; animation: none !important; }
}
/* === OBL-P3:END === */

/* ---- hub ---- */
.p3 {
  --c-accent: #2b55d9;
  --chrome-bg: rgba(246, 244, 239, 0.92);
  --chrome-ink: var(--c-text);
  --chrome-dim: var(--c-text-2);
  --chrome-line: var(--c-line);
  --chrome-panel: var(--c-surface);
  --chrome-focus: #2b55d9;
  --night: #0b0c16;
}
@media (prefers-color-scheme: dark) {
  .p3 { --c-accent: #9db4ff; --chrome-bg: rgba(21, 20, 18, 0.92); --chrome-focus: #9db4ff; }
}
html.p3 { background: var(--c-bg); }
body { background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: 16px; line-height: 1.7; }
.lab-bar { background: var(--chrome-bg); }
.lab-dialog .btn { font: inherit; font-size: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: transparent; color: inherit; cursor: pointer; }

.wrap { width: min(1040px, 100%); margin: 0 auto; padding: 0 20px; }
main { padding-top: calc(var(--bar-h) + 40px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; }
main:focus { outline: none; }

.eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--c-text-3); }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 10px 0 14px; }
.lede { color: var(--c-text-2); max-width: 42em; font-size: 17px; }
h2 { font-size: 22px; line-height: 1.4; margin-bottom: 14px; }
section { margin-top: 48px; }


.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.card {
  --c: #ff8a76;
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--c-surface); box-shadow: var(--sheet); border-radius: var(--r-sheet);
  transition: transform 180ms cubic-bezier(.2, 0, 0, 1);
}
.card:hover { transform: translateY(-2px); }
.card.windows { --c: #ffd28a; }
.card.wear { --c: #d9b27a; }
.card.study { --c: #f0a640; }
/* the study hall is not an experiment but a neighbouring service: a wide card under the three, picture left and text right (stacked on phones) */
@media (min-width: 720px) {
  .card.study { grid-column: 1 / -1; flex-direction: row; }
  .card.study .card__night { width: 34%; min-width: 240px; height: auto; min-height: 116px; flex: none; }
}
.card.breath { --c: #9fd8ff; }
.card__night {
  height: 116px; background: var(--night); position: relative; display: flex; align-items: flex-end; padding: 14px 18px;
  color: #f3efe6;
}
.card__night svg { position: absolute; right: 14px; top: 14px; width: 88px; height: 88px; }
.card__night h3 { font-size: 26px; font-weight: 300; letter-spacing: 0.14em; line-height: 1.2; max-width: calc(100% - 90px); overflow-wrap: anywhere; } /* the 88px drawing sits at the right: a long name (en "The Wearing Bell") wraps instead of running under it */
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .one { font-size: 16px; font-weight: 600; line-height: 1.6; }
.card .how { font-size: 14.5px; color: var(--c-text-2); flex: 1; }
.card .stat { font-size: 14px; color: var(--c-text); min-height: 1.7em; display: flex; align-items: center; gap: 8px; }
.card .stat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); flex: none; }
.card .go { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); font-size: 14px; font-weight: 600; margin-top: 4px; }
.card:hover .go { background: var(--c-surface-2); }

.ghost { background: var(--c-surface); box-shadow: var(--sheet); border-radius: var(--r-sheet); padding: 20px 22px; }
.ghost h2 { font-size: 18px; margin-bottom: 8px; }
.ghost p { color: var(--c-text-2); font-size: 15px; }

.priv dl { display: grid; grid-template-columns: minmax(7em, auto) 1fr; gap: 0; border-top: 1px solid var(--c-line); }
.priv dt, .priv dd { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.priv dt { font-weight: 700; padding-right: 18px; }
.priv dd { color: var(--c-text-2); }
.priv > p { color: var(--c-text-2); margin-bottom: 14px; max-width: 46em; }
.priv .more { margin-top: 12px; }
.priv a, .safety a { color: var(--c-accent); }
.priv .more a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) {
  .priv dl { grid-template-columns: 1fr; }
  .priv dt { border-bottom: 0; padding-bottom: 2px; }
  .priv dd { padding-top: 0; }
}
.safety ul { color: var(--c-text-2); font-size: 15px; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }

.lab-foot { margin-top: 56px; }
.lab-foot .wrap > p { max-width: 46em; }
.lab-foot .fine { margin-top: 6px; font-size: 12px; color: var(--c-text-3); }

/* ---- 3D night plaza on top of the hub (html.plaza-3d is set by plaza/boot.js before the first paint, so the stage
   never pushes the page down later). Brand light/dark themes stop at the stage: inside it is always night. ---- */
.plaza { display: none; }
html.plaza-3d .plaza {
  --pz-ink: #f3efe6; --pz-dim: rgba(243, 239, 230, 0.78); --pz-panel: rgba(9, 10, 24, 0.72); --pz-line: rgba(243, 239, 230, 0.22);
  display: block; position: relative; overflow: hidden; margin: 0;
  height: clamp(420px, calc(100vh - var(--bar-h) - 64px), 820px);
  height: clamp(420px, calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px) - 64px), 820px);
  background: linear-gradient(180deg, #04050c 0%, #111332 48%, #2a2348 70%, #10121c 70.4%, #0b0d16 100%);
  color: var(--pz-ink); font-size: 14px; line-height: 1.5;
}
html.plaza-3d main { padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
html.plaza-3d main > .wrap { padding-top: 40px; }
.plaza :focus-visible { outline-color: #ffd28a; }
.plaza__view { position: absolute; inset: 0; }
.plaza__view:focus { outline: none; }
.plaza__view:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #ffd28a; }
.plaza__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity 900ms ease; -webkit-tap-highlight-color: transparent; }
.plaza.is-ready .plaza__canvas { opacity: 1; }
.plaza__load { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: var(--pz-dim); }
.plaza.is-ready .plaza__load { visibility: hidden; }
.plaza__top { position: absolute; left: 0; right: 0; top: 0; padding: 12px 12px 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; pointer-events: none; }
.plaza__top > *, .plaza__doors, .plaza__ask { pointer-events: auto; }
.plaza__info { margin-right: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(620px, 100%); }
.plaza__eyebrow { font-size: 12px; letter-spacing: 0.06em; color: var(--pz-dim); text-shadow: 0 1px 6px #000; }
.plaza__legend { padding: 6px 12px; border-radius: 12px; background: var(--pz-panel); border: 1px solid var(--pz-line); font-size: 13.5px; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__key { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--pz-dim); text-shadow: 0 1px 6px #000; }
.plaza__key span { display: inline-flex; align-items: center; gap: 6px; }
.plaza__key span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.k-live::before { background: #ffe08a; box-shadow: 0 0 6px 1px rgba(255, 224, 138, 0.8); }
.k-ghost::before { background: rgba(159, 178, 255, 0.5); }
.k-me::before { background: #fff4cc; box-shadow: 0 0 0 2px #070814, 0 0 0 3.5px rgba(255, 241, 194, 0.8); }
.plaza__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.plaza__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pz-line); background: var(--pz-panel); color: var(--pz-ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__btn:hover { background: rgba(30, 32, 58, 0.85); }
.plaza__btn[aria-pressed='true'] { border-color: #ffd28a; }
.plaza__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.plaza__hint, .plaza__status { max-width: 40em; text-align: center; font-size: 13px; color: var(--pz-dim); text-shadow: 0 1px 6px #000, 0 0 2px #000; }
.plaza__status:empty { display: none; }
/* 알림 한 줄은 아래 묶음 위에 떠 있음: 생겼다 사라져도 범례·안내·링크가 밀리지 않게 */
.plaza__status { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 2px); margin: 0 auto; padding: 4px 10px; width: fit-content; border-radius: 10px; background: rgba(9, 10, 24, 0.6); }
.h-touch { display: none; }
@media (pointer: coarse) { .h-touch { display: inline; } .h-keys { display: none; } }
.plaza__doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.plaza__doors a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pz-line); background: var(--pz-panel); color: var(--pz-ink); text-decoration: none; font-size: 14px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__doors a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 6px var(--dot); }
.plaza__doors a:hover { background: rgba(30, 32, 58, 0.85); }
.d-wear { --dot: #e7b36f; } .d-windows { --dot: #ffd28a; } .d-breath { --dot: #9fd8ff; } .d-study { --dot: #f0a640; }
.plaza__ask { position: absolute; inset: auto auto 118px 50%; transform: translateX(-50%); margin: 0; z-index: 3;
  width: min(380px, calc(100% - 24px)); padding: 16px; border: 1px solid var(--pz-line); border-radius: 16px; background: rgba(12, 13, 30, 0.94); color: var(--pz-ink); }
.plaza__ask[open] { display: flex; flex-direction: column; gap: 8px; }
.plaza__askT { font-size: 17px; font-weight: 700; }
.plaza__askS { color: var(--pz-dim); }
.plaza__askB { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.plaza__btn.go { background: #ffd28a; border-color: #ffd28a; color: #1c1a16; font-weight: 700; }
/* too slow: the last frame stays as a still picture in the same place (html.plaza-still, set by hub.js) */
.plaza__still, .plaza__stillbox { display: none; }
html.plaza-still .plaza__still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.75); }
html.plaza-still .plaza__stillbox { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px)); padding: 16px; border-radius: 16px; border: 1px solid var(--pz-line); background: rgba(12, 13, 30, 0.9); text-align: center; z-index: 2; }
html.plaza-still :is(.plaza__legend, [data-plaza-sound], .plaza__key, .plaza__hint, .plaza__status, .plaza__load, .plaza__ask) { display: none; }
.plaza__fade { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; transition: opacity 600ms ease; }
.plaza.is-leaving .plaza__fade { opacity: 1; }
@media (max-width: 560px) {
  html.plaza-3d .plaza { height: clamp(440px, calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px) - 40px), 820px); }
  .plaza__top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; padding: 8px 10px 0; }
  .plaza__info { display: contents; }
  .plaza__eyebrow { grid-column: 1; grid-row: 1; }
  .plaza__btns { grid-column: 2; grid-row: 1; flex-wrap: nowrap; gap: 4px; }
  .plaza__legend { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; padding: 5px 10px; }
  .plaza__btn { padding: 0 11px; font-size: 12.5px; }
  .plaza__ask { bottom: 150px; }
}

/* the way back to 3D, and the notice after a fallback: only where the device can run the plaza (no jump: set before paint) */
.viewrow { display: none; }
html.plaza-capable:not(.plaza-3d) .viewrow { display: flex; margin: 0 0 14px; }
.viewbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.viewbtn:hover { background: var(--c-surface-2); }
.plaza-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-text-2); font-size: 14px; }

/* ---- 밤 11시 11분 모임 (shared/gather-ui.js): always one line of state, so nothing below moves when it changes ---- */
.gather {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin: 0 0 30px; padding: 18px 20px; border-radius: var(--r-sheet); background: var(--night); color: #f3efe6;
}
.gather::before { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 138, 0.28), rgba(255, 207, 138, 0) 70%); pointer-events: none; }
.gather[data-phase='live']::before { background: radial-gradient(circle, rgba(255, 224, 138, 0.55), rgba(255, 224, 138, 0) 70%); }
.gather__txt { position: relative; flex: 1 1 20em; min-width: 0; }
.gather__name { font-size: 13px; letter-spacing: 0.06em; color: #ffe08a; }
.gather__now { margin: 2px 0 6px; font-size: 21px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gather__sub { font-size: 14px; line-height: 1.6; color: rgba(243, 239, 230, 0.74); }
.gather__local { color: #ffe08a; }
.gather__sub + .gather__sub { margin-top: 4px; }
.gather__btns { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.gather__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(243, 239, 230, 0.32);
  background: rgba(243, 239, 230, 0.08); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gather__btn:hover { background: rgba(243, 239, 230, 0.16); }
.gather :focus-visible { outline-color: #ffd28a; }
.plaza__gather { padding: 6px 12px; border-radius: 12px; background: rgba(40, 30, 10, 0.72); border: 1px solid rgba(255, 224, 138, 0.5); color: #ffe08a;
  font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__gather[hidden] { display: none; }
.plaza__gather[data-phase='live'] { background: rgba(255, 224, 138, 0.9); color: #1c1a16; }
/* 특별한 밤 (server/specials.json): 따뜻한 한 줄. 그 밤 모임 중에는 마무리 한 줄(plaza__closing) */
.plaza__special { max-width: 34em; padding: 7px 12px; border-radius: 12px; background: rgba(48, 34, 8, 0.78); border: 1px solid rgba(255, 205, 90, 0.65);
  color: #ffe6a3; font-size: 14px; font-weight: 600; line-height: 1.45; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__special[hidden], .plaza__closing[hidden], .gather__special[hidden] { display: none; }
.plaza__closing { background: rgba(255, 205, 90, 0.92); color: #1c1a16; }
.gather__special { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 205, 90, 0.14); border: 1px solid rgba(255, 205, 90, 0.55);
  color: #ffe6a3; font-weight: 600; line-height: 1.45; }
@media (max-width: 560px) {
  .plaza__gather { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; padding: 5px 10px; }
  .plaza__special { grid-column: 1 / -1; justify-self: start; font-size: 13px; padding: 6px 10px; }
  .gather { padding: 16px; }
  .gather__now { font-size: 19px; }
}

/* 제야의 종 같이 치기 (shared/nye.js): 광장 위 한 줄(링크), 평면 허브의 모임 상자 위 한 줄. 12/24~1/1에는 boot.js가 자리를 미리 잡아요 */
.plaza__nye { display: inline-flex; align-items: center; min-height: 32px; max-width: 34em; padding: 6px 12px; border-radius: 12px; background: rgba(28, 22, 12, 0.8);
  border: 1px solid rgba(233, 196, 140, 0.6); color: #f3dcb2; font-size: 13.5px; font-weight: 600; line-height: 1.4; text-decoration: none;
  font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plaza__nye[hidden] { display: none; }
.plaza__nye:is([data-phase='open'], [data-phase='first'], [data-phase='newyear']) { background: rgba(233, 196, 140, 0.94); color: #1f160a; border-color: transparent; }
.hub-nye { display: flex; align-items: center; height: 44px; margin: 0 0 10px; padding: 0 14px; border-radius: 10px; border: 1px solid #c9a46a;
  background: var(--c-surface); color: #6b4810; font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) {
  .hub-nye { border-color: rgba(233, 196, 140, 0.55); color: #f3dcb2; }
}
.hub-nye span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hub-nye[hidden] { display: none; }
html.nye-season .hub-nye[hidden] { display: flex; visibility: hidden; }
.hub-nye:is([data-phase='open'], [data-phase='first'], [data-phase='newyear']) { background: #e9c48c; color: #1f160a; border-color: transparent; }
.hub-nye:focus-visible, .plaza__nye:focus-visible { outline: 2px solid #ffd28a; outline-offset: 2px; }
@media (max-width: 560px) {
  .plaza__nye { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; padding: 5px 10px; }
}
