/* Shared fixed tab bar and toast geometry. */
.cinema-home {
  --tabbar-control-height: 54px;
  --tabbar-height: calc(var(--tabbar-control-height) + 2 * var(--space-1) + var(--safe-b) + 1px);
}

/* EPIDOKI 홈 v3 — home.css 뒤에 읽는다.
   방향: 인쇄물처럼 정돈한다. 괘선·세로쓰기·여백·명조. 그라데이션과 큰 둥근 모서리를 줄이고, 색은 브랜드 색(플럼·로즈·아이보리)만 쓴다.
   1 공통 · 2 탭바 · 3 히어로 버튼 · 4 피드(札·幕·背表紙) · 5 퀴즈 · 6 占い · 7 호버·포커스 */

/* ───── 1. 공통 ───── */
:root { --paper: var(--paper-1); --paper2: var(--paper-2); --hair: var(--line-on-paper); --hair2: var(--ink-6); --hair-l: var(--line-strong); --night: var(--surface-1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .09 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { font-feature-settings: "palt"; }
.feed { background-color: var(--paper); }
.feed::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); mix-blend-mode: multiply; opacity: .7; }
.feed > * { position: relative; }
.maku { flex: 0 0 auto; writing-mode: vertical-rl; display: inline-flex; align-items: center; gap: .7em; padding-right: var(--space-3); border-right: 1px solid var(--ink); font: 700 var(--text-2xs)/1 var(--f-min); letter-spacing: .34em; color: var(--ink); white-space: nowrap; }
.maku i { font-style: normal; color: var(--rose-d); letter-spacing: .2em; }
.maku.light { color: var(--ivory); border-color: var(--hair-l); }

/* ───── 2. 탭바: 바닥에 붙은 먹색 띠 + 가는 선 ───── */
.tabbar { bottom: 0; width: var(--w); padding: var(--space-1) var(--space-1) calc(var(--safe-b) + var(--space-1)); border-radius: var(--r-none); border: 0; border-top: 1px solid var(--hair-l); box-shadow: var(--shadow-none); background: var(--black-90); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tab-ind { top: -1px; bottom: auto; left: 6px; height: 2px; width: calc((100% - 12px) / 5); border-radius: var(--r-none); background: none; transition: transform 520ms var(--ease); }
.tab-ind::after { content: ''; position: absolute; left: 50%; top: 0; width: 26px; height: 2px; margin-left: -13px; background: var(--rose); }
.tabbar button { height: var(--tabbar-control-height); gap: var(--space-1); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .12em; color: var(--text-muted); transition: color 220ms; -webkit-tap-highlight-color: transparent; }
.tabbar svg { width: 22px; height: 22px; stroke-width: 1.5; transition: transform 320ms var(--spring), stroke 220ms; }
.tabbar button.on { color: var(--ivory); }
.tabbar button.on svg { stroke: var(--ivory); }

.mini-quiz { border-radius: var(--r-sm); transition: background 220ms; }

/* ───── 3. 히어로 버튼 ───── */
.cta-main { border-radius: var(--r-md); background: var(--rose); box-shadow: var(--shadow-primary); transition: transform 260ms var(--ease), box-shadow 260ms; }
.cta-main > svg { animation: none; }
.cta-listen, .cta-watch { border-radius: var(--r-md); transition: background 220ms, border-color 220ms, transform 220ms var(--ease); }

/* ───── 4. 피드 ───── */
.dark-zone { padding: var(--space-1) var(--space-4) var(--space-5); background: var(--plum); }
.dark-zone + .sec { margin-top: var(--space-7); }
.sec { margin-top: 62px; }
.sec-head { justify-content: flex-start; align-items: stretch; gap: var(--space-3); margin: var(--space-0) var(--space-1) var(--space-4); }
.sec-head small { font: 700 var(--text-2xs)/1 var(--f-ko); letter-spacing: .3em; color: var(--ink3); }
.sec-head h2 { margin: var(--space-2) var(--space-0) var(--space-0); font: 700 var(--text-lg)/1.45 var(--f-min); letter-spacing: .02em; }
.sec-head .sec-note { margin-left: auto; align-self: flex-end; }
/* 札: 바로가기 3장 */
.quick { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-3); }
.qk, .qk-quiz { min-height: 116px; padding: var(--space-3) var(--space-3) var(--space-3); border-radius: var(--r-sm); border: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-low); overflow: hidden; transition: transform 320ms var(--ease), box-shadow 320ms; }
.qk::before { content: attr(data-n); position: absolute; right: 9px; top: 12px; writing-mode: vertical-rl; font: 700 var(--text-2xs)/1 var(--f-min); letter-spacing: .3em; color: var(--ink3); }
.qk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: 0 50%; transition: transform 420ms var(--ease); }
.qk-quiz::after { transform: scaleX(1); }
.qk-ic, .qk-quiz .qk-ic { width: auto; height: auto; margin-bottom: auto; border-radius: var(--r-none); background: none; }
.qk-ic svg, .qk-quiz .qk-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--ink); stroke-width: 1.4; animation: none; }
.qk-quiz .qk-ic svg { stroke: var(--rose-d); }
.qk b { margin-top: var(--space-5); font: 700 var(--text-md)/1.2 var(--f-min); letter-spacing: .04em; }
.qk small, .qk-quiz small { margin-top: var(--space-1); font: 600 var(--text-2xs)/1.3 var(--f-ja); color: var(--ink3); }
.cont { border-radius: var(--r-sm); background: var(--ivory-6); border-color: var(--hair-l); transition: background 260ms, transform 320ms var(--ease); }
.cont-media { border-radius: var(--r-sm); } .cont-prog { height: 2px; } .cont-prog i { background: var(--rose); }

.today-lead { width: var(--w); margin: var(--space-0) auto; padding: var(--space-0) var(--space-4) var(--space-4); background: var(--plum); }
.today-lead .h-top { position: relative; padding: calc(var(--safe-t) + var(--space-3)) var(--space-0) var(--space-3); }
.today-lead .cont { display: block; overflow: hidden; padding: var(--space-0); }
.today-lead .cont-media { height: auto; aspect-ratio: 5 / 4; border-radius: var(--r-none); background-position: 50% 24%; }
.today-lead .cont-media video { object-position: 50% 24%; }
.today-lead .cont-body { position: relative; padding: var(--space-4) var(--space-4) var(--space-4); }
.today-lead .cont-kicker { margin: var(--space-0); font-size: var(--text-xs); }
.today-lead .cont-title { font: 700 var(--text-lg)/1.35 var(--f-min); }
.today-lead .cont-ep { font-size: var(--text-xs); }
.cont-open { display: grid; place-items: center; min-height: 46px; margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
  background: var(--rose); color: var(--ink); font: 700 var(--text-sm)/1.3 var(--f-ja); }
.cont-preview { border: 1px solid var(--hair-l); background: var(--ivory-6); color: var(--ivory); }
.cont-preview.playing { color: var(--rose-l); border-color: var(--rose); }
.cont-release { margin: var(--space-3) var(--space-0) var(--space-0); color: var(--rose-l); font: 700 var(--text-sm)/1.5 var(--f-ja); }
.today-lead [hidden] { display: none; }
.td-task-list > summary { margin-top: var(--space-3); padding: var(--space-3) var(--space-3); border: 1px solid var(--hair-l); border-radius: var(--r-sm);
  color: var(--ivory); font: 700 var(--text-sm)/1.5 var(--f-ja); cursor: pointer; }
