@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800&display=swap');

:root {
  /* Premium Dark Theme - HSL for better control */
  --bg: hsl(220, 45%, 5%);
  --bg-soft: hsl(220, 40%, 10%);
  --panel: hsl(220, 35%, 15%);
  --ink: hsl(210, 100%, 96%);
  --ink-soft: hsl(210, 30%, 75%);
  --accent: hsl(42, 100%, 50%); /* Gold */
  --accent-2: hsl(190, 100%, 50%); /* Cyan/Elixir */
  --line: hsla(210, 50%, 30%, 0.4);
  
  /* Clash of Clans Colors */
  --coc-stone: #4e4e4e;
  --coc-gold: #fcc200;
  --coc-elixir: #ff00ff;
  --coc-elixir-bright: #00d2ff; /* Using cyan as requested for elixir-blue */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  background: url('pinksky.jpg') center/cover no-repeat fixed;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 10, 32, 0.5) 0%, var(--bg) 110%);
  z-index: -2;
}

body.is-loading {
  overflow: hidden;
}

/* --- Splash Screen (Clash of Clans Style) --- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at 50% 40%, #1a2a44 0%, #050a14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.splash-container {
  width: min(80vw, 400px);
  text-align: center;
}

.coc-loader-frame {
  height: 32px;
  background: #333;
  border: 4px solid #1a1a1a;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 0 #000,
    inset 0 2px 4px rgba(0,0,0,0.5);
}

.coc-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #ff00ff, #b000b0);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
  transition: width 0.1s linear;
  position: relative;
}

.coc-loader-bar::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: barSheen 1.5s infinite;
}

.splash-status {
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.splash-percent {
  margin-top: 0.2rem;
  font-size: 1.2rem;
  color: #ff00ff;
}

@keyframes barSheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Solar Flash Burn Transition --- */
.page-solar-burn {
  pointer-events: none;
  position: relative;
}

.page-solar-burn::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #ffcc00 40%, #ff6600 75%, transparent 100%);
  z-index: 9999;
  mix-blend-mode: screen;
  animation: solarFlash 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes solarFlash {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: brightness(1) blur(0);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
    filter: brightness(4) blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1.6);
    filter: brightness(6) blur(20px);
  }
}

.solar-burn-fade {
  animation: vaporize 0.65s ease-in forwards;
}

@keyframes vaporize {
  0% { filter: brightness(1) contrast(1) blur(0); opacity: 1; }
  100% { filter: brightness(8) contrast(1.5) blur(15px); opacity: 0; }
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}

.shell {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.hero {
  padding: 4rem 0 6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -100px;
  top: -120px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2), rgba(0, 210, 255, 0));
  animation: heroFloatA 12s ease-in-out infinite;
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 177, 0, 0.16), rgba(255, 177, 0, 0));
  animation: heroFloatB 10s ease-in-out infinite;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.8px;
  animation: brandGlow 3.6s ease-in-out infinite;
}

.ghost-btn {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 8px 18px rgba(0, 210, 255, 0.2);
}

.hero-wrap {
  padding-top: 3.5rem;
  animation: heroRise 640ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 360px);
  gap: 1.6rem;
  align-items: center;
}

.hero-copy-block {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0.45rem 0 0.75rem;
  max-width: 820px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  margin: 0;
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-globe {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(55, 109, 156, 0.7);
  background: linear-gradient(160deg, rgba(10, 30, 53, 0.88), rgba(6, 18, 34, 0.92));
  border-radius: 20px;
  padding: 1rem 0.9rem 0.8rem;
  box-shadow: 0 12px 28px rgba(1, 9, 22, 0.42), inset 0 0 0 1px rgba(108, 170, 223, 0.14);
}

.globe-scene,
.earth-scene {
  width: min(62vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1800px;
}

.earth-frame {
  width: min(62vw, 284px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.45));
}

.earth-frame::before,
.earth-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.earth-frame::before {
  inset: 8%;
  border: 1px solid rgba(119, 220, 255, 0.2);
  box-shadow: 0 0 28px rgba(22, 196, 255, 0.18), inset 0 0 18px rgba(135, 220, 255, 0.1);
}

.earth-frame::after {
  inset: -4%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12), rgba(0, 210, 255, 0) 66%);
  filter: blur(10px);
}

.earth-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: grab;
}

.earth-canvas:active {
  cursor: grabbing;
}

