:root {
  --bg-main: #080818;
  --bg-deep: #02030a;
  --panel-dark: #11142c;
  --panel-soft: #1b2050;
  --gold: #ffd66b;
  --orange: #ff8a2a;
  --pink: #ff3fa4;
  --purple: #7b4dff;
  --blue: #27c7ff;
  --green: #5dff9c;
  --red: #ff4a5f;
  --white: #ffffff;
  --text-soft: #c9d1ff;
  --text-muted: #8b93c7;
  --border-glow: rgba(255, 214, 107, 0.35);
  --shadow-heavy: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(123, 77, 255, 0.35), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 63, 164, 0.25), transparent 28%),
    linear-gradient(145deg, #080818 0%, #10153a 45%, #03040c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
  overscroll-behavior: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  display: flex;
  min-height: 100vh;
}

/* MENU BACKDROP / SHIELD */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* FLOATING MENU */

.floating-menu-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  border: 0;
  padding: 14px 18px;
  border-radius: 999px;
  color: #130a02;
  font-weight: 1000;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  box-shadow:
    0 10px 0 rgba(119, 50, 0, 0.85),
    0 24px 45px rgba(255, 138, 42, 0.28);
}

.floating-menu-btn:active {
  transform: translateY(6px);
  box-shadow:
    0 4px 0 rgba(119, 50, 0, 0.85),
    0 16px 32px rgba(255, 138, 42, 0.2);
}

/* SIDE MENU */

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 315px;
  height: 100vh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(20, 24, 62, 0.98), rgba(6, 7, 20, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(-110%);
  transition: transform 0.3s ease;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.side-menu-header h2 {
  margin: 0;
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 214, 107, 0.45);
}

.close-menu-btn,
.menu-btn {
  border: 0;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple), var(--pink));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(123, 77, 255, 0.35);
}

.close-menu-btn {
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}

.menu-btn {
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.menu-links {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.menu-links a {
  color: var(--white);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-links a:hover {
  background: rgba(255, 214, 107, 0.14);
  border-color: var(--border-glow);
}

.previous-search h3 {
  margin: 0 0 12px;
  color: var(--gold);
}

.previous-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.previous-search input {
  width: 100%;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  outline: none;
}

.previous-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.12);
}

.search-results {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.empty-note {
  color: var(--text-muted);
  font-size: 14px;
}

/* MAIN CONTENT */

.main-content {
  width: 100%;
  padding: 26px;
}

.top-header {
  max-width: 1220px;
  margin: 0 auto 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  background: rgba(7, 9, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(18px);
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--gold);
  text-shadow:
    0 5px 0 rgba(255, 138, 42, 0.55),
    0 0 35px rgba(255, 214, 107, 0.45);
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.tagline {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.top-nav button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px 13px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
}

.top-nav a:hover,
.top-nav button:hover {
  border-color: rgba(255, 214, 107, 0.45);
  background: rgba(255, 214, 107, 0.12);
}

.header-status-pill {
  min-width: 150px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: #07110b;
  background: linear-gradient(145deg, var(--green), var(--gold));
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(93, 255, 156, 0.35);
}

.header-status-pill.closed {
  color: var(--white);
  background: linear-gradient(145deg, var(--red), var(--pink));
}

/* LIVE SECTION */

.live-section {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: stretch;
}

.round-info-panel,
.chamber-stage,
.results-section,
.rules-section {
  background:
    linear-gradient(180deg, rgba(29, 34, 82, 0.9), rgba(8, 10, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(16px);
}

.round-info-panel {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.round-info-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(39, 199, 255, 0.35), transparent 70%);
}

.round-info-panel h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
}

.round-info-panel p {
  position: relative;
  color: var(--text-soft);
}

.countdown-box,
.cutoff-box {
  position: relative;
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.countdown-label,
.cutoff-box span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.countdown-box strong {
  font-size: clamp(34px, 6vw, 58px);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 214, 107, 0.35);
}

.cutoff-box strong {
  display: block;
  font-size: 22px;
  color: var(--green);
}

.cutoff-box.closed strong {
  color: var(--red);
}

/* OFFICIAL RESULT CARD */

.official-result-card,
.draw-info-card {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 214, 107, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 214, 107, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.official-result-card {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 107, 0.18), transparent 35%),
    linear-gradient(145deg, rgba(255, 63, 164, 0.14), rgba(255, 255, 255, 0.04));
}

.draw-info-label {
  margin: 0 0 14px;
  color: var(--green) !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.official-result-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.official-result-main div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.official-result-main span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 8px;
}

.official-result-main strong {
  display: block;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.draw-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.draw-info-row:first-of-type {
  border-top: 0;
}

.draw-info-row span {
  color: var(--text-soft);
  font-size: 14px;
}

.draw-info-row strong {
  color: var(--gold);
  text-align: right;
}

/* CHAMBER PANEL */

.chamber-stage {
  padding: 28px;
  position: relative;
  min-height: 940px;
  display: grid;
  align-content: start;
  justify-items: center;
  overflow: hidden;
}

.chamber-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 214, 107, 0.12), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

/* GLOW NUMBER REVEAL CARD */

.reveal-stack {
  position: relative;
  z-index: 8;
  width: min(520px, 94%);
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
}

.winner-display {
  padding: 18px;
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 214, 107, 0.24), rgba(255, 63, 164, 0.16));
  border: 1px solid rgba(255, 214, 107, 0.42);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.glow-number-display {
  width: 100%;
  padding: 22px;
}

.winner-display p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 900;
}