.td-task-list .tk-head { justify-content: flex-end; }
/* 작품 */
.chips { gap: var(--space-0); margin: var(--space-0) var(--space-1) var(--space-4); border-bottom: 1px solid var(--hair); }
.chips button { height: 36px; padding: var(--space-0) var(--space-3); border-radius: var(--r-none); background: none; box-shadow: var(--shadow-none); color: var(--ink3); font: 700 var(--text-xs)/1 var(--f-ja); letter-spacing: .08em; position: relative; }
.chips button::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 320ms var(--ease); }
.chips button.on { background: none; color: var(--ink); } .chips button.on::after { transform: scaleX(1); }
.pc-card { border-radius: var(--r-md); } .pc-badge, .sd-badge { border-radius: var(--r-sm); letter-spacing: .08em; } .pc-go { border-radius: var(--r-sm); }
.sd-cta { border-radius: var(--r-md); background: var(--rose); } .sd-meta span { border-radius: var(--r-sm); }
/* 背表紙: 近日公開 */
.soon-head { margin: var(--space-3) var(--space-1) var(--space-0); padding-top: var(--space-4); border-top: 1px solid var(--hair); }
.soon-head b { font: 700 var(--text-sm)/1 var(--f-min); letter-spacing: .2em; }
.soon-row { gap: var(--space-1); align-items: flex-end; padding: var(--space-5) var(--space-4) var(--space-0); margin-bottom: var(--space-0); border-bottom: 3px solid var(--ink); scroll-snap-type: none; }
.soon { flex: 0 0 56px; height: 236px; padding: var(--space-3) var(--space-0) var(--space-3); border-radius: var(--r-sm) var(--r-sm) var(--r-none) var(--r-none); align-items: center; justify-content: flex-start; gap: var(--space-3); text-align: center; background: var(--c) !important;
  box-shadow: var(--shadow-none); transition: transform 420ms var(--spring); }
.soon:nth-child(3n+2) { height: 220px; } .soon:nth-child(4n+3) { height: 246px; flex-basis: 62px; } .soon:nth-child(5n) { height: 228px; flex-basis: 52px; }
.soon::after { background: none; }
.soon::before { content: ''; position: absolute; left: 8px; right: 8px; top: 48px; height: 1px; background: var(--ivory-50); }
.soon .n { flex: 0 0 26px; width: 26px; border: 1px solid var(--ivory-70); border-radius: 50%; display: grid; place-items: center; font: 700 var(--text-xs)/1 var(--f-min); opacity: 1; }
.soon b { flex: 1; min-height: 0; writing-mode: vertical-rl; text-orientation: upright; font: 700 var(--text-sm)/1.15 var(--f-min); letter-spacing: .14em; text-align: left; overflow: hidden; }
.soon small { display: none; }
.soon .lock { position: static; order: 3; writing-mode: vertical-rl; padding: var(--space-0); background: none; border-radius: var(--r-none); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .24em; color: var(--status-lock); }
.soon-cap { margin: var(--space-2) var(--space-1) var(--space-0); font: 500 var(--text-2xs)/1.6 var(--f-ja); color: var(--ink3); }
/* 문화 카드 */
.cul { min-height: 206px; border-radius: var(--r-sm); background: var(--paper-1) !important; color: var(--ink); border: 1px solid var(--hair); box-shadow: var(--shadow-none); transition: opacity 700ms var(--ease), transform 700ms var(--ease), border-color 260ms; }
.cul::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--rose); }
.cul .big { font: 800 var(--text-xl)/1.14 var(--f-ko); color: var(--ink); text-shadow: var(--shadow-none); }
.cul .big small { color: var(--rose-d); opacity: 1; }
.cul b { font: 700 var(--text-sm)/1.5 var(--f-min); } .cul .sub { color: var(--ink3); opacity: 1; }
.foot { margin-top: var(--space-6); border-top: 1px solid var(--hair); }
.sheet { border-radius: var(--r-md) var(--r-md) var(--r-none) var(--r-none); background: var(--paper); } .sheet .cta { border-radius: var(--r-sm); } .sheet .phrase { border-radius: var(--r-sm); border: 1px solid var(--hair2); }
.sheet .paywall .crown { border-radius: var(--r-md); background: var(--rose); } .sheet li::before { content: '・'; }
.sheet .saved-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); }
.sheet .saved-actions > * { display: inline-grid; min-height: 44px; min-width: 44px; place-items: center; font: 700 var(--text-xs) var(--f-ja); }
.sheet .saved-actions button { background: var(--ink-6); border-radius: var(--r-sm); }
.sheet .saved-actions button:disabled { opacity: .35; }
.sheet .saved-actions .playing { background: var(--rose); }
.sheet .saved-actions a { text-decoration: underline; text-underline-offset: 3px; }
.sheet .saved-actions [data-saved-remove] { margin-left: auto; font-size: var(--text-lg); }

