/* AURORA FALL — interface styles */
:root {
  --teal: #5ef2c5;
  --violet: #a58bff;
  --ink: rgba(8, 16, 24, 0.72);
  --ink2: rgba(8, 16, 24, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --font: "Pretendard", "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #050b12; color: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hidden { display: none !important; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); font: 700 12px/1.3 var(--font); text-align: center; color: #fff; }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75); }
#zoneOut { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; box-shadow: inset 0 0 140px 30px rgba(94, 242, 197, 0.55); }
#zoneOut.on { opacity: 1; animation: pulse 1.1s ease-in-out infinite; }
#lowHp { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; box-shadow: inset 0 0 160px 40px rgba(220, 30, 30, 0.6); }
#lowHp.on { opacity: 1; animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(0.6); } }

#topCenter { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#compass { width: 520px; height: 34px; max-width: 46vw; }
#zoneInfo { display: flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--ink2); border: 1px solid var(--line); font-size: 13px; letter-spacing: 0.02em; }
#zoneInfo b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--teal); min-width: 34px; text-align: right; }
#zoneInfo .zoneDot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
#zoneInfo.moving { border-color: rgba(255, 120, 90, 0.8); background: rgba(90, 20, 20, 0.55); }
#zoneInfo.moving b { color: #ff9a80; }
#zoneInfo.moving .zoneDot { background: #ff7a5a; box-shadow: 0 0 10px #ff7a5a; animation: pulse 0.6s infinite; }

#topRight { position: absolute; top: 14px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#minimap { width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); background: #0d3550; }
#counts { display: flex; gap: 8px; }
.count { display: flex; align-items: baseline; gap: 8px; padding: 5px 12px; border-radius: 8px; background: var(--ink2); border: 1px solid var(--line); }
.countLabel { font-size: 12px; opacity: 0.8; }
.count b { font-size: 20px; font-variant-numeric: tabular-nums; }
#fps { font: 11px/1 ui-monospace, Menlo, monospace; opacity: 0.55; }

#killfeed { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.feedRow { display: flex; gap: 8px; align-items: center; padding: 4px 10px; border-radius: 6px; background: var(--ink2); font-size: 13px; border-left: 3px solid transparent; animation: slideIn 0.2s ease-out; }
.feedRow .feedW { font-size: 11px; opacity: 0.75; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.feedRow .feedV { opacity: 0.8; }
.feedRow.mine { border-left-color: var(--teal); background: rgba(20, 70, 60, 0.7); }
.feedRow.mine .feedA { color: var(--teal); font-weight: 700; }
.feedRow.me { border-left-color: #ff6a5a; background: rgba(80, 20, 20, 0.7); }
@keyframes slideIn { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

#toasts { position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.toast { padding: 3px 12px; border-radius: 999px; background: var(--ink2); font-size: 13px; font-weight: 600; animation: rise 0.25s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

#announce { position: absolute; top: 17%; left: 50%; transform: translate(-50%, -8px); text-align: center; opacity: 0; transition: opacity 0.35s, transform 0.35s; }
#announce.show { opacity: 1; transform: translate(-50%, 0); }
#announceMain { font-size: 34px; font-weight: 800; letter-spacing: 0.04em; }
#announceSub { margin-top: 4px; font-size: 16px; opacity: 0.9; }
#announce.kill #announceMain { color: var(--teal); }
#announce.warn #announceMain { color: #ffb38a; }
#announce.gold #announceMain { color: #ffd66b; }

#crosshair, #hitmarker, #dmgDir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; left: 0; top: 0; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.9); }
#chTop, #chBottom { width: 2px; height: 10px; }
#chLeft, #chRight { width: 10px; height: 2px; }
#chDot { width: 2px; height: 2px; transform: translate(-50%, -50%); }
#crosshair.enemy i { background: #ff5a48; }
#hitmarker { opacity: 0; }
#hitmarker i { position: absolute; left: -1px; top: -9px; width: 2px; height: 9px; background: #fff; transform-origin: 1px 9px; box-shadow: 0 0 2px #000; }
#hitmarker i:nth-child(1) { transform: rotate(45deg) translateY(-7px); }
#hitmarker i:nth-child(2) { transform: rotate(135deg) translateY(-7px); }
#hitmarker i:nth-child(3) { transform: rotate(225deg) translateY(-7px); }
#hitmarker i:nth-child(4) { transform: rotate(315deg) translateY(-7px); }
#hitmarker.head i { background: #ffd24a; }
#hitmarker.kill i { background: #ff4a3a; height: 13px; top: -13px; transform-origin: 1px 13px; }
.dmgArc { position: absolute; left: 0; top: 0; width: 90px; height: 16px; display: none; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(255, 60, 40, 0) 40%, rgba(255, 60, 40, 0.95) 75%, rgba(255, 60, 40, 0) 100%); }
#dmgNums { position: absolute; inset: 0; overflow: hidden; }
.dmgNum { position: absolute; left: 0; top: 0; display: none; font-size: 20px; font-weight: 800; color: #fff; will-change: transform; }
.dmgNum.head { color: #ffd24a; font-size: 25px; }
.dmgNum.shield { color: #6fdcff; }

#poiLabels { position: absolute; inset: 0; overflow: hidden; }
.poiLabel { position: absolute; left: 0; top: 0; display: none; padding: 3px 10px; border-radius: 999px; background: rgba(8, 16, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 13px; font-weight: 700; white-space: nowrap; will-change: transform; }
.poiLabel small { margin-left: 6px; font-weight: 500; opacity: 0.75; }
#scope { position: absolute; inset: 0; }
.scopeLens { position: absolute; left: 50%; top: 50%; width: 86vh; height: 86vh; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 200vmax #020406; border: 3px solid #000; }
.scopeH { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.85); }
.scopeV { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0, 0, 0, 0.85); }

#prompt { position: absolute; left: 50%; top: 59%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
#warn { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); padding: 2px 10px; border-radius: 6px; background: rgba(90, 16, 12, 0.6); color: #ffb8a8; font-size: 13px; font-weight: 700; white-space: nowrap; }
#hint { position: absolute; left: 16px; bottom: 22px; padding: 7px 12px; border-radius: 10px; background: var(--ink2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; opacity: 0.9; }
#hint kbd { margin: 0 2px 0 8px; }
#hint kbd:first-child { margin-left: 0; }
#progress { position: absolute; left: 50%; top: 65%; transform: translateX(-50%); width: 200px; text-align: center; font-size: 12px; }
.progressTrack { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.55); overflow: hidden; margin-bottom: 4px; }
#progressBar { height: 100%; width: 0; background: var(--teal); }

#dropHud { position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%); text-align: center; }
#dropMain { font-size: 28px; font-weight: 800; letter-spacing: 0.03em; }
#dropSub { margin-top: 4px; font-size: 15px; opacity: 0.9; }
#spectate { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); padding: 8px 18px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
#spectate b { color: var(--teal); }
.specHint { margin-left: 14px; font-size: 12px; opacity: 0.7; }

#bottomCenter { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 340px; display: flex; flex-direction: column; gap: 5px; }
.consumables { display: flex; gap: 6px; justify-content: center; margin-bottom: 3px; }
.cons { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: var(--ink2); border: 1px solid var(--line); font-size: 14px; }
.cons b { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.consIcon { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.consIcon.bandage { background: #f3efe6; box-shadow: inset 0 0 0 4px #f3efe6, inset 0 0 0 7px #d8483d; }
.consIcon.medkit { background: #e2483d; }
.consIcon.cell { background: #49d6ff; box-shadow: 0 0 6px #49d6ff; border-radius: 50%; }
.consIcon.nade { background: #76873f; border-radius: 50%; }
.bar { position: relative; height: 18px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); overflow: hidden; }
.bar.shield { height: 11px; }
.bar .fill { height: 100%; width: 0; transition: width 0.18s ease-out; }
.bar.hp .fill { background: linear-gradient(#7af09a, #37c267); }
.bar.hp .fill.low { background: linear-gradient(#ff8a6a, #e2422e); }
.bar.shield .fill { background: linear-gradient(#8fe7ff, #35b6f2); }
.barText { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar.shield .barText { font-size: 9px; }

#bottomRight { position: absolute; right: 18px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#ammo { display: flex; align-items: baseline; gap: 6px; }
#ammoMag { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
#ammoMag.low { color: #ff7a5a; }
#ammoReserve { font-size: 20px; opacity: 0.85; font-variant-numeric: tabular-nums; }
#ammoType { font-style: normal; font-size: 12px; opacity: 0.7; margin-left: 4px; }
#slots { display: flex; flex-direction: column; gap: 4px; }
.slot { --rar: rgba(255, 255, 255, 0.18); display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 5px 10px; border-radius: 8px; background: var(--ink2); border: 1px solid var(--line); border-left: 4px solid var(--rar); font-size: 14px; opacity: 0.72; }
.slot .slotName { flex: 1; }
.slot .slotAmmo { font-variant-numeric: tabular-nums; opacity: 0.85; }
.slot.active { opacity: 1; background: rgba(20, 40, 50, 0.85); border-color: rgba(255, 255, 255, 0.5); border-left-color: var(--rar); transform: translateX(-6px); }
.slot.empty .slotName { opacity: 0.5; }

#bigmap { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(4, 10, 16, 0.6); pointer-events: none; }
#bigmapCanvas { width: min(84vh, 84vw); height: min(84vh, 84vw); border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.5); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.bigmapHint { margin-top: 10px; font-size: 13px; opacity: 0.8; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.panel { background: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.panel.center { min-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
h1 { margin: 0; font-size: 76px; font-weight: 900; letter-spacing: 0.02em; line-height: 0.95; background: linear-gradient(100deg, #7dffd9 0%, #5ef2c5 30%, #8fb4ff 62%, #c79bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(94, 242, 197, 0.35)); }
h1 span { margin-left: 0.18em; font-weight: 300; }
h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0.06em; color: var(--teal); }
button { font: 600 15px var(--font); color: #fff; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); cursor: pointer; transition: background 0.15s, transform 0.1s, border-color 0.15s; }
button:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
button:active { transform: scale(0.98); }
button.primary { font-size: 20px; font-weight: 800; padding: 14px 22px; color: #06231c; border: none; background: linear-gradient(100deg, #7dffd9, #5ef2c5 45%, #8fb4ff); box-shadow: 0 8px 28px rgba(94, 242, 197, 0.35); }
button.primary:hover { filter: brightness(1.08); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }
.field > span { opacity: 0.85; white-space: nowrap; }
input[type="text"] { width: 170px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: #fff; font: 600 15px var(--font); outline: none; user-select: text; -webkit-user-select: text; }
input[type="text"]:focus { border-color: var(--teal); }
input[type="range"] { width: 170px; accent-color: var(--teal); }
select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: #fff; font: 600 14px var(--font); }
.seg { display: flex; gap: 4px; }
.seg button { padding: 7px 12px; font-size: 14px; }
.seg button.on { background: var(--teal); color: #06231c; border-color: transparent; }
#colorRow { display: flex; flex-wrap: wrap; gap: 5px; max-width: 190px; justify-content: flex-end; }
.swatch { width: 19px; height: 19px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(94, 242, 197, 0.8); }

#menu { justify-content: space-between; align-items: stretch; padding: 5vh 5vw; background: linear-gradient(90deg, rgba(4, 10, 18, 0.72) 0%, rgba(4, 10, 18, 0.25) 46%, rgba(4, 10, 18, 0.05) 70%, rgba(4, 10, 18, 0.45) 100%); }
.menuLeft { display: flex; flex-direction: column; justify-content: center; gap: 16px; width: 380px; }
.menuLeft .panel { display: flex; flex-direction: column; gap: 13px; }
.logoSmall { font-size: 12px; letter-spacing: 0.42em; opacity: 0.75; margin-bottom: 6px; }
.logoSub { margin-top: 10px; font-size: 17px; letter-spacing: 0.08em; opacity: 0.92; }
.hint { font-size: 12px; opacity: 0.65; text-align: center; }
.record { font-size: 13px; text-align: center; color: var(--teal); opacity: 0.95; }
.menuRight { align-self: center; width: 330px; font-size: 14px; }
.keys { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.keys li { display: flex; align-items: center; gap: 4px; }
.keys li span { margin-left: auto; opacity: 0.88; }
.rules { margin: 0; line-height: 1.6; opacity: 0.9; }
.rules b { color: var(--teal); }
.footer { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; opacity: 0.5; letter-spacing: 0.04em; }

#pause, #end, #fatal { background: rgba(4, 10, 16, 0.55); }
#end { background: rgba(4, 10, 16, 0.35); }
.result { min-width: 420px; padding: 28px 34px; }
#endTitle { font-size: 46px; font-weight: 900; letter-spacing: 0.04em; }
#endTitle.win { background: linear-gradient(100deg, #ffe28a, #ffc247 40%, #7dffd9); -webkit-background-clip: text; background-clip: text; color: transparent; }
#endPlace { font-size: 22px; font-weight: 700; opacity: 0.95; }
#endStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 6px; }
.stat { padding: 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; opacity: 0.75; }
.row { display: flex; gap: 8px; justify-content: center; }

#loading { background: radial-gradient(ellipse at 50% 40%, #0d2a3a 0%, #050b12 70%); }
.loadBox { text-align: center; }
.loadTrack { width: 320px; height: 6px; margin: 28px auto 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#loadBar { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--violet)); transition: width 0.2s; }
#loadText { font-size: 14px; opacity: 0.8; }
#fatalText { max-width: 70vw; white-space: pre-wrap; text-align: left; font: 13px/1.5 ui-monospace, Menlo, monospace; color: #ffb3a8; user-select: text; -webkit-user-select: text; }

@media (max-width: 1100px) { .menuRight { display: none; } h1 { font-size: 58px; } }
@media (max-height: 760px) { .menuLeft { gap: 10px; } .panel { padding: 14px 18px; } h1 { font-size: 56px; } #minimap { width: 170px; height: 170px; } }