.globe {
  --tilt-x: -4deg;
  --tilt-y: 0deg;
  --texture-shift: 0px;
  --spin: 0deg;
  --cloud-spin: 0deg;
  --glow-x: 32%;
  --glow-y: 26%;
  width: min(62vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1);
  cursor: grab;
  isolation: isolate;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.globe::before {
  inset: -4%;
  border: 1px solid rgba(117, 214, 255, 0.28);
  box-shadow: 0 0 26px rgba(0, 210, 255, 0.16);
  opacity: 0.85;
}

.globe::after {
  inset: -9%;
  background:
    radial-gradient(circle at 50% 50%, rgba(70, 201, 255, 0.14), rgba(70, 201, 255, 0) 67%);
  filter: blur(8px);
  z-index: -1;
}

.globe[data-theme="sun"]::before {
  border-color: rgba(255, 150, 0, 0.35);
  box-shadow: 0 0 40px rgba(255, 100, 0, 0.25);
}

.globe[data-theme="sun"]::after {
  background: radial-gradient(circle at 50% 50%, rgba(255, 120, 0, 0.25) 0%, transparent 75%);
}

.globe:active {
  cursor: grabbing;
}

.globe-core,
.globe-clouds,
.globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.globe-core {
  border: 1px solid rgba(164, 222, 255, 0.34);
  overflow: hidden;
  box-shadow: inset -22px -28px 44px rgba(2, 7, 16, 0.56), inset 18px 20px 30px rgba(143, 220, 255, 0.22), 0 0 34px rgba(0, 210, 255, 0.18);
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 68% 72%, rgba(65, 162, 255, 0.18), rgba(0, 210, 255, 0) 58%),
    radial-gradient(circle at 34% 38%, rgba(102, 220, 255, 0.16), rgba(102, 220, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, #379ed0 0%, #15608d 48%, #0a3450 78%, #061827 100%);
}

/* Realistic Sun Theme Transformation */
.globe[data-theme="sun"] .globe-core {
  border-color: rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 50% 50%, #ffcc33 0%, #ff7700 100%);
  box-shadow: 
    inset 0 0 50px rgba(255, 100, 0, 0.8),
    inset 20px 20px 60px rgba(255, 255, 0, 0.4),
    0 0 80px rgba(255, 150, 0, 0.6),
    0 0 120px rgba(255, 50, 0, 0.3);
}

/* Realistic Jupiter Theme Transformation */
.globe[data-theme="jupiter"] .globe-core {
  border-color: rgba(216, 202, 175, 0.3);
  background: radial-gradient(circle at 50% 50%, #e3d4b6 0%, #b89c72 60%, rgba(70, 50, 30, 1) 100%);
  box-shadow: 
    inset -15px -15px 40px rgba(70, 50, 30, 0.4),
    inset 15px 15px 30px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(139, 108, 66, 0.2);
}

.globe-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(32% 18% at 18% 34%, rgba(86, 193, 106, 0.95) 0 45%, transparent 56%),
    radial-gradient(26% 16% at 28% 56%, rgba(79, 178, 96, 0.94) 0 44%, transparent 55%),
    radial-gradient(36% 16% at 48% 34%, rgba(100, 201, 105, 0.96) 0 42%, transparent 54%),
    radial-gradient(30% 13% at 50% 58%, rgba(98, 191, 96, 0.92) 0 42%, transparent 54%),
    radial-gradient(34% 16% at 70% 36%, rgba(87, 178, 84, 0.96) 0 42%, transparent 54%),
    radial-gradient(20% 13% at 82% 57%, rgba(71, 154, 73, 0.92) 0 41%, transparent 53%),
    radial-gradient(16% 9% at 88% 69%, rgba(95, 186, 96, 0.84) 0 40%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 44%, rgba(0, 0, 0, 0.14) 100%);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position-x: calc(var(--texture-shift) * -1);
  transform: translateX(calc(var(--texture-shift) * -0.15));
  filter: saturate(1.02) blur(0.18px);
}

.globe[data-theme="sun"] .globe-core::before {
  background: url('sun-plasma.png') center/200% 110% repeat-x;
  background-position-x: calc(var(--texture-shift) * -1.25);
  filter: saturate(1.3) contrast(1.1) brightness(1.15);
  mix-blend-mode: hard-light;
  opacity: 0.98;
  border-radius: 50%;
  transform: scale(1.05); /* Slight scale to hide edges */
  animation: solarPulse 6s ease-in-out infinite alternate;
}

.globe[data-theme="jupiter"] .globe-core::before {
  background: url('jupiter-texture.png') center/180% 100% repeat-x;
  background-position-x: calc(var(--texture-shift) * -0.9);
  filter: saturate(1.1) contrast(1.05) brightness(1.02);
  mix-blend-mode: multiply;
  opacity: 0.85;
  border-radius: 50%;
}

.globe[data-theme="jupiter"] .globe-core::after {
  background: 
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 30%, rgba(0, 0, 0, 0.08) 70%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

@keyframes solarPulse {
  from { filter: saturate(1.2) brightness(1.1); transform: scale(1.05); }
  to { filter: saturate(1.4) brightness(1.25); transform: scale(1.08); }
}

.globe-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 62% 62%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 28%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0 16px,
      rgba(142, 223, 255, 0.17) 16px 18px
    );
  background-position-x: var(--texture-shift);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.globe-clouds {
  pointer-events: none;
  opacity: 0.48;
  mix-blend-mode: screen;
  background:
    radial-gradient(22% 12% at 16% 34%, rgba(233, 246, 255, 0.74), transparent 68%),
    radial-gradient(26% 10% at 42% 28%, rgba(233, 246, 255, 0.7), transparent 70%),
    radial-gradient(28% 12% at 62% 46%, rgba(233, 246, 255, 0.66), transparent 70%),
    radial-gradient(20% 10% at 80% 62%, rgba(233, 246, 255, 0.7), transparent 72%);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position-x: calc(var(--texture-shift) * -0.65);
  transform: translateX(calc(var(--texture-shift) * -0.08));
}

.globe[data-theme="sun"] .globe-clouds {
  background:
    radial-gradient(22% 12% at 16% 34%, rgba(255, 230, 0, 0.8), transparent 68%),
    radial-gradient(26% 10% at 42% 28%, rgba(255, 180, 0, 0.7), transparent 70%),
    radial-gradient(28% 12% at 62% 46%, rgba(255, 120, 0, 0.6), transparent 70%),
    radial-gradient(20% 10% at 80% 62%, rgba(255, 200, 0, 0.7), transparent 72%);
  filter: blur(4px) brightness(1.5) contrast(1.2);
  mix-blend-mode: color-dodge;
  animation: solarFlare 5s ease-in-out infinite alternate;
}

@keyframes solarFlare {
  0% { transform: translateX(calc(var(--texture-shift) * -0.08)) scale(1); opacity: 0.5; }
  100% { transform: translateX(calc(var(--texture-shift) * -0.08)) scale(1.1); opacity: 0.8; }
}

.globe-shade {
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0) 58%),
    linear-gradient(110deg, rgba(2, 10, 18, 0.2), rgba(2, 10, 18, 0) 38%, rgba(2, 10, 18, 0.42) 90%);
}