/* ───── 5. 퀴즈 ───── */
/* 홈의 퀴즈 블록 */
.qs { border: 1px solid var(--ink); background: var(--paper-1); }
.qs-main { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-4) var(--space-4); text-align: left; background: var(--ink); color: var(--ivory); transition: background 260ms; }
.qs-k { flex: 0 0 auto; padding: var(--space-2) var(--space-2); border: 1px solid var(--ivory-50); font: 700 var(--text-xs)/1.25 var(--f-min); letter-spacing: .16em; text-align: center; color: var(--rose-l); }
.qs-t { flex: 1; min-width: 0; } .qs-t b { display: block; font: 700 var(--text-md)/1.4 var(--f-min); letter-spacing: .03em; } .qs-t small { display: block; margin-top: var(--space-1); font: 500 var(--text-2xs)/1.4 var(--f-ja); color: var(--text-muted); }
.qs-main svg { flex: 0 0 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease); }
.qs-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.qs-cell { padding: var(--space-3) var(--space-1) var(--space-3); text-align: center; border-left: 1px solid var(--hair); transition: background 220ms; } .qs-cell:first-child { border-left: 0; }
.qs-cell b { display: block; font: 700 var(--text-xl)/1 var(--f-min); color: var(--ink); font-variant-numeric: tabular-nums; } .qs-cell span { display: block; margin-top: var(--space-2); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .14em; color: var(--ink-muted); }
.qs-cell:first-child b { color: var(--rose-d); }
.qs-types { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); }
.qs-types button { flex: 1 0 50%; display: flex; align-items: center; gap: var(--space-2); height: 46px; padding: var(--space-0) var(--space-3); text-align: left; font: 700 var(--text-xs)/1 var(--f-ja); color: var(--ink); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); transition: background 220ms; }
.qs-types button:nth-child(-n+2) { border-top: 0; } .qs-types button:nth-child(odd) { border-left: 0; }
.qs-types i { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink); font: 700 var(--text-xs)/1 var(--f-min); font-style: normal; }
.qs-types small { margin-left: auto; font: 600 var(--text-2xs)/1 var(--f-ko); color: var(--ink3); }
/* 퀴즈 화면 */
.qz { background: var(--surface-1); }
.qz.hub .qz-bar, .qz.hub .qz-num { visibility: hidden; }
.qz-x { border-radius: var(--r-sm); background: none; border: 1px solid var(--hair-l); transition: background 220ms; }
.qz-bar { height: 2px; border-radius: var(--r-none); } .qz-bar i { background: var(--rose); }
.hub { padding: var(--space-1) var(--space-0) var(--space-4); animation: optIn 420ms var(--ease); }
.hub-head { display: flex; align-items: stretch; gap: var(--space-3); margin: var(--space-1) var(--space-0) var(--space-5); }
.hub-head small { font: 700 var(--text-2xs)/1 var(--f-ko); letter-spacing: .3em; color: var(--text-muted); } .hub-head h2 { margin: var(--space-2) var(--space-0) var(--space-0); font: 700 var(--text-xl)/1.45 var(--f-min); letter-spacing: .02em; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair-l); border-bottom: 1px solid var(--hair-l); margin-bottom: var(--space-4); }
.hub-stats div { padding: var(--space-3) var(--space-0) var(--space-3); text-align: center; border-left: 1px solid var(--hair-l); } .hub-stats div:first-child { border-left: 0; }
.hub-stats b { display: block; font: 700 var(--text-lg)/1 var(--f-min); font-variant-numeric: tabular-nums; } .hub-stats span { display: block; margin-top: var(--space-2); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .12em; color: var(--text-muted); }
.hub-stats b em { font-style: normal; margin-right: var(--space-1); }
.hub-main { display: flex; align-items: center; gap: var(--space-3); width: 100%; margin-top: var(--space-2); padding: var(--space-4) var(--space-3); text-align: left; background: var(--paper); color: var(--ink); border-radius: var(--r-sm); transition: transform 260ms var(--ease), background 220ms; }
.hub-main.rev { background: none; color: var(--ivory); border: 1px solid var(--hair-l); }
.hub-main[disabled] { opacity: .5; }
.hub-main.kotoba-pack { padding: var(--space-3) var(--space-3); }
.hub-main.kotoba-pack:disabled { opacity: 1; transform: none; background: none; }
.kotoba-count { flex: none; color: var(--rose-l); font: 700 var(--text-xs)/1 var(--f-ja); }
.hm-k { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; font: 700 var(--text-xs)/1 var(--f-min); letter-spacing: .1em; color: var(--rose-d); }
.rev .hm-k { color: var(--rose-l); }
.hm-t { flex: 1; min-width: 0; } .hm-t b { display: block; font: 700 var(--text-md)/1.3 var(--f-min); } .hm-t small { display: block; margin-top: var(--space-1); font: 500 var(--text-2xs)/1.5 var(--f-ja); opacity: .65; }
.hm-go { flex: 0 0 auto; padding: var(--space-2) var(--space-3); border-radius: var(--r-sm); background: var(--ink); color: var(--ivory); font: 700 var(--text-2xs)/1 var(--f-ja); letter-spacing: .08em; }
.rev .hm-go { background: var(--rose); color: var(--plum); }
.hub-h { display: flex; align-items: baseline; justify-content: space-between; margin: var(--space-6) var(--space-0) var(--space-1); padding-bottom: var(--space-2); border-bottom: 1px solid var(--hair-l); font: 700 var(--text-xs)/1 var(--f-min); letter-spacing: .22em; }
.hub-h small { font: 500 var(--text-2xs)/1 var(--f-ja); letter-spacing: .06em; color: var(--text-muted); }
.pack { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-1); text-align: left; color: var(--ivory); border-bottom: 1px solid var(--hair-l); transition: background 220ms, padding 260ms var(--ease); }
.pk-k { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--hair-l); font: 700 var(--text-md)/1 var(--f-min); color: var(--rose-l); }
.pk-t { flex: 1; min-width: 0; } .pk-t b { display: block; font: 700 var(--text-sm)/1.3 var(--f-ja); } .pk-t small { display: block; margin-top: var(--space-1); font: 500 var(--text-2xs)/1.4 var(--f-ja); color: var(--text-muted); }
.pk-bar { display: block; height: 2px; margin-top: var(--space-2); background: var(--ivory-12); } .pk-bar i { display: block; height: 100%; background: var(--rose); transition: width 900ms var(--ease); }
.pk-n { flex: 0 0 auto; font: 700 var(--text-md)/1 var(--f-min); font-variant-numeric: tabular-nums; } .pk-n small { font: 500 var(--text-2xs)/1 var(--f-ko); color: var(--text-muted); }
.soon-pack { opacity: .6; } .soon-pack .pk-n { font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .1em; }
.hub-dramas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); margin-top: var(--space-3); }
.hub-dramas button { position: relative; height: 150px; border-radius: var(--r-sm); overflow: hidden; background-size: cover; background-position: 50% 18%; text-align: left; color: var(--ivory); transition: transform 320ms var(--ease); }
.hub-dramas button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black-12) 30%, var(--black-90)); }
.hub-dramas span { position: absolute; z-index: 1; left: 9px; right: 9px; bottom: 9px; } .hub-dramas i { font: 700 var(--text-xs)/1 var(--f-min); font-style: normal; color: var(--rose-l); }
.hub-dramas b { display: block; margin-top: var(--space-1); font: 700 var(--text-2xs)/1.4 var(--f-min); } .hub-dramas small { display: block; margin-top: var(--space-1); font: 500 var(--text-2xs)/1 var(--f-ko); opacity: .7; }
.hub-note { margin: var(--space-4) var(--space-1) var(--space-0); font: 500 var(--text-2xs)/1.7 var(--f-ja); color: var(--text-muted); }
.kotoba-listen .ko { font-size: var(--text-lg); }
.kotoba-hint { margin-top: var(--space-3); padding: var(--space-3) var(--space-3); border: 1px solid var(--hair-l); border-radius: var(--r-sm); }
.kotoba-word { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: var(--space-0); color: var(--rose-l); }
.kotoba-word strong { font: 700 var(--text-lg)/1.45 var(--f-ko); }
.kotoba-word span { font: 600 var(--text-xs)/1.5 var(--f-ja); }
.kotoba-meanings { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-2) var(--space-0); }
.kotoba-meanings span { padding: var(--space-1) var(--space-2); border-radius: var(--r-pill); background: var(--ivory-12); font: 600 var(--text-xs)/1.5 var(--f-ja); }
.kotoba-note { margin: var(--space-0); font: 500 var(--text-xs)/1.65 var(--f-ja); color: var(--ivory-70); }
.kotoba-why strong { color: var(--rose-l); white-space: nowrap; }
.kotoba-opts .k:empty { display: none; }
.kotoba-compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); }
.kotoba-compare .qz-again { min-height: 44px; height: auto; padding: var(--space-1) var(--space-1); justify-content: center; line-height: 1.35; font-size: var(--text-2xs); white-space: nowrap; gap: var(--space-1); }
.kotoba-compare svg { flex: none; }
.qz-end .score { background: conic-gradient(var(--rose) calc(var(--p) * 1%), var(--ivory-12) 0); } .qz-end .score::after { background: var(--night); inset: 5px; }
.qz-end .score b { font: 700 var(--text-display)/1 var(--f-min); }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-4); border-top: 1px solid var(--hair-l); border-bottom: 1px solid var(--hair-l); }
.end-stats div { padding: var(--space-3) var(--space-0); border-left: 1px solid var(--hair-l); } .end-stats div:first-child { border-left: 0; }
.end-stats b { display: block; font: 700 var(--text-lg)/1 var(--f-min); } .end-stats span { display: block; margin-top: var(--space-1); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .12em; color: var(--text-muted); }
.qz-end .btns button { border-radius: var(--r-sm); transition: background 220ms, transform 220ms var(--ease); } .qz-end .more small { background: none; border: 1px solid var(--hair-l); border-radius: var(--r-sm); color: var(--ivory-70); }
.qz-end .streak-up { border-radius: var(--r-sm); background: none; border: 1px solid var(--rose); color: var(--rose-l); }

