/**
 * 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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 'Hebrew UI', '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: 12px;
}
.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: 32px;
  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 h2 {
  margin: 0;
  line-height: 1.15;
  font-family: 'Hebrew UI', '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;
}
body:not([data-mode="duel"]) #card-home .cc-side b {
  background: #5be49b;
  color: #062b1b;
  letter-spacing: normal;
  font-size: 12px;
}
.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: 'Hebrew UI', '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: 'Hebrew UI', '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 {
  touch-action: manipulation;
  user-select: none;
  border: 0;
  padding: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hebrew UI', '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 {
  text-align: center;
  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: 'Hebrew UI', '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;
}
.screen,.modal,.controls-hint,#event-banner,#kickoff-hint,.pc-header{direction:rtl}
.cc-stage,.stat,.stat-row,.scoreboard,.sb-score,.ld-bar,#modal-subtitle{direction:ltr}
body :is(button,span,small,h2,.cc-name,.seg-label,.banner-main,.banner-sub,.howto,.vs-badge,.t-btn,.t-switch){letter-spacing:normal}
@font-face{font-family:'Hebrew UI';src:url('../fonts/hebrew-bold.woff') format('woff');font-weight:600 900;font-display:swap;unicode-range:U+0590-05FF}
@font-face{font-family:'Hebrew UI';src:url('../fonts/hebrew-regular.woff') format('woff');font-weight:100 599;font-display:swap;unicode-range:U+0590-05FF}
.title-art{margin:0;line-height:0}
.title-art img{display:block;width:min(84vw,75vh,550px);height:auto;border-radius:5%}
#btn-play svg{order:1;transform:scaleX(-1)}
.crest text,button,.howto{font-family:'Hebrew UI',Arial,sans-serif}
[hidden]{display:none!important}
#btn-cup,#btn-duel{width:min(340px,100%);font-size:17px;padding:12px}

#btn-howto{padding:6px 18px}
.title-art img{max-height:42vh;object-fit:contain;width:auto;max-width:84vw}
#duel-guide,.duel-hint{display:none}
[data-mode=duel] #duel-guide,[data-mode=duel].in-match .duel-hint{display:block;direction:rtl;text-align:center;font-size:clamp(11px,1.3vw,14px);line-height:1.65;background:#101e30db;color:white;border-radius:10px;padding:6px 12px}
[data-mode=duel] .controls-hint,[data-mode=duel] .settings-panel>div:nth-child(2),[data-mode=cup] #card-away,[data-mode=cup] .vs-badge{display:none}
[data-mode=duel] .settings-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-mode=cup] .matchup{display:flex;justify-content:center}
[data-mode=cup] #card-home{width:min(340px,100%)}
.cup-shell{margin:auto;width:min(900px,100%);text-align:center;background:#0d192cf5;border:1px solid #375574;border-radius:20px;padding:clamp(12px,3vw,30px)}
.cup-shell h2{color:#ffda67;margin:0 0 12px}
#bracket{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,3vw,32px)}
.br-round h3{font-size:clamp(13px,2vw,20px);margin:4px}
.br-round>div{height:clamp(210px,44vh,325px);display:flex;flex-direction:column;justify-content:space-around}
.br-game{position:relative;background:#182c42;border:1px solid #496480;border-radius:6px}
.br-round:not(:last-child) .br-game::after{content:'';position:absolute;right:100%;top:50%;width:clamp(4px,1.5vw,16px);border-top:2px solid #537390}
.br-round:not(:last-child) .br-game:nth-child(odd)::before{content:'';position:absolute;right:calc(100% + clamp(4px,1.5vw,16px));top:50%;height:calc(clamp(210px,44vh,325px)/4);border-left:2px solid #537390}
.br-round:nth-child(2) .br-game:nth-child(odd)::before{height:calc(clamp(210px,44vh,325px)/2)}
.br-round:not(:first-child) .br-game{box-shadow:4px 0 #577693}
.br-team{display:flex;align-items:center;gap:5px;padding:4px 6px;font-size:clamp(10px,1.5vw,16px);text-align:right}
.br-team i{width:7px;height:12px;border-radius:2px;flex:none}
.br-team b{margin-inline-start:auto}.br-team.mine{color:#8ceaff}.br-team.won{font-weight:bold;background:#345242}
#cup-status{margin:12px}.cup-shell .btn-ghost{margin:6px}
.duel-keys{border-collapse:collapse;margin:auto;text-align:center;font-size:clamp(10px,1.15vw,14px);line-height:1.25}
.duel-keys :is(th,td){padding:4px clamp(3px,.65vw,10px);white-space:nowrap;border-inline-start:1px solid #ffffff24}
.duel-keys tr>:first-child{border-inline-start:0}
.duel-keys thead{color:#c4d4e6;border-bottom:1px solid #ffffff38}
.duel-keys tbody tr+tr{border-top:1px solid #ffffff21}
.duel-keys tbody th{color:#78e4ff}.duel-keys tbody tr+tr th{color:#ffc176}
.duel-keys kbd{display:inline-block;direction:ltr;unicode-bidi:isolate;font:700 1em/1.25 monospace;color:white;background:#33455b;border-radius:3px;padding:1px 4px}
.duel-hint{max-width:100%;min-width:0;overflow-x:auto}
@media(max-width:650px){[data-mode=duel] #duel-guide,[data-mode=duel].in-match .duel-hint{padding:3px}.duel-keys :is(th,td){padding:3px 2px}}
#btn-duel {
  color:#fff;
  background:linear-gradient(180deg,#ad83ff 0%,#8050d8 38%,#6534b6 100%);
  box-shadow:0 6px 0 #422578,0 14px 30px #9559ef44,inset 0 2px 0 #eadcffb3;
}
#btn-duel:active {box-shadow:0 2px 0 #422578,inset 0 1px 0 #eadcff80}
#btn-duel svg {width:24px;height:24px;color:#fff}

body.in-match #hud-bottom.foldable-hud{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end}
.foldable-hud .hud-slot{position:relative;min-width:0;max-width:100%}
.foldable-hud .slot-player{justify-self:start}
.foldable-hud .slot-map{justify-self:center}
.foldable-hud .slot-keys{justify-self:end}
.foldable-hud #radar-container{padding:2px;border-radius:9px}
#hud-bottom.foldable-hud #radar-canvas{width:clamp(128px,13vw,166px);height:auto;border-radius:5px}
.hud-fold{position:absolute;bottom:1px;left:1px;z-index:1;width:15px;height:15px;padding:0;border:1px solid #8397a8;border-radius:5px;background:#132334d9;color:white;font:700 12px/1 Arial;pointer-events:auto;cursor:pointer}
.hud-fold[aria-expanded=false]{position:static;display:block}
.hud-fold:hover,.hud-fold:focus-visible{background:#284963}
body.compact:not([data-mode=duel]) .foldable-hud .slot-keys{visibility:hidden}
.foldable-hud .controls-hint{padding-block:6px}
.foldable-hud{--keys-height:96px}
.foldable-hud .player-card{height:var(--keys-height);display:grid;grid-template-rows:auto auto 5px auto 5px;align-content:space-between;padding-block:5px}
.foldable-hud .pc-header{margin:0;padding-bottom:1px}
.foldable-hud .bar-label,.foldable-hud .bar-bg{margin:0}
.foldable-hud .bar-bg{height:5px}
.foldable-hud #radar-container{height:var(--keys-height)}
#hud-bottom.foldable-hud #radar-canvas{height:100%;width:auto}

body:not(.compact):not([data-mode=duel]) .foldable-hud .controls-hint {
  height:var(--keys-height); display:grid; grid-template-columns:auto auto;
  align-content:space-evenly; column-gap:16px; white-space:nowrap;
}
#screen-champion{overflow:auto;background:radial-gradient(ellipse at 50% 75%,#245a46,#102438 55%,#070f20);isolation:isolate}
.champ-stage{position:relative;text-align:center;width:min(92vw,740px);margin:auto;padding:20px 0;color:white}
.champ-stage h2{margin:0;color:#ffdf79;font-size:clamp(30px,6vw,64px);text-shadow:0 3px 0 #855419,0 0 32px #ffc84955}
#champ-club{font-size:clamp(20px,3vw,30px);margin:6px}
#champ-lineup{direction:ltr;display:flex;align-items:flex-end;justify-content:center;gap:2%;padding:26px 2% 12px;margin:12px 0 25px;border-bottom:7px solid #bb9450;background:linear-gradient(0deg,#f6ce6933,transparent 32%);border-radius:50% / 8%}
.champ-trophy{font-size:clamp(54px,12vw,118px);line-height:1.15;filter:drop-shadow(0 0 14px #f8c65080)}
.champ-player{width:10%;aspect-ratio:34/58;position:relative;animation:champ-jump .82s ease-in-out infinite alternate;animation-delay:var(--delay)}
.champ-player i{position:absolute;display:block;box-shadow:inset -3px 0 #0003}
.champ-head{width:47%;height:27%;left:26%;top:0;background:var(--skin);border-top:5px solid #34281f}
.champ-head:after{content:"";position:absolute;top:38%;left:20%;width:13%;height:16%;background:#292423;box-shadow:.57em 0 #292423;font-size:clamp(9px,1.4vw,16px)}
.champ-body{inset:27% 16% 36%;background:var(--shirt);border-top:4px solid var(--trim);font:bold clamp(9px,1.7vw,18px)/1.5 Arial;color:var(--trim)}
.champ-body:before,.champ-body:after{content:"";position:absolute;width:30%;height:85%;bottom:45%;background:linear-gradient(var(--skin) 55%,var(--shirt) 55%)}
.champ-body:before{right:100%;transform:rotate(-22deg)}.champ-body:after{left:100%;transform:rotate(22deg)}
.champ-legs{inset:64% 19% 0;background:linear-gradient(var(--shorts) 40%,var(--socks) 40% 82%,#151b23 82%);clip-path:polygon(0 0,100% 0,100% 100%,59% 100%,59% 35%,41% 35%,41% 100%,0 100%)}
.champ-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.champ-confetti i{position:absolute;top:-15px;width:7px;height:13px;animation:champ-fall linear infinite}
@keyframes champ-jump{to{transform:translateY(-17%)}}
@keyframes champ-fall{to{transform:translate(30px,105vh) rotate(530deg)}}
@media(prefers-reduced-motion:reduce){.champ-player,.champ-confetti i{animation:none}.champ-confetti i{top:var(--rest)}}

#cup-status.cup-winner {
  width:fit-content;max-width:100%;margin:16px auto 10px;padding:8px 20px;
  background:linear-gradient(115deg,#543712,#362a16);color:#ffe393;
  border:1px solid #cf9d3d;border-radius:12px;font-weight:900;font-size:clamp(18px,3vw,28px);
}
.cup-shell:has(.cup-winner) h2 {font-size:clamp(28px,5vw,48px);line-height:1.12}
.key-settings-btn,#keys-dialog button,#key-profile{font:inherit;font-weight:700;color:#f3f8ff;background:#182c40;border:1px solid #496078;border-radius:9px;padding:7px 12px;cursor:pointer}
#title-keys{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:2}
[data-mode=duel] #duel-guide{display:flex;direction:rtl;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
#keys-dialog{width:min(420px,92vw);max-height:88vh;overflow:auto;color:white;background:#101d30;border:1px solid #496078;border-radius:16px;padding:20px;font-family:'Hebrew UI',Arial,sans-serif;pointer-events:auto;margin:auto}
#keys-dialog::backdrop{background:#020916c9}
#keys-dialog header,#key-rows button{display:flex;align-items:center;justify-content:space-between;gap:8px}
#keys-dialog h2{margin:0}#key-profile{width:100%;margin-top:14px}#key-rows{display:grid;gap:4px}#key-rows bdi{color:#85eaff}#keys-dialog p{font-size:14px}#key-message{color:#ffe08d;min-height:1.3em}#keys-dialog button:focus-visible{outline:2px solid #85eaff}

.original-sticker {
  position: fixed;
  right: calc(var(--safe-r) + 5px);
  bottom: calc(var(--safe-b) + 2px);
  z-index: 1000;
  display: block;
}
.original-sticker img {
  display: block;
  width: auto;
  max-width: 170px;
  height: 48px;
  object-fit: contain;
}
body.touch .original-sticker img {
  height: 30px;
}