.winner-ball {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171006;
  font-size: 46px;
  font-weight: 1000;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, #ffe78d 22%, #ff9f24 63%, #be4f00 100%);
  box-shadow:
    inset -10px -12px 20px rgba(84, 31, 0, 0.38),
    inset 8px 8px 16px rgba(255, 255, 255, 0.5),
    0 18px 38px rgba(255, 138, 42, 0.35);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.bonus-ball {
  background:
    radial-gradient(circle at 30% 25%, #ffffff, #bff4ff 22%, #27c7ff 63%, #075e9c 100%);
}

.winner-ball.waiting {
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 25%, #ffffff, #bfc7ff 22%, #6f78c9 63%, #2c326d 100%);
}

.winner-ball.pop {
  animation: winnerPop 0.72s ease;
}

/* MAIN GLOW NUMBER CHAMBER */

.chamber-machine {
  position: relative;
  z-index: 3;
  width: min(430px, 94vw);
  height: 430px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.42), transparent 12%),
    radial-gradient(circle at center, rgba(39, 199, 255, 0.22), rgba(123, 77, 255, 0.2) 44%, rgba(2, 3, 10, 0.84) 76%);
  border: 12px solid rgba(255, 214, 107, 0.75);
  box-shadow:
    inset 0 0 50px rgba(255, 255, 255, 0.18),
    inset 0 -45px 90px rgba(0, 0, 0, 0.55),
    0 0 0 14px rgba(255, 138, 42, 0.15),
    0 35px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.chamber-machine::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -45px;
  width: 300px;
  height: 95px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(12px);
}

.chamber-machine::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 214, 107, 0.08);
  pointer-events: none;
  z-index: 6;
}

.chamber-machine.is-drawing {
  border-color: rgba(255, 214, 107, 0.95);
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.2),
    inset 0 -45px 90px rgba(0, 0, 0, 0.58),
    0 0 0 16px rgba(255, 138, 42, 0.18),
    0 0 60px rgba(255, 214, 107, 0.25),
    0 35px 90px rgba(0, 0, 0, 0.55);
}

.glass-shine {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.45), transparent 22%, transparent 70%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.52), transparent 12%);
  pointer-events: none;
  z-index: 7;
}

/* MAIN CHAMBER BALLS */

