:root {
  color-scheme: dark;
  --ink: #e4edef;
  --muted: #8ca0a8;
  --faint: #566b74;
  --orange: #ff7435;
  --orange-hot: #ff9b56;
  --cyan: #69e4df;
  --coal: #0a1217;
  --panel: rgba(10, 20, 26, .9);
  --line: rgba(145, 177, 187, .22);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body, #app, #scene { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--coal); color: var(--ink); }
button { font: inherit; }
button, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
#scene { position: absolute; inset: 0; background: #0b151b; }
#game-canvas { width: 100%; height: 100%; display: block; }
.world-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 55% 48%, transparent 35%, rgba(2, 8, 12, .3) 100%); transition: opacity .35s; }
body[data-mode="menu"] .world-shade { background: linear-gradient(90deg, rgba(4, 11, 15, .95) 0%, rgba(5, 12, 17, .72) 37%, rgba(5, 12, 17, .1) 69%, rgba(4, 10, 14, .46) 100%), linear-gradient(0deg, rgba(4, 10, 14, .78), transparent 30%); }
#damage-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse, transparent 25%, rgba(209, 35, 8, .8)); mix-blend-mode: screen; }
.screen { position: absolute; inset: 0; z-index: 10; }
.start-screen { padding: 0 clamp(28px, 4.5vw, 78px); display: flex; flex-direction: column; }
.topbar { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; letter-spacing: .16em; }
.brand-mini { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mini > span:last-child { color: var(--muted); font-weight: 400; }
.brand-sigil { width: 21px; height: 21px; border: 3px solid var(--orange); border-right-color: transparent; border-radius: 50%; position: relative; }
.brand-sigil::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--muted); }
.version { color: #9aabb1; display: flex; align-items: center; gap: 9px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(105, 228, 223, .5); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 10px rgba(255, 116, 53, .6); }
.start-content { flex: 1; display: grid; grid-template-columns: minmax(480px, 1fr) minmax(330px, 400px); gap: clamp(30px, 8vw, 150px); align-items: center; max-width: 1500px; width: 100%; margin: 0 auto; padding: 30px 0; min-height: 0; }
.hero-copy { max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: var(--orange-hot); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 600; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow > span { display: block; width: 29px; height: 2px; background: var(--orange); }
h1 { margin: 0; line-height: .8; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: clamp(82px, 9.4vw, 156px); font-stretch: condensed; font-weight: 900; letter-spacing: -.025em; text-transform: uppercase; text-shadow: 0 4px 35px rgba(0,0,0,.3); }
h1 > span { display: block; }
h1 > span:first-child { font-size: .56em; letter-spacing: .12em; line-height: 1; color: #bdcdd2; }
.title-period { color: var(--orange); }
.hero-subtitle { margin: 28px 0 13px; font-size: clamp(18px, 1.65vw, 26px); line-height: 1.2; font-weight: 300; letter-spacing: .09em; }
.hero-subtitle strong { font-weight: 800; color: #fff; }
.hero-description { color: #9bafb7; font-size: 13px; line-height: 1.65; max-width: 45ch; margin: 0; text-wrap: pretty; }
.start-actions { margin-top: 28px; }
.primary-button { width: 100%; min-height: 60px; border: 1px solid #ff8b51; background: var(--orange); color: #151512; display: flex; align-items: center; gap: 18px; padding: 0 20px; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 14px; box-shadow: 0 9px 35px rgba(255, 85, 20, .13); transition: background-color .16s, transform .16s, box-shadow .16s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.primary-button:hover { background: #ff8d50; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 85, 20, .23); }
.primary-button:active { transform: translateY(0); }
.primary-button kbd { margin-left: auto; color: #4b2414; border-color: rgba(55, 20, 3, .28); font-size: 9px; }
.button-arrow { font-size: 24px; font-weight: 400; line-height: 1; }
.start-actions .primary-button { max-width: 390px; }
kbd { display: inline-flex; justify-content: center; align-items: center; min-height: 22px; padding: 3px 7px; border: 1px solid rgba(165, 191, 200, .32); border-radius: 2px; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 500; letter-spacing: .05em; color: #bdcdd2; background: rgba(127, 153, 164, .06); }
.input-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #7f969f; font-size: 10px; margin: 12px 0 0; }
.input-hint > span:not(.mouse-icon) { color: #4e6872; margin: 0 2px; }
.input-hint strong { color: #a9c1c8; font-weight: 500; }
.mouse-icon { display: inline-block; width: 10px; height: 14px; border: 1px solid #78929c; border-radius: 5px; position: relative; }
.mouse-icon::after { content: ""; width: 1px; height: 4px; background: #78929c; position: absolute; top: 2px; left: 3.5px; }
.mission-panel { background: linear-gradient(140deg, rgba(16, 29, 36, .89), rgba(8, 18, 24, .82)); border: 1px solid rgba(129, 164, 176, .24); border-top: 2px solid #657b83; padding: 24px; backdrop-filter: blur(12px); box-shadow: 0 25px 60px rgba(0,0,0,.28); position: relative; }
.mission-panel::before, .modal-card::before { content: ""; position: absolute; top: -2px; right: -1px; width: 35px; height: 2px; background: var(--orange); }
.panel-index { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .16em; color: #8aa1a9; }
.panel-index span { color: var(--orange-hot); }
.mission-panel h2 { font-size: 20px; margin: 18px 0 22px; letter-spacing: -.02em; font-weight: 650; }
.wave-numbers { display: flex; align-items: center; justify-content: space-between; padding: 0 0 21px; border-bottom: 1px solid var(--line); }
.wave-numbers > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 9px; }
.wave-numbers span { font-family: ui-monospace, monospace; font-size: 9px; color: #708991; align-self: start; padding-top: 4px; }
.wave-numbers strong { font-size: 32px; line-height: 1; font-weight: 300; }
.wave-numbers small { grid-column: 2; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: .15em; color: #7e969e; margin-top: 4px; }
.wave-numbers i { height: 23px; width: 1px; background: var(--line); }
.control-section { margin-top: 19px; }
.control-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.control-tab { border: 0; background: transparent; color: #758e98; padding: 0 0 10px; font-size: 10px; position: relative; }
.control-tab.active { color: #dce9ed; }
.control-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--cyan); }
.control-grid { margin: 13px 0 0; display: grid; gap: 7px; }
.control-grid > div { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.control-grid dt { display: flex; gap: 4px; align-items: center; }
.control-grid dd { margin: 0; color: #93a8b0; font-size: 11px; }
.control-mouse, .stick-icon { font-family: ui-monospace, monospace; font-size: 9px; color: #bdcdd2; border: 1px solid rgba(165, 191, 200, .32); padding: 4px 7px; border-radius: 2px; }
.stick-icon { width: 23px; height: 23px; border-radius: 50%; padding: 3px; text-align: center; }
.controller-status { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; align-items: center; color: #8ba1a9; font-size: 10px; }
.controller-status small { grid-column: 2; font-size: 9px; color: #5f7882; margin-top: 3px; }
.controller-status.connected { color: var(--cyan); }
.pad-icon { font-size: 25px; transform: rotate(-20deg); color: currentColor; }
.start-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .09em; color: #6d858e; }
.start-footer > span { display: flex; align-items: center; gap: 8px; }
.start-footer b { color: #a6bbc2; font-weight: 500; }
.orange-line { width: 14px; height: 2px; background: var(--orange); }
.text-button { border: 0; background: none; color: #93aab2; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .08em; min-height: 44px; padding: 0; }
.text-button:hover { color: var(--cyan); }

.hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-family: ui-monospace, "Cascadia Mono", monospace; text-shadow: 0 2px 5px #000; }
.hud-top-left { position: absolute; top: 34px; left: 38px; width: 220px; }
.hud-label { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .13em; }
.hud-label .muted { color: #80949b; }
.wave-progress, .health-track { margin-top: 11px; height: 3px; background: rgba(117, 151, 162, .2); overflow: hidden; }
.wave-progress > span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .2s; }
.hud-subtext { margin-top: 8px; color: #a4b6bc; font-size: 9px; }
.hud-top-center { position: absolute; top: 35px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 9px; letter-spacing: .2em; color: #b6c7cc; }
.hud-top-center small { display: block; margin-top: 8px; color: #d8e5e8; font-size: 15px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hud-top-right { position: absolute; top: 34px; right: 38px; text-align: right; }
.hud-controller { color: #7c99a2; font-size: 8px; letter-spacing: .1em; }
.hud-pause-hint { margin-top: 9px; display: flex; gap: 7px; align-items: center; justify-content: flex-end; color: #91a9b1; font-size: 8px; }
.hud-pause-hint kbd { font-size: 8px; min-height: 20px; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }
.crosshair i { position: absolute; background: rgba(223, 240, 239, .85); box-shadow: 0 0 2px #000; }
.crosshair i:nth-child(1) { width: 1px; height: 6px; left: 14px; top: 1px; }
.crosshair i:nth-child(2) { width: 1px; height: 6px; left: 14px; bottom: 1px; }
.crosshair i:nth-child(3) { height: 1px; width: 6px; top: 14px; left: 1px; }
.crosshair i:nth-child(4) { height: 1px; width: 6px; top: 14px; right: 1px; }
.crosshair b { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--orange-hot); left: 13.5px; top: 13.5px; }
.hit-marker { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); opacity: 0; }
.hit-marker i { width: 8px; height: 1px; background: #fff; position: absolute; top: 15px; left: 11px; transform-origin: center; }
.hit-marker i:nth-child(1) { transform: translate(-8px,-8px) rotate(45deg); }
.hit-marker i:nth-child(2) { transform: translate(8px,-8px) rotate(-45deg); }
.hit-marker i:nth-child(3) { transform: translate(-8px,8px) rotate(-45deg); }
.hit-marker i:nth-child(4) { transform: translate(8px,8px) rotate(45deg); }
.combat-message { position: absolute; left: 50%; top: 25%; transform: translateX(-50%); min-width: 260px; text-align: center; color: #e6f0f1; font-size: 12px; letter-spacing: .16em; opacity: 0; transition: opacity .2s; }
.combat-message.visible { opacity: 1; }
.combat-message small { display: block; color: #9cb0b8; font-size: 9px; letter-spacing: .07em; margin-top: 9px; }
.hud-bottom-left { position: absolute; left: 38px; bottom: 32px; width: 235px; }
.hud-bottom-left .hud-label { font-size: 9px; color: #99afb7; justify-content: space-between; }
#health-status { color: var(--cyan); font-size: 8px; }
.health-row { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.health-cross { font-size: 25px; color: var(--cyan); font-weight: 300; }
.health-row strong { font-size: 45px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.health-max { color: #8299a1; font-size: 11px; }
.health-track > span { display: block; width: 100%; height: 100%; background: var(--cyan); transition: width .2s; }
.hud-bottom-left.critical .health-row strong, .hud-bottom-left.critical #health-status { color: #ff7245; }
.hud-bottom-left.critical .health-track > span { background: #ff6134; }
.hud-bottom-center { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; font-size: 8px; color: #94b7bd; }
.cyan-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.hud-bottom-right { position: absolute; right: 38px; bottom: 32px; width: 285px; }
.weapon-name { font-size: 9px; letter-spacing: .1em; color: #a5b8bf; text-align: right; }
.weapon-name span { color: var(--orange); }
.ammo-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; margin-top: 3px; }
.ammo-row > strong { font-size: 48px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.ammo-row > span { color: #8fa4ac; font-size: 14px; }
.ammo-pips { display: flex; gap: 3px; margin-left: 14px; align-self: center; }
.ammo-pips i { display: block; height: 20px; width: 3px; background: var(--orange); }
.ammo-pips i.empty { background: rgba(126, 151, 160, .23); }
.reload-hint { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 9px; color: #91a7af; font-size: 8px; }
.reload-hint > span { color: #526c76; }
.reload-hint kbd { min-height: 18px; font-size: 8px; }
.reload-bar { height: 3px; background: rgba(111, 142, 153, .25); margin-top: 8px; }
.reload-bar span { display: block; height: 100%; background: var(--orange); width: 0; }

.modal-screen { display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 14, .68); backdrop-filter: blur(9px); }
.modal-card { width: min(100%, 460px); padding: 40px; background: rgba(11, 22, 28, .96); border: 1px solid #41535a; border-top: 2px solid #788b90; box-shadow: 0 30px 90px #0008; position: relative; }
.modal-card h2 { margin: 0 0 17px; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-weight: 900; font-size: clamp(42px, 5vw, 64px); line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.modal-card h2 > span { color: var(--orange); }
.modal-card > p:not(.eyebrow):not(.pointer-note) { font-size: 13px; line-height: 1.6; color: #9fb3bb; margin: 0 0 27px; }
.secondary-button { width: 100%; min-height: 46px; border: 1px solid #40565e; background: transparent; margin-top: 10px; color: #b7c8ce; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; transition: border-color .15s, color .15s; }
.secondary-button:hover { border-color: #99b3bb; color: #fff; }
.modal-hints { margin-top: 25px; color: #829ba4; font-family: ui-monospace, monospace; font-size: 9px; line-height: 1.8; }
.modal-hints span { color: #47616b; margin: 0 5px; }
.pointer-note { margin: 14px 0 0; color: #5e7983; font-size: 10px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0; padding: 19px 0; }
.result-stats > div { text-align: center; border-right: 1px solid var(--line); }
.result-stats > div:last-child { border: 0; }
.result-stats span { display: block; font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .14em; color: #78939c; }
.result-stats strong { display: block; margin-top: 7px; font-size: 25px; font-weight: 300; font-variant-numeric: tabular-nums; }
.result-screen.victory .modal-card { border-top-color: var(--cyan); }
.result-screen.dead .modal-card { border-top-color: var(--orange); }
.corner-marks { position: absolute; inset: 14px; z-index: 20; pointer-events: none; }
.corner-marks i { position: absolute; width: 13px; height: 13px; border-color: rgba(143, 172, 181, .35); border-style: solid; }
.corner-marks i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.corner-marks i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.corner-marks i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.corner-marks i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.loading-error { position: absolute; z-index: 50; inset: 0; padding: 10vw; background: #0b1318; }

@media (min-width: 1600px) { .start-content { grid-template-columns: 1fr 420px; } }
@media (max-height: 760px) and (min-width: 801px) {
  .topbar { min-height: 65px; }
  .start-content { padding: 20px 0; }
  h1 { font-size: clamp(76px, 8.5vw, 118px); }
  .hero-subtitle { margin-top: 20px; }
  .start-actions { margin-top: 20px; }
  .mission-panel { padding: 19px 22px; }
  .mission-panel h2 { margin: 13px 0 16px; }
  .wave-numbers { padding-bottom: 15px; }
  .control-section { margin-top: 13px; }
  .control-grid { gap: 3px; margin-top: 9px; }
  .controller-status { margin-top: 11px; padding-top: 10px; }
  .start-footer { min-height: 48px; }
}
@media (max-width: 1000px) {
  .start-content { gap: 35px; grid-template-columns: minmax(350px, 1fr) 330px; }
  h1 { font-size: clamp(78px, 11vw, 120px); }
  .start-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 800px) {
  html, body, #app { overflow-y: auto; min-height: 100%; }
  #scene { position: fixed; }
  .start-screen { min-height: 100dvh; height: auto; padding: 0 24px; }
  .topbar { min-height: 70px; font-size: 8px; }
  .brand-mini > span:last-child { display: none; }
  .version { font-size: 7px; letter-spacing: .07em; }
  .start-content { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 40px 0; }
  .hero-copy { max-width: 520px; }
  h1 { font-size: clamp(78px, 20vw, 120px); }
  .hero-description { font-size: 13px; }
  .start-actions .primary-button { max-width: none; }
  .mission-panel { max-width: 520px; width: 100%; }
  .start-footer { min-height: 60px; font-size: 7px; }
  .hud-top-left { left: 20px; top: 22px; width: 150px; }
  .hud-top-right { right: 20px; top: 22px; }
  .hud-top-center { top: 82px; }
  .hud-bottom-left { left: 20px; bottom: 24px; width: 155px; }
  .hud-bottom-right { right: 20px; bottom: 24px; width: 170px; }
  .hud-bottom-center { display: none; }
  .ammo-pips { display: none; }
  .health-row strong, .ammo-row > strong { font-size: 38px; }
}
@media (max-width: 420px) {
  .start-screen { padding: 0 18px; }
  .version { max-width: 130px; text-align: right; line-height: 1.5; }
  .hero-subtitle { font-size: 18px; }
  .mission-panel { padding: 20px; }
  .start-footer > span:first-child { max-width: 170px; line-height: 1.5; }
  .modal-card { padding: 30px 25px; }
  .hud-controller { max-width: 100px; line-height: 1.5; }
  .reload-hint { font-size: 7px; }
}
/* İkincil bilgiler de oyun öncesi okunabilir: mikro metin yalnız dekoratif indekslerdir. */
.input-hint { font-size: 11px; color: #a0b4bc; }
.control-tab { font-size: 11px; color: #98afb7; }
.control-grid dd { font-size: 12px; color: #aec0c7; }
.controller-status { font-size: 11px; color: #a4b8bf; }
.controller-status small { font-size: 10px; color: #849ba4; }
.hero-description { color: #adbec5; font-size: 14px; }
.panel-index { font-size: 10px; }
.wave-numbers small { font-size: 8px; color: #9bb0b8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
