/* ChallengerRift — Pixel-Perfect / Retro RPG E-sports Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Pixelify+Sans:wght@500;600;700&family=Press+Start+2P&family=Silkscreen:wght@400;700&family=VT323&display=swap');

:root {
  --bg-winter: #060B19;
  --bg-surface: #0C142B;
  --crimson-holiday: #E11D48;
  --emerald-pine: #10B981;
  --frost-cyan: #38BDF8;
  --pixel-sword-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='3' height='1' fill='%23E0F2FE'/%3E%3Crect x='1' y='2' width='1' height='3' fill='%23E0F2FE'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%2338BDF8'/%3E%3Crect x='3' y='3' width='2' height='2' fill='%237DD3FC'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%2338BDF8'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%230284C7'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%23FBBF24'/%3E%3Crect x='8' y='5' width='1' height='4' fill='%23F59E0B'/%3E%3Crect x='5' y='8' width='4' height='1' fill='%23F59E0B'/%3E%3Crect x='8' y='8' width='2' height='2' fill='%2378350F'/%3E%3Crect x='10' y='10' width='2' height='2' fill='%2392400E'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%23FBBF24'/%3E%3C/svg%3E") 2 2, auto;
  --pixel-hand-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='2' height='6' fill='%23FDE047'/%3E%3Crect x='7' y='3' width='2' height='5' fill='%23FBBF24'/%3E%3Crect x='9' y='4' width='2' height='5' fill='%23F59E0B'/%3E%3Crect x='11' y='5' width='2' height='5' fill='%23D97706'/%3E%3Crect x='3' y='6' width='2' height='4' fill='%23FBBF24'/%3E%3Crect x='4' y='7' width='9' height='5' fill='%23FDE047'/%3E%3Crect x='5' y='12' width='7' height='2' fill='%23B45309'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23020617'/%3E%3C/svg%3E") 5 1, pointer;
}

html {
  scroll-behavior: smooth;
  background-color: #030712;
  color: #F8FAFC;
  cursor: var(--pixel-sword-cursor);
}

body, main, section {
  background-color: transparent !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  cursor: var(--pixel-sword-cursor);
}

a, button, [role="button"], select, label[for], label.cursor-pointer, .cursor-pointer {
  cursor: var(--pixel-hand-cursor) !important;
}

h1, h2, h3, h4, .font-display, nav a, .calc-tab, .dash-tab, .btn-holiday, .btn-frost, .btn-pine, .btn-border-beam-inner {
  font-family: 'Pixelify Sans', sans-serif !important;
  letter-spacing: 0.02em;
}

nav a, .calc-tab, .dash-tab, .btn-holiday, .btn-frost, .btn-pine, .btn-border-beam-inner {
  letter-spacing: 0.01em;
  line-height: 1.25;
  overflow: visible;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.font-pixel-micro {
  font-family: 'Press Start 2P', monospace;
}

.cr-num {
  font-family: 'JetBrains Mono', 'Inter', sans-serif !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

input, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
}

.cr-pixel-price {
  font-family: 'JetBrains Mono', 'Inter', sans-serif !important;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  font-weight: 700 !important;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.24), 0 0 8px rgba(16, 185, 129, 0.18);
}

.cr-pixel-price-sm {
  font-size: 1.15rem;
}

img[src*="/champions/"],
img[src*="/arena/"],
img[src*="/ui/"],
img[src*="/coaching/"],
img[src*="/brand/"],
.cr-pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* 60FPS Arctic Night ASCII Boreal Aurora & Frozen Lake Canvas */
#asciiAuroraBgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Animated Waving Flag Switcher */
@keyframes crFlagFlutter {
  0%, 100% { transform: perspective(40px) rotateY(-4deg) skewY(0deg); }
  50% { transform: perspective(40px) rotateY(7deg) skewY(-1.2deg) scale(1.06); }
}

.cr-flag-btn:hover .cr-flag-svg,
.cr-flag-btn.cr-flag-active .cr-flag-svg {
  animation: crFlagFlutter 2.2s ease-in-out infinite;
}

/* Subtle tactical ice grid */
.bg-tactical-grid {
  background-size: 42px 42px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
}

