/**
 * GoalRush 3D - style.css
 * All styles: theme colors (see :root variables), HUD, touch controls, menus and modals.
 * Fonts are loaded from ../fonts (Inter and Orbitron).
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/inter-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/orbitron-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/orbitron-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/orbitron-900.woff2') format('woff2');
}
:root {
  --primary: #19e3ff;
  --primary-2: #2f7bff;
  --gold: #ffc93c;
  --accent: #ff2d55;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #8fa0b8;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #03060e;
  color: var(--text);
  overscroll-behavior: none;
}
body.in-match {
  touch-action: none;
}
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
svg {
  display: block;
}
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}
#broadcast-vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 58%, rgba(2, 6, 18, 0.55) 100%),
    linear-gradient(
      180deg,
      rgba(2, 6, 18, 0.38) 0%,
      transparent 14%,
      transparent 86%,
      rgba(2, 6, 18, 0.48) 100%
    );
}
.letterbox-bar {
  position: fixed;
  left: 0;
  width: 100%;
  height: 0;
  background: #02050d;
  z-index: 9;
  pointer-events: none;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#letterbox-top {
  top: 0;
}
#letterbox-bottom {
  bottom: 0;
}
body.cinematic-bars #letterbox-top,
body.cinematic-bars #letterbox-bottom {
  height: 48px;
}
body.compact.cinematic-bars #letterbox-top,
body.compact.cinematic-bars #letterbox-bottom {
  height: 24px;
}

/* HUD */
#ui-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.interactive {
  pointer-events: auto;
}
#hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: calc(var(--safe-t) + 16px) calc(var(--safe-r) + 24px) 0 calc(var(--safe-l) + 24px);
}
body.in-match #hud-top {
  display: flex;
}
.scoreboard {
  display: flex;
  align-items: stretch;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 22, 42, 0.95), rgba(6, 10, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sb-comp {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseLive 1.4s infinite ease-in-out;
}
@keyframes pulseLive {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}
.sb-team {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1.2px;
}
.sb-color {
  width: 6px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.sb-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #0a0f1d, #141d33);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-shadow: 0 0 14px rgba(25, 227, 255, 0.35);
  white-space: nowrap;
}
.sb-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.04);
}
.sb-half {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(255, 201, 60, 0.12);
  padding: 3px 6px;
  border-radius: 5px;
}
.hud-top-right {
  display: flex;
  gap: 8px;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f4f7fb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--primary);
  background: rgba(25, 227, 255, 0.12);
  transform: translateY(-1px);
}
.icon-btn:active {
  transform: scale(0.95);
}
.ib-ico {
  display: flex;
}
#hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 0 calc(var(--safe-r) + 24px) calc(var(--safe-b) + 20px) calc(var(--safe-l) + 24px);
}
body.in-match #hud-bottom {
  display: flex;
}
.player-card {
  background: linear-gradient(145deg, rgba(10, 18, 36, 0.92), rgba(6, 11, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 260px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pc-name {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-role {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary), #7af3ff);
  color: #031022;
  padding: 3px 8px;
  border-radius: 6px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 9px;
}
.bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transition: width 0.08s linear;
}
#stamina-fill {
  background: linear-gradient(90deg, #10b981, #22c55e, #a3e635);
}
#power-fill {
  width: 0%;
  background: linear-gradient(90deg, #facc15, #f97316, #ef4444);
}
#radar-container {
  background: linear-gradient(160deg, rgba(9, 22, 16, 0.92), rgba(5, 13, 10, 0.96));
  border: 1.5px solid rgba(25, 227, 255, 0.35);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
}
#radar-canvas {
  display: block;
  border-radius: 8px;
}
.controls-hint {
  background: linear-gradient(145deg, rgba(10, 18, 36, 0.9), rgba(6, 11, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 4px solid var(--gold);
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.key-badge {
  display: inline-block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0 7px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 10.5px;
  margin-right: 3px;
}
#event-banner {
  position: absolute;
  top: 24%;
  left: 50%;
  width: calc(100% - 32px);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  text-align: center;
  transition: all 0.36s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 25;
}
#event-banner.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.banner-main {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(34px, 6.5vw, 82px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 22px rgba(25, 227, 255, 0.55)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.95));
  line-height: 1.1;
}
.banner-sub {
  display: inline-block;
  margin-top: 8px;
  max-width: 100%;
  background: rgba(8, 13, 26, 0.94);
  border: 1.5px solid var(--primary);
  padding: 7px 22px;
  border-radius: 40px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#kickoff-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 64px);
  transform: translate(-50%, 10px);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(255, 201, 60, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  text-align: center;
  max-width: calc(100% - 40px);
  z-index: 24;
}
#kickoff-hint.active {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse {
  50% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.55),
      0 0 32px rgba(255, 201, 60, 0.45);
  }
}
#kh-type {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
}
#kh-keys {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #dbe6f5;
}

