/* 스쿨툴 화면 꾸미기 — 색은 :root 토큰에서만 정해요 */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --line: #e2e5ee;
  --line-strong: #c9cedb;
  --text: #191b23;
  --text-2: #4d5363;
  --text-3: #5f6677;
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --danger: #c92a2a;
  --ok: #2b8a3e;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 6px 20px rgba(20, 24, 40, .06);
  --radius: 16px;
  --radius-s: 10px;
  --font: system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  /* 도구 색 (흰 글씨와 대비 4.5:1 이상) */
  --c-seat: #237a55;
  --c-pick: #c2410c;
  --c-group: #6741d9;
  --c-timer: #1864ab;
  --c-roulette: #c2255c;
  --tc: var(--primary);
  --tc-soft: color-mix(in srgb, var(--tc) 10%, var(--surface));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12141b;
  --surface: #1b1e27;
  --surface-2: #232733;
  --line: #2e3342;
  --line-strong: #434a5e;
  --text: #f1f3f8;
  --text-2: #c3c8d6;
  --text-3: #a9afbf;
  --primary: #5b8cff;
  --primary-ink: #0d1020;
  --danger: #ff8787;
  --ok: #69db7c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --c-seat: #51cf66;
  --c-pick: #ff922b;
  --c-group: #b197fc;
  --c-timer: #4dabf7;
  --c-roulette: #f783ac;
  color-scheme: dark;
}
.c-seat { --tc: var(--c-seat); }
.c-pick { --tc: var(--c-pick); }
.c-group { --tc: var(--c-group); }
.c-timer { --tc: var(--c-timer); }
.c-roulette { --tc: var(--c-roulette); }
:root[data-theme="dark"] .c-seat, :root[data-theme="dark"] .c-pick, :root[data-theme="dark"] .c-group,
:root[data-theme="dark"] .c-timer, :root[data-theme="dark"] .c-roulette { --tc-ink: #10131c; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--primary); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.print-only { display: none; }

/* ── 머리 ── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex: none; }
.logo-ko { font-weight: 800; font-size: 1.15rem; }
.logo-en { font-size: .78rem; color: var(--text-3); font-weight: 600; }
.nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-link { white-space: nowrap; text-decoration: none; color: var(--text-2); padding: 7px 11px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; padding-bottom: 6px; }
  .nav { order: 3; flex-basis: 100%; }
  .logo { flex: 1; }
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-main { background: var(--tc); border-color: var(--tc); color: #fff; font-size: 1.08rem; padding: 10px 22px; }
.btn-main:hover { background: color-mix(in srgb, var(--tc) 88%, #000); }
:root[data-theme="dark"] .btn-main { color: var(--tc-ink, #10131c); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 38px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn-danger-text { color: var(--danger); background: transparent; border-color: transparent; align-self: flex-start; padding-left: 4px; }

/* ── 첫 화면 ── */
.hero { text-align: center; padding: 44px 16px 20px; }
.hero-kicker { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: .88rem; font-weight: 700; }
.hero h1 { font-size: clamp(1.8rem, 5.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.hl { color: var(--primary); }
.lead { color: var(--text-2); font-size: clamp(1rem, 2.2vw, 1.12rem); margin: 0 auto; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 24px 0; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); border-top: 6px solid var(--tc); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card-emoji { font-size: 2.6rem; line-height: 1.1; }
.card-title { font-size: 1.3rem; font-weight: 800; }
.card-desc { color: var(--text-2); font-size: .95rem; flex: 1; }
.card-go { color: var(--tc); font-weight: 800; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 12px; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; display: flex; flex-direction: column; }
.trust span { color: var(--text-2); font-size: .93rem; }

/* ── 도구 화면 공통 ── */
.page-head { padding: 26px 16px 14px; }
.page-head h1 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 900; margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border-top: 6px solid var(--tc); }
.tool-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.spacer { flex: 1; }
.tool-grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
}
.tool-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage { min-width: 0; background: var(--surface-2); border-radius: var(--radius-s); padding: 16px; min-height: 320px; }
.panel { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tc-soft); color: var(--tc); font-weight: 800; font-size: .85rem; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
label.inline { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
label.inline input { width: 4.5em; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--text); cursor: pointer; min-height: 32px; }
label.check input { width: 20px; height: 20px; accent-color: var(--tc); flex: none; }
.grow { flex: 1; min-width: 0; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  padding: 9px 11px; font-size: 1rem; color: var(--text); min-height: 42px;
}
textarea { resize: vertical; line-height: 1.5; min-height: 140px; }
.field-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.field-row.wrap-row { align-items: center; }
.hint { margin: 0; font-size: .87rem; color: var(--text-3); }
.privacy-note { margin: 0; font-size: .87rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); padding: 8px 10px; border-radius: 8px; }
.status { margin: 0 0 12px; font-weight: 700; color: var(--text-2); min-height: 1.6em; text-align: center; }
.status.is-bad { color: var(--danger); }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.seg label { flex: 1; flex-direction: row; justify-content: center; align-items: center; gap: 6px; padding: 9px 6px; cursor: pointer; color: var(--text); }
.seg label:has(input:checked) { background: var(--tc); color: #fff; }
:root[data-theme="dark"] .seg label:has(input:checked) { color: #10131c; }
.seg input { accent-color: var(--tc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 11px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.chip.is-on { background: var(--tc); border-color: var(--tc); color: #fff; }
:root[data-theme="dark"] .chip.is-on { color: #10131c; }
.front-pick summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.front-pick[open] summary { margin-bottom: 6px; }
.front-pick .hint { margin-bottom: 8px; }

/* ── 🪑 자리 바꾸기 ── */
.seat-room { display: flex; flex-direction: column; gap: 14px; }
.seat-room.is-flip { flex-direction: column-reverse; }
.board {
  align-self: center; width: min(70%, 520px); text-align: center; padding: 8px; border-radius: 8px;
  background: #2f5d46; color: #fff; font-weight: 800; letter-spacing: .3em; box-shadow: inset 0 0 0 4px #8b6b45;
}
.seat-grid { display: flex; flex-direction: column; gap: 10px; --seat-font: clamp(.72rem, calc((100vw - 64px) / var(--cols) / 4.6), 1.35rem); }
@media (min-width: 960px) {
  .seat-grid { --seat-font: clamp(.8rem, calc((min(100vw, 1240px) - 460px) / var(--cols) / 4.4), 1.7rem); }
}
.seat-row { display: flex; gap: clamp(6px, 1.6vw, 18px); justify-content: center; }
.desk { display: flex; gap: 3px; flex: 1 1 0; min-width: 0; max-width: 300px; }
.seat {
  flex: 1 1 0; min-width: 0; position: relative; cursor: pointer;
  min-height: 2.9em; padding: .45em .25em; border-radius: 9px; font-size: var(--seat-font);
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); font-weight: 800; line-height: 1.15;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.seat:hover { border-color: var(--tc); }
.seat-name { overflow-wrap: anywhere; }
.seat.is-empty { background: transparent; border-style: dashed; color: var(--text-3); font-weight: 500; cursor: default; }
.seat.is-empty .seat-name { font-size: .78em; }
.seat.is-pin { border-color: var(--tc); background: var(--tc-soft); }
.pin { position: absolute; top: -.55em; right: -.3em; font-size: .8em; }
.is-mixing .seat:not(.is-empty):not(.is-pin) { color: var(--text-3); }
.pop { animation: pop .35s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 🎯 이름 뽑기 ── */
.pick-stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; }
.pick-label { margin: 0; font-weight: 800; color: var(--text-2); font-size: clamp(1rem, 2.4vw, 1.4rem); }
.pick-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 1.3em; width: 100%; }
.pick-name {
  font-size: clamp(2.6rem, 10vw, 6rem); font-weight: 900; line-height: 1.2; padding: .1em .45em; border-radius: 18px;
  background: var(--surface); border: 3px solid var(--line); min-width: 2.2em; max-width: 100%;
}
.pick-names.is-many .pick-name { font-size: clamp(1.6rem, 5vw, 3.2rem); }
.pick-name.is-spin { color: var(--text-3); }
.pick-name.is-hit { border-color: var(--tc); color: var(--tc); animation: pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.pick-left { margin: 0; color: var(--text-2); font-weight: 700; }
.order-box { width: 100%; margin-top: 10px; text-align: left; }
.order-box.is-empty { display: none; }
.order-title { font-size: 1rem; color: var(--text-2); }
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.order-list li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; }
.order-list .num { display: inline-grid; place-items: center; min-width: 1.8em; height: 1.8em; border-radius: 999px; background: var(--surface-2); font-size: .85em; }
.order-list li.is-new { border-color: var(--tc); }
.order-list li.is-new .num { background: var(--tc); color: #fff; }
:root[data-theme="dark"] .order-list li.is-new .num { color: #10131c; }

/* ── 👥 모둠 나누기 ── */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.gcard { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); border-top: 8px solid var(--g); padding: 12px 14px; }
.gcard-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; color: var(--g); margin: 0 0 6px; }
.gcard-n { font-size: .85rem; color: var(--text-3); }
.gcard-list { list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 1.08rem; }
.gcard-list li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.gcard-list li:last-child { border-bottom: 0; }
.g0 { --g: #d6336c; } .g1 { --g: #1971c2; } .g2 { --g: #2b8a3e; } .g3 { --g: #e8590c; } .g4 { --g: #7048e8; }
.g5 { --g: #0c8599; } .g6 { --g: #c2255c; } .g7 { --g: #5c940d; } .g8 { --g: #9c36b5; } .g9 { --g: #a35b00; }
:root[data-theme="dark"] .g0 { --g: #f783ac; } :root[data-theme="dark"] .g1 { --g: #74c0fc; } :root[data-theme="dark"] .g2 { --g: #8ce99a; }
:root[data-theme="dark"] .g3 { --g: #ffa94d; } :root[data-theme="dark"] .g4 { --g: #b197fc; } :root[data-theme="dark"] .g5 { --g: #66d9e8; }
:root[data-theme="dark"] .g6 { --g: #faa2c1; } :root[data-theme="dark"] .g7 { --g: #c0eb75; } :root[data-theme="dark"] .g8 { --g: #e599f7; } :root[data-theme="dark"] .g9 { --g: #ffd43b; }

/* ── ⏱️ 타이머 ── */
.timer-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 12px 24px; text-align: center; }
.timer-digits {
  font-size: clamp(4.5rem, 21vw, 15rem); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.timer-digits.is-long { font-size: clamp(3.2rem, 15vw, 11rem); }
.timer-digits.is-warn { color: var(--danger); }
.timer-bar { width: min(100%, 900px); height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.timer-bar span { display: block; height: 100%; background: var(--tc); transform-origin: left; transition: transform .2s linear; }
.timer-msg { margin: 0; min-height: 1.6em; font-weight: 800; font-size: clamp(1.1rem, 3vw, 2rem); color: var(--tc); }
.presets, .timer-set { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.preset { min-width: 76px; font-size: 1.1rem; }
.preset.is-on { background: var(--tc-soft); border-color: var(--tc); color: var(--tc); }
.tool-timer .tool-bar .btn-main { min-width: 130px; }
.tool-timer.is-done .timer-stage { animation: flash 1s steps(2) 6; }
.tool-timer.is-done .timer-digits { color: var(--danger); }
@keyframes flash { 50% { background: color-mix(in srgb, var(--danger) 22%, var(--surface-2)); } }

/* ── 🎡 룰렛 ── */
.roulette-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 12px; }
.wheel-box { position: relative; width: min(100%, 560px); aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.wheel { width: 100%; height: 100%; display: block; border-radius: 50%; will-change: transform; }
.wheel-pointer {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 0; height: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--text);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.wheel-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 19%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--surface); background: var(--text); color: var(--surface);
  font-weight: 900; font-size: clamp(.9rem, 3vw, 1.5rem); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.is-spinning .wheel-center { opacity: .8; cursor: default; }
.wheel-result { margin: 0; font-size: clamp(1.4rem, 4.6vw, 2.6rem); font-weight: 900; text-align: center; min-height: 1.4em; color: var(--text-2); }
.wheel-result.is-hit { color: var(--tc); animation: pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }

/* ── 큰 화면 모드 ── */
.tool.is-stage {
  position: fixed; inset: 0; z-index: 100; border-radius: 0; border: 0; border-top: 8px solid var(--tc);
  margin: 0; overflow: auto; display: flex; flex-direction: column; padding: 12px 18px 18px;
}
body.has-stage { overflow: hidden; }
.is-stage .tool-grid { display: block; flex: 1; }
.is-stage .tool-side { display: none; }
.is-stage .stage { min-height: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.is-stage .tool-bar { margin-bottom: 10px; }
.is-stage > .stage { flex: 1; height: auto; min-height: 0; }
.is-stage .seat-grid { --seat-font: clamp(1rem, min(calc(94vw / var(--cols) / 4.2), calc((100vh - 300px) / var(--rows) / 3.2)), 4.4rem); gap: 1.2vh; }
.is-stage .seat-row { gap: 1.6vw; }
.is-stage .desk { max-width: none; }
.is-stage .board { font-size: clamp(1rem, 2.4vh, 1.8rem); padding: 1vh; }
.is-stage .status { font-size: clamp(1rem, 2.2vh, 1.6rem); }
.is-stage .pick-name { font-size: min(16vw, 26vh); }
.is-stage .pick-names.is-many .pick-name { font-size: min(7vw, 12vh); }
.is-stage .pick-label, .is-stage .pick-left { font-size: clamp(1.2rem, 3vh, 2.2rem); }
.is-stage .order-list { font-size: clamp(1rem, 2.4vh, 1.8rem); }
.is-stage .group-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.6vh; }
.is-stage .gcard-title { font-size: clamp(1.3rem, 3vh, 2.4rem); }
.is-stage .gcard-list { font-size: clamp(1.1rem, 2.7vh, 2.2rem); }
.is-stage .timer-stage { justify-content: center; gap: 2vh; padding-top: 1vh; padding-bottom: 1vh; }
.is-stage .timer-digits { font-size: min(29vw, 46vh); }
.is-stage .timer-digits.is-long { font-size: min(19vw, 40vh); }
.is-stage .wheel-box { width: min(100%, calc(100vh - 270px)); }
.is-stage .wheel-result { font-size: clamp(1.6rem, 5vh, 3.6rem); }

/* ── 설명·FAQ ── */
.content { margin-top: 36px; }
.content h2 { font-size: 1.35rem; }
.content h3 { font-size: 1.05rem; margin-top: 1.2em; }
.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: 6px; }
.keys { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
kbd { display: inline-block; min-width: 2em; text-align: center; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 3px; background: var(--surface); font-family: inherit; font-weight: 700; font-size: .9em; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; }
.faq p { margin: 0; padding: 0 16px 14px; color: var(--text-2); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.mini-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--tc); text-decoration: none; color: var(--text); font-weight: 800; }
.mini-emoji { font-size: 1.5rem; }
.legal h2 { font-size: 1.12rem; margin-top: 1.4em; }
.legal p { color: var(--text-2); }
.nf { text-align: center; }
.nf-emoji { font-size: 3.5rem; margin: 0; }

/* ── 바닥 ── */
.site-footer { margin-top: 56px; padding: 30px 0 40px; background: var(--surface); border-top: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.foot-logo { font-weight: 900; font-size: 1.1rem; color: var(--text); margin: 0; }
.foot-logo span { font-weight: 600; font-size: .85rem; color: var(--text-3); }
.foot-tag { margin: 0 0 12px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.foot-nav a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note { margin: 12px 0 0; color: var(--text-3); }
.foot-note a { color: var(--text-2); font-weight: 700; }

/* ── 알림 ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 300;
  background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 12px; font-weight: 700; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── 인쇄 (자리표) ── */
@media print {
  @page { size: landscape; margin: 12mm; }
  :root { --surface: #fff; --surface-2: #fff; --text: #000; --line-strong: #555; }
  body { background: #fff; }
  .site-header, .site-footer, .tool-bar, .tool-side, .content, .page-head .lead, .status, .skip, .toast, .ad-spot { display: none !important; }
  .tool, .stage { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .tool-grid { display: block; }
  .page-head { padding: 0 0 8px; }
  .seat-grid { --seat-font: clamp(10pt, calc(240mm / var(--cols) / 4.2), 22pt); }
  .seat { border: 1.5pt solid #333; background: #fff; break-inside: avoid; }
  .seat.is-empty { border-style: dashed; }
  .pin { display: none; }
  .board { background: #fff; color: #000; box-shadow: inset 0 0 0 2pt #000; }
  .print-only { display: block; text-align: right; margin-top: 10px; }
}
