@font-face { font-family: "Pretendard"; src: url("assets/fonts/Pretendard-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("assets/fonts/Pretendard-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --outline: #1e1622; --bg: #1e182c; --panel: #302844; --panel2: #3a3054; --gray: #a89ebb; --yellow: #ffd232; --gold: #d6a010;
  --red: #eb4646; --blue: #468cfa; --cap: #ece8f6; --cap-side: #8a82a2; --accent: #5a96ff;
}
* { box-sizing: border-box; }
html { font-size: clamp(13px, 1.9vh, 24px); }   /* 작은 화면(1366x768)에서도 읽기 쉽게 */
html, body { margin: 0; height: 100%; overflow: hidden; background: #cce0f2; color: #fff;
  font-family: Pretendard, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; user-select: none; -webkit-user-select: none; }
body.playing { cursor: none; }
[hidden] { display: none !important; }
canvas#gl, canvas#hud2d { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
canvas#hud2d { pointer-events: none; }
b { font-weight: 700; }
a { color: inherit; }
svg.ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }
svg.av { display: block; flex: none; }

/* ── 키캡 ── */
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }
.item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: calc(var(--ks, 1.7rem) * 0.62); font-weight: 700; }
.item .caps { display: inline-flex; align-items: center; gap: 0.25rem; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: var(--ks, 1.7rem); height: var(--ks, 1.7rem); padding: 0 0.45em;
  font-size: calc(var(--ks, 1.7rem) * 0.58); font-weight: 700; color: var(--outline); background: var(--cap); border: 2px solid var(--outline);
  border-radius: 0.4em; box-shadow: 0 calc(var(--ks, 1.7rem) * 0.14) 0 var(--cap-side), 0 calc(var(--ks, 1.7rem) * 0.14) 0 2px var(--outline);
  margin-bottom: calc(var(--ks, 1.7rem) * 0.16); transition: transform 40ms; }
