:root {
  color-scheme: dark;
  --blue: #6db8e9;
  --blue-deep: #1f6b9b;
  --orange: #e5a44e;
  --ink: #111820;
  --glass: rgba(13, 19, 25, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body, #app { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #0d1217; }
body { user-select: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
#game-canvas { display: block; width: 100%; height: 100%; outline: none; }
.hidden { display: none !important; }

.screen {
  position: fixed; inset: 0; z-index: 40; display: none; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, .98) 0%, rgba(8, 13, 18, .86) 36%, rgba(8, 13, 18, .18) 70%, rgba(8, 13, 18, .55) 100%),
    radial-gradient(circle at 72% 38%, rgba(221, 167, 86, .2), transparent 28%),
    linear-gradient(145deg, #4a4a43 0%, #1a242b 48%, #765d42 100%);
}
.screen.visible { display: block; }
.home-grain { position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.03) 3px); }
.brand-panel { position: absolute; left: clamp(32px, 8vw, 132px); top: 50%; width: min(560px, 45vw); transform: translateY(-53%); }
.eyebrow, .modal-kicker, .operation-kicker { color: var(--orange); letter-spacing: .34em; font-size: 12px; font-weight: 800; }
.brand-panel h1 { margin: 8px 0 0; font-size: clamp(52px, 7vw, 108px); line-height: .86; letter-spacing: -.06em; font-style: italic; font-weight: 1000; text-shadow: 0 8px 30px rgba(0,0,0,.5); }
.brand-panel h1 span { color: var(--orange); }
.tagline { margin: 20px 0 34px; text-transform: uppercase; letter-spacing: .38em; color: #bbc4ca; }
.primary-button, .ghost-button { min-width: 240px; padding: 16px 28px; border: 0; color: white; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; transition: .18s ease; }
.primary-button { background: linear-gradient(110deg, #b7752f, var(--orange)); box-shadow: 0 8px 30px rgba(229,164,78,.22); clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%); }
.primary-button:hover { filter: brightness(1.14); transform: translateX(4px); }
.ghost-button { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.ghost-button:hover { background: rgba(255,255,255,.12); }
.home-options { display: flex; gap: 24px; margin-top: 32px; color: #8f9ba3; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.home-options label { display: grid; gap: 8px; }
.home-options input, .home-options select { accent-color: var(--orange); width: 160px; }
.home-options select { color: #d8dfe3; border: 1px solid var(--line); background: #1c242a; padding: 5px 8px; }
.notice { color: #69777f; font-size: 12px; margin-top: 28px; }
.operation-card { position: absolute; right: 5vw; top: 13vh; width: min(330px, 30vw); padding: 28px; border-top: 3px solid var(--orange); background: linear-gradient(145deg, rgba(16,22,28,.92), rgba(24,30,35,.72)); backdrop-filter: blur(12px); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.operation-card h2 { font-size: 34px; margin: 8px 0 6px; }
.operation-card p { color: #a6b0b7; line-height: 1.65; }
.mode-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 0 4px; font-size: 13px; }
.mode-row span { color: #6f7e87; }
.controls-strip { position: absolute; left: 0; right: 0; bottom: 0; min-height: 68px; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 44px); color: #7e8b92; font-size: 12px; background: rgba(5,9,12,.83); border-top: 1px solid rgba(255,255,255,.08); }
kbd { padding: 3px 7px; color: #dfe6e9; border: 1px solid #56626a; border-bottom-width: 2px; background: #20292f; border-radius: 2px; font-size: 10px; }

#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; text-shadow: 0 2px 4px #000; }
.top-hud { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; height: 66px; }
.team-strip { width: 134px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; font-size: 27px; font-weight: 900; clip-path: polygon(8% 0,100% 0,92% 100%,0 100%); }
.team-strip.ct { color: #bce5ff; background: linear-gradient(100deg, rgba(24,99,143,.92), rgba(30,67,88,.9)); }
.team-strip.t { color: #ffe0b5; background: linear-gradient(100deg, rgba(107,75,37,.9), rgba(165,101,36,.92)); clip-path: polygon(0 0,92% 0,100% 100%,8% 100%); }
.team-icon { font-size: 18px; opacity: .8; }
.round-panel { width: 178px; display: grid; place-items: center; padding: 4px 10px; line-height: 1; background: rgba(10,15,19,.9); border-bottom: 2px solid rgba(255,255,255,.18); }
.round-panel span { color: #8e9aa1; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.round-panel strong { font: 900 26px ui-monospace, monospace; color: white; }
.killfeed { position: absolute; top: 94px; right: 24px; display: grid; justify-items: end; gap: 5px; }
.kill-item { padding: 7px 10px; font-size: 12px; background: rgba(5,8,10,.72); border-right: 2px solid var(--orange); animation: killIn .2s ease; }
.kill-item .ct-name { color: var(--blue); } .kill-item .t-name { color: var(--orange); } .kill-item b { padding: 0 8px; color: white; }
@keyframes killIn { from { opacity: 0; transform: translateX(20px); } }
.radar-wrap { position: absolute; top: 20px; left: 20px; width: 220px; height: 246px; opacity: .92; }
.radar-title { height: 26px; padding: 6px 10px; color: #c6d1d7; background: rgba(8,13,17,.82); border-left: 2px solid var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
#radar { width: 220px; height: 220px; background: rgba(7,12,15,.72); clip-path: polygon(8% 0,100% 0,100% 92%,92% 100%,0 100%,0 8%); }
.objective { position: absolute; top: 286px; left: 22px; display: flex; align-items: center; gap: 10px; min-width: 218px; padding: 9px 12px; background: var(--glass); border-left: 2px solid var(--orange); }
.objective-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #19130b; background: var(--orange); font-weight: 1000; text-shadow: none; }
.objective small { display: block; color: #77858d; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.objective b { font-size: 11px; }
.money { position: absolute; left: 26px; bottom: 122px; color: #a8ce7d; font: 800 18px ui-monospace, monospace; }
.bottom-left { position: absolute; left: 24px; bottom: 28px; display: flex; gap: 10px; }
.stat { min-width: 94px; display: flex; gap: 11px; align-items: center; padding: 10px 14px; background: linear-gradient(90deg, rgba(8,12,15,.78), rgba(8,12,15,.35)); border-bottom: 2px solid rgba(255,255,255,.18); }
.stat span { color: #a9bac4; font-size: 22px; }.stat b { font: 800 28px ui-monospace, monospace; }.heart-icon { color: #d9e2e6 !important; }.armor-icon { color: var(--blue) !important; }
.bottom-right { position: absolute; right: 26px; bottom: 24px; width: 350px; }
.weapon-info { display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 14px; background: linear-gradient(90deg, transparent, rgba(8,12,15,.78)); border-bottom: 2px solid var(--orange); }
.weapon-info small { display: block; color: #77858d; text-transform: uppercase; font-size: 9px; letter-spacing: .18em; }
.weapon-info strong { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.ammo { display: flex; align-items: baseline; gap: 8px; font: 600 21px ui-monospace, monospace; color: #9fa9af; }.ammo b { color: white; font-size: 38px; }.ammo span:nth-child(2) { opacity: .35; }
.inventory-slots { display: flex; justify-content: flex-end; gap: 4px; margin-top: 5px; }
.inventory-slots span { padding: 5px 8px; color: #6e7a80; font-size: 10px; background: rgba(8,12,15,.65); border-top: 1px solid transparent; }.inventory-slots span.active { color: white; border-top-color: var(--orange); }.inventory-slots i { margin-right: 6px; font-style: normal; color: #9ca7ad; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%); }
.crosshair i { position: absolute; background: rgba(235,247,235,.94); box-shadow: 0 0 1px #000, 0 0 3px #000; }
.crosshair i:nth-child(1) { left: 22px; top: 4px; width: 2px; height: 11px; }.crosshair i:nth-child(2) { left: 22px; bottom: 4px; width: 2px; height: 11px; }.crosshair i:nth-child(3) { top: 22px; left: 4px; height: 2px; width: 11px; }.crosshair i:nth-child(4) { top: 22px; right: 4px; height: 2px; width: 11px; }
.hitmarker { display: none; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%,-50%); }.hitmarker.show { display: block; animation: hit .18s ease; }.hitmarker i { position: absolute; left: 18px; top: 7px; width: 2px; height: 9px; background: white; }.hitmarker i:nth-child(1) { transform: rotate(-45deg) translateY(-7px); }.hitmarker i:nth-child(2) { transform: rotate(45deg) translateY(-7px); }.hitmarker i:nth-child(3) { transform: rotate(135deg) translateY(-7px); }.hitmarker i:nth-child(4) { transform: rotate(225deg) translateY(-7px); }
@keyframes hit { from { scale: 1.45; opacity: .3; } }
.damage-indicator { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, transparent 55%, rgba(180,23,18,.6)); transition: opacity .25s; }.damage-indicator.show { opacity: 1; }
.status-message { position: absolute; left: 50%; top: 63%; transform: translate(-50%,-50%); min-width: 260px; text-align: center; padding: 8px 18px; color: #d9e3e8; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; background: rgba(7,11,14,.65); opacity: 0; transition: opacity .2s; }.status-message.show { opacity: 1; }
.interaction { position: absolute; left: 50%; top: 61%; transform: translateX(-50%); width: 260px; text-align: center; }.interaction b { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }.interaction > div { height: 5px; margin-top: 8px; background: rgba(255,255,255,.18); }.interaction i { display: block; width: 0%; height: 100%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5,8,10,.68); backdrop-filter: blur(8px); }
.modal-card { pointer-events: auto; color: white; background: linear-gradient(145deg, rgba(21,29,34,.98), rgba(11,16,20,.98)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.buy-card { width: min(850px, 88vw); padding: 28px; border-top: 3px solid var(--orange); }.buy-card header { display: flex; align-items: end; justify-content: space-between; }.buy-card header span { color: var(--orange); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }.buy-card h2 { margin: 3px 0 0; font-size: 35px; }.buy-card header > b { color: #afd083; font: 800 25px ui-monospace,monospace; }.buy-card > p { color: #6f7d85; font-size: 12px; }
.buy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0; }.buy-item { position: relative; min-height: 136px; padding: 16px; text-align: left; color: white; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: .15s; }.buy-item:hover:not(:disabled) { background: rgba(229,164,78,.12); border-color: var(--orange); transform: translateY(-2px); }.buy-item:disabled { opacity: .35; cursor: not-allowed; }.buy-item .num { position: absolute; top: 8px; right: 10px; color: #60707a; font-size: 11px; }.buy-item .silhouette { height: 42px; display: flex; align-items: center; color: #c7d0d5; font: 900 17px ui-monospace,monospace; letter-spacing: -.09em; }.buy-item strong { display: block; margin-top: 8px; text-transform: uppercase; }.buy-item small { color: #87949b; }.buy-item b { float: right; color: #b7d58d; font-family: ui-monospace,monospace; }
.pause-card { width: 390px; padding: 38px; display: grid; gap: 10px; border-left: 3px solid var(--blue); }.pause-card h2 { margin: 0 0 20px; font-size: 36px; }.pause-card button { width: 100%; }.pause-controls { color: #718089; font-size: 11px; text-align: center; line-height: 1.8; margin-top: 14px; }
.round-banner { position: fixed; z-index: 35; left: 50%; top: 32%; transform: translate(-50%,-50%); width: min(610px,80vw); padding: 20px 40px; text-align: center; color: white; background: linear-gradient(90deg, transparent, rgba(10,16,20,.93) 15%, rgba(10,16,20,.93) 85%, transparent); text-shadow: 0 2px 5px #000; }.round-banner #banner-symbol { color: var(--blue); font-size: 30px; }.round-banner h2 { margin: 5px; text-transform: uppercase; font-size: 35px; letter-spacing: .08em; }.round-banner p { margin: 5px; color: #9ba7ad; }
#mobile-warning { display: none; position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); padding: 9px 14px; font-size: 11px; background: #1b242a; border: 1px solid var(--line); }

@media (max-width: 760px), (pointer: coarse) {
  #mobile-warning { display: block; }
  .operation-card, .home-options, .controls-strip { display: none; }
  .brand-panel { left: 28px; width: calc(100% - 56px); }
  .brand-panel h1 { font-size: 50px; }
  .radar-wrap { scale: .68; transform-origin: top left; }
  .objective { top: 210px; scale: .84; transform-origin: top left; }
  .top-hud { scale: .72; transform: translateX(-69%); }
  .bottom-right { width: 260px; right: 10px; }.inventory-slots { display: none; }
  .buy-grid { grid-template-columns: repeat(2,1fr); }
}