/* Festive Navbar Pixel Snow & Holly Trim */
.festive-snow-header {
  position: sticky;
  background: rgba(6, 13, 30, 0.62) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(56, 189, 248, 0.42);
  box-shadow: inset 0 2px 0 rgba(224, 242, 254, 0.35), 0 4px 20px rgba(2, 6, 23, 0.55);
}

/* 8-Bit / 16-Bit Double-Line Pixelated Bevel Cards & RPG Frosted Glass Panels */
.rift-card {
  position: relative;
  background: rgba(6, 13, 30, 0.58) !important;
  border: 2px solid rgba(56, 189, 248, 0.42);
  border-radius: 2px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 3px 0 rgba(224, 242, 254, 0.32),
    inset 2px 0 0 rgba(186, 230, 253, 0.14),
    inset 0 -3px 0 rgba(2, 6, 23, 0.72),
    0 0 0 2px rgba(2, 6, 23, 0.85),
    0 5px 0 0 rgba(2, 6, 23, 0.82),
    0 18px 40px -14px rgba(0, 0, 0, 0.75);
}

.rift-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(248, 250, 252, 0.82) 0px,
    rgba(248, 250, 252, 0.82) 10px,
    rgba(186, 230, 253, 0.45) 10px,
    rgba(186, 230, 253, 0.45) 14px,
    rgba(251, 191, 36, 0.38) 14px,
    rgba(251, 191, 36, 0.38) 16px,
    rgba(225, 29, 72, 0.42) 16px,
    rgba(225, 29, 72, 0.42) 18px
  );
  z-index: 2;
}

.rift-card-crimson {
  border-color: rgba(225, 29, 72, 0.62);
  box-shadow:
    inset 0 3px 0 rgba(254, 226, 226, 0.3),
    inset 0 -3px 0 rgba(2, 6, 23, 0.75),
    0 0 0 2px rgba(2, 6, 23, 0.85),
    0 5px 0 0 rgba(2, 6, 23, 0.82),
    0 0 36px -10px rgba(225, 29, 72, 0.38);
}

.rift-card-frost {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow:
    inset 0 3px 0 rgba(224, 242, 254, 0.34),
    inset 0 -3px 0 rgba(2, 6, 23, 0.75),
    0 0 0 2px rgba(2, 6, 23, 0.85),
    0 5px 0 0 rgba(2, 6, 23, 0.82),
    0 0 36px -10px rgba(56, 189, 248, 0.36);
}

.rift-card-emerald {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow:
    inset 0 3px 0 rgba(209, 250, 229, 0.28),
    inset 0 -3px 0 rgba(2, 6, 23, 0.75),
    0 0 0 2px rgba(2, 6, 23, 0.85),
    0 5px 0 0 rgba(2, 6, 23, 0.82),
    0 0 34px -10px rgba(16, 185, 129, 0.34);
}

/* Pixel Inventory Panel & Slot Aesthetics */
.rpg-inventory-panel {
  background-color: rgba(6, 13, 30, 0.58) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pixel-frame-sm {
  border-radius: 2px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 #020617;
}

.rpg-xp-track {
  height: 12px;
  background: #030712;
  border: 2px solid rgba(56, 189, 248, 0.38);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.8);
  padding: 1px;
}

.rpg-xp-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #10B981 0px,
    #10B981 10px,
    #38BDF8 10px,
    #38BDF8 18px,
    #FBBF24 18px,
    #FBBF24 22px
  );
  transition: width 0.35s steps(12, end);
}

/* Tactile Retro Arcade Action Buttons (+2px Press Depression) */
.btn-holiday {
  background: linear-gradient(180deg, #FB7185 0%, #E11D48 45%, #BE123C 100%);
  color: #FFFFFF;
  font-weight: 700;
  border: 2px solid #FDA4AF;
  border-radius: 2px !important;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.15s ease;
  box-shadow: inset 0 -2px 0 rgba(136, 19, 55, 0.8), 0 3px 0 #020617, 0 0 22px -4px rgba(225, 29, 72, 0.62);
}

.btn-holiday:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 -2px 0 rgba(136, 19, 55, 0.8), 0 4px 0 #020617, 0 0 28px -2px rgba(251, 113, 133, 0.8);
}

.btn-holiday:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 0 rgba(136, 19, 55, 0.9), 0 1px 0 #020617 !important;
}