/* ───── 6. 占い ───── */
.oh-moku { color: var(--moku); } .oh-ka { color: var(--ka); } .oh-do { color: var(--do); } .oh-kin { color: var(--kin); } .oh-sui { color: var(--sui); }
.bg-moku { background: var(--moku); } .bg-ka { background: var(--ka); } .bg-do { background: var(--do); } .bg-kin { background: var(--kin); } .bg-sui { background: var(--sui); }
.fortune { --moku: var(--element-wood); --ka: var(--element-fire); --do: var(--element-earth); --kin: var(--element-metal); --sui: var(--element-water); border-radius: var(--r-sm); padding: var(--space-4) var(--space-4) var(--space-4); background: var(--night); box-shadow: var(--shadow-card); }
.fortune::before { animation: none; right: -110px; bottom: -150px; }
.f-tag { color: var(--rose-l); letter-spacing: .24em; font-weight: 700; }
.f-form input, .f-form select { height: 48px; border-radius: var(--r-sm); } .f-form select { padding: var(--space-0) var(--space-2); }
.f-form2 { margin-top: var(--space-2); align-items: flex-end; }
.f-form2 label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .08em; color: var(--text-muted); } .f-form2 label small { margin-left: var(--space-1); opacity: .7; } .f-form2 label input { width: 100%; box-sizing: border-box; }
.f-form button { height: 48px; border-radius: var(--r-sm); background: var(--rose); transition: transform 220ms var(--ease), filter 220ms; }
.fx-top { position: relative; display: flex; align-items: stretch; gap: var(--space-4); margin-top: var(--space-4); }
.fx-pillars { display: flex; gap: var(--space-1); }
.fx-p { width: 38px; padding: var(--space-2) var(--space-0) var(--space-2); display: flex; flex-direction: column; align-items: center; gap: var(--space-1); border: 1px solid var(--hair-l); }
.fx-p small { font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .1em; color: var(--text-muted); } .fx-p b { font: 700 var(--text-lg)/1 var(--f-min); } .fx-p.na b { color: var(--text-muted); }
.fx-name { flex: 1; min-width: 0; align-self: center; } .fx-name small { font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .14em; color: var(--text-muted); }
.fx-name b { display: block; margin-top: var(--space-2); font: 700 var(--text-md)/1.4 var(--f-min); } .fx-name p { margin: var(--space-1) var(--space-0) var(--space-0); font: 500 var(--text-xs)/1.6 var(--f-ja); color: var(--ivory-70); }
.fx-today { position: relative; display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--hair-l); }
.fx-score { flex: 0 0 auto; display: flex; align-items: baseline; gap: var(--space-1); } .fx-score b { font: 700 var(--text-2xl)/1 var(--f-min); color: var(--rose-l); font-variant-numeric: tabular-nums; } .fx-score small { font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .14em; color: var(--text-muted); }
.fx-today p { margin: var(--space-0); font: 700 var(--text-md)/1.5 var(--f-min); }
.f-phrase { border-radius: var(--r-sm); background: var(--paper); }
.fx-open { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); width: 100%; margin-top: var(--space-2); padding: var(--space-3) var(--space-6) var(--space-3) var(--space-4); border-radius: var(--r-sm); border: 1px solid var(--hair-l); color: var(--ivory); text-align: left; transition: background 220ms, border-color 220ms; }
.fx-open span { font: 700 var(--text-sm)/1 var(--f-min); letter-spacing: .06em; } .fx-open small { font: 500 var(--text-2xs)/1.3 var(--f-ja); color: var(--text-muted); }
.fx-open svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--rose-l); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease); }
/* 命式 화면: 종이 위의 표 */
.fp { --moku: var(--element-wood); --ka: var(--element-fire); --do: var(--element-earth); --kin: var(--element-metal); --sui: var(--element-water); position: fixed; inset: 0; z-index: 58; background: var(--surface-1); animation: sdIn 460ms var(--ease); }
.fp[hidden] { display: none; }
.fp-back { position: absolute; z-index: 3; left: calc(50% - var(--w) / 2 + 12px); top: calc(var(--safe-t) + 12px); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--ivory-90); border: 1px solid var(--hair); transition: background 220ms; }
.fp-back svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fp-scroll { position: absolute; inset: 0; overflow-y: auto; }
.fp-in { position: relative; width: var(--w); min-height: 100%; margin: var(--space-0) auto; padding: var(--space-0) var(--space-4) calc(var(--safe-b) + var(--space-7)); box-sizing: border-box; background-color: var(--paper); background-image: var(--noise); color: var(--ink); }
.fp-hero { position: relative; padding: calc(var(--safe-t) + 78px) var(--space-0) var(--space-5); border-bottom: 3px double var(--ink); }
.fp-seal { position: absolute; right: 2px; top: calc(var(--safe-t) + 18px); width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--rose-d); color: var(--rose-d); font: 700 var(--text-sm)/1.05 var(--f-min); writing-mode: vertical-rl; letter-spacing: .08em; transform: rotate(4deg); border-radius: var(--r-sm); }
.fp-hero small { font: 600 var(--text-2xs)/1 var(--f-ja); letter-spacing: .14em; color: var(--ink3); }
.fp-hero h2 { margin: var(--space-3) var(--space-0) var(--space-2); font: 700 var(--text-2xl)/1.2 var(--f-min); letter-spacing: .06em; } .fp-hero h2 em { display: block; margin-top: var(--space-1); font-style: normal; font-size: var(--text-lg); letter-spacing: .02em; }
.fp-hero p { margin: var(--space-0); font: 500 var(--text-sm)/1.8 var(--f-ja); color: var(--ink2); }
.fp-sec { padding-top: var(--space-6); opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); } .fp-sec.in { opacity: 1; transform: none; }
.fp-h { display: flex; align-items: stretch; gap: var(--space-3); margin-bottom: var(--space-4); } .fp-h .maku { font-size: var(--text-xs); letter-spacing: .1em; color: var(--rose-d); border-color: var(--ink); }
.fp-h small { font: 700 var(--text-2xs)/1 var(--f-ko); letter-spacing: .3em; color: var(--ink3); } .fp-h h3 { margin: var(--space-2) var(--space-0) var(--space-0); font: 700 var(--text-lg)/1.45 var(--f-min); letter-spacing: .02em; }
.ms-wrap { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ms { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.ms th, .ms td { padding: var(--space-2) var(--space-1); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); font: 600 var(--text-xs)/1.3 var(--f-ja); color: var(--ink2); } .ms tr > :first-child { border-left: 0; width: 54px; }
.ms thead th { border-top: 0; font: 700 var(--text-2xs)/1 var(--f-min); letter-spacing: .2em; color: var(--ink); } .ms thead th.me { color: var(--rose-d); }
.ms tbody th { font: 600 var(--text-2xs)/1.2 var(--f-ja); letter-spacing: .1em; color: var(--ink3); }
.ms .big td { padding: var(--space-2) var(--space-0) var(--space-2); } .ms .kan { font: 700 var(--text-2xl)/1 var(--f-min); } .ms .xs td { font-size: var(--text-2xs); letter-spacing: .04em; } .ms .na { font-style: normal; color: var(--ink-subtle); }
.fp .oh-moku { color: var(--status-success-ink); }
.fp .oh-ka { color: var(--coral-ink); }
.fp .oh-do { color: var(--earth-ink); }
.fp .oh-kin { color: var(--ink-muted); }
.fp .oh-sui { color: var(--water-ink); }
.ms td:nth-child(3) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.fp-cap { margin: var(--space-2) var(--space-1) var(--space-0); font: 500 var(--text-2xs)/1.75 var(--f-ja); color: var(--ink3); }
.fp-body { margin: var(--space-0); font: 500 var(--text-sm)/1.95 var(--f-ja); color: var(--ink2); }
.fp-tip { margin: var(--space-3) var(--space-0) var(--space-0); padding: var(--space-3) var(--space-3); border-left: 2px solid var(--rose); background: var(--ivory-50); font: 500 var(--text-xs)/1.75 var(--f-ja); color: var(--ink2); } .fp-tip b { display: block; color: var(--ink); font-weight: 700; }
.oh-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-0); border-bottom: 1px solid var(--hair2); }
.oh-k { flex: 0 0 26px; font: 700 var(--text-lg)/1 var(--f-min); text-align: center; } .oh-t { flex: 1; height: 8px; background: var(--hair2); } .oh-t i { display: block; height: 100%; width: 0; transition: width 1100ms var(--ease) 150ms; }
.oh-bar b { flex: 0 0 38px; text-align: right; font: 600 var(--text-xs)/1 var(--f-ko); color: var(--ink2); font-variant-numeric: tabular-nums; }
.fp-card { padding: var(--space-3) var(--space-4); background: var(--ivory-70); border: 1px solid var(--hair); } .fp-body + .fp-card { margin-top: var(--space-3); }
.fp-card small { display: block; font: 600 var(--text-2xs)/1.5 var(--f-ja); letter-spacing: .08em; color: var(--ink3); } .fp-card > b { display: block; margin-top: var(--space-2); font: 700 var(--text-lg)/1.2 var(--f-min); letter-spacing: .08em; }
.fp-card p { margin: var(--space-2) var(--space-0) var(--space-0); font: 500 var(--text-xs)/1.75 var(--f-ja); color: var(--ink2); } .fp-card p b { display: block; font-size: var(--text-2xs); color: var(--rose-d); letter-spacing: .08em; }
.fp-card ul { margin: var(--space-2) var(--space-0) var(--space-0); padding: var(--space-0); list-style: none; } .fp-card li { padding: var(--space-2) var(--space-0) var(--space-2) var(--space-4); border-bottom: 1px solid var(--hair2); font: 500 var(--text-xs)/1.6 var(--f-ja); position: relative; } .fp-card li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 6px; height: 1px; background: var(--rose-d); }
.fp-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.stars { margin: var(--space-0); padding: var(--space-0); list-style: none; border-top: 1px solid var(--hair); }
.stars li { display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: var(--space-2); padding: var(--space-3) var(--space-0) var(--space-3) var(--space-2); border-bottom: 1px solid var(--hair); border-left: 2px solid var(--ink3); }
.stars li.good { border-left-color: var(--rose); } .stars li.care { border-left-color: var(--ink); }
.stars b { font: 700 var(--text-sm)/1.3 var(--f-min); letter-spacing: .06em; } .stars span { font: 500 var(--text-xs)/1.6 var(--f-ja); color: var(--ink2); } .stars small { font: 600 var(--text-2xs)/1 var(--f-ja); color: var(--ink3); white-space: nowrap; }
.dae-row { display: flex; gap: var(--space-0); overflow-x: auto; margin: var(--space-0) calc(-1 * var(--space-4)); padding: var(--space-0) var(--space-4) var(--space-1); scrollbar-width: none; } .dae-row::-webkit-scrollbar { display: none; }
.dae { flex: 0 0 76px; padding: var(--space-3) var(--space-0) var(--space-3); text-align: center; border: 1px solid var(--hair); border-left-width: 0; background: var(--ivory-50); } .dae:first-child { border-left-width: 1px; }
.dae small { display: block; font: 600 var(--text-2xs)/1 var(--f-ko); color: var(--ink3); } .dae b { display: block; margin: var(--space-2) var(--space-0) var(--space-2); font: 700 var(--text-lg)/1 var(--f-min); letter-spacing: .04em; }
.dae i { display: block; font: 600 var(--text-2xs)/1 var(--f-ja); font-style: normal; color: var(--ink2); } .dae span { display: block; margin-top: var(--space-2); font: 500 var(--text-2xs)/1 var(--f-ko); color: var(--ink3); }
.dae.now { background: var(--ink); border-color: var(--ink); } .dae.now b, .dae.now i { color: var(--ivory); } .dae.now small, .dae.now span { color: var(--rose-l); }
.flows { border-top: 1px solid var(--hair); } .flow { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-1); border-bottom: 1px solid var(--hair); }
.flow small { flex: 0 0 48px; font: 700 var(--text-2xs)/1.3 var(--f-min); letter-spacing: .1em; color: var(--ink3); } .flow > b { flex: 0 0 auto; font: 700 var(--text-xl)/1 var(--f-min); letter-spacing: .06em; }
.flow i { font: 700 var(--text-2xs)/1 var(--f-ja); font-style: normal; color: var(--rose-d); letter-spacing: .06em; } .flow p { margin: var(--space-1) var(--space-0) var(--space-0); font: 500 var(--text-xs)/1.6 var(--f-ja); color: var(--ink2); }
.fp .f-bars { margin-top: var(--space-4); } .fp .f-bar .t { height: 84px; border-radius: var(--r-none); background: var(--hair2); } .fp .f-bar .t i { border-radius: var(--r-none); background: var(--rose); } .fp .f-bar .t i.careful { background: var(--ink3); } .fp .f-bar .t i.steady { background: var(--ink); }
.fp .f-bar span { color: var(--ink2); } .fp .f-phrase { margin-top: var(--space-4); background: var(--paper-1); border: 1px solid var(--hair); }
.celeb-row { display: flex; flex-wrap: wrap; gap: var(--space-1); } .celeb-row span { padding: var(--space-2) var(--space-3); background: var(--ivory-70); border: 1px solid var(--hair); }
.celeb-row b { font: 700 var(--text-sm)/1 var(--f-ko); } .celeb-row small { margin-left: var(--space-2); font: 500 var(--text-2xs)/1 var(--f-ja); color: var(--ink3); }
.fp-edit .f-form input, .fp-edit .f-form select { background: var(--paper-1); color: var(--ink); border-color: var(--hair); color-scheme: light; } .fp-edit .f-form2 label { color: var(--ink3); } .fp-edit .f-form button { color: var(--plum); }
.fp-edit .f-reset { display: inline-block; color: var(--ink3); }

