/* Turret Road ExtraLight — self-hosted (OFL), see /fonts/OFL.txt */
@font-face {
  font-family: 'Turret Road';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src:
    url('/fonts/TurretRoad-ExtraLight-latin-ext.woff2') format('woff2'),
    url('/fonts/TurretRoad-ExtraLight.ttf') format('truetype');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Turret Road';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src:
    url('/fonts/TurretRoad-ExtraLight-latin.woff2') format('woff2'),
    url('/fonts/TurretRoad-ExtraLight.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --neon: #5ce1ff;
  --text: #e8f0ff;
  --muted: #8a97b0;
  --line: rgba(92, 225, 255, 0.35);
  --danger: #ff5c7a;
  --title-red: #ff2a2a;
  --font: 'Turret Road', sans-serif;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  font-weight: 200;
  background: #03050a;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  overscroll-behavior: none;
}

#space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#app {
  position: relative;
  z-index: 1;
}

a {
  color: var(--neon);
}

.hidden {
  display: none !important;
}

.view {
  min-height: 100dvh;
  padding: 1.5rem;
}

.view-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.home-center {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  font-family: var(--font);
  font-weight: 200;
  letter-spacing: 0.12em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
  color: var(--title-red);
  animation: brandIn 0.8s ease-out;
}

.brand.title-hero {
  display: block;
  width: fit-content;
  max-width: 92vw;
  margin: 0 auto 2.75rem;
  font-size: clamp(2.8rem, 12vw, 11rem);
  color: var(--title-red);
  letter-spacing: 0.04em;
  /* Match trailing letter-spacing so the word sits optically centered */
  padding-left: 0.04em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  transform: none;
}

.brand.small {
  font-size: 1.6rem;
}