.btn-frost {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.24) 0%, rgba(12, 74, 110, 0.32) 100%);
  border: 2px solid rgba(56, 189, 248, 0.6);
  border-radius: 2px !important;
  color: #BAE6FD;
  font-weight: 700;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.2), 0 3px 0 #020617;
}

.btn-frost:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.32);
  border-color: #7DD3FC;
  color: #FFFFFF;
  box-shadow: 0 4px 0 #020617, 0 0 22px -4px rgba(56, 189, 248, 0.58);
}

.btn-frost:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 0 rgba(2, 6, 23, 0.7), 0 1px 0 #020617 !important;
}

.btn-pine {
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  color: #042117;
  font-weight: 700;
  border: 2px solid #A7F3D0;
  border-radius: 2px !important;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  box-shadow: inset 0 -2px 0 rgba(6, 78, 59, 0.4), 0 3px 0 #020617, 0 0 20px -4px rgba(16, 185, 129, 0.55);
}

.btn-pine:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #020617, 0 0 28px -2px rgba(52, 211, 153, 0.75);
}

.btn-pine:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #020617 !important;
}

button, .calc-tab, .dash-tab {
  overflow: visible;
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.15s ease;
}

button:active, .calc-tab:active, .dash-tab:active {
  transform: translateY(2px);
}

input:not([type="checkbox"]):not([type="range"]), select, textarea {
  border-radius: 2px !important;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.55);
}

/* Frost Range Slider */
input[type="range"].rift-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 0 !important;
  outline: none;
}

input[type="range"].rift-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 0 !important;
  background: #38BDF8;
  border: 2px solid #020617;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
}

/* ============================================================================
   Animated 16-Bit Pixel Art Champions & Speech Bubbles
============================================================================ */
.pixel-sprite-svg {
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

@keyframes pixelBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes pixelStep {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  75% { transform: translateY(-4px) rotate(2deg); }
}

.pixel-champ-card .pixel-actor {
  animation: pixelBob 1.8s steps(4, end) infinite;
  transition: transform 0.2s ease;
}

.pixel-champ-card:hover .pixel-actor {
  animation: pixelStep 0.55s steps(2, end) infinite;
  transform: scale(1.08);
}

.pixel-speech-bubble {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all 0.22s ease;
  pointer-events: none;
}

.pixel-champ-card:hover .pixel-speech-bubble,
.pixel-champ-card:focus-within .pixel-speech-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #060B19;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #38BDF8;
}

/* ============================================================================
   Interactive 4-Champion Login Squad 60fps Animations
============================================================================ */
.lee-mascot-widget {
  --mx: 0;
  --my: 0;
  --look-x: 0;
}

.lee-mascot-widget .lee-stage {
  perspective: 1100px;
}

.lee-mascot-widget .lee-view-front,
.lee-mascot-widget .lee-view-back,
.lee-mascot-widget .lee-torso-front,
.lee-mascot-widget .lee-head-front,
.lee-mascot-widget .lee-blindfold,
.lee-mascot-widget .lee-pupil,
.lee-mascot-widget .lee-arm-left,
.lee-mascot-widget .lee-arm-right,
.lee-mascot-widget .lee-torso-back,
.lee-mascot-widget .lee-head-back,
.lee-mascot-widget .lee-arms-back,
.lee-mascot-widget .lee-shoulder-peek,
.lee-mascot-widget .squad-ahri,
.lee-mascot-widget .squad-yasuo,
.lee-mascot-widget .squad-zed,
.lee-mascot-widget .ahri-front,
.lee-mascot-widget .ahri-hide,
.lee-mascot-widget .ahri-head,
.lee-mascot-widget .ahri-ears,
.lee-mascot-widget .ahri-orb,
.lee-mascot-widget .yasuo-front,
.lee-mascot-widget .yasuo-hide,
.lee-mascot-widget .yasuo-head,
.lee-mascot-widget .yasuo-collar,
.lee-mascot-widget .zed-front,
.lee-mascot-widget .zed-hide,
.lee-mascot-widget .zed-head,
.lee-mascot-widget .squad-eyes {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease;
}

