/* 스푼 DJ 키우기 — 시즌 2 "몬스터 영토전"(2026-12-01~) 사이트: 첫 화면(views/home.js — 영토 지도·땅 순위·소식·아이디 찾기) · 몬스터 도감(views/dex.js).
   모습: 오래된 지도 종이 같은 바탕 · 먹색 글 · 붉은 밤색 강조 하나. 지도 그림(캔버스)은 밝은·어두운 화면 모두 같은 종이 색(lib/map-core.js renderMap).
   휴대폰 먼저(360~393px): 지도는 화면 높이에 맞춰 크게 두고 옆으로 밀어 본다(.s2-map-scroll). 넓은 화면(900px~)은 지도가 화면 가득, 제목 칸은 지도 위에 겹친다.
   보안 규칙(CSP)상 HTML 안의 style 속성은 쓰지 않는다 — 모양은 모두 이 파일에서(위치·색은 CSSOM 으로만). */
:root {
  color-scheme: light;
  --bg: #f1ebdf; --bg-2: #e8dfcf; --paper: #fbf7ee; --panel: #fffcf6;
  --line: rgba(60, 45, 25, .13); --line-2: rgba(60, 45, 25, .22);
  --text: #2a2219; --text-2: #5e5243; --text-3: #6b5f4f; /* 2026-11-16: #776a59 은 종이 바탕(--bg-2)에서 4.0:1 → 4.7:1 */
  --ink: #2a2219; --ink-2: #3d3226; --on-ink: #fbf7ee;
  --accent: #a8402c; --accent-2: #8e3322; --accent-text: #9a3a27; --accent-soft: rgba(168, 64, 44, .1);
  --on-accent: #fff; /* 강조색 칸(단추·배지) 위 글색 — 어두운 화면에서는 진한 글(아래) */
  --good: #2f6b34; --bad: #9a3a2a;
  --sea: #9fc0d0; --map-ink: #2a2219; --map-glow: rgb(247, 240, 222);
  --r-xl: 22px; --r-lg: 16px; --r-md: 12px; --r-sm: 9px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1180px; --gutter: 16px; --head-h: 56px;
  --shadow: 0 1px 2px rgba(42, 34, 25, .06), 0 18px 40px -22px rgba(42, 34, 25, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rare: #7a5806; --rare-soft: rgba(184, 134, 11, .15); --rare-line: rgba(184, 134, 11, .38);
}
@media (prefers-color-scheme: dark) {
  /* 예고 화면(html.s2-teaser — 12/1 0시 전)에는 걸지 않는다: 예고는 늘 자기 어두운 색(#07080f) — 2026-11-21 고침 1회차 I1 */
  :root:not([data-theme="light"]):not(.s2-teaser) {
    color-scheme: dark;
    --bg: #15120e; --bg-2: #1d1914; --paper: #201b15; --panel: #231e18;
    --line: rgba(240, 225, 200, .12); --line-2: rgba(240, 225, 200, .22);
    --text: #efe6d6; --text-2: #c4b6a2; --text-3: #a39580;
    --ink: #efe6d6; --ink-2: #ffffff; --on-ink: #1a1611;
    --accent: #e0805f; --accent-2: #f0957a; --accent-text: #f0957a; --accent-soft: rgba(224, 128, 95, .14);
    --on-accent: #1a1611; /* 밝은 강조색 위 흰 글은 2.3~2.8:1 이라 진한 글(6.4~8:1) — 2026-11-16 점검 */
    --good: #8fd39a; --bad: #f19a86;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
    --rare: #ecc75d; --rare-soft: rgba(214, 165, 29, .16); --rare-line: rgba(214, 165, 29, .4);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color: var(--text); scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: -.01em; background: var(--bg); color: var(--text); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(168, 64, 44, .22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.boot, .boot-error { padding: 48px 20px; text-align: center; color: var(--text-2); }
[hidden] { display: none !important; }
main { display: block; outline: none; }

/* ---------- 읽기 좋은 줄바꿈(2026-11-23 — 예고·시즌 2 화면 함께) ----------
   · 낱말은 통째로(keep-all) — 한 줄보다 긴 낱말만 넘칠 때 그 안에서 끊는다(break-word: 예전 anywhere 는 좁은 칸의 크기 계산에도 끼어 칸이 낱말보다 좁아질 수 있었다).
   · 제목은 줄 길이를 고르게(balance), 글은 끝줄에 낱말 하나만 남지 않게(pretty). 모르는 브라우저는 예전처럼 줄을 바꾼다.
   · .ln = 문장 한 줄(lib/dom.js lines — 문장마다 새 줄, 줄 사이 조금 띄움) · .ph = 함께 읽는 말 묶음(lib/dom.js ph·dots — 묶음째 다음 줄로) */
h1, h2, h3, h4, .sec-title { text-wrap: balance; }
p, li, figcaption, small, .note { text-wrap: pretty; }
.ln { display: block; }
.ln + .ln { margin-top: .4em; }
.ph { display: inline-block; }

/* ---------- 작은 조각 ---------- */
.note { margin: 0; font-size: 13px; color: var(--text-2); }
.empty { margin: 0; padding: 26px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; font-size: 14px; color: var(--text-2); }
.kg-cmd { font-family: inherit; font-weight: 700; font-size: .92em; padding: 1px 7px; border-radius: 7px; background: rgba(120, 95, 60, .12); color: var(--text); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-line { background: var(--panel); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; color: var(--text-2); font-size: 14px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid rgba(168, 64, 44, .35); background: var(--accent-soft); }
.error-box p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000; transform: translate(-50%, 16px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { background: var(--bad); color: var(--on-accent); }

/* ---------- 맨 위: 공지 · 비공식 한 줄 · 머리줄 ---------- */
.kg-topnote { background: var(--ink); color: var(--on-ink); }
.kg-topnote-in { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 10px; }
.kg-topnote-tag { flex: none; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.kg-topnote-text { margin: 0; flex: 1; font-size: 14px; font-weight: 600; }
.kg-topnote-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.kg-unofficial { margin: 0; padding: 5px var(--gutter); text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.fp-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.fp-top-in { max-width: var(--wrap); margin: 0 auto; height: var(--head-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -.03em; min-width: 0; }
.fp-brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); flex: none; }
.fp-logo.small { width: 24px; height: 24px; border-radius: 7px; }
.fp-actions { display: flex; align-items: center; gap: 4px; }
.fp-nav { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.fp-nav:hover, .fp-nav[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.fp-nav.icon-only { padding: 0; width: 40px; justify-content: center; }
@media (max-width: 430px) { .fp-nav:not(.icon-only) span { display: none; } .fp-nav:not(.icon-only) { padding: 0; width: 40px; justify-content: center; } }

/* ---------- 바닥글 ---------- */
.fp-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-2); }
.fp-foot-in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.fp-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fp-foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.fp-foot-links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.fp-foot-links a { text-decoration: none; }
.fp-foot-links a:hover { text-decoration: underline; }
.fp-foot-note, .fp-foot-legal { margin: 0; font-size: 13px; color: var(--text-2); }
.fp-foot-legal { color: var(--text-3); }

/* ---------- 칸 제목 ---------- */
.kg-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kg-sec-titles { min-width: 0; }
.sec-title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.035em; }
.kg-sec-titles p { margin: 3px 0 0; font-size: 14px; color: var(--text-2); }

/* ---------- 첫 화면: 영토 지도 ---------- */
.s2-home > section, .s2-dex > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.s2-home > .s2-map-hero { max-width: none; padding: 12px var(--gutter) 0; }
.s2-map-wrap { position: relative; max-width: 1600px; margin: 0 auto; }
.s2-map-head { padding: 6px 2px 12px; display: grid; gap: 3px; }
.s2-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--accent-text); }
.s2-title { margin: 0; font-size: clamp(28px, 7.4vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -.055em; }
.s2-clock { margin: 4px 0 0; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.s2-prize { margin: 0; display: flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.s2-prize svg { flex: none; margin-top: 2px; color: #b8860b; }
.s2-stamp { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.s2-stamp.is-error { color: var(--bad); font-weight: 700; }
.s2-map-frame { position: relative; }
.s2-map-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--r-lg); box-shadow: var(--shadow); scrollbar-width: thin; }
.s2-map-stage { position: relative; container-type: inline-size; width: max(100%, calc(min(60svh, 560px) * 1.6)); aspect-ratio: 120 / 75; background: var(--sea); overflow: hidden; }
.s2-map-stage.has-art { background: #c9e3f2; }
.s2-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.s2-canvas.is-front { opacity: 1; }
.s2-labels { position: absolute; inset: 0; pointer-events: none; }
.s2-label { position: absolute; transform: translate(-50%, -50%); text-align: center; color: var(--map-ink); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap;
  text-shadow: 0 0 2px var(--map-glow), 0 0 5px rgba(247, 240, 222, .95), 0 0 9px rgba(247, 240, 222, .7); transition: left .6s var(--ease), top .6s var(--ease), translate .3s ease; }
.s2-label b { display: block; font-weight: 900; }
.s2-label small { display: block; margin-top: 2px; font-size: max(12px, 1.45cqi); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.s2-label.up small { color: #2f6b34; }
.s2-label.down small { color: #9a3a2a; }
.s2-label.is-tight small { display: none; }
.s2-label.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { scale: 1; } 30% { scale: 1.35; } 60% { scale: 1.1; } }
.s2-col { position: absolute; transform: translate(-50%, -50%); font-size: max(12px, 1.2cqi); font-weight: 700; line-height: 1.25; color: #3a2f22; background: rgba(247, 240, 222, .86); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.s2-col.is-hidden { visibility: hidden; }
.s2-map-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.s2-map-overlay-in { max-width: 420px; display: grid; gap: 6px; text-align: center; padding: 16px 20px; border-radius: var(--r-lg); background: rgba(251, 247, 238, .9); color: #2a2219; box-shadow: 0 10px 30px -18px rgba(42, 34, 25, .6); }
.s2-map-overlay-in b { font-size: clamp(17px, 2.4vw, 26px); font-weight: 900; letter-spacing: -.04em; }
.s2-map-overlay-in span { font-size: 14px; color: #5e5243; }
.s2-under { max-width: 1600px; margin: 10px auto 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.s2-pan-hint { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.s2-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); }
.s2-legend li { display: inline-flex; align-items: center; gap: 6px; }
.s2-legend i, .s2-dot { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.lg-wild { background: rgb(206, 213, 170); }
.lg-dj { background: rgba(227, 73, 72, .55); }
.lg-col { background: repeating-linear-gradient(135deg, rgba(31, 138, 46, .6) 0 3px, rgba(227, 73, 72, .6) 3px 7px); }
.lg-cap { background: linear-gradient(transparent 35%, rgba(227, 73, 72, .9) 35%); border-radius: 2px; }
.s2-head-a, .s2-head-b { display: grid; gap: 3px; min-width: 0; }
@media (min-width: 900px) {
  /* 넓은 화면: 제목 줄(왼쪽 제목 · 오른쪽 남은 날·상) 바로 아래 지도 — 제목이 DJ 땅을 가리지 않게 지도 위에 겹치지 않는다.
     지도가 화면 가득: 화면 높이(머리줄·제목 줄·아래 줄 빼고)에 맞춘 너비, 화면보다 넓어지지 않게 */
  .s2-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 2px 2px 12px; }
  .s2-head-b { justify-items: end; text-align: right; }
  .s2-title { font-size: 38px; }
  .s2-map-wrap, .s2-under { width: clamp(min(720px, 100%), calc((100svh - var(--head-h) - 170px) * 1.6), 100%); }
  .s2-map-scroll { overflow: hidden; }
  .s2-map-stage { width: 100%; }
  .s2-pan-hint { display: none; }
}

/* 땅 순위 · 소식 */
.s2-board { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 860px) { .s2-board { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.s2-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; min-width: 0; }
.s2-rank { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; }
.s2-rank-row { width: 100%; display: grid; grid-template-columns: 22px 13px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: transparent; text-align: left; font-variant-numeric: tabular-nums; }
button.s2-rank-row:hover { background: var(--accent-soft); }
.s2-rank-row.is-top { background: rgba(184, 134, 11, .1); }
.s2-rank-n { font-weight: 800; color: var(--text-3); text-align: center; }
.is-top .s2-rank-n { color: var(--rare); } /* 1등 번호: #b8860b 은 밝은 화면에서 3.2:1 */
.s2-rank-name { min-width: 0; display: grid; }
.s2-rank-name b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-rank-name small { font-size: 12px; color: var(--text-2); }
.s2-rank-pct { font-weight: 900; font-size: 17px; letter-spacing: -.03em; }
.s2-rank .is-wild { color: var(--text-2); }
.s2-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.s2-feed li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.s2-feed li:last-child { border-bottom: 0; }
.s2-feed time { flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.s2-feed .is-empty { color: var(--text-2); }

/* 아이디 찾기 */
/* 시즌 1 주소로 왔을 때 찾기 칸 맨 위 안내 + 이 브라우저에 저장한 내 아이디(views/home.js oldNote — 2026-11-16 점검 S2) */
.s2-oldnote { display: grid; gap: 6px; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); background: var(--panel); }
.s2-oldnote p { margin: 0; font-size: 14px; color: var(--text-2); }
.s2-oldnote .s2-oldnote-title { font-size: 16px; font-weight: 800; color: var(--text); }
.s2-oldnote-me { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.s2-oldnote-id { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; text-decoration: none; }
.s2-oldnote-id:hover { text-decoration: underline; }
.s2-find { margin-top: 40px; scroll-margin-top: calc(var(--head-h) + 12px); }
.s2-find-form { display: flex; flex-wrap: wrap; gap: 8px; }
.s2-input-wrap { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--text-2); }
.s2-input-wrap:focus-within { border-color: var(--accent); }
.s2-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.s2-find-out { margin-top: 16px; }
.s2-find-count { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.s2-people { display: grid; gap: 14px; }
@media (min-width: 760px) { .s2-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s2-person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.s2-person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.s2-person-id { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -.035em; }
.s2-person-dj { margin: 0; font-size: 13px; color: var(--text-2); }
.s2-lead { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-lg); background: var(--bg-2); }
.s2-lead-text { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.s2-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.s2-mon-name { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.035em; }
.s2-mon-stat { margin: 0; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.s2-mon-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.s2-mon-row { display: flex; align-items: center; gap: 10px; }
.s2-mon-row-text { flex: 1; min-width: 0; display: grid; }
.s2-mon-row-text b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-mon-row-text small { font-size: 12px; color: var(--text-2); }

/* 몬스터 그림 · 자리 그림(속성 색 동그라미) */
.t-fire { --tc: #e2603a; } .t-water { --tc: #3b86d1; } .t-grass { --tc: #4c9a45; } .t-earth { --tc: #a2733f; } .t-wind { --tc: #5aa99b; } .t-electric { --tc: #d6a51d; } .t-none { --tc: #8a8172; }
.mon-art { position: relative; flex: none; display: inline-grid; place-items: center; aspect-ratio: 1; width: 88px; }
.mon-art.mon-s { width: 46px; }
.mon-art.mon-l { width: 128px; }
.mon-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(42, 34, 25, .18)); }
.mon-art.is-shadow img { filter: brightness(0); opacity: .2; }
.mon-ph-ball { position: relative; display: grid; place-items: center; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55) 0 11%, rgba(255, 255, 255, 0) 12%), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tc) 82%, #fff) 0%, var(--tc) 70%, color-mix(in srgb, var(--tc) 70%, #000) 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 6px 14px -8px rgba(42, 34, 25, .6); }
.mon-ph-mark { font-size: 32px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.mon-s .mon-ph-mark { font-size: 17px; }
.mon-l .mon-ph-mark { font-size: 48px; }
.mon-ph-pips { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: 3px; }
.mon-ph-pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(42, 34, 25, .18); }
.mon-ph-pips i.on { background: var(--tc); box-shadow: 0 0 0 1.5px var(--panel); }
.mon-s .mon-ph-pips { display: none; }
.mon-ph-pips.boss i { width: 22px; height: 7px; border-radius: 4px; background: #b8860b; }
.is-boss .mon-ph-ball { border-radius: 38% 38% 46% 46%; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 0 0 3px rgba(184, 134, 11, .55), 0 8px 18px -8px rgba(42, 34, 25, .7); }
.mon-art.is-shadow.is-ph .mon-ph-ball { background: rgba(120, 105, 85, .22); box-shadow: none; }
.mon-art.is-shadow.is-ph .mon-ph-mark { opacity: .25; filter: grayscale(1); }
.mon-soon { margin: 0; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.mon-type { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  background: color-mix(in srgb, var(--tc) 17%, transparent); color: color-mix(in srgb, var(--tc) 62%, var(--text)); }

/* 땅을 넓히는 법 */
.s2-how { margin-top: 44px; }
.s2-how-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.s2-how-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; display: grid; gap: 6px; align-content: start; }
.s2-how-card h3 { margin: 4px 0 0; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.s2-how-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.s2-how-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.s2-cmds { margin-top: 14px; background: var(--bg-2); border-radius: var(--r-xl); padding: 16px 18px; }
.s2-cmds h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.s2-cmds ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.s2-cmds li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-2); }
.s2-ring-line { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s2-ring-line.big .mon-type { font-size: 14.5px; padding: 4px 12px; }
.s2-ring-arrow { color: var(--text-3); font-weight: 800; }

/* ---------- 몬스터 도감 ---------- */
.s2-page-head { padding-top: 24px; padding-bottom: 8px; }
.s2-page-title { margin: 2px 0 4px; font-size: clamp(30px, 7vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -.055em; }
.s2-page-sub { margin: 0; font-size: 15px; color: var(--text-2); }
.s2-dex-who { margin-top: 14px; }
.s2-dex-banner { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: var(--r-xl); background: var(--bg-2); }
.s2-dex-banner p { margin: 0; }
.s2-dex-banner.is-me { background: var(--accent-soft); }
.s2-dex-form .note { flex-basis: 100%; }
.s2-dex-body { margin-top: 20px; display: grid; gap: 22px; }
.s2-type { padding-top: 6px; border-top: 1px solid var(--line); }
.s2-type-head { display: grid; gap: 2px; margin: 10px 0 12px; }
.s2-type-head p { margin: 0; font-size: 14px; color: var(--text-2); }
.s2-walk { display: inline-flex; align-items: center; gap: 6px; }
.s2-species { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.s2-sp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.s2-sp h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.s2-sp.is-unmet h3 { color: var(--text-3); }
.s2-stages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s2-stages li { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.s2-stages b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.s2-stages small { font-size: 12px; color: var(--text-3); }
.s2-stages li.is-off b { color: var(--text-3); }
.s2-sp-me { margin: 0; font-size: 12px; font-weight: 800; color: var(--good); }
.s2-sp.is-boss { background: linear-gradient(160deg, rgba(184, 134, 11, .1), transparent 60%), var(--panel); }
.s2-boss-row { display: flex; align-items: center; gap: 14px; }
.s2-boss-row p { margin: 0 0 4px; font-size: 14px; }
.s2-ring { margin-top: 4px; }
.s2-ring .s2-ring-line { margin: 0 0 10px; }
.s2-growth-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.s2-growth-list li { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); font-size: 14px; }
.s2-growth-list b { font-weight: 800; }
.s2-growth-list span { color: var(--text-2); font-size: 13px; }
/* 대륙 이야기 · 드문 몬스터 · 설화(2026-11-15 몬스터 이름·그림·설화 확정) */
.s2-intro-wrap { margin-top: 16px; }
.s2-intro { padding: 14px 18px 15px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper); }
.s2-intro-title { margin: 0 0 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent-text); }
.s2-intro-text { margin: 0; max-width: 68ch; font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.s2-sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.s2-sp.is-rare { border-color: var(--rare-line); }
.s2-rare { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--rare-soft); color: var(--rare); }
.s2-chips { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.s2-lore { border-top: 1px solid var(--line); }
.s2-lore > summary { display: flex; align-items: center; gap: 6px; min-height: 42px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; color: var(--accent-text); border-radius: var(--r-sm); -webkit-tap-highlight-color: transparent; }
.s2-lore > summary::-webkit-details-marker { display: none; }
.s2-lore > summary::after { content: ""; margin-left: auto; margin-right: 4px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.s2-lore[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.s2-lore > summary:hover { color: var(--accent-2); }
.s2-lore-mark { font-size: 15px; line-height: 1; }
.s2-lore-in { display: grid; gap: 10px; padding: 0 0 4px; }
.s2-lore-text { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text); }
.s2-lore-stages { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.s2-lore-stages li { padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-2); }
.s2-lore-stage { margin: 0 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.s2-lore-stage b { font-size: 13.5px; font-weight: 800; }
.s2-lore-stage small { font-size: 12px; color: var(--text-3); }
.s2-lore-dex { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.s2-lore-stages li.is-off b, .s2-lore-stages li.is-off .s2-lore-dex { color: var(--text-3); }
.s2-lore-locked { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  .s2-canvas, .s2-label, .toast, .btn, .s2-lore > summary::after { transition: none; }
  .s2-label.flash, .spinner { animation: none; }
}

/* ---------- 보스전 보기(2026-11-19): 첫 화면 띠 · 목록(/boss) · 보는 화면(/boss/<번호> · /b/<DJ 주소>) ----------
   스푼 앱 안 창(아이폰 WKWebView · 갤럭시 WebView, 360~412px 세로)에서 먼저 잘 보이게. 틀·상자 없이 — 줄은 가는 금 하나로만 나눈다.
   손가락으로 누르는 것은 44px 이상, 마우스를 올려야만 보이는 것은 없다(눌렀을 때 :active 만). */
/* 첫 화면 띠: 판이 있을 때만(hidden) — 제목 한 줄 + 3개까지 */
.s2-home > .s2-boss-strip { max-width: 1600px; }
.s2-boss-strip { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.s2-boss-h { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.s2-boss-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; min-width: 0; }
.s2-boss-item { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; text-decoration: none; font-size: 14px; color: var(--text-2); }
.s2-boss-item b { font-weight: 800; color: var(--text); white-space: nowrap; }
.s2-boss-item span { white-space: nowrap; }
.s2-boss-item .s2-boss-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.s2-boss-list li { min-width: 0; }
.s2-boss-item em { font-style: normal; font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.s2-boss-item.is-more { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.s2-boss-item:active { opacity: .6; }
.s2-boss-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.s2-boss-dot.is-fight { background: #d8342c; animation: bv-blink 1.2s steps(2, jump-none) infinite; }
@keyframes bv-blink { 50% { opacity: .25; } }
@media (max-width: 560px) { .s2-boss-strip { display: grid; grid-template-columns: 1fr auto; } .s2-boss-list { display: grid; grid-column: 1 / -1; grid-row: 2; } }

/* 목록(/boss) — 사이트 종이 바탕 그대로 */
.bl { max-width: 720px; margin: 0 auto; padding: 22px var(--gutter) 0; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.bl-head { margin-bottom: 14px; }
.bl-title { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.15; font-weight: 900; letter-spacing: -.05em; }
.bl-head p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.bl-list { margin: 0; padding: 0; list-style: none; }
.bl-list li + li { border-top: 1px solid var(--line); }
.bl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 68px; padding: 8px 2px; text-decoration: none; }
.bl-row:active { opacity: .6; }
.bl-row > svg { color: var(--text-3); }
.bl-boss { width: 52px; height: 52px; object-fit: contain; }
.bl-text { min-width: 0; display: grid; }
.bl-text b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-text small { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.bl-text small span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bl-phase { font-size: 13px; font-weight: 800; color: var(--text-2); white-space: nowrap; }
.bl-phase.is-fight { color: var(--accent-text); }
.bl-empty { display: grid; gap: 4px; padding: 44px 0 36px; }
.bl-empty b { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.bl-empty span { font-size: 15px; color: var(--text-2); }
.bl-note { margin-top: 12px; min-height: 1.6em; }

/* 보는 화면 — 어두운 바탕(장면의 먹보라), 장면이 맨 위에 폭 가득. 바닥글까지 같은 어두운 색 */
body[data-route="watch"], body[data-route="live"] {
  color-scheme: dark;
  --bg: #0d0a10; --bg-2: #0d0a10; --paper: #17111b; --panel: #17111b;
  --line: rgba(255, 241, 214, .12); --line-2: rgba(255, 241, 214, .26);
  --text: #fff1d6; --text-2: #d9b8c4; --text-3: #a78d9a; --ink: #fff1d6; --on-ink: #0d0a10;
  --accent: #ff7a2f; --accent-2: #ff9a5a; --accent-text: #ffb37a; --accent-soft: rgba(255, 122, 47, .16);
  background: #0d0a10;
}
html:has(body[data-route="watch"]), html:has(body[data-route="live"]) { background: #0d0a10; }
.bv { min-height: 100vh; min-height: 100dvh; padding-top: env(safe-area-inset-top); background: #0d0a10; color: #fff1d6; }
.bv-stage { position: relative; overflow: hidden; }
.bv-host { position: relative; min-height: 180px; }
.bv-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.bv[data-state="gone"] .bv-host, .bv[data-state="broken"] .bv-host { height: auto !important; min-height: min(46vh, 340px); }
/* 장면 대신(기다림 · 없는 판) 또는 장면이 뜨기 전의 글 — 가운데 */
.bv-msg { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); text-align: center; pointer-events: none; }
.bv-msg:empty { display: none; }
.bv-msg b { font-size: clamp(19px, 5.6vw, 26px); font-weight: 900; letter-spacing: -.04em; line-height: 1.3; }
.bv-msg span { font-size: 15px; color: #d9b8c4; }
.bv-msg small { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #5ef0b4; }
.bv-msg small:empty { display: none; }
.bv-retry { pointer-events: auto; margin-top: 12px; min-height: 48px; background: #ffd24a; color: #1a0b1e; }
.bv-retry:active { transform: scale(.97); }
.bv-msg small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: bv-blink 1.2s steps(2, jump-none) infinite; }
.bv[data-state="loading"] .bv-host { background: radial-gradient(120% 60% at 50% 100%, #1d1220 0, #0d0a10 70%); }
.bv[data-state="wait"] .bv-host { background: radial-gradient(120% 60% at 50% 100%, #24142a 0, #0d0a10 70%); }
/* 소리를 켰을 때 한 줄(장면 아래쪽에 잠깐) */
.bv-note { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 999px; background: rgba(13, 10, 16, .86); color: #fff1d6; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
/* 장면 바로 아래: 보스 이름 · 상태 · 소리 단추(스크롤 없이 보임) */
.bv-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.bv-text { min-width: 0; display: grid; gap: 1px; }
.bv-boss { margin: 0; font-weight: 700; font-family: "Galmuri11", var(--font); font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-status { margin: 0; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; line-height: 1.5; color: #d9b8c4; }
.bv-status b { font-weight: 800; color: #fff1d6; }
.bv-status em { font-style: normal; font-weight: 800; color: #5ef0b4; }
.bv[data-state="fight"] .bv-status em { color: #ff8a6a; }
.bv[data-state="done"] .bv-status em { color: #ffd24a; }
.bv-sound { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 48px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 241, 214, .1); color: #fff1d6; font-size: 14px; font-weight: 800; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bv-sound-ic { display: grid; }
.bv-sound[aria-pressed="true"] { background: #ffd24a; color: #1a0b1e; }
.bv-sound:active:not(:disabled) { transform: scale(.96); }
.bv-sound:disabled { opacity: .4; }
.bv[data-state="gone"] .bv-sound, .bv[data-state="broken"] .bv-sound, .bv[data-state="retry"] .bv-sound { display: none; }
.bv-sound:focus-visible, .bv a:focus-visible { outline: 2px solid #ffd24a; outline-offset: 3px; }
@media (max-width: 339px) { .bv-sound span:last-child { display: none; } .bv-sound { padding: 0; } }
/* 아래로 내리면: 지금 다른 보스전 · 바로 가기 */
.bv-more { max-width: 760px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); display: grid; gap: 16px; }
.bv-h { margin: 0 0 4px; font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
.bv-list .bl-phase.is-fight { color: #ff8a6a; }
.bv-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bv-links .btn { min-height: 44px; background: transparent; color: #fff1d6; border-color: rgba(255, 241, 214, .26); }
.bv-links .btn:active { opacity: .6; }
.bv-unofficial { margin: 0; font-size: 12px; color: #a78d9a; }
body[data-route="watch"] .fp-foot, body[data-route="live"] .fp-foot { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .s2-boss-dot.is-fight, .bv-msg small::before { animation: none; } }

/* ===== 아래는 예고 화면(2026-12-01 0시 전까지 — html.s2-teaser 일 때만). 12월 1일이 지나 예고를 걷어낼 때 여기부터 끝까지 지운다. ===== */
/* 시즌 2 예고 — 어두운 게임 티저(2026-11-15 새로 그림). 시즌 1 화면 스타일은 위에 그대로 두고 html.s2-teaser 에만 적용한다. */
html.s2-teaser {
  color-scheme: dark;
  --bg: #07080f; --text: #ece6d6; --ink: #ece6d6; --text-2: #a49e8f; --on-ink: #07080f;
  --tz-bg2: #0c0f1c; --tz-panel: rgba(255, 255, 255, .035); --tz-line: rgba(255, 214, 140, .16); --tz-line-2: rgba(255, 255, 255, .08);
  --tz-gold: #f2c46a; --tz-gold-2: #ffe2a3; --tz-gold-3: #b8862f; --tz-ember: #ff7a3d; --tz-red: #ff4b3e; --tz-dim: #8f8a7d;
  --fire: #ff6b3d; --water: #46a8ff; --grass: #52d48a; --earth: #d29a52; --wind: #7fe3d6; --electric: #ffd23f;
  --sea: #9fc0d0; --map-ink: #2a2219; --map-glow: rgb(247, 240, 222); --ease: cubic-bezier(.2, .7, .2, 1);
  scroll-behavior: smooth; scroll-padding-top: 64px; background: var(--bg);
}
.s2-teaser body { font-size: 16px; background:
  radial-gradient(1200px 700px at 80% -10%, rgba(255, 150, 60, .10), transparent 60%),
  radial-gradient(900px 600px at -10% 30%, rgba(80, 110, 255, .08), transparent 60%), var(--bg); color: var(--text); overflow-x: hidden; }
.s2-teaser p, .s2-teaser h1, .s2-teaser h2, .s2-teaser h3, .s2-teaser figure, .s2-teaser ol, .s2-teaser ul { margin: 0; }
.s2-teaser ol, .s2-teaser ul { padding: 0; list-style: none; }
.s2-teaser main { outline: none; }
/* 링크 글색은 맨 위 기본(a { color: inherit })을 그대로 쓴다 — 예전 .s2-teaser a { color: inherit } 는 금색 단추(.tz-btn-gold)·건너뛰기 링크(.skip)의 글색까지 덮어써 글이 바탕에 묻혔다(2026-11-16 점검 S1). */
.s2-teaser ::selection { background: var(--tz-gold); color: #120d05; }
/* 기본 키보드 초점 테두리는 지금 예고처럼 밝은 글색(--ink) — 맨 위 공용 규칙은 시즌 2 강조색(--accent)이라 예고에서 바뀌던 것(2026-11-21 고침 1회차 M1). :where 라 우선순위는 공용 규칙과 같고 금색 단추 등 자기 규칙이 있는 것은 그대로 */
:where(.s2-teaser) :focus-visible { outline-color: var(--ink); }

/* 맨 위 비공식 줄 · 머리줄 */
.tz-unofficial { padding: 6px 16px; text-align: center; font-size: 12px; font-weight: 600; background: #020205; color: #8d8778; border-bottom: 1px solid var(--tz-line-2); }
.tz-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 max(20px, env(safe-area-inset-left)); transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.tz-top.is-solid { background: rgba(7, 8, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--tz-line-2); }
.tz-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 21px; font-weight: 900; letter-spacing: -.05em; }
.tz-brand i { width: 14px; height: 14px; rotate: 45deg; border-radius: 3px; background: linear-gradient(135deg, var(--tz-gold-2), var(--tz-gold-3)); box-shadow: 0 0 14px rgba(242, 196, 106, .7); }
.tz-brand small { font-size: 13px; font-weight: 700; color: var(--tz-dim); letter-spacing: 0; margin-left: -6px; }
.tz-edition { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #d9d1bd; }
/* 시즌 표시는 단추처럼 보이지 않게 얇은 테두리만(누르는 곳이 아니다 — S10) */
.tz-edition b { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: var(--tz-gold-2); border: 1px solid rgba(242, 196, 106, .45); }

/* 예전 주소(시즌 1 캐릭터·DJ 페이지 k/…, 옷 도감 items)로 왔을 때 맨 위 안내(views/teaser.js oldNote — S2) */
.tz-oldnote { padding: 12px 18px 0; }
.tz-oldnote-in { max-width: 760px; margin: 0 auto; display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 214, 140, .4); border-left-width: 4px; background: rgba(255, 196, 90, .08); }
.tz-oldnote strong { font-size: 16px; font-weight: 900; color: var(--tz-gold-2); }
.tz-oldnote p { font-size: 14px; line-height: 1.7; color: #e8dfc8; }
.tz-oldnote-me { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 6px; border-top: 1px solid var(--tz-line-2); }
.tz-oldnote-me b { padding: 1px 8px; border-radius: 6px; background: rgba(242, 196, 106, .16); color: #fff3d4; font-weight: 800; }

/* ---------- 첫 화면 ---------- */
.tz-hero { position: relative; overflow: hidden; padding: 28px 18px 84px; min-height: calc(100svh - 84px); isolation: isolate; }
.tz-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* 큰 빛 셋: 흐림 필터·끝없는 움직임 없이 그라데이션만(휴대폰 부담 — S9) */
.tz-sky i { position: absolute; border-radius: 50%; opacity: .55; }
.tz-glow-a { width: 70vmax; height: 50vmax; left: 30%; top: -20%; background: radial-gradient(circle, rgba(255, 120, 40, .55), transparent 65%); }
.tz-glow-b { width: 50vmax; height: 40vmax; left: -20%; bottom: -10%; background: radial-gradient(circle, rgba(70, 90, 255, .35), transparent 65%); }
.tz-glow-c { width: 40vmax; height: 30vmax; right: -15%; bottom: 0; background: radial-gradient(circle, rgba(200, 40, 60, .35), transparent 65%); }
.tz-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }

.tz-embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tz-embers i { position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 10px 2px rgba(255, 140, 40, .75); opacity: 0; animation: tz-rise 9s linear infinite; }
/* 불씨 10개(예전 18 — S9) */
.tz-embers i:nth-child(1) { left: 5%; animation-delay: 0s; } .tz-embers i:nth-child(2) { left: 14%; animation-delay: 2.4s; animation-duration: 11s; }
.tz-embers i:nth-child(3) { left: 24%; animation-delay: 5.1s; width: 3px; height: 3px; } .tz-embers i:nth-child(4) { left: 33%; animation-delay: 1.2s; animation-duration: 12s; }
.tz-embers i:nth-child(5) { left: 43%; animation-delay: 6.6s; } .tz-embers i:nth-child(6) { left: 52%; animation-delay: 3.3s; width: 5px; height: 5px; animation-duration: 10s; }
.tz-embers i:nth-child(7) { left: 62%; animation-delay: 7.8s; } .tz-embers i:nth-child(8) { left: 72%; animation-delay: .7s; animation-duration: 13s; width: 3px; height: 3px; }
.tz-embers i:nth-child(9) { left: 82%; animation-delay: 4.2s; } .tz-embers i:nth-child(10) { left: 92%; animation-delay: 8.4s; animation-duration: 11s; }
@keyframes tz-rise { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 10% { opacity: .9; } 70% { opacity: .55; } 100% { opacity: 0; transform: translate(40px, -100vh) scale(.4); } }

.tz-hero-in { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; display: grid; gap: 34px; }
.tz-hero-copy { display: grid; justify-items: center; text-align: center; gap: 0; }
/* 제목 위 영어 머리글(KIUGI · SEASON 2)은 바로 아래 「키우기 시즌 2」와 같은 말이라 뺐다(영어 꾸밈은 COMING SOON 한 곳만 — S8) */
.tz-hero h1 { display: grid; }
.tz-h1-pre { font-size: clamp(17px, 4.6vw, 24px); font-weight: 800; letter-spacing: -.02em; color: #e7dcc2; }
.tz-h1-main { margin-top: 6px; font-size: clamp(66px, 19vw, 132px); line-height: .9; font-weight: 900; letter-spacing: -.075em;
  background: linear-gradient(180deg, #fff6dd 0%, #ffd98a 38%, #e09a35 72%, #8a4d14 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 150, 50, .32)) drop-shadow(0 6px 0 rgba(60, 25, 0, .55)); padding: 0 .06em .04em; }
.tz-coming { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: clamp(13px, 3.4vw, 16px); font-weight: 800; letter-spacing: .55em; color: #fff; text-indent: .55em; }
.tz-coming::before, .tz-coming::after { content: ''; width: 34px; height: 1px; background: rgba(255, 255, 255, .45); }
.tz-tagline { margin-top: 18px; font-size: clamp(15px, 3.9vw, 18px); line-height: 1.65; color: #cfc6b1; font-weight: 500; }
.tz-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(100%, 440px); margin-top: 26px; }
.tz-countdown[hidden] { display: none; }
.tz-time { position: relative; display: grid; justify-items: center; padding: 12px 4px 9px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--tz-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 30px -18px rgba(0, 0, 0, .9); }
.tz-time strong { font-size: clamp(32px, 9.5vw, 50px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 22px rgba(255, 200, 120, .35); }
.tz-time span { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--tz-gold); }
.tz-time + .tz-time::before { content: ':'; position: absolute; left: -7px; top: 13px; font-size: 22px; font-weight: 800; color: rgba(255, 214, 140, .45); }
.tz-open { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; margin-top: 14px; font-size: 13px; color: var(--tz-dim); }
.tz-open time { font-weight: 800; color: #efe5cd; letter-spacing: .04em; }
/* 청취자가 할 일 한 줄(S3) */
.tz-how { max-width: 30em; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 214, 140, .06); border: 1px solid var(--tz-line); font-size: 15px; line-height: 1.6; font-weight: 600; color: #ece3cc; }
.tz-how code { padding: 1px 7px; border-radius: 6px; background: rgba(242, 196, 106, .16); color: var(--tz-gold-2); font-weight: 800; font-family: inherit; white-space: nowrap; }
.tz-started { margin-top: 24px; padding: 14px 26px; border-radius: 999px; font-size: 22px; font-weight: 900; color: #160f04; background: linear-gradient(135deg, var(--tz-gold-2), var(--tz-gold)); }
.tz-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.tz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.02em; transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease; }
.tz-btn-gold { color: #1b1206; background: linear-gradient(180deg, #ffe7ad, #f2c46a 55%, #d69a3c); box-shadow: 0 0 0 1px rgba(255, 230, 170, .6) inset, 0 10px 30px -8px rgba(255, 160, 60, .6); }
.tz-btn-ghost { color: #efe5cd; border: 1px solid rgba(255, 214, 140, .35); background: rgba(255, 255, 255, .03); }
.tz-btn:hover { transform: translateY(-2px); }
.tz-btn:focus-visible, .tz-war-toggle:focus-visible, .tz-retry:focus-visible, .tz-brand:focus-visible { outline: 2px solid var(--tz-gold-2); outline-offset: 3px; }

/* 전쟁 지도 */
.tz-war { position: relative; }
.tz-war-frame { position: relative; padding: 7px; border-radius: 16px; background: linear-gradient(150deg, #5b4220, #20170b 45%, #3d2b12);
  box-shadow: 0 0 0 1px rgba(255, 214, 140, .38), 0 0 60px -10px rgba(255, 150, 50, .35), 0 40px 80px -30px rgba(0, 0, 0, .95); }
.tz-war-frame::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(255, 230, 170, .45) 50%, transparent 60%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); border: 1px solid transparent; background-size: 300% 100%; animation: tz-sheen 7s linear infinite; }
@keyframes tz-sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.tz-war-stage { position: relative; container-type: inline-size; aspect-ratio: 1600 / 1000; border-radius: 10px; overflow: hidden; background: #c9e3f2; }
.tz-war-vignette { position: absolute; inset: 7px; border-radius: 10px; pointer-events: none; box-shadow: inset 0 0 60px rgba(40, 20, 0, .45); background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(30, 14, 0, .32)); }
/* 「예시 화면」 표시: 지도 그림 위(밖) 한 줄 — 진짜 방송처럼 보이던 「LIVE」·빨간 깜빡임 대신(S7) */
.tz-war-hud { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 2px; color: #ece3cc; }
.tz-live { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--tz-line); background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 700; color: #d9d1bd; }
.tz-war-day { font-size: 15px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* 지도 소식 줄: 지도 그림 바로 아래(DJ 땅·이름표를 가리지 않게). 줄 수만큼 자리를 미리 잡아 두어 소식이 바뀌어도 아래가 들썩이지 않는다 */
.tz-war-news { display: grid; gap: 4px; justify-items: start; min-height: calc(2 * 26px + 4px); margin-top: 10px; pointer-events: none; }
.tz-war-news li { max-width: 100%; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--tz-line-2); color: #ece3cc; font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tz-news .5s var(--ease); }
.tz-war-news li:nth-child(2) { opacity: .75; }
@keyframes tz-news { from { opacity: 0; transform: translateY(6px); } }
.tz-war figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--tz-dim); }
.tz-war-toggle { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tz-line-2); background: rgba(255, 255, 255, .04); color: #d9d1bd; font: inherit; font-weight: 700; cursor: pointer; }
.tz-war-toggle:disabled { opacity: .55; cursor: default; }
/* 지도 그리기(MapStage — 시즌 2 사이트와 같은 이름표) */
/* 예고 지도의 캔버스·이름표(시즌 2 화면과 같은 이름의 칸) — 시즌 2 화면의 같은 규칙을 덮지 않게 예고일 때만(:where 라 우선순위는 예전 그대로) */
:where(.s2-teaser) .s2-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
:where(.s2-teaser) .s2-canvas.is-front { opacity: 1; }
:where(.s2-teaser) .s2-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
:where(.s2-teaser) .s2-label { position: absolute; transform: translate(-50%, -50%); text-align: center; color: var(--map-ink); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap;
  text-shadow: 0 0 2px var(--map-glow), 0 0 5px rgba(247, 240, 222, .95), 0 0 9px rgba(247, 240, 222, .7); transition: left .6s var(--ease), top .6s var(--ease), translate .3s ease; }
:where(.s2-teaser) .s2-label b { display: block; font-weight: 900; }
:where(.s2-teaser) .s2-label small { display: block; margin-top: 2px; font-size: max(12px, 1.45cqi); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
:where(.s2-teaser) .s2-label.up small { color: #2f6b34; }
:where(.s2-teaser) .s2-label.down small { color: #9a3a2a; }
:where(.s2-teaser) .s2-label.is-tight small { display: none; }
:where(.s2-teaser) .s2-col { position: absolute; transform: translate(-50%, -50%); font-size: max(12px, 1.2cqi); font-weight: 700; line-height: 1.25; color: #3a2f22; background: rgba(247, 240, 222, .86); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
:where(.s2-teaser) .s2-col.is-hidden { visibility: hidden; }

.tz-scroll { position: absolute; left: 50%; bottom: 18px; z-index: 3; translate: -50% 0; display: grid; justify-items: center; gap: 6px; min-width: 48px; text-decoration: none; font-size: 12px; font-weight: 700; color: #b8b09c; }
/* 아래로 내려가는 선: 처음 세 번만(끝없이 돌지 않게 — S9) */
.tz-scroll i { width: 1px; height: 30px; background: linear-gradient(var(--tz-gold), transparent); animation: tz-drop 1.8s ease-in-out 3; transform-origin: top; }
@keyframes tz-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 칸 공통 ---------- */
.tz-sec { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 18px; }
.tz-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 44px; }
.tz-chapter { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--tz-gold); }
.tz-chapter b { position: relative; display: grid; place-items: center; width: 32px; height: 32px; font-size: 12px; letter-spacing: 0; color: var(--tz-gold-2); }
.tz-chapter b::before { content: ''; position: absolute; inset: 5px; rotate: 45deg; border: 1px solid var(--tz-gold); }
.tz-head h2 { font-size: clamp(30px, 7.4vw, 56px); line-height: 1.15; font-weight: 900; letter-spacing: -.055em; color: #fff; }
.tz-head-sub { max-width: 560px; font-size: 15px; line-height: 1.75; color: var(--text-2); }

/* 시즌 1 기록 */
.tz-archive::before { content: ''; position: absolute; inset: 40px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--tz-line), transparent); }
.tz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tz-stats-loading { grid-column: 1 / -1; text-align: center; color: var(--text-2); }
.tz-stat { position: relative; display: grid; align-content: start; gap: 6px; padding: 20px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 214, 140, .07), rgba(255, 255, 255, .015)); border: 1px solid var(--tz-line); overflow: hidden; }
.tz-stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, .16), transparent 70%); }
.tz-stat-value { display: flex; align-items: baseline; gap: 3px; color: #fff; }
.tz-stat-value strong { font-size: clamp(38px, 10vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3d4, #f2c46a 70%, #c58631); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tz-stat-value span, .tz-stat-prefix { font-size: 16px; font-weight: 800; color: var(--tz-gold); }
.tz-stat-label { font-size: 13px; font-weight: 600; color: #cfc6b1; }
.tz-stat-0 { grid-column: 1 / -1; }
/* 도장: 휴대폰에서는 칸 머리 위 빈 곳(머리글과 겹치지 않게 — S11), 넓은 화면은 아래 @media */
.tz-stamp { position: absolute; right: 18px; top: 12px; rotate: -12deg; padding: 6px 12px; border: 2px solid rgba(255, 110, 80, .55); border-radius: 8px; color: rgba(255, 130, 100, .7); font-size: 12px; font-weight: 900; }
.tz-retry { margin-top: 10px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--tz-line); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }

/* 시즌 2 미리 보기 */
.tz-shift { padding-top: 40px; }
.tz-manifesto { display: grid; gap: 10px; }
/* 시즌 1을 지우는 취소선 대신 이어지는 말(S12) */
.tz-manifesto span { font-size: clamp(20px, 5vw, 30px); font-weight: 700; color: #c9c0aa; letter-spacing: -.04em; }
.tz-manifesto strong { font-size: clamp(36px, 9.6vw, 72px); line-height: 1.08; font-weight: 900; letter-spacing: -.065em;
  background: linear-gradient(180deg, #fff, #ffd98a 70%, #e7a64a); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 24px rgba(255, 170, 70, .28)); }
/* overflow: clip — 넘친 빛은 자르되 스크롤 칸을 만들지 않아, 넓은 화면에서 글 칸이 화면에 붙어(sticky) 따라온다(S13). clip 을 모르는 브라우저는 hidden */
.tz-feature, .tz-types, .tz-dex { position: relative; margin-top: 26px; padding: 30px 20px; border-radius: 24px; border: 1px solid var(--tz-line-2); background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); overflow: hidden; overflow: clip; isolation: isolate; }
.tz-feature { display: grid; gap: 28px; }
.tz-feature::before, .tz-types::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(40px); opacity: .5; pointer-events: none; }
.tz-f-war::before { right: -200px; top: -160px; background: radial-gradient(circle, rgba(255, 110, 50, .45), transparent 65%); }
.tz-f-boss::before { left: -200px; bottom: -200px; background: radial-gradient(circle, rgba(220, 30, 50, .5), transparent 65%); }
.tz-f-walk::before { right: -180px; bottom: -220px; background: radial-gradient(circle, rgba(60, 200, 130, .35), transparent 65%); }
.tz-types::before { left: 30%; top: -260px; background: radial-gradient(circle, rgba(100, 140, 255, .35), transparent 65%); }
.tz-f-no { font-size: 13px; font-weight: 800; color: var(--tz-gold); }
.tz-f-copy { display: grid; align-content: center; gap: 14px; }
.tz-feature h3, .tz-types h3, .tz-dex h3 { font-size: clamp(25px, 6.4vw, 40px); line-height: 1.2; font-weight: 900; letter-spacing: -.055em; color: #fff; }
.tz-f-copy > p:not(.tz-f-no), .tz-types-copy > p:last-child, .tz-dex-head > p:last-child { font-size: 15px; line-height: 1.8; color: #c9c0aa; }
.tz-f-copy code { padding: 1px 7px; border-radius: 6px; background: rgba(242, 196, 106, .14); color: var(--tz-gold-2); font-weight: 800; font-family: inherit; }
.tz-points { display: grid; gap: 8px; margin-top: 4px; }
.tz-points li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--tz-line-2); font-size: 14px; color: #bdb4a0; }
.tz-points b { color: #fff; font-size: 15px; }
.tz-f-art { display: grid; gap: 16px; align-content: center; justify-items: center; }

/* 영지전 깃발 */
.tz-vs { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.tz-vs > strong { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 18px rgba(255, 120, 60, .9), 0 0 2px #fff; }
.tz-banner { display: grid; justify-items: center; gap: 2px; width: 104px; padding: 16px 8px 30px; color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); animation: tz-wave 3.2s ease-in-out infinite; transform-origin: top center; }
.tz-banner b { font-size: 17px; font-weight: 900; letter-spacing: -.04em; }
.tz-banner small { font-size: 12px; font-weight: 800; opacity: .85; font-variant-numeric: tabular-nums; }
.tz-banner-a { background: linear-gradient(180deg, #ef5a4f, #8f1c1c); }
.tz-banner-b { background: linear-gradient(180deg, #4b8df0, #1a3f8f); animation-delay: -1.6s; }
@keyframes tz-wave { 50% { transform: skewY(2deg) scaleY(.97); } }

/* 채팅 흉내 */
.tz-chat { width: min(100%, 400px); border-radius: 18px; background: #0f111a; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; text-align: left; }
.tz-chat-top { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .03); }
.tz-chat-top i { width: 8px; height: 8px; border-radius: 50%; background: #3a3d4a; }
.tz-chat-top span { margin-left: 6px; font-size: 12px; font-weight: 700; color: #9a95a8; }
.tz-chat-list { display: grid; gap: 8px; padding: 14px; }
.tz-msg b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #9fb7ff; }
.tz-msg p { margin-top: 3px; font-size: 14px; line-height: 1.55; white-space: pre-line; color: #e9e4d6; }
.tz-msg.is-bot { padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(242, 196, 106, .12), rgba(242, 196, 106, .04)); border: 1px solid rgba(242, 196, 106, .22); }
.tz-msg.is-bot b { color: var(--tz-gold); }
.tz-msg.is-bot em { font-style: normal; font-size: 12px; line-height: 1.4; padding: 0 6px; border-radius: 4px; background: var(--tz-gold); color: #1a1205; }
.tz-msg.is-user { padding: 0 4px; }
.tz-msg.is-user p { font-weight: 700; color: #fff; }

/* 보스전 생중계 예시(2026-11-19): 12월 1일부터 키우기.com 에서 볼 도트 장면(시즌 2 사이트와 같은 장면 모듈)을 이 틀에 띄운다 — lib/teaser-boss.js.
   뜨기 전·움직임 줄이기·못 받았을 때는 정지 그림(.tz-bv-poster)이 보인다. 넓은 화면은 가로 장면(16:9), 휴대폰 폭은 세로 장면(9:16 — 글씨가 크게) */
.tz-bv { width: 100%; max-width: 520px; }
.tz-bv-title { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.tz-bv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d0710; border: 1px solid rgba(255, 110, 80, .35); box-shadow: 0 0 60px -14px rgba(255, 60, 40, .55), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.tz-bv-poster, .tz-bv-poster img { display: block; width: 100%; height: 100%; }
.tz-bv-poster img { object-fit: contain; }
.tz-bv-stage, .tz-bv-scene { position: absolute; inset: 0; }
.tz-bv-scene { display: grid; place-items: center; }
.tz-bv-frame.is-live .tz-bv-poster { visibility: hidden; }
.tz-bv figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 13px; line-height: 1.6; color: #a9a294; }
.tz-bv figcaption span { flex: 1 1 220px; }
@media (max-width: 639px) {
  .tz-bv { max-width: 320px; }
  .tz-bv-frame { aspect-ratio: 9 / 16; }
}

.tz-evo { display: flex; align-items: end; gap: 16px; margin-top: 6px; }
.tz-evo li { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: #c9c0aa; }
.tz-egg { display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: rgba(255, 255, 255, .85); background: radial-gradient(circle at 35% 30%, rgba(140, 255, 200, .6), rgba(40, 140, 100, .35) 55%, rgba(10, 40, 30, .6)); box-shadow: 0 0 24px rgba(80, 220, 150, .35), inset 0 0 12px rgba(255, 255, 255, .2); }
.tz-egg-1 { width: 46px; height: 46px; font-size: 18px; } .tz-egg-2 { width: 62px; height: 62px; font-size: 24px; } .tz-egg-3 { width: 82px; height: 82px; font-size: 32px; box-shadow: 0 0 40px rgba(255, 210, 110, .45), inset 0 0 14px rgba(255, 255, 255, .25); background: radial-gradient(circle at 35% 30%, rgba(255, 236, 170, .75), rgba(200, 140, 40, .4) 55%, rgba(50, 30, 5, .7)); }

/* 속성 고리 */
.tz-types { display: grid; gap: 22px; }
.tz-types-copy { display: grid; gap: 12px; }
.tz-element-list { font-size: 17px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.tz-el-arrow { margin: 0 .4em; color: var(--tz-gold); }
.tz-ring { width: min(100%, 380px); height: auto; justify-self: center; overflow: visible; }
.tz-ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 18; }
.tz-ring-arc { fill: none; stroke: var(--tz-gold); stroke-width: 2.5; opacity: .8; stroke-dasharray: 6 5; animation: tz-flow 1.6s linear infinite; }
@keyframes tz-flow { to { stroke-dashoffset: -11; } }
.tz-ring-head { fill: var(--tz-gold); }
.tz-ring-dot { fill: #0e1019; stroke: currentColor; stroke-width: 2.5; filter: drop-shadow(0 0 10px currentColor); }
.tz-ring-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
/* 휴대폰에서 고리가 300px 쯤으로 줄어도 이름이 12px 넘게(그림 단위 18 — S6) */
.tz-ring-name { fill: #fff; font-size: 18px; font-weight: 800; font-family: inherit; }
.tz-ring-mid { fill: var(--tz-gold-2); font-size: 40px; font-weight: 900; font-family: inherit; letter-spacing: -.04em; }
.tz-ring-mid-sub { fill: #a49e8f; font-size: 18px; font-weight: 700; font-family: inherit; }
.tz-fire { color: var(--fire); } .tz-water { color: var(--water); } .tz-grass { color: var(--grass); } .tz-earth { color: var(--earth); } .tz-wind { color: var(--wind); } .tz-electric { color: var(--electric); }

/* 도감 봉인 카드 */
.tz-dex { display: grid; gap: 22px; }
.tz-dex-head { display: grid; gap: 12px; }
.tz-dex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tz-card { position: relative; display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .3)); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); overflow: hidden; }
.tz-card::after { content: ''; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, currentColor 45%, transparent), transparent 70%); pointer-events: none; }
.tz-card-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; }
.tz-el-icon { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
/* 도감 미리 공개(2026-11-19): 속성마다 1단계 한 마리(그림·이름) — 2·3단계는 「?」로 남긴다 */
.tz-card-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.tz-card-art::before { content: ''; position: absolute; inset: 6% 4% 8%; border-radius: 50%; background: radial-gradient(circle at 50% 58%, color-mix(in srgb, currentColor 32%, transparent), transparent 68%); }
.tz-card-art img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: translateY(-7%) scale(1.34); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.tz-card-name { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; }
.tz-card-name strong { font-size: 17px; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.tz-card-name span { font-size: 12px; font-weight: 800; color: currentColor; }
.tz-card-next { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tz-card-next li { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 2px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px dashed color-mix(in srgb, currentColor 38%, transparent); font-size: 12px; font-weight: 700; color: #bdb4a0; white-space: nowrap; }
.tz-card-next i { font-style: normal; font-size: 14px; font-weight: 900; color: currentColor; }
/* 보스 6: 그림자와 속성만(이름은 12월 1일) */
.tz-bossdex { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--tz-line-2); }
.tz-bossdex-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tz-bossdex h4 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; letter-spacing: -.045em; color: #fff; }
.tz-bossdex-head p { font-size: 15px; line-height: 1.7; color: #c9c0aa; }
.tz-boss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tz-bcard { position: relative; display: grid; gap: 4px; padding: 10px 6px 12px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .42)); border: 1px solid color-mix(in srgb, currentColor 24%, transparent); overflow: hidden; }
.tz-bcard::after { content: ''; position: absolute; inset: auto -20% -45% -20%; height: 70%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, currentColor 34%, transparent), transparent 70%); pointer-events: none; }
.tz-bcard-art { position: relative; aspect-ratio: 1; }
.tz-bcard-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 12px color-mix(in srgb, currentColor 65%, transparent)); animation: tz-loom 5s ease-in-out infinite; transform-origin: 50% 100%; }
.tz-bcard:nth-child(2n) .tz-bcard-art img { animation-delay: -1.7s; }
.tz-bcard:nth-child(3n) .tz-bcard-art img { animation-delay: -3.4s; }
@keyframes tz-loom { 50% { transform: scale(1.025) translateY(-3px); } }
.tz-bcard p { position: relative; display: grid; justify-items: center; gap: 2px; }
.tz-bcard strong { font-size: 16px; font-weight: 900; letter-spacing: .1em; color: #fff; }

/* 1등 보상 */
.tz-prize { padding: 40px 18px 90px; }
.tz-prize-in { position: relative; max-width: 900px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 46px 20px 32px; border-radius: 28px; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 90, .28), transparent 60%), linear-gradient(180deg, #1a130a, #0b0905); border: 1px solid rgba(255, 214, 140, .45); box-shadow: 0 0 80px -20px rgba(255, 170, 60, .45), inset 0 1px 0 rgba(255, 240, 200, .2); }
.tz-prize-in::before { content: ''; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255, 210, 120, .09) 20deg 30deg, transparent 30deg 60deg, rgba(255, 210, 120, .07) 60deg 70deg, transparent 70deg 110deg, rgba(255, 210, 120, .09) 110deg 120deg, transparent 120deg 180deg, rgba(255, 210, 120, .07) 180deg 190deg, transparent 190deg 250deg, rgba(255, 210, 120, .09) 250deg 260deg, transparent 260deg 300deg, rgba(255, 210, 120, .07) 300deg 310deg, transparent 310deg); animation: tz-spin 40s linear infinite; }
@keyframes tz-spin { to { rotate: 360deg; } }
.tz-crown { position: relative; display: grid; place-items: center; }
.tz-crown svg { filter: drop-shadow(0 0 22px rgba(255, 190, 80, .8)); }
.tz-crown-body { fill: url(#none) var(--tz-gold); fill: var(--tz-gold); stroke: #fff2c8; stroke-width: 1.5; stroke-linejoin: round; }
.tz-crown-base { stroke: var(--tz-gold-2); stroke-width: 4; stroke-linecap: round; }
.tz-crown b { position: absolute; top: 44%; font-size: 26px; font-weight: 900; color: #3b2304; }
.tz-prize h2 { display: grid; gap: 6px; font-weight: 900; letter-spacing: -.05em; color: #fff; }
.tz-prize-label { font-size: 15px; font-weight: 800; letter-spacing: 0; color: var(--tz-gold); }
.tz-prize-main { font-size: clamp(22px, 5.4vw, 36px); line-height: 1.3; }
.tz-prize-main strong { display: block; margin-top: 4px; font-size: clamp(76px, 22vw, 150px); line-height: .95; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fffbe9, #ffd77e 45%, #e09a35 75%, #9a5a16); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px rgba(255, 170, 60, .45)); }
.tz-prize-main small { font-size: .3em; letter-spacing: -.02em; }
.tz-prize-in > p:not(.tz-chapter) { font-size: 15px; color: #d6caa8; }
.tz-schedule { display: grid; gap: 8px; width: min(100%, 640px); margin-top: 18px; text-align: left; }
.tz-schedule li { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 214, 140, .14); font-size: 14px; color: #d8cfb9; }
.tz-schedule b { font-size: 13px; font-weight: 900; color: var(--tz-gold-2); font-variant-numeric: tabular-nums; }

/* 냥 안내 · 바닥 */
/* 냥 삭제 안내: 시즌 1 기록 칸 맨 앞(머리 바로 아래 — S4) */
.tz-reset { max-width: 760px; margin: 0 auto 28px; display: flex; gap: 14px; align-items: flex-start; }
.tz-reset > b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ff9f2e; color: #1c0f00; font-size: 19px; font-weight: 900; box-shadow: 0 0 20px rgba(255, 150, 40, .5); }
.tz-reset > div { flex: 1; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 160, 60, .45); background: rgba(255, 140, 30, .08); }
.tz-reset strong { display: block; font-size: 14px; color: #ffb45e; }
.tz-reset p { margin-top: 4px; font-size: 15px; line-height: 1.7; font-weight: 700; color: #fff; }
.tz-footer { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 36px 20px calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tz-line-2); background: #030306; font-size: 12px; color: #7f7a6d; }
.tz-footer strong { font-size: 15px; color: #d4cbb5; }
.tz-footer p { max-width: 560px; line-height: 1.6; }
.tz-footer small { font-size: 12px; }

/* 나타나기 */
.tz-anim .tz-head, .tz-anim .tz-feature, .tz-anim .tz-types, .tz-anim .tz-dex, .tz-anim .tz-prize-in, .tz-anim .tz-reset { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tz-anim .is-in { opacity: 1; transform: none; }
.tz-anim .tz-msg { opacity: 0; transform: translateY(10px); }
.tz-anim .is-in .tz-msg { animation: tz-msg .5s var(--ease) forwards; }
/* 채팅은 0.3초씩(예전 0.7초 — 마지막 줄이 2.8초 뒤에야 보였다, S5) */
.tz-anim .is-in .tz-msg:nth-child(2) { animation-delay: .3s; } .tz-anim .is-in .tz-msg:nth-child(3) { animation-delay: .6s; }
.tz-anim .is-in .tz-msg:nth-child(4) { animation-delay: .9s; } .tz-anim .is-in .tz-msg:nth-child(5) { animation-delay: 1.2s; }
.tz-anim .is-in .tz-msg:nth-child(6) { animation-delay: 1.5s; }
/* 화면 밖 칸의 끝없는 꾸밈 움직임은 멈춘다(views/teaser.js stillOffscreen — S9).
   채팅 줄 나타나기(.tz-msg — 한 번만 도는 움직임)는 빼서, 칸이 화면에 닿기 조금 전(REVEAL 아래 10%)에 시작해도 멈춰 있지 않게 */
.tz-still, .tz-still::before, .tz-still::after, .tz-still *:not(.tz-msg), .tz-still *::before, .tz-still *::after { animation-play-state: paused !important; }
@keyframes tz-msg { to { opacity: 1; transform: none; } }

/* 넓은 화면 */
@media (min-width: 640px) {
  .tz-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tz-dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tz-feature, .tz-types, .tz-dex { padding: 40px 36px; }
}
@media (min-width: 960px) {
  .tz-hero { padding: 36px 40px 96px; }
  /* 글 칸은 위에서 시작해 화면에 붙어 따라온다(가운데로 내려가 위가 비던 것 — S13) */
  .tz-feature { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 56px; }
  .tz-f-copy { position: sticky; top: 96px; align-content: start; }
  .tz-f-boss .tz-f-copy { order: 2; }
  .tz-types { grid-template-columns: 1fr 1fr; align-items: center; padding: 56px; }
  .tz-dex { padding: 56px; }
  .tz-dex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tz-boss-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tz-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tz-stat-0 { grid-column: span 2; }
  .tz-sec { padding: 130px 40px; }
  .tz-stamp { right: 60px; top: 110px; font-size: 14px; }
}
@media (min-width: 1180px) {
  .tz-hero-in { grid-template-columns: minmax(400px, .82fr) 1.4fr; align-items: center; min-height: calc(100svh - 180px); gap: 56px; }
  .tz-hero-copy { justify-items: start; text-align: left; }
  .tz-countdown { width: 100%; max-width: 460px; }
  .tz-open, .tz-cta { justify-content: flex-start; }
  /* 지도는 기울이지 않는다(지도 글씨가 비뚤어 보이던 것 — S13) */
}
@media (max-width: 420px) {
  .tz-edition { font-size: 0; } .tz-edition b { font-size: 12px; }
  .tz-war-news { min-height: 26px; }
  .tz-war-news li:nth-child(2) { display: none; }
  .tz-banner { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html.s2-teaser { scroll-behavior: auto; }
  .s2-teaser *, .s2-teaser *::before, .s2-teaser *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tz-embers { display: none; }
}
