:root {
  --bg: #0d0f14;
  --panel: #161a22;
  --panel-2: #1d2230;
  --line: #2a3142;
  --text: #e6e9f0;
  --muted: #8b93a7;
  --clad: #e5484d;
  --clad-soft: rgba(229, 72, 77, 0.28);
  --drop: #a77bf3;
  --accent: #5ec8f2;
  --opt: #ffd166;
  --range: rgba(94, 200, 242, 0.25);
  --ok: #4fd18b;
  --s0: #4cc9f0;
  --s1: #f9c74f;
  --s2: #90be6d;
  --s3: #f28482;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 7px 12px;
}
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #06121a; border-color: var(--accent); font-weight: 700; }
button.ghost { background: transparent; }
button:disabled { opacity: 0.4; cursor: default; }

input, select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--clad); min-height: 1.4em; }

/* 상단 */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: rgba(13, 15, 20, 0.92);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: 0.06em; font-size: 18px; }
.brand span { color: var(--clad); }
.brand small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.status { flex: 1; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.status b { color: var(--text); }
.status .volt { color: var(--clad); font-weight: 700; }
.top-actions { display: flex; gap: 8px; }

/* 설정 */
.setup { display: grid; place-items: center; padding: 48px 16px; }
.setup-card { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.setup-card h1 { margin: 0 0 4px; }
.seat-row { display: grid; grid-template-columns: 28px 1fr 160px 32px; gap: 8px; align-items: center; margin-top: 10px; }
.seat-dot { width: 18px; height: 18px; border-radius: 50%; }
.setup-actions { display: flex; justify-content: space-between; margin-top: 18px; }

/* 게임 */
.game {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 16px;
  padding: 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.cell {
  position: relative;
  border-radius: 8px;
  background: #11151d;
  border: 1px solid #222838;
  display: grid; place-items: center;
}
.cell.entry::before {
  content: attr(data-entry);
  position: absolute; left: 5px; bottom: 3px;
  font-size: 11px; font-weight: 700; color: #5bd38a;
}
.cell.entry { border-color: rgba(91, 211, 138, 0.45); }
.cell.atk { background: var(--clad-soft); border-color: rgba(229, 72, 77, 0.6); }
.cell.drop::after {
  content: "VP"; position: absolute; right: 4px; top: 3px;
  font-size: 9px; font-weight: 800; color: #fff;
  background: var(--drop); border-radius: 4px; padding: 0 3px;
}
.cell.range { box-shadow: inset 0 0 0 3px var(--accent); background: var(--range); }
.cell.opt { cursor: pointer; box-shadow: inset 0 0 0 3px var(--opt); }
.cell.opt:hover { background: rgba(255, 209, 102, 0.18); }

.shard {
  position: absolute; left: 5px; top: 4px;
  font-size: 11px; font-weight: 700; color: #d9c6ff;
  background: rgba(167, 123, 243, 0.25); border: 1px solid var(--drop);
  border-radius: 10px; padding: 0 6px;
}
.clad {
  width: 70%; aspect-ratio: 1;
  background: var(--clad);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  filter: drop-shadow(0 0 8px rgba(229, 72, 77, 0.8));
}
.clad.immobile { outline: 2px dashed #fff; }
.witch {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #0b0d12;
  position: relative;
}
.witch .face {
  position: absolute; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 10px solid #fff;
  top: -10px; left: calc(50% - 7px);
  transform-origin: 50% 160%;
}
.rot-N { transform: rotate(0deg); }
.rot-E { transform: rotate(90deg); }
.rot-S { transform: rotate(180deg); }
.rot-W { transform: rotate(270deg); }

.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 8px 2px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.lg-atk { background: var(--clad-soft); border: 1px solid var(--clad); }
.lg-drop { background: var(--drop); }
.lg-opt { box-shadow: inset 0 0 0 2px var(--opt); }
.lg-range { background: var(--range); box-shadow: inset 0 0 0 2px var(--accent); }

/* 시퀀스 보드 */
.sequence { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; }
.seq-title { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.seq-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: stretch; }
.seq-slot {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 64px;
  font-size: 12px; background: var(--panel-2);
}
.seq-slot.clad-slot { border-color: rgba(229, 72, 77, 0.45); }
.seq-slot.done { opacity: 0.35; }
.seq-slot.active { box-shadow: 0 0 0 2px var(--opt); }
.seq-slot .nm { font-weight: 700; display: block; margin-bottom: 3px; }
.seq-standby { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.seq-standby div { text-align: center; }
.mini {
  display: grid; grid-template-columns: repeat(5, 9px); gap: 1px; margin: 4px 0;
}
.mini i { width: 9px; height: 9px; background: #262c3a; border-radius: 2px; }
.mini i.a { background: var(--clad); }
.mini i.d { background: var(--clad); box-shadow: inset 0 0 0 2px var(--drop); }
.mini i.dd { background: var(--drop); }
.mini i.c { background: #fff; }
.acts { color: var(--muted); }

/* 질문 */
.prompt { background: var(--panel); border: 1px solid var(--opt); border-radius: 14px; padding: 14px; }
.prompt.waiting { border-color: var(--line); }
.prompt h3 { margin: 0 0 8px; font-size: 16px; }
.prompt .secret { background: rgba(167, 123, 243, 0.15); border: 1px dashed var(--drop); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.opt-group { margin-top: 8px; }
.opt-group > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-list button { text-align: left; }
.opt-list button.end { border-color: var(--muted); }
.filter-note { font-size: 12px; color: var(--opt); margin-top: 6px; }

/* 내 정보 */
.me { margin-top: 12px; }
.me h3, .players h3 { margin: 0 0 8px; font-size: 15px; }
.zone-title { font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.cards { display: flex; flex-wrap: wrap; gap: 8px; }
.card {
  width: 168px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; font-size: 12px; position: relative;
}
.card.playable { border-color: var(--opt); cursor: pointer; }
.card.playable:hover { background: #262c3d; }
.card.selected { box-shadow: 0 0 0 2px var(--opt); }
.card .ct { display: flex; justify-content: space-between; gap: 6px; }
.card .cn { font-weight: 700; font-size: 13px; }
.card .ty { font-size: 11px; padding: 0 5px; border-radius: 4px; height: fit-content; white-space: nowrap; }
.ty-ATTACK, .ty-ATTACK_MAGIC { background: rgba(229, 72, 77, 0.25); color: #ffb3b5; }
.ty-SUPPORT, .ty-SUPPORT_MAGIC { background: rgba(94, 200, 242, 0.2); color: #a9e4ff; }
.ty-REACTION, .ty-REACTION_MAGIC { background: rgba(79, 209, 139, 0.2); color: #a8f0c8; }
.card .stats { display: flex; gap: 8px; margin: 4px 0; color: var(--muted); }
.card .stats b { color: var(--text); }
.card .tx { color: #c4cad8; min-height: 2.6em; }
.card .enh { position: absolute; right: 8px; bottom: 6px; color: var(--opt); font-size: 10px; }
.rng { display: grid; grid-template-columns: repeat(3, 10px); gap: 1px; margin-top: 4px; }
.rng i { width: 10px; height: 10px; background: #262c3a; border-radius: 2px; }
.rng i.x { background: var(--clad); }
.rng i.pin { background: transparent; border: 2px solid var(--accent); border-radius: 50%; }
.cards.compact .card { width: auto; padding: 4px 8px; }

/* 플레이어 */
.players { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.player { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.player.active { border-color: var(--opt); }
.player .hd { display: flex; align-items: center; gap: 8px; }
.player .hd .dot { width: 14px; height: 14px; border-radius: 50%; }
.player .hd b { font-size: 14px; }
.gauges { display: grid; grid-template-columns: 42px 1fr; gap: 3px 6px; margin: 8px 0; font-size: 12px; align-items: center; }
.pips { display: flex; gap: 3px; }
.pips i { width: 12px; height: 8px; border-radius: 2px; background: #262c3a; }
.pips.mp i.on { background: var(--accent); }
.pips.cp i.on { background: var(--opt); }
.kv { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.kv b { color: var(--text); }
.missions { margin-top: 6px; font-size: 12px; }
.missions div.done { color: var(--ok); }
.flags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.flags span { font-size: 11px; background: rgba(255, 209, 102, 0.15); color: var(--opt); border-radius: 4px; padding: 0 5px; }

/* 기록 */
.log {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100%);
  background: var(--panel); border-left: 1px solid var(--line); z-index: 10;
  display: flex; flex-direction: column;
}
.log-head { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.log ol { margin: 0; padding: 12px 12px 12px 32px; overflow: auto; font-size: 12px; color: #c4cad8; }
.log li { margin-bottom: 3px; }

/* 오버레이 */
.overlay { position: fixed; inset: 0; background: rgba(5, 6, 9, 0.92); display: grid; place-items: center; z-index: 20; padding: 16px; }
.overlay-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; width: min(420px, 100%); }
.overlay-card.wide { width: min(720px, 100%); }
.overlay-card h2 { margin: 4px 0 8px; font-size: 26px; }
#results-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13px; }
#results-table th, #results-table td { border-bottom: 1px solid var(--line); padding: 6px; }
#results-table tr.win td { color: var(--opt); font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #3a1d20; border: 1px solid var(--clad); color: #ffd0d1;
  padding: 10px 16px; border-radius: 10px; z-index: 30;
}

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; padding: 10px; }
  .seq-row, .seq-standby { grid-template-columns: repeat(4, 1fr); }
  .card { width: calc(50% - 4px); }
}

/* ───── 2차: 로비·대기실·그림·예측 ───── */
.center { display: grid; place-items: center; padding: 40px 16px; }
.panel-card { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel-card.wide { width: min(820px, 100%); }
.panel-card h1 { margin: 0 0 6px; font-size: 22px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.center-row { justify-content: center; }
.row input { flex: 1; min-width: 160px; }
.me-nick { color: var(--muted); font-size: 13px; }
.me-nick b { color: var(--text); }

.room-list { display: grid; gap: 8px; margin-top: 14px; }
.room { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.room .rn { font-weight: 700; }
.badge { font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.badge.WAITING { background: rgba(79, 209, 139, 0.2); color: var(--ok); }
.badge.PLAYING { background: rgba(255, 209, 102, 0.18); color: var(--opt); }
.badge.FINISHED { background: #262c3a; color: var(--muted); }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

.members { display: grid; gap: 8px; margin: 16px 0; }
.member { display: grid; grid-template-columns: 44px 1fr 200px; gap: 10px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.member.me { border-color: var(--accent); }
.member .who b { font-size: 15px; }

.turn-banner { background: var(--opt); color: #1a1405; font-weight: 800; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; text-align: center; }
.turn-banner.wait { background: var(--panel-2); color: var(--muted); font-weight: 500; border: 1px solid var(--line); }

.forecast-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 4px 10px; background: transparent; }
.seg button.on { background: var(--panel-2); color: var(--opt); font-weight: 700; }

.chips { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 80%; }
.chip { display: inline-grid; place-items: center; min-width: 16px; height: 16px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #fff; padding: 0 3px; margin-right: 2px; }
.chip.c1 { background: #e5484d; }
.chip.c2 { background: #f08c2e; }
.chip.c3 { background: #c93fb0; }
.chip.tr { background: #6b7280; }
.chip.dr { background: var(--drop); }
.cell.fc1 { background: rgba(229, 72, 77, 0.22); }
.cell.fc2 { background: rgba(240, 140, 46, 0.2); }
.cell.fc3 { background: rgba(201, 63, 176, 0.2); }
.ghost-clad { position: absolute; left: 4px; bottom: 4px; opacity: 0.55; display: flex; align-items: center; gap: 2px; font-size: 10px; color: #ffb3b5; }
.ghost-clad svg { width: 18px; height: 18px; }

/* 클래드 말: SVG 머리 */
.clad { clip-path: none; background: none; filter: drop-shadow(0 0 8px rgba(229, 72, 77, 0.7)); width: 80%; display: grid; place-items: center; }
.clad svg, .clad img { width: 100%; height: 100%; }
.clad.immobile { outline: 2px dashed #fff; border-radius: 50%; }

/* 마녀 말: 문장 + 좌석 색 테두리 */
.witch { background: none !important; width: 70%; }
.witch svg, .witch img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 3px var(--ring, #fff); }
.witch .face { z-index: 2; }

.art-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-img.round { border-radius: 50%; }
.card-art { height: 56px; margin: -8px -8px 6px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; display: block; }
.portrait { width: 40px; height: 40px; flex: none; }
.portrait svg, .portrait img { width: 40px; height: 40px; }
.seq-slot .clad-card-img { height: 48px; border-radius: 6px; margin-bottom: 4px; }

/* 보드 칸을 항상 정사각형으로 */
.board { grid-template-rows: repeat(5, minmax(0, 1fr)); }
.cell { min-width: 0; min-height: 0; overflow: hidden; }
.cell .witch, .cell .clad { max-width: 72%; max-height: 72%; aspect-ratio: 1; }

/* 사용자 카드 그림: 마우스를 올리면 전체 보기 */
.card-art.custom .art-img { object-position: top; }
.card-zoom { display: none; position: absolute; z-index: 15; width: 240px; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); pointer-events: none; }
.card:hover .card-zoom { display: block; }
.card-zoom { position: fixed; left: auto; right: 24px; top: 80px; bottom: auto; transform: none; width: 280px; }

/* 그림이 있어도 5열을 항상 같은 너비로 */
.board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cell { aspect-ratio: 1; }
.cell svg, .cell img { max-width: 100%; max-height: 100%; }

/* ───── 3차: 카드·미션 그림 ───── */
.card.full { width: 150px; padding: 0; border: 2px solid transparent; background: none; overflow: visible; }
.card.full .card-face { width: 100%; display: block; border-radius: 9px; }
.card.full.playable { border-color: var(--opt); border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.35); }
.card.full.playable:hover { transform: translateY(-4px); transition: transform 0.12s; background: none; }
.errata { font-size: 10px; line-height: 1.3; color: #1a1405; background: var(--opt); border-radius: 6px; padding: 3px 5px; margin-top: 4px; }
.card.full .errata { position: absolute; left: 4px; right: 4px; bottom: 4px; margin: 0; opacity: 0.94; }

.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; background: var(--panel-2); }
.tile:hover { border-color: var(--opt); background: #262c3d; }
.tile > span { font-size: 12px; max-width: 150px; }
.tile .card { pointer-events: none; }
.tile .mission-card { width: 130px; }

.mission-card { position: relative; width: 120px; border-radius: 8px; overflow: hidden; flex: none; }
.mission-card img { width: 100%; display: block; }
.mission-card.text { background: var(--panel-2); border: 1px solid var(--line); padding: 8px; display: grid; gap: 4px; font-size: 12px; }
.mission-card.text i { color: var(--opt); font-style: normal; font-weight: 700; }
.mission-card.done { box-shadow: 0 0 0 2px var(--ok); }
.mission-card.thumb { width: 72px; }
.mission-card.thumb.text { width: 120px; }
.player .missions { display: flex; gap: 6px; flex-wrap: wrap; }

.zoom { position: fixed; right: 24px; top: 80px; width: 300px; border-radius: 14px; z-index: 40;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65); pointer-events: none; }
.card-zoom { display: none !important; }

/* ───── 4차: UI 리워크 — 시퀀스 위, 카드형 선택, 스탠딩 일러스트 ───── */
:root { --theme: #5ec8f2; --theme-dark: #123f4d; }
body { background:
  radial-gradient(1200px 700px at 100% 30%, color-mix(in srgb, var(--theme-dark) 55%, transparent), transparent 70%),
  var(--bg); background-attachment: fixed; }
.game { grid-template-columns: minmax(340px, 500px) minmax(0, 1fr) 300px; max-width: 1680px; }
.col-board, .col-main { min-width: 0; }
.sequence { margin: 0 0 10px; padding: 10px; }
.seq-title { margin-bottom: 6px; font-size: 12px; }

/* 스탠딩 일러스트 */
.standing { position: sticky; top: 70px; height: calc(100vh - 90px); min-height: 480px; align-self: start;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 18px;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--theme-dark) 70%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--theme) 35%, transparent); }
.st-glow { position: absolute; inset: 10% -20% 25%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--theme) 45%, transparent), transparent);
  filter: blur(8px); pointer-events: none; }
.st-img { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); height: calc(100% - 110px);
  max-width: 120%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  animation: st-in 0.5s ease-out; pointer-events: none; }
.st-emblem { position: absolute; inset: 15% 15% 120px; display: grid; place-items: center; }
@keyframes st-in { from { opacity: 0; transform: translate(-46%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
.st-info { position: relative; z-index: 1; display: grid; gap: 6px; padding: 40px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 13, 0.9) 22%, rgba(8, 9, 13, 0.96)); }
.st-title { display: flex; align-items: baseline; gap: 8px; }
.st-title b { font-size: 26px; letter-spacing: 0.04em; color: var(--theme); line-height: 1.1; }
.st-title small { color: var(--muted); }
.st-player { font-weight: 700; font-size: 13px; margin-top: -4px; }
.st-active { justify-self: start; font-size: 11px; font-weight: 700; color: #111; background: var(--opt);
  border-radius: 99px; padding: 1px 8px; }
.st-cpbar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.st-cpbar b { color: var(--text); font-size: 14px; }
.st-ult { border: 1px solid color-mix(in srgb, var(--theme) 45%, var(--line)); border-radius: 10px; padding: 8px 10px;
  background: color-mix(in srgb, var(--theme-dark) 55%, #0c0e13); opacity: 0.75; }
.st-ult.ready { opacity: 1; border-color: var(--theme); box-shadow: 0 0 14px color-mix(in srgb, var(--theme) 45%, transparent); }
.st-ult.used { border-color: var(--opt); }
.u-head { display: flex; align-items: center; gap: 6px; }
.u-head b { font-size: 15px; color: var(--theme); }
.u-head .when { margin-left: auto; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }
.st-ult p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.u-on { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--opt); }
.cost { font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: #2a3142; color: var(--muted); white-space: nowrap; }
.st-ult.ready .cost, .st-cpacts li.ok .cost { background: var(--theme); color: #111; }
.st-cpacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.st-cpacts li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; padding: 5px 6px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.st-cpacts li.ok { color: var(--text); background: color-mix(in srgb, var(--theme) 12%, transparent); }
.st-cpacts small { width: 100%; font-size: 10px; color: var(--muted); }
.st-img { bottom: 150px; height: calc(100% - 160px); }

/* 카드형 선택 */
.prompt { border-color: color-mix(in srgb, var(--theme) 70%, var(--opt)); }
.prompt h3 { font-size: 17px; }
.tiles { gap: 12px; align-items: flex-start; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 8px; transition: transform 0.12s, box-shadow 0.12s; }
.tile.pick { cursor: pointer; }
.tile.pick:hover, .slot-card.pick:hover, .act-card.pick:hover { transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--opt); border-color: var(--opt); }
.tile .card.full { width: 132px; }
.tile .cap { font-size: 12px; font-weight: 700; color: var(--opt); }
.tile.multi { cursor: default; }
.compass { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 30px); gap: 3px; justify-content: center; margin-top: 2px; }
.compass .dir { display: grid; place-items: center; padding: 0; font-size: 17px; font-weight: 700; border-radius: 8px; }
.compass button.dir { background: color-mix(in srgb, var(--theme) 30%, var(--panel-2)); border: 1px solid var(--theme); color: #fff; }
.compass button.dir:hover { background: var(--opt); color: #111; border-color: var(--opt); }
.compass i.dir.off { color: #3a4050; font-style: normal; border: 1px dashed #2a3142; }
.compass .d-N { grid-area: 1 / 2; } .compass .d-W { grid-area: 2 / 1; } .compass .d-E { grid-area: 2 / 3; } .compass .d-S { grid-area: 3 / 2; }
.compass .hub { grid-area: 2 / 2; display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.sub-picks { display: grid; gap: 4px; width: 100%; }
.sub-picks button { font-size: 12px; padding: 5px 6px; }
.sub-picks button:hover { border-color: var(--opt); }

.slots { gap: 10px; }
.slot-card { position: relative; width: 120px; height: 168px; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 12px 10px; border-radius: 14px; text-align: center;
  border: 2px solid var(--theme); color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--theme) 28%, #1b2030), #12151d 70%); transition: transform 0.12s, box-shadow 0.12s; }
.slot-card .no { font-size: 38px; font-weight: 800; line-height: 1; }
.slot-card .no small { font-size: 14px; margin-left: 1px; }
.slot-card .ic { font-size: 30px; color: var(--theme); }
.slot-card .tx { font-size: 12px; }
.slot-card .why { font-size: 10px; line-height: 1.25; color: #ffb3b5; }
.slot-card.off .tx { display: none; }
.slot-card.off { opacity: 0.35; border-style: dashed; border-color: var(--line); }

.acts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.act-card { position: relative; width: 128px; min-height: 104px; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 16px 8px 8px; border-radius: 12px; text-align: center; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--theme) 55%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--theme) 18%, #1c2130), #13161e 75%);
  transition: transform 0.12s, box-shadow 0.12s; }
.act-card .ic { font-size: 24px; line-height: 1.1; color: var(--theme); }
.act-card b { font-size: 13px; }
.act-card small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.act-card .badge { position: absolute; top: 5px; left: 6px; font-size: 10px; font-weight: 700; padding: 0 6px;
  border-radius: 99px; background: var(--theme); color: #111; }
.act-card.special { border-color: var(--opt); }
.act-card.special .ic { color: var(--opt); }
.act-card.end { border-color: #59617a; background: linear-gradient(165deg, #232838, #13161e 75%); }
.act-card.end .ic { color: #c8cfdf; }

@media (max-width: 1280px) {
  .game { grid-template-columns: minmax(320px, 480px) minmax(0, 1fr); }
  .standing { position: fixed; right: 0; bottom: 0; top: auto; width: 300px; height: 70vh; z-index: 0; opacity: 0.22;
    border: 0; background: none; pointer-events: none; }
  .standing .st-info { display: none; }
  .col-main, .col-board { position: relative; z-index: 1; }
}
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .tile .card.full { width: 110px; }
}

/* ───── 시작 2D6 ───── */
.opening h2 { letter-spacing: 0.04em; }
.opening-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.opening-list li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border-left: 4px solid var(--seat); }
.opening-list .ord { font-size: 12px; font-weight: 700; color: var(--seat); }
.opening-list .nm { font-size: 16px; }
.opening-list .rolls { display: flex; gap: 10px; align-items: center; }
.opening-list .roll { display: flex; align-items: center; gap: 4px; }
.opening-list .roll.re { opacity: 0.85; border-left: 1px solid var(--line); padding-left: 10px; }
.opening-list .roll small { font-size: 10px; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.opening-list .rolls { flex-wrap: wrap; justify-content: flex-end; }
.opening-list .die { font-style: normal; font-size: 40px; line-height: 1; color: #f4f1e8; }
.opening-list .roll em { font-style: normal; font-weight: 800; font-size: 20px; min-width: 28px; text-align: right; color: var(--opt); }
.opening-list li.rolling .die { color: #8b93a7; animation: shake 0.14s infinite alternate; }
.opening-list li.rolling em { visibility: hidden; }
.opening-list li.landed { animation: land 0.35s ease-out; }
@keyframes shake { from { transform: rotate(-12deg) translateY(-2px); } to { transform: rotate(12deg) translateY(2px); } }
@keyframes land { 0% { transform: scale(1.04); box-shadow: 0 0 0 2px var(--opt); } 100% { transform: none; box-shadow: none; } }
@media (max-width: 600px) { .opening-list li { grid-template-columns: 1fr; } }

/* ───── 소리 설정 ───── */
.sound-panel { position: fixed; top: 58px; right: 16px; z-index: 45; width: 240px; display: grid; gap: 10px;
  padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }
.sound-panel label { display: grid; gap: 4px; font-size: 13px; }
.sound-panel label.row { display: flex; gap: 6px; align-items: center; }
.sound-panel input[type=range] { width: 100%; accent-color: var(--theme); }
.sound-panel p { margin: 0; }
.sound-panel input[type=checkbox] { width: auto; min-width: 0; flex: none; margin: 0; }
.sound-panel label.row { justify-content: flex-start; }

/* ───── 클래드 행동 연출 ───── */
.board-wrap { position: relative; }
.board-fx { position: absolute; inset: 0; padding: 9px; display: grid; gap: 6px; pointer-events: none;
  grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); opacity: 0; }
.board-fx.on { opacity: 1; }
.board-fx i { border-radius: 8px; }
.board-fx i.fx-atk { animation: fx-atk 0.6s ease-in-out var(--d) 3 both; }
.board-fx i.fx-drop { animation: fx-drop 0.6s ease-in-out var(--d) 3 both; }
.board-fx i.fx-atk.fx-drop { animation-name: fx-both; }
.board-fx i.fx-move { animation: fx-move 0.6s ease-in-out 0s 3 both; }
@keyframes fx-atk {
  0%, 100% { background: rgba(229, 72, 77, 0.08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.2); }
  50% { background: rgba(255, 92, 97, 0.62); box-shadow: inset 0 0 0 2px #ffb3b5, 0 0 22px 4px rgba(255, 80, 86, 0.7); }
}
@keyframes fx-drop {
  0%, 100% { background: rgba(167, 123, 243, 0.08); }
  50% { background: rgba(167, 123, 243, 0.6); box-shadow: inset 0 0 0 2px #e2d3ff, 0 0 20px 4px rgba(167, 123, 243, 0.7); }
}
@keyframes fx-both {
  0%, 100% { background: rgba(229, 72, 77, 0.08); }
  50% { background: linear-gradient(135deg, rgba(255, 92, 97, 0.7), rgba(167, 123, 243, 0.7));
    box-shadow: inset 0 0 0 2px #fff, 0 0 22px 4px rgba(255, 80, 86, 0.6); }
}
@keyframes fx-move {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: inset 0 0 0 3px #ffd166, 0 0 24px 6px rgba(255, 209, 102, 0.6); }
}
.clad-banner { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; white-space: nowrap;
  background: rgba(26, 8, 10, 0.92); border: 1px solid var(--clad); box-shadow: 0 0 24px rgba(229, 72, 77, 0.55); }
.clad-banner b { color: #ffb3b5; font-size: 13px; }
.clad-banner span { font-weight: 800; font-size: 15px; }
.clad-banner.pop { animation: banner-pop 1.9s ease-out both; }
@keyframes banner-pop {
  0% { opacity: 0; transform: translate(-50%, -8px) scale(0.92); }
  12%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}
body.clad-acting #prompt { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }
body.clad-acting .seq-slot.clad-slot.active { animation: fx-move 0.6s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) {
  .board-fx i, .clad-banner.pop { animation-duration: 0.01s !important; }
  .board-fx i.fx-atk { background: rgba(255, 92, 97, 0.5); }
  .board-fx i.fx-drop { background: rgba(167, 123, 243, 0.5); }
}

/* 부상 연출 */
.board-fx i { position: relative; display: grid; place-items: center; }
.board-fx i.fx-injure { animation: fx-injure 0.5s ease-out 0s 3 both; }
.board-fx i em { font-style: normal; font-weight: 800; font-size: 22px; color: #e2d3ff;
  text-shadow: 0 0 10px rgba(167, 123, 243, 0.9), 0 2px 4px #000; animation: shard-drop 1.4s ease-out both; }
@keyframes fx-injure {
  0% { background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 30px 8px rgba(255, 255, 255, 0.6); }
  100% { background: rgba(229, 72, 77, 0.25); box-shadow: inset 0 0 0 2px var(--clad); }
}
@keyframes shard-drop {
  0% { opacity: 0; transform: translateY(-18px) scale(1.4); }
  25% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(4px); }
}
.clad-banner.injure { border-color: #fff; box-shadow: 0 0 24px rgba(255, 255, 255, 0.35); }
.clad-banner.injure small { color: var(--muted); font-size: 12px; }

/* ───── 행동 확인 창 ───── */
.confirm-overlay { background: rgba(5, 6, 9, 0.55); z-index: 35; }
.confirm-card-box { width: min(380px, 100%); padding: 20px; display: grid; gap: 10px; justify-items: center;
  border-color: color-mix(in srgb, var(--theme) 60%, var(--line)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.confirm-card-box h3 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.confirm-card { width: 170px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.confirm-label { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.confirm-card-box .row input[type=checkbox] { width: auto; min-width: 0; flex: none; margin: 0; }
.confirm-card-box p { margin: 0; }
.sound-panel hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }

/* ───── 원형 아이콘(마녀·클래드) ───── */
.witch img.art-img.round { box-shadow: 0 0 0 2px var(--ring, #fff), 0 4px 10px rgba(0, 0, 0, 0.6); object-fit: cover; }
.portrait img.art-img.round { border-radius: 50%; }
.clad { position: relative; filter: drop-shadow(0 0 10px rgba(229, 72, 77, 0.75)); }
.clad img.art-img { border-radius: 50%; object-fit: cover; }
.clad .clad-face { position: absolute; inset: 0; z-index: 2; width: auto; height: auto; border: 0; pointer-events: none; }
.clad .clad-face::before { content: ""; position: absolute; top: -13px; left: calc(50% - 9px); width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 13px solid #ff5c61;
  filter: drop-shadow(0 0 3px #000); }
.cell { overflow: visible; }
.ghost-icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.ghost-icon img, .ghost-icon svg { width: 18px; height: 18px; border-radius: 50%; }

/* 넉백 연출 */
.board-fx i.fx-knock { animation: fx-knock 0.42s ease-out 0.15s 3 both; }
.board-fx i.fx-from { animation: fx-from 1.2s ease-out both; }
@keyframes fx-knock {
  0% { background: rgba(255, 209, 102, 0.75); box-shadow: inset 0 0 0 3px #fff, 0 0 26px 6px rgba(255, 170, 60, 0.75); transform: scale(1.06); }
  100% { background: rgba(255, 209, 102, 0.15); box-shadow: inset 0 0 0 2px #ffd166; transform: none; }
}
@keyframes fx-from {
  0% { box-shadow: inset 0 0 0 3px rgba(255, 209, 102, 0.9); }
  100% { box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0); }
}
.clad-banner.knock { border-color: var(--opt); box-shadow: 0 0 24px rgba(255, 209, 102, 0.45); }
.clad-banner.knock b { color: var(--opt); }
.clad-banner.knock small { color: var(--muted); font-size: 12px; }

/* ───── 입장·체험판 안내 ───── */
.login-form { display: grid; gap: 8px; }
.trial { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; text-align: left;
  color: var(--muted); background: rgba(255, 209, 102, 0.06); border: 1px dashed rgba(255, 209, 102, 0.35); }
.trial p { margin: 0; }
.trial b { color: var(--text); }
.store-link { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 10px; font-weight: 800; font-size: 14px;
  color: #1a1405; background: var(--opt); text-decoration: none; }
.store-link:hover { filter: brightness(1.08); }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.store-links .store-link { margin-top: 0; }
.store-link.alt { color: var(--opt); background: transparent; border: 1px solid var(--opt); }

/* ───── 라운드 시작 ───── */
.round-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(229, 72, 77, 0.18), rgba(5, 6, 9, 0.55) 60%); }
.round-fx .rf-inner { display: flex; align-items: baseline; gap: 14px; padding: 18px 44px; border-radius: 18px;
  border-top: 2px solid var(--clad); border-bottom: 2px solid var(--clad);
  background: linear-gradient(90deg, transparent, rgba(20, 8, 10, 0.92) 18%, rgba(20, 8, 10, 0.92) 82%, transparent); }
.round-fx small { font-size: 18px; letter-spacing: 0.4em; color: #ffb3b5; font-weight: 700; }
.round-fx b { font-size: 84px; line-height: 1; font-weight: 900; color: #fff; text-shadow: 0 0 28px rgba(255, 92, 97, 0.85); }
.round-fx span { font-size: 22px; color: var(--muted); }
.round-fx .final b { color: var(--opt); text-shadow: 0 0 28px rgba(255, 209, 102, 0.9); }
.round-fx.play { animation: rf-bg 1.7s ease-out both; }
.round-fx.play .rf-inner { animation: rf-in 1.7s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes rf-bg { 0% { opacity: 0; } 12%, 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rf-in {
  0% { transform: scale(1.6); opacity: 0; filter: blur(6px); }
  18% { transform: scale(1); opacity: 1; filter: none; }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.96) translateY(-10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .round-fx.play, .round-fx.play .rf-inner { animation-duration: 0.01s; } }

/* 기권·관전 */
button.danger { color: #ffb3b5; border-color: rgba(229, 72, 77, 0.6); }
button.danger:hover { background: rgba(229, 72, 77, 0.15); }
.spectators { font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
.quit { font-size: 11px; font-weight: 700; color: #ffb3b5; border: 1px solid rgba(229, 72, 77, 0.6); border-radius: 6px; padding: 0 5px; }

/* 체험판 안내: 화면 위쪽 */
.center { gap: 16px; }
.trial.top { margin-top: 0; width: min(520px, 100%); font-size: 13.5px; padding: 16px 18px;
  border: 1px solid rgba(255, 209, 102, 0.55); border-left: 4px solid var(--opt); background: rgba(255, 209, 102, 0.08); }
.trial.top.wide { width: min(820px, 100%); }
.trial p + p { margin-top: 8px; }
.trial .lead { color: var(--text); font-weight: 700; font-size: 14.5px; }
.trial details { margin-top: 6px; }
.trial summary { cursor: pointer; color: var(--opt); font-size: 12.5px; }
.trial details p:first-of-type { margin-top: 8px; }

/* ───── 룰북 서랍 ───── */
.rulebook { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 42; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: -14px 0 40px rgba(0, 0, 0, 0.55);
  animation: rb-in 0.18s ease-out; }
@keyframes rb-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.rb-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rb-head b { white-space: nowrap; }
.rb-search { flex: 1; min-width: 0; }
.rb-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rb-tabs button { padding: 4px 9px; font-size: 12px; border-radius: 99px; }
.rb-tabs button.on { background: var(--opt); color: #111; border-color: var(--opt); }
.rb-body { flex: 1; overflow-y: auto; padding: 4px 18px 24px; font-size: 13.5px; line-height: 1.65; }
.rb-body h3 { font-size: 18px; margin: 14px 0 6px; color: var(--opt); }
.rb-body h4 { font-size: 14px; margin: 16px 0 4px; color: var(--text); }
.rb-body p { margin: 4px 0; }
.rb-body ul, .rb-body ol { margin: 4px 0; padding-left: 20px; }
.rb-body li { margin: 2px 0; }
.rb-body mark { background: var(--opt); color: #111; border-radius: 3px; padding: 0 2px; }
.rb-body section + section { border-top: 1px dashed var(--line); margin-top: 12px; }
.rb-note { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: rgba(255, 209, 102, 0.1); border-left: 3px solid var(--opt); }
.rb-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.rb-table th, .rb-table td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; vertical-align: top; }
.rb-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.rb-clads { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.rb-clad { display: grid; gap: 4px; padding: 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid rgba(229, 72, 77, 0.35); }
.rb-clad b { font-size: 12.5px; }
.rb-ult { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); }
.rb-ult p { margin: 2px 0 0; font-size: 12.5px; }
.rb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.rb-card { position: relative; }
.rb-card img { width: 100%; display: block; border-radius: 6px; }
.rb-card.text { display: grid; gap: 2px; padding: 6px; border-radius: 6px; background: var(--panel-2); font-size: 11.5px; }
.rb-enh { position: absolute; top: 3px; right: 3px; font-size: 10px; font-weight: 700; background: var(--drop); color: #fff; border-radius: 4px; padding: 0 4px; }
.rb-card.text .rb-enh { position: static; }
.rb-help { padding: 0 7px; font-size: 12px; line-height: 18px; border-radius: 99px; margin-left: 4px; vertical-align: middle; }
.zoom { z-index: 45; }
body:has(.rulebook:not([hidden])) .zoom { right: calc(min(440px, 100vw) + 16px); }

/* ───── 튜토리얼 ───── */
.tut-btn { border-color: var(--opt); color: var(--opt); }
.coach { margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 209, 102, 0.12), var(--panel) 60%);
  border: 1px solid var(--opt); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12); }
.coach-top { display: flex; align-items: center; gap: 8px; }
.coach-tag { font-weight: 800; color: var(--opt); }
.coach-step { font-size: 12px; color: var(--muted); }
.coach-quit { margin-left: auto; padding: 3px 10px; font-size: 12px; }
.coach-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin: 8px 0 10px; overflow: hidden; }
.coach-bar i { display: block; height: 100%; background: var(--opt); transition: width 0.3s; }
.coach h3 { margin: 0 0 6px; font-size: 17px; }
.coach p { margin: 0; line-height: 1.65; }
.coach b { color: var(--opt); }
.coach-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; align-items: center; }
.coach-hint { font-size: 13px; color: var(--opt); font-weight: 700; animation: hint-pulse 1.4s ease-in-out infinite; }
@keyframes hint-pulse { 50% { opacity: 0.45; } }
.tut-hl { position: relative; z-index: 2; outline: 3px solid var(--opt); outline-offset: 3px; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.0), 0 0 28px rgba(255, 209, 102, 0.55); animation: tut-glow 1.6s ease-in-out infinite; }
@keyframes tut-glow { 50% { outline-color: rgba(255, 209, 102, 0.35); } }
body.in-tutorial #btn-dice { display: none; }