/* Default Front Views Visible, Hide Views Hidden */
.lee-mascot-widget .lee-view-front,
.lee-mascot-widget .ahri-front,
.lee-mascot-widget .yasuo-front,
.lee-mascot-widget .zed-front {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.lee-mascot-widget .lee-view-back,
.lee-mascot-widget .ahri-hide,
.lee-mascot-widget .yasuo-hide,
.lee-mascot-widget .zed-hide {
  opacity: 0;
  transform: rotateY(-160deg) scale(0.92);
  pointer-events: none;
}

/* State 1: Idle / Mouse Tracking Across All 4 Champions */
.lee-mascot-widget.state-idle .lee-torso-front,
.lee-mascot-widget.state-idle .squad-ahri,
.lee-mascot-widget.state-idle .squad-yasuo,
.lee-mascot-widget.state-idle .squad-zed {
  transform: translate(calc(var(--mx) * 4px), calc(var(--my) * 2.5px));
  transition: transform 0.1s linear;
}

.lee-mascot-widget.state-idle .lee-head-front,
.lee-mascot-widget.state-idle .ahri-head,
.lee-mascot-widget.state-idle .yasuo-head,
.lee-mascot-widget.state-idle .zed-head {
  transform: translate(calc(var(--mx) * 7px), calc(var(--my) * 5px)) rotate(calc(var(--mx) * 5deg));
  transition: transform 0.1s linear;
}

.lee-mascot-widget.state-idle .squad-eyes {
  transform: translate(calc(var(--mx) * 2.6px), calc(var(--my) * 1.8px));
  transition: transform 0.08s linear;
}

.lee-mascot-widget.state-idle .lee-arm-left,
.lee-mascot-widget.state-idle .lee-arm-right {
  transform: translate(calc(var(--mx) * 3px), calc(var(--my) * 3px));
  transition: transform 0.12s linear;
}

.lee-mascot-widget .lee-eye-peeking {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* State 2: Typing Email / Username — Whole Squad Leans Forward & Tracks Text Length */
.lee-mascot-widget.state-email .lee-torso-front,
.lee-mascot-widget.state-email .squad-ahri,
.lee-mascot-widget.state-email .squad-yasuo,
.lee-mascot-widget.state-email .squad-zed {
  transform: translateY(4px) scale(1.03);
}

.lee-mascot-widget.state-email .lee-head-front,
.lee-mascot-widget.state-email .ahri-head,
.lee-mascot-widget.state-email .yasuo-head,
.lee-mascot-widget.state-email .zed-head {
  transform: translate(calc(var(--look-x) * 6px), 6px) rotate(calc(var(--look-x) * 4deg));
}

.lee-mascot-widget.state-email .squad-eyes {
  transform: translate(calc(var(--look-x) * 3.5px), 1.5px);
  transition: transform 0.1s ease-out;
}

.lee-mascot-widget.state-email .ahri-ears {
  transform: translateY(-3px) scaleY(1.08);
}

.lee-mascot-widget.state-email .yasuo-collar {
  transform: translateY(5px);
}

.lee-mascot-widget.state-email .lee-eye-peeking {
  opacity: 1;
}

.lee-mascot-widget.state-email .lee-pupil {
  transform: translate(calc(var(--look-x) * 4.2px), 1.2px);
  transition: transform 0.1s ease-out;
}

.lee-mascot-widget.state-email .lee-blindfold {
  transform: translate(-3px, -11px) rotate(-14deg);
}

.lee-mascot-widget.state-email .lee-arm-right {
  transform: translate(-18px, -61px) rotate(-22deg);
}

.lee-mascot-widget.state-email .lee-arm-left {
  transform: translate(4px, 3px) rotate(6deg);
}

/* State 3: Simultaneous Startle Jump + Exclamation & Sweat FX */
.lee-mascot-widget .lee-startle-fx {
  opacity: 0;
  transform: translateY(8px) scale(0.5);
}

@keyframes leeStartleJump {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-14px) scale(1.04); }
  55% { transform: translateY(2px) scale(0.97) rotate(-1.5deg); }
  78% { transform: translateY(-5px) scale(1.01) rotate(1.5deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes leeExclamationPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.5); }
  28% { opacity: 1; transform: translateY(-6px) scale(1.25); }
  80% { opacity: 1; transform: translateY(-2px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.8); }
}