/* ───── 7. 호버 · 포커스 (마우스가 있는 화면) ───── */
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  button, a { cursor: pointer; }
  .tabbar button:hover { color: var(--ivory-90); } .tabbar button:hover svg { transform: translateY(-2px); }
  .cta-main:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); }
  .cta-listen:hover, .cta-watch:hover { background: var(--ivory-12); border-color: var(--ivory-50); }
  .qk:hover { transform: translateY(-4px); box-shadow: var(--shadow-low); } .qk:hover::after { transform: scaleX(1); }
  .cont:hover { background: var(--ivory-12); transform: translateY(-2px); }
  .chips button:hover { color: var(--ink); }
  .pc-card:hover .pc-go { background: var(--rose); color: var(--on-accent); } .pc-card:hover .pc-go svg { fill: var(--on-accent); } .pc-go { transition: background 220ms, color 220ms; }
  .soon:hover { transform: translateY(-14px); }
  .cul:hover { border-color: var(--ink); transform: translateY(-3px); }
  .qs-main:hover { background: var(--surface-2); } .qs-main:hover svg, .fx-open:hover svg { transform: translateX(4px); } .qs-cell:hover, .qs-types button:hover { background: var(--paper2); }
  .hub-main:hover { transform: translateY(-2px); } .hub-main.rev:hover { background: var(--ivory-6); } .pack:not(.soon-pack):hover { background: var(--ivory-6); padding-left: var(--space-2); padding-right: var(--space-2); }
  .hub-dramas button:hover { transform: translateY(-4px); } .qz-x:hover, .qz-slow:hover, .qz-again:hover { background: var(--ivory-12); }
  .qz-listen:hover { background: var(--ivory-12); border-color: var(--ivory-24); }
  .qz-opt:not(.right):not(.wrong):not(.dim):hover { transform: translateX(4px); background: var(--paper-1); box-shadow: var(--shadow-none); }
  .qz-actions .scene:hover { background: var(--ivory-12); } .qz-actions .next:hover, .f-form button:hover, .sd-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
  .qz-end .btns button:hover { transform: translateY(-2px); }
  .fx-open:hover { background: var(--ivory-6); border-color: var(--ivory-50); }
  .fp-back:hover { background: var(--paper-1); } .stars li:hover, .flow:hover { background: var(--ivory-50); } .dae:not(.now):hover { background: var(--paper-1); }
  .sheet .cta:hover { filter: brightness(1.15); } .mini-quiz:hover { background: var(--surface-2); } .ep:hover { background: var(--ink-6); }
}
@media (max-width: 360px) { .stars li { grid-template-columns: 84px 1fr; } .stars small { display: none; } .fx-p { width: 34px; } .fp-hero h2 { font-size: var(--text-2xl); } }