.globe[data-theme="sun"] .globe-clouds {
  background: radial-gradient(circle at 50% 50%, rgba(255, 100, 0, 0.3), transparent 70%);
  filter: blur(10px) brightness(1.5);
  animation: solarFlare 4s ease-in-out infinite alternate;
}

.globe[data-theme="jupiter"] .globe-clouds {
  background: 
    radial-gradient(40% 10% at 30% 40%, rgba(255, 255, 255, 0.1), transparent 80%),
    radial-gradient(35% 8% at 70% 60%, rgba(255, 255, 255, 0.08), transparent 85%);
  filter: blur(8px);
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.globe[data-theme="sun"] .globe-shade {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.5), transparent 30%),
    radial-gradient(circle at 71% 73%, rgba(255, 50, 0, 0.2), rgba(0, 0, 0, 0.1) 62%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(255, 80, 0, 0.2) 100%);
  mix-blend-mode: hard-light;
}

.globe[data-theme="jupiter"] .globe-shade {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 71% 73%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.52) 62%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(0, 0, 0, 0.34) 100%);
  mix-blend-mode: multiply;
}

.orbit-ring {
  display: none;
}

.orbit-ring-a {
  width: 104%;
  height: 104%;
  transform: translate(-50%, -50%) rotateX(76deg) rotateZ(var(--spin));
  animation: orbitSpin 18s linear infinite;
}

.orbit-ring-b {
  display: none;
}

.globe-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.btn {
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-main {
  background: linear-gradient(135deg, var(--accent), #ff7e1f);
  color: #1e1200;
  box-shadow: 0 4px 15px rgba(255, 177, 0, 0.3);
}

.btn-main:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(255, 177, 0, 0.5);
}

.btn-sub {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.btn-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ink-soft);
  transform: translateY(-4px);
}