.lee-mascot-widget.is-startled .lee-svg {
  animation: leeStartleJump 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.lee-mascot-widget.is-startled .lee-startle-fx {
  animation: leeExclamationPop 0.5s ease-out forwards;
}

/* State 3 Continued: Whole Squad Covers Eyes / Turns 180 Degrees */
.lee-mascot-widget.state-password .lee-view-front,
.lee-mascot-widget.state-password .ahri-front,
.lee-mascot-widget.state-password .yasuo-front,
.lee-mascot-widget.state-password .zed-front {
  opacity: 0;
  transform: rotateY(160deg) scale(0.92);
  pointer-events: none;
}

.lee-mascot-widget.state-password .lee-view-back,
.lee-mascot-widget.state-password .ahri-hide,
.lee-mascot-widget.state-password .yasuo-hide,
.lee-mascot-widget.state-password .zed-hide {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

@keyframes leeBraidSwing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

.lee-mascot-widget.state-password .lee-braid {
  transform-origin: 274px 81px;
  animation: leeBraidSwing 1.3s ease-in-out infinite;
}

@keyframes dragonTattooPulse {
  0%, 100% { opacity: 0.74; filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 9px rgba(225, 29, 72, 0.75)); }
}

.lee-mascot-widget .monk-dragon-tattoo {
  animation: dragonTattooPulse 2.2s ease-in-out infinite;
}

.lee-mascot-widget.state-email .monk-dragon-tattoo,
.lee-mascot-widget.state-password .monk-dragon-tattoo {
  animation: dragonTattooPulse 1s ease-in-out infinite;
}

/* Bonus State: Over-the-Shoulder Surprised Peek when Show Password is Toggled On */
.lee-mascot-widget .lee-shoulder-peek {
  opacity: 0;
  transform: translate(-10px, 4px) scale(0.85);
}

.lee-mascot-widget.state-password-peek .lee-head-back {
  transform: rotate(12deg) translateX(5px);
}

.lee-mascot-widget.state-password-peek .lee-arms-back {
  transform: translateY(8px);
}

.lee-mascot-widget.state-password-peek .lee-shoulder-peek {
  opacity: 1;
  transform: translate(2px, 0px) scale(1);
}

/* ============================================================================
 * ChallengerRift 4.0: Cinematic Logo, Magnetic Nav & Border-Beam CTA
 * ========================================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@keyframes crCrownFloat {
  0%, 100% {
    transform: translateY(0px);
    filter: brightness(1) drop-shadow(0 0 2px rgba(251, 191, 36, 0.35));
  }
  50% {
    transform: translateY(-1.6px);
    filter: brightness(1.18) drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
  }
}

.cr-crown-shimmer {
  animation: crCrownFloat 3.2s ease-in-out infinite;
}

/* Magnetic / Radial Cursor-Tracking Nav Links (Pixel Frame) */
.nav-magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 2px;
  overflow: visible;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  transition: transform 0.08s ease, color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
}

.nav-magnetic-btn:active {
  transform: translateY(2px) !important;
}

.nav-magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inset(0);
  opacity: 0;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.24), transparent 72%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.nav-magnetic-btn::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, #38BDF8, #10B981, #F43F5E);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s steps(6, end);
}

.nav-magnetic-btn:hover {
  color: #F8FAFC;
  border-color: rgba(56, 189, 248, 0.42);
  background-color: rgba(15, 23, 42, 0.78);
  transform: translateY(-1px);
}

.nav-magnetic-btn:hover::before {
  opacity: 1;
}

.nav-magnetic-btn:hover::after {
  transform: scaleX(1);
}

/* Pixel RPG Navigation Dropdowns (About Us & Support) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  z-index: 60;
  background: rgba(6, 13, 30, 0.96);
  border: 2px solid rgba(56, 189, 248, 0.52);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.85), inset 0 2px 0 rgba(224, 242, 254, 0.25);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: visible;
  border: 1px solid transparent;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.nav-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Animated Rotating Border-Beam CTA (Pixel Frame) */
@property --cr-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes crBeamSpin {
  to {
    --cr-beam-angle: 360deg;
  }
}

.btn-border-beam {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 2px;
  background: conic-gradient(from var(--cr-beam-angle), #E11D48, #F59E0B, #38BDF8, #10B981, #E11D48);
  animation: crBeamSpin 3.4s linear infinite;
  box-shadow: 0 3px 0 #020617, 0 8px 24px -6px rgba(225, 29, 72, 0.5);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.btn-border-beam:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #020617, 0 12px 30px -6px rgba(56, 189, 248, 0.6);
}

.btn-border-beam:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #020617 !important;
}

