:root {
  --bg: #07040a;
  --panel: rgba(18, 12, 22, 0.78);
  --panel-solid: #140d18;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6eef2;
  --muted: #b9a9b4;
  --crimson: #ff2d4a;
  --crimson-d: #a3001b;
  --gold: #ffc22e;
  --gold-d: #b97800;
  --steel: #3aa0ff;
  --steel-d: #0a4fa8;
  --green: #2ee59d;
  --pro: #ff4d5e;
  --con: #3aa0ff;
  --radius: 14px;
  --display: 'Black Han Sans', 'Noto Sans KR', sans-serif; /* 버튼·제목 */
  --brush: 'East Sea Dokdo', 'Black Han Sans', cursive; /* 로고·승패: 붓글씨 */
  --impact: 'Gasoek One', 'Black Han Sans', sans-serif; /* 카운트다운·전투 배너 */
  --serif: 'Hahmlet', 'Noto Serif KR', serif; /* 토론 주제(명제) */
  --num: 'Orbit', 'Noto Sans KR', monospace; /* 시간·점수·RP */
  --body: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --btn-font: 'IBM Plex Sans KR', var(--body); /* 버튼 글자 */
  --halo: 255,214,140; /* 버튼 가운데 전구 후광 (전구색) */
  --metal: linear-gradient(180deg, #f7f6f3 0%, #9a9994 22%, #3a3a3c 50%, #1e1e20 62%, #6f6e6a 85%, #d8d6d0 100%); /* 버튼 금속 테두리 */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); overflow: hidden; }
button { font: inherit; color: inherit; }
#bg, #fxl { position: fixed; inset: 0; display: block; }
#bg { z-index: 0; }
#fxl { z-index: 60; pointer-events: none; }
#app { position: relative; z-index: 1; height: 100%; overflow: hidden; }

/* ───── 화면 진동 ───── */
@keyframes shake1 { 0%,100% { transform: translate(0,0) } 25% { transform: translate(-3px,2px) } 50% { transform: translate(3px,-2px) } 75% { transform: translate(-2px,-1px) } }
@keyframes shake2 { 0%,100% { transform: translate(0,0) rotate(0) } 15% { transform: translate(-8px,5px) rotate(-.6deg) } 30% { transform: translate(9px,-6px) rotate(.6deg) } 45% { transform: translate(-7px,-4px) } 60% { transform: translate(6px,6px) rotate(.3deg) } 80% { transform: translate(-3px,2px) } }
@keyframes shake3 { 0%,100% { transform: translate(0,0) scale(1) } 10% { transform: translate(-16px,10px) rotate(-1.4deg) scale(1.02) } 20% { transform: translate(15px,-12px) rotate(1.2deg) } 35% { transform: translate(-13px,-8px) rotate(-.8deg) } 50% { transform: translate(12px,9px) rotate(.8deg) } 65% { transform: translate(-8px,5px) } 80% { transform: translate(5px,-3px) } }
.shake-1 { animation: shake1 .18s linear; }
.shake-2 { animation: shake2 .35s cubic-bezier(.36,.07,.19,.97); }
.shake-3 { animation: shake3 .6s cubic-bezier(.36,.07,.19,.97); }

/* ───── 공통 레이아웃 ───── */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 0 16px calc(24px + var(--safe-b)); animation: screenIn .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; padding: 14px 0 10px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; background: linear-gradient(180deg, rgba(7,4,10,.92), rgba(7,4,10,.6) 70%, transparent); backdrop-filter: blur(6px); }
.topbar h2 { margin: 0; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 4vw, 30px); letter-spacing: 2px; text-shadow: 0 0 18px rgba(255,45,74,.6), 0 2px 0 #000; }
.icon-btn { --g: .4; position: relative; width: 46px; height: 46px; border-radius: 12px; border: 2px solid transparent; color: #ffd36b; display: grid; place-items: center; cursor: pointer; font-size: 22px; background: radial-gradient(45% 45% at 50% 50%, rgba(var(--halo), var(--g)), transparent 75%) padding-box, rgba(16,14,14,.42) padding-box; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); transition: transform .12s; }
.icon-btn:hover { --g: .65; }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
/* 금속 테두리: 판이 반투명이라 border-box 배경 대신 가장자리만 남긴 층으로 그린다 */
.icon-btn::before, .btn::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; background: var(--metal); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ───── 버튼 ───── */
/* 반투명 판 + 금속 테두리 + 가운데 전구 후광. 후광 세기(--g)로 버튼의 무게를 나눈다 */
.btn { --g: .55; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: 14px; cursor: pointer; font-family: var(--btn-font); font-weight: 700; font-size: 20px; letter-spacing: -.2px; color: #ffd36b; text-shadow: 0 0 10px rgba(255,200,80,.4), 0 1px 2px rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 45%) padding-box, radial-gradient(38% 75% at 50% 50%, rgba(var(--halo), var(--g)), rgba(var(--halo), calc(var(--g) * .35)) 45%, transparent 75%) padding-box, rgba(16,14,14,.42) padding-box;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 8px 16px -8px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 6px rgba(0,0,0,.35); transition: transform .12s; white-space: nowrap; flex-shrink: 0; }
.btn:hover { --g: .8; }
.btn:active { transform: translateY(2px) scale(.97); }
.btn:disabled { filter: grayscale(1) brightness(.55); cursor: not-allowed; }
.btn .ico { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.btn:not(.btn-gold):not(.btn-steel):not(.btn-dark):not(.btn-green) { --g: .85; } /* 주 행동 */
.btn:not(.btn-gold):not(.btn-steel):not(.btn-dark):not(.btn-green):hover { --g: 1; }
.btn-dark { --g: .3; }
.btn-dark:hover { --g: .5; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ───── 메인 ───── */
/* 위쪽 버튼 줄(소리·음악·설정, 프로필) 높이만큼 비워 두고, 남는 공간이 있을 때만 가운데로 모은다
   (justify-content: center는 내용이 화면보다 길면 위로 넘쳐 로고가 버튼 밑으로 들어간다) */
.main { justify-content: flex-start; align-items: center; text-align: center; padding-top: calc(max(14px, env(safe-area-inset-top)) + 72px); }
.main::before, .main::after { content: ''; flex: 1 0 0; }
.main .corner { position: absolute; top: max(14px, env(safe-area-inset-top)); display: flex; gap: 8px; }
.main .corner.left { left: 16px; }
.main .corner.right { right: 16px; }
.profile-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 40px; border: 1px solid rgba(255,194,46,.5); background: rgba(0,0,0,.45); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.profile-btn:hover { box-shadow: 0 0 22px rgba(255,194,46,.5); transform: translateY(-1px); }
.profile-btn img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); }
.profile-btn .pn { text-align: left; line-height: 1.2; font-size: 13px; max-width: 110px; }
.profile-btn .pn b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { position: relative; margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(84px, 22vw, 220px); line-height: .9; letter-spacing: 0; background: linear-gradient(180deg, #fff6d8 0%, #ffc22e 38%, #ff4d1a 62%, #a3001b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #2a0005) drop-shadow(0 0 30px rgba(255,80,20,.6)); animation: logoSlam .9s cubic-bezier(.2,1.6,.4,1) both, logoPulse 3s ease-in-out 1s infinite; }
.logo .slash { position: absolute; left: -5%; right: -5%; top: 48%; height: 6px; background: linear-gradient(90deg, transparent, #fff, transparent); transform: rotate(-8deg) scaleX(0); animation: slashIn .5s .55s ease-out forwards; box-shadow: 0 0 20px #fff; }
@keyframes logoSlam { 0% { transform: scale(3.2) rotate(-6deg); opacity: 0; filter: blur(14px); } 60% { transform: scale(.92); opacity: 1; filter: blur(0) drop-shadow(0 6px 0 #2a0005); } 100% { transform: scale(1); } }
@keyframes logoPulse { 0%,100% { filter: drop-shadow(0 6px 0 #2a0005) drop-shadow(0 0 26px rgba(255,80,20,.55)); } 50% { filter: drop-shadow(0 6px 0 #2a0005) drop-shadow(0 0 52px rgba(255,120,30,.95)); } }
@keyframes slashIn { 0% { transform: rotate(-8deg) scaleX(0); opacity: 1; } 70% { transform: rotate(-8deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-8deg) scaleX(1); opacity: 0; } }
.tagline { margin: 10px 0 0; font-family: var(--display); letter-spacing: 10px; font-size: clamp(14px, 3vw, 22px); color: #ffd9c2; opacity: .85; animation: fadeUp .6s .8s both; }
.tagline2 { margin: 8px 0 40px; color: var(--muted); animation: fadeUp .6s 1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.main-actions { display: flex; flex-direction: column; gap: 14px; width: min(340px, 100%); animation: fadeUp .6s 1.15s both; }
.main-actions .btn { min-height: 64px; font-size: 26px; }
.main.replay .logo, .main.replay .tagline, .main.replay .tagline2, .main.replay .main-actions, .main.replay .ai-badge { animation-delay: 0s; }
.main.replay .logo { animation: logoPulse 3s ease-in-out infinite; }
.ai-badge { margin-top: 26px; font-size: 12px; color: var(--muted); animation: fadeUp .6s 1.3s both; }
.ai-badge .ico, .lang-pick .ico { width: 15px; height: 15px; fill: currentColor; vertical-align: -3px; margin-right: 6px; }
.lang-pick span { display: inline-flex; align-items: center; }

/* ───── 패널/카드 ───── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(8px); box-shadow: 0 10px 40px -10px rgba(0,0,0,.6); }
.grid { display: grid; gap: 14px; }
.cats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-card { position: relative; text-align: left; padding: 20px 18px; min-height: 130px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); cursor: pointer; overflow: hidden; transition: transform .2s cubic-bezier(.2,1.4,.4,1), border-color .2s, box-shadow .2s; animation: cardIn .5s both; }
.cat-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent, var(--crimson)); box-shadow: 0 12px 30px -8px var(--accent, var(--crimson)); }
.cat-card .ic { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cat-card h3 { margin: 10px 0 4px; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 1px; }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); }
.cat-card .count { position: absolute; top: 14px; right: 14px; font-size: 12px; padding: 3px 8px; border-radius: 20px; background: rgba(0,0,0,.4); color: var(--muted); }
.cat-card::before { content: ''; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(var(--accent, var(--crimson)), transparent 70%); opacity: .35; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }

.searchbar { display: flex; gap: 10px; margin-bottom: 14px; }
.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(255,45,74,.25); }
.topic-list { display: flex; flex-direction: column; gap: 10px; }
.topic-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,14,26,.72); cursor: pointer; transition: transform .15s, border-color .2s, background .2s; animation: cardIn .4s both; }
.topic-item:hover { transform: translateX(6px); border-color: var(--crimson); background: rgba(60,10,22,.75); }
.topic-item .no { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; font-family: var(--display); background: linear-gradient(180deg, #ff4d63, #8a0016); }
.topic-item b { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; }
.topic-item small { color: var(--muted); }

.topic-hero { text-align: center; padding: 30px 20px; }
.topic-hero .chip { margin-bottom: 14px; }
.topic-hero h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 5vw, 40px); line-height: 1.3; text-shadow: 0 0 20px rgba(255,45,74,.5); }
.vs-sides { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 6px; font-family: var(--display); font-size: 22px; }
.side-pro { color: var(--pro); text-shadow: 0 0 14px rgba(255,77,94,.6); }
.side-con { color: var(--con); text-shadow: 0 0 14px rgba(58,160,255,.6); }
.vs { font-size: 30px; color: var(--gold); animation: vsPulse 1.2s ease-in-out infinite; }
@keyframes vsPulse { 50% { transform: scale(1.25) rotate(-6deg); text-shadow: 0 0 22px var(--gold); } }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.action-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-align: center; }
.action-card .big { font-size: 44px; }
.action-card p { color: var(--muted); font-size: 14px; min-height: 42px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.chip.pro { color: #fff; background: rgba(255,77,94,.25); border-color: rgba(255,77,94,.6); }
.chip.con { color: #fff; background: rgba(58,160,255,.25); border-color: rgba(58,160,255,.6); }
.chip.gold { color: #2a1600; background: var(--gold); border-color: var(--gold); }

/* ───── 옵션 선택 ───── */
.opt-group { margin: 16px 0; }
.opt-group > label { display: block; margin-bottom: 8px; font-weight: 700; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg button { padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; font-weight: 700; transition: all .15s; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }
.seg button:hover { border-color: rgba(255,255,255,.35); }
.seg button.on { background: linear-gradient(180deg, rgba(255,77,99,.45), rgba(163,0,27,.45)); border-color: var(--crimson); box-shadow: 0 0 16px rgba(255,45,74,.4); transform: scale(1.03); }

/* ───── 대기방 ───── */
.lobby-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.room-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,14,26,.78); animation: cardIn .35s both; }
.room-card img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line); }
.room-card .t { font-weight: 700; }
.room-card .m { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 54px; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ───── 대화창 ───── */
.chat { padding: 0; }
.chat-head { flex: none; padding: 10px 14px 8px; background: linear-gradient(180deg, rgba(5,3,8,.95), rgba(5,3,8,.75)); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.chat-topic { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chat-topic b { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-time { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }
.vsbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; }
.fighter { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border-radius: 12px; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.fighter.right { flex-direction: row-reverse; text-align: right; }
.fighter img { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2px solid var(--line); }
.fighter .nm { min-width: 0; line-height: 1.25; }
.fighter .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fighter .nm span { font-size: 11px; color: var(--muted); }
.fighter.active { border-color: var(--gold); background: rgba(255,194,46,.12); box-shadow: 0 0 24px rgba(255,194,46,.35); animation: activeGlow 1.2s ease-in-out infinite; }
.fighter.offline img { filter: grayscale(1); opacity: .5; }
@keyframes activeGlow { 50% { box-shadow: 0 0 34px rgba(255,194,46,.6); } }
.vs-mid { text-align: center; font-family: var(--impact); color: var(--gold); font-size: 22px; line-height: 1; }
.vs-mid small { display: block; font-family: var(--body); font-size: 11px; color: var(--muted); margin-top: 3px; }
.turnbar { position: relative; height: 26px; margin-top: 8px; border-radius: 20px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); }
.turnbar .fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #ffc22e, #ff6a1a); transition: width .25s linear; }
.turnbar.mine .fill { background: linear-gradient(90deg, #ff2d4a, #ffc22e); }
.turnbar.danger .fill { background: linear-gradient(90deg, #ff0030, #ff5a5a); animation: dangerBlink .5s steps(2) infinite; }
@keyframes dangerBlink { 50% { opacity: .55; } }
.turnbar .lbl { position: relative; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 12px; font-family: var(--num); font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }

.msgs { flex: 1; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.sys { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; padding: 6px 14px; border-radius: 20px; background: rgba(0,0,0,.55); border: 1px solid var(--line); color: #e8dce4; animation: sysIn .4s both; }
.sys.notice { border-color: rgba(255,194,46,.6); color: #ffe7a6; }
.sys.warn { border-color: rgba(255,45,74,.7); color: #ffc0c8; }
@keyframes sysIn { from { opacity: 0; transform: scale(.8); } }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.msg img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { position: relative; padding: 12px 14px; border-radius: 16px; line-height: 1.6; font-size: 15px; white-space: pre-wrap; word-break: break-word; box-shadow: 0 8px 22px -8px rgba(0,0,0,.7); }
.msg.opp .bubble { background: linear-gradient(160deg, rgba(30,70,140,.92), rgba(14,30,70,.92)); border: 1px solid rgba(58,160,255,.55); border-bottom-left-radius: 4px; animation: slamL .45s cubic-bezier(.2,1.5,.4,1) both; }
.msg.me .bubble { background: linear-gradient(160deg, rgba(170,20,45,.94), rgba(80,6,20,.94)); border: 1px solid rgba(255,77,94,.6); border-bottom-right-radius: 4px; animation: slamR .45s cubic-bezier(.2,1.5,.4,1) both; }
.msg.pro .bubble { box-shadow: 0 8px 22px -8px rgba(0,0,0,.7), inset 3px 0 0 var(--pro); }
.msg.con .bubble { box-shadow: 0 8px 22px -8px rgba(0,0,0,.7), inset 3px 0 0 var(--con); }
.bubble .meta { display: block; margin-top: 6px; font-size: 11px; opacity: .65; }
.bubble .auto { color: var(--gold); font-weight: 700; }
@keyframes slamL { 0% { opacity: 0; transform: translateX(-60px) scale(1.25) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
@keyframes slamR { 0% { opacity: 0; transform: translateX(60px) scale(1.25) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 10px 14px; border-radius: 16px; background: rgba(14,30,70,.7); border: 1px dashed rgba(58,160,255,.5); font-size: 12px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fd0ff; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
/* 아테나가 치고 있는 발언 */
.msg.live .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dot { 50% { transform: translateY(-5px); opacity: .4; } }

.judge-prompt { margin: 0 14px 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(60,40,0,.75); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; animation: sysIn .3s both; }
.judge-prompt span { flex: 1; min-width: 180px; font-size: 14px; }
.composer { flex: none; padding: 10px 14px calc(10px + var(--safe-b)); background: linear-gradient(0deg, rgba(5,3,8,.97), rgba(5,3,8,.82)); border-top: 1px solid var(--line); }
.composer .row { display: flex; gap: 8px; align-items: stretch; }
.composer textarea { flex: 1; min-height: 64px; max-height: 160px; resize: none; line-height: 1.5; }
.composer textarea:disabled { opacity: .55; }
.composer textarea::placeholder { color: rgba(246,238,242,.38); }
.composer .confirm { min-width: 92px; font-size: 20px; }
.composer .confirm.ready { animation: readyPulse 1s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 26px rgba(var(--halo), .75); } }
.composer .tools { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.composer .tools .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 턴 배너 */
.banner { position: fixed; left: 0; right: 0; top: 40%; z-index: 55; text-align: center; pointer-events: none; font-family: var(--impact); font-size: clamp(34px, 9vw, 72px); letter-spacing: 3px; color: #fff; text-shadow: 0 0 30px var(--bc, var(--crimson)), 0 4px 0 #000; animation: bannerIn 1.4s cubic-bezier(.2,1,.3,1) forwards; }
.banner::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.4em; transform: translateY(-50%) skewY(-3deg); background: linear-gradient(90deg, transparent, var(--bb, rgba(255,45,74,.55)), transparent); z-index: -1; }
@keyframes bannerIn { 0% { opacity: 0; transform: translateX(-60%) skewX(-20deg); } 18% { opacity: 1; transform: translateX(0) skewX(0); } 78% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(60%) skewX(20deg); } }

/* 카운트다운 */
.countdown { position: fixed; inset: 0; z-index: 56; display: grid; place-items: center; pointer-events: none; background: radial-gradient(rgba(0,0,0,.2), rgba(0,0,0,.75)); }
.countdown span { font-family: var(--impact); font-size: clamp(110px, 30vw, 260px); color: #fff; text-shadow: 0 0 40px var(--crimson), 0 8px 0 #000; animation: cd .9s cubic-bezier(.2,1.6,.4,1) both; }
.countdown span.fight { color: var(--gold); font-size: clamp(80px, 22vw, 200px); text-shadow: 0 0 60px #ff6a00, 0 8px 0 #000; }
@keyframes cd { 0% { transform: scale(3); opacity: 0; } 40% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ───── 오버레이 / 모달 ───── */
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); animation: fadeIn .25s both; }
.overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel-solid); border: 1px solid rgba(255,45,74,.45); border-radius: 18px; padding: 22px; box-shadow: 0 0 60px rgba(255,45,74,.25); animation: modalIn .35s cubic-bezier(.2,1.4,.4,1) both; }
.modal h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 1px; }
.modal .actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .actions .btn { flex: 1; }
@keyframes modalIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 14px 0; }
.avatar-pick button { padding: 6px 4px 8px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: all .2s; text-align: center; min-width: 0; }
.avatar-pick button img { width: 100%; max-width: 76px; aspect-ratio: 1; margin: 0 auto; display: block; border-radius: 50%; }
.avatar-pick button span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; word-break: keep-all; }
.avatar-pick button.on { border-color: var(--gold); box-shadow: 0 0 26px rgba(255,194,46,.55); transform: scale(1.05); }

/* ───── 결과 ───── */
.result { position: relative; width: 100%; max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,194,46,.45) transparent; text-align: center; padding: 30px 22px 24px; border-radius: 22px; cursor: default; animation: resultIn .7s cubic-bezier(.2,1.5,.4,1) both; }
.result.win { background: radial-gradient(circle at 50% 0%, rgba(255,194,46,.35), rgba(30,16,0,.96) 60%); border: 2px solid var(--gold); box-shadow: 0 0 80px rgba(255,194,46,.5); }
.result.lose { background: radial-gradient(circle at 50% 0%, rgba(255,0,40,.3), rgba(16,4,8,.97) 60%); border: 2px solid #7a0016; box-shadow: 0 0 80px rgba(255,0,40,.35); }
/* 빛줄기 층: 카드와 같은 크기로 잘라 두고 그 안에서만 돈다 (스크롤 영역에 포함되지 않음) */
.rays-clip { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 22px; pointer-events: none; animation: resultIn .7s cubic-bezier(.2,1.5,.4,1) both; }
.rays-clip .rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255,210,80,.18) 0 10deg, transparent 10deg 20deg); animation: spin 14s linear infinite; pointer-events: none; }
.result-wrap { position: relative; isolation: isolate; width: min(560px, 100%); justify-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes resultIn { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
.result h2 { margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(72px, 19vw, 136px); line-height: .95; letter-spacing: 2px; }
.result.win h2 { background: linear-gradient(180deg, #fffbe0, #ffc22e 50%, #c46a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a1c00) drop-shadow(0 0 30px rgba(255,194,46,.8)); animation: winText 1.6s ease-in-out infinite; }
.result.lose h2 { color: #8a8a8a; text-shadow: 0 4px 0 #000, 0 0 30px rgba(255,0,40,.8); animation: loseText .8s cubic-bezier(.5,0,.5,1.6) both; position: relative; }
.result.lose h2::after { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 4px; background: #ff1e3c; transform: rotate(-12deg); box-shadow: 0 0 14px #ff1e3c; animation: slashIn .5s .5s both; }
@keyframes winText { 50% { transform: scale(1.06); } }
@keyframes loseText { 0% { transform: translateY(-120px) rotate(10deg); opacity: 0; } 60% { transform: translateY(8px) rotate(-2deg); opacity: 1; } 100% { transform: none; } }
.result .sub2 { font-family: var(--display); letter-spacing: 3px; margin: 6px 0 14px; }
.result.win .sub2 { color: #ffe08a; }
.result.lose .sub2 { color: #ff7a8a; }
.result .reason { text-align: left; background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.7; }
.result .reason b { color: var(--gold); }
/* 저장하지 않고 나가려 할 때 한 번 흔들어 알린다 */
.result.nudge { animation: shake2 .5s ease-out both; }
.scores { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; margin-top: 12px; font-size: 13px; align-items: center; }
.scores .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.scores .bar i { display: block; height: 100%; animation: grow 1s .4s both cubic-bezier(.2,1,.3,1); transform-origin: left; }
.scores .bar.l i { background: var(--crimson); margin-left: auto; transform-origin: right; }
.scores .bar.r i { background: var(--steel); }
@keyframes grow { from { transform: scaleX(0); } }
.scores .lbl { text-align: center; color: var(--muted); white-space: nowrap; }
.rp-change { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rp-change .delta { font-family: var(--num); font-size: 34px; }
.rp-change .delta.up { color: var(--green); text-shadow: 0 0 20px rgba(46,229,157,.6); }
.rp-change .delta.down { color: #ff5a6e; }
.rp-change .delta.zero { color: var(--muted); }
.rp-change .notes { font-size: 12px; color: var(--muted); }
.promo { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(255,194,46,.12); display: flex; align-items: center; gap: 12px; text-align: left; animation: promoIn .8s 1.4s both cubic-bezier(.2,1.6,.4,1); }
@keyframes promoIn { from { opacity: 0; transform: scale(.5); } }
.tap-hint { margin-top: 16px; font-size: 13px; color: var(--muted); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ───── 프로필 ───── */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.profile-head .av { position: relative; }
.profile-head .av img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(255,194,46,.4); }
.profile-head .av .emblem { position: absolute; right: -14px; bottom: -10px; filter: drop-shadow(0 4px 8px #000); }
.profile-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
.tier-name { font-family: var(--display); font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat { text-align: center; padding: 12px 6px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--num); font-size: 26px; font-weight: 400; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.w b { color: var(--green); }
.stat.l b { color: #ff6b7e; }
.stat.r b { color: var(--gold); }
.progress { margin-top: 14px; }
.progress .track { height: 12px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ff6a1a); box-shadow: 0 0 14px rgba(255,194,46,.7); animation: grow 1.2s both cubic-bezier(.2,1,.3,1); transform-origin: left; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.section-title { margin: 26px 0 10px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.tier-table { display: flex; flex-direction: column; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.tier-row.cur { border-color: var(--gold); background: rgba(255,194,46,.12); box-shadow: 0 0 20px rgba(255,194,46,.25); }
.tier-row b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.tier-row small { display: block; color: var(--muted); font-size: 12px; }
.tier-row .rng { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rules { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 14px; color: #e8dce4; }
.history { display: flex; flex-direction: column; gap: 6px; }
.hist { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border-left: 4px solid var(--line); font-size: 13px; }
.hist.w { border-left-color: var(--green); }
.hist.l { border-left-color: var(--crimson); }
.hist .r { font-family: var(--display); font-size: 16px; }
.hist .d { font-variant-numeric: tabular-nums; }
.lead { display: grid; grid-template-columns: 28px 36px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: 14px; }
.lead img { width: 36px; height: 36px; border-radius: 50%; }
.lead .rk { font-family: var(--display); text-align: center; color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ───── 설정 ───── */
.status-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.status-card .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #777; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.status-card.on { border-color: rgba(46,229,157,.55); background: rgba(46,229,157,.08); }
.status-card.on .dot { background: var(--green); box-shadow: 0 0 14px var(--green); animation: blink 1.6s ease-in-out infinite; }
.status-card b { display: block; }
.status-card small { color: var(--muted); word-break: break-all; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,194,46,.1); border: 1px solid rgba(255,194,46,.4); font-size: 13px; }
.model-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.model-pick button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; transition: all .15s; }
.model-pick button b { display: block; font-size: 15px; }
.model-pick button span { display: block; font-size: 13px; color: #e8dce4; margin: 2px 0; }
.model-pick button small { color: var(--muted); font-size: 11px; }
.model-pick button.on { border-color: var(--gold); background: rgba(255,194,46,.12); box-shadow: 0 0 18px rgba(255,194,46,.3); }
.model-pick button:disabled, .input:disabled { opacity: .5; cursor: not-allowed; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions-row .btn { flex: 1 1 160px; }
.panel a { color: var(--gold); }
.panel code { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.1); font-size: 12px; }
.vol-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vol-row .btn { min-width: 150px; }
.vol-row input[type=range] { flex: 1; accent-color: var(--gold); height: 6px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.seg-btn { padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; font-weight: 700; font-size: 13px; transition: all .15s; }
.seg-btn:hover { border-color: rgba(255,255,255,.35); }
.seg-btn.on { background: linear-gradient(180deg, rgba(255,77,99,.45), rgba(163,0,27,.45)); border-color: var(--crimson); box-shadow: 0 0 16px rgba(255,45,74,.4); }

/* ───── 게임 설명 ───── */
.howto { display: grid; gap: 14px; }
.howto .step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; animation: cardIn .4s both; }
.howto .step .n { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(180deg, #ff4d63, #8a0016); box-shadow: 0 6px 18px -4px rgba(255,45,74,.6); }
.howto h4 { margin: 4px 0 6px; font-size: 17px; }
.howto p, .howto li { margin: 0; color: #e0d2da; font-size: 14px; line-height: 1.75; }
.howto ul { margin: 0; padding-left: 18px; }
kbd { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.12); border: 1px solid var(--line); font-size: 12px; }

/* ───── 토스트 ───── */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 70; transform: translateX(-50%) translateY(120px); padding: 12px 18px; border-radius: 12px; background: #1d0f16; border: 1px solid var(--crimson); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,1.4,.4,1); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }

.spinner { width: 46px; height: 46px; margin: 10px auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* ───── 주제별 랭킹 ───── */
:root { --chart-pro: #e8384d; --chart-con: #2b8ae6; --chart-gold: #d99a00; --chart-track: rgba(255,255,255,.06); }
.rk-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; }
.rk-tabs .seg-btn { flex: 0 0 auto; white-space: nowrap; }
.rk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rk-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.rk-tile > span { font-size: 12px; color: var(--muted); }
.rk-tile b { font-family: var(--num); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rk-tile b small, .rk-tile > small { font-family: var(--body); font-size: 12px; color: var(--muted); margin-left: 3px; }
.rk-tile > small { margin-left: 0; }
.rk-tile .rk-hot { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rk-panel { padding: 16px 16px 12px; }
.rk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.rk-head h3 { margin: 0; font-size: 16px; }
.rk-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.rk-legend span, .rk-tip span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.pro { background: var(--chart-pro); }
.sw.con { background: var(--chart-con); }
.rk-hint { margin: 4px 0 10px; font-size: 12px; }
.rk-idle { margin: 8px 0 0; font-size: 12px; text-align: center; }
.rk-bars { display: flex; flex-direction: column; gap: 2px; }
.rk-row { display: grid; gap: 5px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; animation: fadeUp .4s both; }
.rk-row:hover { background: rgba(255,255,255,.05); }
.rk-row.on { background: rgba(255,194,46,.08); border-color: rgba(255,194,46,.5); }
.rk-title { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.4; }
.rk-title .no { flex: 0 0 22px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.rk-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rk-row .rk-track { padding-left: 30px; }
.rk-bar { display: flex; gap: 2px; height: 12px; min-width: 4px; }
.rk-bar i { display: block; height: 100%; min-width: 3px; }
.rk-bar i:first-child { border-radius: 4px 0 0 4px; }
.rk-bar i:last-child { border-radius: 0 4px 4px 0; }
.rk-bar i:only-child { border-radius: 4px; }
.rk-bar i.pro { background: var(--chart-pro); }
.rk-bar i.con { background: var(--chart-con); }
.rk-bar.gold { height: 10px; border-radius: 0 4px 4px 0; background: var(--chart-gold); }
.rk-val { flex: 0 0 auto; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.rk-leaders { display: flex; flex-direction: column; gap: 6px; }
.rk-lead { display: grid; grid-template-columns: 36px 40px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.rk-lead.me { outline: 1px solid var(--gold); background: rgba(255,194,46,.08); }
.rk-lead img { width: 40px; height: 40px; }
.rk-rank { text-align: center; font-family: var(--display); font-size: 18px; color: var(--muted); }
.rk-rank.r1, .rk-rank.r2, .rk-rank.r3 { font-size: 24px; }
.rk-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rk-who b small { color: var(--gold); font-weight: 400; }
.rk-who .sub { font-size: 12px; line-height: 1.3; }
.rk-tip { position: fixed; z-index: 80; display: flex; flex-direction: column; gap: 3px; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #1d1220; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.6); font-size: 12px; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity .12s; }
.rk-tip b { color: var(--text); font-size: 13px; }
.rk-tip.show { opacity: 1; }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .msg { max-width: 94%; }
  .bubble { font-size: 14px; }
  .composer .tools .btn-sm { padding: 0 10px; font-size: 14px; }
  .fighter img { width: 36px; height: 36px; }
  .room-card { grid-template-columns: 44px 1fr; }
  .room-card img { width: 44px; height: 44px; }
  .room-card .btn { grid-column: 1 / -1; }
  .rk-tiles { grid-template-columns: 1fr 1fr; }
  .rk-tiles .rk-tile:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .rk-tile b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 결과 화면 「대화 저장」, 대화 기록 화면 */
.res-actions { margin-top: 16px; display: flex; justify-content: center; gap: 10px; position: relative; z-index: 2; }
.log-count { margin: 0 0 10px; }
.log-item .no.win { background: linear-gradient(180deg, #ffd54a, #a86d00); color: #2a1600; }
.log-item .no.lose { background: linear-gradient(180deg, #5a6170, #262a33); }
.log-head h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 10px 0 4px; }
.log-vs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.log-vs .vs { font-family: var(--impact); color: var(--gold); }
.log-result { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.log-result.win { border-color: rgba(255,194,46,.6); }
.log-result.lose { border-color: rgba(255,45,74,.5); }
.log-head .scores { margin-top: 12px; }
.msgs.log-msgs { overflow: visible; padding: 18px 0 30px; }
.log-msgs .msg .bubble, .log-msgs .sys { animation: none; }
.log-tools { margin: 0 0 12px; justify-content: flex-end; }

/* ── 다국어: 언어 선택 + 언어별 글꼴 (웹폰트는 app.js가 그 언어를 고를 때 불러온다) ── */
.lang-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); animation: fadeUp .6s 1.4s both; }
.main.replay .lang-pick { animation-delay: 0s; }
.lang-pick select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.55); color: var(--text); font: inherit; cursor: pointer; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
html[lang='en'], html[lang='es'] {
  --display: 'Anton', 'Black Han Sans', sans-serif;
  --brush: 'Permanent Marker', 'Anton', cursive;
  --impact: 'Bungee', 'Anton', sans-serif;
  --serif: 'Noto Serif', Georgia, serif;
  --num: 'Orbit', 'Noto Sans', monospace;
  --body: 'Noto Sans', system-ui, -apple-system, sans-serif;
}
html[lang='ja'] {
  --display: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  --brush: 'Yuji Syuku', 'Dela Gothic One', serif;
  --impact: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  --serif: 'Noto Serif JP', serif;
  --num: 'Orbit', 'Noto Sans JP', monospace;
  --body: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --btn-font: var(--body); /* IBM Plex Sans KR에는 가나·간체 글자가 없다 */
}
html[lang='zh-CN'] {
  --display: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  --brush: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
  --impact: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  --serif: 'Noto Serif SC', serif;
  --num: 'Orbit', 'Noto Sans SC', monospace;
  --body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --btn-font: var(--body);
}
/* 로고 길이가 언어마다 달라 화면 밖으로 넘치지 않게 */
html[lang='en'] .logo, html[lang='es'] .logo { font-size: clamp(52px, 13vw, 140px); line-height: 1.05; }
html[lang='es'] .logo { font-size: clamp(44px, 11vw, 124px); }
html[lang='ja'] .logo, html[lang='zh-CN'] .logo { font-size: clamp(64px, 17vw, 180px); }
html[lang='en'] .btn, html[lang='es'] .btn { letter-spacing: .5px; }
.composer .tools { flex-wrap: wrap; }
.lang-pick.compact { margin-top: 0; gap: 4px; animation: none; }
.lang-pick.compact select { padding: 4px 6px; font-size: 12px; max-width: 120px; }

/* 결정 기한이 있는 주제: 마감되면 결정 결과만 안내 */
.topic-item .term { display: block; width: fit-content; margin-top: 6px; padding: 2px 8px; border-radius: 20px; font-style: normal; font-size: 11px; color: var(--gold); background: rgba(255,194,46,.12); border: 1px solid rgba(255,194,46,.35); }
.topic-item .term.closed { color: var(--muted); background: rgba(255,255,255,.06); border-color: var(--line); }
.topic-item.closed { opacity: .62; }
.topic-item.closed .no { background: linear-gradient(180deg, #6b6470, #34303a); }
.topic-hero .term-note { margin: 10px 0 0; color: var(--gold); font-size: 13px; }
.topic-hero.closed .decision { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); text-align: left; line-height: 1.6; }
.topic-hero.closed .decision p { margin: 8px 0 0; }

/* ───── 테마: 논리대결 (토론 경기장) ─────
   스포츠 매치 구조(찬성 VS 반대, 경기장 바닥)에 토론 무대의 두 줄기 조명과 짙은 보라·따뜻한 조명색을 입힌다.
   배경은 fx.js의 stage 장면, 기본(불꽃 전장)은 아래 규칙이 없을 때의 모습 그대로다 */
.vs-chip { display: none; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-grid .seg-btn { padding: 12px 8px; }
.theme-grid .seg-btn b { display: block; font-size: 15px; }
.theme-grid .seg-btn small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--muted); }
html[data-theme='battle'] {
  --bg: #120e1c;
  --panel: rgba(28, 21, 44, 0.78);
  --panel-solid: #1c1530;
  --line: rgba(233, 217, 255, 0.14);
  --text: #f3eefa;
  --muted: #bfb2d4;
  --crimson: #ffb878; /* 강조색: 따뜻한 조명 */
  --crimson-d: #8a5a2e;
  --gold: #ffd38a;
  --gold-d: #a87a3a;
  --steel: #b9a6e8;
  --steel-d: #5a4a8a;
  --pro: #8fe0d8;
  --con: #ffc79a;
  --halo: 255,226,170;
}
html[data-theme='battle'] .vs-chip { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: 'Share Tech Mono', monospace; font-size: 13px; animation: fadeUp .6s .4s both; }
html[data-theme='battle'] .vs-chip span { padding: 4px 12px; border-radius: 6px; }
html[data-theme='battle'] .vs-chip .p { background: rgba(143,224,216,.14); border: 1px solid rgba(143,224,216,.5); color: #a9f0e8; }
html[data-theme='battle'] .vs-chip .c { background: rgba(255,199,154,.12); border: 1px solid rgba(255,199,154,.5); color: #ffd2ae; }
html[data-theme='battle'] .vs-chip em { font-style: normal; font-family: 'Black Han Sans', var(--display); font-size: 22px; color: #fff; }
html[data-theme='battle'] .logo { font-family: 'Black Han Sans', var(--display); font-style: italic; padding: 0 .14em; /* 기울인 마지막 글자가 글자 칠(background-clip) 범위 밖으로 잘리지 않게 */ line-height: 1.05; letter-spacing: -1px; background: linear-gradient(180deg, #ffffff 0%, #fff3dc 55%, #e9c99a 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 #2a1a44) drop-shadow(0 0 26px rgba(255,226,170,.4)); animation: logoSlam .9s cubic-bezier(.2,1.6,.4,1) both, stageGlow 4s ease-in-out 1s infinite; }
html[data-theme='battle'] .main.replay .logo { animation: stageGlow 4s ease-in-out infinite; }
html[data-theme='battle'][lang='ko'] .logo, html[data-theme='battle'][lang='ja'] .logo, html[data-theme='battle'][lang='zh-CN'] .logo { font-size: clamp(58px, 16vw, 160px); }
@keyframes stageGlow { 0%,100% { filter: drop-shadow(0 3px 0 #2a1a44) drop-shadow(0 0 22px rgba(255,226,170,.35)); } 50% { filter: drop-shadow(0 3px 0 #2a1a44) drop-shadow(0 0 40px rgba(255,226,170,.65)); } }
html[data-theme='battle'] .tagline { font-family: 'Share Tech Mono', monospace; color: #cbb8ea; }
html[data-theme='battle'] .topbar { background: linear-gradient(180deg, rgba(18,14,28,.92), rgba(18,14,28,.6) 70%, transparent); }
html[data-theme='battle'] .topbar h2 { text-shadow: 0 0 18px rgba(255,226,170,.45), 0 2px 0 #000; }
html[data-theme='battle'] .seg button.on, html[data-theme='battle'] .seg-btn.on { background: linear-gradient(180deg, rgba(255,226,170,.28), rgba(138,90,46,.3)); border-color: var(--crimson); box-shadow: 0 0 16px rgba(255,226,170,.3); }
html[data-theme='battle'] .input:focus { box-shadow: 0 0 0 3px rgba(255,184,120,.22); }
html[data-theme='battle'] .modal { border-color: rgba(233,217,255,.25); }
html[data-theme='battle'] .topic-item:hover { background: rgba(40,30,62,.8); }

/* ───── B급 테마 공통: 로고 '논리나잇' + 돌아가는 밈 문구 ───── */
.on-air, .insert-coin { display: none; }
.tagline2.meme { min-height: 1.5em; font-weight: 700; color: var(--text); }
.tagline2.meme.swap { animation: memeIn .45s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes memeIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ───── 테마: 논리나잇 · 네온 (심야 토크쇼) ─────
   화면은 깔끔하게, 웃음은 문구가 맡는다. 분홍 네온 간판 로고 + ON AIR, 유리 버튼. 배경은 fx.js의 neon 장면 */
html[data-theme='night'] {
  --bg: #0b0a18;
  --panel: rgba(20, 17, 40, 0.8);
  --panel-solid: #15122b;
  --line: rgba(220, 210, 255, 0.14);
  --text: #f4f0ff;
  --muted: #a9a3c8;
  --crimson: #ff4f9a; /* 강조색: 네온 분홍 */
  --crimson-d: #a3195a;
  --gold: #7ee8ff; /* 하이라이트: 네온 하늘색 */
  --gold-d: #2b8fa8;
  --steel: #9a85ff;
  --steel-d: #4a3a9a;
  --pro: #ff6fb1;
  --con: #7ee8ff;
  --halo: 255,111,177;
  --metal: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.1) 50%, rgba(255,111,177,.3)); /* 버튼 테두리: 금속 대신 유리 */
}
html[data-theme='night'] .icon-btn { color: #f4f0ff; }
html[data-theme='night'] .on-air { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border: 1px solid rgba(255,92,122,.5); border-radius: 999px; font-family: 'Share Tech Mono', monospace; font-size: 12px; letter-spacing: 2px; color: #ff6f8a; animation: fadeUp .6s .3s both; }
html[data-theme='night'] .on-air i { width: 7px; height: 7px; border-radius: 50%; background: #ff3355; box-shadow: 0 0 8px #ff3355; animation: onAir 1.6s ease-in-out infinite; }
@keyframes onAir { 50% { opacity: .35; } }
html[data-theme='night'] .logo { font-family: 'Jua', var(--display); font-size: clamp(64px, 19vw, 170px); line-height: 1.05; background: none; color: #fff1f7; filter: none;
  text-shadow: 0 0 4px #fff, 0 0 10px #ff6fb1, 0 0 22px #ff3d96, 0 0 44px #ff3d96, 0 0 80px rgba(255,61,150,.6); animation: neonOn 1.4s steps(1) both; }
html[data-theme='night'] .main.replay .logo { animation: none; }
html[data-theme='night'] .logo .slash { display: none; }
@keyframes neonOn { 0% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: .2; } 22% { opacity: 1; } 26% { opacity: .4; } 34%, 100% { opacity: 1; } }
html[data-theme='night'] .tagline { font-family: 'Share Tech Mono', monospace; letter-spacing: 10px; color: #7ee8ff; opacity: 1; text-shadow: 0 0 10px rgba(126,232,255,.8); }
html[data-theme='night'] .tagline2.meme { margin: 22px 0 36px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #e2dcf7; font-weight: 500; }
html[data-theme='night'] .tagline2.meme::before, html[data-theme='night'] .tagline2.meme::after { content: ''; flex: none; width: 22px; height: 1px; background: rgba(217,212,239,.4); }
html[data-theme='night'] .main-actions { gap: 10px; width: min(320px, 100%); }
html[data-theme='night'] .main-actions .btn { min-height: 56px; font-size: 20px; color: #f4f0ff; text-shadow: none; background: rgba(255,255,255,.05) padding-box; box-shadow: none; }
html[data-theme='night'] .main-actions .btn:hover { background: rgba(255,255,255,.1); }
html[data-theme='night'] .main-actions #startBtn::before { display: none; }
html[data-theme='night'] .main-actions #startBtn { min-height: 62px; font-size: 22px; background: linear-gradient(180deg, #ff4f9a, #e0307a) border-box; box-shadow: 0 8px 30px -6px rgba(255,61,150,.7), inset 0 1px 0 rgba(255,255,255,.35); }
html[data-theme='night'] .main-actions #startBtn:hover { filter: brightness(1.08); }
html[data-theme='night'] .topbar { background: linear-gradient(180deg, rgba(11,10,24,.92), rgba(11,10,24,.6) 70%, transparent); }
html[data-theme='night'] .topbar h2 { text-shadow: 0 0 18px rgba(255,79,154,.55), 0 2px 0 #000; }
html[data-theme='night'] .seg button.on, html[data-theme='night'] .seg-btn.on { background: rgba(255,79,154,.18); border-color: var(--crimson); box-shadow: 0 0 16px rgba(255,79,154,.35); }
html[data-theme='night'] .input:focus { box-shadow: 0 0 0 3px rgba(255,79,154,.25); }
html[data-theme='night'] .board-entry { border-color: rgba(126,232,255,.5); background: rgba(126,232,255,.07); color: #c9f5ff; }

/* ───── 테마: 논리나잇 · 오락실 (90년대 대전 게임 타이틀) ─────
   픽셀 글꼴(갈무리), 색수차 로고, ▶ 메뉴 커서, 화면 전체 주사선. 배경은 fx.js의 arcade 장면 */
html[data-theme='arcade'] {
  --bg: #05070a;
  --panel: rgba(10, 12, 18, 0.88);
  --panel-solid: #0c0f16;
  --line: rgba(255, 255, 255, 0.16);
  --text: #eef1f5;
  --muted: #9aa3b2;
  --crimson: #ff2e88;
  --crimson-d: #a0105a;
  --gold: #ffe14a;
  --gold-d: #a88c10;
  --steel: #2ee6ff;
  --steel-d: #0a7a8a;
  --green: #39ff9a;
  --pro: #ff5a6e;
  --con: #4cb8ff;
  --radius: 6px;
  --halo: 255,225,74;
  --display: 'Galmuri11', 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --btn-font: 'Galmuri11', var(--body);
  --metal: linear-gradient(#3a4150, #3a4150); /* 버튼 테두리: 금속 대신 각진 회색 선 */
}
html[data-theme='arcade'] body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.55)); }
html[data-theme='arcade'] .vs-chip { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--display); font-size: 14px; animation: fadeUp .6s .4s both; }
html[data-theme='arcade'] .vs-chip span { padding: 6px 10px; border: 2px solid; }
html[data-theme='arcade'] .vs-chip .p { color: #ff5a6e; }
html[data-theme='arcade'] .vs-chip .p::before { content: '1P '; }
html[data-theme='arcade'] .vs-chip .c { color: #4cb8ff; }
html[data-theme='arcade'] .vs-chip .c::before { content: '2P '; }
html[data-theme='arcade'] .vs-chip em { font-style: normal; color: #ffe14a; font-size: 20px; }
html[data-theme='arcade'] .logo { font-family: 'Galmuri11', var(--display); font-weight: 700; font-size: clamp(52px, 15.5vw, 140px); line-height: 1.1; letter-spacing: 2px; background: none; color: #fff; filter: none;
  text-shadow: 3px 0 0 #ff2e88, -3px 0 0 #2ee6ff, 0 0 24px rgba(46,230,255,.35); animation: pixelIn .8s steps(6) both; }
html[data-theme='arcade'] .main.replay .logo { animation: none; }
html[data-theme='arcade'] .logo .slash { display: none; }
@keyframes pixelIn { from { opacity: 0; transform: scale(1.6); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html[data-theme='arcade'] .tagline { font-family: 'Galmuri11', monospace; letter-spacing: 2px; font-size: 13px; color: #39ff9a; opacity: 1; }
html[data-theme='arcade'] .tagline2.meme { margin: 14px 0 30px; font-family: 'Galmuri11', var(--body); font-weight: 400; font-size: 14px; color: #ffe14a; }
html[data-theme='arcade'] .main-actions { gap: 4px; width: min(260px, 100%); }
html[data-theme='arcade'] .main-actions .btn { justify-content: flex-start; min-height: 44px; padding: 0 0 0 30px; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 19px; font-weight: 400; color: #cfd3da; text-shadow: none; }
html[data-theme='arcade'] .main-actions .btn .ico { display: none; }
html[data-theme='arcade'] .main-actions .btn::before { content: '▶'; inset: auto; left: 4px; top: 50%; transform: translateY(-50%); padding: 0; border-radius: 0; background: none; -webkit-mask: none; mask: none; font-size: 15px; opacity: 0; }
html[data-theme='arcade'] .main-actions .btn:hover, html[data-theme='arcade'] .main-actions .btn:focus-visible, html[data-theme='arcade'] .main-actions:not(:hover):not(:focus-within) #startBtn { color: #ffe14a; outline: none; }
html[data-theme='arcade'] .main-actions .btn:hover::before, html[data-theme='arcade'] .main-actions .btn:focus-visible::before, html[data-theme='arcade'] .main-actions:not(:hover):not(:focus-within) #startBtn::before { opacity: 1; animation: cursorBlink 1s steps(1) infinite; }
@keyframes cursorBlink { 50% { opacity: 0; } }
html[data-theme='arcade'] .insert-coin { display: block; margin: 26px 0 0; font-family: 'Galmuri11', monospace; font-size: 13px; letter-spacing: 2px; color: #ffe14a; animation: cursorBlink 1.4s steps(1) infinite; }
html[data-theme='arcade'] .ai-badge { font-family: 'Galmuri11', var(--body); }
html[data-theme='arcade'] .topbar { background: linear-gradient(180deg, rgba(5,7,10,.94), rgba(5,7,10,.6) 70%, transparent); }
html[data-theme='arcade'] .topbar h2 { text-shadow: 2px 0 0 #ff2e88, -2px 0 0 #2ee6ff; }
html[data-theme='arcade'] .seg button.on, html[data-theme='arcade'] .seg-btn.on { background: rgba(255,225,74,.14); border-color: var(--gold); box-shadow: none; }
html[data-theme='arcade'] .input:focus { box-shadow: 0 0 0 3px rgba(255,225,74,.25); }
html[data-theme='arcade'] .board-entry { border-radius: 0; font-family: 'Galmuri11', var(--body); font-weight: 400; }
/* 한국어 밖의 언어는 로고가 길다 (Logic Night · Noche Lógica 등) */
html[data-theme='night']:not([lang='ko']) .logo { font-size: clamp(46px, 13vw, 130px); }
html[data-theme='night'][lang='en'] .tagline, html[data-theme='night'][lang='es'] .tagline { display: none; } /* 로고가 이미 영문·스페인어라 LOGIC NIGHT가 겹친다 */
html[data-theme='arcade']:not([lang='ko']) .logo { font-size: clamp(38px, 11vw, 110px); }
@media (prefers-reduced-motion: reduce) {
  html[data-theme='night'] .logo, html[data-theme='arcade'] .logo, .tagline2.meme.swap, html[data-theme='arcade'] .insert-coin, html[data-theme='arcade'] .main-actions .btn::before, html[data-theme='night'] .on-air i { animation: none; }
}

/* ───── 휴대폰 키보드가 떠 있을 때 (대결 화면 입력 모드) ───── */
.turnbar .kb-match { display: none; }
.screen.chat.kb { bottom: auto; animation: none; }
.chat.kb .chat-head { padding: 6px 10px; }
.chat.kb .chat-topic, .chat.kb .vsbar { display: none; }
.chat.kb .turnbar { margin-top: 0; height: 32px; }
.chat.kb .turnbar .lbl { font-size: 13px; }
.chat.kb .turnbar .kb-match { display: inline; margin-left: 10px; opacity: .85; }
.chat.kb .msgs { padding: 10px 12px 6px; gap: 8px; }
.chat.kb .composer { padding: 8px 10px; }
.chat.kb .composer .tools { display: none; }
.chat.kb .composer textarea { min-height: 44px; max-height: 96px; }
/* 내 차례 마지막 10초 */
.chat.crit .chat-head { border-bottom-color: #ff2d4a; animation: critGlow .5s steps(2) infinite; }
@keyframes critGlow { 50% { box-shadow: inset 0 -3px 0 #ff2d4a, 0 6px 24px rgba(255,45,74,.55); } }
@media (prefers-reduced-motion: reduce) { .chat.crit .chat-head { animation: none; box-shadow: inset 0 -3px 0 #ff2d4a; } }

/* ───────── 랭킹 보기: 허브 · 논객 랭킹 · 대결 이력 · 인기 대화 ───────── */
.hub-list { display: flex; flex-direction: column; gap: 12px; max-width: 640px; width: 100%; margin: 6px auto 0; }
.hub-item { display: grid; grid-template-columns: 56px 1fr 20px; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20,14,26,.78); cursor: pointer; animation: cardIn .4s both; transition: transform .15s, border-color .2s, background .2s; }
.hub-item:hover { transform: translateX(6px); border-color: var(--gold); background: rgba(50,34,6,.7); }
.hub-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #ff4d63, #8a0016); }
.hub-ic .ico { width: 28px; height: 28px; fill: #fff; }
.hub-players .hub-ic { background: linear-gradient(180deg, #ffd34d, #b97800); }
.hub-players .hub-ic .ico { fill: #2a1600; }
.hub-talks .hub-ic { background: linear-gradient(180deg, #ff6ad5, #8a1a6e); }
.hub-tx b { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.hub-tx small { color: var(--muted); font-size: 13px; }
.hub-go { font-size: 26px; color: var(--muted); }

.pr-mine { position: sticky; top: 64px; z-index: 4; margin: 0 0 12px; padding: 10px 12px 12px; border-radius: 14px; border: 1px solid var(--gold); background: rgba(34,22,4,.94); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.pr-label { margin: 0 0 8px; font-size: 13px; color: var(--gold); letter-spacing: .5px; }
.pr-label b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.pr-note { margin: 6px 2px 0; font-size: 12px; }
.pr-mine .pr-row { background: rgba(255,194,46,.1); outline: none; }
.pr-list { display: flex; flex-direction: column; gap: 6px; }
.pr-row, .pt-row { display: grid; grid-template-columns: 36px 44px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,14,26,.72); cursor: pointer; animation: cardIn .35s both; transition: border-color .2s, background .2s, transform .15s; }
.pr-row:hover, .pt-row:hover { border-color: var(--gold); background: rgba(50,34,6,.6); transform: translateX(4px); }
.pr-row.me { outline: 1px solid var(--gold); background: rgba(255,194,46,.08); }
.pr-row img { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.3); }
.pr-name { display: flex; flex-direction: column; min-width: 0; }
.pr-name b { font-family: var(--serif); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-name b small { color: var(--muted); font-weight: 400; }
.pr-name > small { font-size: 12px; }
.pr-rec { white-space: nowrap; font-family: var(--display); font-size: 16px; }
.pr-rec .w { color: var(--gold); font-weight: 400; }
.pr-rec .l { color: var(--muted); font-weight: 400; }

.pm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 14px 16px; }
.pm-head img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); }
.pm-head b { display: block; font-family: var(--serif); font-size: 20px; }
.pm-head small { color: var(--muted); }
.pm-item .pm-tx { flex: 1; min-width: 0; }
.pm-item.shut { cursor: default; opacity: .82; }
.pm-item.shut:hover { transform: none; border-color: var(--line); background: rgba(20,14,26,.72); }
.talk-badge { flex: none; margin-left: auto; padding: 4px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid var(--line); }
.talk-badge.pub { color: #b6ffd9; border-color: rgba(46,229,157,.6); background: rgba(46,229,157,.12); }
.talk-badge.priv { color: #ffb3bd; border-color: rgba(255,77,99,.5); background: rgba(255,77,99,.1); }
.talk-badge.none { color: var(--muted); }

.pt-row { grid-template-columns: 36px 1fr auto; }
.pt-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-main > b { font-family: var(--serif); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-main > small { font-size: 12px; }
.pt-vs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.pt-vs em { font-style: normal; font-family: var(--impact); color: var(--gold); font-size: 12px; }
.pt-side { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pt-side img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.pt-side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.pt-likes { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; color: var(--muted); }
.pt-likes .ico { width: 22px; height: 22px; fill: currentColor; }
.pt-likes b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.pt-likes.on { color: #ff6a8a; }
/* 최고의 명언 */
.hub-quotes .hub-ic { background: linear-gradient(180deg, #5cc8ff, #1d4f8a); }
.qt-period { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.qt-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,14,26,.72); cursor: pointer; animation: cardIn .35s both; transition: border-color .2s, background .2s, transform .15s; }
.qt-row:hover { border-color: #5cc8ff; background: rgba(16,36,56,.6); transform: translateX(4px); }
.qt-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qt-quote { font-family: var(--serif); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-main > small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-score { display: flex; flex-direction: column; align-items: center; min-width: 40px; color: #8fdcff; }
.qt-score b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.qt-score small { font-size: 11px; color: var(--muted); }
.qt-ai { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 16px; border: 1px solid rgba(92,200,255,.6); color: #8fdcff; vertical-align: 1px; }
.qt-policy { margin-top: 14px; font-size: 12px; }
.qt-detail .qt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qt-type { padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(92,200,255,.6); color: #8fdcff; }
.qt-big b { font-family: var(--display); font-weight: 400; font-size: 30px; color: #8fdcff; }
.qt-big small { color: var(--muted); font-size: 13px; }
.qt-ctx { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 3px solid rgba(255,255,255,.2); }
.qt-ctx small { color: var(--muted); font-size: 12px; }
.qt-ctx p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-height: 9.5em; overflow-y: auto; }
.qt-full { margin: 14px 0 4px; padding: 4px 0 4px 14px; border-left: 3px solid #5cc8ff; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.qt-who { margin: 0 0 12px; text-align: right; font-size: 13px; color: var(--muted); }
.qt-sec { margin-top: 10px; }
.qt-sec b { font-size: 13px; color: #8fdcff; }
.qt-sec p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.qt-meta { margin: 12px 0 0; font-size: 12px; }
.res-quote { margin: 8px 0 0; color: #8fdcff; }

.like-btn { background: linear-gradient(180deg, #3a1428, #22101a); border-color: #ff6a8a; color: #ffd0dc; }
.like-btn .ico { fill: currentColor; }
.like-btn.on { background: linear-gradient(180deg, #ff6a8a, #b0204a); color: #fff; }
.like-count { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; color: #ff9ab0; font-family: var(--display); font-size: 16px; }
.like-count .ico { width: 18px; height: 18px; fill: currentColor; }

.log-tools { flex-wrap: wrap; align-items: center; }
.res-save { margin-top: 14px; }
.pub-check { display: flex; gap: 10px; align-items: flex-start; max-width: 420px; margin: 0 auto 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); text-align: left; cursor: pointer; }
.pub-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.pub-check b { display: block; font-size: 14px; }
.pub-check small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.res-save .res-actions { margin-top: 0; }
@media (max-width: 480px) {
  .pr-row { grid-template-columns: 30px 38px 1fr auto; gap: 8px; padding: 8px 10px; }
  .pr-row img { width: 38px; height: 38px; }
  .hub-item { grid-template-columns: 48px 1fr 16px; padding: 14px; }
  .hub-ic { width: 48px; height: 48px; }
}

/* 테스트 피드백·문의 게시판 (임시) */
.board-entry { position: relative; margin-top: 18px; padding: 8px 16px; border-radius: 30px; border: 1px dashed rgba(255,194,46,.55); background: rgba(255,194,46,.08); color: #ffe7a6; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; animation: fadeUp .6s 1.25s both; transition: background .2s; }
.board-entry .ico { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; margin-right: 6px; }
/* ── 토론 훈련: 첫 화면 입구 · 코치 말풍선 · 총평 (금·진홍 메달 대신 차분한 청록·하늘색) ── */
.train-entry { position: relative; margin-top: 16px; padding: 10px 18px; border-radius: 14px; border: 1px solid rgba(110,214,255,.6); background: linear-gradient(135deg, rgba(60,207,145,.16), rgba(80,170,255,.14)); color: #dff6ff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; animation: fadeUp .6s 1.2s both; transition: transform .15s, background .2s; }
.train-entry:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(60,207,145,.26), rgba(80,170,255,.22)); }
.train-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; background: #3ccf91; color: #04210f; animation: trainPing 1.8s ease-in-out infinite; }
.train-entry.done { border-style: dashed; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: var(--muted); }
.train-entry.done .train-badge { background: rgba(255,255,255,.14); color: var(--text); animation: none; }
@keyframes trainPing { 0%, 100% { box-shadow: 0 0 0 0 rgba(60,207,145,.55); } 50% { box-shadow: 0 0 0 6px rgba(60,207,145,0); } }
.screen.training #surrender, .screen.training #judgeReq { display: none; }
.coach { flex: none; display: flex; gap: 8px; padding: 0 14px 8px; }
.coach:empty { display: none; }
.coach-bubble { position: relative; flex: 1; min-width: 0; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; animation: fadeUp .35s both; }
.coach-bubble p { margin: 2px 0 0; }
.coach-bubble b { margin-right: 4px; }
.coach-bubble.guide { flex: 0 1 38%; background: rgba(80,170,255,.12); border: 1px solid rgba(110,190,255,.45); color: #dcecff; }
.coach-bubble.tip { background: rgba(60,207,145,.12); border: 1px solid rgba(60,207,145,.5); color: #dcfff0; }
.coach-bubble.tip b { color: #7ff0c0; }
.coach-step, .coach-who { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 1px 8px; border-radius: 10px; margin-bottom: 2px; }
.coach-step { background: rgba(110,190,255,.25); color: #e8f3ff; }
.coach-who { background: rgba(60,207,145,.28); color: #e6fff4; }
.coach-wait i { display: inline-block; width: 5px; height: 5px; margin-right: 2px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.coach-wait i:nth-child(2) { animation-delay: .2s; }
.coach-wait i:nth-child(3) { animation-delay: .4s; }
.train-intro p { margin: 0 0 10px; line-height: 1.65; }
.train-intro .sub { font-size: 13px; }
.result.train { background: radial-gradient(circle at 50% 0%, rgba(80,170,255,.28), rgba(4,14,22,.97) 62%); border: 2px solid rgba(110,214,255,.7); box-shadow: 0 0 60px rgba(80,170,255,.35); }
.result.train h2 { font-family: var(--body); font-weight: 800; font-size: clamp(34px, 8vw, 52px); color: #e8f6ff; letter-spacing: 0; }
.result.train .sub2 { color: #9fd6ff; }
.train-review { text-align: left; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; }
.train-review ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; font-size: 14px; }
.train-review.good { background: rgba(60,207,145,.1); border: 1px solid rgba(60,207,145,.45); }
.train-review.good b { color: #7ff0c0; }
.train-review.fix { background: rgba(80,170,255,.1); border: 1px solid rgba(110,190,255,.45); }
.train-review.fix b { color: #9fd0ff; }
.result.train .res-actions { margin-top: 18px; justify-content: center; }
@media (max-width: 640px) {
  .coach { flex-direction: column; gap: 6px; padding: 0 10px 6px; }
  .coach-bubble { font-size: 12px; padding: 7px 10px; }
  .coach-bubble.guide { flex: none; }
}
.board-entry:hover { background: rgba(255,194,46,.18); }
.main.replay .board-entry { animation-delay: 0s; }
.board-entry .badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; background: var(--crimson); color: #fff; font-size: 12px; box-shadow: 0 0 12px rgba(255,45,74,.6); }
.board-entry .badge.hidden { display: none; }
.board-notice, .board-staff { margin: 0 0 12px; }
.board-filter { flex: 1 1 200px; max-width: 320px; }
.board-item .no { font-size: 18px; background: rgba(255,255,255,.08); }
.board-item .no.kind-bug { background: linear-gradient(180deg, #ff4d63, #8a0016); }
.board-item .no.kind-question { background: linear-gradient(180deg, #4f8bff, #1b3c8a); }
.board-item.unread { border-color: rgba(255,194,46,.7); }
.board-item > span:last-child { min-width: 0; }
.board-item b { overflow-wrap: anywhere; }
.board-item .new { font-style: normal; font-family: var(--impact); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--crimson); color: #fff; vertical-align: middle; }
.board-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.board-head h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 10px 0 6px; overflow-wrap: anywhere; }
.board-by { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; }
.board-by img, .board-comment > img { width: 28px; height: 28px; flex: none; border-radius: 50%; }
.board-body, .board-comment .txt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.board-body { padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.board-tools { flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.board-comments { display: flex; flex-direction: column; gap: 10px; }
.board-comment { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(20,14,26,.72); border: 1px solid var(--line); }
.board-comment > div { flex: 1; min-width: 0; }
.board-comment.staff { border-color: rgba(255,194,46,.6); background: rgba(60,40,6,.45); }
.board-comment .by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; }
.board-comment .by small { color: var(--muted); }
.board-comment .cdel { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 15px; opacity: .7; }
.board-comment .cdel .ico { width: 16px; height: 16px; fill: var(--muted); }
.board-comment .cdel:hover { opacity: 1; }
.board-reply { display: flex; gap: 10px; align-items: flex-end; margin: 14px 0 30px; }
.board-reply textarea { flex: 1; resize: vertical; min-height: 70px; line-height: 1.5; }
.board-write textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.board-write .seg button { padding: 10px 4px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--crimson); }
@media (max-width: 640px) {
  .board-reply { flex-direction: column; align-items: stretch; }
}

/* 자유주제 · 아테나 캐릭터 · 이번 판 조건 */
.free-card { display: block; width: 100%; margin-top: 14px; min-height: 0; }
.free-panel textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.free-result { margin-top: 14px; text-align: center; }
.free-result h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 4vw, 28px); line-height: 1.35; }
.free-result.rejected { text-align: left; border-color: rgba(255,80,100,.45); }
.free-result.rejected h3 { font-size: 18px; }
.free-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.free-sides > div { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.free-sides p { margin: 4px 0 0; color: var(--text); text-shadow: none; font-size: 14px; line-height: 1.5; }
.free-why { margin: 12px 0 0; text-align: left; line-height: 1.6; }
.free-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.free-fb { display: flex; gap: 8px; margin-top: 12px; }
.free-fb[hidden] { display: none; }
.free-fb .input { flex: 1; min-width: 0; }
.free-alts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.free-alts .btn { white-space: normal; text-align: left; }
.persona-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
.chat-angle { margin-top: 6px; padding: 5px 10px; border-radius: 8px; font-size: 13px; color: var(--gold); background: rgba(0,0,0,.3); border: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat.kb .chat-angle { display: none; }
.res-vs { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.rk-free { margin-top: 12px; text-align: center; }
@media (max-width: 640px) {
  .free-sides { grid-template-columns: 1fr; }
  .free-fb { flex-direction: column; }
}

/* 프로필 · 계정 (삭제) */
.account-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.account-panel .sub { margin: 0; flex: 1 1 260px; }
.legal-links { flex: 1 0 100%; margin: 0; font-size: 13px; opacity: .75; }
.legal-links a { color: inherit; }
.legal-agree { margin: 12px 0 0; font-size: 13px; }
.legal-agree a { color: inherit; text-decoration: underline; }
/* 계정 연결 (회원관리 2단계) */
.acc-box { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acc-box .sub { flex: 1 0 100%; margin: 0; }
.reg-login { margin: 8px 0 0; text-align: center; }
.device-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 50vh; overflow-y: auto; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.device-row .tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #1a1000; font-size: 11px; font-weight: 700; }
#delName { width: 100%; margin: 8px 0 4px; }

/* 친구 · 대결 초대 */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; cursor: pointer; text-align: left; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.check-row b { display: block; font-size: 14px; }
.check-row small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; }
.check-row.inline { margin: 0; align-items: center; }
.friend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.friend-link > label:first-child { display: block; font-weight: 700; margin-bottom: 8px; }
.friend-link .searchbar { margin-bottom: 8px; }
.friend-link .input { min-width: 0; font-size: 13px; }
.friend-link > .btn { margin-top: 12px; }
.friend-list { display: grid; gap: 8px; }
.friend { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.3); border-left: 4px solid var(--line); }
.friend img { width: 40px; height: 40px; border-radius: 50%; }
.friend .fn { min-width: 0; }
.friend .fn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .fa { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.friend .fa .btn-sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.friend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 4px; vertical-align: 1px; }
.friend.online { border-left-color: var(--green); }
.friend.online .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.friend.busy { border-left-color: var(--gold); }
.friend.busy .dot { background: var(--gold); }
.friend-list.pick { margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.invite-box { margin: 10px 12px 0; padding: 12px 14px; }
.invite-box .inv-status { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.invite-box .inv-status img { width: 28px; height: 28px; border-radius: 50%; }
.invite-box .inv-status.accepted { color: var(--green); }
.invite-box .inv-status.declined, .invite-box .inv-status.expired, .invite-box .inv-status.none, .invite-box .inv-status.empty { color: #ff8a99; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.invite-modal .inv-from { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.invite-modal .inv-from img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.invite-modal .inv-from p { margin: 0; font-weight: 700; }
.invite-modal .inv-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.invite-modal .inv-topic b { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.invite-modal .inv-left { margin: 10px 0 0; font-family: var(--num); }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; cursor: pointer; }
.confirm-av { display: block; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; }
@media (max-width: 520px) {
  .friend { grid-template-columns: 36px 1fr; }
  .friend img { width: 36px; height: 36px; }
  .friend .fa { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ── 신고·운영자 신고 관리 ── */
.rep-btn { background: none; border: 0; padding: 0 2px; color: inherit; opacity: .55; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.rep-btn:hover, .rep-btn:focus-visible { opacity: 1; }
.board-comment .rep-btn { margin-left: 6px; }
.bubble .modded { opacity: .6; font-style: italic; }
.rep-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 10px 0; }
.rep-reason, .rep-block { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.rep-block { margin: 6px 0; font-size: 13px; }
.rep-note { font-size: 12px; margin: 8px 0 0; }
.pm-head .pm-rep { margin-left: auto; align-self: center; }
.adm-modal { max-width: 640px; }
.adm-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.adm-row { border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-head small { opacity: .7; width: 100%; }
.adm-ctx { margin: 0; font-size: 12px; }
.adm-snap { white-space: pre-wrap; word-break: break-word; font-size: 13px; max-height: 160px; overflow-y: auto; background: rgba(0, 0, 0, .25); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 480px) { .rep-reasons { grid-template-columns: 1fr; } }

/* ── 바로 한 판 ── */
.btn-quick { flex-direction: column; gap: 0; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; background: linear-gradient(135deg, #ffcf3a, #ff7a1a); color: #2a0b00; text-shadow: none; border-color: #ffe08a; box-shadow: 0 0 18px rgba(255, 170, 40, .45); }
.btn-quick small { font-family: var(--sans, inherit); font-size: 12px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.btn-quick:hover { filter: brightness(1.06); }
.reg-quick { margin: 4px 0 10px; width: 100%; }
.name-nudge { margin: 10px 0 0; font-size: 12px; }
.reg-quick.top { margin: 2px 0 6px; }
.reg-or { text-align: center; margin: 4px 0 8px; font-size: 12px; opacity: .8; }
