/* ==========================================================================
   OVERWATCH 2 : WEB PROTOCOL - STYLESHEET
   - Authentic OW2 Futuristic Slanted Visual System
   - Slanted Panels & Segmented Health Bar with Lagging Trailing Bar
   - Dynamic Radial Ultimate Meter with Wing Flares
   - Crosshair Hitmarkers (Body White, Crit Red, Final Blow Skull)
   - Real-time Sliding Killfeed & Flame Elimination Banner
   ========================================================================== */

:root {
  --ow-orange: #f06414;
  --ow-orange-glow: rgba(240, 100, 20, 0.6);
  --ow-blue-shield: #00c3ff;
  --ow-armor-orange: #ff9800;
  --ow-white: #ffffff;
  --ow-health: #ffffff;
  --ow-trail: #ffb703;
  --ow-dark-bg: rgba(15, 17, 22, 0.85);
  --ow-dark-solid: #0d0f14;
  --ow-border: rgba(255, 255, 255, 0.25);
  --ow-crit-red: #ff2244;
  --ow-ult-cyan: #00f0ff;
  --ow-ult-glow: rgba(0, 240, 255, 0.7);

  --font-ow-header: 'Rajdhani', 'Pretendard', sans-serif;
  --font-ow-number: 'Orbitron', 'JetBrains Mono', monospace;
  --font-body: 'Pretendard', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050608;
  color: var(--ow-white);
  font-family: var(--font-ow-header);
}

#game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ==========================================================================
   VFX & SCREEN OVERLAYS
   ========================================================================== */
.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 65%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

.damage-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 40%, rgba(255, 20, 50, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.15s ease-out;
  z-index: 3;
}
.damage-vignette.active {
  opacity: 1;
}

.recall-warp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(0, 100, 255, 0.7) 100%);
  mix-blend-mode: screen;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 4;
}
.recall-warp.active {
  opacity: 1;
}

.dragonblade-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 255, 128, 0.45);
  border: 4px solid rgba(0, 255, 128, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}
.dragonblade-aura.active {
  opacity: 1;
  animation: dragonPulse 1.2s infinite alternate;
}

@keyframes dragonPulse {
  0% { box-shadow: inset 0 0 70px rgba(0, 255, 128, 0.35); }
  100% { box-shadow: inset 0 0 130px rgba(0, 255, 128, 0.7); }
}

.ult-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: #ffffff;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.3s ease-out;
}
.ult-flash.flash {
  opacity: 0.85;
}

/* ==========================================================================
   HUD CONTAINER
   ========================================================================== */
.hud-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
}

/* ==========================================================================
   TOP CENTER: OBJECTIVE BAR
   ========================================================================== */
.top-objective-bar {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ow-dark-bg);
  border: 1px solid var(--ow-border);
  padding: 8px 20px;
  border-radius: 4px;
  transform: skewX(-12deg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.objective-diamond {
  width: 32px;
  height: 32px;
  background: var(--ow-orange);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--ow-orange-glow);
}

.obj-icon {
  transform: rotate(-45deg);
  font-family: var(--font-ow-number);
  font-weight: 900;
  color: #fff;
  font-size: 16px;
}

.objective-info {
  transform: skewX(12deg);
}

.objective-title {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #d1d5db;
}

.objective-sub {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #9ca3af;
  font-family: var(--font-ow-number);
}

.hud-highlight {
  color: var(--ow-orange);
  font-weight: 800;
}

/* ==========================================================================
   TOP RIGHT: REAL-TIME KILLFEED
   ========================================================================== */
.killfeed-container {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  pointer-events: none;
}

.killfeed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 12, 16, 0.85);
  border-left: 3px solid var(--ow-orange);
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  transform: skewX(-12deg);
  animation: killfeedSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.killfeed-item span {
  transform: skewX(12deg);
}

.killfeed-killer {
  color: #60a5fa;
}

.killfeed-icon {
  font-size: 13px;
  color: #f3f4f6;
}

.killfeed-headshot {
  color: var(--ow-crit-red);
  font-size: 15px;
}

.killfeed-victim {
  color: #f87171;
}

