/* =============================================================================
   Rubik 3D Studio Typography & Color System
   Game Body Font: Outfit (SemiBold 600 / Bold 700)
   Game Number Font: Rajdhani (Bold 700)
   Game Color Palette: Official WCA Rubik's Cube Face Colors
   ============================================================================= */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('Rajdhani-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Rajdhani-Bold.ttf') format('truetype');
}

:root {
  /* Official 6 Rubik Face Colors (WCA Standard BOY Scheme) */
  --rubik-white: #ffffff;
  --rubik-yellow: #ffe600;
  --rubik-green: #00d13d;
  --rubik-blue: #006bfa;
  --rubik-red: #eb1224;
  --rubik-orange: #ff6b00;
  --rubik-gold: #ffd700;
  --rubik-slate: #94a3b8;

  /* Surfaces & Chassis */
  --rubik-bg-dark: #0a0a0d;
  --rubik-surface-card: #14141e;
  --rubik-surface-elevated: #1a1a27;

  /* Fonts */
  --font-game-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-game-num: 'Rajdhani', 'Outfit', sans-serif;

  /* =========================================================================
     100% MATHEMATICAL & OPTICAL FONT EQUALITY WITH GAME CANVAS:
     In Unity (RubikUIConfig.cs), the Canvas reference resolution width is 1080px
     and the game's strict mobile legibility floor is GlobalMinFontSize = 40pt
     (prescribed in AGENTS.md Rule 7: com.udp.ui mobile floor >= 40pt).
     
     Optical & Screen Ratio Math:
       Game Min Font Ratio = 40pt / 1080px = 0.037037 (3.7037% of screen width).
     
     By applying calc(40 / 1080 * 100vw) clamped to desktop/mobile constraints:
       - On a 390px mobile viewport: 390px * (40 / 1080) = 14.44px.
       - On a 414px mobile viewport: 414px * (40 / 1080) = 15.33px.
       - On a 430px mobile viewport: 430px * (40 / 1080) = 15.93px.
       - On desktop screens: smoothly clamps up to 16px to prevent viewport blowout.
     
     This guarantees that 1 character on this web page physically measures the
     exact 100% same millimeter / optical dimensions as 1 character rendered inside
     the 3D Unity game canvas!
     ========================================================================= */
  --game-ref-width: 1080;
  --game-min-font-pt: 40;
  --font-game-min: clamp(14px, calc(40 / 1080 * 100vw), 16px);

  /* Equivalent Title & Heading Ratios (matching Unity Rule 7: Subtitle 44pt = 1.1x, Title 72pt = 1.8x, Hero 96pt = 2.4x) */
  --font-game-subtitle: calc(var(--font-game-min) * (44 / 40));   /* 1.1x ratio = ~15.4px - 17.6px */
  --font-game-title:    calc(var(--font-game-min) * (72 / 40));   /* 1.8x ratio = ~25.2px - 28.8px */
  --font-game-hero:     calc(var(--font-game-min) * (96 / 40));   /* 2.4x ratio = ~33.6px - 38.4px */

  /* =========================================================================
     100% MATHEMATICAL & OPTICAL FONT EQUALITY WITH GAME CANVAS:
     In Unity (RubikUIConfig.cs), the Canvas reference resolution width is 1080px
     and the game's strict mobile legibility floor is GlobalMinFontSize = 40pt
     (prescribed in AGENTS.md Rule 7: com.udp.ui mobile floor >= 40pt).
     
     Optical & Screen Ratio Math:
       Game Min Font Ratio = 40pt / 1080px = 0.037037 (3.7037% of screen width).
     
     By applying calc(40 / 1080 * 100vw) clamped to desktop/mobile constraints:
       - On a 390px mobile viewport: 390px * (40 / 1080) = 14.44px.
       - On a 414px mobile viewport: 414px * (40 / 1080) = 15.33px.
       - On a 430px mobile viewport: 430px * (40 / 1080) = 15.93px.
       - On desktop screens: smoothly clamps up to 16px to prevent viewport blowout.
     
     This guarantees that 1 character on this web page physically measures the
     exact 100% same millimeter / optical dimensions as 1 character rendered inside
     the 3D Unity game canvas!
     ========================================================================= */
  --game-ref-width: 1080;
  --game-min-font-pt: 40;
  --font-game-min: clamp(14px, calc(40 / 1080 * 100vw), 16px);

  /* Equivalent Title & Heading Ratios (matching Unity Rule 7: Subtitle 44pt = 1.1x, Title 72pt = 1.8x, Hero 96pt = 2.4x) */
  --font-game-subtitle: calc(var(--font-game-min) * (44 / 40));   /* 1.1x ratio = ~15.4px - 17.6px */
  --font-game-title:    calc(var(--font-game-min) * (72 / 40));   /* 1.8x ratio = ~25.2px - 28.8px */
  --font-game-hero:     calc(var(--font-game-min) * (96 / 40));   /* 2.4x ratio = ~33.6px - 38.4px */
}