.brand.tiny {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.hud-brand {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.1em;
  color: var(--title-red);
  text-decoration: none;
  line-height: 1;
  opacity: 1;
}

.hud-brand:hover {
  color: #ff4d4d;
}

.title-red {
  color: var(--title-red);
}

.home-tagline {
  display: none;
}

.lobby-subhead {
  margin: 1.35rem 0 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(232, 240, 255, 0.28);
  font-family: var(--font);
  font-weight: 200;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.code-join-form {
  margin: 0.35rem 0 0;
  text-align: left;
  gap: 0.55rem;
}

.code-join-form input {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
}

.lobby-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lobby-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lobby-table th,
.lobby-table td {
  padding: 0.45rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}

.lobby-table th {
  color: var(--muted);
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-table .lobby-join-cell {
  text-align: right;
  white-space: nowrap;
}

.lobby-empty {
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tutorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.85rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(3, 5, 10, 0.72);
  pointer-events: all;
}

.tutorial-card {
  width: min(26rem, 100%);
  max-height: min(88dvh, 36rem);
  overflow: auto;
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid rgba(232, 240, 255, 0.22);
  background: rgba(8, 12, 22, 0.92);
  text-align: left;
}

.tutorial-kicker {
  margin: 0 0 0.35rem;
  color: var(--title-red);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tutorial-title {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: 0.08em;
  color: var(--text);
}

.tutorial-body {
  margin: 0;
  line-height: 1.45;
  font-size: 0.98rem;
  color: var(--text);
}

.tutorial-emphasis {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid var(--title-red);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.tutorial-progress {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: right;
}

@media (max-width: 1024px) {
  .tutorial-overlay {
    align-items: flex-end;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .tutorial-card {
    width: 100%;
    max-height: 48dvh;
  }

  .tutorial-actions {
    justify-content: stretch;
  }

  .tutorial-actions .btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }
}

.home-layout {
  display: grid;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
  text-align: left;
}

.home-col {
  min-width: 0;
}

.lobby-status {
  margin: -0.4rem 0 0.85rem;
  font-size: 0.85rem;
}

@media (min-width: 840px) {
  .home-layout {
    grid-template-columns: minmax(13rem, 1fr) minmax(22rem, 1.45fr) minmax(13rem, 1fr);
    gap: 1.35rem;
    align-items: start;
  }

  .home-col.lobby-panel {
    min-height: 100%;
  }
}

.home-col .tip {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.home-col .home-action {
  margin-top: 10px;
}

.join-center {
  max-width: 22rem;
  gap: 1rem;
}

.setup-center {
  max-width: 24rem;
}

.setup-title {
  font-family: var(--font);
  font-weight: 200;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.slider-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.planet-slider {
  width: 100%;
}

.join-form {
  width: 100%;
  text-align: left;
  margin: 0.5rem 0 1rem;
}

.join-code {
  margin: 0.35rem 0 0;
  letter-spacing: 0.08em;
}

.join-code strong {
  color: var(--text);
}

/* Nested stacks stay chrome-free; home tiles get their own frame below */
.stack {
  background: transparent;
  border: none;
  box-shadow: none;
  animation: fadeUp 0.7s ease-out;
}

.home-col.stack {
  padding: 1.35rem 1.45rem 1.5rem;
  border: 1px solid rgba(232, 240, 255, 0.28);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 839px) {
  .home-col.stack {
    padding: 1.2rem 1.15rem 1.35rem;
  }
}

.stack h2 {
  font-family: var(--font);
  font-weight: 200;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-weight: 200;
}

label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.name-edit {
  margin-bottom: 0.85rem;
}

/* Rounded fields only for real inputs/buttons (menu + game) */
input[type='text'],
input[type='number'] {
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 200;
}

input[type='text']:focus,
input[type='number']:focus {
  outline: none;
  border-color: var(--neon);
}

.btn {
  font-family: var(--font);
  font-weight: 200;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.55);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: none;
}

.btn:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn.primary {
  color: var(--neon);
  width: auto;
  min-width: 10rem;
}

.btn.ghost {
  font-size: 0.85rem;
  background: rgba(8, 12, 22, 0.4);
}

.btn.fire {
  width: auto;
  margin-top: 0.35rem;
  padding: 0.6rem 1rem;
  color: var(--danger);
  border-color: rgba(255, 92, 122, 0.45);
  text-align: right;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  align-self: flex-end;
}

.btn.touch {
  min-width: 2.4rem;
  min-height: 2.4rem;
  font-size: 1.1rem;
  opacity: 0.9;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(232, 240, 255, 0.35);
  border-radius: 2px;
  color: var(--text);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn.touch:hover {
  border-color: rgba(232, 240, 255, 0.7);
  color: var(--text);
}

.btn.touch:active {
  border-color: var(--neon);
  color: var(--neon);
}

.touch-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  pointer-events: none;
}

/* Digit / nudge pad: mobile & tablet only (keyboard on desktop) */
.touch-row {
  display: none;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font);
  font-weight: 200;
  letter-spacing: 0.06em;
}

.waiting-panel {
  max-width: 32rem;
  margin: 2rem auto;
}

.wait-players {
  list-style: none;
  padding: 0;
}

.wait-players li {
  padding: 0.4rem 0;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.legal {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Game: full-bleed canvas, HUD floats on space */
.game-view {
  padding: 0;
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.hud {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 46vw);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem 1.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow-y: auto;
  overflow-x: visible;
  z-index: 2;
  text-align: right;
  align-items: stretch;
  pointer-events: none;
}

.hud * {
  pointer-events: auto;
}

.hud-top-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
}

.hud-bottom-panel {
  margin-top: auto;
  width: 100%;
}

.hud-back {
  display: none;
  color: var(--title-red);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
}

.hud-top {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-end;
}

.timer {
  font-family: var(--font);
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.scoreboard {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.score-row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.85rem;
  width: 100%;
}

.score-name {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.score-pts {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1;
  min-width: 3.5ch;
  text-align: right;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  width: 100%;
}

.control-block {
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.angle-display {
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: 0;
  padding: 0;
  background: transparent;
  border: none;
  text-align: right;
  user-select: none;
  line-height: 1.1;
  width: 100%;
  white-space: nowrap;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}

.angle-display .digit-cell {
  display: inline-flex;
  /* Fixed slot width so Turret Road glyphs stay monospaced in layout */
  width: 0.72em;
  min-width: 0.72em;
  max-width: 0.72em;
  justify-content: center;
  align-items: center;
  flex: 0 0 0.72em;
  box-sizing: content-box;
  padding: 0;
}

.angle-display .digit-cell.selected {
  background: rgba(92, 225, 255, 0.22);
  border-radius: 2px;
}

.angle-display .digit-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 200;
  text-align: center;
  pointer-events: none;
  caret-color: transparent;
}

.angle-display .sep,
.angle-display .unit {
  opacity: 0.5;
  display: inline-flex;
  width: 0.45em;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 200;
}

.value-row {
  width: 100%;
  text-align: right;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--neon);
  background: transparent;
}

input[type='range'].power-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  max-width: 11rem;
  margin: 0;
}

input[type='range'].power-slider::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
}

input[type='range'].power-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

input[type='range'].power-slider::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
}

input[type='range'].power-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.energy-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  width: 100%;
}

.energy-bar {
  height: 0.35rem;
  flex: 1;
  max-width: 9rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 999px;
  overflow: hidden;
}

#energy-fill {
  height: 100%;
  width: 10%;
  background: var(--neon);
  transition: width 0.1s linear;
}

#energy-text {
  min-width: 2ch;
  text-align: right;
}

.kill-feed {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  width: 100%;
}

.board-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: fadeUp 0.35s ease-out;
  text-align: center;
}