.ball {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #120b05;
  font-weight: 1000;
  font-size: 16px;
  background:
    radial-gradient(circle at 28% 22%, #ffffff, hsl(var(--ball-hue), 95%, 78%) 18%, hsl(var(--ball-hue), 88%, 56%) 58%, hsl(var(--ball-hue), 80%, 32%) 100%);
  box-shadow:
    inset -5px -7px 10px rgba(71, 22, 0, 0.32),
    inset 4px 5px 9px rgba(255, 255, 255, 0.48),
    0 12px 22px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: floatBall 4s infinite ease-in-out alternate;
}

.chamber-machine.is-drawing .ball {
  animation-duration: 0.45s !important;
  animation-timing-function: linear;
  filter: saturate(1.3) brightness(1.08);
}

.ball-1 { left: 106px; top: 56px; animation-duration: 3.6s; animation-delay: -0.2s; }
.ball-2 { left: 174px; top: 44px; animation-duration: 4.1s; animation-delay: -0.8s; }
.ball-3 { left: 244px; top: 58px; animation-duration: 3.8s; animation-delay: -1.4s; }
.ball-4 { left: 304px; top: 98px; animation-duration: 4.4s; animation-delay: -0.6s; }
.ball-5 { left: 334px; top: 164px; animation-duration: 3.3s; animation-delay: -1.1s; }
.ball-6 { left: 316px; top: 232px; animation-duration: 4.7s; animation-delay: -1.7s; }
.ball-7 { left: 268px; top: 290px; animation-duration: 3.9s; animation-delay: -0.4s; }
.ball-8 { left: 198px; top: 318px; animation-duration: 4.3s; animation-delay: -1.9s; }
.ball-9 { left: 124px; top: 302px; animation-duration: 3.5s; animation-delay: -0.9s; }
.ball-10 { left: 66px; top: 254px; animation-duration: 4.8s; animation-delay: -1.5s; }
.ball-11 { left: 48px; top: 180px; animation-duration: 3.7s; animation-delay: -0.3s; }
.ball-12 { left: 70px; top: 108px; animation-duration: 4.2s; animation-delay: -1.2s; }
.ball-13 { left: 144px; top: 122px; animation-duration: 3.4s; animation-delay: -1.8s; }
.ball-14 { left: 218px; top: 120px; animation-duration: 4.6s; animation-delay: -0.7s; }
.ball-15 { left: 264px; top: 174px; animation-duration: 3.9s; animation-delay: -1.3s; }
.ball-16 { left: 244px; top: 238px; animation-duration: 4.5s; animation-delay: -0.1s; }
.ball-17 { left: 178px; top: 262px; animation-duration: 3.6s; animation-delay: -1.6s; }
.ball-18 { left: 116px; top: 226px; animation-duration: 4.1s; animation-delay: -0.5s; }
.ball-19 { left: 114px; top: 156px; animation-duration: 3.8s; animation-delay: -2s; }
.ball-20 { left: 184px; top: 184px; animation-duration: 4.7s; animation-delay: -0.9s; }
.ball-21 { left: 208px; top: 72px; animation-duration: 3.5s; animation-delay: -1.1s; }
.ball-22 { left: 82px; top: 210px; animation-duration: 4.4s; animation-delay: -0.6s; }
.ball-23 { left: 286px; top: 126px; animation-duration: 3.9s; animation-delay: -1.4s; }

/* DRAW STATUS */

.draw-status {
  position: relative;
  z-index: 6;
  margin-top: 22px;
  width: min(520px, 92%);
  padding: 18px 22px;
  text-align: center;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 214, 107, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.draw-status strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 6px;
}

.draw-status span {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
}

/* BONUS CHAMBER */

.bonus-chamber-section {
  position: relative;
  z-index: 5;
  width: min(620px, 96%);
  margin-top: 34px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(39, 199, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(39, 199, 255, 0.22);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.bonus-section-title {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.bonus-chamber-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
}

.bonus-chamber-machine {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 13%),
    radial-gradient(circle at center, rgba(39, 199, 255, 0.26), rgba(123, 77, 255, 0.2) 45%, rgba(2, 3, 10, 0.85) 78%);
  border: 9px solid rgba(39, 199, 255, 0.72);
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.16),
    inset 0 -30px 60px rgba(0, 0, 0, 0.52),
    0 0 0 10px rgba(39, 199, 255, 0.12),
    0 25px 65px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.bonus-chamber-machine.is-drawing {
  border-color: rgba(39, 199, 255, 0.96);
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, 0.2),
    inset 0 -32px 70px rgba(0, 0, 0, 0.58),
    0 0 0 12px rgba(39, 199, 255, 0.16),
    0 0 54px rgba(39, 199, 255, 0.26),
    0 25px 65px rgba(0, 0, 0, 0.48);
}

.bonus-chamber-machine::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 6;
}

.bonus-glass-shine {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.42), transparent 22%, transparent 70%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.5), transparent 12%);
  pointer-events: none;
  z-index: 7;
}