@keyframes killfeedSlide {
  from { opacity: 0; transform: translateX(50px) skewX(-12deg); }
  to { opacity: 1; transform: translateX(0) skewX(-12deg); }
}

/* ==========================================================================
   CENTER: CROSSHAIR & HITMARKERS
   ========================================================================== */
.crosshair-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.crosshair {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.08s ease;
}

.cross-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #00ff88;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 4px #00ff88;
}

.cross-line {
  position: absolute;
  background: #00ff88;
}
.cross-line.top { top: 0; left: 50%; width: 2px; height: 6px; transform: translateX(-50%); }
.cross-line.bottom { bottom: 0; left: 50%; width: 2px; height: 6px; transform: translateX(-50%); }
.cross-line.left { left: 0; top: 50%; width: 6px; height: 2px; transform: translateY(-50%); }
.cross-line.right { right: 0; top: 50%; width: 6px; height: 2px; transform: translateY(-50%); }

/* Dynamic Hitmarkers */
.hitmarker-box {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  animation: hitmarkerPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hit-slash {
  position: absolute;
  width: 8px;
  height: 2px;
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.slash-tl { top: 3px; left: 3px; transform: rotate(45deg); }
.slash-tr { top: 3px; right: 3px; transform: rotate(-45deg); }
.slash-bl { bottom: 3px; left: 3px; transform: rotate(-45deg); }
.slash-br { bottom: 3px; right: 3px; transform: rotate(45deg); }

/* Crit (Headshot) Red Hitmarker */
.hitmarker-box.crit .hit-slash {
  background-color: var(--ow-crit-red);
  box-shadow: 0 0 10px var(--ow-crit-red);
  height: 3px;
  width: 10px;
}

.skull-marker {
  position: absolute;
  font-size: 24px;
  color: var(--ow-crit-red);
  text-shadow: 0 0 12px var(--ow-crit-red);
  animation: skullPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hitmarkerPop {
  0% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1.0); opacity: 0; }
}

@keyframes skullPop {
  0% { transform: scale(1.8); opacity: 1; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   MID-CENTER: ELIMINATION FIRE BANNER
   ========================================================================== */
.elimination-banner {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(-12deg);
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(240, 100, 20, 0.9) 0%, rgba(20, 24, 32, 0.85) 100%);
  border-left: 4px solid #fff;
  padding: 10px 24px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(240, 100, 20, 0.4);
  animation: bannerSlide 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.elim-skull {
  font-size: 26px;
  color: #fff;
  transform: skewX(12deg);
}

.elim-text-box {
  display: flex;
  flex-direction: column;
  transform: skewX(12deg);
}

.elim-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fed7aa;
}

.elim-victim {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.elim-fire-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ow-number);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  transform: skewX(12deg);
  text-shadow: 0 0 10px var(--ow-orange);
}

@keyframes bannerSlide {
  0% { opacity: 0; transform: translate(-50%, -30%) skewX(-12deg) scale(0.9); }
  15% { opacity: 1; transform: translate(-50%, -50%) skewX(-12deg) scale(1.05); }
  25% { transform: translate(-50%, -50%) skewX(-12deg) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) skewX(-12deg); }
}

/* ==========================================================================
   BOTTOM LEFT: HERO IDENTITY & HEALTH BAR
   ========================================================================== */
.bottom-left-hud {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  transform: skewX(-12deg);
}

.hero-portrait-frame {
  position: relative;
  width: 84px;
  height: 84px;
  background: var(--ow-dark-solid);
  border: 2px solid var(--ow-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.hero-portrait {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: skewX(12deg) scale(1.15);
}

.portrait-tracer {
  background-color: #ff9f1c;
  background-image: radial-gradient(circle at 50% 40%, #ffe49e 0%, #d97706 70%);
}
.portrait-genji {
  background-color: #10b981;
  background-image: radial-gradient(circle at 50% 40%, #a7f3d0 0%, #059669 70%);
}
.portrait-reinhardt {
  background-color: #64748b;
  background-image: radial-gradient(circle at 50% 40%, #cbd5e1 0%, #475569 70%);
}

.hero-level-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-family: var(--font-ow-number);
  font-weight: 800;
  color: #fbbf24;
  padding: 2px 0;
  transform: skewX(12deg);
}

.hero-status-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-header-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-role-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ow-orange);
  background: rgba(240, 100, 20, 0.2);
  padding: 2px 6px;
  border-radius: 2px;
}

.hp-numeric-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-ow-number);
  font-weight: 900;
}