html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
  background: var(--rubik-bg-dark);
  color: #ffffff;
  font-family: var(--font-game-body);
  font-size: var(--font-game-min);
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

/* Force-hide any horizontal scrollbar across all browsers and elements */
::-webkit-scrollbar:horizontal,
*::-webkit-scrollbar:horizontal,
html::-webkit-scrollbar:horizontal,
body::-webkit-scrollbar:horizontal,
#unity-container::-webkit-scrollbar:horizontal,
#unity-canvas::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
  width: 0px !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#unity-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  height: calc(100vh - 54px);
  height: calc(100dvh - 54px);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

:fullscreen #web-portal-header,
:-webkit-full-screen #web-portal-header {
  display: none !important;
}

:fullscreen #unity-container,
:-webkit-full-screen #unity-container {
  height: 100vh !important;
  height: 100dvh !important;
}

/* --- Web Portal Header --- */
#web-portal-header {
  width: 100%;
  height: 54px;
  background: rgba(14, 14, 18, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
  padding: 0 24px;
  font-family: var(--font-game-body);
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.header-brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f5f5f7;
}

.header-brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4af37;
  background: rgba(255, 215, 71, 0.12);
  border: 1px solid rgba(255, 215, 71, 0.28);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Header Notice Pill */
.header-notice-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 71, 0.08);
  border: 1px solid rgba(255, 215, 71, 0.28);
  padding: 5px 14px;
  border-radius: 20px;
  max-width: 560px;
  min-width: 0;
  flex-shrink: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.header-notice-pill:hover {
  background: rgba(255, 215, 71, 0.14);
  border-color: rgba(255, 215, 71, 0.5);
  box-shadow: 0 0 12px rgba(255, 215, 71, 0.2);
}