.bonus-chamber-ball {
  position: absolute;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #120b05;
  font-weight: 1000;
  font-size: 12px;
  background:
    radial-gradient(circle at 28% 22%, #ffffff, hsl(var(--bonus-ball-hue), 95%, 78%) 18%, hsl(var(--bonus-ball-hue), 88%, 56%) 58%, hsl(var(--bonus-ball-hue), 80%, 32%) 100%);
  box-shadow:
    inset -4px -5px 8px rgba(71, 22, 0, 0.3),
    inset 3px 4px 7px rgba(255, 255, 255, 0.45),
    0 9px 18px rgba(0, 0, 0, 0.28);
  z-index: 2;
  animation: floatBonusBall 3.8s infinite ease-in-out alternate;
}

.bonus-chamber-machine.is-drawing .bonus-chamber-ball {
  animation-duration: 0.38s !important;
  animation-timing-function: linear;
  filter: saturate(1.35) brightness(1.08);
}

.bonus-chamber-ball-1 { left: 62px; top: 32px; animation-delay: -0.2s; }
.bonus-chamber-ball-2 { left: 112px; top: 24px; animation-delay: -0.8s; }
.bonus-chamber-ball-3 { left: 166px; top: 34px; animation-delay: -1.4s; }
.bonus-chamber-ball-4 { left: 202px; top: 76px; animation-delay: -0.6s; }
.bonus-chamber-ball-5 { left: 208px; top: 128px; animation-delay: -1.1s; }
.bonus-chamber-ball-6 { left: 182px; top: 176px; animation-delay: -1.7s; }
.bonus-chamber-ball-7 { left: 128px; top: 200px; animation-delay: -0.4s; }
.bonus-chamber-ball-8 { left: 74px; top: 184px; animation-delay: -1.9s; }
.bonus-chamber-ball-9 { left: 34px; top: 138px; animation-delay: -0.9s; }
.bonus-chamber-ball-10 { left: 34px; top: 82px; animation-delay: -1.5s; }
.bonus-chamber-ball-11 { left: 88px; top: 80px; animation-delay: -0.3s; }
.bonus-chamber-ball-12 { left: 142px; top: 82px; animation-delay: -1.2s; }
.bonus-chamber-ball-13 { left: 164px; top: 128px; animation-delay: -1.8s; }
.bonus-chamber-ball-14 { left: 132px; top: 160px; animation-delay: -0.7s; }
.bonus-chamber-ball-15 { left: 82px; top: 148px; animation-delay: -1.3s; }
.bonus-chamber-ball-16 { left: 104px; top: 116px; animation-delay: -0.1s; }
.bonus-chamber-ball-17 { left: 138px; top: 50px; animation-delay: -1.6s; }
.bonus-chamber-ball-18 { left: 54px; top: 112px; animation-delay: -0.5s; }
.bonus-chamber-ball-19 { left: 176px; top: 102px; animation-delay: -2s; }
.bonus-chamber-ball-20 { left: 112px; top: 172px; animation-delay: -0.9s; }

.bonus-side-result-card {
  min-height: 238px;
  padding: 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(39, 199, 255, 0.18), transparent 40%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(39, 199, 255, 0.28);
}

.bonus-side-result-card p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.side-bonus-ball {
  width: 92px;
  height: 92px;
  font-size: 38px;
}

.bonus-side-result-card span {
  display: block;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.35;
}

/* RESULTS */

.results-section,
.rules-section {
  max-width: 1220px;
  margin: 26px auto 0;
  padding: 28px;
}

.yesterday-section {
  background:
    linear-gradient(180deg, rgba(18, 24, 66, 0.88), rgba(7, 9, 28, 0.92));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading p:last-child {
  color: var(--text-soft);
}

.results-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.result-card,
.rules-grid article,
.search-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.result-card span,
.search-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.result-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--gold);
  font-size: 30px;
}

.result-card p,
.rules-grid p,
.search-card p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.result-card.pending strong {
  color: var(--text-muted);
}

.rules-grid {
  grid-template-columns: repeat(4, 1fr);
}

.rules-grid h3 {
  margin: 0 0 10px;
  color: var(--gold);
}

.site-footer {
  max-width: 1220px;
  margin: 30px auto 0;
  padding: 24px 0 10px;
  color: var(--text-muted);
  text-align: center;
}

/* ANIMATIONS */

@keyframes floatBall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(18px, -16px, 0) rotate(95deg);
  }

  50% {
    transform: translate3d(-14px, 18px, 0) rotate(190deg);
  }

  75% {
    transform: translate3d(16px, 12px, 0) rotate(285deg);
  }

  100% {
    transform: translate3d(-12px, -10px, 0) rotate(360deg);
  }
}

@keyframes floatBonusBall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  30% {
    transform: translate3d(13px, -12px, 0) rotate(120deg);
  }

  65% {
    transform: translate3d(-12px, 13px, 0) rotate(240deg);
  }

  100% {
    transform: translate3d(10px, 9px, 0) rotate(360deg);
  }
}