/* ── 2026-11-27: 접속마다 달라지는 부분 + 모션 보강 ── */
/* きょうのおすすめ 배지 */
.pc { position: relative; }
.pc-pick { position: absolute; z-index: 4; top: 18px; right: 12px; padding: var(--space-1) var(--space-2); border-radius: var(--r-sm); background: var(--rose); color: var(--on-accent); font: 800 var(--text-2xs)/1 var(--f-ja); letter-spacing: .1em; box-shadow: var(--shadow-card); animation: pickIn 700ms 400ms cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pickIn { from { opacity: 0; transform: translateY(-6px) scale(.8); } }
/* 히어로 점이 10개라 좁게 */
.d-segs i { width: 10px; }
/* Expand card: 누른 작품 카드 자리에서 상세가 펼쳐진다 */
.sd.from-card { animation: sdExpand 620ms cubic-bezier(.2,.9,.15,1) both; }
@keyframes sdExpand { from { clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round 10px); } to { clip-path: inset(0 0 0 0 round 0); } }
/* ドラマ 바로가기: 오늘의 키비주얼 3장 부채꼴 */
.qk[data-go="works"]::before { display: none; }
.qk-stack { position: absolute; right: 14px; top: 14px; width: 38px; height: 50px; pointer-events: none; }
.qk-stack i { position: absolute; inset: 0; border: 1.5px solid var(--paper-1); border-radius: var(--r-sm); background-size: cover; background-position: 50% 18%; box-shadow: var(--shadow-low); transform-origin: 50% 100%; animation: qkFan 900ms 700ms cubic-bezier(.2,1.3,.4,1) both; }
.qk-stack i:nth-child(1) { --r: -14deg; --x: -9px; } .qk-stack i:nth-child(2) { --r: 0deg; --x: 0px; z-index: 1; } .qk-stack i:nth-child(3) { --r: 14deg; --x: 9px; z-index: 2; }
.qk-stack i { transform: translateX(var(--x)) rotate(var(--r)); }
@keyframes qkFan { from { transform: none; } }
@media (hover: hover) { .qk[data-go="works"]:hover .qk-stack i { transform: translateX(calc(var(--x) * 1.5)) rotate(calc(var(--r) * 1.5)) translateY(-2px); transition: transform 320ms cubic-bezier(.2,1.4,.4,1); } }
/* 恋の作法 카드: 표현마다 색 띠 */
.cul::before { display: none; }
.cul .big { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3); padding: var(--space-4) var(--space-4) var(--space-4); border-radius: var(--r-sm) var(--r-sm) var(--r-none) var(--r-none); background: linear-gradient(var(--black-50), var(--black-50)), var(--cg); color: var(--color-ivory); text-shadow: var(--shadow-none); }
.cul .big small { color: var(--text); }
.cul .big.long { font-size: var(--text-lg); line-height: 1.3; }
/* Marker text: 구역 제목에 형광펜이 그어진다 */
.sec-head h2 { display: inline; background: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1100ms 350ms cubic-bezier(.6,0,.2,1); }
.sec-head small { display: block; margin-bottom: var(--space-2); }
.sec-head.in h2 { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .pc-pick, .qk-stack i { animation: none; } .sec-head h2 { transition: none; background-size: 100% 100%; } }
.sec-note { flex: none; white-space: nowrap; align-self: flex-start; }
.sec-head > div { min-width: 0; flex: 1; }
.sec-head { position: relative; } .sec-head .sec-note { position: absolute; right: 0; top: 0; }
/* ── 2026-11-27 占い 카드: 命式 미리보기(Scramble) · 점수 고리 ── */
.fx-tease { position: relative; display: flex; justify-content: center; gap: var(--space-1); margin: var(--space-4) var(--space-0) var(--space-1); padding: var(--space-3) var(--space-0); border-top: 1px solid var(--hair-l); border-bottom: 1px solid var(--hair-l); }
.fx-tease .fx-p { width: 46px; background: var(--ivory-6); }
.fx-tease .fx-p b { font-size: var(--text-xl); }
.fx-tease b.flip { animation: fxFlip 520ms cubic-bezier(.2,1.2,.4,1); }
@keyframes fxFlip { 0% { opacity: 0; transform: translateY(-8px) scale(.7); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.fx-q { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 var(--text-xl)/1 var(--f-min); color: var(--rose); animation: fxQ 1800ms ease-in-out infinite; }
@keyframes fxQ { 50% { transform: translateY(-58%) rotate(8deg); opacity: .6; } }
.f-lucky { margin-top: var(--space-3); }
.f-lucky small { color: var(--rose-d); }
.fx-score { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; align-items: center; justify-items: center; gap: var(--space-0); align-content: center;
  background: conic-gradient(var(--rose) calc(var(--pp, 0) * 1%), var(--ivory-12) 0); animation: fxRing 1400ms 300ms cubic-bezier(.2,.8,.2,1) forwards; }
.fx-score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--night, var(--surface-1)); }
.fx-score b, .fx-score small { position: relative; } .fx-score b { font-size: var(--text-xl); }
@property --pp { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes fxRing { to { --pp: var(--p); } }
@media (prefers-reduced-motion: reduce) { .fx-score { animation: none; --pp: var(--p); } .fx-q { animation: none; } }
/* 2026-11-27 공식 로고 v02(심볼+워드마크) 크기 */
.h-logo { height: 26px; min-width: 0; object-fit: contain; object-position: left; }
.h-streak { font-size: var(--text-2xs); white-space: nowrap; padding-inline: var(--space-2); }
@media (max-width: 360px) { .h-streak svg { display: none; } }
.mini-top img { height: 22px; }
.sp-logo { height: 84px; }
.foot img { height: 64px; opacity: 1; }

/* 2026-11-28 本音あて 귀 레벨(入門・普通・上級) */
.hub-lv { display: flex; align-items: stretch; gap: var(--space-1); margin: var(--space-5) var(--space-0) var(--space-0); }
.hub-lv > span { align-self: center; font: 700 var(--text-2xs)/1.3 var(--f-min); letter-spacing: .12em; writing-mode: vertical-rl; opacity: .7; }
.hub-lv button { flex: 1; padding: var(--space-2) var(--space-1); border-radius: var(--r-md); border: 1px solid var(--hair-l); background: transparent; color: inherit; text-align: center; cursor: pointer; }
.hub-lv button b { display: block; font: 800 var(--text-sm)/1.2 var(--f-min); }
.hub-lv button small { display: block; margin-top: var(--space-1); font-size: var(--text-2xs); opacity: .7; }
.hub-lv button.on small { opacity: 1; }
.hub-lv button.on { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow-low); }

/* 2026-11-28 B2 화별 적중 도장 (金=全問的中, 銀=一部) */
.ep-n { position: relative; }
.ep-stamp { position: absolute; right: -7px; bottom: -6px; min-width: 22px; height: 18px; padding: var(--space-0) var(--space-1); border-radius: var(--r-sm); display: grid; place-items: center;
  font: 800 var(--text-2xs)/1 var(--f-ja); font-style: normal; letter-spacing: 0; color: var(--color-ivory); box-shadow: var(--shadow-low); transform: rotate(-8deg); }
.ep-stamp.gold { background: var(--element-earth); }
.ep-stamp.silver { background: var(--element-metal); }
.hm-from { display: inline-block; margin-top: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--rose, var(--accent)); font: 700 var(--text-2xs)/1.4 var(--f-ja); font-style: normal; }