.notice-pill-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffe047;
  background: rgba(255, 215, 71, 0.18);
  border: 1px solid rgba(255, 215, 71, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-pill-text {
  font-size: 12px;
  color: #e0e0e8;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 1080px) {
  .notice-pill-text {
    max-width: 220px;
  }
}

@media (max-width: 820px) {
  .notice-pill-text {
    display: none;
  }
  .header-notice-pill {
    padding: 3px 6px;
    gap: 0;
  }
}

@media (max-width: 520px) {
  .header-notice-pill {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  color: #9e9ea6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: #ffffff;
}

.header-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #22222c 0%, #17171f 100%);
  border: 1px solid rgba(255, 215, 71, 0.35);
  color: #ffe047;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-cta-btn:hover {
  background: linear-gradient(180deg, #2c2c3a 0%, #1f1f2a 100%);
  border-color: rgba(255, 215, 71, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(255, 215, 71, 0.25);
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0a0a0d;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#unity-canvas:focus,
#unity-canvas:focus-visible,
#unity-canvas:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  text-align: center;
  z-index: 20;
}

#unity-loading-text {
  font-family: var(--font-game-body);
  font-size: var(--font-game-min, 15px);
  font-weight: 700;
  color: var(--rubik-gold-primary, #ffe047);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

#unity-logo { display: none !important; }

#unity-progress-bar-empty { width: 260px; height: 16px; margin: 0 auto; background: #0a0814; border: 1.5px solid rgba(255, 214, 71, 0.45); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.6); }

#unity-progress-bar-full { width: 0%; height: 100%; background: linear-gradient(180deg, #ffe047 0%, #d4af37 100%); border-radius: 8px; transition: width 0.15s ease-out; }

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 30;
}


/* --- Mobile Block Overlay Dialog --- */
.mobile-block-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(20, 24, 40, 0.88) 0%, rgba(6, 7, 12, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  box-sizing: border-box;
}

.mobile-block-card,
.play-mobile-card {
  font-family: var(--font-game-body) !important;
  max-width: 460px;
  width: 100%;
  background: 
    linear-gradient(180deg, rgba(22, 24, 38, 0.98) 0%, rgba(12, 13, 20, 0.99) 100%) padding-box,
    linear-gradient(135deg, #ffd700 0%, #ff6b00 25%, #eb1224 50%, #006bfa 75%, #00d13d 100%) border-box;
  border: 2px solid transparent;
  border-radius: 26px;
  padding: 34px 28px 28px 28px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 
    0 26px 70px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(255, 215, 71, 0.20),
    0 0 65px rgba(0, 107, 250, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: modalPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-block-card *,
.play-mobile-card * {
  font-family: var(--font-game-body) !important;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mobile-block-badge {
  font-family: var(--font-game-body) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffe047;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 107, 0, 0.12) 100%);
  border: 1px solid rgba(255, 215, 71, 0.45);
  box-shadow: 0 0 16px rgba(255, 215, 71, 0.22);
  padding: 5px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.mobile-block-icon-wrapper {
  position: relative;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-block-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: conic-gradient(from 180deg at 50% 50%, #ffd700, #ff6b00, #eb1224, #006bfa, #00d13d, #ffd700);
  opacity: 0.65;
  filter: blur(10px);
  z-index: 0;
  animation: iconHaloSpin 14s linear infinite;
}

@keyframes iconHaloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mobile-block-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: block;
}

.mobile-block-title {
  font-family: var(--font-game-body) !important;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, #ffffff 20%, #ffd747 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  margin: 0 0 12px 0;
}

.mobile-block-desc {
  font-family: var(--font-game-body) !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: #c8c8da;
  margin: 0 0 16px 0;
}

.desc-hl-gold { color: #ffd747; font-weight: 600; }
.desc-hl-blue { color: #60a5fa; font-weight: 600; }
.desc-hl-green { color: #00e676; font-weight: 600; }
.desc-hl-orange { color: #ff9100; font-weight: 600; }

.mobile-block-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  width: 100%;
}

.feature-chip {
  font-family: var(--font-game-body) !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-gold {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.38);
  color: #ffe047;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.chip-green {
  background: rgba(0, 209, 61, 0.12);
  border: 1px solid rgba(0, 209, 61, 0.38);
  color: #00e676;
  box-shadow: 0 0 10px rgba(0, 209, 61, 0.15);
}

.chip-blue {
  background: rgba(0, 107, 250, 0.14);
  border: 1px solid rgba(0, 107, 250, 0.38);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(0, 107, 250, 0.15);
}

.chip-dot {
  font-size: 10px;
  line-height: 1;
}

.mobile-block-highlight {
  font-family: var(--font-game-body) !important;
  font-size: 13px;
  font-weight: 600;
  color: #ffe047;
  margin: 0 0 20px 0;
  line-height: 1.45;
  background: rgba(255, 215, 71, 0.08);
  border: 1px solid rgba(255, 215, 71, 0.2);
  padding: 8px 14px;
  border-radius: 10px;
}

.mobile-block-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.mobile-block-badges .store-badge-link {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  border-radius: 9px;
  display: inline-block;
}

.mobile-block-badges .store-badge-link:not(.store-badge-disabled):hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 209, 61, 0.35);
}

.mobile-block-badges .store-badge-disabled {
  opacity: 0.65;
  filter: grayscale(30%);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  cursor: default;
}

.mobile-block-badges .store-badge-link img {
  width: 145px;
  height: 42px;
  display: block;
}

/* --- Play on Mobile Modal Overlay (External Store Badges Modal) --- */
.play-mobile-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(20, 24, 40, 0.88) 0%, rgba(6, 7, 12, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 24px;
  box-sizing: border-box;
}

.play-mobile-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.play-mobile-close-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.play-mobile-close-btn:hover {
  background: rgba(255, 215, 71, 0.22);
  border-color: #ffd747;
  color: #ffd747;
  box-shadow: 0 0 18px rgba(255, 215, 71, 0.45);
  transform: scale(1.08);
}

.play-mobile-close-btn:hover svg {
  transform: rotate(90deg);
}

.play-mobile-close-btn:active {
  transform: scale(0.95);
}

.store-badge-status-note {
  font-family: var(--font-game-body) !important;
  margin-top: 18px;
  font-size: 12.5px;
  color: #a8a8ba;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.status-active-label {
  color: #00e676;
  font-weight: 600;
}

.status-sep {
  color: #555566;
}

.store-badge-active-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00d13d;
  box-shadow: 0 0 10px #00d13d;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.store-badge-pending-text {
  color: #88889a;
}

/* Hide footer store badges & ASO body content on mobile device (since blocking dialog already shows app CTA) */
body.is-mobile-device #web-portal-footer .footer-col-right,
body.is-mobile-device #web-portal-footer .store-badge-container,
body.is-mobile-device #aso-content-section {
  display: none !important;
}


/* =============================================================================
   Light Mode Theme Styling
   ============================================================================= */
body.theme-light {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.theme-light #web-portal-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .header-brand-title {
  color: #0f172a;
}

body.theme-light .header-brand-tag {
  background: rgba(0, 107, 250, 0.10);
  border-color: rgba(0, 107, 250, 0.25);
  color: #006bfa;
}

body.theme-light .header-notice-pill {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.30);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.theme-light .notice-pill-badge {
  background: rgba(245, 158, 11, 0.20);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

body.theme-light .notice-pill-text {
  color: #334155;
}

body.theme-light .header-link {
  color: #64748b;
}

body.theme-light .header-link:hover {
  color: #0f172a;
}

body.theme-light .header-cta-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

body.theme-light .header-cta-btn:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(0, 107, 250, 0.45);
  color: #006bfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 107, 250, 0.15);
}

body.theme-light .header-cta-btn svg {
  fill: #006bfa;
}

body.theme-light #unity-canvas {
  background: #ebf0f5;
}

body.theme-light .game-sub-bar {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .sub-bar-hint {
  color: #64748b;
}

body.theme-light .theme-toggle-btn {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-light .theme-toggle-btn:hover {
  background: #e2e8f0;
  border-color: rgba(0, 107, 250, 0.35);
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}


body.theme-light .mobile-block-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

body.theme-light .mobile-block-title {
  color: #0f172a;
}

body.theme-light .mobile-block-desc {
  color: #475569;
}

/* Scroll Cue & Below-Fold Lazy Load Placeholder */
.scroll-cue-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  color: #94a3b8;
  font-size: var(--font-game-min, 14px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-cue-container:hover {
  color: #38bdf8;
  transform: translateY(2px);
}

.scroll-cue-arrow {
  display: inline-block;
  font-size: 1.2em;
  animation: scrollCueBounce 1.8s infinite ease-in-out;
}

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

body.theme-light .scroll-cue-container {
  color: #64748b;
}

body.theme-light .scroll-cue-container:hover {
  color: #0284c7;
}
