/* project:src/style.css */
:root {
  color-scheme: dark;
  --accent: #63d9ff;
  --panel: rgba(7, 17, 31, 0.92);
  --line: rgba(255, 255, 255, 0.15);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #07111f;
}
button,
input {
  font: inherit;
}
button {
  min-width: 44px;
  min-height: 44px;
}
.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  padding-top: var(--redding-preview-safe-area-top, 0px);
  color: #f5fbff;
}
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  image-rendering: auto;
}
.is-hidden {
  display: none !important;
}
.topbar {
  position: fixed;
  z-index: 18;
  top: max(18px, var(--redding-preview-safe-area-top, 0px));
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.topbar p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.topbar button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.icon-button,
.secondary,
.primary,
.mode-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #f6fbff;
  background: rgba(10, 24, 40, .82);
  cursor: pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}
button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}
.icon-button {
  width: 48px;
  padding: 0;
  font-size: 20px;
  backdrop-filter: blur(10px);
}
.primary {
  color: #06121c;
  border-color: transparent;
  background: var(--accent);
  font-weight: 850;
}
.secondary,
.primary {
  padding: 11px 18px;
}
.overlay {
  position: fixed;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(70px, calc(var(--redding-preview-safe-area-top, 0px) + 60px)) 20px max(24px, var(--redding-preview-safe-area-bottom, 0px));
  overflow-y: auto;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(56, 160, 194, .2),
      rgba(3, 9, 18, .84) 55%,
      rgba(3, 8, 14, .96));
  backdrop-filter: blur(6px);
}
.panel {
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(15, 35, 54, .96),
      var(--panel));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.modal-panel {
  width: min(520px, 100%);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
}
.modal-panel h2 {
  font-size: clamp(27px, 4vw, 38px);
}
.lead {
  margin: 14px 0 24px;
  color: #c4d2dc;
  font-size: 16px;
  line-height: 1.65;
}
.notice {
  margin: -8px 0 18px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 205, 91, .3);
  border-radius: 10px;
  color: #ffe49a;
  background: rgba(93, 64, 11, .28);
  font-size: 13px;
}
.record {
  margin: 18px 0 0;
  color: #8fa7b8;
  text-align: center;
  font-size: 13px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.map-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}
.map-grid button {
  min-width: 116px;
}
.map-grid button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
}
.mode-card {
  min-height: 104px;
  padding: 18px;
  text-align: left;
}
.mode-card b,
.mode-card span {
  display: block;
}
.mode-card b {
  margin-bottom: 8px;
  font-size: 18px;
}
.mode-card span {
  color: #b9c9d4;
  font-size: 13px;
  line-height: 1.5;
}
.mode-card.primary span {
  color: #173143;
}
.button-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.button-row > * {
  flex: 1;
}
.button-stack {
  display: grid;
  gap: 10px;
}
.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.controls-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #bcd0dc;
}
.touch-help {
  margin: -8px 0 22px;
  color: #bcd0dc;
  font-size: 14px;
  line-height: 1.55;
}
kbd {
  color: white;
  font-weight: 800;
}
.setting-row,
.toggle-row {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  color: #d9e7ef;
}
.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}
input[type=checkbox] {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
}
.hud {
  position: fixed;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}