.btn-border-beam-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: visible;
  line-height: 1.25;
  padding: 0.46rem 0.9rem;
  border-radius: 1px;
  background: linear-gradient(135deg, #130A18 0%, #09132B 100%);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ============================================================================
   Challenger Winter Sanctuary Avatar Cards
   ============================================================================ */
.vip-avatar-card.selected {
  border-color: #FBBF24 !important;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(6, 182, 212, 0.14)) !important;
  box-shadow: 0 0 24px -6px rgba(251, 191, 36, 0.65);
}

/* ============================================================================
   32-Bit Pixel Squad Strip, Brand Banners & Pixel Icons
   ============================================================================ */
@keyframes pixelSquadFloat {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 6px rgba(2, 6, 23, 0.85)) drop-shadow(0 0 6px rgba(56, 189, 248, 0.2));
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 10px rgba(2, 6, 23, 0.9)) drop-shadow(0 0 11px rgba(251, 191, 36, 0.42));
  }
}

.pixel-squad-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  justify-items: center;
  gap: 0.5rem 0.35rem;
  padding: 0.6rem 0.55rem;
  background: linear-gradient(180deg, rgba(8, 17, 40, 0.85) 0%, rgba(5, 10, 24, 0.92) 100%);
  border: 2px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.2), 0 6px 20px rgba(2, 6, 23, 0.6);
}

@media (min-width: 640px) {
  .pixel-squad-strip-full {
    grid-template-columns: repeat(6, 1fr);
  }
}

.pixel-squad-item {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.1rem;
}

.pixel-squad-char {
  height: 64px;
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
  animation: pixelSquadFloat 2.6s ease-in-out infinite;
  transition: transform 0.16s ease, filter 0.16s ease;
}

@media (min-width: 640px) {
  .pixel-squad-char {
    height: 72px;
  }
}

.pixel-squad-item:hover .pixel-squad-char {
  transform: translateY(-5px) scale(1.12);
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.65));
}

.pixel-squad-strip.squad-state-watch .pixel-squad-char {
  animation: none;
  transform: translateX(var(--squad-shift-x, 0px)) rotate(var(--squad-lean-deg, 0deg)) scale(1.04);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.pixel-squad-strip.squad-state-hide .pixel-squad-char {
  animation: none;
  transform: translateY(2px) scale(0.97);
  filter: saturate(0.88);
}

.cr-brand-banner-box {
  background: linear-gradient(180deg, rgba(8, 17, 40, 0.9) 0%, rgba(5, 10, 24, 0.96) 100%);
  padding: 0.35rem 0.5rem;
  border: 2px solid rgba(251, 191, 36, 0.48);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25), 0 10px 26px rgba(2, 6, 23, 0.75);
}

.cr-brand-banner {
  display: block;
  width: 92%;
  max-width: 420px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.cr-brand-banner-compact {
  max-height: 110px;
}

.sanctuary-title-heading {
  font-family: 'Press Start 2P', monospace !important;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.cr-pixel-icon {
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(2, 6, 23, 0.8));
}

/* ==============================================================================
   MOBILE-FIRST RESPONSIVE HARDENING (360px - 900px)
   ============================================================================== */
@media (max-width: 900px) {
  #calculator .grid.lg\:grid-cols-12,
  #coachingConfigurator .grid.lg\:grid-cols-12 {
    grid-template-columns: 1fr !important;
  }

  button,
  select,
  .btn-holiday,
  .btn-frost,
  .btn-pine,
  .nav-magnetic-btn {
    min-height: 44px;
  }

  /* Prevent unwanted iOS Safari auto-zoom on input focus */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .cr-brand-text-wrap {
    max-width: 112px;
    overflow: hidden;
  }

  .cr-mobile-lang-wrap .cr-flag-btn {
    padding: 0.25rem 0.35rem;
    min-height: 36px;
  }

  .cr-header-actions .nav-magnetic-btn {
    min-height: 36px;
    font-size: 11px !important;
    padding: 0.35rem 0.5rem !important;
  }

  #sanctuaryStageContainer {
    max-width: 100%;
    height: 300px;
  }

  .pixel-squad-char {
    height: 48px !important;
  }

  .pixel-squad-strip {
    gap: 0.3rem 0.2rem;
    padding: 0.45rem 0.35rem;
  }
}



