:root {
  color-scheme: dark;
  --gold: #ffd700;
  --gold-2: #ffa500;
  --dark: #050810;
  --panel: rgba(13, 21, 48, 0.72);
  --panel-2: rgba(7, 12, 28, 0.86);
  --accent: #00e5ff;
  --accent-2: #7b2fff;
  --green: #00ff88;
  --red: #ff3c5f;
  --text: #d8e6fb;
  --muted: #7890b8;
  --line: rgba(0, 229, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background: var(--dark);
  color: var(--text);
  font-family: Rajdhani, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 18% 0%, rgba(123, 47, 255, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 58% 48% at 82% 100%, rgba(0, 229, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.82) 0%, rgba(5, 8, 16, 0.92) 56%, #050810 100%),
    url("assets/casino-hero-bg.png") center top / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.05), transparent 32%),
    radial-gradient(circle at 50% 46%, rgba(255, 215, 0, 0.045), transparent 42%);
}

a {
  color: inherit;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.floating-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-shape {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0.28;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.22));
  animation: floatDrift 13s ease-in-out infinite;
}

.float-shape.chip,
.float-shape.ball {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.36);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(123, 47, 255, 0.2));
  color: rgba(255, 255, 255, 0.72);
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  font-weight: 900;
}

.float-shape.ball {
  border-color: rgba(0, 229, 255, 0.32);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 255, 136, 0.12));
}

.float-shape.diamond {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(0, 229, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(255, 215, 0, 0.12));
  transform: rotate(45deg);
  animation-name: floatDiamond;
}

.float-shape.ring {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 60, 95, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 60, 95, 0.04), 0 0 24px rgba(255, 60, 95, 0.1);
}

.float-shape.bill {
  width: 134px;
  height: 58px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 88%, rgba(255, 255, 255, 0.12) 88%),
    radial-gradient(circle at 18% 50%, rgba(255, 215, 0, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 82, 54, 0.34));
  color: rgba(220, 255, 235, 0.78);
  font-family: "Share Tech Mono", monospace;
  transform: rotate(-12deg);
  animation-name: moneyFloat;
  animation-duration: 11s;
}

.float-shape.bill.prize {
  width: 150px;
  height: 62px;
  border-color: rgba(0, 229, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 88%, rgba(255, 255, 255, 0.12) 88%),
    radial-gradient(circle at 18% 50%, rgba(255, 215, 0, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(50, 72, 180, 0.34));
}

.float-shape.bill.jackpot {
  width: 174px;
  height: 66px;
  border-color: rgba(255, 215, 0, 0.48);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 12%, transparent 12% 88%, rgba(255, 255, 255, 0.14) 88%),
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(255, 215, 0, 0.24), rgba(123, 47, 255, 0.34));
  color: rgba(255, 248, 214, 0.84);
  animation-duration: 10s;
}

.float-shape.bill b {
  font-size: 18px;
  letter-spacing: 1px;
}

.float-shape.bill small {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: rgba(255, 215, 0, 0.72);
  font-size: 9px;
  letter-spacing: 1px;
}

.float-shape:nth-child(1) { left: 6%; top: 22%; animation-delay: -2s; }
.float-shape:nth-child(2) { left: 17%; top: 68%; animation-delay: -9s; }
.float-shape:nth-child(3) { left: 83%; top: 24%; animation-delay: -5s; }
.float-shape:nth-child(4) { left: 89%; top: 70%; animation-delay: -13s; }
.float-shape:nth-child(5) { left: 31%; top: 10%; animation-delay: -7s; }
.float-shape:nth-child(6) { left: 66%; top: 13%; animation-delay: -16s; }
.float-shape:nth-child(7) { left: 10%; top: 48%; animation-delay: -11s; }
.float-shape:nth-child(8) { left: 73%; top: 52%; animation-delay: -3s; }
.float-shape:nth-child(9) { left: 3%; top: 58%; animation-delay: -4s; }
.float-shape:nth-child(10) { left: 78%; top: 6%; animation-delay: -8s; }
.float-shape:nth-child(11) { left: 42%; top: 74%; animation-delay: -2s; }
.float-shape:nth-child(12) { left: 88%; top: 44%; animation-delay: -10s; }
.float-shape:nth-child(13) { left: 21%; top: 35%; animation-delay: -6s; }
.float-shape:nth-child(14) { left: 58%; top: 31%; animation-delay: -12s; }
.float-shape:nth-child(15) { left: 36%; top: 88%; animation-delay: -4s; }
.float-shape:nth-child(16) { left: 70%; top: 82%; animation-delay: -9s; }

