@import url('pwa.css');
/* ==== 헉! UI v2 공통 토큰 (휴대용 컬러 TV 톤, 2026-10-27) ====
   글꼴 NeoDGM(Neo둥근모) SIL OFL 1.1, 라이선스 shared/fonts/neodgm-OFL.txt */
@font-face { font-family: 'NeoDGM'; src: url('./fonts/neodgm.woff2') format('woff2'); font-display: swap; }
:root {
  --hk-bg: #0c0c0e; --hk-body: #141416; --hk-red: #e5352f; --hk-yellow: #ffd54a; --hk-cream: #f1e8d4; --hk-dim: #a59c8a;
  --hk-lcd-hi: #aab394; --hk-lcd-lo: #8c9678; --hk-lcd-ink: #1d2419;
  --hk-rgb-r: #e8453c; --hk-rgb-g: #3dbb5c; --hk-rgb-b: #4673e6; --hk-vhf: #57d684; --hk-uhf: #6f98ff;
  --hk-px: 'NeoDGM', ui-monospace, monospace;
  --hk-sans: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
/* shared/ui.css — 모든 게임 공통 화면 스타일 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #050507; color: #f4e9d0;
  font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
canvas.game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
a { color: inherit; }
.hide { display: none !important; }

/* ---------- HUD ---------- */
.ods-hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.3s; }
body.playing .ods-hud { opacity: 1; }
.ods-tl { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ods-tr { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ods-bc { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
body.touch .ods-bc { bottom: calc(150px + env(safe-area-inset-bottom)); }
.chip { background: rgba(10, 10, 14, 0.62); border: 1px solid rgba(255,255,255,0.08); padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.small { font-size: 12px; padding: 5px 10px; }
.chip.big { font-size: 20px; padding: 8px 16px; }
.chip.warn { background: rgba(160, 20, 20, 0.7); }
.ods-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.ods-bar .track { width: 130px; height: 9px; border-radius: 9px; background: rgba(255,255,255,0.14); overflow: hidden; }
.ods-bar .fill { height: 100%; width: 100%; background: linear-gradient(90deg, #6fd27e, #c6f06b); transition: width 0.15s; }
.ods-bar.low .fill { background: linear-gradient(90deg, #ff4b4b, #ff9a4b); }
.ods-bar.low { animation: odsPulse 0.6s infinite alternate; }
.ods-bar.danger .fill { background: linear-gradient(90deg, #ff9a4b, #ff3b2f); }
@keyframes odsPulse { to { opacity: 0.55; } }
.ods-cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255,255,255,0.75); box-shadow: 0 0 0 2px rgba(0,0,0,0.35); }
body.touch .ods-cross { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.ods-prompt { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); background: rgba(10,10,14,0.7); border-radius: 10px; padding: 6px 12px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pop { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 22px; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,0.8); animation: odsPop 1s ease-out forwards; color: #fff; }
.pop.hit, .pop.good { color: #ffe066; font-size: 28px; }
.pop.miss { color: #ddd; font-size: 18px; }
.pop.bad { color: #ff6b5b; font-size: 24px; }
.pop.info { color: #9fe3ff; }
.pop.small { font-size: 16px; }
@keyframes odsPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
.ods-msg { position: absolute; left: 0; right: 0; top: 28%; text-align: center; font-size: 44px; font-weight: 900; opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: scale(0.9); text-shadow: 0 3px 0 #000, 0 0 24px rgba(0,0,0,0.9); padding: 0 16px; line-height: 1.2; }
.ods-msg.show { opacity: 1; transform: scale(1); }
.ods-msg.dread { color: #e8dcc0; font-size: 32px; letter-spacing: 0.08em; }
.ods-msg.scream { color: #ff3b2f; font-size: 52px; animation: odsShake 0.08s infinite; }
.ods-msg.gold, .ods-msg.good { color: #ffd54a; }
.ods-msg.bad { color: #ff5d5d; }
@keyframes odsShake { 50% { transform: translate(3px, -2px) rotate(1deg); } }
.ods-flash { position: fixed; inset: 0; background: #fff8e6; opacity: 0; pointer-events: none; z-index: 3; }
.ods-hurt { position: fixed; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(200, 0, 0, 0.9)); opacity: 0; pointer-events: none; z-index: 3; }
.ods-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(20,20,20,0.92); padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: 14px; transition: opacity 0.4s; }
.ods-toast.out { opacity: 0; }
.share-coach { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(18,16,13,0.94); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 10px 34px rgba(0,0,0,0.5); color: #f3ead6; font-size: 16px; white-space: nowrap; animation: scIn 0.28s ease-out; transition: opacity 0.3s; }
.share-coach.out { opacity: 0; }
.share-coach i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-coach i svg { width: 18px; height: 18px; }
.share-coach b { color: #ffd76a; }
.share-coach .sc-arrow { display: inline-block; margin: 0 5px 0 3px; animation: scNudge 0.9s ease-in-out infinite; }
@keyframes scIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes scNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---------- 터치 조작 ---------- */
.ctl-layer { position: fixed; inset: 0; z-index: 4; display: none; }
.ctl-layer.show { display: block; }
.ctl-stick { position: absolute; width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.ctl-stick.on { opacity: 1; }
.ctl-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.35); transform: translate(-50%, -50%); }
.ctl-stick-hint { position: absolute; left: calc(30px + env(safe-area-inset-left)); bottom: calc(40px + env(safe-area-inset-bottom)); width: 96px; height: 96px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.4); pointer-events: none; transition: opacity 0.4s; }
.ctl-layer.used .ctl-stick-hint { opacity: 0; }
.ctl-btn { position: absolute; border-radius: 50%; background: rgba(20, 20, 26, 0.55); border: 2px solid rgba(255,255,255,0.28); font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; touch-action: none; color: #fff; }
.ctl-btn small { font-size: 10px; font-weight: 600; margin-top: 4px; opacity: 0.85; white-space: nowrap; }
.ctl-btn.down { background: rgba(255, 224, 102, 0.45); transform: scale(0.94); }
.ctl-btn.on { background: rgba(120, 200, 255, 0.4); border-color: rgba(160, 220, 255, 0.8); }
.ctl-btn.disabled { opacity: 0.35; }
.ctl-btn.hidden { display: none; }
.ctl-btn.slot-a { right: calc(18px + env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 92px; height: 92px; font-size: 28px; }
.ctl-btn.slot-b { right: calc(122px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 68px; height: 68px; font-size: 20px; }
.ctl-btn.slot-c { right: calc(130px + env(safe-area-inset-right)); bottom: calc(100px + env(safe-area-inset-bottom)); width: 58px; height: 58px; font-size: 13px; }
.ctl-btn.slot-d { right: calc(26px + env(safe-area-inset-right)); bottom: calc(130px + env(safe-area-inset-bottom)); width: 76px; height: 76px; font-size: 16px; background: rgba(255, 213, 74, 0.28); border-color: rgba(255, 213, 74, 0.8); animation: odsBreath 1.2s infinite alternate; }
.ctl-btn.slot-e { right: calc(200px + env(safe-area-inset-right)); bottom: calc(30px + env(safe-area-inset-bottom)); width: 58px; height: 58px; font-size: 13px; }
@keyframes odsBreath { to { box-shadow: 0 0 18px rgba(255, 213, 74, 0.6); } }
.ctl-btn .ctl-label, .ctl-btn small { pointer-events: none; } /* 버튼 글자가 바뀌어 다시 그려져도 손 뗌(touchend)이 버튼에 닿게 — elevator B 눌림 고정 버그(10/23) */

/* ---------- 화면 공통 ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0.85)); overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.card { width: 100%; max-width: 420px; text-align: center; margin: auto; }
/* 안내 시트(pwa·auth·link-sheet·push) 단추. 예전 제목 화면 규칙(.kicker·.lead·.rules·.hint·.ods-look·.warn·.mute 등)은 진입 창 v2 통합(10/27) 때 지움 */
.primary { background: #f4e9d0; color: #16120b; font-weight: 900; font-size: 20px; padding: 16px 0; width: 100%; border-radius: 14px; box-shadow: 0 6px 30px rgba(255, 230, 170, 0.25); }
.primary:active { transform: scale(0.98); }
.ghost { background: rgba(255,255,255,0.06); color: #cfc5ad; font-size: 13px; padding: 10px 12px; border-radius: 10px; width: 100%; }

/* ==== 진입 창 v2 「채널이 잡히는 순간」 + 일시정지 「채널 멈춤」 (10/27, ui.js mountTitle·mountPause) ====
   화면 전체 = 휴대용 TV 화면: 주사선·유리 반사·가는 빨간 테(.t-fx), 들어올 때 지지직(.t-snow) 0.4초 → 판 화면이 깨끗하게 잡힘.
   세로: 위(헉!·소리) / 가운데(채널 번호 + 제목 + 아이디어 판이면 「@아이디 아이디어」, 설명·조작·감도 LCD 창은 제목 위에 겹침) / 아래(노란 ▶ + 기호 키 + RGB 점).
   글자 최소(10/27 D4 결정): 첫 화면 글자는 「헉!」·채널 숫자·판 제목(·아이디어 줄)뿐, 나머지는 기호. 설명·조작·감도 글은 눌러서 펼친 창 안에만.
   시작 기호는 ▶(10/27 사용자 결정: ■ 는 멈춤처럼 보임, 허브 TV 가운데 키도 ▶). 주의 문구(warn)는 화면에 안 냄.
   가로·낮은 화면(높이 600 이하): 왼쪽 제목·창, 오른쪽 ▶·키 → 844x390 에서도 시작이 첫 화면. 데스크톱은 세로 배치를 가운데 780px 안에.
   애니메이션은 CSS 만(transform·opacity 위주, 한 번 돌고 끝. 계속 도는 건 ▶ 키 숨쉬기 빛 하나), prefers-reduced-motion 이면 끔.
   판 style.css 의 「.ods-title h1」 덮기(mosquito 큰 「앵~」, toilet 글자색)는 그대로 먹게 h1 은 같은 무게로만 씀. 새 클래스는 t-·p- 로 시작 */
.ods-title, .ods-pause { --t-osd: #7dff8a; --t-ink: #16120b; font-family: var(--hk-sans); }
.ods-title .sr, .ods-pause .sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.screen.ods-title { flex-direction: column; align-items: stretch; justify-content: flex-start; color: var(--hk-cream); overflow-x: hidden; /* 긴 제목 뒤 그늘(.t-cap::before)이 양옆으로 48px 나가 가로 스크롤이 생기던 것(conv-crush 34px) */
  padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: radial-gradient(130% 95% at 50% 42%, rgba(6,6,8,0.2), rgba(6,6,8,0.7) 62%, rgba(4,4,6,0.93)); }
/* 화면 유리: 주사선 + 반사 + 가는 빨간 테 (진입·일시정지 같이) */
.ods-title .t-fx, .ods-pause .t-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 24%, transparent 25%), repeating-linear-gradient(180deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 3px); }
.ods-title .t-fx::after, .ods-pause .t-fx::after { content: ''; position: absolute; top: max(6px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); left: max(6px, env(safe-area-inset-left)); border: 1.5px solid rgba(143,36,38,0.9); border-radius: 22px; }
/* 지지직 → 깨끗 (0.3초 버티고 0.36초에 걸쳐 사라짐, ui.js 가 1.2초 뒤 지움) */
.ods-title .t-snow { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; background: #6d6d6d; animation: odsESnowOut 0.36s ease-in 0.3s both; }
.ods-title .t-snow i { position: absolute; inset: -256px; background-size: 256px 256px; image-rendering: pixelated; animation: odsESnowJit 0.2s steps(1, end) infinite; }
.ods-title .t-snow::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3), transparent); animation: odsERoll 0.66s linear both; }
@keyframes odsESnowJit { 0% { transform: translate(0, 0); } 25% { transform: translate(-61px, 37px); } 50% { transform: translate(43px, -89px); } 75% { transform: translate(-117px, -23px); } }
@keyframes odsESnowOut { 0% { opacity: 1; } 70% { opacity: 0.3; } 100% { opacity: 0; visibility: hidden; } }
@keyframes odsERoll { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
/* 판: 위 · 가운데 · 아래 */
.ods-title .card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(min-content, 1fr) auto; grid-template-areas: 'top' 'main' 'side';
  width: 100%; max-width: none; height: 100%; max-height: 780px; margin: auto; text-align: center; }
.ods-title .t-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; min-height: 48px; animation: odsEUp 0.32s ease-out 0.5s backwards; }
.ods-title .t-brand { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin: 0 0 0 -4px; padding: 0 4px; border: 0; text-decoration: none; }
.ods-title .t-brand .ods-studio { margin: 0; font-family: var(--hk-px); font-size: 16px; line-height: 16px; font-weight: 400; letter-spacing: 0; color: var(--hk-yellow); opacity: 1; text-shadow: 2px 2px 0 #000; }
.ods-title .t-top .ods-mute { position: relative; top: auto; right: auto; }
.ods-title .t-main { grid-area: main; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 0; }
.ods-title .t-cap { position: relative; isolation: isolate; max-width: 600px; transition: opacity 0.18s; animation: odsELock 0.5s steps(5, end) 0.26s backwards; }
/* 밝은 판(편의점·지하상가·교실)에서도 제목이 읽히게 제목 뒤만 살짝 어둡게 */
.ods-title .t-cap::before { content: ''; position: absolute; inset: -36px -48px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(4,4,6,0.68), rgba(4,4,6,0.4) 62%, rgba(4,4,6,0)); }
.ods-title.pane-open .t-cap { opacity: 0.08; }
@keyframes odsELock { 0% { opacity: 0; transform: translateY(-18px) skewX(-8deg); filter: brightness(2.2); } 30% { opacity: 1; transform: translateY(8px) skewX(4deg); } 60% { transform: translateY(-3px) skewX(-1deg); filter: brightness(1.3); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes odsEUp { from { opacity: 0; transform: translateY(8px); } }
/* 채널 번호 OSD (허브 눈금 띠와 같은 초록 픽셀 숫자, 「CH」 글자 없이) */
.ods-title .t-ch, .ods-pause .t-ch { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 12px; font-family: var(--hk-px); font-size: 32px; line-height: 32px; font-weight: 400; color: var(--t-osd); text-shadow: 2px 2px 0 #000, 0 0 8px rgba(80,255,120,0.45); }
/* 제목: 크게, 브라운관 색 번짐(빨강·파랑 1.5px) */
.ods-title h1 { font-size: clamp(32px, min(9.4vw, 7.2vh), 58px); line-height: 1.14; font-weight: 900; letter-spacing: -0.02em; color: #fff7e6; word-break: keep-all; overflow-wrap: anywhere;
  text-shadow: -1.5px 0 rgba(232,69,60,0.55), 1.5px 0 rgba(70,115,230,0.6), 0 3px 0 rgba(0,0,0,0.85), 0 0 26px rgba(0,0,0,0.9); }
/* 댓글 아이디어 판: 제목 아래 작게 한 줄 「@아이디 아이디어」 (10/27 사용자 결정, 13px 이상. 결과 창 .r-idea 와 같은 글) */
.ods-title .t-idea { margin: 12px 0 0; font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: 0; color: #d8cfbb; overflow-wrap: anywhere; text-shadow: 0 1px 0 #000, 0 0 10px rgba(0,0,0,0.9); }
/* 아래: 노란 ▶ 하나 + 기호 키 + RGB 점 */
.ods-title .t-side { grid-area: side; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 4px; animation: odsEUp 0.32s ease-out 0.5s backwards; }
.ods-title .ods-start { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 300px); height: 64px; padding: 0; border-radius: 10px; color: var(--t-ink); background: var(--hk-yellow);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -3px 0 rgba(0,0,0,0.12), 0 3px 0 #8a6a0c, 0 12px 26px rgba(0,0,0,0.45); touch-action: manipulation; }
.ods-title .ods-start i { display: block; width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--t-ink); }
.ods-title .ods-start::after { content: ''; position: absolute; inset: -5px; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255,213,74,0.55), 0 0 26px 2px rgba(255,213,74,0.5); opacity: 0; animation: odsEBreath 1.5s ease-in-out 0.9s infinite alternate; }
.ods-title .ods-start:active { transform: translateY(3px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 0 0 #8a6a0c; }
.ods-title .ods-start:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes odsEBreath { to { opacity: 1; } }
.ods-title .t-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* 검은 키 (허브 기기 CHANNEL 키 질감). 진입·일시정지 같이 */
.ods-title .t-key, .ods-pause .t-key { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 9px;
  color: #e9e9e9; font: inherit; background: linear-gradient(180deg, #34343a, #222226); cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.45), 0 2px 0 #050505, 0 3px 8px rgba(0,0,0,0.45); }
.ods-title .t-key svg, .ods-pause .t-key svg { display: block; width: 24px; height: 24px; flex: none; }
.ods-title .t-key:active, .ods-pause .t-key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 2px 4px rgba(0,0,0,0.6); }
.ods-title .t-key:focus-visible, .ods-pause .t-key:focus-visible, .ods-title .t-pane button:focus-visible { outline: 2px solid var(--hk-yellow); outline-offset: 2px; }
.ods-title .t-key[aria-expanded="true"] { color: var(--hk-yellow); background: linear-gradient(180deg, #29292e, #1a1a1d); box-shadow: inset 0 2px 5px rgba(0,0,0,0.7), 0 0 0 1.5px rgba(255,213,74,0.6); }
.ods-title .t-key.off, .ods-pause .t-key.off { color: #ff8a80; }
.ods-title .t-q { font-family: var(--hk-px); font-size: 32px; line-height: 32px; font-weight: 400; }
.ods-title .t-lvkey svg { width: 20px; height: 20px; }
.ods-title .t-lv { display: flex; gap: 3px; }
.ods-title .t-lv i { width: 6px; height: 4px; background: currentColor; opacity: 0.28; }
.ods-title .t-lvkey[data-lv="1"] .t-lv i:nth-child(1), .ods-title .t-lvkey[data-lv="2"] .t-lv i:nth-child(-n+2), .ods-title .t-lvkey[data-lv="3"] .t-lv i { opacity: 1; }
/* 녹화 = 빨간 점(켜짐: 빛남, 꺼짐: 어두운 점). 글자 「REC」 없이 */
.ods-title .t-recdot { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; opacity: 0.75; }
.ods-title .t-recdot i { width: 10px; height: 10px; border-radius: 50%; background: #5a2a28; }
.ods-title .ods-rec-btn.sel .t-recdot { opacity: 1; }
.ods-title .ods-rec-btn.sel .t-recdot i, .ods-title .t-flash.rec-on .t-recdot i { background: #ff3b30; box-shadow: 0 0 7px rgba(255,59,48,0.95); }
.ods-title .t-keys .ods-install { width: 48px; margin: 0; padding: 0; font-size: 13px; }
.ods-title .ods-install span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ods-title .t-rgb { display: flex; justify-content: center; gap: 7px; height: 6px; margin: 0; }
.ods-title .t-rgb i { width: 25px; height: 6px; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 7px); opacity: 0.95; }
.ods-title .t-rgb i:nth-child(1) { --c: var(--hk-rgb-r); } .ods-title .t-rgb i:nth-child(2) { --c: var(--hk-rgb-g); } .ods-title .t-rgb i:nth-child(3) { --c: var(--hk-rgb-b); }
/* 펼친 창 = 회녹색 LCD (허브 기기 예보창). 제목 자리 가운데 겹침, 길면 안에서 스크롤 */
.ods-title .t-pane { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: min(calc(100% - 6px), 420px); max-height: calc(100% - 6px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 16px; border-radius: 7px; text-align: left; color: var(--hk-lcd-ink); background: linear-gradient(172deg, var(--hk-lcd-hi), var(--hk-lcd-lo));
  box-shadow: 0 0 0 3px #0a0a0b, 0 0 0 4px rgba(255,255,255,0.07), 0 18px 40px rgba(0,0,0,0.6); animation: odsEPane 0.2s ease-out; }
@keyframes odsEPane { from { opacity: 0; transform: translate(-50%, -46%) scaleY(0.9); } }
.screen.ods-title .t-pane > *, .screen.ods-title .t-pane b { color: var(--hk-lcd-ink); }
.ods-title .t-pane .kicker, .ods-title .t-pane .t-ph { margin: 0 40px 10px 0; font-family: var(--hk-px); font-size: 16px; line-height: 20px; font-weight: 400; letter-spacing: 0; }
.ods-title .t-pane .lead { margin: 0 0 10px; max-width: none; font-size: 15px; line-height: 1.55; word-break: keep-all; }
.ods-title .t-pane .lead:empty { display: none; }
.ods-title .t-pane .rules, .ods-title .t-pane .hint { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.ods-title .t-pane .rules { margin-bottom: 4px; }
/* 조작 창 (10/28 PC·폰 나눔): 지금 입력 방식 것만(ui.js bindCtlGuide → data-show), 다른 기기 것은 아래 작은 「… 조작 보기」로 바꿔 봄 */
.ods-title .t-pane[data-show="touch"] .hint-pc, .ods-title .t-pane[data-show="pc"] .hint-touch { display: none; }
.ods-title .t-pane .t-dev { margin-left: 4px; font-family: var(--hk-sans); font-size: 12px; font-weight: 800; opacity: 0.6; }
.screen.ods-title .t-pane .t-other { display: inline-block; margin: 12px 0 0; padding: 4px 0; min-height: 0; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--hk-lcd-ink); opacity: 0.62; text-decoration: underline; text-underline-offset: 3px; }
/* ▶ 아래 조작 요약 (지금 기기 것, 작고 흐리게 한두 줄) */
.ods-title .t-brief { display: grid; gap: 2px; max-width: min(100%, 340px); margin: -6px 0 0; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--hk-cream); opacity: 0.58; word-break: keep-all; text-shadow: 0 1px 0 #000; }
.ods-title .t-brief span { display: block; }
.ods-title .t-pane > :first-child { padding-right: 34px; }
.ods-title .t-pane .rules li, .ods-title .t-pane .hint li { position: relative; display: block; margin: 0; padding: 0 0 0 15px; background: none; border-radius: 0; }
.ods-title .t-pane .rules li::before, .ods-title .t-pane .hint li::before { content: ''; position: absolute; left: 1px; top: 0.58em; width: 7px; height: 7px; background: var(--hk-lcd-ink); }
.ods-title .t-pane b { font-weight: 800; }
.ods-title .t-pane .mq-ear { margin: 0 0 10px; }
.ods-title .t-x { position: absolute; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--hk-lcd-ink); background: none; border-radius: 6px; }
.ods-title .t-x svg { width: 20px; height: 20px; }
.ods-title .ods-look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; font-size: 14px; color: var(--hk-lcd-ink); }
.ods-title .ods-look button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 0; border-radius: 6px; font-size: 14px; font-weight: 800; color: var(--hk-lcd-ink); background: rgba(29,36,25,0.08); box-shadow: inset 0 0 0 1.5px rgba(29,36,25,0.4); }
.ods-title .ods-look button.sel { color: var(--hk-lcd-hi); background: var(--hk-lcd-ink); box-shadow: none; }
.screen.ods-title .ods-look button.sel b { color: var(--hk-lcd-hi); }
.ods-title .t-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.ods-title .t-bars i { width: 6px; background: currentColor; opacity: 0.25; }
.ods-title .t-bars i:nth-child(1) { height: 6px; } .ods-title .t-bars i:nth-child(2) { height: 11px; } .ods-title .t-bars i:nth-child(3) { height: 16px; }
.ods-title .t-bars[data-n="1"] i:nth-child(1), .ods-title .t-bars[data-n="2"] i:nth-child(-n+2), .ods-title .t-bars[data-n="3"] i { opacity: 1; }
/* 잠깐 뜨는 그림 OSD (소리·녹화 바꿀 때, 리모컨 누른 TV 처럼): 스피커 + 초록 막대 / 스피커 X / 빨간 점 */
.ods-title .t-flash { position: fixed; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 58px); z-index: 6; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); margin: 0; padding: 10px 14px; border-radius: 4px; color: var(--t-osd); background: rgba(0,0,0,0.8); pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.ods-title .t-flash.on { opacity: 1; }
.ods-title .t-flash svg { display: block; width: 32px; height: 32px; filter: drop-shadow(2px 2px 0 #000); }
.ods-title .t-flash.snd-off { color: #ff8a80; }
.ods-title .t-flash.rec-on, .ods-title .t-flash.rec-off { color: #e9e9e9; }
.ods-title .t-flash .t-recdot { width: 30px; height: 30px; opacity: 1; } .ods-title .t-flash .t-recdot i { width: 14px; height: 14px; }
.ods-title .t-vol { display: flex; align-items: flex-end; gap: 4px; height: 24px; }
.ods-title .t-vol i { width: 7px; background: currentColor; box-shadow: 2px 2px 0 #000; }
.ods-title .t-vol i:nth-child(1) { height: 9px; } .ods-title .t-vol i:nth-child(2) { height: 14px; } .ods-title .t-vol i:nth-child(3) { height: 19px; } .ods-title .t-vol i:nth-child(4) { height: 24px; }
/* 시작 누르면 0.2초 화면 꺼짐(가운데 가로줄로 접힘) */
.screen.ods-title.out { pointer-events: none; animation: odsEOut 0.2s ease-in forwards; }
.ods-title.out .card { animation: odsEOff 0.2s ease-in forwards; }
@keyframes odsEOut { to { opacity: 0; } }
@keyframes odsEOff { to { transform: scale(0.92, 0.04); filter: brightness(2.4); } }
/* 가로·낮은 화면: 왼쪽 제목·창, 오른쪽 ▶·키 (10/26 모바일 QA: 844x390 에서 시작이 화면 아래로 밀리던 것) */
@media (orientation: landscape) and (max-height: 600px) {
  .ods-title .card { max-width: 1100px; max-height: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(min-content, 1fr); grid-template-areas: 'top top' 'main side'; column-gap: 28px; }
  .ods-title .t-top { min-height: 44px; }
  .ods-title .t-main { padding: 0 0 6px; }
  .ods-title .t-side { align-self: center; gap: 12px; padding: 0 0 6px; }
  .ods-title .t-ch { margin-bottom: 8px; }
  .ods-title h1 { font-size: clamp(26px, 8.4vh, 44px); }
  .ods-title .t-idea { margin-top: 8px; font-size: 13px; }
  }
@media (max-height: 560px) and (orientation: portrait) { .ods-title .t-side { gap: 10px; } .ods-title .ods-start { height: 56px; } }

/* 일시정지 「채널 멈춤」: 멈춘 판 화면 위에 주사선 + VHS 멈춤 띠, 가운데 한 줄 = OSD(채널 + ❚❚) / 노란 ▶ / 소리 키. 모서리는 판 HUD 자리라 비움 */
.screen.ods-pause { display: block; padding: 0; overflow: hidden; touch-action: none; cursor: pointer; background: rgba(6,6,8,0.72); }
.ods-pause .p-band { position: fixed; left: 0; right: 0; top: 64%; height: 14px; z-index: 0; opacity: 0.22; pointer-events: none; background-size: 256px 256px; image-rendering: pixelated; animation: odsPBand 0.3s steps(1, end) infinite; }
@keyframes odsPBand { 0% { transform: translateY(0); background-position: 0 0; } 33% { transform: translateY(5px); background-position: -70px 30px; } 66% { transform: translateY(-3px); background-position: 40px -50px; } }
.ods-pause .p-osd { display: flex; align-items: center; gap: 14px; height: 32px; margin: 0; }
.ods-pause .t-ch { margin: 0; }
.ods-pause .p-sym { display: inline-flex; gap: 5px; height: 26px; }
.ods-pause .p-sym i { width: 9px; height: 26px; background: var(--t-osd); box-shadow: 2px 2px 0 #000, 0 0 8px rgba(80,255,120,0.45); animation: odsPBlink 1.6s steps(2, start) infinite; }
@keyframes odsPBlink { to { opacity: 0.35; } }
.ods-pause .card.small { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; max-width: none; margin: 0; animation: odsPIn 0.26s steps(3, end) backwards;
  background: radial-gradient(250px 190px at 50% 50%, rgba(5,5,7,0.95) 45%, rgba(5,5,7,0)); } /* 가운데 판 안내 글자(.ods-prompt 등)가 비치지 않게 */
@keyframes odsPIn { 0% { transform: translateY(-10px) scaleY(1.08); filter: brightness(1.8); } 60% { transform: translateY(4px); } }
.ods-pause .p-go { position: relative; display: flex; align-items: center; justify-content: center; width: 132px; height: 64px; padding: 0; border-radius: 10px; background: var(--hk-yellow);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -3px 0 rgba(0,0,0,0.12), 0 3px 0 #8a6a0c, 0 12px 26px rgba(0,0,0,0.45); }
.ods-pause .p-go i { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--t-ink); }
.ods-pause .p-go:active { transform: translateY(3px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.25); }
@media (prefers-reduced-motion: reduce) {
  .ods-title .t-snow { display: none; }
  .ods-title, .ods-title *, .ods-title *::after, .ods-pause, .ods-pause * { animation: none !important; transition: none !important; }
}

/* ---------- 결과 (v2 10/27: 휴대용 컬러 TV 톤 = 방송 끝 화면 + LCD 성적표, ui.js mountResult) ----------
   몸체 = 무광 검정 + 잡음 + 오른쪽 크롬 띠, 화면 창 = 광택 검정 + 가는 빨간 테 + RGB 점, 성적표 = 회녹색 반사형 LCD (허브 시안 D3 값 그대로)
   Neo둥근모(--hk-px)는 16·32px 과 그 배수에서만. 그 밖 글자 13px 이상, 누르는 곳 44px 이상. 애니메이션은 CSS(opacity·transform)로 나올 때 한 번씩 */
.ods-result { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 40%, rgba(10,10,12,0.55), rgba(5,5,7,0.94)); }
.ods-result .card.result { position: relative; max-width: 420px; padding: 12px 12px 4px; border-radius: 16px; text-align: left; color: var(--hk-cream); font-family: var(--hk-sans);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"), linear-gradient(165deg, #222225 0%, #18181a 45%, #111113 100%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.09), inset -1px -2px 0 rgba(0,0,0,0.7), 0 2px 0 #050505, 0 34px 60px rgba(0,0,0,0.6);
  transform-origin: 50% 30%; animation: rOn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ods-result .card.result::after { content: ''; position: absolute; right: 3px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; pointer-events: none; opacity: 0.8;
  background: linear-gradient(180deg, #4a4a4a, #d9d9d9 30%, #8c8c8c 60%, #3a3a3a); }
.ods-result :is(.r-retry, .r-key, .r-clip-share, .ods-next, .rd-in a, .gear-item, .credit):focus-visible { outline: 2px solid var(--hk-yellow); outline-offset: 2px; }

/* 방송 끝 화면: 판 그림(흐리게) 위에 판 제목 · N트 + 큰 등급(픽셀) + 칭호. 지면 지지직이 남음. 한 줄 설명(.r-sub)은 숨김(글자 최소) */
.ods-result .r-win { position: relative; padding: 8px 8px 9px; border-radius: 10px; background: linear-gradient(180deg, #0b0b0c, #050506);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 0 1px #000, 0 1px 0 rgba(255,255,255,0.05); }
.ods-result .r-win::after { content: ''; position: absolute; inset: 4px; border: 1.5px solid #8f2426; border-radius: 7px; pointer-events: none; opacity: 0.9; }
.ods-result .r-scr { position: relative; isolation: isolate; overflow: hidden; padding: 10px 12px 16px; border-radius: 5px; text-align: center; background: #0e130d;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 2px #0f0f10; }
.ods-result .r-pic { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.36) saturate(0.75); }
.ods-result .r-scr.lose .r-pic { filter: brightness(0.3) saturate(0.2) sepia(0.25); }
.ods-result .r-snow { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0; image-rendering: pixelated; background-size: 64px 48px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='48'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.55'/></filter><rect width='64' height='48' filter='url(%23s)'/></svg>");
  animation: rSnow 0.6s steps(6, end) both; }
.ods-result .r-scr.lose .r-snow { opacity: 0.22; animation-name: rSnowLose; }
.ods-result .r-scr::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: 3px 3px;
  background-image: linear-gradient(rgba(0,0,0,0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px); }
.ods-result .r-scr::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.035) 26%, transparent 27%), radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0,0,0,0.5)); }
.ods-result .r-osd { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; text-align: left; }
.ods-result .r-gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.3; font-weight: 800; color: var(--hk-cream); text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,0.9); }
.ods-result .r-tries { margin-left: auto; padding: 6px 8px 5px; border-radius: 3px; font-family: var(--hk-px); font-size: 16px; line-height: 16px; color: var(--hk-yellow); white-space: nowrap;
  background: rgba(0,0,0,0.62); box-shadow: inset 0 0 0 1.5px rgba(255,213,74,0.7); }
.ods-result .grade { --go: 6px; --gl: transparent; margin: 0 0 8px; font-family: var(--hk-px); font-weight: 400; font-size: 128px; line-height: 112px; letter-spacing: 0; color: #e6e1d6;
  text-shadow: var(--go) var(--go) 0 #000, 0 0 28px var(--gl); animation: rStamp 0.4s steps(4, end) 0.16s both; }
.ods-result .gS { color: var(--hk-yellow); --gl: rgba(255,213,74,0.55); }
.ods-result .gA { color: var(--hk-vhf); --gl: rgba(87,214,132,0.42); }
.ods-result .gB { color: var(--hk-uhf); --gl: rgba(111,152,255,0.42); }
.ods-result .gC { color: #e6e1d6; }
.ods-result .gD { color: #e8a46c; }
.ods-result .gF { color: #ff5a4f; --gl: rgba(255,59,48,0.42); }
.ods-result .r-title { margin: 0; font-size: 22px; line-height: 1.28; font-weight: 800; color: #fff; letter-spacing: -0.01em; word-break: keep-all; text-shadow: 0 1px 0 #000, 0 0 14px rgba(0,0,0,0.85); }
.ods-result .r-sub { display: none; }
.ods-result .r-rgb { display: flex; justify-content: center; gap: 7px; height: 6px; margin-top: 9px; }
.ods-result .r-rgb i { width: 25px; height: 6px; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 7px); opacity: 0.95; }
.ods-result .r-rgb i:nth-child(1) { --c: var(--hk-rgb-r); } .ods-result .r-rgb i:nth-child(2) { --c: var(--hk-rgb-g); } .ods-result .r-rgb i:nth-child(3) { --c: var(--hk-rgb-b); }

/* LCD 성적표: 통계 칸(판마다 다른 이름 13px · 값 픽셀 숫자) + 전국 순위 + 최고 기록. 칸이 차례로 켜짐 */
.ods-result .r-lcd { margin-top: 10px; padding: 3px; border-radius: 6px; background: #0a0a0b; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 0 rgba(255,255,255,0.05); }
.ods-result .r-lcd-in { overflow: hidden; border-radius: 4px; color: var(--hk-lcd-ink); background: linear-gradient(172deg, var(--hk-lcd-hi), var(--hk-lcd-lo)); }
.ods-result .r-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ods-result .r-stats > div { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 8px 10px 9px; container-type: inline-size; animation: rSeg 0.3s steps(2, end) 0.3s both; }
.ods-result .r-stats > div:nth-child(2n) { border-left: 1px dashed rgba(29,36,25,0.35); }
.ods-result .r-stats > div:nth-child(n+3) { border-top: 1px dashed rgba(29,36,25,0.35); }
.ods-result .r-stats > div:nth-child(2) { animation-delay: 0.38s; } .ods-result .r-stats > div:nth-child(3) { animation-delay: 0.46s; } .ods-result .r-stats > div:nth-child(4) { animation-delay: 0.54s; }
.ods-result .r-stats.odd > div:last-child { grid-column: 1 / -1; }
.ods-result .r-stats span { font-size: 13px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; opacity: 0.8; word-break: keep-all; }
.ods-result .r-stats b { font-family: var(--hk-px); font-weight: 400; font-size: 32px; line-height: 32px; white-space: nowrap; text-shadow: 2px 2px 0 rgba(29,36,25,0.16); }
.ods-result .r-stats b.m { font-size: 16px; line-height: 16px; }
@container (min-width: 150px) { .ods-result .r-stats b.m { font-size: 32px; line-height: 32px; } }
.ods-result .r-stats b.l { font-size: 16px; line-height: 20px; white-space: normal; word-break: keep-all; }
.ods-result .r-rank, .ods-result .r-pb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 8px 10px 7px; border-top: 1px dashed rgba(29,36,25,0.35); font-size: 13px; line-height: 1.3; font-weight: 800; }
.ods-result .r-stats.hide + .r-rank { border-top: 0; }
.ods-result .r-rank b { font-family: var(--hk-px); font-weight: 400; font-size: 16px; line-height: 16px; }
.ods-result .r-rank em { margin-left: auto; font-style: normal; font-family: var(--hk-px); font-size: 16px; line-height: 16px; color: #8e1c16; }
.ods-result .r-pb.new { color: #7a1712; }
.ods-result .r-pb.new::before { content: '★'; font-family: var(--hk-px); font-size: 16px; line-height: 16px; animation: rBlink 0.5s steps(2, start) 0.7s 4; }
.ods-result .r-idea { display: block; margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--hk-dim); }
.ods-result .r-best { display: none; }

/* 한 판 더(노란 주 버튼) + 공유·이미지 저장·X 기호 키 (허브 시안 D3 의 노란 칩·검은 키) */
.ods-result .r-act { display: flex; gap: 8px; margin-top: 12px; }
.ods-result .r-retry { flex: 1; min-width: 0; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
  background: var(--hk-yellow); color: #16120b; font-family: var(--hk-px); font-size: 32px; line-height: 32px; word-spacing: -8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 3px 0 #8a6a0c, 0 10px 22px rgba(255,213,74,0.16); }
.ods-result .r-retry svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.ods-result .r-retry:active { transform: translateY(3px); box-shadow: 0 0 0 #8a6a0c; }
.ods-result .r-keys { display: flex; gap: 6px; }
.ods-result .r-key { flex: none; width: 46px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #ececec;
  background: linear-gradient(180deg, #34343a, #222226); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.45), 0 2px 0 #050505, 0 3px 6px rgba(0,0,0,0.4); }
.ods-result .r-key svg { width: 24px; height: 24px; fill: currentColor; }
.ods-result .r-x svg { width: 19px; height: 19px; }
.ods-result .r-key:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 2px 4px rgba(0,0,0,0.6); }

/* 플레이 영상: 작은 세로 LCD + 길이(빨간 점) + 스토리 보내기(흰 칩) · 저장 키. 만드는 동안 지지직 */
.ods-result .r-clip { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 8px 7px 7px; border-radius: 8px; background: rgba(0,0,0,0.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04); }
.ods-result .r-clip-box { position: relative; flex: none; width: 40px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: #0e130d; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #2a2a2e; }
.ods-result .r-clip-box.wide { width: 84px; }
.ods-result .r-clip-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ods-result .r-clip-wait { position: absolute; inset: 0; opacity: 0.8; image-rendering: pixelated; background-size: 32px 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='48'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.55'/></filter><rect width='64' height='48' filter='url(%23s)'/></svg>"); }
.ods-result .r-clip:not(.wait) .r-clip-wait { display: none; }
.ods-result .r-clip-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ods-result .r-clip-state { display: inline-flex; align-items: center; gap: 7px; min-height: 16px; font-family: var(--hk-px); font-size: 16px; line-height: 16px; color: #f2f2f2; }
.ods-result .r-clip-state::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 6px rgba(255,59,48,0.7); }
.ods-result .r-clip.wait .r-clip-state::before { animation: rBlink 1s steps(2, start) infinite; }
.ods-result .r-clip-hint { font-size: 13px; line-height: 1.35; color: var(--hk-dim); word-break: keep-all; }
.ods-result .r-clip-hint:empty { display: none; }
.ods-result .r-clip-share { flex: none; height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 6px; white-space: nowrap;
  background: #f3f1ec; color: #16120b; font-family: var(--hk-px); font-size: 16px; line-height: 16px; box-shadow: 0 2px 0 #8f8b84, 0 6px 14px rgba(0,0,0,0.35); }
.ods-result .r-clip-share:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 #8f8b84; }
.ods-result .r-cic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.ods-result .r-cic svg { width: 22px; height: 22px; fill: currentColor; }
.ods-result .r-cic.ig { border-radius: 6px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ods-result .r-cic.ig svg { width: 15px; height: 15px; fill: none; }
.ods-result .r-clip-save { width: 44px; height: 48px; }
.ods-result .r-clip-save.hide { display: none; }
.ods-result .r-clip :disabled { opacity: 0.45; }

/* 다음 채널(안 해 본 판): 작은 LCD 썸네일 + 제목 + ▶ 키(방금 공개 = 노랑, 그 밖 = 검정). 다음 공개 예고 = 컬러바 + 첫 단어만 보이는 제목 + 카운트다운 + 흰 벨 (허브 D4 편성표 줄) */
.ods-result .ods-next { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 10px 8px 8px;
  border-radius: 10px; text-decoration: none; color: inherit; background: linear-gradient(180deg, #0b0b0c, #060607);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 0 1px #000, 0 1px 0 rgba(255,255,255,0.05); }
.ods-result .ods-next::after { content: ''; position: absolute; inset: 3px; border: 1.5px solid #8f2426; border-radius: 8px; pointer-events: none; opacity: 0.9; }
.ods-result .nx-th { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #0e130d; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #1b1b1e; }
.ods-result .nx-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ods-result .nx-th::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-size: 3px 3px;
  background-image: linear-gradient(rgba(0,0,0,0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px); }
.ods-result .nx-th::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 30%, transparent 31%), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,0.45)); }
.ods-result .nx-th.bars { background: linear-gradient(90deg, #c0c0c0 0 14.3%, #c0c000 0 28.6%, #00c0c0 0 42.9%, #00c000 0 57.1%, #c000c0 0 71.4%, #c00000 0 85.7%, #0000c0 0); }
.ods-result .nx-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ods-result .nx-cd { font-family: var(--hk-px); font-size: 16px; line-height: 16px; color: var(--hk-yellow); }
.ods-result .nx-m { color: #8b857a; opacity: 0.8; filter: blur(2.5px); }
.ods-result .nx-t { font-size: 16px; line-height: 1.3; font-weight: 800; color: #fff; letter-spacing: -0.01em; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ods-result .nx-go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; color: #ececec;
  background: linear-gradient(180deg, #34343a, #222226); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.45), 0 2px 0 #050505; }
.ods-result .nx-go svg { width: 18px; height: 18px; fill: currentColor; }
.ods-result .live .nx-go { color: #16120b; background: var(--hk-yellow); box-shadow: 0 2px 0 #8a6a0c; }
.ods-result .nx-go.ig { color: #16120b; background: #f3f1ec; box-shadow: 0 2px 0 #8f8b84; }
.ods-result .nx-go.ig.on, .ods-result .rd-bell.on { background: var(--hk-yellow); box-shadow: 0 2px 0 #8a6a0c; }   /* 새 판 알림 켜짐 = 노란 키 + 울리는 벨 (shared/push.js) */
.ods-result .ods-next:active .nx-go { transform: translateY(2px); box-shadow: none; }

/* 다음 방송(7세그먼트 카운트다운 + 흰 벨 = 새 판 알림, 푸시 안 되는 브라우저는 인스타) + 연속 생존(큰 하트 + 연속 일수 + 「일」 ┊ 이번 주 월~일 작은 하트 7개). 허브 예보창과 같은 그림 */
.ods-result .r-daily { margin-top: 12px; padding: 3px; border-radius: 6px; background: #0a0a0b; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 0 rgba(255,255,255,0.05); }
.ods-result .rd-in { overflow: hidden; border-radius: 4px; }
.ods-result .rd-in > a { display: block; padding: 10px 10px; text-decoration: none; color: var(--hk-lcd-ink); background: linear-gradient(172deg, var(--hk-lcd-hi), var(--hk-lcd-lo)); }
.ods-result .rd-in > .rd-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 10px; }
.ods-result .rd-in > a:active { filter: brightness(0.94); }
.ods-result .rd-next:not(.hide) + .rd-stk { border-top: 1px dashed rgba(29,36,25,0.35); }
.ods-result .rd-cd { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ods-result .rd-cd svg { display: block; height: 32px; width: auto; max-width: 100%; }
.ods-result .rd-dd { font-family: var(--hk-px); font-weight: 400; font-size: 16px; line-height: 16px; }
.ods-result .sg0 { fill: rgba(29,36,25,0.07); }
.ods-result .sg1 { fill: var(--hk-lcd-ink); }
.ods-result .rd-bell { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: #16120b; background: #f3f1ec; box-shadow: 0 2px 0 #8f8b84; }
.ods-result .rd-bell svg { width: 20px; height: 20px; fill: currentColor; }
.ods-result .rd-next:active .rd-bell { transform: translateY(2px); box-shadow: none; }
.ods-result .rd-in > .rd-stk { display: flex; align-items: center; padding: 10px 12px; }
.ods-result .rd-hero { flex: none; display: block; }
.ods-result .rd-hero svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.ods-result .rd-week { flex: 1 1 auto; min-width: 0; display: block; margin-left: 12px; padding: 7px 0 7px 12px; border-left: 1px dashed rgba(29,36,25,0.35); }
.ods-result .rd-week svg { display: block; width: 100%; height: 18px; }
/* 하트 = LCD 아이콘: 테두리 .ho + 속 .hf. 생존 = 꽉 참, 지난날 못 함 = 흐린 빈 하트, 앞날 = 아주 흐림, 오늘 아직 = 빨간 빈 하트 */
.ods-result .hk .hf { fill: rgba(29,36,25,0.08); }
.ods-result .hk .ho, .ods-result .hk.on .hf { fill: var(--hk-lcd-ink); }
.ods-result .hk.miss .ho { opacity: 0.45; }
.ods-result .hk.fut .ho { opacity: 0.16; }
.ods-result .hk.today .ho { fill: #8e1c16; }
.ods-result .hu { font-family: var(--hk-px); font-size: 16px; fill: var(--hk-lcd-ink); }
.ods-result .hp { font-family: var(--hk-px); font-size: 16px; fill: var(--hk-lcd-hi); visibility: hidden; }
/* +1 연출 (이 판으로 오늘이 처음 인정됨, 칸이 보이면 한 번): 오늘 하트 깜빡이며 참 → 숫자 바뀜(깜빡) → 큰 하트 한 번 뛰고 안에 +1 */
.ods-result .bump:not(.go) .n1, .ods-result .bump.go .n0 { visibility: hidden; }
.ods-result .bump:not(.go) .hk.new .hf, .ods-result .bump:not(.go) .was0 .hf { fill: rgba(29,36,25,0.08); }
.ods-result .bump:not(.go) .hk.new .ho { fill: #8e1c16; }
.ods-result .bump.go .n0 { animation: rShow 0.62s step-end both; }
.ods-result .bump.go .n1 { animation: rNum 0.95s step-end both; }
.ods-result .bump.go .hk.new .hf { animation: rFill 0.62s step-end both; }
.ods-result .bump.go .hk.new .ho { animation: rInk 0.62s step-end both; }
.ods-result .bump.go .was0 .hf { animation: rFill1 0.62s step-end both; }
.ods-result .bump.go .hb { transform-box: fill-box; transform-origin: 50% 55%; animation: rBeat 0.36s step-end 0.62s forwards; }
.ods-result .bump.go .hp { animation: rPlus 1.7s step-end both; }
.ods-result .r-igi { position: relative; flex: none; display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 4px; }
.ods-result .r-igi::before { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border: 2px solid currentColor; border-radius: 50%; }
.ods-result .r-igi::after { content: ''; position: absolute; right: 1px; top: 1px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

/* [광고] 쿠팡 칸: [광고] 표시·고지 문구 항상 보임, 누르라는 문구 없음 (class 는 gear-*: ad-* 는 광고 차단 일반 규칙에 숨음, 10/26) */
.ods-result .gear { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid #232327; text-align: left; }
.ods-result .gear-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.35; font-weight: 700; color: #cfc6b4; }
.ods-result .gear-tag { flex: none; padding: 3px 6px 2px; border-radius: 3px; font-size: 13px; line-height: 1.35; font-weight: 800; color: #16120b; background: var(--hk-cream); }
.ods-result .gear-list { display: grid; gap: 6px; }
.ods-result .gear-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 2px; min-height: 52px; padding: 8px 12px;
  border-radius: 6px; text-decoration: none; color: inherit; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.ods-result a.gear-item:active { background: rgba(255,255,255,0.07); }
.ods-result .gear-name { font-size: 14px; line-height: 1.35; font-weight: 800; color: var(--hk-cream); }
.ods-result .gear-desc { grid-row: 2; font-size: 13px; line-height: 1.35; color: var(--hk-dim); }
.ods-result .gear-desc:empty { display: none; }
.ods-result .gear-go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--hk-px); font-size: 16px; line-height: 16px; color: var(--hk-dim); }
.ods-result .gear-item.off { opacity: 0.55; }
.ods-result .gear-item.off .gear-go { font-family: var(--hk-sans); font-size: 13px; }
.ods-result .disclosure { margin-top: 8px; font-size: 13px; line-height: 1.45; color: #8f877a; word-break: keep-all; }
.ods-result .foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 6px; }
.ods-result .credit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-size: 13px; color: #8f877a; text-decoration: none; }
.ods-result .credit.ic { width: 44px; color: #a59c8a; }
.ods-result .credit svg { width: 22px; height: 22px; fill: currentColor; }
.ods-result .credit .r-igi { width: 19px; height: 19px; border-radius: 5px; }

/* 가로 화면 · 데스크톱: 왼쪽 = 방송 끝 화면 + LCD 성적표, 오른쪽 = 버튼부터 아래 (판이 끼워 넣는 체크리스트도 오른쪽) */
@media (orientation: landscape) and (min-width: 640px) {
  .ods-result .card.result { display: flow-root; max-width: 880px; padding-bottom: 6px; }
  .ods-result .r-board { float: left; width: calc(50% - 8px); margin-bottom: 8px; }
  .ods-result .card.result > :not(.r-board) { margin-left: calc(50% + 8px); }
  .ods-result .r-act { margin-top: 0; }
}
/* 낮은 가로 화면(폰): 등급을 칭호 왼쪽으로 → 왼쪽 칸이 한 화면에 */
@media (orientation: landscape) and (max-height: 500px) {
  .ods-result .r-scr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "o o" "g t"; column-gap: 14px; align-items: center; padding: 6px 10px 10px; text-align: left; }
  .ods-result .r-osd { grid-area: o; }
  .ods-result .grade { grid-area: g; --go: 4px; margin: 0; font-size: 64px; line-height: 64px; }
  .ods-result .r-title { grid-area: t; font-size: 18px; }
  .ods-result .r-lcd { margin-top: 8px; }
  .ods-result .r-stats > div { gap: 4px; padding: 6px 9px 7px; }
  .ods-result .r-rank, .ods-result .r-pb { padding: 6px 9px 5px; }
}
/* 짧은 세로 화면(인앱 브라우저 등): 등급 96px */
@media (orientation: portrait) and (max-height: 760px) {
  .ods-result .grade { --go: 5px; margin-bottom: 6px; font-size: 96px; line-height: 88px; }
  .ods-result .r-scr { padding: 8px 12px 12px; }
  .ods-result .r-title { font-size: 20px; }
}
@media (max-width: 374px) { .ods-result .r-retry svg { display: none; } .ods-result .r-key { width: 44px; } }
@media (max-width: 340px) { .ods-result .r-retry { font-size: 16px; line-height: 16px; } }
@keyframes rOn { 0% { opacity: 0; transform: scaleY(0.03); } 50% { opacity: 1; transform: scaleY(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes rStamp { 0% { opacity: 0; transform: scale(1.7); } 100% { opacity: 1; transform: none; } }
@keyframes rSnow { 0% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes rSnowLose { 0% { opacity: 0.95; } 100% { opacity: 0.22; } }
@keyframes rSeg { 0% { opacity: 0.12; } 100% { opacity: 1; } }
@keyframes rShow { 0% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes rNum { 0% { visibility: hidden; } 65% { visibility: visible; } 77% { visibility: hidden; } 87%, 100% { visibility: visible; } }
@keyframes rFill { 0% { fill: rgba(29,36,25,0.08); } 18% { fill: var(--hk-lcd-ink); } 36% { fill: rgba(29,36,25,0.08); } 54%, 100% { fill: var(--hk-lcd-ink); } }
@keyframes rInk { 0% { fill: #8e1c16; } 54%, 100% { fill: var(--hk-lcd-ink); } }
@keyframes rFill1 { 0% { fill: rgba(29,36,25,0.08); } 100% { fill: var(--hk-lcd-ink); } }
@keyframes rBeat { 0% { transform: scale(1.14); } 50% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes rPlus { 0% { visibility: hidden; } 36% { visibility: visible; } 88%, 100% { visibility: hidden; } }
@keyframes rBlink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ods-result .card.result, .ods-result .card.result *, .ods-result .card.result *::before { animation: none !important; } }

/* ---------- 플레이 영상 (자동 녹화) 녹화 중 표시 ---------- */
.ods-recdot { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 5; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,0.45); padding: 3px 9px 3px 20px; border-radius: 999px; pointer-events: none; opacity: 0.75; }
.ods-recdot::before { content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #ff3b2f; animation: odsPulse 0.8s infinite alternate; }
body:not(.playing) .ods-recdot { display: none; }
.ods-recdot.mini { padding: 0; width: 16px; height: 16px; font-size: 0; opacity: 0.55; }
.ods-recdot.mini::before { left: 4.5px; }