/* TOUCH CONTROLS */
#touch-controls {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 20;
  --tb: clamp(58px, 17vmin, 74px);
}
body.touch.in-match:not(.paused) #touch-controls {
  display: block;
}
#joystick-zone {
  position: absolute;
  left: calc(var(--safe-l) + 22px);
  bottom: calc(var(--safe-b) + 22px);
  width: clamp(108px, 30vmin, 140px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 227, 255, 0.12), rgba(255, 255, 255, 0.04) 70%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 24px rgba(25, 227, 255, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  touch-action: none;
}
#joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9ff6ff, var(--primary) 45%, #0a7fa6);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(25, 227, 255, 0.45);
}
.touch-actions {
  position: absolute;
  right: calc(var(--safe-r) + 18px);
  bottom: calc(var(--safe-b) + 18px);
  display: grid;
  grid-template-columns: repeat(2, var(--tb));
  grid-template-rows: repeat(2, var(--tb));
  gap: 12px;
  pointer-events: auto;
}
.t-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  touch-action: none;
  transition: transform 0.08s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.t-btn.pressed,
.t-switch.pressed {
  transform: scale(0.9);
  filter: brightness(1.25);
}
.t-shoot {
  background: radial-gradient(circle at 35% 30%, #ff7b8f, #e11d48);
}
.t-pass {
  background: radial-gradient(circle at 35% 30%, #7cb8ff, #2563eb);
}
.t-sprint {
  background: radial-gradient(circle at 35% 30%, #6ee7a0, #16a34a);
}
.t-tackle {
  background: radial-gradient(circle at 35% 30%, #fde68a, #d97706);
}
.t-switch {
  position: absolute;
  right: calc(var(--safe-r) + 18px);
  bottom: calc(var(--safe-b) + 18px + (var(--tb) * 2) + 24px);
  width: calc(var(--tb) * 2 + 12px);
  height: 34px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: rgba(10, 16, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: auto;
  touch-action: none;
}

/* COMPACT HUD (MOBILE / SMALL SCREENS) */
body.compact #hud-top {
  padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 10px) 0 calc(var(--safe-l) + 10px);
  gap: 8px;
}
body.compact .scoreboard {
  height: 36px;
  border-radius: 10px;
}
body.compact .sb-comp {
  display: none;
}
body.compact .sb-team {
  padding: 0 8px;
  font-size: 12px;
  gap: 6px;
  letter-spacing: 0.6px;
}
body.compact .sb-color {
  width: 5px;
  height: 18px;
}
body.compact .sb-score {
  min-width: 56px;
  padding: 0 8px;
  font-size: 16px;
  letter-spacing: 1px;
}
body.compact .sb-clock {
  padding: 0 8px;
  font-size: 12px;
  gap: 5px;
}
body.compact .sb-half {
  font-size: 9px;
  padding: 2px 4px;
}
body.compact .icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}
body.compact .ib-txt {
  display: none;
}
body.compact #hud-bottom {
  top: calc(var(--safe-t) + 52px);
  bottom: auto;
  align-items: flex-start;
  padding: 0 calc(var(--safe-r) + 10px) 0 calc(var(--safe-l) + 10px);
}
body.compact .controls-hint {
  display: none;
}
body.compact .player-card {
  min-width: 0;
  width: clamp(140px, 40vw, 190px);
  padding: 8px 10px;
  border-radius: 10px;
  border-left-width: 3px;
}
body.compact .pc-header {
  margin-bottom: 6px;
  padding-bottom: 5px;
}
body.compact .pc-name {
  font-size: 10.5px;
}
body.compact .pc-role {
  font-size: 9px;
  padding: 2px 5px;
}
body.compact .bar-label {
  font-size: 8.5px;
  margin-bottom: 3px;
}
body.compact .bar-bg {
  height: 5px;
  margin-bottom: 6px;
}
body.compact #radar-container {
  padding: 4px;
  border-radius: 10px;
}
body.compact #radar-canvas {
  width: clamp(118px, 34vw, 160px);
  height: auto;
}
body.compact #event-banner {
  top: 46%;
}
body.compact .banner-main {
  font-size: clamp(26px, 7vw, 44px);
  letter-spacing: 2px;
}
body.compact .banner-sub {
  font-size: 11px;
  padding: 6px 14px;
}
body.compact.portrait #hud-top {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
body.compact.portrait .hud-top-right {
  align-self: stretch;
  justify-content: center;
}
body.compact.portrait #hud-bottom {
  top: calc(var(--safe-t) + 96px);
}
body.compact #kickoff-hint {
  top: auto;
  bottom: calc(var(--safe-b) + 20px);
  max-width: 46vw;
}
body.compact.portrait #kickoff-hint {
  bottom: calc(var(--safe-b) + (clamp(58px, 17vmin, 74px) * 2) + 84px);
  max-width: calc(100% - 40px);
}