.float-shape.b50 { animation-duration: 12s; }
.float-shape.b100 { animation-duration: 10s; }
.float-shape.b500 { animation-duration: 14s; }
.float-shape.b1m { animation-duration: 9s; opacity: 0.3; }

.float-shape.alt {
  opacity: 0.22;
  animation-duration: 16s;
}

.float-shape.fast {
  opacity: 0.24;
  animation-duration: 9s;
}

@keyframes floatDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(46px, -46px, 0) rotate(16deg) scale(1.1); }
  50% { transform: translate3d(-28px, 18px, 0) rotate(-14deg) scale(0.96); }
  75% { transform: translate3d(30px, 42px, 0) rotate(10deg) scale(1.04); }
}

@keyframes floatDiamond {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(45deg) scale(1); }
  25% { transform: translate3d(-42px, -36px, 0) rotate(72deg) scale(1.1); }
  50% { transform: translate3d(28px, 22px, 0) rotate(26deg) scale(0.95); }
  75% { transform: translate3d(-18px, 44px, 0) rotate(60deg) scale(1.04); }
}

@keyframes moneyFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-12deg) scale(1); }
  20% { transform: translate3d(44px, -38px, 0) rotate(5deg) scale(1.04); }
  45% { transform: translate3d(78px, 8px, 0) rotate(18deg) scale(0.98); }
  70% { transform: translate3d(18px, 50px, 0) rotate(-22deg) scale(1.06); }
}

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  animation: twinkle 3.4s ease-in-out infinite;
}

.stars i:nth-child(1) { left: 8%; top: 8%; animation-delay: 0.2s; }
.stars i:nth-child(2) { left: 22%; top: 18%; animation-delay: 1.1s; }
.stars i:nth-child(3) { left: 38%; top: 7%; animation-delay: 0.8s; }
.stars i:nth-child(4) { left: 54%; top: 16%; animation-delay: 1.8s; }
.stars i:nth-child(5) { left: 73%; top: 10%; animation-delay: 0.5s; }
.stars i:nth-child(6) { left: 91%; top: 19%; animation-delay: 2.1s; }
.stars i:nth-child(7) { left: 15%; top: 44%; animation-delay: 1.5s; }
.stars i:nth-child(8) { left: 29%; top: 64%; animation-delay: 0.9s; }
.stars i:nth-child(9) { left: 47%; top: 52%; animation-delay: 2.5s; }
.stars i:nth-child(10) { left: 68%; top: 43%; animation-delay: 1.3s; }
.stars i:nth-child(11) { left: 84%; top: 58%; animation-delay: 0.4s; }
.stars i:nth-child(12) { left: 7%; top: 78%; animation-delay: 2.7s; }
.stars i:nth-child(13) { left: 19%; top: 91%; animation-delay: 1.9s; }
.stars i:nth-child(14) { left: 34%; top: 83%; animation-delay: 0.6s; }
.stars i:nth-child(15) { left: 51%; top: 88%; animation-delay: 1.2s; }
.stars i:nth-child(16) { left: 62%; top: 72%; animation-delay: 2.2s; }
.stars i:nth-child(17) { left: 78%; top: 82%; animation-delay: 1.6s; }
.stars i:nth-child(18) { left: 94%; top: 88%; animation-delay: 0.7s; }
.stars i:nth-child(19) { left: 44%; top: 28%; animation-delay: 2.8s; }
.stars i:nth-child(20) { left: 88%; top: 34%; animation-delay: 1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.16; transform: scale(0.55); }
}

.site-header,
.container,
.footer-note {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  justify-items: center;
  padding: 32px 18px 14px;
  text-align: center;
}