.section {
  padding: 5rem 0;
}

.section-head h2 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.controls {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

#searchInput {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 38, 0.8);
  color: var(--ink);
  outline: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(14, 30, 49, 0.85);
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  color: #071322;
  background: var(--accent-2);
  border-color: transparent;
}

.games-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.monetize-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.cricket-box {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 35, 58, 0.95), rgba(8, 16, 29, 0.97));
  padding: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.score-row p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.cricket-status {
  margin: 0.8rem 0 0.9rem;
  color: var(--ink-soft);
}

.room-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(110px, 150px) auto;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.room-bar input {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1e34;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shot-btn {
  border: 1px solid var(--line);
  background: #16365c;
  color: #e9f3ff;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}

.shot-btn.ghost {
  background: transparent;
}

@media (max-width: 760px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-globe {
    order: -1;
  }

  .globe {
    width: min(68vw, 220px);
  }

  .room-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .demo-certificate-frame {
    padding: 1.1rem;
  }
}

.hub-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.hub-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, hsla(220, 30%, 12%, 0.8), hsla(220, 40%, 5%, 0.9));
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-2);
  box-shadow: 0 20px 40px rgba(0, 210, 255, 0.25);
}

.hub-card h3 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.hub-card input {
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1e34;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
}

.hub-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.small-note {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.demo-certificate-card {
  margin-top: 1.2rem;
  border: 1px solid rgba(212, 177, 84, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 177, 0, 0.09), transparent 30%),
    linear-gradient(165deg, rgba(20, 32, 48, 0.98), rgba(7, 13, 24, 0.98));
  padding: 1rem;
  box-shadow: 0 18px 36px rgba(1, 8, 20, 0.32);
}

.demo-certificate-frame {
  border: 2px solid rgba(212, 177, 84, 0.48);
  border-radius: 16px;
  padding: 1.6rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(233, 241, 251, 0.94));
  color: #0f172a;
}

.demo-certificate-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.78rem;
  color: #7c5b0a;
  font-weight: 700;
}

.demo-certificate-frame h3 {
  margin: 0.55rem 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #14233a;
}

.demo-certificate-copy {
  margin: 0 auto;
  max-width: 620px;
  color: #475569;
  line-height: 1.6;
}

.demo-certificate-name {
  margin-top: 1.3rem;
  font-family: "Georgia", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0c4a6e;
}

.demo-certificate-role,
.demo-certificate-date {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
}

.demo-certificate-role {
  color: #8a3412;
  font-weight: 700;
}

.demo-certificate-date {
  color: #166534;
  font-weight: 700;
}

.demo-certificate-signoff {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: flex-end;
  gap: 1rem;
  color: #334155;
  font-size: 0.95rem;
}

.demo-signature {
  display: block;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 2.4rem;
  line-height: 1;
  color: #4b5563;
}

.demo-signoff-seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(100, 116, 139, 0.7);
  display: inline-grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle, rgba(255,255,255,0.96) 0 42%, rgba(226, 232, 240, 0.95) 43% 72%, rgba(248, 250, 252, 0.98) 73% 100%);
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.28);
  color: #334155;
  font-size: 0.6rem;
  line-height: 1.05;
  transform: rotate(-12deg);
}

.demo-signoff-seal strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.demo-signoff-copy {
  display: inline-grid;
  justify-items: start;
  gap: 0.12rem;
  text-align: left;
}

.demo-company {
  font-size: 0.88rem;
  color: #111827;
}

.demo-sign-name {
  font-weight: 700;
  color: #111827;
}

@media (max-width: 640px) {
  .demo-certificate-signoff {
    flex-direction: column;
    align-items: center;
  }

  .demo-signoff-copy {
    justify-items: center;
    text-align: center;
  }
}

.cards-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.player-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1c30;
  overflow: hidden;
}

.player-card.epic {
  border-color: #cf8fff;
  box-shadow: 0 0 0 1px rgba(207, 143, 255, 0.3) inset;
}

.player-card.rare {
  border-color: #58bcff;
  box-shadow: 0 0 0 1px rgba(88, 188, 255, 0.3) inset;
}

.player-card.normal {
  border-color: #4b668a;
}

.player-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.player-meta {
  padding: 0.6rem;
}

.player-meta h4 {
  margin: 0;
  font-size: 0.98rem;
}

.player-meta p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.card-actions {
  margin-top: 0.55rem;
}