.key.down { transform: translateY(calc(var(--ks, 1.7rem) * 0.12)); background: var(--yellow); box-shadow: 0 2px 0 #9a7a18, 0 2px 0 2px var(--outline); }
.key.wide { min-width: calc(var(--ks, 1.7rem) * 2.3); }
.key.space { min-width: calc(var(--ks, 1.7rem) * 3.4); }
.wasd { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 0.25rem; }
.wasd .key:nth-child(1) { grid-area: 1 / 2; } .wasd .key:nth-child(2) { grid-area: 2 / 1; } .wasd .key:nth-child(3) { grid-area: 2 / 2; } .wasd .key:nth-child(4) { grid-area: 2 / 3; }
.mouse { position: relative; display: inline-block; width: calc(var(--ks, 1.7rem) * 0.95); height: calc(var(--ks, 1.7rem) * 1.35); background: var(--cap-side);
  border: 2px solid var(--outline); border-radius: 55% 55% 50% 50% / 45% 45% 55% 55%; overflow: hidden; }
.mouse i { position: absolute; top: 2px; width: calc(50% - 3px); height: 44%; background: var(--cap); border-radius: 50% 50% 30% 30%; }
.mouse i.l { left: 2px; } .mouse i.r { right: 2px; }
.mouse.lmb i.l, .mouse.rmb i.r { background: var(--accent); }
.mouse.lmb.down i.l, .mouse.rmb.down i.r { background: var(--yellow); }

/* ── 경기 중 HUD ── */
#hud { position: fixed; inset: 0; pointer-events: none; }
#score { position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%); width: 17rem; height: 3.1rem; text-align: center; }
#score .clock { position: absolute; inset: 0; background: rgba(30, 22, 34, 0.82); border: 2px solid var(--outline); border-radius: 1.2rem; box-shadow: 0 0.2rem 0 rgba(0,0,0,.35); }
#score .clock span { position: absolute; left: 0; right: 0; top: 0.5rem; font-size: 1.7rem; font-weight: 700; }
#score.low .clock { background: rgba(150, 30, 36, 0.92); animation: pulse 0.9s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
#score .num { position: absolute; top: 0.35rem; font-size: 2rem; font-weight: 700; text-shadow: 2px 0 var(--outline), -2px 0 var(--outline), 0 2px var(--outline), 0 -2px var(--outline); }
#score .num.red { left: -3.2rem; color: var(--red); } #score .num.blue { right: -3.2rem; color: var(--blue); }
#score .mark { position: absolute; top: 0.5rem; color: var(--yellow); font-size: 1.2rem; text-shadow: 1px 1px var(--outline); }
#score .goal { position: absolute; top: 3.3rem; left: 0; right: 0; font-size: 0.85rem; color: #e8e0f4; text-shadow: 1px 1px 2px var(--outline), 0 0 4px var(--outline); }
#feed { position: absolute; top: 0.8rem; right: 1rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; font-size: 1.05rem; font-weight: 700; }
#feed div { display: flex; align-items: center; gap: 0.45rem; background: rgba(30, 22, 34, 0.7); padding: 0.1rem 0.6rem; border-radius: 0.3rem; animation: feedin 0.25s ease-out; }
#feed div.mine { outline: 2px solid var(--yellow); }
@keyframes feedin { from { transform: translateX(1.5rem); opacity: 0; } }
#feed .red { color: var(--red); } #feed .blue { color: var(--blue); }
#banner, #streak, #count { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; white-space: nowrap; }
#banner { top: 30%; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
#banner b { font-size: 2.4rem; color: #fff; }
#banner.head b { color: var(--yellow); font-size: 2.8rem; }
#banner i { font-style: normal; font-size: 1.15rem; color: #e8e0f4; }
#banner b, #streak, #count { text-shadow: 3px 0 var(--outline), -3px 0 var(--outline), 0 3px var(--outline), 0 -3px var(--outline), 3px 3px var(--outline), -3px -3px var(--outline), 3px -3px var(--outline), -3px 3px var(--outline), 0 5px 0 var(--outline); }
#banner i { text-shadow: 1px 1px 2px var(--outline), 0 0 4px var(--outline); }
#streak { top: 17%; font-size: 3.4rem; font-weight: 700; color: var(--yellow); }
#streak.lv1 { color: #ff9a2a; font-size: 4rem; } #streak.lv2 { color: #ff5a5a; font-size: 4.6rem; }
#count { top: 36%; font-size: 7rem; font-weight: 700; color: #fff; }
#status { position: absolute; top: 58%; left: 0; right: 0; text-align: center; font-size: 1.3rem; font-weight: 700; line-height: 1.6; text-shadow: 2px 0 var(--outline), -2px 0 var(--outline), 0 2px var(--outline), 0 -2px var(--outline); }
#status .re { color: var(--yellow); } #status .pr { font-size: 1rem; }
#left-panel { position: absolute; left: 1rem; bottom: 1rem; padding: 0.25rem; background: var(--outline); border-radius: 0.4rem; box-shadow: 0 0.2rem 0 rgba(0,0,0,.3); }
#left-panel canvas { display: block; width: 16rem; height: 12rem; border-radius: 0.2rem; }
#right-panel { position: absolute; right: 1rem; bottom: 1rem; width: 15rem; display: flex; flex-direction: column; gap: 0.5rem; }
.panel { position: relative; height: 4.2rem; background: var(--panel); border: 2px solid var(--outline); border-radius: 0.7rem; padding: 0.4rem 0.7rem; box-shadow: 0 0.2rem 0 rgba(0,0,0,.3); }
.panel .pico { position: absolute; left: 0.7rem; top: 0.4rem; width: 1.3rem; height: 1.3rem; }
.panel .pico svg { width: 100%; height: 100%; display: block; }
.panel .pico.beat { animation: beat 0.5s infinite; }
@keyframes beat { 50% { transform: scale(1.3); } }
.panel .lab { color: var(--gray); font-size: 1.05rem; font-weight: 700; padding-left: 1.75rem; }
.panel .val { position: absolute; right: 0.7rem; top: 0.1rem; font-size: 2.2rem; font-weight: 700; display: inline-block; }
.panel .of { position: absolute; right: 0.7rem; top: 1.15rem; font-size: 0.95rem; color: var(--gray); }
.panel.has-of .val { right: 2.8rem; }
.panel .bar { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.45rem; height: 0.6rem; background: var(--outline); }
.panel .bar i { display: block; height: 100%; background: #fff; transition: width 0.15s; }
.panel.kd { height: 2.8rem; font-size: 1.2rem; font-weight: 700; padding-top: 0.5rem; color: var(--gray); display: block; }
.panel.kd b { color: #fff; display: inline-block; }
.ticks { display: flex; height: 100%; } .ticks s { flex: 1; margin-right: 1px; background: #fff; } .ticks s.low { background: var(--yellow); } .ticks s.off { background: transparent; }
#ammo-fill { display: none !important; background: var(--yellow) !important; } #ammo-fill.on { display: block !important; }
#keys-bottom { position: absolute; left: 19rem; right: 17rem; bottom: 1rem; display: flex; justify-content: center; }
#keys-bottom .keys { --ks: 1.45rem; justify-content: center; background: rgba(30, 22, 34, 0.55); padding: 0.5rem 1rem 0.3rem; border-radius: 0.8rem; gap: 0.4rem 0.9rem; }
#intro { position: absolute; left: 50%; top: 11%; transform: translateX(-50%); transition: opacity 0.4s; opacity: 0; background: rgba(30, 22, 34, 0.62); padding: 1rem 1.6rem 0.7rem; border-radius: 1rem; border: 2px solid var(--outline); }
#intro .keys { gap: 0.8rem 2rem; justify-content: center; margin-bottom: 0.4rem; }
#dead { position: absolute; inset: 0; background: rgba(30, 22, 34, 0.47); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
#dead b { font-size: 3rem; color: var(--red); text-shadow: 3px 0 var(--outline), -3px 0 var(--outline), 0 3px var(--outline), 0 -3px var(--outline); }
#dead-by { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; text-shadow: 2px 0 var(--outline), -2px 0 var(--outline), 0 2px var(--outline), 0 -2px var(--outline); }
#dead-by .who { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(30,22,34,.7); padding: 0.1rem 0.7rem 0.1rem 0.3rem; border-radius: 2rem; }
#dead-by em { font-style: normal; color: var(--yellow); }
#dead span { font-size: 1.6rem; font-weight: 700; text-shadow: 2px 0 var(--outline), -2px 0 var(--outline), 0 2px var(--outline), 0 -2px var(--outline); }

/* ── 점수판 (Tab) ── */
#board { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 14, 28, 0.45); z-index: 4; }
.boardbox { width: min(58rem, 94vw); background: rgba(40, 32, 58, 0.97); border: 3px solid var(--outline); border-radius: 1.1rem; padding: 0.9rem 1.2rem 1.1rem; box-shadow: 0 0.4rem 0 rgba(0,0,0,.35); }
.boardbox h2 { margin: 0 0 0.6rem; font-size: 1.4rem; text-align: center; } .boardbox h2 small { font-size: 0.7em; color: var(--gray); font-weight: 400; margin-left: 0.4rem; }
#board-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.team h3 { margin: 0 0 0.3rem; padding: 0.3rem 0.8rem; border-radius: 0.6rem; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; color: #fff; border: 2px solid var(--outline); }
.team.red h3 { background: #b83838; } .team.blue h3 { background: #3a70c8; } .team h3 small { font-size: 0.7em; font-weight: 400; opacity: 0.85; } .team h3 b { font-size: 1.6rem; }
.team table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.team th { color: var(--gray); font-weight: 400; font-size: max(12px, 0.8rem); text-align: right; padding: 0 0.5rem; }
.team td { text-align: right; padding: 0.15rem 0.5rem; font-weight: 700; }
.team td.av { width: 2.2rem; padding: 0.1rem 0 0.1rem 0.3rem; } .team td.nm { text-align: left; }
.team tr { border-bottom: 1px solid rgba(255,255,255,.08); }
.team tr.me { background: rgba(255, 210, 50, 0.22); outline: 2px solid var(--yellow); outline-offset: -2px; }
.team tr.dead td { opacity: 0.45; }

/* ── 화면들 (첫 화면·선택·설정·정지·결과) ── */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; }
#loading, #error, #touch { background: radial-gradient(circle at 50% 35%, #3a2f58, var(--bg) 70%); }
.overlay { background: rgba(24, 18, 34, 0.72); pointer-events: auto; }
#hud .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; }
.box { background: linear-gradient(#3a3054, var(--panel)); border: 3px solid var(--outline); border-radius: 1.2rem; padding: 1.4rem 2.2rem 1.2rem; min-width: 22rem; max-width: 94vw; max-height: 96vh; overflow: auto; text-align: center; box-shadow: 0 0.5rem 0 rgba(0,0,0,.35), inset 0 0.15rem 0 rgba(255,255,255,.08); }
.box.wide { width: min(50rem, 94vw); }
.title { font-size: 2.6rem; font-weight: 700; margin-bottom: 0.4rem; } .title.small { font-size: 1.8rem; }
.note { color: #d8d0e8; line-height: 1.6; margin: 0.4rem 0; }
.box .bar { height: 0.9rem; background: var(--outline); margin: 1rem 0 0.4rem; border-radius: 0.5rem; overflow: hidden; } .box .bar i { display: block; height: 100%; width: 0; background: linear-gradient(var(--yellow), var(--gold)); transition: width 0.15s; }
.box.load { width: min(28rem, 92vw); } .box.load .pct { font-size: 1.6rem; font-weight: 700; color: var(--yellow); } .box.load .tip { margin-top: 0.8rem; min-height: 2.8em; color: #cfc6e4; font-size: 0.95rem; line-height: 1.5; }
.btns { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0 0.4rem; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 700; font-size: 1.2rem; color: #fff; background: #4a4064; border: 3px solid var(--outline); border-radius: 0.8rem; padding: 0.6rem 1.4rem; cursor: pointer; pointer-events: auto; box-shadow: 0 0.25rem 0 var(--outline); transition: transform 0.08s, background 0.1s; }
.btn small { display: block; font-size: 0.7em; font-weight: 400; color: #cfc6e4; }
.btn:hover { background: #5d5280; transform: translateY(-0.1rem); } .btn:active { transform: translateY(0.15rem); box-shadow: 0 0.1rem 0 var(--outline); }
.btn.primary { background: var(--gold); color: var(--outline); } .btn.primary small { color: #4a3a08; } .btn.primary:hover { background: var(--yellow); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn.big { font-size: 1.5rem; padding: 0.7rem 2rem; flex: 1; }
.btn.huge { font-size: 2.2rem; padding: 0.8rem 3.6rem; border-radius: 1.2rem; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.04); } }

/* 결과 */
.box.result { width: min(36rem, 94vw); padding-top: 1rem; }
#res-title { font-size: 4rem; margin: 0; line-height: 1.1; text-shadow: 3px 0 var(--outline), -3px 0 var(--outline), 0 3px var(--outline), 0 -3px var(--outline), 0 5px 0 var(--outline); }
#res-title.win { color: var(--yellow); animation: winpop 0.6s ease-out; } #res-title.lose { color: #9aa4c8; } #res-title.draw { color: #fff; }
@keyframes winpop { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.12); } }
#res-score { font-size: 1.8rem; font-weight: 700; margin: 0.2rem 0 0.6rem; }
.rstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.5rem 0; }
.rstats div { background: rgba(0,0,0,.28); border-radius: 0.7rem; padding: 0.4rem 0.2rem; } .rstats b { display: block; font-size: 1.7rem; } .rstats span { font-size: 0.8rem; color: var(--gray); }
.mvp { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.6rem 0 0.3rem; padding: 0.4rem 0.8rem; background: rgba(255, 210, 50, 0.13); border: 2px solid rgba(255,210,50,.5); border-radius: 0.8rem; font-size: 1.2rem; }
.mvp .crown { background: var(--yellow); color: var(--outline); font-weight: 700; font-size: 0.8rem; border-radius: 0.4rem; padding: 0.05rem 0.4rem; } .mvp small { color: var(--gray); font-size: 0.85rem; }
.best { color: var(--gray); margin-top: 0.5rem; } .best b { color: #fff; } .best em { font-style: normal; background: #e84a4a; color: #fff; border-radius: 0.4rem; padding: 0 0.4rem; font-weight: 700; margin-left: 0.3rem; animation: pulse 0.9s infinite; display: inline-block; }

/* 설정 */
.setgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem 2rem; text-align: left; margin: 0.6rem 0 0.2rem; }
.box.wide .setgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.set { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; min-height: 2.4rem; }
.set > span:first-child { flex: 0 0 6.4rem; line-height: 1.2; } .set small { display: block; font-size: max(12px, 0.68em); font-weight: 400; color: var(--gray); }
.set input[type=range], .vol input[type=range] { flex: 1; min-width: 0; accent-color: var(--yellow); height: 1.4rem; cursor: pointer; }
.set output { flex: none; width: 3rem; text-align: right; color: var(--yellow); font-variant-numeric: tabular-nums; }
.vol { flex: 1; display: flex; align-items: center; gap: 0.4rem; min-width: 0; } .vol output { flex: none; width: 2.8rem; text-align: right; color: var(--yellow); }
.setgrid.muted .vol input, .setgrid.muted .vol output { opacity: 0.4; }
.mute, .seg button { font: inherit; font-weight: 700; font-size: 0.8rem; white-space: nowrap; color: #fff; background: #4a4064; border: 2px solid var(--outline); border-radius: 0.5rem; padding: 0.2rem 0.6rem; cursor: pointer; }
.mute { flex: none; }
.mute.on { background: #a83a3a; }
.seg { display: flex; flex: 1; } .seg button { flex: 1; border-radius: 0; margin-left: -2px; padding: 0.3rem 0.2rem; } .seg button:first-child { border-radius: 0.5rem 0 0 0.5rem; margin-left: 0; } .seg button:last-child { border-radius: 0 0.5rem 0.5rem 0; }
.seg button.on { background: var(--gold); color: var(--outline); position: relative; z-index: 1; } .seg button:hover:not(.on), .mute:hover { background: #5d5280; }
.sens { display: none; }

/* 로고 */
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.92; transform: rotate(-3deg); font-weight: 700; letter-spacing: -0.02em; }
.logo span { -webkit-text-stroke: 0.14em var(--outline); paint-order: stroke fill; }
.logo .l1 { font-size: 5.2rem; color: var(--yellow); text-shadow: 0 0.07em 0 #b87a00, 0 0.14em 0 var(--outline), 0 0.24em 0.3em rgba(0, 0, 0, 0.35); }
.logo .l2 { font-size: 7.4rem; color: #fff; margin-top: -0.05em; text-shadow: 0 0.06em 0 #8a82b8, 0 0.12em 0 var(--outline), 0 0.22em 0.3em rgba(0, 0, 0, 0.35); }
.logo.small { transform: rotate(-2deg); } .logo.small .l1 { font-size: 2.2rem; } .logo.small .l2 { font-size: 3rem; }

/* 첫 화면 */
#title { display: block; background: transparent; pointer-events: none; }
#title .titlebox { position: absolute; top: 3%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
#title .ribbon { background: var(--panel); border: 3px solid var(--outline); border-radius: 2rem; padding: 0.3rem 1.4rem; font-weight: 700; font-size: 1.1rem; color: #e8e0f4; box-shadow: 0 0.2rem 0 rgba(0,0,0,.35); }
#title .titlebtns { position: absolute; bottom: 9%; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 1.2rem; pointer-events: auto; }
#title .titlefoot { position: absolute; bottom: 3.2%; left: 0; right: 0; text-align: center; font-size: 1rem; font-weight: 700; color: #fff; text-shadow: 1px 1px 3px var(--outline), 0 0 6px var(--outline); }

#select { background: transparent; justify-content: flex-end; pointer-events: none; }
#select .side { pointer-events: auto; width: min(34rem, 100vw); height: 100%; background: linear-gradient(rgba(36, 28, 56, 0.95), rgba(30, 24, 44, 0.96)); border-left: 3px solid var(--outline); padding: 1.2rem 1.8rem 1.4rem; overflow-y: auto; display: flex; flex-direction: column; }
#select h1 { margin: 0.4rem 0 0; font-size: 2.2rem; } #select .sub { margin: 0.2rem 0 1rem; color: var(--gray); }
.back { align-self: flex-start; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--gray); background: none; border: 0; cursor: pointer; padding: 0.2rem 0; } .back:hover { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.card { font: inherit; color: #fff; background: var(--panel); border: 3px solid var(--outline); border-radius: 0.8rem; padding: 0.6rem 0.3rem 0.7rem; cursor: pointer; text-align: center; box-shadow: 0 0.25rem 0 var(--outline); transition: transform 0.1s; }
.card .ko { display: block; font-size: 1.3rem; font-weight: 700; } .card .en { display: block; font-size: 0.8rem; color: var(--gray); } .card .ico { display: flex; justify-content: center; margin-bottom: 0.2rem; }
.card:hover { background: #3c3358; transform: translateY(-0.15rem); } .card.sel { border-color: var(--yellow); background: #4a3f6a; box-shadow: 0 0 0 2px var(--yellow), 0 0.25rem 0 var(--outline); }
.card:focus-visible { outline: 3px solid #fff; }
.gru { margin: 1rem 0; padding: 0.7rem 0.9rem; background: rgba(0, 0, 0, 0.28); border-radius: 0.6rem; border-left: 4px solid var(--yellow); line-height: 1.5; font-size: 0.95rem; }
.gru b { color: var(--yellow); margin-right: 0.6rem; }
#select .guide { margin: 0.5rem 0 0.4rem; } #select .keys { --ks: 1.6rem; gap: 0.6rem 1.1rem; }
#select .row2 { margin-top: auto; display: flex; gap: 0.8rem; padding-top: 0.8rem; } #select .row2 .btn:first-child { align-self: stretch; }
#pause .guide { display: none; }
#credits { position: fixed; left: 0.8rem; bottom: 0.4rem; font-size: max(12px, 0.75rem); color: rgba(255, 255, 255, 0.85); z-index: 20; background: rgba(30, 22, 34, 0.7); padding: 0.15rem 0.6rem; border-radius: 0.5rem; }   /* 모래 바탕에서도 읽히게 어두운 띠 */
body.playing #credits { display: none; }
#dbg { position: fixed; left: 0.5rem; top: 0.5rem; z-index: 99; font: 12px/1.4 monospace; background: rgba(0, 0, 0, 0.7); color: #7f7; padding: 4px 6px; white-space: pre; pointer-events: none; }
@media (max-width: 900px) { #keys-bottom { display: none; } .logo .l1 { font-size: 3.6rem; } .logo .l2 { font-size: 5rem; } .box.wide .setgrid { grid-template-columns: 1fr; } #board-in { grid-template-columns: 1fr; } }
@media (max-height: 640px) { .logo .l1 { font-size: 3.4rem; } .logo .l2 { font-size: 4.8rem; } }
