:root { --accent: #e8743b; --acid: #b8e04a; --hud-bg: rgba(8, 10, 12, 0.55); --txt: #f1eee8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d0f; font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: var(--txt); user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hidden { display: none !important; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid rgba(255,255,255,0.35); border-radius: 4px; font-size: 11px; font-family: inherit; background: rgba(255,255,255,0.08); margin: 0 2px; }

/* ── HUD ── */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { position: absolute; }
#vignette-dmg { inset: 0; background: radial-gradient(ellipse at center, rgba(255,0,0,0) 45%, rgba(200,20,10,0.75) 100%); opacity: 0; transition: opacity 0.08s; }
#vignette-zone { inset: 0; background: radial-gradient(ellipse at center, rgba(180,220,60,0.05) 30%, rgba(160,210,50,0.55) 100%); opacity: 0; transition: opacity 0.4s; }
#vignette-low { inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(120,0,0,0.6) 100%); opacity: 0; }
#crosshair { left: 50%; top: 50%; width: 0; height: 0; --gap: 8px; --len: 10px; }
#crosshair .ch { position: absolute; background: #fff; box-shadow: 0 0 2px #000, 0 0 2px #000; opacity: 0.95; }
#crosshair .ch-t { width: 2px; height: var(--len); left: -1px; top: calc(-1 * var(--gap) - var(--len)); }
#crosshair .ch-b { width: 2px; height: var(--len); left: -1px; top: var(--gap); }
#crosshair .ch-l { height: 2px; width: var(--len); top: -1px; left: calc(-1 * var(--gap) - var(--len)); }
#crosshair .ch-r { height: 2px; width: var(--len); top: -1px; left: var(--gap); }
#crosshair .ch-dot { position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px; background: #fff; border-radius: 50%; box-shadow: 0 0 2px #000; }
#crosshair.ads .ch { opacity: 0.5; }
#hitmark { left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#hitmark span { position: absolute; width: 2px; height: 22px; left: -1px; top: -11px; background: #fff; box-shadow: 0 0 3px #000; }
#hitmark span:first-child { transform: rotate(45deg); } #hitmark span:last-child { transform: rotate(-45deg); }
#hitmark.show { opacity: 1; transition: none; animation: hitpop 0.14s ease-out; } #hitmark.fade { opacity: 0; transition: opacity 0.25s; }
@keyframes hitpop { from { transform: scale(1.9); } to { transform: scale(1); } }
#hitmark.kill { animation: killpop 0.3s ease-out; } @keyframes killpop { 0% { transform: scale(2.6) rotate(0deg); } 60% { transform: scale(1.2) rotate(45deg); } 100% { transform: scale(1.3) rotate(45deg); } }
#dmgnums { inset: 0; } .dmgnum { position: absolute; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 0 4px #000, 0 2px 4px #000; animation: dmgfloat 0.8s ease-out forwards; transform: translate(-50%, 0); }
.dmgnum.head { color: #ffd24a; font-size: 24px; } .dmgnum.kill { color: #ff4a3a; font-size: 26px; }
@keyframes dmgfloat { 0% { opacity: 1; transform: translate(-50%, 0) scale(1.3); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
#blood { inset: 0; overflow: hidden; } .splat { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(170,10,10,0.85) 0%, rgba(150,10,10,0.55) 35%, rgba(120,0,0,0) 70%); transform: translate(-50%, -50%); transition: opacity 1.5s ease-out; filter: blur(2px); }
#hitmark.head span { background: #ffd24a; } #hitmark.kill span { background: #ff3b3b; height: 30px; top: -15px; }
#dmg-ind { left: 50%; top: 50%; width: 0; height: 0; }
.dmg-arc { position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%; border: 7px solid transparent; border-top-color: rgba(255,50,30,0.95); box-shadow: none; opacity: 1; animation: arcfade 0.9s ease-out forwards; }
@keyframes arcfade { 0% { opacity: 1; } 70% { opacity: 0.9; } 100% { opacity: 0; } }
#whiz-ind { left: 50%; top: 50%; width: 0; height: 0; }
.whiz { position: absolute; width: 44px; height: 3px; left: -22px; top: -1px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0.8; }
#topleft { left: 18px; top: 16px; display: flex; gap: 14px; }
#topleft .stat { background: var(--hud-bg); padding: 6px 12px; border-radius: 6px; font-size: 13px; }
#topleft .lbl { opacity: 0.7; margin-right: 6px; font-size: 11px; }
#topleft b { font-size: 16px; }
#zonebox { left: 18px; top: 60px; background: var(--hud-bg); padding: 6px 12px; border-radius: 6px; border-left: 3px solid var(--acid); font-size: 12px; }
#zone-timer { font-size: 18px; font-weight: 700; }
#zonebox.shrinking { border-left-color: #ff5a3a; } #zonebox.shrinking #zone-timer { color: #ff7a5a; }
#zonebox.outside { border-left-color: #ff2a2a; background: rgba(120, 20, 10, 0.6); }
#compass { left: 50%; top: 12px; transform: translateX(-50%); width: 480px; height: 30px; opacity: 0.92; }
#topright { right: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#minimap { width: 220px; height: 220px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.25); background: #223; }
#killfeed { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
#killfeed .kf { background: var(--hud-bg); padding: 3px 9px; border-radius: 4px; font-size: 12px; opacity: 1; transition: opacity 0.6s; }
#killfeed .kf.me { border-left: 3px solid var(--accent); }
#killfeed .kf.victim { border-left: 3px solid #ff3b3b; }
#notice { left: 50%; top: 22%; transform: translateX(-50%); font-size: 22px; font-weight: 700; text-shadow: 0 2px 8px #000; text-align: center; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
#notice.show { opacity: 1; }
#altitude { left: 50%; top: 30%; transform: translateX(-50%); text-align: center; background: var(--hud-bg); padding: 10px 20px; border-radius: 8px; }
#altitude b { font-size: 34px; display: block; }
#altitude .alt-lbl { font-size: 12px; opacity: 0.7; } #altitude .alt-hint { font-size: 12px; opacity: 0.8; margin-top: 4px; }
#prompt { left: 50%; top: 58%; transform: translateX(-50%); background: var(--hud-bg); padding: 6px 14px; border-radius: 6px; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); white-space: nowrap; }
#prompt .tier1 { color: #d8d8d8; } #prompt .tier2 { color: #7fc3ff; } #prompt .tier3 { color: #f0b060; } #prompt .tier4 { color: #d98cff; }
#channel { left: 50%; top: 64%; transform: translateX(-50%); width: 260px; text-align: center; font-size: 13px; }
#channel .bar { height: 8px; background: rgba(0,0,0,0.5); border-radius: 4px; margin-top: 4px; overflow: hidden; } #channel .fill { height: 100%; background: #6fd86f; width: 0; }
#hint { left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 12px; opacity: 0.75; text-shadow: 0 1px 3px #000; white-space: nowrap; }
#bottomleft { left: 18px; bottom: 18px; width: 320px; }
#hp-row { display: flex; align-items: center; gap: 10px; }
#hp-bar { flex: 1; height: 18px; background: rgba(0,0,0,0.55); border-radius: 4px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.15); }
#hp-bar .fill { height: 100%; background: linear-gradient(90deg, #e9e6df, #cfcac0); width: 100%; transition: width 0.15s; }
#hp-bar .heal-preview { position: absolute; top: 0; height: 100%; background: rgba(120,230,120,0.5); width: 0; }
#hp-bar.low .fill { background: #e05050; }
#hp-num { font-size: 20px; width: 40px; text-align: right; }
#armor-row { display: flex; gap: 8px; margin-top: 6px; }
.armor { flex: 1; background: var(--hud-bg); padding: 4px 8px; border-radius: 4px; font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.armor .bar { width: 100%; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; } .armor .fill { height: 100%; background: #8fd0ff; width: 0; }
.armor.lv1 .fill { background: #9fd06f; } .armor.lv2 .fill { background: #6fb4ff; } .armor.lv3 .fill { background: #d98cff; }
#meds-row { margin-top: 6px; display: flex; gap: 8px; font-size: 12px; }
#meds-row .med { background: var(--hud-bg); padding: 4px 8px; border-radius: 4px; } #meds-row .med b { margin-left: 4px; }
#meds-row .med.zero { opacity: 0.45; }
#bottomright { right: 18px; bottom: 18px; text-align: right; }
#weapon-name { font-size: 15px; font-weight: 600; text-shadow: 0 1px 3px #000; }
#ammo { font-size: 14px; } #ammo b { font-size: 36px; font-weight: 700; line-height: 1; } #ammo span { opacity: 0.7; margin-left: 6px; }
#ammo.empty b { color: #ff5a4a; }
#fire-mode { font-size: 11px; opacity: 0.75; margin-bottom: 6px; }
#slots { display: flex; gap: 6px; justify-content: flex-end; }
#slots .slot { background: var(--hud-bg); padding: 4px 8px; border-radius: 4px; font-size: 12px; min-width: 96px; text-align: left; opacity: 0.6; border: 1px solid transparent; }
#slots .slot.active { opacity: 1; border-color: var(--accent); }
#slots .slot span { margin-left: 4px; }
#scope { inset: 0; }
#scope .scope-mask { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0) 0, rgba(0,0,0,0) 34vh, rgba(0,0,0,0.97) 36vh); }
#scope .scope-h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.85); }
#scope .scope-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0,0,0,0.85); }
#scope .scope-dot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #ff3030; border-radius: 50%; }
#bigmap { inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
#bigmap canvas { width: min(85vh, 85vw); height: min(85vh, 85vw); border: 2px solid rgba(255,255,255,0.3); }
.bigmap-hint { font-size: 12px; opacity: 0.7; }

/* ── 화면 ── */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 10, 0.72); z-index: 10; }
.panel { background: rgba(16, 19, 22, 0.94); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 30px 36px; max-width: 760px; width: min(92vw, 760px); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.panel.wide { max-width: 1000px; width: min(95vw, 1000px); }
.logo { font-size: 56px; font-weight: 900; letter-spacing: 8px; color: var(--accent); text-shadow: 0 0 30px rgba(232,116,59,0.35); }
.logo.small { font-size: 40px; letter-spacing: 4px; }
.sub { font-size: 15px; opacity: 0.85; margin-top: 4px; }
.desc { font-size: 14px; line-height: 1.6; opacity: 0.85; margin: 16px 0; }
.title-sm { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
button { font-family: inherit; font-size: 15px; padding: 10px 22px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: #2a2f34; color: #fff; cursor: pointer; }
button:hover { background: #3a4048; } button:disabled { opacity: 0.4; cursor: default; }
button.big { background: var(--accent); border-color: transparent; font-size: 18px; padding: 12px 36px; font-weight: 700; }
button.big:hover { background: #f08a52; }
.row { margin: 10px 0; }
.settings { display: flex; gap: 22px; justify-content: center; font-size: 13px; margin: 8px 0 14px; flex-wrap: wrap; }
.settings label { display: flex; align-items: center; gap: 6px; }
.controls { font-size: 12.5px; opacity: 0.85; line-height: 2; }
.controls.small { font-size: 12px; margin-top: 14px; }
.foot { font-size: 11px; opacity: 0.5; margin-top: 12px; }
.drop-wrap { display: flex; gap: 20px; align-items: stretch; }
#drop-canvas { width: min(70vh, 640px); height: min(70vh, 640px); border: 2px solid rgba(255,255,255,0.25); cursor: crosshair; }
.drop-side { flex: 1; display: flex; flex-direction: column; gap: 14px; text-align: left; font-size: 14px; line-height: 1.6; justify-content: center; }
#drop-poi { font-size: 16px; font-weight: 700; color: var(--acid); min-height: 24px; }
#result-stats { margin: 14px auto; border-collapse: collapse; font-size: 14px; }
#result-stats td { padding: 5px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
#result-stats td:first-child { opacity: 0.7; text-align: right; }
#result-title.win { color: var(--acid); }

/* ── 에셋 적용 UI ── */
.screen.keyart { background: #0b0d0f url('assets/ui/keyart.jpg') center / cover no-repeat; }
.screen.keyart::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0.35), rgba(5,6,8,0.75)); }
.screen.keyart .panel { position: relative; background: rgba(12, 14, 17, 0.82); backdrop-filter: blur(3px); }
.logo-img { width: 92px; height: 92px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); }
.panel.small { max-width: 420px; }
.loadbar { height: 10px; background: rgba(255,255,255,0.12); border-radius: 5px; overflow: hidden; margin-top: 14px; }
#load-fill { height: 100%; width: 0; background: linear-gradient(90deg, #e8743b, #ffb060); transition: width 0.15s; }
.armor img.ic { width: 18px; height: 18px; object-fit: contain; filter: brightness(1.6); }
#meds-row .med img { width: 16px; height: 16px; vertical-align: -3px; margin: 0 3px 0 4px; filter: brightness(1.5); }
#weapon-icon { width: 120px; height: 44px; object-fit: contain; filter: invert(1) brightness(1.2) drop-shadow(0 1px 2px #000); margin-bottom: -6px; }
#prompt img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 4px; filter: invert(1) brightness(1.2); }
#slots .slot img { width: 34px; height: 16px; object-fit: contain; vertical-align: -3px; margin-left: 3px; filter: invert(1) brightness(1.1); }