.logo {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
}

.logo-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 215, 0, 0.36);
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 20px;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.22);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.45)); }
  50% { filter: drop-shadow(0 0 34px rgba(255, 165, 0, 0.8)); }
}

.logo-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 8vw, 78px);
  line-height: 0.92;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffffff 42%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header p {
  margin: 2px 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  padding: 6px 16px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
}

.date-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 60, 95, 0.1);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.action-link,
.source-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 229, 255, 0.08);
}

.action-link.primary,
.source-cta {
  border-color: rgba(255, 215, 0, 0.52);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  box-shadow: 0 16px 34px rgba(255, 165, 0, 0.22);
}

.container {
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 14px 0;
}

.tab {
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 8px;
  background: rgba(13, 21, 48, 0.66);
  color: var(--muted);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.tab.active,
.tab:hover {
  border-color: rgba(255, 215, 0, 0.58);
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
}

.control-panel,
.hero-card,
.ai-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.control-panel article {
  border: 1px solid rgba(255, 215, 0, 0.11);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px;
  text-align: center;
}

.control-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.control-panel strong {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0;
  line-height: 1;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: center;
  min-height: 188px;
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 215, 0, 0.04) 48%, transparent 100%);
}

.hero-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-spotlight article {
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 215, 0, 0.14), transparent 34%),
    rgba(0, 0, 0, 0.28);
  padding: 13px 14px;
}

.hero-spotlight span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-spotlight strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: 0;
  line-height: 1;
}

.daily-playbook {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.daily-playbook article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 14px;
  background: rgba(13, 21, 48, 0.58);
  padding: 15px;
  backdrop-filter: blur(12px);
}

.daily-playbook span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  grid-row: span 2;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-weight: 900;
}

.daily-playbook strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
}

.daily-playbook p {
  color: #c8d8f0;
  font-size: 14px;
  line-height: 1.35;
}

.daily-challenge {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 215, 0, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(13, 21, 48, 0.84), rgba(3, 22, 34, 0.78));
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.challenge-copy {
  display: grid;
  align-content: center;
  min-height: 210px;
}

.challenge-copy h2 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1;
}

.challenge-copy p {
  max-width: 720px;
  margin-top: 10px;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.45;
}

.challenge-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.challenge-panel label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.challenge-panel input {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.challenge-selected {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px dashed rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px;
  font-weight: 800;
}

.challenge-selected span {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  font-family: "Share Tech Mono", monospace;
  font-weight: 900;
}

.challenge-panel button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(255, 165, 0, 0.22);
}

.challenge-panel button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.58;
}

.challenge-panel p {
  color: #b8c8e2;
  font-size: 13px;
  line-height: 1.35;
}

.challenge-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.challenge-stats article,
.challenge-ranking {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 13px;
}

.challenge-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.challenge-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.challenge-ranking {
  grid-column: 1 / -1;
}

.challenge-ranking > strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.challenge-ranking ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge-ranking li {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 10px;
  background: rgba(13, 21, 48, 0.58);
  padding: 10px;
}

.challenge-ranking span {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.challenge-ranking strong {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
}

.challenge-ranking small {
  color: #9fb2d0;
  font-size: 11px;
}

.history-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  background: rgba(13, 21, 48, 0.72);
  padding: 16px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.history-panel strong,
.history-panel label {
  display: block;
}

.history-panel strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

.history-panel label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.history-panel input,
.history-panel button {
  width: 100%;
  height: 44px;
  margin-top: 7px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.history-panel input {
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 0 12px;
  color-scheme: dark;
}

.history-panel button {
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 165, 0, 0.22);
}

.history-panel button:last-child {
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  box-shadow: none;
}

.history-panel button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 850px;
  color: #fff;
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.08;
  text-transform: uppercase;
}

h2 {
  color: var(--gold);
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-card p,
.results-header p,
.ai-card p {
  max-width: 820px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.notice {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--text);
  padding: 12px 14px;
}

.ad-slot:empty {
  display: none;
}

.ad-slot {
  margin: 14px 0 18px;
}

.ad-card {
  display: grid;
  gap: 9px;
  min-height: 164px;
  border: 1px solid color-mix(in srgb, var(--ad-accent) 55%, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ad-accent) 16%, rgba(13, 21, 48, 0.92)), rgba(5, 8, 16, 0.94));
  color: #fff;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.ad-card.wide {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr) auto;
  align-items: center;
}