.hud-card,
.objective {
  position: absolute;
  top: max(82px, calc(var(--redding-preview-safe-area-top, 0px) + 76px));
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 15, 27, .76);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}
.hud-card {
  width: 210px;
}
.hud-card span,
.objective span,
.objective small {
  display: block;
  color: #a9bdc9;
  font-size: 12px;
}
.hud-card strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
}
.health {
  left: 22px;
}
.ammo {
  right: 22px;
  text-align: right;
}
.ammo i b {
  background:
    linear-gradient(
      90deg,
      #57d8ff,
      #ffd36a);
}
.objective {
  left: 50%;
  min-width: 210px;
  transform: translateX(-50%);
  text-align: center;
}
.objective strong {
  display: block;
  margin-bottom: 3px;
}
.hud-card i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
}
.hud-card i b {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #50ec9c,
      var(--accent));
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}
.crosshair::before,
.crosshair::after,
.crosshair span::before,
.crosshair span::after {
  content: "";
  position: absolute;
  background: white;
  box-shadow: 0 0 4px #000;
}
.crosshair::before {
  left: 11px;
  top: 0;
  width: 2px;
  height: 7px;
}
.crosshair::after {
  left: 11px;
  bottom: 0;
  width: 2px;
  height: 7px;
}
.crosshair span::before {
  left: 0;
  top: 11px;
  width: 7px;
  height: 2px;
}
.crosshair span::after {
  right: 0;
  top: 11px;
  width: 7px;
  height: 2px;
}
.hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  color: white;
  font-size: 30px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition:
    opacity .07s,
    transform .09s,
    color .08s;
}
.hitmarker.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hitmarker.hit {
  color: #f7fdff;
}
.hitmarker.kill {
  color: #ff6f73;
  font-size: 38px;
  text-shadow: 0 0 12px rgba(255, 65, 75, .75);
}
.hitmarker.headshot {
  color: #ffe16d;
  font-size: 39px;
  text-shadow: 0 0 13px rgba(255, 202, 63, .8);
}
.hitmarker.boss {
  color: #ff9f43;
  font-size: 44px;
  text-shadow: 0 0 18px rgba(255, 104, 40, .9);
}
.damage-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(
      circle,
      transparent 35%,
      rgba(255, 71, 71, .52));
  transition: opacity .12s;
}
.damage-flash.show {
  opacity: 1;
}
.kill-feed {
  position: absolute;
  z-index: 2;
  top: max(150px, calc(var(--redding-preview-safe-area-top, 0px) + 142px));
  right: 22px;
  display: grid;
  justify-items: end;
  gap: 7px;
  width: min(340px, calc(100vw - 32px));
}
.kill-feed-entry {
  max-width: 100%;
  padding: 9px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-right: 4px solid #ff6f73;
  border-radius: 9px 3px 3px 9px;
  color: #f9fcff;
  background:
    linear-gradient(
      90deg,
      rgba(8, 20, 32, .62),
      rgba(8, 20, 32, .94));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .16s ease, transform .18s ease;
}
.kill-feed-entry.show {
  opacity: 1;
  transform: translateX(0);
}
.kill-feed-entry.leaving {
  opacity: 0;
  transform: translateX(14px);
}
.kill-feed-entry.headshot {
  border-right-color: #ffe16d;
  color: #fff1a8;
}
.kill-feed-entry.boss {
  border-right-color: #ff9f43;
  color: #ffd39a;
  background:
    linear-gradient(
      90deg,
      rgba(47, 20, 8, .58),
      rgba(41, 18, 8, .95));
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(28px, var(--redding-preview-safe-area-bottom, 0px));
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(4, 14, 25, .9);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: .18s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.touch-controls {
  position: fixed;
  z-index: 9;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.touch-look {
  position: absolute;
  z-index: 0;
  top: max(64px, calc(var(--redding-preview-safe-area-top, 0px) + 52px));
  right: var(--redding-preview-safe-area-right, 0px);
  bottom: var(--redding-preview-safe-area-bottom, 0px);
  width: 54%;
  pointer-events: auto;
  touch-action: none;
}
.touch-joystick {
  position: absolute;
  z-index: 2;
  left: max(18px, calc(var(--redding-preview-safe-area-left, 0px) + 12px));
  bottom: max(24px, calc(var(--redding-preview-safe-area-bottom, 0px) + 16px));
  width: clamp(112px, 28vw, 144px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(4, 16, 28, .35);
  box-shadow: inset 0 0 28px rgba(99, 217, 255, .1), 0 5px 24px rgba(0, 0, 0, .2);
  pointer-events: auto;
  touch-action: none;
}
.touch-joystick::before {
  content: "";
  position: absolute;
  inset: 29%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}
.touch-joystick > span {
  position: absolute;
  left: 31%;
  top: 31%;
  width: 38%;
  height: 38%;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(99, 217, 255, .6);
  box-shadow: 0 0 18px rgba(99, 217, 255, .4);
  will-change: transform;
}
.touch-joystick > i {
  position: absolute;
  left: 50%;
  bottom: -20px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  transform: translateX(-50%);
}
.touch-actions {
  position: absolute;
  z-index: 2;
  right: max(16px, calc(var(--redding-preview-safe-area-right, 0px) + 10px));
  bottom: max(22px, calc(var(--redding-preview-safe-area-bottom, 0px) + 14px));
  display: grid;
  grid-template-columns: 52px 76px;
  grid-template-areas: "weapon jump" "reload fire";
  align-items: end;
  gap: 9px;
}
.touch-action,
.touch-pause {
  border: 1px solid rgba(255, 255, 255, .38);
  color: white;
  background: rgba(5, 18, 31, .58);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .24);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
}
.touch-action {
  display: grid;
  place-items: center;
  align-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
}
.touch-action b {
  font-size: 18px;
  line-height: 1;
}
.touch-action span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
}
.touch-action.fire {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, .64);
  background: color-mix(in srgb, var(--accent) 68%, rgba(5, 18, 31, .72));
}
.touch-action.fire b {
  font-size: 28px;
}
#touch-weapon {
  grid-area: weapon;
}
#touch-reload {
  grid-area: reload;
}
#touch-jump {
  grid-area: jump;
  justify-self: center;
}
#touch-fire {
  grid-area: fire;
}
.touch-action[data-active-pointer] {
  transform: scale(.93);
  filter: brightness(1.2);
}
.touch-pause {
  position: absolute;
  z-index: 3;
  top: max(18px, var(--redding-preview-safe-area-top, 0px));
  right: max(76px, calc(var(--redding-preview-safe-area-right, 0px) + 70px));
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-weight: 900;
}
@media (hover: none) and (pointer: coarse) {
  button:hover {
    transform: none;
  }
  #game-canvas {
    touch-action: none;
  }
}
@media (max-width: 720px), (max-height: 620px) {
  .app {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .topbar {
    left: 12px;
    right: 12px;
  }
  .topbar h1 {
    max-width: 65vw;
    font-size: 17px;
  }
  .overlay {
    place-items: start center;
    padding-left: 12px;
    padding-right: 12px;
  }
  .panel {
    padding: 20px;
    border-radius: 18px;
  }
  .panel h2 {
    font-size: 30px;
  }
  .mode-grid,
  .controls-grid {
    grid-template-columns: 1fr;
  }
  .mode-card {
    min-height: 78px;
  }
  .hud-card {
    width: 145px;
  }
  .health {
    left: 10px;
  }
  .ammo {
    right: 10px;
  }
  .kill-feed {
    right: 10px;
    top: 145px;
    width: min(280px, calc(100vw - 20px));
  }
  .objective {
    top: max(140px, calc(var(--redding-preview-safe-area-top, 0px) + 132px));
    bottom: auto;
    padding: 7px 10px;
  }
  .button-row {
    flex-wrap: wrap;
  }
}
@media (max-height: 500px) {
  .topbar p {
    display: none;
  }
  .topbar h1 {
    max-width: 42vw;
  }
  .hud-card {
    top: max(62px, calc(var(--redding-preview-safe-area-top, 0px) + 55px));
    width: 132px;
    padding: 7px 9px;
  }
  .hud-card strong {
    font-size: 15px;
  }
  .objective {
    top: max(64px, calc(var(--redding-preview-safe-area-top, 0px) + 57px));
    min-width: 170px;
  }
  .kill-feed {
    display: none;
  }
  .touch-joystick {
    width: 112px;
    bottom: max(18px, calc(var(--redding-preview-safe-area-bottom, 0px) + 10px));
  }
  .touch-actions {
    bottom: max(14px, calc(var(--redding-preview-safe-area-bottom, 0px) + 8px));
    grid-template-columns: 48px 68px;
    gap: 7px;
  }
  .touch-action {
    width: 48px;
    height: 48px;
  }
  .touch-action.fire {
    width: 68px;
    height: 68px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .overlay {
    padding-top: max(64px, calc(var(--redding-preview-safe-area-top, 0px) + 52px));
    padding-bottom: max(12px, var(--redding-preview-safe-area-bottom, 0px));
  }
  .panel {
    padding: 14px 18px;
  }
  .panel h2 {
    font-size: 24px;
  }
  .lead {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.4;
  }
  .notice {
    margin: 0 0 10px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mode-card {
    min-height: 60px;
    padding: 10px;
  }
  .mode-card b {
    margin-bottom: 4px;
    font-size: 16px;
  }
  .mode-card span {
    font-size: 12px;
  }
  .button-row {
    margin-top: 8px;
  }
  .record {
    margin-top: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.app[data-visual-style] {
  color: var(--vs-text);
  font-weight: var(--vs-font-weight);
  letter-spacing: var(--vs-letter-spacing);
}
.app[data-visual-style] :is(.panel, .hud-card, .objective, .icon-button, .secondary, .primary, .mode-card, .controls-grid div) {
  border-width: var(--vs-border);
  border-radius: var(--vs-radius);
  border-color: color-mix(in srgb, var(--vs-primary), transparent 45%);
}
.app[data-visual-style] :is(.panel, .hud-card, .objective, .icon-button, .secondary, .mode-card) {
  color: var(--vs-text);
  background: color-mix(in srgb, var(--vs-surface), transparent 8%);
}
.app[data-visual-style] :is(.lead, .record, .mode-card span, .hud-card span, .objective span, .objective small, .controls-grid div) {
  color: var(--vs-text-muted);
}
.app[data-visual-style] :is(.touch-help, .touch-joystick > i) {
  color: var(--vs-text-muted);
}
.app[data-visual-style] :is(.touch-action, .touch-pause, .touch-joystick) {
  border-color: color-mix(in srgb, var(--vs-primary), white 28%);
  background-color: color-mix(in srgb, var(--vs-surface), transparent 35%);
}
.app[data-visual-style] .touch-joystick > span {
  border-color: var(--vs-text);
  background: color-mix(in srgb, var(--vs-primary), transparent 28%);
}
.app[data-visual-style] .touch-action.fire {
  color: var(--vs-on-primary);
  background:
    linear-gradient(
      135deg,
      var(--vs-primary),
      var(--vs-secondary));
}
.app[data-visual-style] .primary {
  background:
    linear-gradient(
      135deg,
      var(--vs-primary),
      var(--vs-secondary));
  color: var(--vs-on-primary);
}
.app[data-visual-style] .mode-card.primary :is(b, span) {
  color: var(--vs-on-primary);
}
.app[data-visual-style] :is(.topbar p, .eyebrow, kbd) {
  color: var(--vs-text);
}
.app[data-visual-style] .overlay {
  background:
    radial-gradient(
      circle at 50% 25%,
      color-mix(in srgb, var(--vs-primary), transparent 74%),
      color-mix(in srgb, var(--vs-canvas), transparent 9%) 58%,
      var(--vs-canvas));
}
.app[data-visual-scanlines=true]::after {
  content: "";
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 3px,
      color-mix(in srgb, var(--vs-primary), transparent 72%) 4px);
}
.app[data-visual-font=tech] {
  font-family:
    "Arial Narrow",
    Inter,
    sans-serif;
}
.app[data-visual-font=pixel] {
  font-family:
    ui-monospace,
    "Cascadia Code",
    monospace;
  image-rendering: pixelated;
}
.app[data-visual-style=candy-cartoon] .panel {
  box-shadow: 0 10px 0 color-mix(in srgb, var(--vs-secondary), #000 16%);
}
.app[data-visual-style=candy-cartoon] :is(.topbar, .hud) {
  background: transparent;
}
.app[data-visual-style=candy-cartoon] :is(.hud-card, .objective) {
  background: color-mix(in srgb, var(--vs-surface), transparent 18%);
  backdrop-filter: blur(4px);
}
.app[data-visual-style=candy-cartoon] :is(.topbar h1, .hud-card, .hud-card *, .objective, .objective *) {
  text-shadow: none;
}
.app[data-visual-style=retro-pixel] :is(.panel, .hud-card, .objective, .icon-button, .secondary, .primary, .mode-card) {
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--vs-object-alt);
}
.app[data-visual-cut-corners=true] :is(.panel, .hud-card, .objective, .mode-card) {
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}