.hp-num {
  font-size: 36px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.hp-divider {
  font-size: 20px;
  color: #6b7280;
}

.hp-max-num {
  font-size: 20px;
  color: #9ca3af;
}

/* Segmented Health Bar with Lagging Trailing Bar */
.health-bar-container {
  position: relative;
  width: 280px;
  height: 18px;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

.health-bar-trail {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--ow-trail);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.health-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  transition: width 0.08s linear;
}

.health-segments-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 23px,
    rgba(10, 12, 16, 0.9) 23px,
    rgba(10, 12, 16, 0.9) 25px
  );
  pointer-events: none;
}

/* ==========================================================================
   BOTTOM CENTER: RADIAL ULTIMATE METER
   ========================================================================== */
.bottom-center-hud {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ult-meter-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ult-svg-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ult-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 7;
}

.ult-ring-progress {
  fill: none;
  stroke: var(--ow-ult-cyan);
  stroke-width: 7;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s ease-out, stroke 0.3s;
}

.ult-inner-circle {
  position: relative;
  width: 78px;
  height: 78px;
  background: var(--ow-dark-solid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.ult-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ult-percent {
  font-family: var(--font-ow-number);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.ult-key {
  font-size: 13px;
  font-weight: 800;
  color: #9ca3af;
}

/* Ultimate Ready Flares & Wings */
.ult-meter-wrapper.ready .ult-ring-progress {
  stroke: #ffb800;
  filter: drop-shadow(0 0 8px #ffb800);
}

.ult-meter-wrapper.ready .ult-inner-circle {
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.8), inset 0 0 12px rgba(255, 184, 0, 0.5);
  animation: ultReadyPulse 1.2s infinite alternate;
}

.ult-meter-wrapper.ready .ult-percent {
  color: #ffb800;
  text-shadow: 0 0 10px #ffb800;
}

.ult-wings {
  position: absolute;
  width: 24px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ult-wings.left {
  left: -28px;
  border-left: 4px solid #ffb800;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: skewY(-20deg);
}
.ult-wings.right {
  right: -28px;
  border-right: 4px solid #ffb800;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: skewY(20deg);
}

.ult-meter-wrapper.ready .ult-wings {
  opacity: 1;
  filter: drop-shadow(0 0 8px #ffb800);
}

.ult-ready-tag {
  position: absolute;
  bottom: -22px;
  font-family: var(--font-ow-number);
  font-size: 12px;
  font-weight: 900;
  color: #ffb800;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #ffb800;
}

@keyframes ultReadyPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* ==========================================================================
   BOTTOM RIGHT: ABILITIES & AMMO
   ========================================================================== */
.bottom-right-hud {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  transform: skewX(-12deg);
}

.abilities-group {
  display: flex;
  gap: 12px;
}

.ability-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ability-keybind {
  font-size: 12px;
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: 1px;
}

.ability-icon-box {
  position: relative;
  width: 54px;
  height: 54px;
  background: var(--ow-dark-solid);
  border: 2px solid var(--ow-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.icon-text {
  font-size: 22px;
  transform: skewX(12deg);
}

.ability-cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.1s linear;
}

.ability-timer-text {
  position: absolute;
  font-family: var(--font-ow-number);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 6px #000;
  transform: skewX(12deg);
}

/* Tracer Blink Charges */
.blink-charges-row {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.blink-pip {
  width: 14px;
  height: 4px;
  background: #4b5563;
  border-radius: 1px;
}
.blink-pip.active {
  background: var(--ow-ult-cyan);
  box-shadow: 0 0 6px var(--ow-ult-cyan);
}

/* Ammo & Weapon */
.ammo-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ammo-numbers {
  font-family: var(--font-ow-number);
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ammo-current {
  font-size: 42px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ammo-slash {
  font-size: 20px;
  color: #6b7280;
}

.ammo-max {
  font-size: 20px;
  color: #9ca3af;
}

.ammo-pips-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  width: 140px;
  background: rgba(255, 255, 255, 0.1);
}

.reload-prompt {
  font-size: 13px;
  font-weight: 800;
  color: var(--ow-orange);
  letter-spacing: 1px;
  animation: reloadPulse 0.8s infinite alternate;
}

@keyframes reloadPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; text-shadow: 0 0 8px var(--ow-orange); }
}

/* ==========================================================================
   CONTROLS HINT BAR
   ========================================================================== */
.controls-hint-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
  background: rgba(10, 12, 16, 0.7);
  padding: 4px 16px;
  border-radius: 20px;
}

.controls-hint-bar .divider {
  color: #4b5563;
}

/* ==========================================================================
   START & HERO SWITCH MODALS
   ========================================================================== */
.start-overlay,
.hero-switch-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 24px 16px 48px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.start-card {
  max-width: 820px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 10px 0;
}

.ow-logo-mark {
  font-family: var(--font-ow-number);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--ow-orange);
  font-weight: 900;
  text-shadow: 0 0 12px var(--ow-orange-glow);
}

.start-title {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  transform: skewX(-10deg);
  text-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
}

.start-subtitle {
  font-size: 16px;
  color: #9ca3af;
  max-width: 600px;
}

.hero-showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 10px 0;
}

.hero-select-card {
  background: rgba(20, 24, 32, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: skewX(-8deg);
}

.hero-select-card:hover,
.hero-select-card.active {
  border-color: var(--ow-orange);
  background: rgba(30, 36, 48, 0.9);
  transform: skewX(-8deg) translateY(-4px);
  box-shadow: 0 8px 24px rgba(240, 100, 20, 0.3);
}

.card-hero-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: skewX(8deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tracer-img { background: radial-gradient(circle, #fde047 0%, #d97706 80%); }
.genji-img { background: radial-gradient(circle, #86efac 0%, #059669 80%); }
.reinhardt-img { background: radial-gradient(circle, #e2e8f0 0%, #475569 80%); }

.card-hero-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  transform: skewX(8deg);
}

.card-hero-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
  transform: skewX(8deg);
}

.btn-ow-primary {
  background: linear-gradient(135deg, #f06414 0%, #ff8c00 100%);
  border: none;
  color: #ffffff;
  padding: 18px 48px;
  border-radius: 4px;
  cursor: pointer;
  transform: skewX(-12deg);
  box-shadow: 0 6px 24px rgba(240, 100, 20, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-ow-primary:hover {
  transform: skewX(-12deg) scale(1.04);
  box-shadow: 0 8px 32px rgba(240, 100, 20, 0.7);
}

.btn-ow-primary:active {
  transform: skewX(-12deg) scale(0.97) translateY(2px);
}

.btn-ow-primary .btn-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: skewX(12deg);
  display: inline-block;
}

.audio-notice {
  font-size: 12px;
  color: #6b7280;
}

/* Hero Switch Modal (H key) */
.hero-switch-content {
  background: var(--ow-dark-solid);
  border: 2px solid var(--ow-border);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

.switch-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.switch-cards-grid {
  display: flex;
  gap: 16px;
}

.switch-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 20px 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: skewX(-8deg);
  transition: all 0.2s ease;
}

.switch-card:hover {
  border-color: var(--ow-orange);
  background: rgba(240, 100, 20, 0.2);
  transform: skewX(-8deg) translateY(-4px);
}

.switch-card:active {
  transform: skewX(-8deg) scale(0.96);
}

.switch-card .portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: skewX(8deg);
}

.switch-card .portrait.tracer { background: radial-gradient(circle, #ffe49e 0%, #d97706 70%); }
.switch-card .portrait.genji { background: radial-gradient(circle, #a7f3d0 0%, #059669 70%); }
.switch-card .portrait.reinhardt { background: radial-gradient(circle, #cbd5e1 0%, #475569 70%); }

.switch-card .name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  transform: skewX(8deg);
}

.switch-card .key-tag {
  font-family: var(--font-ow-number);
  font-size: 12px;
  color: var(--ow-orange);
  font-weight: 900;
  transform: skewX(8deg);
}

.switch-esc-hint {
  font-size: 13px;
  color: #9ca3af;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MOBILE TOUCH CONTROLS & RESPONSIVE ADAPTATION
   ========================================================================== */
.mobile-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* Left: Virtual Joystick */
.joystick-zone {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 140px;
  height: 140px;
  pointer-events: auto;
  touch-action: none;
}

.joystick-base {
  width: 120px;
  height: 120px;
  background: rgba(15, 17, 22, 0.65);
  border: 2px solid rgba(0, 240, 255, 0.45);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.joystick-knob {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #00f0ff 0%, #0099ff 100%);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 14px #00f0ff;
  transform: translate(0, 0);
  pointer-events: none;
}

/* Center-Right: Touch Look & Aim Drag Zone */
.touch-look-zone {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  pointer-events: auto;
  touch-action: none;
  z-index: 1;
}

/* Top-Right: Hero Switch Button */
.btn-top-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.btn-top-switch .btn-icon { font-size: 18px; }
.btn-top-switch .btn-lbl { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; }

/* Right: Ergonomic Thumb Arc Container */
.mobile-action-buttons {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  height: 260px;
  pointer-events: none;
  z-index: 10;
}

.touch-btn {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  background: rgba(20, 24, 32, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.08s ease, background-color 0.08s ease;
}

.touch-btn:active, .touch-btn.active {
  transform: scale(0.92);
  background: rgba(240, 100, 20, 0.5);
  border-color: var(--ow-orange);
}

/* Primary Fire + Drag-to-Aim Button (Large Thumb Home Anchor) */
.btn-fire {
  width: 78px;
  height: 78px;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, rgba(240, 100, 20, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  border-color: #ffffff;
  box-shadow: 0 0 24px var(--ow-orange-glow);
  z-index: 5;
}
.btn-fire .btn-icon { font-size: 26px; }
.btn-fire .btn-lbl { font-size: 9px; font-weight: 900; letter-spacing: 0.5px; }

/* Jump Button (Directly above Fire for easy thumb slide) */
.btn-jump {
  width: 56px;
  height: 56px;
  bottom: 114px;
  right: 26px;
  border-color: rgba(0, 240, 255, 0.6);
  background: rgba(14, 116, 144, 0.8);
}
.btn-jump .btn-icon { font-size: 16px; }
.btn-jump .btn-lbl { font-size: 9px; font-weight: 800; }

/* Ability 1: Shift (Diagonal upper-left of Fire) */
.btn-shift {
  width: 54px;
  height: 54px;
  bottom: 110px;
  right: 96px;
  border-color: rgba(245, 158, 11, 0.6);
}
.btn-shift .btn-icon { font-size: 18px; }
.btn-shift .btn-lbl { font-size: 9px; font-weight: 800; }

/* Ability 2: E (Directly left of Fire) */
.btn-e {
  width: 54px;
  height: 54px;
  bottom: 26px;
  right: 118px;
  border-color: rgba(168, 85, 247, 0.6);
}
.btn-e .btn-icon { font-size: 18px; }
.btn-e .btn-lbl { font-size: 9px; font-weight: 800; }

/* Secondary Fire / Alt (Between E and Shift) */
.btn-alt {
  width: 50px;
  height: 50px;
  bottom: 80px;
  right: 162px;
  border-color: rgba(56, 189, 248, 0.6);
}
.btn-alt .btn-icon { font-size: 16px; }
.btn-alt .btn-lbl { font-size: 9px; font-weight: 800; }

/* Ultimate: Q (Crown above the thumb arc) */
.btn-ult {
  width: 62px;
  height: 62px;
  bottom: 178px;
  right: 60px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(15, 23, 42, 0.95) 80%);
  border-color: var(--ow-ult-cyan);
  box-shadow: 0 0 20px var(--ow-ult-glow);
}
.btn-ult .btn-icon { font-size: 22px; color: #ffb800; }
.btn-ult .btn-lbl { font-size: 9px; font-weight: 900; color: #00f0ff; }

/* Reload Button (Left wing of thumb reach) */
.btn-reload {
  width: 44px;
  height: 44px;
  bottom: 28px;
  right: 186px;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-reload .btn-icon { font-size: 15px; }
.btn-reload .btn-lbl { font-size: 8px; font-weight: 800; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  
  .hud-container {
    padding: 10px 14px;
  }

  .top-objective-bar {
    padding: 4px 10px;
    gap: 6px;
    transform: scale(0.8) skewX(-12deg);
  }

  .bottom-left-hud {
    transform: scale(0.7) skewX(-12deg);
    transform-origin: bottom left;
    margin-bottom: 75px;
  }

  .bottom-center-hud {
    transform: scale(0.7);
    transform-origin: bottom center;
    margin-bottom: 8px;
  }

  .bottom-right-hud {
    transform: scale(0.7) skewX(-12deg);
    transform-origin: bottom right;
    margin-bottom: 75px;
  }

  .start-card {
    gap: 10px;
    padding: 8px 0;
  }
  .start-title {
    font-size: 26px;
  }
  .start-subtitle {
    font-size: 13px;
    line-height: 1.3;
  }
  .hero-showcase-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-select-card {
    padding: 10px 8px;
    gap: 4px;
  }
  .card-hero-img {
    width: 44px;
    height: 44px;
  }
  .card-hero-name {
    font-size: 14px;
  }
  .card-hero-desc {
    font-size: 11px;
    line-height: 1.25;
  }
  .btn-ow-primary {
    padding: 12px 32px;
  }
  .btn-ow-primary .btn-text {
    font-size: 17px;
  }
}

/* Specific optimizations for short screens / Mobile Landscape (Height <= 520px) */
@media (max-height: 520px) {
  .start-overlay {
    padding: 10px 14px 24px;
  }
  .start-card {
    gap: 6px;
    padding: 4px 0;
  }
  .ow-logo-mark {
    font-size: 13px;
    letter-spacing: 4px;
  }
  .start-title {
    font-size: 20px;
  }
  .start-subtitle {
    display: none;
  }
  .hero-showcase-row {
    margin: 4px 0;
    gap: 6px;
  }
  .hero-select-card {
    padding: 6px 8px;
    gap: 2px;
  }
  .card-hero-img {
    width: 32px;
    height: 32px;
  }
  .card-hero-name {
    font-size: 13px;
  }
  .card-hero-desc {
    display: none;
  }
  .btn-ow-primary {
    padding: 10px 28px;
  }
  .btn-ow-primary .btn-text {
    font-size: 15px;
  }
  .audio-notice {
    display: none;
  }
}

/* ==========================================================================
   MOBILE LANDSCAPE ORIENTATION OVERLAY
   ========================================================================== */
.rotate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96) 0%, rgba(5, 7, 12, 0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: #ffffff;
}

/* Shown on mobile devices in portrait orientation */
@media (orientation: portrait) and (max-width: 900px) {
  .rotate-overlay {
    display: flex !important;
  }
}

.rotate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
}

.phone-rotate-anim {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-device {
  width: 48px;
  height: 84px;
  border: 3px solid var(--ow-orange);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 25px var(--ow-orange-glow);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: phoneTurnLandscape 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.phone-notch {
  position: absolute;
  top: 4px;
  width: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.phone-screen-logo {
  font-family: var(--font-ow-number);
  font-size: 13px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 1px;
}

.rotate-curved-arrow {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 26px;
  animation: arrowPulse 2.8s ease-in-out infinite;
}

@keyframes phoneTurnLandscape {
  0%, 15% {
    transform: rotate(0deg);
  }
  50%, 75% {
    transform: rotate(90deg);
  }
  90%, 100% {
    transform: rotate(0deg);
  }
}

@keyframes arrowPulse {
  0%, 100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
}

.rotate-title {
  font-family: var(--font-ow-header);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(240, 100, 20, 0.5);
}

.rotate-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

.rotate-desc strong {
  color: var(--ow-orange);
}