.ad-image {
  display: block;
  min-height: 112px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.ad-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ad-card.wide .ad-image {
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 100%;
  height: 154px;
}

.ad-card.wide .ad-label,
.ad-card.wide strong,
.ad-card.wide span:not(.ad-image):not(.ad-label) {
  grid-column: 2;
}

.ad-card.inline {
  grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-height: 0;
  aspect-ratio: 2.24;
  gap: 6px 12px;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--ad-accent) 22%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(9, 14, 28, 0.98), rgba(17, 24, 39, 0.96));
}

.ad-card.inline::after {
  content: "Publicidad";
  position: absolute;
  right: 10px;
  top: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.ad-card.inline .ad-image {
  grid-row: 1 / -1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.ad-card.inline .ad-image img {
  object-fit: cover;
}

.ad-card.inline .ad-label,
.ad-card.inline strong,
.ad-card.inline span:not(.ad-image):not(.ad-label),
.ad-card.inline em {
  grid-column: 2;
}

.ad-card.inline .ad-label {
  padding-right: 82px;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.ad-card.inline strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-card.inline span:not(.ad-image):not(.ad-label) {
  display: -webkit-box;
  overflow: hidden;
  color: #b7c7dd;
  font-size: 12px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-card.inline em {
  align-self: end;
  padding: 7px 10px;
  font-size: 11px;
}

.ad-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ad-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.ad-card span:not(.ad-label) {
  color: #c8d8f0;
}

.ad-card em {
  align-self: end;
  justify-self: start;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #101010;
  padding: 10px 15px;
  font-style: normal;
  font-weight: 900;
}

.ad-card.wide em {
  grid-column: 3;
  grid-row: 1 / span 3;
  justify-self: end;
}

.ad-side {
  position: fixed;
  z-index: 3;
  top: 50%;
  width: min(260px, calc((100vw - 1420px) / 2 - 26px));
  min-width: 190px;
  margin: 0;
  transform: translateY(-50%);
}

.ad-side-right {
  right: 18px;
}

.ad-side-left {
  left: 18px;
}

.ad-card.side {
  min-height: 0;
  gap: 8px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--ad-accent) 72%, rgba(255, 255, 255, 0.2));
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--ad-accent) 24%, transparent), transparent 38%),
    linear-gradient(160deg, rgba(9, 14, 28, 0.97), rgba(5, 8, 16, 0.95));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 26px color-mix(in srgb, var(--ad-accent) 20%, transparent);
}

.ad-card.side .ad-image {
  min-height: 120px;
}

.ad-card.side strong {
  font-size: 19px;
}

.ad-card.side span:not(.ad-image):not(.ad-label) {
  font-size: 13px;
  line-height: 1.35;
}

.ad-card.side em {
  width: 100%;
  justify-self: stretch;
  text-align: center;
}

.ad-card.house {
  animation: sideAdPulse 3.8s ease-in-out infinite;
}

.ad-card.side.left {
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--ad-accent) 24%, transparent), transparent 38%),
    linear-gradient(200deg, rgba(9, 14, 28, 0.97), rgba(5, 8, 16, 0.95));
}

@keyframes sideAdPulse {
  0%, 100% { border-color: rgba(248, 193, 74, 0.42); }
  50% { border-color: rgba(0, 229, 255, 0.5); }
}

.results-header {
  padding: 20px 0 14px;
  text-align: center;
}

.results-header p {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  max-width: none;
  margin: 0 auto;
}