.board-overlay ol {
  font-family: var(--font);
  font-weight: 200;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: right;
}

.board-countdown {
  margin-top: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--text);
}

.board-countdown strong {
  color: var(--neon);
  font-weight: 200;
}

.rotate-hint {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.94);
  text-align: center;
  padding: 2rem;
  pointer-events: all;
}

.rotate-hint p {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--text);
}

/*
 * Mobile / tablet game layout only — desktop HUD stays on the right.
 * Portrait chrome: timer+scores above the field, controls below.
 */
@media (max-width: 1024px) {
  .game-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'top'
      'field'
      'bottom';
    height: 100dvh;
    height: 100svh;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    box-sizing: border-box;
    touch-action: manipulation;
  }

  /* Full-bleed canvas so trails outside the field stay visible under HUD chrome */
  #game-canvas {
    grid-area: 1 / 1 / -1 / -1;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    touch-action: none;
  }

  .hud {
    position: static;
    width: auto;
    height: auto;
    inset: auto;
    display: contents;
    overflow: visible;
    padding: 0;
    text-align: center;
  }

  .hud-top-panel {
    grid-area: top;
    position: relative;
    z-index: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.45rem 0.75rem 0.35rem;
    width: 100%;
    pointer-events: auto;
    background: linear-gradient(to bottom, rgba(3, 5, 10, 0.55), rgba(3, 5, 10, 0));
  }

  .hud-bottom-panel {
    grid-area: bottom;
    position: relative;
    z-index: 2;
    margin-top: 0;
    width: 100%;
    padding: 0.35rem 0.75rem 0.55rem;
    pointer-events: auto;
    background: linear-gradient(to top, rgba(3, 5, 10, 0.55), rgba(3, 5, 10, 0));
  }

  .hud-brand {
    display: none;
  }

  .hud-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hud-top {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .timer {
    font-size: 1.15rem;
  }

  .scoreboard {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.45rem 0.9rem;
    flex: 1;
    min-width: 0;
  }

  .score-row {
    width: auto;
    gap: 0.4rem;
  }

  .score-name {
    font-size: 0.8rem;
  }

  .score-pts {
    font-size: 1.25rem;
    min-width: 2ch;
  }

  .controls {
    align-items: stretch;
    gap: 0.55rem;
  }

  .angle-block {
    align-items: center;
  }

  .angle-display {
    justify-content: center;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .touch-row {
    display: flex;
    justify-content: center;
  }

  .touch-row .btn.touch {
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0.4rem;
  }

  .touch-row .touch-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .control-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 0.75rem;
  }

  .velocity-block {
    flex: 1 1 8rem;
    min-width: 7rem;
    align-items: stretch;
  }

  .velocity-block .value-row {
    text-align: left;
    font-size: 0.95rem;
  }

  input[type='range'].power-slider {
    max-width: none;
    width: 100%;
    height: 28px;
  }

  input[type='range'].power-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -7.5px;
  }

  input[type='range'].power-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }

  .energy-block {
    flex: 1 1 6rem;
    min-width: 5.5rem;
    justify-content: flex-start;
  }

  .energy-bar {
    max-width: none;
  }

  .btn.fire {
    margin-top: 0;
    flex: 0 0 auto;
    min-width: 5.5rem;
    min-height: 3rem;
    padding: 0.65rem 1.1rem;
    text-align: center;
    font-size: 1.1rem;
  }

  .kill-feed {
    text-align: center;
    min-height: 1em;
    font-size: 0.75rem;
  }

  .board-overlay {
    grid-area: 1 / 1 / -1 / -1;
  }

  .rotate-hint {
    grid-area: 1 / 1 / -1 / -1;
  }
}

/* Force portrait: block landscape play on phones/tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .game-view .rotate-hint {
    display: flex;
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