.tiny-btn {
  border: 1px solid var(--line);
  background: #123155;
  color: #e7f2ff;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.leaderboard-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.leader-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: #0f2138;
  font-size: 0.88rem;
}

.monetize-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(19, 36, 58, 0.9), rgba(8, 16, 29, 0.95));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.monetize-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.monetize-card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.home-page .monetize-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.home-page .monetize-card {
  padding: 1.35rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-page .monetize-card h3 {
  font-size: 1.7rem;
  line-height: 1.1;
}

.home-page .monetize-card p {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.home-page .monetize-card .shot-btn {
  margin-top: 1rem;
  display: inline-block;
  width: fit-content;
  padding: 0.65rem 1.1rem;
  font-size: 1.05rem;
}

.home-page .hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.15rem;
}

.home-page .hub-card {
  min-height: 210px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .home-page .monetize-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .home-page .monetize-card {
    min-height: unset;
    padding: 1.1rem;
    gap: 0.75rem;
  }

  .home-page .monetize-card h3 {
    font-size: 1.35rem;
  }

  .home-page .monetize-card p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-page .monetize-card .shot-btn {
    width: 100%;
    text-align: center;
  }

  .home-page .hub-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hub-card {
    min-height: unset;
    padding: 1.1rem;
  }
}

.game-card {
  background: linear-gradient(165deg, rgba(22, 39, 63, 0.9), rgba(8, 16, 29, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.interactive-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) translate3d(var(--mx, 0px), var(--my, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
  will-change: transform;
  overflow: hidden;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0) 52%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -30%;
  width: 54%;
  height: 160%;
  transform: rotate(18deg) translateX(var(--sheen-x, -120%));
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms ease, opacity 240ms ease;
}

.interactive-card:hover,
.interactive-card:focus-within {
  border-color: rgba(154, 224, 255, 0.95);
  box-shadow: 0 28px 42px rgba(1, 8, 20, 0.54);
}

.interactive-card:hover::before,
.interactive-card:focus-within::before {
  opacity: 1;
}

.interactive-card:hover::after,
.interactive-card:focus-within::after {
  opacity: 1;
  transform: rotate(18deg) translateX(var(--sheen-x, 140%));
}

.interactive-card > * {
  position: relative;
  z-index: 1;
  transform: translateZ(18px);
}

.interactive-card > a,
.interactive-card > button,
.interactive-card .shot-btn,
.interactive-card .tiny-btn,
.interactive-card input {
  transform: translateZ(30px);
}

.interactive-card.card-in {
  animation: cardIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: var(--delay, 0ms);
}

.interactive-card.card-pop {
  animation: popTap 320ms ease;
}

.home-page .interactive-card {
  animation:
    cardIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) both,
    cardFloat 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0ms), calc(var(--delay, 0ms) + 620ms);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: perspective(900px) translate3d(0, 18px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(900px) translate3d(0, 0, 0) scale(1);
  }
}

@keyframes popTap {
  0% { transform: perspective(900px) scale(1); }
  50% { transform: perspective(900px) scale(0.985) translateY(2px); }
  100% { transform: perspective(900px) scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bgDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroFloatA {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
  50% { transform: translateY(16px) translateX(-12px); opacity: 1; }
}

@keyframes heroFloatB {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.78; }
  50% { transform: translateY(-14px) translateX(10px); opacity: 1; }
}

@keyframes brandGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(154, 224, 255, 0); }
  50% { text-shadow: 0 0 12px rgba(154, 224, 255, 0.42); }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes globeScan {
  from { opacity: 0.56; }
  50% { opacity: 0.9; }
  to { opacity: 0.56; }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
}

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

.game-thumb {
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.game-body {
  padding: 0.8rem;
}

.genre {
  margin: 0;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.game-title {
  margin: 0.3rem 0 0;
  font-size: 1.08rem;
}

.game-desc {
  margin: 0.4rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-link {
  display: inline-block;
  text-decoration: none;
  color: #061625;
  background: var(--accent-2);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
}

.empty {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.contact a {
  color: #9ad8ff;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1rem;
  color: var(--ink-soft);
}

.reveal-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-target.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .interactive-card,
  .interactive-card::before,
  .interactive-card.card-in,
  .interactive-card.card-pop,
  .reveal-target,
  .page-loader,
  .loader-spinner,
  .hero-wrap,
  .hero::before,
  .hero::after,
  .orbit-ring-a,
  .orbit-ring-b,
  .btn::before,
  body,
  .brand {
    transition: none !important;
    animation: none !important;
  }
}