.number-card {
  position: relative;
  display: flex;
  aspect-ratio: 1.08;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  animation: cardAppear 0.45s ease-out both;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.number-card.selected-for-challenge {
  border-color: rgba(255, 215, 0, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 2px rgba(255, 215, 0, 0.58);
}

.challenge-pick {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 8px;
  background: rgba(5, 8, 16, 0.72);
  color: var(--gold);
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.selected-for-challenge .challenge-pick {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
}

.selected-for-challenge .challenge-pick::before {
  content: "✓";
}

.selected-for-challenge .challenge-pick {
  font-size: 0;
}

.selected-for-challenge .challenge-pick::before {
  font-size: 17px;
}

.number-card.challenge-closed .challenge-pick {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.7);
}

.number-card:hover {
  z-index: 2;
  transform: translateY(-5px) scale(1.06);
  border-color: rgba(255, 215, 0, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 22px rgba(255, 215, 0, 0.22);
}

@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.64) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.number-card.tier-1 {
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(135deg, #7b2fff, #0075ff);
  box-shadow: 0 10px 30px rgba(123, 47, 255, 0.46), 0 0 0 2px rgba(255, 215, 0, 0.5);
}

.number-card.tier-2 {
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.34);
}

.number-card.tier-3 {
  background: linear-gradient(135deg, #16a085, #2980b9);
}

.number-card.tier-4 {
  background: linear-gradient(135deg, #1a2545, #2c3e6a);
}

.rank {
  position: absolute;
  top: 7px;
  left: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.number-card.tier-1 .rank {
  color: var(--gold);
}

.number-wrap {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.number {
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 0.9;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.top-badge {
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.18);
  color: var(--gold);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5px;
}

.score strong {
  color: rgba(255, 255, 255, 0.86);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
}

.score span,
.signal {
  color: rgba(255, 255, 255, 0.58);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
}

.signal {
  display: flex;
  gap: 5px;
  margin-top: 3px;
  text-align: center;
}

.signal span:nth-child(n+2) {
  display: none;
}

.bar {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  background: rgba(255, 215, 0, 0.72);
}

.numbers-grid > .ad-card {
  grid-column: span 2;
  min-height: 0;
}

.matches-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin: 20px auto 0;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 229, 255, 0.12), transparent 36%),
    rgba(13, 21, 48, 0.78);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.matches-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: 0.4px;
  line-height: 1.08;
  text-transform: uppercase;
}

.matches-card p {
  max-width: 760px;
  margin-top: 8px;
  color: #c8d8f0;
  line-height: 1.5;
}

.source-cta {
  width: max-content;
  margin-top: 14px;
  padding: 0 18px;
}

.matches-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.match-pill {
  display: grid;
  min-width: 150px;
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.1);
  color: inherit;
  padding: 10px 12px;
}

button.match-pill {
  cursor: pointer;
}

.match-pill strong {
  margin: 0;
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  line-height: 0.95;
}

.match-pill small {
  color: #dbeafe;
  font-size: 11px;
  line-height: 1.35;
}

.muted-pill {
  color: var(--muted);
}

.more-pill {
  border-color: rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.08);
}

.more-pill strong {
  color: var(--accent);
}

.extra-match {
  display: none;
}

.matches-list.expanded .extra-match {
  display: grid;
}

.success-stories {
  margin: 20px auto 0;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 215, 0, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(11, 17, 38, 0.92), rgba(3, 22, 34, 0.82));
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.6px;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: #c8d8f0;
  line-height: 1.45;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.story-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 220px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%),
    rgba(8, 14, 30, 0.86);
  padding: 18px;
  overflow: hidden;
}

.story-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 50%;
}

.story-card.featured {
  border-color: rgba(255, 215, 0, 0.5);
  background:
    linear-gradient(140deg, rgba(255, 184, 0, 0.22), transparent 44%),
    rgba(8, 14, 30, 0.9);
}

.story-badge {
  width: max-content;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.14);
  color: var(--gold);
  padding: 5px 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.story-card strong {
  margin-top: 18px;
  color: #fff;
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
}

.story-card p {
  margin: 12px 0 0;
  color: #dbeafe;
  line-height: 1.45;
}

.story-card small {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
}

.ai-card {
  position: relative;
  max-width: 880px;
  margin: 22px auto 0;
  padding: 20px;
  overflow: hidden;
}

.ai-card::before {
  content: "MODELO";
  position: absolute;
  top: -1px;
  right: 18px;
  border-radius: 0 0 8px 8px;
  background: var(--accent-2);
  color: #fff;
  padding: 4px 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
}