/* 탭 화면과 홈의 짧은 동선 */
.app-top {
  position: relative;
  width: var(--w);
  margin-inline: auto;
  padding: calc(var(--safe-t) + var(--space-3)) var(--space-4) var(--space-3);
  background: var(--surface-1);
  color: var(--text);
}
.app-feed {
  min-height: calc(100svh - var(--safe-t) - var(--space-7));
  margin-block: var(--space-0);
  padding: var(--space-0) var(--space-0) calc(var(--safe-b) + var(--space-7) + var(--space-5));
  border-radius: var(--r-none);
}
.app-feed:has(#screenHome:not([hidden])) {
  padding-bottom: calc(var(--tabbar-height) + var(--space-4) + var(--space-7));
}
.app-screen:not([hidden]) { animation: show-screen var(--duration-cut) var(--ease-out-standard) both; }
@keyframes show-screen { from { opacity: 0; } to { opacity: 1; } }
body > .sp[hidden] { display: none; }
.app-page { padding: var(--space-5) var(--space-4) var(--space-0); }
.app-screen .sec { margin-top: var(--space-6); }
.app-screen .sec:first-child { margin-top: var(--space-0); }
.app-screen .maku { display: none; }
.app-screen .reveal { opacity: 1; transform: none; }
.screen-heading { margin: var(--space-0) var(--space-0) var(--space-3); font: 700 var(--text-xl)/1.35 var(--f-min); }
.menu-heading { margin: var(--space-0) var(--space-0) var(--space-2); font: 700 var(--text-lg)/1.4 var(--f-min); }
.menu-list { border-top: thin solid var(--line-on-paper); }
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-0);
  border-bottom: thin solid var(--line-on-paper);
  color: var(--ink);
  text-align: left;
  font: 700 var(--text-sm)/1.35 var(--f-ja);
}
.menu-row small { flex: none; color: var(--ink-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
summary.menu-row { list-style: none; cursor: pointer; }
summary.menu-row::-webkit-details-marker { display: none; }
summary.menu-row::after {
  content: '';
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  margin-inline-end: var(--space-1);
  border-inline-end: thin solid currentColor;
  border-block-end: thin solid currentColor;
  transform: rotate(45deg);
}
details[open] > summary.menu-row::after { transform: rotate(225deg); }

#screenHome > .sec { margin-inline: var(--space-4); }
#screenHome .today-lead { width: 100%; }
#screenHome .cont-open { min-height: var(--space-7); color: var(--on-accent); }
.shelf-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.shelf-heading .screen-heading { font-size: var(--text-lg); }
.screen-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: var(--space-1); font-size: var(--text-xs); font-weight: 700; }
.app-screen .pc { opacity: 1; transform: none; }
.app-screen .pc-pick {
  inset: var(--space-3) var(--space-3) auto auto;
  background: var(--surface-1);
  color: var(--text);
  box-shadow: var(--shadow-none);
  animation: none;
}
#screenHome .shelf .pc-card { height: calc(var(--space-7) * 7); }
.drama-blocks {
  display: grid;
  gap: var(--space-6);
}
.drama-block-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-end: var(--space-2);
}
.drama-block-head h2 {
  margin: var(--space-0) auto var(--space-0) var(--space-0);
  font: 700 var(--text-lg)/var(--line-height-title) var(--f-min);
}
.drama-block-head small,
.drama-meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.drama-block-head button { flex: none; }
.drama-posters,
.drama-resume-list {
  display: grid;
  gap: var(--space-2);
}
.drama-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drama-resume { margin-block-end: var(--space-5); }
.drama-resume-list {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--space-2)) / 3);
  padding-block: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.drama-resume-list .drama-poster { scroll-snap-align: start; }
.drama-resume-list .drama-poster:focus-visible { outline-offset: calc(-1 * var(--space-1)); }
.drama-poster {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.drama-poster img,
.drama-soon {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}
.drama-poster img { display: block; height: auto; object-fit: cover; object-position: center 20%; }
.drama-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2lh;
  font: 700 var(--text-caption)/var(--line-height-title) var(--f-ja);
}
.drama-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: var(--space-1);
  border: 0;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--line-on-paper-strong);
}
.drama-progress::-webkit-progress-bar { background: var(--line-on-paper-strong); }
.drama-progress::-webkit-progress-value { background: var(--accent-ink); }
.drama-progress::-moz-progress-bar { background: var(--accent-ink); }
.drama-soon {
  /* home.css의 밝은 면용 별칭 대신 어두운 면의 공통 테두리를 사용한다. */
  --line: color-mix(in srgb, var(--color-ivory) 14%, transparent);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border: thin dashed var(--line);
  background: color-mix(in srgb, var(--surface-3) 86%, var(--paper));
  color: var(--text);
  cursor: default;
  text-align: center;
  font: var(--text-xs)/var(--line-height-title) var(--f-ja);
}
.drama-soon svg { width: var(--size-icon); height: var(--size-icon); color: var(--text-muted); }
.drama-soon small { color: var(--text-muted); font-size: var(--text-2xs); }
.app-screen .pc-foot { flex-wrap: wrap; gap: var(--space-1); }
.app-screen .pc-go { height: auto; padding: var(--space-0); background: none; color: var(--text); }
.app-screen .pc-go svg { fill: currentColor; }

#screenHome .foot { margin: var(--space-5) var(--space-4) var(--space-0); padding: var(--space-5) var(--space-0) var(--space-0); }
#screenHome .foot img { height: var(--space-7); }
#screenHome .footprint .menu-row { border-top: thin solid var(--line-on-paper); }
.footprint .bk-streak { margin-inline-start: auto; }
.footprint .td-book { max-width: calc(var(--space-7) * 6); }
.footprint.party .td-book { animation: party var(--duration-success) var(--ease-out-standard) both; }

#screenHonne .hero { height: calc(100svh - var(--space-7) - var(--space-2)); }
#screenHonne .hero-cta { bottom: calc(var(--safe-b) + var(--space-7) + var(--space-5)); }
#screenHonne > .sec { margin-inline: var(--space-4); }
#screenHonne .quiz-hub-link { padding-inline: var(--space-4); border: 0; border-top: thin solid var(--line-on-paper); }
#screenMy #tdCards, #screenMy .culture { border-top: thin solid var(--line-on-paper); }
#screenMy :is(.td-season, .td-oshi, .td-omi, .td-mini, .cul) {
  width: 100%;
  min-height: var(--space-7);
  margin: var(--space-0);
  padding: var(--space-3) var(--space-0);
  border: 0;
  border-bottom: thin solid var(--line-on-paper);
  border-radius: var(--r-none);
  background: var(--paper-1);
  color: var(--ink);
  box-shadow: var(--shadow-none);
}
#screenMy .td-season { padding-inline-end: var(--space-7); }
#screenMy .se-k { padding: var(--space-0); }
#screenMy .se-play { right: var(--space-0); }
#screenMy .os-ava { display: none; }
#screenMy .os-play { background: none; border: thin solid var(--line-on-paper-strong); color: var(--accent-ink); }
#screenMy :is(.os-t small, .os-t em, .td-mini small) { color: var(--ink-muted); }
#screenMy .td-omi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  column-gap: var(--space-3);
  text-align: start;
}
#screenMy .td-omi small { text-align: start; }
#screenMy .omi-tube { grid-area: 1 / 2 / span 3; margin: var(--space-0) var(--space-3); width: var(--space-6); height: var(--space-7); }
#screenMy .omi-tube::before { display: none; }
#screenMy .omi-tube b { inset: var(--space-1) var(--space-0) auto; }
#screenMy .td-cta { padding: var(--space-0); background: none; color: var(--ink); font-size: var(--text-sm); }
#screenMy .omi-lv { grid-area: 1 / 2 / span 3; margin: var(--space-0) var(--space-3); font-size: var(--text-lg); }
#screenMy .td-phr { min-height: 0; margin: var(--space-2) var(--space-0); box-shadow: var(--shadow-none); }
#screenMy :is(.td-more, .culture) { display: block; overflow: visible; margin: var(--space-0); padding: var(--space-0); }
#screenMy .cul .big {
  margin: var(--space-0) var(--space-0) var(--space-1);
  padding: var(--space-0);
  background: none;
  color: var(--ink);
  font-size: var(--text-md);
}
#screenMy .cul .big small { color: var(--ink-muted); }
#screenMy .td-task-list > summary { margin-top: var(--space-3); color: var(--ink); border: 0; border-bottom: thin solid var(--line-on-paper); border-radius: var(--r-none); padding-inline: var(--space-0); }
#screenMy .td-tasks ul { grid-template-columns: minmax(0, 1fr); }
#screenMy .td-tasks li { padding: var(--space-0); }
#screenMy .td-tasks .menu-row { justify-content: flex-start; border-color: var(--line); color: var(--ivory); }