/* MENU SCREENS */
.screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: calc(var(--safe-t) + 20px) calc(var(--safe-r) + 20px) calc(var(--safe-b) + 20px)
    calc(var(--safe-l) + 20px);
}
.screen.show {
  display: flex;
}
.btn-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(340px, 100%);
  height: 58px;
  padding: 0 28px;
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2.5px;
  color: #04101f;
  background: linear-gradient(180deg, #7ff6ff 0%, var(--primary) 45%, #0bb4e6 100%);
  box-shadow:
    0 6px 0 #0a7fa6,
    0 14px 30px rgba(25, 227, 255, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    filter 0.15s;
  flex-shrink: 0;
}
.btn-gold {
  background: linear-gradient(180deg, #ffe58a 0%, var(--gold) 45%, #f59e0b 100%);
  box-shadow:
    0 6px 0 #a35b00,
    0 14px 30px rgba(255, 170, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  color: #2a1600;
}
.btn-primary::after,
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.btn-primary:hover,
.btn-gold:hover {
  filter: brightness(1.07);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #0a7fa6,
    0 8px 18px rgba(25, 227, 255, 0.3);
}
.btn-gold:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #a35b00,
    0 8px 18px rgba(255, 170, 0, 0.3);
}
.btn-primary svg,
.btn-gold svg {
  width: 18px;
  height: 18px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 100%);
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

#screen-title {
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(3, 8, 20, 0.2), rgba(3, 6, 14, 0.9) 75%),
    linear-gradient(180deg, rgba(3, 6, 14, 0.55), transparent 30%, rgba(3, 6, 14, 0.85));
}
.title-wrap {
  margin: auto;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2.6vh, 26px);
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(255, 201, 60, 0.08);
  border: 1px solid rgba(255, 201, 60, 0.35);
}
.brand-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.logo {
  line-height: 0.92;
  transform: perspective(700px) rotateX(14deg);
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  50% {
    transform: perspective(700px) rotateX(10deg) translateY(-6px);
  }
}
.logo-word {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(46px, 12vw, 128px);
  letter-spacing: 0.02em;
}
.logo-goal {
  color: #fff;
  text-shadow:
    0 1px 0 #d6f7ff,
    0 2px 0 #a8ecff,
    0 3px 0 #74dcff,
    0 4px 0 #3ec6ff,
    0 5px 0 #1ba6f5,
    0 6px 0 #0d86d8,
    0 7px 0 #0a68b0,
    0 8px 0 #074b84,
    0 9px 0 #053661,
    0 22px 34px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(25, 227, 255, 0.35);
}
.logo-rush {
  color: var(--gold);
  margin-top: -0.04em;
  text-shadow:
    0 1px 0 #ffe08a,
    0 2px 0 #ffc23d,
    0 3px 0 #ffab1f,
    0 4px 0 #f59300,
    0 5px 0 #db7a00,
    0 6px 0 #b86200,
    0 7px 0 #924c00,
    0 8px 0 #6c3700,
    0 9px 0 #4a2500,
    0 22px 34px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 170, 0, 0.3);
}
.logo-3d {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.12em;
  margin-top: 0.18em;
  font-size: 0.3em;
  font-style: normal;
  padding: 0.12em 0.32em;
  border-radius: 0.25em;
  color: #04101f;
  background: linear-gradient(180deg, #9ff6ff, var(--primary));
  box-shadow:
    0 0.12em 0 #0a7fa6,
    0 0 20px rgba(25, 227, 255, 0.6);
  text-shadow: none;
  transform: rotate(-8deg);
}
.tagline {
  color: #c5d2e6;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.title-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}
.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.feature-row span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 22, 0.55);
}