.ai-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Oswald, Rajdhani, sans-serif;
  font-size: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.96), rgba(5, 8, 16, 0.72));
    backdrop-filter: blur(12px);
  }

  .ad-side {
    position: static;
    width: auto;
    min-width: 0;
    margin: 18px 0;
    transform: none;
  }

  .ad-side-left {
    margin-top: 0;
  }

  .ad-side-right {
    margin-bottom: 0;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .history-panel {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .daily-playbook,
  .daily-challenge {
    grid-template-columns: 1fr;
  }

  .ad-card.wide {
    grid-template-columns: 1fr;
  }

  .ad-card.wide .ad-image,
  .ad-card.wide .ad-label,
  .ad-card.wide strong,
  .ad-card.wide span:not(.ad-image):not(.ad-label),
  .ad-card.wide em {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .matches-card {
    grid-template-columns: 1fr;
  }

  .matches-list {
    justify-content: flex-start;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 16px, 1420px);
  }

  .site-header {
    padding: 22px 12px 12px;
  }

  .logo-name {
    font-size: clamp(44px, 14vw, 66px);
    letter-spacing: 2px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-header p {
    max-width: 310px;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.45;
  }

  .date-badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .header-actions {
    width: 100%;
  }

  .action-link {
    flex: 1 1 160px;
  }

  .control-panel {
    gap: 8px;
    padding: 10px;
  }

  .control-panel article {
    padding: 12px 10px;
  }

  .hero-card,
  .history-panel,
  .daily-playbook article,
  .daily-challenge,
  .success-stories,
  .story-card,
  .ai-card,
  .matches-card {
    border-radius: 12px;
  }

  .hero-card {
    gap: 14px;
  }

  .hero-spotlight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-spotlight article {
    padding: 10px;
  }

  .hero-spotlight span {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero-spotlight strong {
    font-size: 20px;
  }

  .daily-playbook {
    gap: 8px;
  }

  .challenge-stats,
  .challenge-ranking ol {
    grid-template-columns: 1fr;
  }

  .challenge-copy {
    min-height: 0;
  }

  .daily-challenge {
    padding: 12px;
  }

  .history-panel {
    padding: 12px;
  }

  .history-panel strong {
    font-size: 19px;
  }

  .numbers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .numbers-grid > .ad-card {
    grid-column: 1 / -1;
  }

  .ad-card.inline {
    grid-template-columns: minmax(82px, 112px) minmax(0, 1fr);
    aspect-ratio: auto;
    min-height: 124px;
  }

  .ad-card.inline strong {
    font-size: 16px;
  }

  .ad-card.inline span:not(.ad-image):not(.ad-label) {
    font-size: 11px;
  }

  .score strong {
    font-size: 10px;
  }

  .number-card {
    border-radius: 10px;
  }

  .number {
    font-size: clamp(34px, 12vw, 48px);
  }

  .rank {
    top: 8px;
    left: 8px;
    font-size: 10px;
  }

  .score {
    gap: 3px;
  }

  .signal {
    display: none;
  }

  .matches-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .success-stories {
    padding: 14px;
  }

  .story-card {
    min-height: 0;
    padding: 15px;
  }

  .source-cta {
    width: 100%;
  }

  .match-pill {
    min-width: 0;
  }

  .float-shape {
    opacity: 0.16;
    transform: scale(0.75);
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 12px, 1420px);
  }

  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-spotlight {
    grid-template-columns: 1fr;
  }

  .daily-playbook article {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .ad-card.inline {
    grid-template-columns: minmax(74px, 94px) minmax(0, 1fr);
    min-height: 112px;
    padding: 10px;
  }

  .number {
    font-size: 42px;
  }

  .challenge-pick {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .ad-card.side,
  .ad-card.wide {
    padding: 12px;
  }

  .ad-card.wide .ad-image {
    min-height: 150px;
  }

  .matches-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-shape,
  .stars i,
  .logo-icon,
  .date-badge::before,
  .number-card {
    animation: none;
  }
}
