/* WORD LIMIT THEATER: a small theatre after hours — velvet house, a felt
   letterboard for every actor's limit, typed script pages and one warm
   spotlight. Scoped to this game; other Hub cards keep their own theme. */
@font-face { font-family: 'WLT Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/word-limit-theater/anton-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'WLT Courier'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/word-limit-theater/courier-prime-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'WLT Courier'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/word-limit-theater/courier-prime-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

.wl-page, body.wl-card-page {
  --ct-bg: #22090f; --ct-surface: #2d0f19; --ct-surface-2: #39141f; --ct-border: #4d1f2c; --ct-border-2: #6a3443;
  --ct-text: #f4e8eb; --ct-text-hi: #fff8f3; --ct-text-2: #e6d3d8; --ct-muted: #c6adb4;
  --ct-accent: #ffc247; --ct-accent-hi: #ffd277; --ct-accent-ink: #2a1600; --ct-accent-text: #ffd27a;
  --ct-btn: #47192b; --ct-btn-hi: #592236; --ct-field-bg: #1d080e; --ct-focus: #ffd27a;
  --ct-warn: #ffcfae; --ct-danger: #ff8f8f; --ct-danger-bg: #4d1824; --ct-danger-text: #ffd5d5;
  --ct-card-bg: linear-gradient(180deg, #33111b, #260a12); --ct-card-border: #5c2434;
  --wl-felt: #171316; --wl-letter: #f7f2e9; --wl-spot: #ffc247; --wl-buzz: #ff6378;
  --wl-paper: #f3ebd9; --wl-paper-2: #e9dec6; --wl-ink: #2b221d; --wl-ink-soft: #66574c;
  --wl-display: 'WLT Anton', Impact, 'Arial Narrow Bold', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --wl-type: 'WLT Courier', 'Courier New', 'Microsoft JhengHei', 'PingFang TC', monospace;
  color: var(--ct-text);
  font-family: 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif;
  background-color: var(--ct-bg);
}
.wl-page a.back { color: var(--ct-muted); }
.wl-page a.back:hover { color: var(--ct-text-hi); }
.wl-page {
  background-image:
    radial-gradient(760px 380px at 50% -40px, #ffc2472b 0%, #ffc24700 70%),
    linear-gradient(180deg, #3a1020 0, #22090f 560px);
  background-repeat: no-repeat;
}
/* a velvet valance across the top of the house */
.wl-page::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(90deg, #00000000 0 30px, #00000030 30px 36px, #ffffff08 36px 40px, #00000000 40px 70px);
  -webkit-mask-image: linear-gradient(#000, #0000); mask-image: linear-gradient(#000, #0000); }
.wl-page .topbar { position: relative; z-index: 1; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wl-page .header { position: relative; z-index: 1; margin-bottom: 26px; }
.wl-mark { display: inline-grid; width: 72px; height: 72px; margin-bottom: 10px; }
.wl-mark img { width: 100%; height: 100%; }
.wl-page .header h1 { font-family: var(--wl-display); font-weight: 400; color: var(--wl-letter); font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: .02em; text-shadow: 0 0 28px #ffc24740, 0 2px 0 #0007; }
.wl-subtitle { margin-top: 12px; color: var(--ct-text-2); font-size: .98rem; line-height: 1.6; text-wrap: balance; }
.wl-playing .header { margin-bottom: 16px; }
.wl-playing .wl-mark, .wl-playing .wl-subtitle { display: none; }
.wl-playing .header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.wl-page #i18n-toggle, body.wl-card-page #i18n-toggle { --accent: #ffc247; background: #2a0d16; border-color: #5c2434; box-shadow: none; }
.wl-page #i18n-toggle button, body.wl-card-page #i18n-toggle button { color: #d9c3c9; }
.wl-page #i18n-toggle button.active, body.wl-card-page #i18n-toggle button.active { color: #2a1600; box-shadow: none; }

/* ── setup ─────────────────────────────────────────────────────────── */
.wl-setup { display: grid; gap: 22px; }
.wl-setup > .ct-settings { max-width: 360px; }
.wl-setup-pitch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.wl-setup-pitch p { color: var(--ct-text); font-size: 1.04rem; line-height: 1.7; max-width: 62ch; }
.wl-setup-board { display: flex; gap: 8px; padding: 12px; border-radius: 14px; background-color: var(--wl-felt); background-image: repeating-linear-gradient(180deg, #ffffff08 0 2px, transparent 2px 7px); box-shadow: inset 0 0 0 5px #231b1f, 0 8px 22px #0007; }
.wl-setup-board span { display: grid; place-items: center; width: 54px; height: 70px; font-family: var(--wl-display); font-size: 3rem; line-height: 1; color: var(--wl-letter); }
.wl-setup-board span:last-child { color: var(--wl-spot); }
.wl-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 0; margin: 0; padding: 0; min-width: 0; }
.wl-units legend { grid-column: 1 / -1; margin-bottom: 10px; padding: 0; color: var(--ct-text-2); font-size: .88rem; }
.wl-unit-card { position: relative; display: grid; gap: 8px; padding: 18px; border-radius: 14px; background: var(--ct-surface-2); border: 1px solid var(--ct-border-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.wl-unit-card input { position: absolute; opacity: 0; pointer-events: none; }
.wl-unit-card strong { color: var(--ct-text-hi); font-size: 1rem; font-weight: 650; }
.wl-unit-sample { justify-self: start; padding: 8px 12px; border-radius: 8px; background: var(--wl-paper); color: var(--wl-ink); font-family: var(--wl-type); font-weight: 700; font-size: 1.15rem; box-shadow: 0 4px 12px #0005; }
.wl-unit-card:has(input:checked) { border-color: var(--wl-spot); box-shadow: 0 0 0 1px var(--wl-spot), 0 10px 28px #ffc24718; }
.wl-unit-card:has(input:focus-visible) { outline: 2px solid var(--ct-focus); outline-offset: 3px; }

/* ── type and shared pieces ───────────────────────────────────────── */
.wl-clock { font-family: var(--wl-display); font-weight: 400; color: var(--wl-letter); font-size: 1.7rem; line-height: 1; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.wl-clock.is-big { font-size: clamp(2.8rem, 6vw, 4rem); }
.wl-clock.is-low { color: var(--wl-buzz); }
.wl-clock.is-paused { opacity: .7; }
.wl-section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 2px 0 -2px; color: var(--ct-text-2); font-size: .9rem; font-weight: 700; }
.wl-section-title small { color: var(--ct-muted); font-size: .78rem; font-weight: 500; }
.wl-progress { color: var(--ct-accent-text); font-weight: 650; }

/* the typed script page */
.wl-script { display: grid; gap: 6px; padding: 16px 18px; border-radius: 6px 6px 14px 6px; background: linear-gradient(170deg, var(--wl-paper), var(--wl-paper-2)); color: var(--wl-ink); box-shadow: 0 10px 24px #0006; text-align: left; }
.wl-slug { margin: 0; font-family: var(--wl-type); font-weight: 700; font-size: .84rem; letter-spacing: .03em; color: var(--wl-ink-soft); }
.wl-script-title { margin: 0; font-family: var(--wl-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; color: var(--wl-ink); letter-spacing: .01em; overflow-wrap: anywhere; }
.wl-script-line { margin: 2px 0 0; font-family: var(--wl-type); font-size: 1.02rem; line-height: 1.55; color: var(--wl-ink); }
.wl-script.is-compact { padding: 10px 12px; gap: 2px; border-radius: 6px 6px 12px 6px; }
.wl-script.is-line .wl-script-line { margin: 0; }
.wl-script.is-compact .wl-slug { font-size: .74rem; }
.wl-script.is-compact .wl-script-title { font-size: 1.2rem; }
[lang="zh-Hant"] .wl-script-title, html[lang="zh-Hant"] .wl-script-title, html[lang="zh-Hant"] .wl-marquee-title { font-weight: 800; letter-spacing: 0; }

/* the felt letterboard with this actor's limit */
.wl-board { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px 16px 14px; border-radius: 16px; text-align: center; color: var(--wl-letter);
  background-color: var(--wl-felt); background-image: repeating-linear-gradient(180deg, #ffffff07 0 2px, transparent 2px 7px);
  box-shadow: inset 0 0 0 6px #231b1f, inset 0 3px 14px #000c, 0 10px 26px #0008; }
.wl-board-label { margin: 0; color: #d2c8cb; font-size: .84rem; }
.wl-board-num { position: relative; line-height: 1; }
.wl-board-num b { display: block; font-family: var(--wl-display); font-weight: 400; font-size: clamp(6rem, 34vw, 8.8rem); line-height: .92; color: var(--wl-letter); text-shadow: 0 3px 0 #000a; }
.wl-board-was { position: absolute; left: calc(100% + 6px); top: 10px; padding: 3px 8px; border-radius: 99px; background: var(--wl-spot); color: var(--ct-accent-ink); font-size: .74rem; font-weight: 800; white-space: nowrap; }
.wl-board-unit { margin: 2px 0 0; font-family: var(--wl-display); font-size: 1.3rem; letter-spacing: .05em; color: var(--wl-letter); }
html[lang="zh-Hant"] .wl-board-unit { font-family: inherit; font-weight: 800; letter-spacing: .08em; font-size: 1.1rem; }
.wl-board-role { display: grid; gap: 2px; width: 100%; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed #ffffff2a; }
.wl-board-role span { color: #c9bfc2; font-size: .78rem; }
.wl-board-role strong { font-family: var(--wl-display); font-weight: 400; font-size: 1.65rem; line-height: 1.12; color: var(--wl-spot); overflow-wrap: anywhere; }
html[lang="zh-Hant"] .wl-board-role strong { font-family: inherit; font-weight: 800; font-size: 1.45rem; }
.wl-board-role em { color: #ece2e5; font-size: .95rem; }
.wl-board:has(.wl-board-was.is-live) .wl-board-num b { animation: wl-flip .7s cubic-bezier(.2, .8, .2, 1) both; color: var(--wl-spot); }
.wl-cast-row:has(.wl-was.is-live) .wl-tile b { color: var(--wl-spot); }
.wl-was:not(.is-live), .wl-board-was:not(.is-live), .wl-flash:not(.is-live) { display: none; }

/* the cast, as letterboard rows */
.wl-cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wl-cast-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); }
.wl-cast-row.is-me { border-color: #a07a3a; box-shadow: inset 3px 0 0 var(--wl-spot); }
.wl-cast-row.is-out { border-style: dashed; background: transparent; }
.wl-cast-who strong .wl-out-tag { color: var(--ct-muted); font-size: .72rem; font-weight: 600; margin-left: 6px; }
.wl-tile { position: relative; display: grid; place-items: center; width: 46px; height: 50px; border-radius: 8px; background-color: var(--wl-felt); background-image: repeating-linear-gradient(180deg, #ffffff08 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 3px #231b1f; }
.wl-tile b { font-family: var(--wl-display); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--wl-letter); }
.wl-cast-row.is-me .wl-tile b { color: var(--wl-spot); }
/* After a shuffle, each row says what the limit was, next to the name (never over the number). */
.wl-was { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--wl-spot); color: var(--ct-accent-ink); font-size: .68rem; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.wl-cast-who { display: grid; gap: 1px; min-width: 0; }
.wl-cast-who strong { color: var(--ct-text-hi); font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; }
.wl-cast-who strong em { font-style: normal; color: var(--ct-muted); font-size: .72rem; font-weight: 500; margin-left: 3px; }
.wl-cast-who span { color: var(--ct-text-2); font-size: .84rem; line-height: 1.4; overflow-wrap: anywhere; }
.wl-cast-who i { font-style: normal; color: var(--ct-muted); }
.wl-fouls { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 99px; background: #ff63781f; color: #ff9fae; font-size: .8rem; font-weight: 800; }
.wl-fouls svg { width: 15px; height: 15px; }
.wl-foul-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 6px 11px; border-radius: 99px; border: 1px solid #ff637866; background: transparent; color: #ffadb9; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .12s, transform .08s; -webkit-tap-highlight-color: transparent; }
.wl-foul-btn svg { width: 16px; height: 16px; }
.wl-foul-btn:hover:not(:disabled) { background: #ff637822; }
.wl-foul-btn:active:not(:disabled) { transform: scale(.95); background: #ff637844; }
.wl-foul-btn:disabled { opacity: .45; cursor: default; }
.wl-foul-btn:focus-visible { outline: 2px solid var(--ct-focus); outline-offset: 2px; }
.wl-cast-row:not(:has(.wl-fouls)) { grid-template-columns: 46px minmax(0, 1fr) auto; }
.wl-cast-row:not(:has(.wl-fouls)):not(:has(.wl-foul-btn)) { grid-template-columns: 46px minmax(0, 1fr); }

/* foul and shuffle flashes */
/* On a card the banner is a toast at the bottom: clear of the language switch, and never in the way of a tap. */
.wl-flash { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 12px; right: 12px; max-width: 420px; margin: 0 auto; z-index: 60; pointer-events: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 11px 14px; border-radius: 14px; text-align: left; box-shadow: 0 12px 30px #0009; }
.wl-flash svg { grid-row: span 2; width: 30px; height: 30px; }
.wl-flash strong { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.wl-flash span { font-size: .84rem; opacity: .9; }
.wl-flash.is-foul { background: var(--wl-buzz); color: #2a0710; animation: wl-buzz .45s ease both; }
.wl-flash.is-foul.is-mine { outline: 3px solid #fff3f4; outline-offset: -3px; }
.wl-flash.is-shuffle { background: var(--wl-spot); color: var(--ct-accent-ink); animation: wl-rise .45s cubic-bezier(.2, .8, .2, 1) both; }

/* card zones */
.wl-zone { display: grid; justify-items: center; gap: 8px; padding: 16px 12px; border-radius: 14px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); text-align: center; }
.wl-zone h3 { margin: 0; color: var(--ct-text-hi); font-size: 1.2rem; }
.wl-zone p { margin: 0; color: var(--ct-text-2); font-size: .92rem; line-height: 1.55; }
.wl-zone-label { color: var(--ct-muted) !important; font-size: .84rem !important; }
.wl-zone-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 4px; }
.wl-zone.is-paused { border-color: #8f6a2c; }
.wl-note { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--ct-surface-2); border: 1px dashed var(--ct-border-2); }
.wl-note strong { color: var(--ct-text-hi); }
.wl-note span { color: var(--ct-muted); font-size: .88rem; }
.wl-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.wl-status-clock { display: grid; align-content: center; justify-items: end; gap: 4px; padding: 8px 12px; border-radius: 12px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); }
.wl-status-clock span { color: var(--ct-muted); font-size: .72rem; white-space: nowrap; }
.wl-status-clock .wl-clock { font-size: 2rem; }
.wl-wrap-title { font-family: var(--wl-display); font-weight: 400 !important; font-size: 2.3rem !important; letter-spacing: .02em; color: var(--wl-spot) !important; line-height: 1.05; }
html[lang="zh-Hant"] .wl-wrap-title { font-family: inherit; font-weight: 900 !important; }

/* "I said a line": the actor's own scoring button */
.wl-score { display: grid; gap: 8px; text-align: center; }
.wl-line-btn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px 12px 18px; border-radius: 16px; font-size: 1.18rem; font-weight: 800; text-align: left; box-shadow: 0 10px 26px #ffc24726; }
.wl-line-btn svg { width: 26px; height: 26px; }
.wl-line-btn span { overflow-wrap: anywhere; }
.wl-line-btn b { padding: 7px 13px 5px; border-radius: 12px; background: #2a1600; color: var(--wl-spot); font-family: var(--wl-display); font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wl-line-btn small { grid-column: 1 / -1; justify-self: center; margin-top: -4px; font-size: .82rem; font-weight: 800; }
.wl-line-btn small:empty { display: none; }
.wl-line-btn.is-cooling { opacity: .62; cursor: default; box-shadow: none; }
.wl-line-btn:active:not(:disabled):not(.is-cooling) { transform: scale(.98); }
.wl-score-line { margin: 0; color: var(--ct-text-hi); font-size: 1rem; font-weight: 700; }
.wl-score-hint { margin: 0; color: var(--ct-muted); font-size: .84rem; line-height: 1.5; }
.wl-swap { justify-self: center; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 0; padding: 6px 14px; border-radius: 99px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); color: var(--ct-text-2); font-size: .9rem; font-weight: 600; }
.wl-swap span { display: inline-flex; align-items: center; gap: 6px; }
.wl-swap svg { width: 17px; height: 17px; color: var(--wl-spot); }
.wl-swap b { font-family: var(--wl-display); font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--wl-letter); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.wl-swap b.is-low { color: var(--wl-buzz); }
.wl-swap.is-done { color: var(--ct-muted); }
/* a cast row's points this scene, and a short "+6" after each line */
.wl-row-pts { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: #ffc2471f; color: var(--ct-accent-text); font-size: .74rem; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.wl-pop { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--wl-spot); color: var(--ct-accent-ink); font-size: .74rem; font-weight: 900; white-space: nowrap; vertical-align: 1px; }
.wl-pop.is-live { animation: wl-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.wl-pop:not(.is-live) { display: none; }
/* what each dealt limit scores (shared screen) */
.wl-values { display: grid; gap: 8px; }
.wl-values h4 { margin: 0; color: var(--ct-text-2); font-size: .9rem; }
.wl-values ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-values li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 99px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); color: var(--ct-text); font-size: .92rem; }
.wl-values li b { padding: 2px 9px; border-radius: 99px; background: var(--wl-spot); color: var(--ct-accent-ink); font-weight: 900; }
/* points per limit (setup and Table controls) */
/* (The cap sits on the fieldset: an auto-fill grid with its own max-width would size its minimum to that width.) */
.wl-points { display: grid; gap: 10px; min-width: 0; max-width: 560px; margin: 0; padding: 0; border: 0; text-align: left; }
.wl-points legend { padding: 0; margin-bottom: 4px; color: var(--ct-text-2); font-size: .88rem; font-weight: 650; }
.wl-points-hint { margin: 0; color: var(--ct-muted); font-size: .82rem; line-height: 1.5; }
.wl-points-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.wl-point { display: grid; justify-items: center; gap: 6px; padding: 8px 6px 6px; border-radius: 12px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); }
.wl-point-limit { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 7px; background-color: var(--wl-felt); background-image: repeating-linear-gradient(180deg, #ffffff08 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 2px #231b1f; font-family: var(--wl-display); font-size: 1.4rem; color: var(--wl-letter); line-height: 1; }
.wl-point input { width: 100%; min-width: 0; max-width: 72px; min-height: 44px; font: inherit; font-size: 18px; font-weight: 800; text-align: center; color: var(--ct-text); background: var(--ct-field-bg); border: 1px solid var(--ct-border-2); border-radius: 9px; padding: 6px 4px; color-scheme: dark; }
.wl-point input { -moz-appearance: textfield; appearance: textfield; }
.wl-point input::-webkit-inner-spin-button, .wl-point input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wl-point input:focus-visible { outline: 2px solid var(--ct-focus); outline-offset: 2px; }
.wl-point small { color: var(--ct-muted); font-size: .74rem; line-height: 1; text-align: center; }
/* the end of a scene: who scored what */
.wl-wrapup { display: grid; justify-items: center; gap: 8px; padding: 22px 16px 18px; border-radius: 16px; text-align: center;
  background: radial-gradient(260px 200px at 50% 0%, #ffc24733, #ffc24700 75%), var(--wl-felt); box-shadow: inset 0 0 0 6px #231b1f, 0 10px 26px #0008; }
.wl-wrapup h2 { margin: 0; font-family: var(--wl-display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; letter-spacing: .02em; color: var(--wl-spot); }
html[lang="zh-Hant"] .wl-wrapup h2 { font-family: inherit; font-weight: 900; }
.wl-wrapup > p { margin: 0; color: #e7dbde; }
.wl-wrapup-top { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; color: #e7dbde; font-weight: 650; }
.wl-wrapup-top svg { width: 18px; height: 18px; color: var(--wl-spot); }
.wl-wrapup-top strong { color: var(--wl-letter); font-size: 1.15rem; overflow-wrap: anywhere; }
.wl-wrapup-top b { color: var(--wl-spot); }
.wl-wrapup-none { color: #d8cdd0 !important; }
.wl-wrapup-you { padding: 4px 12px; border-radius: 99px; background: var(--wl-spot); color: var(--ct-accent-ink) !important; font-weight: 800; font-size: .9rem; }
.wl-wrapup h4 { margin: 6px 0 0; color: #d8cdd0; font-size: .84rem; font-weight: 650; }
.wl-tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; max-width: 420px; }
.wl-tally li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #ffffff0c; color: var(--wl-letter); text-align: left; }
.wl-tally li span { overflow-wrap: anywhere; font-weight: 650; }
.wl-tally li em { font-style: normal; color: #cbbcc1; font-size: .74rem; font-weight: 500; }
.wl-tally li small { color: #cbbcc1; font-size: .8rem; white-space: nowrap; }
.wl-tally li b { min-width: 3ch; text-align: right; color: var(--wl-spot); font-variant-numeric: tabular-nums; }
.wl-tally li.is-top { background: #ffc24724; box-shadow: inset 0 0 0 1px #ffc24766; }
.wl-tally li.is-me span { color: #fff; }
.wl-wrapup.is-void h2 { color: var(--wl-letter); font-size: 2rem; }
.wl-recap { display: grid; gap: 6px; }
.wl-recap h4 { margin: 0; color: var(--ct-text-2); font-size: .88rem; }
.wl-recap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wl-recap li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 99px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); color: var(--ct-text); font-size: .86rem; }
.wl-recap-line { margin: 0; color: var(--ct-muted); font-size: .9rem; text-align: center; }
.wl-next { margin-top: 2px; }

/* ── player card ──────────────────────────────────────────────────── */
.wl-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.wl-card-brand { display: inline-flex; align-items: center; gap: 8px; color: #e9d6db; font-family: var(--wl-display); font-size: .92rem; letter-spacing: .04em; }
.wl-card-brand svg { width: 24px; height: 24px; }
.wl-chip { padding: 4px 10px; border-radius: 99px; background: var(--ct-surface-2); border: 1px solid var(--ct-border-2); color: var(--ct-text-2); font-size: .78rem; font-weight: 650; }
.wl-card.is-live { border-color: #74303f; }
.wl-card.is-top { border-color: var(--wl-spot); box-shadow: 0 0 0 1px #ffc24766, 0 16px 44px #ffc2471f; }

/* ── the shared stage ─────────────────────────────────────────────── */
.wl-stage { position: relative; display: grid; gap: 18px; padding: 0 0 22px; border-radius: 20px; background: var(--ct-surface); border: 1px solid var(--ct-border); overflow: hidden; }
.wl-marquee { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 30px 26px 24px;
  background-color: var(--wl-felt);
  background-image: radial-gradient(circle, #ffc247 0 2.6px, #ffc24700 3.4px), radial-gradient(circle, #ffc247 0 2.6px, #ffc24700 3.4px), repeating-linear-gradient(180deg, #ffffff06 0 2px, transparent 2px 7px);
  background-size: 24px 12px, 24px 12px, auto; background-repeat: repeat-x, repeat-x, repeat; background-position: 6px 6px, 6px calc(100% - 4px), 0 0;
  box-shadow: inset 0 -1px 0 #ffffff12; }
.wl-marquee-text { display: grid; gap: 6px; min-width: 0; }
.wl-marquee-no { margin: 0; color: var(--wl-spot); font-size: .86rem; font-weight: 800; }
.wl-marquee-title { margin: 0; font-family: var(--wl-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: .015em; color: var(--wl-letter); overflow-wrap: anywhere; }
.wl-marquee .wl-slug { color: #cdbfc4; }
.wl-marquee-clock { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 150px; text-align: center; }
.wl-marquee-clock span { color: #d7c8cd; font-size: .8rem; max-width: 16ch; }
.wl-marquee-clock.is-ring > span { display: none; }
.wl-marquee-clock.is-ring { --ct-progress: 1; width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(closest-side, var(--wl-felt) 82%, transparent 83% 100%), conic-gradient(var(--wl-spot) calc(var(--ct-progress) * 360deg), #3a2a31 0); }
.wl-stage-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; padding: 0 22px; align-items: start; }
.wl-stage-left, .wl-stage-right { display: grid; gap: 16px; min-width: 0; }
.wl-stage .wl-script { padding: 22px 24px; }
.wl-stage .wl-script-title { font-size: 2.2rem; }
.wl-stage .wl-script-line { font-size: 1.2rem; }
.wl-stage .wl-swap { font-size: 1.05rem; padding: 8px 18px; }
.wl-stage .wl-swap b { font-size: 1.7rem; }
.wl-stage .wl-values li { font-size: 1.02rem; }
.wl-stage-hint { margin: 0; color: var(--ct-text-2); font-size: 1rem; line-height: 1.6; text-align: center; }
.wl-cast.is-big { gap: 9px; }
.wl-cast.is-big .wl-cast-row { grid-template-columns: 62px minmax(0, 1fr) auto; padding: 9px 12px 9px 9px; }
.wl-cast.is-big .wl-tile { width: 62px; height: 66px; }
.wl-cast.is-big .wl-tile b { font-size: 2.5rem; }
.wl-cast.is-big .wl-cast-who strong { font-size: 1.18rem; }
.wl-cast.is-big .wl-cast-who span { font-size: .95rem; }
.wl-stage .wl-flash { position: absolute; top: 18px; bottom: auto; left: 20px; right: 20px; max-width: 560px; margin: 0 auto; padding: 16px 20px; }
.wl-stage .wl-flash strong { font-size: 1.5rem; }
.wl-paused { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; gap: 6px; text-align: center; background: #22090fd9; backdrop-filter: blur(3px); }
.wl-paused strong { font-family: var(--wl-display); font-weight: 400; color: var(--wl-letter); font-size: 2.6rem; letter-spacing: .06em; }
.wl-paused span { color: var(--ct-text-2); }
.wl-phase-finished { padding: 24px; }
.wl-phase-finished .ct-final-title, .wl-card .ct-final-title { font-family: var(--wl-display); font-weight: 400; letter-spacing: .02em; }

@keyframes wl-flip { 0% { transform: rotateX(90deg); opacity: .2; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: rotateX(0); } }
@keyframes wl-buzz { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes wl-rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
  .wl-stage-main { grid-template-columns: 1fr; }
  .wl-setup-pitch { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .wl-page { padding-inline: 16px; }
  .wl-units { grid-template-columns: 1fr; }
  .wl-marquee { grid-template-columns: 1fr; padding: 26px 16px 20px; }
  .wl-marquee-clock { justify-self: start; justify-items: start; min-width: 0; }
  .wl-marquee-clock.is-ring { justify-self: center; justify-items: center; width: 140px; height: 140px; }
  .wl-stage-main { padding: 0 12px; }
  .wl-stage .wl-script-title { font-size: 1.8rem; }
  .wl-stage .wl-flash { left: 12px; right: 12px; }
}
@media (max-width: 380px) {
  .wl-cast-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 7px; }
  .wl-tile { width: 40px; height: 46px; }
  .wl-foul-btn span { display: none; }
  .wl-foul-btn { padding: 6px 12px; }
  .wl-zone-row { grid-template-columns: 1fr; }
  .wl-board-was { left: calc(100% + 4px); top: 6px; }
  .wl-line-btn { gap: 10px; padding: 10px 10px 10px 14px; font-size: 1.04rem; }
  .wl-line-btn b { font-size: 1.45rem; padding: 6px 10px 4px; }
}

/* A quiet player card: the theme, floor, own limit and one action first.
   Cast, points and foul controls stay available below the main reading area. */
body.wl-card-page {
  --ct-bg: #17191e; --ct-surface: #20232a; --ct-surface-2: #292d35;
  --ct-border: #3c424d; --ct-border-2: #59616d;
  --ct-text: #e8e7e4; --ct-text-hi: #faf5ec; --ct-text-2: #d2d3d6; --ct-muted: #b5bac4;
  --ct-accent: #d4b58b; --ct-accent-hi: #e2c7a3; --ct-accent-ink: #25211b; --ct-accent-text: #e1c49d;
  --ct-btn: #30353e; --ct-btn-hi: #3b424c; --ct-field-bg: #191c22; --ct-focus: #e2c7a3;
  --ct-card-bg: #20232a; --ct-card-border: #48515d;
  --wl-spot: #d4b58b; --wl-felt: #1c1f25; --wl-letter: #f3eee6;
  background: #17191e; position: relative; padding: 64px 12px 24px;
}
body.wl-card-page #i18n-toggle { position: absolute; background: #242830; border-color: #515966; --accent: #d4b58b; }
body.wl-card-page #i18n-toggle button { color: #d4d6dc; }
body.wl-card-page #i18n-toggle button.active { color: #25211b; }
.wl-card { border-radius: 20px; box-shadow: 0 12px 36px #0003; }
.wl-card.is-live, .wl-card.is-top { border-color: #59616d; box-shadow: 0 12px 36px #0003; }
.wl-card-head { flex-wrap: nowrap; min-width: 0; }
.wl-card .name-banner { min-width: 0; color: var(--ct-text-hi) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0; margin: 0; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.wl-card .wl-chip { flex-shrink: 0; border: 0; padding: 4px 0 4px 8px; background: transparent; font-size: .75rem; color: var(--ct-muted); }
.wl-floor { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--ct-border); border-radius: 12px; background: var(--ct-surface-2); text-align: left; }
.wl-floor > div:first-child { min-width: 0; display: grid; gap: 2px; }
.wl-floor > div > span { color: var(--ct-muted); font-size: .73rem; font-weight: 500; }
.wl-floor strong { color: var(--ct-text-hi); font-size: 1.12rem; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.wl-floor small { color: var(--ct-text-2); font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.wl-floor-limit { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; color: var(--ct-text-2); font-size: .82rem; line-height: 1.3; }
.wl-floor-tile { display: grid; place-items: center; min-width: 34px; height: 38px; padding: 0 6px; border-radius: 7px; background-color: var(--wl-felt); background-image: repeating-linear-gradient(180deg, #ffffff08 0 2px, transparent 2px 6px); box-shadow: inset 0 1px 0 #ffffff14, 0 2px 0 #0007; font-family: var(--wl-display); font-weight: 400; font-size: 1.45rem; line-height: 1; color: var(--wl-letter); }
.wl-stage .wl-floor-tile { min-width: 44px; height: 48px; font-size: 1.9rem; }
.wl-floor.is-mine { border-color: #a68b68; background: #322e29; }
.wl-floor.is-mine > div > span { color: #e6cda9; }
.wl-floor-clock { display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.wl-floor .wl-clock { font-family: inherit; color: var(--ct-text-hi); font-size: 1.2rem; font-weight: 550; letter-spacing: 0; }
.wl-card .wl-board { grid-template-columns: 1fr; align-items: center; padding: 12px 18px; border: 0; border-radius: 13px; background: #eee8dd; background-image: none; color: #262b32; box-shadow: none; }
.wl-card .wl-board-limit { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; justify-items: start; min-width: 0; column-gap: 16px; row-gap: 0; }
.wl-card .wl-board-label { grid-column: 2; align-self: end; }
.wl-card .wl-board-num { grid-column: 1; grid-row: 1 / 3; justify-self: center; }
.wl-card .wl-board-unit { grid-column: 2; align-self: start; }
.wl-card .wl-board-label { color: #4f545c; font-size: .67rem; white-space: nowrap; }
.wl-card .wl-board-num b { font-family: Georgia, 'Times New Roman', serif; font-size: 3.9rem; font-weight: 400; color: #252b32; text-shadow: none; line-height: 1; }
.wl-card .wl-board .wl-board-unit { margin: 0; font-family: inherit; font-size: .7rem; font-weight: 550; letter-spacing: 0; color: #4f545c; }
.wl-card .wl-board-role { width: 100%; min-width: 0; display: grid; gap: 5px; margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #b7b0a5; text-align: left; }
.wl-card .wl-board-role span { color: #565960; font-size: .7rem; }
.wl-card .wl-board .wl-board-role strong { font-family: inherit; font-size: 1.08rem; line-height: 1.35; font-weight: 700; color: #252b32; }
.wl-card .wl-board-role em { font-style: normal; color: #444b54; font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.wl-card .wl-board-was { left: auto; right: -18px; top: -5px; background: #d5b88e; padding: 2px 5px; font-size: .63rem; }
.wl-card .wl-board:has(.wl-board-was.is-live) .wl-board-num b { color: #252b32; animation: none; }
.wl-scene-brief { display: grid; gap: 7px; padding: 2px 1px 5px; text-align: left; }
.wl-scene-brief h3 { margin: 0; color: var(--ct-text-hi); font: inherit; font-size: 1.24rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.wl-scene-brief p { margin: 0; color: var(--ct-text-2); font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.wl-card .wl-line-btn { min-height: 58px; border-radius: 11px; padding: 11px 12px; gap: 9px; font-size: 1rem; font-weight: 650; box-shadow: none; }
.wl-card .wl-line-btn svg { width: 21px; height: 21px; }
.wl-card .wl-line-btn b { background: #352b20; color: #f0d5af; font-family: inherit; font-size: 1.1rem; font-weight: 700; border-radius: 7px; padding: 6px 8px; }
.wl-card .wl-score-hint { font-size: .75rem; line-height: 1.45; }
.wl-waiting { margin: 0; padding: 10px 4px; color: var(--ct-muted); font-size: .83rem; line-height: 1.5; text-align: center; }
.wl-more { margin-top: 8px; border-top: 1px solid var(--ct-border); text-align: left; }
.wl-more > summary { min-height: 52px; padding: 12px 2px; color: var(--ct-text-2); cursor: pointer; font-size: .84rem; line-height: 1.4; }
.wl-more > summary small { display: block; padding-left: 15px; color: var(--ct-muted); font-size: .73rem; margin-top: 3px; }
.wl-more-content { display: grid; gap: 12px; padding: 4px 0 10px; }
.wl-inspiration { text-align: left; border: 1px solid var(--ct-border); border-radius: 11px; padding: 0 12px; }
.wl-inspiration > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--ct-text-2); font-size: .84rem; line-height: 1.4; }
.wl-inspiration-hint { margin: 0 0 12px; color: var(--ct-muted); font-size: .85rem; line-height: 1.55; }
.wl-role-idea { padding: 0 0 12px; color: var(--ct-text-hi); }
.wl-role-idea strong { font-size: 1rem; font-weight: 650; }
.wl-role-idea p { margin: 5px 0 0; color: var(--ct-text-2); font-size: .9rem; line-height: 1.5; }
.wl-stage .wl-inspiration { padding: 0 16px 10px; }
.wl-card .wl-more .wl-score-line { font-size: .84rem; font-weight: 500; }
.wl-card .wl-wrapup { background: #272b32; box-shadow: none; border: 1px solid var(--ct-border); border-radius: 14px; }
.wl-card .wl-wrapup h2, .wl-card .wl-wrap-title { font-family: inherit; font-size: 1.7rem; letter-spacing: 0; font-weight: 700; }
.wl-cast-row.is-speaking { border-color: var(--wl-spot); }
.wl-card .wl-foul-btn { color: #edbdc0; border-color: #8e686e; border-radius: 9px; }
.wl-card .wl-flash { box-shadow: 0 8px 24px #0004; animation: none; }
.wl-stage .wl-floor { margin: 0; }
@media (max-width: 380px) {
  .wl-card .wl-board { grid-template-columns: 1fr; padding: 12px; }
  .wl-card .wl-board-role { padding-left: 11px; }
  .wl-card .wl-board-role strong { font-size: 1rem; }
  .wl-card .wl-board-role em { font-size: .8rem; }
  .wl-floor { padding: 10px 12px; }
  .wl-floor strong { font-size: 1.02rem; }
  .wl-card .wl-zone-row { grid-template-columns: 1fr 1fr; }
  .wl-card .wl-zone-row .ct-button { padding-inline: 8px; font-size: .8rem; }
}