.tabbar .tab-ind {
  left: var(--space-1);
  width: calc((100% - 2 * var(--space-1)) / 5);
  transition: transform var(--duration-cut) var(--ease-out-standard);
}

/* Mobile layout and type shared by the five app tabs. */
.app-page > h1.screen-heading, #fortuneSec .screen-heading { font-size: var(--text-xl); }
.app-screen :is(h2.screen-heading, h3.menu-heading), #screenHonne #miniGamesHeading {
  font: 700 var(--text-lg)/var(--line-height-title) var(--f-min);
}
.app-screen .chips { margin-inline: 0; padding-inline: 0; }
.app-screen .chips button { min-width: var(--size-target); }
.app-screen .chips button:first-child { padding-inline-start: 0; }
.app-screen .chips button:first-child::after { inset-inline-start: 0; }
.app-screen .chips button, .screen-link { min-height: var(--size-target); }
.screen-link { display: inline-flex; align-items: center; }
.tabbar button { font-size: var(--text-xs); color: var(--text-subtle); letter-spacing: normal; }
.tabbar button.on, .tabbar button.on svg { color: var(--text); stroke: currentColor; }
.tab-ind::after { width: var(--space-5); margin-inline-start: calc(var(--space-5) / -2); }
.h-sound { height: var(--size-target); animation: none; }
.h-sound .outline-icon { width: var(--space-4); height: var(--space-4); }
.h-sound:not(.on) .outline-icon { color: var(--text-subtle); }

#screenHome .today-lead {
  padding-block: var(--space-4) var(--space-5);
  background: var(--surface-1);
}
#screenHome .cont {
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  box-shadow: var(--shadow-none);
}
#screenHome .cont-media { border-radius: var(--r-md); aspect-ratio: 4 / 3; }
#screenHome .cont-body { padding: var(--space-3) 0 0; }
.cont-title { text-wrap: balance; word-break: auto-phrase; }
#screenHome .cont-release:not([hidden]) {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-2) 0;
  color: var(--text);
  font-size: var(--text-lg);
}
.cont-links { display: flex; flex-wrap: wrap; justify-content: space-between; }
.cont-links button {
  background: transparent;
  min-height: var(--size-target);
  min-width: var(--size-target);
  color: var(--text-muted);
  font: 700 var(--text-caption)/var(--line-height-title) var(--f-ja);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}
.cont-links button:disabled { opacity: .65; }
.cont-links .playing { color: var(--accent-soft); }

.today-menu .menu-row { min-height: var(--size-control); justify-content: initial; }
.today-menu .menu-row > span { flex: 1; }
.today-menu .menu-row small { font-weight: 600; }
.today-menu .menu-row > span small { display: block; margin-top: var(--space-1); }
.today-menu .menu-row::after, #myPhrasebook::after {
  content: '';
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  margin: 0 var(--space-1);
  border-inline-end: thin solid var(--ink-subtle);
  border-block-start: thin solid var(--ink-subtle);
  transform: rotate(45deg);
}

.app-screen .pc-card::after {
  background: linear-gradient(transparent, var(--black-70) var(--card-shade-start), var(--black-90));
}
.app-screen .pc-badge { background: var(--surface-3); color: var(--text); }
.app-screen :is(.pc-title, .pc-hook) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.app-screen .pc-hook { color: var(--text); }
.app-screen .pc-foot { flex-wrap: nowrap; gap: var(--space-2); }
.app-screen .pc-mood {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-muted);
}
.app-screen .pc-go { flex: none; }

.sd-cta { box-shadow: var(--shadow-none); }
.sd-cta .outline-icon { fill: none; stroke: currentColor; }
.sd-cta .access-ring {
  --ring-size: var(--size-icon);
  --ring-value: var(--ink);
  --ring-track: var(--ink-24);
  --ring-center: var(--accent);
}
.sd-cta [hidden], .ep [hidden], #footprintStreak[hidden] { display: none; }
.sd-back, .fp-back { width: var(--size-target); height: var(--size-target); }
.sd-list-head span { font-size: var(--text-xs); color: var(--ink-muted); }
.ep {
  gap: var(--space-2);
  margin-bottom: 0;
  padding-inline: var(--space-1);
  border-bottom: thin solid var(--line-on-paper);
  border-radius: 0;
  background: transparent;
  box-shadow: var(--shadow-none);
}
.ep-t b { white-space: normal; word-break: auto-phrase; }
.ep-state { flex: none; color: var(--ink-muted); padding: var(--space-1); }
.ep-state:is([data-kind="free"], [data-kind="unlocked"]) { color: var(--status-success-ink); }
.ep-t small, .ep-t small .done { font-size: var(--text-xs); color: var(--ink-muted); }
.ep-t .ep-wait:not([hidden]) { display: block; }
.ep-stamp {
  position: static;
  min-width: 0;
  height: auto;
  padding: var(--space-1);
  color: var(--ink);
  font-size: var(--text-xs);
  transform: none;
  box-shadow: var(--shadow-none);
}

.qs-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  border: 0;
}
.qs-types button, .qs-types button:is(:nth-child(-n+2), :nth-child(odd)) {
  min-height: var(--space-7);
  height: auto;
  border: thin solid var(--line-on-paper);
  border-radius: var(--r-md);
}
.qs-types button span { white-space: nowrap; }
.qs-types small { color: var(--ink-muted); }

#myPhrasebook {
  min-height: var(--size-feature-row);
  padding-inline: var(--space-4);
  border: thin solid var(--line-on-paper-strong);
  border-radius: var(--r-md);
  font: 700 var(--text-lg)/var(--line-height-title) var(--f-min);
}
#myPhrasebook::after { margin-inline-start: auto; }
#screenMy > .menu-list:first-of-type { border: 0; }
#screenMy :is(.td-oshi, .td-season, .td-omi, .td-mini, .cul) { position: relative; padding-inline-end: var(--space-6); }
#screenMy :is(.td-oshi, .td-season, .td-omi, .td-mini, .cul) > .outline-icon {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-subtle);
}
#screenMy .omi-tube { width: auto; height: auto; margin: 0; padding: var(--space-1) var(--space-2); border-radius: var(--r-pill); background: var(--paper-2); box-shadow: var(--shadow-none); }
#screenMy .omi-tube b { position: static; color: var(--ink-muted); white-space: nowrap; }
#screenMy .td-diagnoses { margin-top: var(--space-4); }
#screenMy .td-more { border-top: thin solid var(--line-on-paper); }
#screenMy :is(.td-mini, .td-season, .td-omi, .os-t, .cul) :is(small,.sub,em) {
  color: var(--ink-muted);
  font-size: var(--text-caption);
  opacity: 1;
}
#screenMy .td-mini small { display: block; margin-top: var(--space-1); }
#screenMy .cul .big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}
#screenMy .cul .big small { margin: 0; }

.f-form { display: grid; gap: var(--space-3); }
.f-form label { display: grid; gap: var(--space-1); font: 700 var(--text-xs)/var(--line-height-title) var(--f-ja); }
.fp-edit .f-form label small { color: var(--ink-muted); }
.f-form label small { color: var(--text-muted); font-size: var(--text-xs); }
.f-form :is(input,select) { min-width: 0; max-width: 100%; width: 100%; }
.f-form #fGo { width: 100%; min-height: var(--size-control); }
.f-note, .f-phrase .kana { font-size: var(--text-xs); }
#fortuneLucky .f-lucky { background: var(--paper-2); }

.sheet-wrap::before { background: var(--scrim); }
.sheet { box-shadow: var(--shadow-sheet); }
.sheet-head {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  min-height: var(--size-target);
  background: var(--paper-1);
}
.sheet-close {
  position: absolute;
  inset: 0 0 auto auto;
  width: var(--size-target);
  height: var(--size-target);
  color: var(--ink);
  font-size: var(--text-lg);
}
.sheet-head .grab { margin-block: 0; }
.sheet .phrase .kana { font-size: var(--text-xs); }
