/* ════════════════════════════════════════════
   TV애니메이션 『전생했더니 대머리였던 건에 대하여』
   ════════════════════════════════════════════ */
:root {
  --paper: #FFF7E6;
  --ink: #1B1B1F;
  --ink2: #3C3C46;
  --muted: #5E5A66;
  --yellow: #FFD23F;
  --yellow2: #FFB800;
  --pink: #FF4F8B;
  --pink2: #FF8FB5;
  --sky: #4CC3FF;
  --mint: #3DDC97;
  --night: #1B1847;
  --night2: #2E2A78;
  --shadow: 6px 6px 0 var(--ink);
  --f-display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --f-body: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --f-hand: 'Gaegu', 'Noto Sans KR', cursive;
  --f-jp: 'Dela Gothic One', 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --nav-h: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27,27,31,.07) 1px, transparent 1.3px);
  background-size: 14px 14px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main { overflow-x: clip; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .72em 1.3em;
  border: 3px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-family: var(--f-display); font-size: 1.02rem; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn small { font-family: var(--f-body); font-size: .72em; font-weight: 700; opacity: .85; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--pink); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--pink); }
.btn--ink:disabled { box-shadow: 4px 4px 0 var(--pink); }
.link-btn { font-weight: 700; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.link-btn b { font-family: var(--f-jp); font-weight: 400; }

/* ── 섹션 공통 ── */
.sec { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.band { border-block: 3px solid var(--ink); }
.band--pink { background-color: #FFE4EE; }
.band--sky { background-color: #DDF3FF; }
.band--yellow { background-color: #FFE070; background-image: radial-gradient(rgba(27,27,31,.12) 1.2px, transparent 1.5px); background-size: 12px 12px; }
.band--mint { background-color: #DDF8EA; }

.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-en {
  font-family: var(--f-jp);
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  line-height: .95; letter-spacing: .01em;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
  word-break: break-all;
}
.band--yellow .sec-en { color: #fff; }
.sec-ko {
  display: inline-flex; align-items: baseline; gap: .6em;
  font-family: var(--f-display); font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  background: var(--ink); color: #fff;
  padding: .22em .8em; border-radius: 6px;
  transform: rotate(-2deg); margin-left: .25em;
}
.sec-ko small { font-family: var(--f-jp); font-size: .68em; color: var(--yellow); }

.card-base, .news-item, .onair, .novel, .chara-card, .track, .sp-card, .good, .letter-form {
  background: #fff; border: 3px solid var(--ink);
}

/* ════════ INTRO ════════ */
.intro { display: none; }
.show-intro .intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 40%, #2E2A78, #0D0B2A 70%);
  overflow-y: auto;
  transition: opacity .45s ease;
}
.show-intro body { overflow: hidden; }
.intro-card {
  width: min(540px, 100%);
  background: #fff; border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--yellow);
  padding: clamp(22px, 5vw, 34px);
  animation: popIn .5s cubic-bezier(.2,1.4,.4,1) both;
}
.intro-kicker { display: inline-block; font-family: var(--f-display); background: var(--pink); color: #fff; padding: 2px 12px; border-radius: 6px; margin-bottom: 14px; }
.intro-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 4.4vw, 1.75rem); line-height: 1.3; }
.intro-jp { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.intro-twist { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; margin: 14px 0 8px; }
.intro-list { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; }
.intro-list li { position: relative; padding-left: 1.5em; font-size: .93rem; line-height: 1.55; }
.intro-list li::before { content: '✔'; position: absolute; left: 0; color: var(--pink); font-weight: 900; }
.intro-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.intro-btns .btn { flex: 1 1 200px; }
.intro-glasses { position: fixed; left: 50%; top: -30vh; width: min(560px, 86vw); transform: translateX(-50%); pointer-events: none; opacity: 0; filter: drop-shadow(0 0 28px rgba(255, 210, 63, .45)); text-align: center; }
.intro-glasses p { margin-top: 18px; font-family: var(--f-display); font-size: clamp(1.1rem, 3.4vw, 1.5rem); color: var(--yellow); }
.intro-ouch { position: fixed; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: clamp(2.6rem, 10vw, 6rem); color: var(--ink); pointer-events: none; opacity: 0; }
.intro.shades .intro-glasses { animation: glassesDrop 1s cubic-bezier(.3,1.3,.5,1) forwards; }
.intro.shades .intro-card { animation: fadeOut .35s ease .55s forwards; }
.intro.naked { background: #fff; transition: background .08s; }
.intro.naked .intro-card { animation: fadeOut .12s ease forwards; }
.intro.naked .intro-ouch { animation: ouch .9s ease forwards; }
.intro.bye { opacity: 0; pointer-events: none; }
@keyframes glassesDrop { 0% { top: -30vh; opacity: 1; } 60% { top: 38vh; opacity: 1; } 80% { top: 34vh; } 100% { top: 36vh; opacity: 1; } }
@keyframes ouch { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 30% { opacity: 1; transform: scale(1.1) rotate(-4deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
@keyframes fadeOut { to { opacity: 0; transform: scale(.96); } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

/* ════════ NAV ════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 247, 230, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.nav-in { display: flex; align-items: center; gap: 10px; height: var(--nav-h); width: min(1200px, 100% - 24px); margin-inline: auto; }
.nav-logo { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 1.3rem; text-decoration: none; flex-shrink: 0; }
.nav-logo svg { width: 34px; height: 37px; transition: transform .3s; }
.nav-logo:hover svg { transform: rotate(-12deg) scale(1.08); }
.nav-links {
  position: relative;
  display: flex; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  padding-inline: 12px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--f-jp); font-size: .76rem; letter-spacing: .03em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  padding: 8px 11px; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav-links a.nav-fl { font-family: var(--f-display); font-size: .88rem; }
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--yellow); }
.snd { flex-shrink: 0; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.05rem; box-shadow: 2px 2px 0 var(--ink); }
.snd[aria-pressed="false"] { background: #ddd; }

/* ════════ KEY VISUAL ════════ */
.kv {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: radial-gradient(120% 90% at 72% 38%, #4136B0 0%, #251F72 42%, #120F3A 100%);
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(36px, 6vw, 72px)) 0 clamp(120px, 14vw, 160px);
}
.kv-stars { position: absolute; inset: 0; z-index: -2; }
.kv-stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.kv-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(16px, 3vw, 40px); }
.kv-copy { position: relative; z-index: 2; }
.kv-badge {
  display: inline-block; font-family: var(--f-jp); font-size: .78rem; letter-spacing: .08em;
  background: var(--pink); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 5px 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg);
}
.kv-jp { font-family: var(--f-jp); color: var(--yellow); font-size: clamp(.95rem, 2.3vw, 1.35rem); letter-spacing: .06em; margin: 18px 0 8px; }
.kv-title { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
.kv-title span { display: block; }
.kv-title .l1, .kv-title .l3 {
  font-size: clamp(2.5rem, 6.6vw, 4.5rem); color: #fff;
  -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
}
.kv-title .l2 {
  position: relative; width: fit-content;
  font-size: clamp(3.5rem, 10.6vw, 7.2rem); color: var(--yellow);
  -webkit-text-stroke: 11px var(--ink); paint-order: stroke fill;
  text-shadow: 7px 9px 0 var(--pink);
  transform: rotate(-3deg); transform-origin: left center;
  margin: .02em 0 .06em -.02em;
}
.kv-twinkle { position: absolute !important; top: -.18em; right: -.3em; font-size: .42em; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 18px #fff, 0 0 30px var(--yellow); animation: spinTwinkle 2.4s ease-in-out infinite; }
@keyframes spinTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(90deg); opacity: 1; } }
.kv-tag { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; margin-top: 22px; color: #ECE9FF; }
.kv-tag mark { background: none; color: var(--yellow); text-shadow: 0 0 14px rgba(255, 210, 63, .8); }
.kv-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.kv-forecast {
  display: inline-block; margin-top: 22px; max-width: 100%;
  font-size: .86rem; line-height: 1.5; color: #fff;
  background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.4); border-radius: 12px;
  padding: 8px 14px;
}
.kv-forecast b { color: var(--yellow); }
.kv-forecast:empty { display: none; }

.kv-art { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 420 / 520; }
.kv-rays {
  position: absolute; inset: -40%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 120, .24) 0deg 6deg, transparent 6deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  animation: spin 90s linear infinite;
}
.kv-glow { position: absolute; left: 50%; top: 30%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 200, .95) 0%, rgba(255, 214, 90, .45) 38%, transparent 68%); animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.95); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.kv-svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(255, 236, 170, .35)); }
.kv-shirt { font-family: var(--f-jp); font-size: 64px; fill: #fff; stroke: var(--ink); stroke-width: 7px; paint-order: stroke; }
.kv-head { transform-box: fill-box; transform-origin: 50% 90%; }
.kv-head.rub { animation: rub .45s ease; }
@keyframes rub { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.02); } 60% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.kv-glint { opacity: 0; }
.kv-head.rub .kv-glint { animation: glint .6s ease; }
@keyframes glint { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.tw { transform-box: fill-box; transform-origin: center; animation: spinTwinkle 2.2s ease-in-out infinite; }
.tw.d2 { animation-delay: .7s; } .tw.d3 { animation-delay: 1.3s; }
.kv-head-btn { position: absolute; left: 18%; top: 2%; width: 64%; height: 60%; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kv-head-btn:focus-visible { outline: 3px dashed var(--yellow); outline-offset: -6px; }
.sfx { position: absolute; font-family: var(--f-jp); color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; pointer-events: none; white-space: nowrap; }
.sfx-kira { right: -2%; top: 4%; font-size: clamp(1.3rem, 3vw, 2rem); transform: rotate(14deg); animation: bob 2.6s ease-in-out infinite; }
.sfx-bj { left: -4%; top: 40%; font-family: var(--f-display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); color: #fff; transform: rotate(-14deg); animation: bob 2.6s ease-in-out .8s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.kv-bubble {
  position: absolute; left: -6%; top: 6%;
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.15; text-align: center;
  color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 50%;
  padding: 16px 18px; transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink);
}
.kv-bubble::after { content: ''; position: absolute; right: 8px; bottom: -8px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(20deg) skew(12deg, 12deg); }
.kv-hint { position: absolute; right: -2%; bottom: 20%; font-family: var(--f-hand); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: #fff; text-align: right; transform: rotate(-4deg); text-shadow: 0 2px 0 var(--ink); }
.kv-hint small { font-size: .9rem; color: var(--yellow); }

.burst { position: absolute; left: -7%; bottom: 5%; z-index: 3; width: clamp(108px, 14vw, 150px); aspect-ratio: 1; background: var(--ink); clip-path: polygon(50.0% 0.0%,58.9% 11.0%,71.7% 5.0%,74.9% 18.7%,89.1% 18.8%,86.0% 32.6%,98.7% 38.9%,90.0% 50.0%,98.7% 61.1%,86.0% 67.4%,89.1% 81.2%,74.9% 81.3%,71.7% 95.0%,58.9% 89.0%,50.0% 100.0%,41.1% 89.0%,28.3% 95.0%,25.1% 81.3%,10.9% 81.2%,14.0% 67.4%,1.3% 61.1%,10.0% 50.0%,1.3% 38.9%,14.0% 32.6%,10.9% 18.8%,25.1% 18.7%,28.3% 5.0%,41.1% 11.0%); animation: burstWobble 3s ease-in-out infinite; }
.burst-in { position: absolute; inset: 5px; display: grid; place-content: center; text-align: center; background: var(--yellow); color: var(--ink); clip-path: inherit; font-family: var(--f-display); font-size: clamp(.8rem, 1.5vw, 1rem); line-height: 1.15; }
.burst-in small { display: block; font-size: .78em; }
.burst-in em { display: block; font-style: normal; font-family: var(--f-jp); font-size: 1.25em; color: var(--pink); margin-top: 2px; }
@keyframes burstWobble { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(16deg) scale(1.06); } }
.kv-city { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(60px, 9vw, 120px); z-index: -1; }

/* 테이프 (마키) */
.tapes { position: relative; height: 0; z-index: 5; }
.tape { position: absolute; left: -5%; width: 110%; border-block: 3px solid var(--ink); padding: 9px 0; overflow: hidden; white-space: nowrap; font-family: var(--f-display); font-size: clamp(.95rem, 1.8vw, 1.15rem); line-height: 1.2; }
.tape--y { background: var(--yellow); color: var(--ink); transform: rotate(-2.4deg); top: -64px; }
.tape--p { background: var(--pink); color: #fff; transform: rotate(1.6deg); top: -26px; }
.tape-track { display: inline-flex; animation: marquee 38s linear infinite; }
.tape--p .tape-track { animation-direction: reverse; animation-duration: 30s; }
.tape-track span { padding-right: 1em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════ NEWS ════════ */
#news { padding-top: clamp(96px, 12vw, 140px); }
.news-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.news-item { border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); margin-bottom: 14px; overflow: hidden; transition: transform .15s; }
.news-item:hover { transform: translateX(3px); }
.news-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px 14px 18px;
}
.news-item summary::-webkit-details-marker { display: none; }
.news-date { font-family: var(--f-jp); font-size: .82rem; letter-spacing: .02em; }
.news-tag { font-family: var(--f-display); font-size: .8rem; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); white-space: nowrap; }
.t-air { background: var(--yellow); } .t-acc { background: #FF8A8A; } .t-music { background: var(--sky); } .t-seen { background: #C9B6FF; }
.t-goods { background: var(--mint); } .t-cast { background: var(--pink2); } .t-info { background: #fff; } .t-orig { background: #E8DDC8; } .t-urgent { background: var(--pink); color: #fff; }
.news-title { font-weight: 700; font-size: 1rem; line-height: 1.45; }
.news-toggle { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; line-height: 1; transition: transform .25s, background-color .2s; }
.news-item[open] .news-toggle { transform: rotate(45deg); background: var(--pink); color: #fff; }
.news-body { margin: 0 18px; padding: 12px 0 16px; border-top: 2px dashed rgba(27,27,31,.2); color: var(--ink2); font-size: .95rem; line-height: 1.8; }
.news-body a { font-weight: 700; }
.news-item.urgent { border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }

.onair { border-radius: 18px; box-shadow: var(--shadow); padding: 22px; position: sticky; top: calc(var(--nav-h) + 20px); }
.onair-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-jp); font-size: .8rem; color: #fff; background: var(--ink); padding: 3px 12px; border-radius: 999px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #FF3B5C; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.onair-title { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 10px 0 12px; }
.onair-list { display: grid; gap: 8px; margin-bottom: 14px; }
.onair-list div { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; padding-bottom: 8px; border-bottom: 2px dotted rgba(27,27,31,.2); font-size: .92rem; }
.onair-list dt { font-weight: 900; }
.onair-list b { font-family: var(--f-jp); font-weight: 400; color: var(--pink); }
.onair-note { font-size: .78rem; color: var(--muted); line-height: 1.7; }

/* ════════ STORY ════════ */
.story-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.novel { border-radius: 20px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.novel p { margin-bottom: 1em; font-size: 1.01rem; line-height: 1.95; }
.novel-chip { display: inline-block; font-family: var(--f-jp); font-size: .78rem; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 3px 10px; margin-bottom: 16px; transform: rotate(-1.5deg); }
.novel .novel-lead { font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.35; }
.novel .line { font-family: var(--f-hand); font-weight: 700; font-size: 1.28rem; line-height: 1.45; padding: .55em 1em; border-left: 5px solid var(--sky); background: #EEF8FF; border-radius: 0 12px 12px 0; }
.novel .line--sb { border-left-color: var(--pink); background: #FFF0F5; font-size: 1.6rem; }
.novel .line b { font-family: var(--f-display); font-weight: 400; font-size: .78em; margin-right: .6em; padding: 1px 8px; border-radius: 4px; background: var(--ink); color: #fff; vertical-align: .12em; }
.skill-get { display: inline-block; font-family: var(--f-display); background: var(--ink); color: var(--yellow); padding: .05em .55em; border-radius: 6px; box-shadow: 0 0 16px rgba(255, 210, 63, .7); }
.novel .pull { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; margin: 1.1em 0; }
.pull em { font-style: normal; background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 .1em; }

.koma { display: flex; flex-direction: column; gap: 12px; }
.koma-title { font-family: var(--f-display); font-size: 1.2rem; }
.koma-title b { font-weight: 400; color: var(--pink); }
.panel { position: relative; aspect-ratio: 16 / 10; background: #fff; border: 3px solid var(--ink); overflow: hidden; container-type: inline-size; box-shadow: 4px 4px 0 var(--ink); }
.panel .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.p2 { background: repeating-conic-gradient(from 0deg at 22% 64%, #fff 0deg 4deg, #FFE9A8 4deg 9deg); }
.pno { position: absolute; left: 6px; bottom: 6px; z-index: 2; font-family: var(--f-jp); font-size: .75rem; line-height: 1; background: var(--ink); color: #fff; border-radius: 4px; padding: 3px 6px; }
.bubble {
  position: absolute; z-index: 2;
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(11px, 4.3cqw, 19px); line-height: 1.2;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px;
  padding: .45em .65em; text-align: center; word-break: keep-all;
}
.bubble::after { content: ''; position: absolute; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.b-l::after { left: 22%; transform: rotate(35deg) skew(10deg, 10deg); }
.b-r::after { right: 22%; transform: rotate(55deg) skew(10deg, 10deg); }
.koma-sfx { position: absolute; left: 30%; top: 12%; z-index: 2; font-family: var(--f-display); font-size: clamp(22px, 11cqw, 52px); color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; transform: rotate(-10deg); }
.koma-note { position: absolute; left: 38%; bottom: 8%; z-index: 2; font-family: var(--f-hand); font-weight: 700; font-size: clamp(11px, 4cqw, 17px); color: var(--muted); transform: rotate(-6deg); }

/* ════════ CHARACTER ════════ */
.chara-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-bottom: 30px; }
.chara-tab { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-display); font-size: .82rem; line-height: 1.2; text-align: center; }
.chara-tab .thumb { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c, #fff); overflow: hidden; box-shadow: 3px 3px 0 var(--ink); transition: transform .18s, box-shadow .18s; }
.chara-tab .thumb svg { width: 100%; height: 100%; transform: translateY(6%) scale(1.12); }
.chara-tab:hover .thumb { transform: translateY(-3px); }
.chara-tab[aria-selected="true"] .thumb { transform: translateY(-5px) scale(1.08); box-shadow: 5px 5px 0 var(--ink); }
.chara-tab[aria-selected="true"] .tab-name { background: var(--ink); color: #fff; border-radius: 4px; padding: 0 6px; }
.chara-card { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.chara-visual { position: relative; display: grid; place-items: center; min-height: 420px; background: var(--c, var(--yellow)); border-right: 3px solid var(--ink); overflow: hidden; transition: background-color .35s; }
.chara-visual::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.28) 0deg 8deg, transparent 8deg 20deg); animation: spin 60s linear infinite; }
.chara-visual::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(27,27,31,.14) 1.4px, transparent 1.7px); background-size: 12px 12px; }
.chara-portrait { position: relative; z-index: 1; width: 76%; max-width: 330px; filter: drop-shadow(6px 6px 0 rgba(27,27,31,.25)); }
.chara-portrait.swap { animation: portraitIn .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes portraitIn { from { opacity: 0; transform: translateY(24px) scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }
.chara-jp { position: absolute; right: 16px; top: 16px; z-index: 2; writing-mode: vertical-rl; font-family: var(--f-jp); font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: .12em; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.chara-info { padding: clamp(22px, 3.6vw, 38px); }
.chara-role { display: inline-block; font-family: var(--f-display); font-size: .85rem; background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 6px; }
.chara-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; margin: .25em 0 .15em; }
.chara-cv { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.chara-cv b { color: var(--ink); }
.chara-desc { line-height: 1.85; margin-bottom: 16px; font-size: .97rem; }
.skills { display: grid; gap: 8px; margin-bottom: 18px; }
.skill { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: .9rem; line-height: 1.55; }
.skill b { font-family: var(--f-display); font-weight: 400; background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; padding: 0 8px; white-space: nowrap; }
.stats { display: grid; gap: 9px; margin-bottom: 20px; }
.stat { display: grid; grid-template-columns: 7.6em 1fr 3.2em; gap: 10px; align-items: center; font-size: .84rem; font-weight: 700; }
.stat output { font-family: var(--f-jp); font-weight: 400; text-align: right; font-size: .82rem; }
.bar { height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #F1EAD9; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--c, var(--yellow)); border-right: 2.5px solid var(--ink); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.bar i.hatch { background: repeating-linear-gradient(45deg, var(--ink) 0 4px, transparent 4px 9px); border-right: 0; }
.bar i.zero { border-right: 0; }
.quote-bubble { position: relative; font-family: var(--f-hand); font-weight: 700; font-size: 1.32rem; line-height: 1.4; background: #FFF6D6; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 18px; }
.quote-bubble::before { content: '“'; position: absolute; left: -10px; top: -26px; font-family: var(--f-jp); font-size: 3.2rem; line-height: 1; color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* ════════ STAFF & CAST ════════ */
.credits {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  color: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(26px, 5vw, 56px);
  background-color: var(--night);
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 82% 12%, #fff6 50%, transparent 51%), radial-gradient(1.8px 1.8px at 60% 78%, #fff7 50%, transparent 51%), radial-gradient(1.2px 1.2px at 28% 88%, #fff5 50%, transparent 51%), radial-gradient(1.4px 1.4px at 92% 62%, #fff6 50%, transparent 51%), linear-gradient(160deg, var(--night2), var(--night));
}
.credits-h { font-family: var(--f-jp); font-weight: 400; font-size: 1.5rem; letter-spacing: .14em; color: var(--yellow); text-align: center; margin-bottom: 20px; }
.credits dl { display: grid; grid-template-columns: auto 1fr; gap: 11px 18px; align-items: baseline; }
.credits dt { font-size: .82rem; color: #B9B3F5; text-align: right; white-space: nowrap; }
.credits dd { font-weight: 700; font-size: .98rem; line-height: 1.45; }
.credits dd small { display: block; font-weight: 400; font-size: .78rem; color: #C9C5F0; }
.credits-note { margin-top: 26px; text-align: center; font-family: var(--f-hand); font-size: 1.2rem; font-weight: 700; color: #ECE9FF; line-height: 1.4; border-top: 2px dashed rgba(255,255,255,.25); padding-top: 18px; }
.credits-note small { font-size: .85rem; color: var(--yellow); }

/* ════════ MUSIC ════════ */
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.track { display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; align-items: center; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.jacket { position: relative; width: clamp(110px, 14vw, 140px); aspect-ratio: 1; margin-right: 26px; }
.disc-wrap { position: absolute; inset: 5%; transition: transform .55s cubic-bezier(.3,1.2,.5,1); }
.disc { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle, #fff 0 9%, var(--ink) 9.5% 12%, #3A3A44 12.5% 30%, #1E1E24 31% 58%, #45454F 59% 61%, #1E1E24 62% 100%); }
.jacket-art { position: absolute; inset: 0; z-index: 2; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.jacket-art svg { position: absolute; width: 86%; left: 7%; bottom: -10%; }
.jacket-art span { position: absolute; left: 8px; top: 6px; font-family: var(--f-jp); font-size: 1.1rem; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.ja-op { background: repeating-conic-gradient(from 0deg at 50% 60%, var(--yellow) 0 12deg, #FFE68A 12deg 24deg); }
.ja-ed { background: linear-gradient(180deg, #2E2A78, #7E5FD6); }
.track.playing .disc-wrap { transform: translateX(34%); }
.track.playing .disc { animation: spin 1.8s linear infinite; }
.track-type { display: inline-block; font-family: var(--f-jp); font-size: .7rem; letter-spacing: .06em; background: var(--pink); color: #fff; padding: 2px 9px; border-radius: 4px; }
.track-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.25; margin: .35em 0 .3em; word-break: keep-all; }
.track-meta { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.track-memo { font-size: .8rem; margin-top: 4px; font-weight: 700; }
.play { margin-top: 12px; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; }
.track.playing .eq { display: inline-flex; }
.track.playing .eq i { animation: eq .5s ease-in-out infinite alternate; }
.track.playing .eq i:nth-child(2) { animation-delay: .15s; } .track.playing .eq i:nth-child(3) { animation-delay: .3s; } .track.playing .eq i:nth-child(4) { animation-delay: .08s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.karaoke { grid-column: 1 / -1; min-height: 3.4em; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .1em; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: rgba(255,255,255,.55); font-family: var(--f-display); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.3; text-align: center; }
.karaoke span { transition: color .08s; }
.karaoke span.on { color: var(--yellow); text-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.karaoke .sp { width: .35em; }
.album { margin-top: 28px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 20px 22px; }
.album-title { font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 10px; }
.album-title b { font-weight: 400; color: var(--pink); }
.album-list { list-style: none; counter-reset: trk; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.album-list li { counter-increment: trk; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; border-bottom: 2px dotted rgba(27,27,31,.18); font-size: .92rem; }
.album-list li::before { content: counter(trk, decimal-leading-zero); font-family: var(--f-jp); font-size: .8rem; color: var(--pink); }
.album-list span { font-size: .8rem; color: var(--muted); }

/* ════════ SPECIAL ════════ */
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sp-wide { grid-column: 1 / -1; }
.sp-stack { display: grid; gap: 24px; }
.sp-card { position: relative; border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3.2vw, 32px); overflow: hidden; }
.sp-no { display: inline-block; font-family: var(--f-jp); font-size: .72rem; letter-spacing: .08em; color: #fff; background: var(--ink); padding: 3px 10px; border-radius: 999px; }
.sp-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.25; margin: .45em 0 .25em; }
.sp-title small { font-size: .62em; color: var(--pink); }
.sp-desc { font-size: .92rem; color: var(--ink2); margin-bottom: 18px; line-height: 1.7; }
.sp-desc small { color: var(--muted); }

/* 01 주문 */
.spell { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.spell-stage { position: relative; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 50% 42%, #FFF9E0, #FFE58F 58%, #FFC94A); box-shadow: 5px 5px 0 var(--ink); }
.spell-head { position: absolute; left: 14%; top: 16%; width: 72%; transform-origin: 50% 90%; }
.spell-head.pray { animation: rub .5s ease; }
.sprout { position: absolute; left: calc(50% + var(--dx, 0px) - 13px); top: 8%; width: 26px; height: 50px; transform-origin: 50% 100%; animation: sprout 2.1s ease-in forwards; pointer-events: none; }
.sprout svg { width: 100%; height: 100%; overflow: visible; }
@keyframes sprout {
  0% { transform: scaleY(0); opacity: 1; }
  22% { transform: scaleY(1.1); }
  30% { transform: scaleY(1); }
  52% { transform: rotate(0deg); opacity: 1; }
  100% { transform: translate(60px, 190px) rotate(200deg); opacity: 0; }
}
.twinkle-pop { position: absolute; font-size: 1.2rem; color: #fff; text-shadow: 0 0 8px var(--yellow2); animation: twPop .9s ease-out forwards; pointer-events: none; }
@keyframes twPop { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(.8) translateY(-24px); } }
.btn--spell { font-size: clamp(1.15rem, 2.6vw, 1.45rem); padding: .85em 1.5em; background: var(--mint); }
.spell-msg { min-height: 3.2em; margin: 14px 0; font-family: var(--f-hand); font-weight: 700; font-size: 1.3rem; line-height: 1.35; }
.spell-msg.pop { animation: msgPop .35s ease; }
@keyframes msgPop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.spell-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spell-stat { border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 6px; text-align: center; background: var(--paper); }
.spell-stat b { display: block; font-family: var(--f-jp); font-weight: 400; font-size: clamp(1.1rem, 3vw, 1.55rem); line-height: 1.2; word-break: break-all; }
.spell-stat span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.spell-rate { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.spell-rate b { font-family: var(--f-jp); font-weight: 400; color: var(--ink); }

/* 02 가챠 */
.gacha-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.wallet { font-family: var(--f-display); font-size: 1.05rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 16px; }
.wallet b { font-family: var(--f-jp); font-weight: 400; color: var(--yellow); font-size: 1.15em; }
.wallet.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.gacha-links { display: flex; gap: 14px; }
.gacha-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }
.gacha-result { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 14px); min-height: 150px; perspective: 900px; }
.gacha-result.single { grid-template-columns: minmax(0, 190px); justify-content: center; }
.gacha-empty { grid-column: 1 / -1; align-self: center; text-align: center; font-family: var(--f-hand); font-weight: 700; font-size: 1.25rem; color: var(--muted); border: 3px dashed rgba(27,27,31,.25); border-radius: 16px; padding: 28px 12px; }
.gcard { position: relative; aspect-ratio: 3 / 4; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #EFEFEF; box-shadow: 3px 3px 0 var(--ink); animation: cardIn .55s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--i, 0) * 85ms); cursor: help; }
@keyframes cardIn { from { opacity: 0; transform: rotateY(90deg) translateY(10px); } to { opacity: 1; transform: none; } }
.gcard.R { background: #CDEBFF; }
.gcard.SR { background: #E6D4FF; }
.gcard.SSR { background: linear-gradient(135deg, #FFE27A, #FFB800 55%, #FF8FB5); }
.gcard.SSR.rays { background: repeating-conic-gradient(from 0deg at 50% 42%, #FFF3B0 0 10deg, #FFC530 10deg 20deg); }
.gcard.UR { background: linear-gradient(135deg, #ff9a9e, #fad0c4 25%, #a1c4fd 50%, #c2e9fb 70%, #d4fc79); }
.gcard.SSR::after, .gcard.UR::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, transparent 60%); background-size: 250% 100%; animation: holo 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes holo { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.gcard .rar { position: absolute; left: 4px; top: 4px; z-index: 2; font-family: var(--f-jp); font-size: clamp(.5rem, 1.2vw, .68rem); line-height: 1; color: #fff; background: var(--ink); border-radius: 4px; padding: 3px 5px; }
.gcard.SSR .rar, .gcard.UR .rar { background: var(--pink); }
.gcard .emo { position: absolute; right: 4px; top: 3px; z-index: 2; font-size: clamp(.8rem, 2vw, 1.15rem); line-height: 1; }
.gcard svg { width: 82%; margin: 16% auto 0; overflow: visible; }
.gcard .nm { margin-top: auto; background: #fff; border-top: 2.5px solid var(--ink); font-size: clamp(.5rem, 1.25vw, .72rem); font-weight: 900; line-height: 1.2; text-align: center; padding: 4px 3px; word-break: keep-all; }
.gacha-result.single .gcard .nm { font-size: .85rem; }
.gacha-result.single .gcard .rar { font-size: .8rem; }
.gacha-result.single .gcard .emo { font-size: 1.5rem; }
.gacha-best { margin-top: 16px; font-size: .92rem; line-height: 1.6; min-height: 1.6em; }
.gacha-best b { font-family: var(--f-display); font-weight: 400; }
.rarity-chip { display: inline-block; font-family: var(--f-jp); font-size: .72rem; color: #fff; background: var(--ink); border-radius: 4px; padding: 1px 6px; margin-right: 4px; vertical-align: .1em; }

/* 03 퀴즈 */
.quiz-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.quiz-progress i { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.quiz-progress i.done { background: var(--mint); }
.quiz-progress i.now { background: var(--yellow); }
.quiz-q { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.4; margin-bottom: 14px; }
.quiz-q small { display: block; font-family: var(--f-jp); font-size: .7rem; color: var(--pink); margin-bottom: 4px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { border: 2.5px solid var(--ink); border-radius: 14px; padding: 12px 12px; background: var(--paper); text-align: left; font-weight: 700; font-size: .92rem; line-height: 1.35; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, background-color .2s; }
.quiz-opt:hover:not(:disabled) { transform: translate(-1px, -1px); background: #FFF0B8; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: var(--mint); }
.quiz-opt.wrong { background: #FFB3C1; }
.quiz-opt.dim { opacity: .55; }
.quiz-feedback { min-height: 2.9em; margin: 14px 0 10px; font-family: var(--f-hand); font-weight: 700; font-size: 1.22rem; line-height: 1.35; }
.quiz-result { text-align: center; }
.quiz-result .score { font-family: var(--f-jp); font-size: 3rem; line-height: 1.1; }
.quiz-result .score small { font-size: .4em; }
.quiz-result .rank { font-family: var(--f-display); font-size: 1.5rem; margin: 6px 0; }
.quiz-result p { margin-bottom: 14px; font-size: .95rem; }

/* 04 정전 · 05 어록 */
.saying { position: relative; background: #FFF6D6; border: 3px solid var(--ink); border-radius: 18px; padding: 18px 20px 14px; margin-bottom: 16px; }
.saying p { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.35; min-height: 2.7em; }
.saying p.pop { animation: msgPop .35s ease; }
.saying footer { margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); text-align: right; }
.saying::after { content: ''; position: absolute; left: 30px; bottom: -13px; width: 20px; height: 20px; background: #FFF6D6; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.saying-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.blackout {
  position: fixed; inset: 0; z-index: 250; touch-action: none; cursor: none;
  --x: 50vw; --y: 45vh;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 246, 205, .18) 0, rgba(255, 246, 205, 0) 80px, rgba(4, 4, 16, .965) 230px);
}
.blackout .bulb { position: absolute; left: var(--x); top: var(--y); width: 70px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 14px #fff6c8) drop-shadow(0 0 34px #FFD23F); pointer-events: none; }
.blackout .hdr-glow { position: absolute; left: var(--x); top: var(--y); width: 300px; height: 300px; transform: translate(-50%, -50%); pointer-events: none; dynamic-range-limit: no-limit; animation: hdrBreath 2.4s ease-in-out infinite; }
.blackout .hdr-glow--vid { object-fit: cover; -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 22%, rgba(0,0,0,.45) 48%, transparent 82%); mask-image: radial-gradient(circle closest-side, #000 0, #000 22%, rgba(0,0,0,.45) 48%, transparent 82%); }
@keyframes hdrBreath { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .blackout .hdr-glow { animation: none; } }
.blackout-cap { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 24px); transform: translateX(-50%); color: #fff; font-family: var(--f-hand); font-weight: 700; font-size: 1.3rem; white-space: nowrap; text-shadow: 0 2px 0 #000; pointer-events: none; }
.blackout-off { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translateX(-50%); cursor: pointer; }
.blackout-off:hover { transform: translateX(-50%) translate(-2px, -2px); }

/* ════════ GOODS ════════ */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.good { border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s; }
.good:hover { transform: translateY(-4px) rotate(-.6deg); }
.good-img { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--g, var(--yellow)); border-bottom: 3px solid var(--ink); font-size: clamp(3rem, 6vw, 4.2rem); overflow: hidden; }
.good-img svg { height: 82%; width: auto; }
.good-img::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(27,27,31,.12) 1.3px, transparent 1.6px); background-size: 11px 11px; }
.good-img > * { position: relative; }
.good-badge { position: absolute !important; left: 10px; top: 10px; font-family: var(--f-display); font-size: .78rem; line-height: 1.2; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; }
.good.soldout .good-img::after { content: 'SOLD OUT'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-family: var(--f-jp); font-size: clamp(1.3rem, 3vw, 1.8rem); color: #E0213F; border: 4px solid #E0213F; border-radius: 10px; padding: 2px 12px; background: rgba(255,255,255,.85); white-space: nowrap; }
.good-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.good-name { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }
.good-note { font-size: .86rem; color: var(--ink2); flex: 1; line-height: 1.6; }
.good-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.good-price { font-family: var(--f-jp); font-size: 1.15rem; }
.good-foot .btn { font-size: .88rem; padding: .5em 1em; }
.goods-note { margin-top: 26px; font-size: .88rem; color: var(--ink2); text-align: center; }

/* ════════ FAN LETTER ════════ */
.fl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.letter-form {
  position: relative; border-radius: 20px; box-shadow: var(--shadow);
  padding: clamp(22px, 3.5vw, 30px);
  background-color: #FFFDF6;
  background-image: repeating-linear-gradient(transparent 0 31px, #EFE3C8 31px 32px);
}
.stamp { position: absolute; top: -20px; right: 18px; width: 78px; padding: 6px 6px 4px; background: #fff; border: 2.5px dashed var(--ink); transform: rotate(7deg); box-shadow: 3px 3px 0 rgba(27,27,31,.2); text-align: center; }
.stamp svg { width: 100%; background: var(--sky); border-radius: 4px; }
.stamp span { display: block; font-family: var(--f-jp); font-size: .6rem; line-height: 1.4; }
.form-title { font-family: var(--f-display); font-size: 1.5rem; }
.form-sub { font-size: .88rem; color: var(--ink2); margin: 4px 0 16px; padding-right: 76px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: .92rem; }
.field small { font-family: var(--f-body); font-size: .75rem; font-weight: 700; color: var(--muted); }
.input { width: 100%; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; outline: none; transition: box-shadow .15s; }
.input:focus { box-shadow: 0 0 0 4px rgba(255, 210, 63, .7); }
textarea.input { min-height: 130px; resize: vertical; font-family: var(--f-hand); font-size: 1.28rem; line-height: 1.45; }
.form-error { margin: 2px 0 12px; font-size: .88rem; font-weight: 700; color: #D6204A; }
.form-submit { width: 100%; font-size: 1.12rem; }

.letters-head { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 18px; }
.letters-head b { font-family: var(--f-jp); font-weight: 400; color: var(--pink); }
.letters-head span { font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--muted); }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 20px; align-items: start; }
.letter { position: relative; background: var(--lc, #FFF3B0); border: 2.5px solid var(--ink); border-radius: 6px 6px 18px 6px; padding: 20px 16px 12px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(var(--rot, 0deg)); transition: transform .2s, opacity .3s; animation: letterIn .45s ease both; }
.letter:hover { transform: rotate(0deg) scale(1.02); z-index: 1; }
.letter::before { content: ''; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; background: rgba(255,255,255,.65); border: 1.5px solid rgba(27,27,31,.15); transform: translateX(-50%) rotate(-3deg); }
.letter.bye { opacity: 0; transform: scale(.9) rotate(8deg); }
@keyframes letterIn { from { opacity: 0; transform: translateY(12px) rotate(var(--rot, 0deg)); } }
.letter-no { position: absolute; left: 10px; top: 8px; font-family: var(--f-jp); font-size: .62rem; color: rgba(27,27,31,.5); }
.letter-del { position: absolute; right: 8px; top: 7px; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: .72rem; font-weight: 900; line-height: 1; opacity: .55; transition: opacity .15s, background-color .15s; }
.letter-del:hover, .letter-del:focus-visible { opacity: 1; background: var(--pink); color: #fff; }
.letter-msg { font-family: var(--f-hand); font-weight: 700; font-size: 1.3rem; line-height: 1.4; white-space: pre-line; word-break: break-word; overflow-wrap: anywhere; margin-top: 8px; }
.letter-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 12px; }
.letter-name { font-family: var(--f-display); font-size: .95rem; word-break: break-all; }
.letter-date { font-size: .7rem; color: var(--muted); }
.letter-react { margin-top: 10px; padding-top: 8px; border-top: 2px dashed rgba(27,27,31,.22); font-size: .8rem; line-height: 1.5; color: var(--ink2); }
.letters-empty { grid-column: 1 / -1; text-align: center; font-family: var(--f-hand); font-weight: 700; font-size: 1.25rem; color: var(--muted); border: 3px dashed rgba(27,27,31,.25); border-radius: 16px; padding: 40px 12px; }

/* ════════ FOOTER ════════ */
.foot { background: var(--night); color: #E9E6FF; text-align: center; border-top: 3px solid var(--ink); padding: 56px 0 calc(56px + env(safe-area-inset-bottom, 0px)); }
.foot-logo { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.5; color: #fff; }
.foot-logo b { font-weight: 400; font-size: clamp(1.25rem, 3.4vw, 1.7rem); color: var(--yellow); }
.foot-legal { font-size: .82rem; line-height: 1.9; color: #B9B3F5; margin-top: 16px; }
.foot-legal b { color: #fff; }
.foot-copy { font-family: var(--f-jp); font-size: .72rem; margin-top: 18px; color: var(--yellow); letter-spacing: .04em; }

/* ════════ 떠다니는 것들 ════════ */
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 34px; margin-top: -4px; }
.to-top span { position: absolute; bottom: -9px; font-family: var(--f-jp); font-size: .6rem; background: var(--ink); color: #fff; padding: 1px 6px; border-radius: 4px; }
.to-top.fly { animation: fly .7s ease-in forwards; }
@keyframes fly { to { transform: translateY(-110vh) rotate(-20deg); } }

.sfx-pop { position: fixed; z-index: 280; pointer-events: none; font-family: var(--f-jp); font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); animation: sfxUp .95s ease-out forwards; }
@keyframes sfxUp { 0% { opacity: 0; scale: .4; } 20% { opacity: 1; scale: 1.2; } 100% { opacity: 0; scale: 1; translate: 0 -60px; } }

.flash { position: fixed; inset: 0; z-index: 400; background: #fff; pointer-events: none; animation: flash 1s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 10% { opacity: .92; } 100% { opacity: 0; } }

.confetti { position: fixed; top: -20px; z-index: 390; width: 10px; height: 14px; pointer-events: none; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); } }

.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 420; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: .92rem; line-height: 1.5; text-align: center; box-shadow: 4px 4px 0 var(--yellow); animation: toastIn .3s cubic-bezier(.2,1.3,.4,1) both; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ════════ DIALOG ════════ */
dialog { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 0; margin: auto; color: var(--ink); background: #fff; max-width: min(92vw, 460px); width: 100%; max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: rgba(18, 15, 58, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open] { animation: popIn .35s cubic-bezier(.2,1.3,.4,1); }
.dlg-in { position: relative; padding: 24px; }
.dlg-title { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 4px; }
.dlg-sub { font-size: .9rem; color: var(--ink2); margin-bottom: 14px; }
.dlg .input { margin-bottom: 12px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dlg--wide { max-width: min(94vw, 720px); }
.dlg-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 50%; font-weight: 900; background: #fff; }
.rates { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: .9rem; }
.rates th, .rates td { border: 2px solid var(--ink); padding: 7px 10px; text-align: left; }
.rates th { background: var(--ink); color: #fff; font-weight: 700; }
.rates td:last-child { font-family: var(--f-jp); white-space: nowrap; }
.rates small { color: var(--muted); }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-top: 12px; }
.dex .gcard { animation: none; cursor: default; }
.dex .gcard.locked { background: #D9D6CF; }
.dex .gcard.locked svg { filter: brightness(0) opacity(.25); }
.dex-desc { font-size: .72rem; line-height: 1.4; color: var(--ink2); margin-top: 4px; text-align: center; }
.dex-item .gcard .nm { font-size: .68rem; }

.pv { max-width: min(94vw, 900px); background: #0B0A1C; color: #fff; border-color: var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid #2A2750; }
.pv-label { font-family: var(--f-display); font-size: 1.05rem; }
.pv-hd { font-family: var(--f-jp); font-size: .6rem; border: 1.5px solid #fff; border-radius: 3px; padding: 0 4px; }
.pv-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 900; }
.pv-screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; container-type: inline-size; }
.pv-screen::before, .pv-screen::after { content: ''; position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 3; }
.pv-screen::before { top: 0; } .pv-screen::after { bottom: 0; }
.pv-cut { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 8%; font-family: var(--f-display); font-size: clamp(22px, 7cqw, 64px); line-height: 1.25; }
.pv-cut > * { animation: cutIn 1.4s ease both; }
.pv-cut .small { font-size: .5em; color: #aaa; }
.pv-cut .glow { color: var(--yellow); text-shadow: 0 0 20px rgba(255,210,63,.9), 0 0 60px rgba(255,210,63,.6); }
.pv-cut .bang { color: var(--yellow); font-size: 1.6em; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; }
.pv-cut.white { background: #fff; color: var(--ink); }
.pv-cut .pv-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.05; }
.pv-logo .jp { font-family: var(--f-jp); font-size: .32em; color: var(--yellow); margin-bottom: .3em; }
.pv-logo .t1, .pv-logo .t3 { font-size: .62em; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.pv-logo .t2 { font-size: 1.05em; color: var(--yellow); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--pink); transform: rotate(-3deg); }
.pv-logo .date { font-size: .3em; margin-top: .8em; color: #fff; background: var(--pink); padding: .2em .8em; border-radius: 999px; }
.pv-sil { width: 22cqw; filter: drop-shadow(0 0 30px #FFE9A0); }
@keyframes cutIn { 0% { opacity: 0; transform: scale(1.08); letter-spacing: .08em; } 25% { opacity: 1; transform: none; letter-spacing: 0; } 85% { opacity: 1; } 100% { opacity: .9; } }
.pv-play { position: absolute; left: 50%; top: 50%; z-index: 4; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #fff; background: rgba(255, 79, 139, .9); color: #fff; font-size: 2rem; padding-left: 6px; box-shadow: 0 0 0 8px rgba(255,255,255,.15); }
.pv-play:hover { background: var(--pink); }
.pv-play.replay { left: auto; top: auto; right: 4%; bottom: 13%; width: 58px; height: 58px; transform: none; font-size: 1.5rem; padding-left: 0; }
.pv-bar { height: 6px; background: #2A2750; }
.pv-bar i { display: block; height: 100%; width: 0; background: var(--pink); }
.pv-foot { font-size: .72rem; color: #9C98C8; padding: 8px 14px 12px; }

/* ════════ 스크롤 등장 ════════ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ════════ 반응형 ════════ */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr; }
  .onair { position: static; }
  .story-grid { grid-template-columns: 1fr; }
  .koma { max-width: 520px; width: 100%; margin-inline: auto; }
  .music-grid { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .fl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .kv-grid { grid-template-columns: 1fr; }
  .kv-art { max-width: 400px; margin-top: 12px; }
  .chara-card { grid-template-columns: 1fr; }
  .chara-visual { min-height: 300px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .chara-portrait { width: 56%; }
  .credits { grid-template-columns: 1fr; }
  .sp-grid { grid-template-columns: 1fr; }
  .spell { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .spell-stage { width: min(240px, 70vw); }
  .spell-side { width: 100%; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav-logo span { display: none; }
  .nav-links { justify-content: flex-start; }
  .news-item summary { grid-template-columns: auto 1fr auto; grid-template-areas: "date tag toggle" "title title title"; row-gap: 6px; }
  .news-date { grid-area: date; }
  .news-tag { grid-area: tag; justify-self: start; }
  .news-title { grid-area: title; }
  .news-toggle { grid-area: toggle; }
  .credits dl { grid-template-columns: 1fr; gap: 2px; text-align: center; }
  .credits dt { text-align: center; margin-top: 10px; }
  .track { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .jacket { margin-right: 0; margin-bottom: 4px; }
  .track.playing .jacket { transform: translateX(-16%); transition: transform .5s; }
  .album-list { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .gacha-btns .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .sfx-bj { left: -2%; }
  .kv-bubble { left: -2%; }
  .kv-hint { right: 0; bottom: 18%; font-size: .95rem; }
  .burst { left: -2%; }
}
@media (max-width: 480px) {
  .goods-grid { grid-template-columns: 1fr; }
  .spell-stats { gap: 6px; }
  .letters { grid-template-columns: 1fr; }
  .gacha-result { gap: 5px; }
  .gcard { border-width: 2px; border-radius: 7px; box-shadow: 2px 2px 0 var(--ink); }
  .gcard .nm { border-top-width: 2px; padding: 3px 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