@keyframes winnerPop {
  0% {
    transform: scale(0.35) translateY(28px);
  }

  55% {
    transform: scale(1.18) translateY(-14px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

/* MOBILE */

@media (max-width: 1100px) {
  .top-header {
    grid-template-columns: auto 1fr;
  }

  .top-nav,
  .header-status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .live-section {
    grid-template-columns: 1fr;
  }

  .results-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .chamber-stage {
    min-height: auto;
  }

  .chamber-machine {
    width: min(390px, 88vw);
    height: min(390px, 88vw);
  }

  .ball {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .draw-info-row {
    align-items: center;
  }

  .bonus-chamber-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bonus-side-result-card {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .official-result-main {
    grid-template-columns: 1fr;
  }

  .top-nav a,
  .top-nav button {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  .main-content {
    padding: 14px;
  }

  .top-header,
  .round-info-panel,
  .chamber-stage,
  .results-section,
  .rules-section {
    border-radius: 22px;
  }

  .side-menu {
    width: 88vw;
  }

  .brand-block h1 {
    letter-spacing: -1px;
  }

  .winner-ball {
    width: 86px;
    height: 86px;
    font-size: 38px;
  }

  .chamber-machine {
    width: min(340px, 86vw);
    height: min(340px, 86vw);
    border-width: 8px;
  }

  .ball {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .ball-1 { left: 82px; top: 44px; }
  .ball-2 { left: 138px; top: 34px; }
  .ball-3 { left: 194px; top: 46px; }
  .ball-4 { left: 242px; top: 80px; }
  .ball-5 { left: 268px; top: 132px; }
  .ball-6 { left: 252px; top: 184px; }
  .ball-7 { left: 214px; top: 232px; }
  .ball-8 { left: 158px; top: 254px; }
  .ball-9 { left: 98px; top: 242px; }
  .ball-10 { left: 52px; top: 202px; }
  .ball-11 { left: 38px; top: 146px; }
  .ball-12 { left: 56px; top: 88px; }
  .ball-13 { left: 114px; top: 100px; }
  .ball-14 { left: 174px; top: 98px; }
  .ball-15 { left: 210px; top: 142px; }
  .ball-16 { left: 194px; top: 190px; }
  .ball-17 { left: 140px; top: 210px; }
  .ball-18 { left: 92px; top: 180px; }
  .ball-19 { left: 90px; top: 124px; }
  .ball-20 { left: 146px; top: 148px; }
  .ball-21 { left: 166px; top: 58px; }
  .ball-22 { left: 64px; top: 168px; }
  .ball-23 { left: 230px; top: 102px; }

  .bonus-chamber-machine {
    width: 230px;
    height: 230px;
  }

  .bonus-chamber-ball {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  .bonus-chamber-ball-1 { left: 54px; top: 28px; }
  .bonus-chamber-ball-2 { left: 98px; top: 22px; }
  .bonus-chamber-ball-3 { left: 146px; top: 30px; }
  .bonus-chamber-ball-4 { left: 178px; top: 66px; }
  .bonus-chamber-ball-5 { left: 184px; top: 112px; }
  .bonus-chamber-ball-6 { left: 160px; top: 154px; }
  .bonus-chamber-ball-7 { left: 112px; top: 176px; }
  .bonus-chamber-ball-8 { left: 64px; top: 162px; }
  .bonus-chamber-ball-9 { left: 30px; top: 122px; }
  .bonus-chamber-ball-10 { left: 30px; top: 72px; }
  .bonus-chamber-ball-11 { left: 76px; top: 70px; }
  .bonus-chamber-ball-12 { left: 124px; top: 72px; }
  .bonus-chamber-ball-13 { left: 144px; top: 112px; }
  .bonus-chamber-ball-14 { left: 116px; top: 140px; }
  .bonus-chamber-ball-15 { left: 72px; top: 130px; }
  .bonus-chamber-ball-16 { left: 92px; top: 100px; }
  .bonus-chamber-ball-17 { left: 120px; top: 44px; }
  .bonus-chamber-ball-18 { left: 48px; top: 98px; }
  .bonus-chamber-ball-19 { left: 154px; top: 90px; }
  .bonus-chamber-ball-20 { left: 98px; top: 150px; }

  .floating-menu-btn {
    right: 14px;
    bottom: 14px;
    padding: 12px 15px;
    font-size: 13px;
  }
}