#screen-select {
  background: linear-gradient(180deg, rgba(3, 6, 14, 0.84), rgba(3, 6, 14, 0.94));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.select-shell {
  margin: auto;
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sel-header {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 10px;
}
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
}
.btn-back svg {
  width: 16px;
  height: 16px;
}
.btn-back:hover {
  border-color: var(--primary);
}
.sel-title {
  text-align: center;
}
.sel-title small {
  display: block;
  color: var(--primary);
  font-size: 10.5px;
  letter-spacing: 3px;
  font-weight: 800;
  margin-bottom: 2px;
}
.sel-title h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
}
.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.club-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.94), rgba(8, 13, 26, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.club-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 55% at 50% 0%, var(--tc, #19e3ff), transparent 70%);
  opacity: 0.28;
}
.club-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--tc);
  box-shadow: 0 0 18px var(--tc);
}
.cc-side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--muted);
}
.cc-side b {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}
.cc-stage {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin: 8px 0 4px;
}
.cc-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-arrow:hover {
  border-color: var(--primary);
  background: rgba(25, 227, 255, 0.12);
}
.cc-arrow svg {
  width: 18px;
  height: 18px;
}
.crest-wrap {
  perspective: 600px;
  display: flex;
  justify-content: center;
  height: clamp(110px, 18vh, 150px);
}
.crest {
  height: 100%;
  width: auto;
  transform-style: preserve-3d;
  animation:
    crestPop 0.35s ease-out,
    crestTurn 5s ease-in-out 0.35s infinite;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.6));
}
@keyframes crestTurn {
  0%,
  100% {
    transform: rotateY(-22deg);
  }
  50% {
    transform: rotateY(22deg) translateY(-4px);
  }
}
@keyframes crestPop {
  from {
    transform: scale(0.6) rotateY(90deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotateY(-22deg);
    opacity: 1;
  }
}
.cc-name {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 1.5px;
  margin-top: 6px;
}
.cc-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 12px;
}
.ovr {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #04101f;
  background: linear-gradient(180deg, #ffe58a, var(--gold));
  padding: 3px 9px;
  border-radius: 7px;
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
}
.stars .off {
  color: rgba(255, 255, 255, 0.18);
}
.kit {
  display: flex;
  gap: 4px;
}
.kit i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.stat {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px;
}
.stat .track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stat .track span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tc), #fff);
  transition: width 0.4s;
}
.stat b {
  color: #fff;
  text-align: right;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}
.dots i.on {
  width: 18px;
  background: var(--tc);
}
.vs-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: #2a1600;
  background: linear-gradient(180deg, #ffe58a, var(--gold) 50%, #f59e0b);
  box-shadow:
    0 5px 0 #a35b00,
    0 0 30px rgba(255, 170, 0, 0.45);
}
.settings-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.seg-label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 7px;
}
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}
.seg button {
  flex: 1;
  min-width: 0;
  height: 34px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg button.on {
  color: #04101f;
  background: linear-gradient(180deg, #9ff6ff, var(--primary));
  box-shadow: 0 3px 10px rgba(25, 227, 255, 0.35);
}
.sel-footer {
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}
@media (max-width: 760px) {
  .matchup {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vs-badge {
    margin: 0 auto;
    width: 46px;
    height: 46px;
    font-size: 15px;
  }
  .settings-panel {
    grid-template-columns: 1fr;
  }
  .sel-header {
    grid-template-columns: 72px 1fr 72px;
  }
  .crest-wrap {
    height: 92px;
  }
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 20px;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  touch-action: pan-y;
}
.modal.show {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 540px;
  margin: auto;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.96), rgba(8, 13, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--primary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.modal-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 5vw, 34px);
  letter-spacing: 2px;
}
.modal-card .sub {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
}
.stats-grid {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-row.head {
  background: rgba(25, 227, 255, 0.08);
  font-size: 11px;
  letter-spacing: 1px;
}
.stat-label {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 1.2px;
}
.howto {
  width: 100%;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #cbd5e1;
}
.howto div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}
.howto b {
  color: #fff;
  text-align: right;
}
