:root {
  --page: #eaffff;
  --white: #ffffff;
  --cyan: #18e3e5;
  --cyan-deep: #0ebfc4;
  --yellow: #fff400;
  --ink: #071719;
  --muted: #4d686a;
  --red: #e32646;
  --green: #087e5c;
  --line: #12cdd2;
  --shadow: 0 18px 45px rgba(9, 96, 99, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 10px 14px; border-radius: 8px; color: var(--ink); background: var(--yellow); font-weight: 900; }
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  width: min(100%, 760px);
  min-height: 52px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-right: 1px solid rgba(18, 205, 210, .35);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid rgba(18, 205, 210, .35);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(11, 90, 92, .08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #051719;
  border-radius: 9px;
  color: #051719;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--cyan);
  font-size: 20px;
  font-weight: 1000;
  line-height: 1;
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 14px; letter-spacing: .07em; line-height: 1.05; }
.brand-copy small { margin-top: 3px; color: #08777a; font-size: 6px; font-weight: 900; letter-spacing: .15em; }
.server-clock { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.server-clock .clock-live { grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #75d7bd; border-radius: 999px; color: var(--green); background: #eafff6; font-size: 7px; font-weight: 950; }
.clock-live i, .section-kicker i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(8, 126, 92, .12); }
.server-clock strong { font-size: 11px; }
.server-clock small { color: var(--muted); font-size: 6px; font-weight: 800; letter-spacing: .05em; }

main {
  width: min(100%, 760px);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  padding: 9px 12px 44px;
  border-right: 1px solid rgba(18, 205, 210, .35);
  border-left: 1px solid rgba(18, 205, 210, .35);
  background: var(--white);
}
.section-anchor { scroll-margin-top: 60px; }
.content-section { margin-top: 24px; }
.section-kicker { display: inline-flex; align-items: center; gap: 7px; color: #075f62; font-size: 8px; font-weight: 1000; letter-spacing: .16em; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(24px, 6vw, 34px); line-height: 1; letter-spacing: -.035em; }
.section-heading p { max-width: 110px; margin: 0; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.3; text-align: right; }

.live-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 154px;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  padding: clamp(9px, 2vw, 13px);
  border: 1px solid #071719;
  border-radius: 13px;
  background:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(125deg, var(--cyan) 0 70%, var(--yellow) 70% 100%);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 4px 4px 0 #a7f3f3, 0 10px 25px rgba(9,96,99,.12);
}
.live-hero::after { content: ""; position: absolute; z-index: -1; right: -8%; bottom: -44%; width: 52%; aspect-ratio: 1; border: 26px solid rgba(255,255,255,.22); border-radius: 50%; }
.live-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.live-hero h1 { margin: 2px 0 0; color: #052e7c; font-size: clamp(18px, 4vw, 27px); font-weight: 1000; line-height: .98; letter-spacing: -.04em; text-shadow: 1px 1px 0 rgba(255,244,0,.9); }
.live-hero h1 em { color: #b20c40; font-style: normal; }
.live-hero .section-kicker { color: #003fc9; }
.live-hero .section-kicker i { background: #1677ff; box-shadow: 0 0 0 4px rgba(22,119,255,.18), 0 0 15px #1677ff; animation: blueLivePulse 1.15s ease-in-out infinite; }
@keyframes blueLivePulse { 50% { opacity: .42; box-shadow: 0 0 0 8px rgba(22,119,255,0), 0 0 23px #1677ff; } }
.hero-status-pill { display: inline-flex; max-width: 112px; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #076d50; border-radius: 999px; color: #064c39; background: rgba(255,255,255,.86); font-size: 6px; font-weight: 1000; letter-spacing: .07em; }
.hero-status-pill span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; animation: statusPulse 1.4s ease-in-out infinite; }
.hero-status-pill.bet_closed, .hero-status-pill.closed_break, .hero-status-pill.sunday_closed { color: #8c1028; border-color: #d93450; background: #fff1f3; }
.hero-status-pill.result_spinning { color: #111; border-color: #111; background: var(--yellow); }
@keyframes statusPulse { 50% { opacity: .35; transform: scale(.72); } }

.live-hero-body { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(108px, .42fr); align-items: center; gap: 8px; }
.hero-slot-label { display: inline-flex; width: fit-content; padding: 3px 6px; border-radius: 5px; color: #fff; background: linear-gradient(90deg, #0758bd, #763ee8); box-shadow: 2px 2px 0 rgba(255,244,0,.8); font-size: 6px; font-weight: 1000; letter-spacing: .13em; }
.hero-game-copy h2 { width: fit-content; margin: 4px 0 0; color: #072a85; font-size: clamp(20px, 5vw, 34px); font-weight: 1000; line-height: .92; letter-spacing: -.04em; text-shadow: 1px 1px 0 #fff400, 0 0 12px rgba(255,255,255,.5); animation: heroTimingPulse 2.4s ease-in-out infinite; }
@keyframes heroTimingPulse { 50% { color: #a20c3e; filter: saturate(1.15); } }
.status-main { display: inline-flex; width: fit-content; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 999px; color: #064eae; background: #edf6ff; box-shadow: 2px 2px 0 rgba(7,23,25,.24), 0 0 12px rgba(22,119,255,.25); font-size: 7px; font-weight: 1000; letter-spacing: .09em; animation: heroStatusGlow 1.7s ease-in-out infinite; }
.status-main::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-main.game_open { color: #00653f; background: #e6fff4; }
.status-main.bet_closed, .status-main.closed_break, .status-main.sunday_closed { color: #a10d33; background: #fff0f4; }
.status-main.result_spinning { color: #fff400; background: #5128bd; }
@keyframes heroStatusGlow { 50% { transform: translateY(-1px); box-shadow: 2px 2px 0 rgba(7,23,25,.24), 0 0 18px currentColor; } }
.spin-cue { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 4px 7px; border: 1px solid #0758bd; border-radius: 8px; color: #072a78; background: linear-gradient(110deg, #fff, #d9fbff 62%, #fff7a7); box-shadow: 2px 2px 0 #1677ff, 0 0 13px rgba(255,255,255,.7); }
.spin-cue > i { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: conic-gradient(#e32646, #7a35e8, #1677ff, #0bbf8a, #e32646); box-shadow: 0 0 10px rgba(122,53,232,.55); font-size: 15px; font-style: normal; font-weight: 1000; animation: spinLogo 1.65s linear infinite; }
.spin-cue small, .spin-cue strong { display: block; line-height: 1.1; }
.spin-cue small { color: #7a1751; font-size: 6px; font-weight: 1000; letter-spacing: .1em; }
.spin-cue strong { margin-top: 2px; color: #053d9b; font-size: 8px; font-weight: 1000; }
@keyframes spinLogo { to { transform: rotate(360deg); } }
.hero-countdown-block { position: relative; width: fit-content; margin-top: 4px; }
.hero-countdown-block > span { display: block; color: #063f92; font-size: 6px; font-weight: 1000; letter-spacing: .18em; }
.hero-countdown-block strong { position: relative; display: block; width: fit-content; margin-top: 2px; overflow: hidden; padding: 4px 7px 5px; border: 1px solid #1677ff; border-radius: 7px; color: #a9f5ff; background: linear-gradient(180deg, #082c55, #020d1d); box-shadow: inset 0 0 14px rgba(22,119,255,.3), 0 0 0 1px rgba(255,244,0,.72), 0 0 15px rgba(22,119,255,.5); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(21px, 5.6vw, 38px); font-weight: 1000; font-variant-numeric: tabular-nums; letter-spacing: -.08em; line-height: .9; text-shadow: 0 0 5px #30cfff, 0 0 12px rgba(48,207,255,.7); animation: countdownGlow 1.35s ease-in-out infinite; }
.hero-countdown-block::after { content: ""; position: absolute; z-index: 2; right: 5px; bottom: 7px; left: 5px; height: 2px; opacity: .75; background: linear-gradient(90deg, transparent, #fff400, #52eaff, transparent); animation: countdownScan 1.8s linear infinite; pointer-events: none; }
@keyframes countdownGlow { 50% { border-color: #89f0ff; box-shadow: inset 0 0 24px rgba(22,119,255,.4), 0 0 0 2px #fff400, 0 0 30px rgba(22,119,255,.75); } }
@keyframes countdownScan { 0%,100% { transform: translateY(-19px); opacity: .18; } 50% { transform: translateY(0); opacity: .9; } }
.hero-equation { position: absolute; z-index: 8; left: 14px; bottom: 28px; display: none; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #111; border-radius: 9px; background: var(--yellow); }
.hero-equation.show { display: flex; animation: resultPop .35s ease both; }
.hero-equation span, .hero-equation b { font-size: 22px; font-weight: 1000; }
.hero-equation i { font-style: normal; }
@keyframes resultPop { from { opacity: 0; transform: translateY(7px) scale(.95); } }

.hero-wheel-wrap { --wheel-radius: clamp(40px, 8.5vw, 58px); position: relative; width: min(22vw, 148px); min-width: 108px; aspect-ratio: 1; justify-self: end; filter: drop-shadow(0 8px 12px rgba(23,66,173,.24)); animation: wheelFloat 3s ease-in-out infinite; }
.hero-wheel-rim { position: absolute; inset: -8px; border: 2px solid #fff; border-radius: 50%; background: repeating-conic-gradient(#ff2b66 0 5deg, #fff400 5deg 10deg, #18e3e5 10deg 15deg, #7b38e8 15deg 20deg); box-shadow: 0 0 0 2px #1677ff, 0 0 18px rgba(255,43,102,.45); animation: rimSpin 7s linear infinite; }
@keyframes rimSpin { to { transform: rotate(360deg); } }
.hero-wheel-pointer { position: absolute; z-index: 5; left: 50%; top: -13px; width: 0; height: 0; transform: translateX(-50%); border-right: 10px solid transparent; border-left: 10px solid transparent; border-top: 21px solid #7734e7; filter: drop-shadow(0 2px 0 #fff400); }
.hero-wheel { position: absolute; inset: 0; overflow: hidden; border: 4px solid #fff; border-radius: 50%; outline: 2px solid #175fe5; background: conic-gradient(from -18deg,#fa376d 0 36deg,#8b48ee 36deg 72deg,#0bc488 72deg 108deg,#28a9ef 108deg 144deg,#ff8a2b 144deg 180deg,#fa376d 180deg 216deg,#8b48ee 216deg 252deg,#0bc488 252deg 288deg,#28a9ef 288deg 324deg,#ff8a2b 324deg 360deg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), inset 0 0 18px rgba(255,255,255,.42), 0 8px 20px rgba(23,95,229,.25); transition: transform 1.2s cubic-bezier(.16,.75,.15,1); }
.hero-wheel::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 44%); pointer-events: none; }
.hero-wheel.spinning { animation: heroSpin .8s linear infinite; }
.hero-wheel > span { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 19px; height: 19px; margin: -9.5px; place-items: center; transform: rotate(calc(var(--i) * 36deg)) translateY(calc(var(--wheel-radius) * -1)) rotate(calc(var(--i) * -36deg)); color: #fff; font-size: clamp(10px, 2.2vw, 14px); font-weight: 1000; text-shadow: 0 1px 3px #153366; }
.hero-wheel-center { position: absolute; z-index: 3; inset: 29%; display: grid; place-content: center; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #5420b8; background: linear-gradient(145deg, #fff400, #54f3ef); box-shadow: 0 0 0 2px #1677ff, 0 0 14px rgba(255,244,0,.7); }
.hero-wheel-center b { font-size: clamp(19px, 3.6vw, 28px); line-height: .75; animation: centerPulse 1.2s ease-in-out infinite; }
.hero-wheel-center small { margin-top: 3px; color: #8c123e; font-size: clamp(7px, 1.4vw, 9px); font-weight: 1000; letter-spacing: .02em; text-shadow: 0 1px #fff; }
@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes centerPulse { 50% { transform: scale(.82); } }
@keyframes wheelFloat { 50% { transform: translateY(-3px) scale(1.015); } }
.live-hero-foot { display: none; }
.live-hero-foot p { margin: 0; }
.auto-icon { display: inline-grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #fff; background: #e32646; font-size: 10px; font-style: normal; }

.today-section { width: min(100%, 560px); margin-right: auto; margin-left: auto; }
.today-heading { position: relative; overflow: hidden; margin-bottom: 10px; padding: 14px 12px 12px; border: 1px solid #071719; border-radius: 13px; background: linear-gradient(115deg, #1677ff 0 34%, var(--cyan) 34% 72%, var(--yellow) 72%); box-shadow: 4px 4px 0 #071719; text-align: center; }
.today-heading::before { content: "LIVE"; position: absolute; top: -10px; left: -4px; color: rgba(255,255,255,.15); font-size: 58px; font-weight: 1000; line-height: 1; }
.today-heading > * { position: relative; z-index: 1; }
.today-heading .section-kicker { color: #061c34; }
.today-heading .section-kicker i { background: #0667ff; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 0 12px #fff; animation: blueLivePulse 1.15s ease-in-out infinite; }
.today-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.today-heading h2 { margin: 0; color: #071719; font-size: clamp(25px, 7vw, 36px); font-weight: 1000; line-height: 1; letter-spacing: -.045em; text-shadow: 1px 1px 0 rgba(255,255,255,.82); }
.heading-spinner { position: relative; display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: conic-gradient(#f42d66, #763ee8, #1677ff, #0bc488, #fff400, #f42d66); box-shadow: 0 0 0 1px #071719, 0 0 13px rgba(255,255,255,.65); font-style: normal; }
.heading-spinner::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #112b72; }
.heading-spinner b { position: relative; z-index: 1; font-size: 17px; line-height: 1; }
.heading-spinner.left { animation: headingSpin 2.8s linear infinite; }
.heading-spinner.right { animation: headingSpinReverse 2.8s linear infinite; }
@keyframes headingSpin { to { transform: rotate(360deg); } }
@keyframes headingSpinReverse { to { transform: rotate(-360deg); } }
.status-legend { display: flex; align-items: center; justify-content: center; gap: 6px; }
.status-legend span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #071719; border-radius: 999px; font-size: 7px; font-weight: 1000; letter-spacing: .07em; text-transform: uppercase; }
.status-legend span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-legend .open { color: #07593f; background: #eafff5; }
.status-legend .declared { color: #87142b; background: #fff1f3; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.result-grid-loading { grid-column: 1 / -1; display: grid; min-height: 110px; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: #f3ffff; font-size: 8px; font-weight: 900; }
.result-slot { isolation: isolate; position: relative; min-width: 0; min-height: 110px; overflow: hidden; padding: 9px 8px 8px; border: 1px solid #071719; border-radius: 11px; color: #071719; background: linear-gradient(145deg, #49bfff, #dffaff); box-shadow: 3px 3px 0 #071719; animation: slotCardIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay); transition: transform .2s, box-shadow .2s, filter .2s; }
.result-slot::before { content: attr(data-index); position: absolute; z-index: -1; right: -3px; bottom: -13px; color: rgba(255,255,255,.35); font-size: 48px; font-weight: 1000; line-height: 1; }
.result-slot::after { content: ""; position: absolute; z-index: 0; top: -55%; left: -65%; width: 36%; height: 210%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: cardSheen 4.2s ease-in-out infinite; pointer-events: none; }
.result-slot > * { position: relative; z-index: 1; }
.result-slot:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 #071719; filter: saturate(1.08); }
.result-slot:nth-child(3n+1):last-child { grid-column: 2; }
@keyframes slotCardIn { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.result-slot.game_open { background: linear-gradient(145deg, #16d989, #c9ffe9); animation: slotCardIn .5s cubic-bezier(.2,.8,.2,1) both, openCardPulse 1.7s ease-in-out infinite; animation-delay: var(--delay), calc(var(--delay) + .5s); }
.result-slot.bet_closed { background: linear-gradient(145deg, #ff5577, #ffd55c); }
.result-slot.result_spinning { color: #fff; background: linear-gradient(145deg, #6e42e5, #1677ff); animation: slotCardIn .5s cubic-bezier(.2,.8,.2,1) both, spinCardPulse 1s ease-in-out infinite; animation-delay: var(--delay), calc(var(--delay) + .5s); }
.result-slot.result_declared { background: linear-gradient(145deg, #fff400, #11dfe4); }
.result-slot.result_pending { background: linear-gradient(145deg, #ffc063, #fff3cd); }
.result-slot.sunday_closed { color: #526163; background: linear-gradient(145deg, #dbe9ea, #f8ffff); }

/* Special Game 10x (20:30 → 20:45) */
.result-slot.special-10x {
  border-color: #b00020;
  box-shadow: 3px 3px 0 #7a0018;
}
.result-slot.special-10x .slot-top > strong.special-10x-label {
  color: #c4002b !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: normal;
  font-size: clamp(8px, 2.2vw, 11px);
  line-height: 1.15;
  text-shadow: none;
}
.result-slot.special-10x .slot-result-time,
.result-slot.special-10x .slot-status {
  color: #9f1235;
  font-weight: 900;
}
@keyframes openCardPulse { 50% { box-shadow: 3px 3px 0 #071719, 0 0 18px rgba(18,205,151,.55); } }
@keyframes spinCardPulse { 50% { box-shadow: 3px 3px 0 #071719, 0 0 23px rgba(22,119,255,.7); } }
@keyframes cardSheen { 0%,58% { left: -65%; } 84%,100% { left: 135%; } }
.slot-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.slot-top > strong { overflow: hidden; color: #063c9b; font-size: clamp(10px, 2.7vw, 14px); font-weight: 1000; line-height: 1; letter-spacing: -.02em; text-shadow: 0 1px rgba(255,255,255,.8); white-space: nowrap; }
.result-slot.game_open .slot-top > strong { color: #00643e; }
.result-slot.bet_closed .slot-top > strong { color: #9f1235; }
.result-slot.result_spinning .slot-top > strong { color: #fff400; text-shadow: 0 1px #342070; }
.result-slot.result_declared .slot-top > strong { color: #143589; }
.result-slot.result_pending .slot-top > strong { color: #864b00; }
.slot-corner-status { display: inline-flex; width: 30px; height: 25px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0; border: 1px solid currentColor; border-radius: 7px; color: #075ec4; background: rgba(255,255,255,.92); box-shadow: 1px 1px 0 #071719, 0 0 10px currentColor; font-style: normal; animation: cornerStatusPulse 1.8s ease-in-out infinite; }
.result-slot.game_open .slot-corner-status { color: #00764b; background: #eafff4; }
.result-slot.bet_closed .slot-corner-status { color: #b20c31; background: #fff1f4; }
.result-slot.result_spinning .slot-corner-status { color: #fff400; background: #1b1464; }
.result-slot.result_declared .slot-corner-status { color: #9f1430; background: #fff; }
.result-slot.result_pending .slot-corner-status { color: #935b00; background: #fff8de; }
.result-slot.sunday_closed .slot-corner-status { color: #5f7072; background: #edf5f5; }
@keyframes cornerStatusPulse { 50% { transform: translateY(-1px); filter: brightness(1.12); } }
.mini-status-icon { position: relative; display: block; width: 12px; height: 10px; color: inherit; }
.slot-corner-status.lock .mini-status-icon, .slot-corner-status.unlock .mini-status-icon { margin-top: 4px; border: 2px solid currentColor; border-radius: 2px; background: currentColor; box-shadow: inset 0 0 0 3px rgba(255,255,255,.82); }
.slot-corner-status.lock .mini-status-icon::before, .slot-corner-status.unlock .mini-status-icon::before { content: ""; position: absolute; left: 1px; top: -9px; width: 7px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.slot-corner-status.unlock .mini-status-icon::before { left: 5px; transform: rotate(32deg); transform-origin: 0 100%; }
.slot-corner-status.time .mini-status-icon { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; }
.slot-corner-status.time .mini-status-icon::before { content: ""; position: absolute; left: 5px; top: 2px; width: 2px; height: 5px; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: rotate(-35deg); }
.slot-corner-status.time .mini-status-icon::after { content: ""; position: absolute; left: 5px; top: 6px; width: 4px; height: 2px; border-radius: 2px; background: currentColor; }
.slot-corner-status.spin .mini-status-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: miniIconSpin .8s linear infinite; }
.slot-corner-status.spin .mini-status-icon::after { content: ""; position: absolute; right: -2px; top: -2px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 5px solid currentColor; transform: rotate(-25deg); }
@keyframes miniIconSpin { to { transform: rotate(360deg); } }
.slot-result-time { display: block; width: fit-content; margin-top: 5px; overflow: hidden; padding: 3px 5px; border-left: 3px solid #1677ff; border-radius: 3px 6px 6px 3px; color: #073c96; background: rgba(255,255,255,.58); box-shadow: 0 0 8px rgba(255,255,255,.45); font-size: 6px; font-weight: 1000; letter-spacing: .045em; white-space: nowrap; }
.result-slot.game_open .slot-result-time { border-left-color: #00875a; color: #00613e; }
.result-slot.bet_closed .slot-result-time { border-left-color: #d31343; color: #971334; }
.result-slot.result_spinning .slot-result-time { border-left-color: #fff400; color: #fff; background: rgba(42,22,115,.55); }
.result-slot.result_declared .slot-result-time { border-left-color: #d9183b; color: #173a8d; }
.slot-result { display: flex; min-height: 35px; align-items: center; justify-content: center; gap: 4px; margin: 3px 0 2px; }
.slot-result strong, .slot-result b { font-size: clamp(17px, 4.8vw, 24px); font-weight: 1000; line-height: 1; text-shadow: 0 1px rgba(255,255,255,.65); }
.slot-result span { font-size: 11px; font-weight: 900; opacity: .6; }
.slot-result b { color: #d9183b; }
.result-slot.result_spinning .slot-result b { color: var(--yellow); }
.slot-result.pending { opacity: .68; }
.slot-status { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; margin: 0 auto; padding: 3px 5px; overflow: hidden; border: 1px solid currentColor; border-radius: 999px; color: #004a9e; background: rgba(255,255,255,.8); font-size: 6px; font-weight: 1000; letter-spacing: .04em; white-space: nowrap; }
.slot-status i { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.result-slot.game_open .slot-status { color: #006e46; background: #eafff4; }
.result-slot.bet_closed .slot-status { color: #a6082d; background: #fff1f4; }
.result-slot.result_spinning .slot-status { color: #fff400; background: #1b1464; }
.result-slot.result_declared .slot-status { color: #9f1430; background: #fff; }
.result-slot.result_pending .slot-status { color: #865300; background: #fff8de; }
.result-slot.sunday_closed .slot-status { color: #526163; background: #edf5f5; }

.history-toolbar { display: grid; gap: 8px; margin-bottom: 10px; }
.history-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.history-tabs button { min-width: 0; padding: 8px 2px; border: 1px solid var(--line); border-radius: 8px; color: #075a5d; background: #efffff; font-size: 7px; font-weight: 1000; letter-spacing: .05em; cursor: pointer; }
.history-tabs button.active, .history-tabs button:focus-visible { border-color: #101919; color: #101919; background: var(--yellow); outline: 0; }
.history-download { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid #071719; border-radius: 9px; color: #071719; background: var(--cyan); box-shadow: 3px 3px 0 #071719; font-size: 8px; font-weight: 1000; letter-spacing: .08em; text-decoration: none; }
.history-download span { font-size: 16px; line-height: .7; }
.history-download:hover, .history-download:focus-visible { background: var(--yellow); outline: 2px solid var(--yellow); outline-offset: 2px; }
.history-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.history-scroll { overflow: visible; }
.history-scroll:focus-visible { outline: 2px solid #071719; outline-offset: -2px; }
.history-scroll table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #080808; font-family: Georgia, "Times New Roman", serif; }
.history-scroll caption { padding: 18px 8px 15px; border-bottom: 1px solid var(--line); color: #050505; background: var(--cyan); text-align: center; caption-side: top; }
.history-scroll caption strong, .history-scroll caption small { display: block; }
.history-scroll caption strong { font-size: clamp(18px, 5vw, 30px); line-height: 1; }
.history-scroll caption small { margin-top: 5px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.history-scroll th, .history-scroll td { min-width: 0; height: 48px; padding: 3px 1px; overflow: hidden; border: 1px solid var(--line); text-align: center; }
.history-scroll th:first-child { width: 14%; }
.history-scroll thead th { color: #070707; background: var(--yellow); font-size: clamp(7px, 1.7vw, 11px); font-weight: 900; line-height: 1.05; }
.history-scroll thead th span, .history-scroll thead th small { display: block; }
.history-scroll thead th small { margin-top: 2px; color: #070707; font-size: .82em; text-transform: lowercase; }
.history-scroll tbody th { color: #080808; background: #fff; font-size: clamp(8px, 1.8vw, 12px); font-weight: 900; line-height: 1.05; }
.history-scroll tbody th small { display: block; margin-top: 2px; color: #087d80; font-family: Inter, sans-serif; font-size: 5px; }
.history-scroll tbody td { color: #080808; background: #fff; }
.history-browser .section-heading { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(100deg, #efffff, #fffde1); }
.history-browser .section-heading h2 { font-weight: 1000; }
.history-scroll td strong, .history-scroll td small, .history-scroll td span { display: block; overflow: hidden; }
.history-scroll td strong { color: #080808; font-size: clamp(8px, 1.9vw, 13px); line-height: 1; }
.history-scroll td small { margin-top: 3px; color: #080808; font-size: clamp(8px, 1.9vw, 13px); font-weight: 1000; line-height: 1; }
.history-scroll td > span { color: #080808; font-size: clamp(8px, 1.9vw, 12px); font-weight: 900; }
.history-scroll .history-closed { background: #f8ffff; }
.history-load-more { margin-top: 11px; padding: 11px; border: 1px solid #071719; border-radius: 12px; background: linear-gradient(135deg, #efffff, #fffbd1); box-shadow: 4px 4px 0 #071719; text-align: center; }
.history-load-more[hidden], .history-load-more button[hidden] { display: none !important; }
.history-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.history-progress i { height: 5px; border: 1px solid #8acfd1; border-radius: 999px; background: #dff7f8; transition: .25s; }
.history-progress i.loaded { border-color: #071719; background: linear-gradient(90deg, #1677ff, var(--cyan)); box-shadow: 0 0 8px rgba(22,119,255,.35); }
.history-load-more > small { display: block; margin: 7px 0; color: #36595b; font-size: 6px; font-weight: 1000; letter-spacing: .09em; }
.history-load-more button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; border: 1px solid #071719; border-radius: 9px; color: #071719; background: linear-gradient(105deg, var(--cyan), var(--yellow)); box-shadow: 3px 3px 0 #071719; cursor: pointer; }
.history-load-more button:disabled { cursor: wait; opacity: .7; }
.history-load-more button > span:last-child { text-align: left; }
.history-load-more button strong, .history-load-more button small { display: block; }
.history-load-more button strong { font-size: 9px; font-weight: 1000; letter-spacing: .04em; }
.history-load-more button small { margin-top: 2px; color: #315456; font-size: 6px; font-weight: 900; letter-spacing: .06em; }
.history-load-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #071719; border-radius: 50%; color: #fff; background: #1677ff; font-size: 19px; font-weight: 1000; }
.history-load-more button.loading .history-load-icon { animation: loaderSpin .7s linear infinite; }
.loading-line, .empty-record { display: flex; min-height: 150px; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 900; text-align: center; }
.loading-line i { width: 14px; height: 14px; border: 2px solid #bfeff0; border-top-color: #071719; border-radius: 50%; animation: loaderSpin .8s linear infinite; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.game-guide { overflow: hidden; border: 1px solid #071719; border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 #b7f4f5, var(--shadow); }
.guide-title { position: relative; overflow: hidden; padding: 20px 16px 17px; background: linear-gradient(115deg, #1677ff 0 30%, var(--cyan) 30% 72%, var(--yellow) 72%); text-align: center; }
.guide-title::after { content: "RULES"; position: absolute; right: -8px; bottom: -18px; color: rgba(255,255,255,.22); font-size: 72px; font-weight: 1000; line-height: 1; pointer-events: none; }
.guide-title > * { position: relative; z-index: 1; }
.guide-title .section-kicker { color: #061c34; }
.guide-title .section-kicker i { background: #0869ff; box-shadow: 0 0 0 4px rgba(255,255,255,.34), 0 0 14px #fff; animation: blueLivePulse 1.15s ease-in-out infinite; }
.guide-title h2 { margin: 5px 0 6px; font-size: clamp(25px, 6vw, 38px); font-weight: 1000; line-height: 1; letter-spacing: -.045em; }
.guide-title p { max-width: 520px; margin: 0 auto; font-size: 9px; font-weight: 800; line-height: 1.45; }
.guide-download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #f7f1df, #eef8f4);
}
.guide-download-copy { min-width: 0; }
.guide-download-copy small {
  display: block;
  color: #6d5a28;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .12em;
}
.guide-download-copy strong {
  display: block;
  margin-top: 2px;
  color: #1f3d34;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.1;
}
.guide-download-copy p {
  margin: 3px 0 0;
  color: #5a6b63;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;
}
.guide-download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c7ab64;
  border-radius: 9px;
  color: #27493e;
  background: #f2e7c7;
  box-shadow: 0 3px 8px rgba(70, 62, 39, .1);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.guide-download-btn span { font-size: 14px; line-height: .7; }
.guide-download-btn:hover,
.guide-download-btn:focus-visible {
  background: #ffe27a;
  outline: 2px solid #c7ab64;
  outline-offset: 2px;
}
.guide-intro { padding: 16px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #efffff, #fffdeb); }
.guide-intro > strong { display: block; margin-bottom: 7px; color: #075d60; font-size: 8px; font-weight: 1000; letter-spacing: .12em; }
.guide-intro p { margin: 0; color: #203f41; font-size: 11px; font-weight: 650; line-height: 1.7; }
.guide-intro b { color: #071719; font-weight: 1000; }
.schedule-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; background: #f9ffff; }
.schedule-card { display: flex; min-width: 0; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid #071719; border-radius: 11px; box-shadow: 2px 2px 0 #071719; }
.schedule-card > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #071719; border-radius: 8px; color: #fff; background: #1677ff; font-size: 9px; font-weight: 1000; }
.schedule-card div { min-width: 0; }
.schedule-card small, .schedule-card strong { display: block; }
.schedule-card small { color: #214c4e; font-size: 6px; font-weight: 1000; letter-spacing: .09em; }
.schedule-card strong { margin-top: 3px; font-size: 12px; font-weight: 1000; line-height: 1.1; }
.schedule-card p { margin: 5px 0 0; color: #315254; font-size: 8px; font-weight: 700; line-height: 1.45; }
.schedule-card.morning { background: linear-gradient(145deg, #dfffff, #fff); }
.schedule-card.break { background: linear-gradient(145deg, #fff0c7, #fff); }
.schedule-card.break > span { color: #071719; background: var(--yellow); }
.schedule-card.evening { background: linear-gradient(145deg, #e9e1ff, #fff); }
.schedule-card.evening > span { background: #6e42e5; }
.schedule-card.sunday { background: linear-gradient(145deg, #ffe5eb, #fff); }
.schedule-card.sunday > span { background: var(--red); }
.game-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.process-step { position: relative; min-width: 0; padding: 14px 10px; text-align: center; }
.process-step + .process-step { border-left: 1px solid var(--line); }
.process-step > i { display: grid; width: 30px; height: 30px; margin: 0 auto 8px; place-items: center; border: 1px solid #071719; border-radius: 50%; color: #071719; background: var(--yellow); box-shadow: 2px 2px 0 var(--cyan); font-size: 11px; font-style: normal; font-weight: 1000; }
.process-step small, .process-step strong { display: block; }
.process-step small { color: #08777a; font-size: 6px; font-weight: 1000; letter-spacing: .09em; }
.process-step strong { margin-top: 4px; font-size: 10px; font-weight: 1000; line-height: 1.15; }
.process-step p { margin: 6px 0 0; color: #456466; font-size: 7px; font-weight: 700; line-height: 1.5; }
.rules-panel { padding: 15px; background: linear-gradient(145deg, #032b4f, #071719); color: #fff; }
.rules-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid rgba(120,238,240,.3); }
.rules-heading > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #fff; border-radius: 9px; color: #071719; background: var(--yellow); box-shadow: 3px 3px 0 var(--cyan); font-size: 18px; font-weight: 1000; }
.rules-heading small, .rules-heading strong { display: block; }
.rules-heading small { color: #70e7eb; font-size: 6px; font-weight: 1000; letter-spacing: .13em; }
.rules-heading strong { margin-top: 3px; font-size: 17px; font-weight: 1000; }
.rules-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 13px 0; }
.rules-copy p { margin: 0; color: #daf8f9; font-size: 9px; font-weight: 650; line-height: 1.65; }
.rules-copy b { color: var(--yellow); font-size: 11px; font-weight: 1000; }
.rules-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid rgba(255,244,0,.65); border-radius: 9px; color: #071719; background: var(--yellow); }
.rules-note i { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #1677ff; font-size: 10px; font-style: normal; font-weight: 1000; }
.rules-note p { margin: 0; font-size: 8px; font-weight: 900; line-height: 1.5; }

footer { display: flex; width: min(100%, 760px); align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; padding: 18px 14px; border: 1px solid var(--line); color: #36595b; background: #f4ffff; font-size: 8px; }
.footer-brand .brand-mark { width: 34px; height: 34px; box-shadow: 3px 3px 0 var(--cyan); font-size: 19px; }
.footer-brand .brand-copy strong { color: var(--ink); font-size: 12px; }
.footer-brand .brand-copy small { font-size: 6px; }
footer p { margin: 0; text-align: center; }

.live-wheel-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 10px; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 22%, rgba(107,43,166,.38), transparent 34%), rgba(4,10,25,.9); backdrop-filter: blur(12px) saturate(.8); transition: opacity .28s; }
.live-wheel-overlay.show { opacity: 1; pointer-events: auto; }
.live-panel { position: relative; width: min(520px, 100%); max-height: 96vh; overflow: auto; padding: 15px; border: 2px solid #ffcf3c; border-radius: 22px; color: #fff; background: radial-gradient(circle at 50% 38%, rgba(138,36,73,.72), transparent 38%), linear-gradient(155deg, #221039, #540d2b 52%, #170b25); box-shadow: 0 0 0 3px rgba(255,126,28,.42), 0 0 36px rgba(255,198,41,.48), 0 24px 60px rgba(0,0,0,.62); scrollbar-width: none; }
.live-panel::-webkit-scrollbar { display: none; }
.live-panel::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,231,149,.28); border-radius: 17px; pointer-events: none; }
.live-panel-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 10px; border-bottom: 1px solid rgba(255,215,78,.28); }
.live-panel-head small, .live-panel-head strong, .live-panel-head span { display: block; }
.live-panel-head small { margin-bottom: 3px; color: #ffe16c; font-size: 7px; font-weight: 1000; letter-spacing: .14em; }
.live-panel-head strong { font-size: clamp(15px, 4.2vw, 21px); font-weight: 1000; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.live-panel-head span { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #ffdbab; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.live-panel-head span i { width: 6px; height: 6px; border-radius: 50%; background: #32f39a; box-shadow: 0 0 10px #32f39a; animation: casinoPulse 1s ease-in-out infinite; }
.live-panel-actions { display: flex; align-items: center; gap: 7px; }
.live-panel-actions button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #ffdc60; border-radius: 50%; cursor: pointer; }
.sound-toggle { color: #ffd752; background: #4b164e; box-shadow: inset 0 0 10px rgba(255,215,82,.22); font-size: 18px; font-weight: 1000; }
.sound-toggle.active { color: #481538; background: linear-gradient(145deg, #fff17c, #ff9f20); box-shadow: 0 0 13px rgba(255,211,64,.55); }
.live-panel-actions .live-close { color: #521133; background: linear-gradient(145deg, #fff400, #ff9d22); box-shadow: 0 0 13px rgba(255,211,64,.55); font-size: 22px; }
.spin-status-line { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px auto 1px; color: #fff; font-size: 7px; font-weight: 1000; letter-spacing: .11em; }
.spin-status-line i { width: 6px; height: 6px; border-radius: 50%; background: #ffdd54; box-shadow: 0 0 9px #ffdd54; animation: casinoPulse .8s ease-in-out infinite alternate; }
.spin-status-line b { color: #ffd45a; font-size: 6px; }
@keyframes casinoPulse { 50% { opacity: .35; transform: scale(.72); } }
.wheel-stage { --stage-size: min(78vw, 390px); --light-radius: calc(var(--stage-size) * .455); --number-radius: calc(var(--stage-size) * .295); position: relative; width: var(--stage-size); aspect-ratio: 1; margin: 3px auto 6px; }
.wheel-lights { position: absolute; z-index: 0; inset: 0; border: 4px solid #a94e0e; border-radius: 50%; background: radial-gradient(circle, transparent 56%, #ff9e18 57% 66%, #ffdb53 67% 73%, #8f360d 74%); box-shadow: 0 0 18px #ffb31d, inset 0 0 22px #ffdb44; }
.wheel-lights i { position: absolute; top: 50%; left: 50%; width: clamp(7px, 2.4vw, 11px); height: clamp(7px, 2.4vw, 11px); margin: clamp(-5.5px, -1.2vw, -3.5px); transform: rotate(calc(var(--i) * 12deg)) translateY(calc(var(--light-radius) * -1)); border: 1px solid #fff5c7; border-radius: 50%; background: #fffbd4; box-shadow: 0 0 7px 2px #fff09a, 0 0 13px #ffbd23; animation: bulbTwinkle .72s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -35ms); }
.wheel-stage.spinning .wheel-lights i { animation-duration: .32s; }
@keyframes bulbTwinkle { to { opacity: .48; filter: brightness(.74); } }
.wheel-gold-ring { position: absolute; z-index: 1; inset: 8%; border: 3px solid #fff3a8; border-radius: 50%; background: linear-gradient(145deg, #fff2a3, #b8560c 42%, #ffd65a 64%, #873006); box-shadow: 0 0 0 4px #671329, 0 0 18px rgba(255,210,64,.8), inset 0 0 12px #fff3ad; }
.wheel-pointer { position: absolute; z-index: 8; top: 2%; left: 50%; width: 42px; height: 58px; transform: translateX(-50%); filter: drop-shadow(0 5px 4px rgba(0,0,0,.45)); }
.wheel-pointer::before { content: ""; position: absolute; top: 0; left: 50%; width: 27px; height: 27px; transform: translateX(-50%); border: 3px solid #ffe56d; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff7ad, #ff9a21 34%, #e63031 68%); box-shadow: 0 0 13px #ffbd2e; }
.wheel-pointer::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); border-right: 16px solid transparent; border-left: 16px solid transparent; border-top: 31px solid #f13b38; }
.wheel-pointer i { position: absolute; z-index: 1; top: 24px; left: 50%; transform: translateX(-50%); border-right: 9px solid transparent; border-left: 9px solid transparent; border-top: 18px solid #ff9d21; }
.wheel { position: absolute; z-index: 3; inset: 12%; overflow: hidden; border: 4px solid #fff6ba; border-radius: 50%; outline: 4px solid #4e102f; background: conic-gradient(from -18deg,#f13b45 0 36deg,#7136b3 36deg 72deg,#1ba54a 72deg 108deg,#1884c7 108deg 144deg,#f37a14 144deg 180deg,#f13b45 180deg 216deg,#7136b3 216deg 252deg,#1ba54a 252deg 288deg,#1884c7 288deg 324deg,#f37a14 324deg 360deg); box-shadow: inset 0 0 0 3px rgba(255,223,101,.75), inset 0 0 24px rgba(38,5,36,.6), 0 0 16px rgba(255,228,115,.72); }
.wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -18deg, transparent 0 35.4deg, rgba(255,231,138,.82) 35.4deg 36deg); pointer-events: none; }
.wheel::after { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.3), transparent 37%); pointer-events: none; }
.wheel > span { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: clamp(25px, 7vw, 34px); height: clamp(25px, 7vw, 34px); margin: clamp(-17px, -3.5vw, -12.5px); place-items: center; transform: rotate(calc(var(--i) * 36deg)) translateY(calc(var(--number-radius) * -1)) rotate(calc(var(--i) * -36deg)); border: 2px solid #ffea83; border-radius: 50%; color: #fff; background: rgba(39,8,45,.78); box-shadow: 0 2px 5px rgba(0,0,0,.44), inset 0 0 6px rgba(255,218,82,.28); font-size: clamp(14px, 4vw, 21px); font-weight: 1000; line-height: 1; text-shadow: 0 2px 4px #260725; }
.wheel-center { position: absolute; z-index: 5; inset: 33%; display: grid; place-items: center; align-content: center; border: 4px solid #ffe870; border-radius: 50%; color: #fff; background: radial-gradient(circle at 38% 28%, #ff6868, #b50f31 55%, #5b0d35); box-shadow: 0 0 0 4px #8c3f0e, 0 0 18px rgba(255,208,65,.8), inset 0 0 15px rgba(255,255,255,.22); text-align: center; }
.wheel-center small { color: #ffe97d; font-size: clamp(5px, 1.4vw, 7px); font-weight: 1000; letter-spacing: .06em; }
.wheel-center b { margin-top: 1px; color: #fff; font-size: clamp(20px, 6.5vw, 34px); font-weight: 1000; line-height: .9; text-shadow: 0 2px 0 #69102f, 0 0 9px #ffd95b; }
.wheel-center em { margin-top: 3px; color: #fff1ad; font-size: clamp(5px, 1.4vw, 7px); font-style: normal; font-weight: 1000; letter-spacing: .11em; }
.wheel-stage.spinning .wheel-center { animation: centerResultPulse .72s ease-in-out infinite alternate; }
@keyframes centerResultPulse { to { box-shadow: 0 0 0 5px #ffbd23, 0 0 30px #ff9c1e, inset 0 0 17px rgba(255,255,255,.34); } }
.reveal-card { position: relative; z-index: 2; overflow: hidden; max-height: 0; padding: 0 12px; opacity: 0; transform: translateY(12px) scale(.96); border: 0 solid #ffdc68; border-radius: 15px; background: radial-gradient(circle at 50% 0, rgba(255,210,68,.25), transparent 44%), linear-gradient(145deg, #771b3b, #360e31); text-align: center; transition: opacity .35s, transform .35s, max-height .45s, padding .35s, border-width .2s; }
.reveal-card.show { max-height: 240px; padding: 13px 12px 12px; opacity: 1; transform: none; border-width: 2px; box-shadow: inset 0 0 25px rgba(255,188,48,.12), 0 0 20px rgba(255,189,44,.26); }
.reveal-card > span { color: #ffe270; font-size: 7px; font-weight: 1000; letter-spacing: .12em; }
.reveal-card h3 { margin: 4px 0 1px; color: #fff; font-size: clamp(19px, 5.5vw, 28px); font-weight: 1000; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.reveal-card > small { color: #71f5ff; font-size: 7px; font-weight: 1000; letter-spacing: .14em; }
.reveal-equation { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 5px 0 3px; }
.reveal-equation strong, .reveal-equation b { font-size: clamp(31px, 9vw, 48px); font-weight: 1000; line-height: 1; }
.reveal-equation strong { color: #ffe164; }
.reveal-equation b { color: #fff; }
.reveal-equation i { color: #ff9a49; font-size: 20px; font-style: normal; font-weight: 1000; }
.reveal-card p { margin: 0; color: #ffe8b0; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.result-sparkles { position: absolute; inset: 0; pointer-events: none; }
.result-sparkles i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffdf57; box-shadow: 0 0 10px #ffbd2d; animation: resultSpark 1.1s ease-in-out infinite alternate; }
.result-sparkles i:nth-child(1) { top: 15%; left: 7%; }
.result-sparkles i:nth-child(2) { top: 55%; left: 13%; animation-delay: -.4s; }
.result-sparkles i:nth-child(3) { top: 20%; right: 8%; animation-delay: -.7s; }
.result-sparkles i:nth-child(4) { top: 66%; right: 13%; animation-delay: -.2s; }
.result-sparkles i:nth-child(5) { top: 8%; left: 28%; animation-delay: -.8s; }
.result-sparkles i:nth-child(6) { top: 10%; right: 29%; animation-delay: -.55s; }
@keyframes resultSpark { to { opacity: .25; transform: scale(.45); } }

/* Natural casino palette and restrained public-board motion */
:root {
  --page: #f2f1ec;
  --white: #fff;
  --cyan: #2d7664;
  --cyan-deep: #1d5d50;
  --yellow: #d7b65d;
  --ink: #172621;
  --muted: #61706a;
  --red: #8d2940;
  --green: #17624d;
  --line: #d9d7cc;
  --shadow: 0 14px 34px rgba(45,55,49,.1);
}
body { background: var(--page); }
.site-header { border-color: #e2e0d8; background: rgba(255,255,255,.97); box-shadow: 0 5px 16px rgba(36,49,43,.07); }
.brand-mark { border-color: #b8943d; color: #17372d; background: #e7cb72; box-shadow: 2px 2px 0 #dce8e2; }
.brand-copy small { color: #477166; }
main { border-color: #e4e2da; }

.live-hero { border-color: #d2c18f; background: linear-gradient(rgba(22,98,77,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22,98,77,.035) 1px, transparent 1px), linear-gradient(118deg, #fbfaf5 0 69%, #eee1bd 69% 100%); background-size: 24px 24px, 24px 24px, auto; box-shadow: 0 9px 24px rgba(47,60,53,.12); }
.live-hero::after { border-color: rgba(188,151,61,.1); }
.live-hero h1 { color: #195541; text-shadow: none; }
.live-hero h1 em { color: #81243b; }
.live-hero .section-kicker { color: #376d5e; }
.live-hero .section-kicker i { background: #2a725d; box-shadow: 0 0 0 3px rgba(42,114,93,.12); animation: naturalLivePulse 2s ease-in-out infinite; }
@keyframes naturalLivePulse { 50% { opacity: .5; box-shadow: 0 0 0 6px rgba(42,114,93,0); } }
.hero-status-pill { border-color: #b9cfc6; color: #255d4b; background: #f5faf7; box-shadow: 0 2px 7px rgba(35,78,63,.08); }
.hero-status-pill.bet_closed, .hero-status-pill.closed_break, .hero-status-pill.sunday_closed { border-color: #d7b7bf; color: #81243b; background: #fff7f8; }
.hero-status-pill.result_spinning { border-color: #c6a44d; color: #6e2437; background: #f5e6ae; }
.hero-slot-label { color: #fff; background: #7d2a42; box-shadow: none; }
.hero-game-copy h2 { color: #173f35; text-shadow: none; animation: none; }
.status-main { border-color: #c8d9d1; color: #245f4c; background: #f7faf8; box-shadow: 0 2px 8px rgba(45,72,61,.09); animation: statusSoftPulse 2.7s ease-in-out infinite; }
.status-main.game_open { color: #176047; background: #f1f8f4; }
.status-main.bet_closed, .status-main.closed_break, .status-main.sunday_closed { color: #842a40; background: #fff6f7; }
.status-main.result_spinning { color: #fff4d0; background: #6e2c42; }
@keyframes statusSoftPulse { 50% { box-shadow: 0 3px 12px rgba(45,72,61,.16); } }
.spin-cue { border-color: #d0bc82; color: #173f35; background: #fffdf7; box-shadow: 0 3px 9px rgba(64,57,36,.09); }
.spin-cue > i { position: relative; overflow: hidden; width: 23px; height: 23px; border: 1px solid #c6a44d; color: #173f35; background: #f6ecd0; box-shadow: none; animation: none; }
.spin-cue > i::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: conic-gradient(#7d2941 0 20%, #1c6250 20% 40%, #c1983d 40% 60%, #294d5b 60% 80%, #7d2941 80%); animation: miniCasinoWheel 6s linear infinite; }
.spin-cue > i b { position: relative; z-index: 1; display: grid; width: 13px; height: 13px; place-items: center; border: 1px solid #c6a44d; border-radius: 50%; color: #673044; background: #fffaf0; font-size: 4px; font-weight: 1000; letter-spacing: 0; }
@keyframes miniCasinoWheel { to { transform: rotate(360deg); } }
.spin-cue small { color: #7b3044; }
.spin-cue strong { color: #204d40; }
.hero-countdown-block > span { color: #526b62; }
.hero-countdown-block strong { border-color: #c9a54b; color: #f6e8b7; background: linear-gradient(180deg, #244c41, #16362f); box-shadow: inset 0 0 12px rgba(255,255,255,.06), 0 0 0 1px #ede2be, 0 5px 13px rgba(28,64,52,.18); text-shadow: 0 1px 4px rgba(0,0,0,.35); animation: naturalCountdown 2.6s ease-in-out infinite; }
.hero-countdown-block::after { display: none; }
@keyframes naturalCountdown { 50% { border-color: #e0c873; box-shadow: inset 0 0 14px rgba(255,255,255,.08), 0 0 0 1px #ede2be, 0 6px 17px rgba(28,64,52,.25); } }
.hero-equation { border-color: #c8a64c; color: #173f35; background: #f4e7b9; box-shadow: 0 5px 15px rgba(47,55,43,.15); }

.hero-wheel-wrap { filter: drop-shadow(0 7px 9px rgba(57,54,38,.18)); animation: wheelSoftFloat 5s ease-in-out infinite; }
@keyframes wheelSoftFloat { 50% { transform: translateY(-2px); } }
.hero-wheel-rim { border-color: #f7eed6; background: repeating-conic-gradient(#b98e36 0 6deg, #eee0b6 6deg 12deg); box-shadow: 0 0 0 2px #aa8437, 0 4px 13px rgba(74,60,32,.2); animation-duration: 16s; }
.hero-wheel-pointer { border-top-color: #7d2941; filter: drop-shadow(0 2px 0 #d4b45f); }
.hero-wheel { border-color: #f7f1df; outline-color: #b68d37; background: conic-gradient(from -18deg,#8b3047 0 36deg,#4b466d 36deg 72deg,#23614f 72deg 108deg,#31596a 108deg 144deg,#b07d34 144deg 180deg,#8b3047 180deg 216deg,#4b466d 216deg 252deg,#23614f 252deg 288deg,#31596a 288deg 324deg,#b07d34 324deg 360deg); box-shadow: inset 0 0 0 2px rgba(255,246,219,.7), 0 5px 13px rgba(60,54,40,.18); }
.hero-wheel > span { text-shadow: 0 1px 2px rgba(20,29,26,.6); }
.hero-wheel-center { border-color: #f5e8bd; color: #6d2a40; background: #f7f0dc; box-shadow: 0 0 0 2px #b68d37, 0 3px 9px rgba(64,53,31,.22); }
.hero-wheel-center b { color: #6f2a40; font-size: clamp(8px, 2.1vw, 12px); line-height: 1; animation: none; }
.hero-wheel-center small { margin-top: 2px; color: #376454; font-size: 5px; }

.today-heading { padding: 13px 12px 12px; border-color: #d8c792; background: linear-gradient(120deg, #fbfaf5, #f3ead1); box-shadow: 0 8px 19px rgba(57,63,56,.11); }
.today-heading::before { color: rgba(62,93,80,.045); }
.today-heading .section-kicker { color: #496c60; }
.today-heading .section-kicker i { background: #2c6d59; box-shadow: 0 0 0 3px rgba(44,109,89,.12); animation: naturalLivePulse 2s ease-in-out infinite; }
.today-heading h2 { color: #203d34; text-shadow: none; }
.heading-spinner { position: relative; overflow: hidden; width: 30px; height: 30px; border-color: #d6c184; color: #673044; background: #f8f1dd; box-shadow: 0 2px 7px rgba(66,58,37,.16); animation: none !important; }
.heading-spinner::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(#7d2941 0 20%, #1d6250 20% 40%, #b98d38 40% 60%, #31596a 60% 80%, #7d2941 80%); animation: miniCasinoWheel 7s linear infinite; }
.heading-spinner::after { inset: 8px; border: 1px solid #c3a04b; background: #1a3d32; }
.heading-spinner b { color: #ffffff; font-size: 4px; letter-spacing: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.status-legend span { border-color: #d1d5cf; box-shadow: 0 2px 6px rgba(50,60,55,.06); }
.status-legend .open { color: #1d614d; background: #f4f9f6; }
.status-legend .declared { color: #7e293f; background: #fff7f8; }

.result-grid { gap: 8px; }
.result-slot { min-height: 108px; border-color: #d7dad4; color: #1e332c; background: #f4f7f5; box-shadow: 0 5px 12px rgba(48,63,55,.11); animation: slotCardIn .42s ease both; }
.result-slot:hover { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(48,63,55,.14); filter: none; }
.result-slot::before { color: rgba(54,91,75,.06); }
.result-slot::after { display: none; }
.result-slot.game_open { background: linear-gradient(145deg, #edf7f1, #f9fbf8); animation: slotCardIn .42s ease both; }
.result-slot.bet_closed { background: linear-gradient(145deg, #fff4f4, #f7ebe7); }
.result-slot.result_spinning { color: #fff; background: linear-gradient(145deg, #6f2b43, #3d493f); animation: slotCardIn .42s ease both, quietSpinPulse 2.1s ease-in-out infinite; }
.result-slot.result_declared { background: linear-gradient(145deg, #fffaf0, #eee8d9); }
.result-slot.result_pending { background: linear-gradient(145deg, #f0f6f7, #e8f0f1); }
.result-slot.sunday_closed { color: #65716d; background: #f3f3f0; }
@keyframes quietSpinPulse { 50% { box-shadow: 0 7px 18px rgba(111,43,67,.24); } }
.slot-top > strong { color: #234f42; font-size: clamp(11px, 2.9vw, 15px); text-shadow: none; }
.result-slot.game_open .slot-top > strong { color: #1b604b; }
.result-slot.bet_closed .slot-top > strong { color: #812b40; }
.result-slot.result_declared .slot-top > strong { color: #31594b; }
.result-slot.result_pending .slot-top > strong { color: #31596a; }
.slot-corner-status { width: 24px; height: 20px; border-color: #c8d2cd; border-radius: 6px; color: #426b5e; background: rgba(255,255,255,.86); box-shadow: 0 2px 6px rgba(48,62,55,.12); animation: cornerSoftPulse 2.8s ease-in-out infinite; }
.result-slot.game_open .slot-corner-status { color: #22634f; background: #f4f9f6; }
.result-slot.bet_closed .slot-corner-status, .result-slot.result_declared .slot-corner-status { color: #873047; background: #fff8f8; }
.result-slot.result_pending .slot-corner-status { color: #315f70; background: #f6fafb; }
@keyframes cornerSoftPulse { 50% { opacity: .76; } }
.slot-corner-status.lock .mini-status-icon, .slot-corner-status.unlock .mini-status-icon { width: 9px; height: 7px; margin-top: 3px; border-width: 1.5px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.86); }
.slot-corner-status.lock .mini-status-icon::before, .slot-corner-status.unlock .mini-status-icon::before { left: 1px; top: -7px; width: 6px; height: 6px; border-width: 1.5px; }
.slot-corner-status.unlock .mini-status-icon::before { left: 4px; }
.slot-corner-status.time .mini-status-icon { width: 11px; height: 11px; border-width: 1.5px; }
.slot-corner-status.time .mini-status-icon::before { left: 4px; top: 2px; width: 1.5px; height: 4px; }
.slot-corner-status.time .mini-status-icon::after { left: 4px; top: 5px; width: 3px; height: 1.5px; }
.slot-corner-status.spin .mini-status-icon { width: 12px; height: 12px; border: 1px solid #d8bd70; border-radius: 50%; background: conic-gradient(#7d2941 0 25%, #23614f 25% 50%, #b88d39 50% 75%, #31596a 75%); animation: miniCasinoWheel 3.8s linear infinite; }
.slot-corner-status.spin .mini-status-icon::after { inset: 3px; border: 0; border-radius: 50%; background: #fff7df; transform: none; }
.slot-result-time { margin-top: 6px; padding: 4px 6px; border-left-width: 2px; border-left-color: #947338; color: #4b5e57; background: rgba(255,255,255,.72); box-shadow: none; font-size: 7px; letter-spacing: .03em; }
.result-slot.game_open .slot-result-time { border-left-color: #32735f; color: #315b4e; }
.result-slot.bet_closed .slot-result-time { border-left-color: #914158; color: #783548; }
.result-slot.result_declared .slot-result-time { border-left-color: #b18c39; color: #4b5c54; }
.slot-result { margin-top: 5px; }
.slot-result strong, .slot-result b { font-size: clamp(18px, 5vw, 25px); text-shadow: none; }
.slot-result b { color: #873047; }
.slot-status { border-color: #cbd1cd; color: #4e665e; background: rgba(255,255,255,.72); box-shadow: none; }
.result-slot.result_declared .slot-status { color: #7f3045; background: #fff9f8; }
.result-slot.result_pending .slot-status { color: #426b79; background: #f7fafb; }

.history-download, .history-load-more button { border-color: #c4a657; color: #27493e; background: #f3ead0; box-shadow: 0 4px 10px rgba(54,60,47,.1); }
.history-scroll caption { color: #fff; background: #315f50; }
.history-browser .section-heading { border-color: #d9d6ca; background: #fbfaf5; }
.history-load-more { border-color: #dbd4c1; background: #fbfaf5; box-shadow: 0 7px 16px rgba(49,59,53,.09); }
.history-progress i.loaded { border-color: #9d8038; background: #b99a4d; box-shadow: none; }
.history-load-icon { border-color: #b29343; background: #315c4e; }
.game-guide { border-color: #d8d3c4; box-shadow: var(--shadow); }
.guide-title { background: linear-gradient(115deg, #234f42, #487467 72%, #d2b361 72%); color: #fff; }
.guide-title .section-kicker { color: #eee3c4; }
.schedule-card { border-color: #d9d7ce; box-shadow: 0 4px 10px rgba(47,58,52,.08); }
.schedule-card > span, .process-step > i { border-color: #c4a657; box-shadow: none; }
.rules-panel { background: linear-gradient(145deg, #285649, #173d33); }
.rules-heading > span { border-color: #d8be73; color: #21483d; background: #ead69b; box-shadow: none; }
.rules-note { border-color: #d2b35c; color: #244b40; background: #f1e3b7; }

@media (max-width: 520px) {
  .server-clock { grid-template-columns: 1fr; }
  .server-clock .clock-live { display: none; }
  main { padding-right: 10px; padding-left: 10px; }
  .live-hero { min-height: 156px; border-radius: 11px; box-shadow: 0 8px 20px rgba(47,60,53,.12); }
  .live-hero-body { grid-template-columns: minmax(0, 1fr) 108px; }
  .hero-wheel-wrap { --wheel-radius: 40px; width: 108px; min-width: 108px; }
  .live-hero-foot p { display: none; }
  .section-heading h2 { font-size: 26px; }
  .today-heading { padding: 12px 9px 10px; }
  .result-slot { min-height: 102px; padding: 8px 6px 7px; border-radius: 9px; box-shadow: 0 5px 12px rgba(48,63,55,.11); }
  .history-scroll th, .history-scroll td { height: 43px; padding: 2px 0; }
  .schedule-summary { grid-template-columns: 1fr; }
  .game-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .process-step:nth-child(4) { border-top: 1px solid var(--line); }
  .rules-copy { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 350px) {
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { letter-spacing: .1em; }
  .live-hero { min-height: 150px; padding: 8px; }
  .live-hero-body { grid-template-columns: minmax(0, 1fr) 96px; }
  .hero-wheel-wrap { --wheel-radius: 35px; width: 96px; min-width: 96px; }
  .hero-game-copy h2 { font-size: 19px; }
  .hero-countdown-block strong { font-size: 21px; }
  .spin-cue { padding: 4px 6px; }
  .spin-cue > i { width: 21px; height: 21px; font-size: 14px; }
  .result-grid { gap: 5px; }
  .result-slot { min-height: 98px; padding-right: 5px; padding-left: 5px; }
  .slot-top > strong { font-size: 10px; }
  .slot-result strong, .slot-result b { font-size: 18px; }
  .history-tabs button { font-size: 6px; }
}

/* Number-derived category enhancement: fits inside existing result dimensions. */
.slot-number {
  display: grid;
  min-width: 27px;
  min-height: 34px;
  align-content: center;
  justify-items: center;
  line-height: 1;
}
.slot-number > b { line-height: .9; }
.result-category {
  display: block;
  max-width: 42px;
  margin-top: 2px;
  overflow: hidden;
  color: #315c4e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5px, 1.35vw, 7px);
  font-weight: 1000;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}
.result-slot.result_declared .result-category { color: #7d2941; }
.result-slot.result_spinning .result-category { color: #f5df9b; }
.history-scroll td .history-category {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #23705b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5px, 1.15vw, 7px);
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}
.hero-number-stack, .reveal-number-stack { display: grid; align-content: center; justify-items: center; }
.hero-number-stack small, .reveal-number-stack small {
  display: block;
  margin-top: 1px;
  color: #315c4e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 6px;
  font-weight: 1000;
  font-style: normal;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}
.reveal-number-stack small { margin-top: 3px; color: #ffe08a; font-size: 8px; }

.category-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.category-rule, .category-examples {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(226, 198, 109, .35);
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
}
.category-rule-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.category-rule-head > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #244b40;
  background: #e8d38f;
  font-size: 9px;
  font-weight: 1000;
}
.size-rule .category-rule-head > span { color: #fff; background: #7d2941; }
.category-rule-head small, .category-rule-head strong { display: block; }
.category-rule-head small { color: #cfbd83; font-size: 5px; font-weight: 1000; letter-spacing: .12em; }
.category-rule-head strong { margin-top: 2px; color: #fff; font-size: 12px; font-weight: 1000; }
.category-rule p { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: center; margin: 5px 0 0; }
.category-rule p b { padding: 3px 5px; border-radius: 5px; color: #173f35; background: #f0e2b4; font-size: 7px; white-space: nowrap; }
.category-rule p span { color: #edf3ef; font-size: 8px; font-weight: 900; letter-spacing: .02em; }
.category-examples { grid-column: 1 / -1; }
.category-examples > strong { display: block; margin-bottom: 8px; color: #dfc875; font-size: 7px; letter-spacing: .12em; }
.category-examples > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.category-examples span { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.category-examples b { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #213f36; background: #ead48f; font-size: 11px; }
.category-examples small { overflow: hidden; color: #fff; font-size: 6px; font-weight: 1000; line-height: 1.15; white-space: nowrap; }

@media (max-width: 520px) {
  .category-rules { grid-template-columns: 1fr; }
  .category-examples { grid-column: auto; }
  .category-examples > div { grid-template-columns: 1fr 1fr; }
  .history-scroll th, .history-scroll td { height: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final full-site professional gaming system */
:root {
  --surface: #fffdf8;
  --surface-soft: #f8f5ed;
  --emerald: #1f5b49;
  --emerald-deep: #163f35;
  --burgundy: #7b2a40;
  --gold: #c6a24d;
  --gold-soft: #ead9a6;
  --slate: #31525c;
  --border-soft: #ddd8ca;
  --shadow-soft: 0 7px 20px rgba(36,53,45,.09);
  --shadow-card: 0 5px 14px rgba(38,55,47,.1);
}
body { color: #1b2d26; background: #f4f2ec; line-height: 1.45; }
button, a { -webkit-tap-highlight-color: transparent; }
button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
button:active { transform: translateY(1px); }
.site-header, main, footer { border-color: #e3dfd4; }
.site-header { box-shadow: 0 4px 16px rgba(33,52,43,.07); }
.brand { gap: 8px; }
.brand-mark { border: 1px solid #b9943e; border-radius: 8px; color: var(--emerald-deep); background: linear-gradient(145deg, #f1df9d, #d8b85c); box-shadow: 0 3px 8px rgba(83,68,31,.13); }
.brand-copy strong { color: #192d26; font-weight: 1000; }
.brand-copy small { color: #55736a; }
.server-clock strong { color: var(--emerald-deep); font-weight: 1000; }
.server-clock small { color: #78847f; }
.server-clock .clock-live { border-color: #c7d8d1; color: var(--emerald); background: #f4f8f6; }
main { background: #fff; }
.content-section { margin-top: 22px; }
.section-kicker { color: #557168; font-size: 7px; font-weight: 1000; letter-spacing: .14em; }
.section-heading h2, .today-heading h2, .guide-title h2 { color: #1b3028; font-weight: 1000; }

.live-hero { border: 1px solid #d8c791; border-radius: 14px; background: linear-gradient(rgba(31,91,73,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(31,91,73,.03) 1px, transparent 1px), linear-gradient(118deg, #fcfbf7 0 68%, #eee3c4 68%); background-size: 25px 25px, 25px 25px, auto; box-shadow: var(--shadow-soft); }
.live-hero-top { align-items: center; }
.live-hero h1 { color: var(--emerald); font-size: clamp(18px, 4vw, 27px); letter-spacing: -.035em; }
.live-hero h1 em { color: var(--burgundy); }
.hero-status-pill { min-height: 24px; padding: 4px 8px; border-color: #cbd8d3; color: var(--emerald); background: rgba(255,255,255,.86); box-shadow: 0 2px 8px rgba(38,65,54,.08); }
.hero-status-pill span { width: 5px; height: 5px; animation-duration: 2.2s; }
.hero-slot-label { padding: 3px 7px; border-radius: 999px; background: var(--burgundy); }
.hero-game-copy h2 { margin-top: 5px; color: var(--emerald-deep); font-size: clamp(20px, 5vw, 34px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.status-main { padding: 4px 8px; border-color: #cbd8d2; border-radius: 999px; color: var(--emerald); background: #f7faf8; box-shadow: 0 2px 7px rgba(41,66,55,.08); }
.status-main::before { width: 5px; height: 5px; }
.spin-cue { border-color: #d7c68e; border-radius: 9px; background: rgba(255,253,247,.92); box-shadow: 0 3px 9px rgba(72,62,37,.08); }
.spin-cue small { color: #765064; }
.spin-cue strong { color: var(--emerald-deep); font-variant-numeric: tabular-nums; }
.hero-countdown-block > span { color: #667971; }
.hero-countdown-block strong { border-color: #c8a650; color: #f7e9bb; background: linear-gradient(180deg, #285448, #173c33); box-shadow: inset 0 0 12px rgba(255,255,255,.05), 0 4px 13px rgba(28,58,49,.2); font-weight: 1000; }
.hero-wheel-wrap { filter: drop-shadow(0 6px 8px rgba(66,56,34,.17)); }
.hero-wheel-rim { box-shadow: 0 0 0 1px #ac8735, 0 4px 11px rgba(77,65,39,.18); }
.hero-wheel { outline-width: 1px; box-shadow: inset 0 0 0 2px rgba(255,246,219,.65), 0 4px 11px rgba(62,54,38,.17); }
.hero-wheel-center { border-width: 2px; }

.today-section { width: min(100%, 590px); }
.today-heading { margin-bottom: 12px; padding: 13px 12px; border: 1px solid #d8c791; border-radius: 14px; background: linear-gradient(135deg, #fcfbf7, #f1e8cf); box-shadow: var(--shadow-soft); }
.today-heading::before { opacity: .55; }
.today-title-row { margin: 5px 0 9px; }
.today-heading h2 { font-size: clamp(26px, 7vw, 37px); letter-spacing: -.04em; }
.heading-spinner { border-color: #cbb066; background: #f8efd3; box-shadow: 0 3px 8px rgba(76,62,34,.14); }
.status-legend { gap: 7px; }
.status-legend span { min-height: 25px; padding: 4px 10px; border-color: #d5d5ce; box-shadow: none; }

.result-grid { gap: 8px; }
.result-slot { min-height: 108px; padding: 9px 8px 8px; border: 1px solid #d9ddd7; border-radius: 11px; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.result-slot:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(38,55,47,.13); }
.result-slot.game_open { background: linear-gradient(145deg, #eef7f2, #fbfcfa); }
.result-slot.bet_closed { background: linear-gradient(145deg, #fff5f5, #f5ebe7); }
.result-slot.result_declared { background: linear-gradient(145deg, #fffbf1, #eee8da); }
.result-slot.result_pending { background: linear-gradient(145deg, #f2f7f8, #e8f0f1); }
.result-slot.result_spinning { background: linear-gradient(145deg, #713047, #344c44); }
.result-slot::before { opacity: .72; }
.slot-top > strong { color: #244f42; font-size: clamp(11px, 2.9vw, 15px); font-variant-numeric: tabular-nums; }
.slot-corner-status { width: 23px; height: 20px; border-color: #ccd4d0; box-shadow: 0 2px 6px rgba(45,61,53,.1); }
.slot-result-time { min-height: 20px; align-items: center; padding: 4px 6px; color: #4d625a; background: rgba(255,255,255,.72); font-size: 7px; font-variant-numeric: tabular-nums; }
.slot-result { min-height: 36px; margin: 4px 0 2px; }
.slot-result strong, .slot-result b { font-size: clamp(18px, 5vw, 25px); font-variant-numeric: tabular-nums; }
.slot-result span { color: #6c7772; }
.slot-status { min-height: 20px; padding: 3px 6px; border-color: #cfd4d0; font-size: 6px; }

.history-browser .section-heading { margin-bottom: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.section-heading h2 { font-size: clamp(25px, 6vw, 34px); }
.section-heading p { color: #6d7773; }
.history-tabs { gap: 6px; }
.history-tabs button { min-height: 34px; border-color: #d6d8d2; color: #516b62; background: #fafaf7; }
.history-tabs button.active, .history-tabs button:focus-visible { border-color: #a78639; color: #fff; background: var(--emerald); box-shadow: 0 3px 8px rgba(31,91,73,.18); }
.history-download { min-height: 38px; border-color: #c7ab64; color: var(--emerald-deep); background: #f2e7c7; box-shadow: 0 4px 10px rgba(70,62,39,.09); }
.history-shell { border-color: #d8d8d0; border-radius: 12px; box-shadow: var(--shadow-soft); }
.history-scroll caption { padding: 17px 8px 14px; color: #fff; background: linear-gradient(110deg, #204f41, #376b5b); }
.history-scroll caption strong { font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; }
.history-scroll th, .history-scroll td { border-color: #dedbd0; }
.history-scroll thead th { color: #273a33; background: #e8d39a; }
.history-scroll tbody tr:nth-child(even) th, .history-scroll tbody tr:nth-child(even) td { background: #fbfaf6; }
.history-scroll tbody th { color: #334b42; }
.history-scroll td strong { color: #2f4d42; }
.history-scroll td small { color: var(--burgundy); }
.history-scroll .history-closed { background: #f2f2ee; }
.history-load-more { border-color: #d8d4c7; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.history-progress i { border-color: #d8d4c7; background: #ece9e0; }
.history-progress i.loaded { border-color: #9c7d33; background: linear-gradient(90deg, #a88436, #d4ba72); }
.history-load-more button { border-color: #c7aa61; color: #fff; background: linear-gradient(110deg, #1e5746, #326e5c); box-shadow: 0 4px 11px rgba(31,83,67,.16); }
.history-load-more button small { color: #e8efe9; }
.history-load-icon { border-color: #e0cb8c; color: var(--emerald-deep); background: #ead99f; }

.game-guide { border: 1px solid #d7d3c6; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.guide-title { padding: 20px 16px 18px; background: linear-gradient(120deg, #214f41 0 72%, #c3a04d 72%); }
.guide-title::after { opacity: .45; }
.guide-title h2 { color: #fff; }
.guide-title p { color: #e8eee9; }
.guide-download-box {
  border-color: #ded8c8;
  background: linear-gradient(120deg, #f4ecda, #eef5f0);
}
.guide-download-copy small { color: #8a6f2e; }
.guide-download-copy strong { color: #214f41; }
.guide-download-copy p { color: #61706a; }
.guide-intro { border-color: #ded8c8; background: #fbf8ef; }
.guide-intro > strong { color: var(--emerald); }
.guide-intro p { color: #42564e; }
.schedule-summary { gap: 9px; background: #fbfaf6; }
.schedule-card { border: 1px solid #dcdad1; border-radius: 11px; background: #fff !important; box-shadow: 0 4px 11px rgba(44,57,50,.07); }
.schedule-card > span { border: 0; color: #fff !important; background: var(--emerald) !important; }
.schedule-card.break > span, .schedule-card.sunday > span { background: var(--burgundy) !important; }
.schedule-card.evening > span { background: var(--slate) !important; }
.schedule-card small { color: #64736d; }
.schedule-card strong { color: #2b483e; font-variant-numeric: tabular-nums; }
.schedule-card p { color: #61706a; }
.game-process { border-color: #dedbd2; }
.process-step + .process-step { border-color: #dedbd2; }
.process-step > i { border-color: #c6a34e; color: var(--emerald-deep); background: #ebd99e; }
.process-step small { color: #61736c; }
.process-step strong { color: #294a3f; }
.rules-panel { background: linear-gradient(145deg, #244f42, #183d34); }
.rules-heading { border-color: rgba(230,217,173,.24); }
.rules-heading small { color: #d8c682; }
.rules-copy p { color: #e8efeb; }
.rules-copy b { color: #e2c66d; }
.rules-note { border-color: #d0b667; color: #284a3f; background: #f0e2b7; }
.rules-note i { background: var(--emerald); }

footer { border-top-color: #dedbd1; color: #66736e; background: #faf9f5; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand .brand-copy strong { color: #263e35; }

.live-wheel-overlay { background: radial-gradient(circle at 50% 24%, rgba(123,42,64,.23), transparent 36%), rgba(16,35,29,.91); }
.live-panel { border-color: #d0ad54; background: radial-gradient(circle at 50% 38%, rgba(124,41,61,.54), transparent 39%), linear-gradient(155deg, #173e34, #5d2639 58%, #223d35); box-shadow: 0 0 0 2px rgba(198,162,77,.28), 0 18px 50px rgba(18,34,28,.48); }
.live-panel-head { border-color: rgba(226,200,121,.24); }
.live-panel-head small, .spin-status-line b { color: #e5ca79; }
.sound-toggle.active, .live-panel-actions .live-close { color: #4f2b35; background: linear-gradient(145deg, #ead889, #c89f46); box-shadow: 0 3px 10px rgba(198,159,70,.24); }
.reveal-card { border-color: #d2b65f; background: radial-gradient(circle at 50% 0, rgba(220,185,93,.18), transparent 44%), linear-gradient(145deg, #733048, #274b41); }

@media (max-width: 520px) {
  main { padding-right: 9px; padding-left: 9px; }
  .live-hero { box-shadow: var(--shadow-soft); }
  .today-heading { padding: 12px 9px; }
  .result-grid { gap: 7px; }
  .result-slot { min-height: 104px; padding: 8px 6px 7px; box-shadow: var(--shadow-card); }
  .slot-result-time { padding-right: 4px; padding-left: 4px; font-size: 6px; }
  .schedule-summary { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .result-grid { gap: 5px; }
  .result-slot { min-height: 101px; padding-right: 5px; padding-left: 5px; }
  .slot-top > strong { font-size: 10px; }
  .slot-result strong, .slot-result b { font-size: 18px; }
}

/* Casino contrast pass: richer surfaces, centered timings, distinct states */
body { background: #183b32; }
.site-header { border-right-color: #a8873e; border-bottom-color: #b79648; border-left-color: #a8873e; color: #fff; background: linear-gradient(105deg, #173f35, #245d4d); box-shadow: 0 6px 18px rgba(13,38,31,.22); }
.site-header .brand-copy strong { color: #fff; }
.site-header .brand-copy small { color: #e2ca80; }
.site-header .server-clock strong { color: #fff4d0; }
.site-header .server-clock small { color: #c7dad2; }
.site-header .clock-live { border-color: rgba(226,203,133,.55); color: #f2d982; background: rgba(255,255,255,.08); }
main { background: linear-gradient(180deg, #efe7d5, #e5e9df 35%, #eee6d5 100%); }

.live-hero { border-color: #c5a65c; background: linear-gradient(rgba(30,82,67,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(30,82,67,.055) 1px, transparent 1px), linear-gradient(118deg, #e5ddc8 0 67%, #d2b86e 67%); box-shadow: 0 9px 24px rgba(28,52,43,.17); }
.live-hero .section-kicker { color: #42665a; }
.live-hero h1 { color: #174c3d; }
.hero-status-pill { border-color: #b8994f; background: rgba(246,237,210,.92); }
.hero-game-copy { display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.hero-slot-label { background: linear-gradient(90deg, #67243a, #85415a); }
.hero-game-copy h2 { color: #173f35; text-shadow: 0 1px #f5e7b9; }
.status-main { justify-content: center; color: #174f3e; background: rgba(245,239,218,.88); }
.spin-cue { border-color: #b99849; background: linear-gradient(110deg, #f7edcf, #dfd1a7); box-shadow: 0 4px 12px rgba(76,59,26,.14); }
.hero-countdown-block { width: 100%; margin-top: 6px; text-align: center; }
.hero-countdown-block > span { text-align: center; }
.hero-countdown-block strong { margin-right: auto; margin-left: auto; padding: 5px 10px 6px; border-width: 2px; color: #ffe9a6; background: linear-gradient(180deg, #153f34, #0d2e27); box-shadow: inset 0 0 15px rgba(220,190,102,.08), 0 0 0 1px #d0ad59, 0 6px 16px rgba(17,49,41,.27); }

.today-heading { border-color: #c6a34d; color: #fff; background: linear-gradient(120deg, #1b5544 0 68%, #76283e 68%); box-shadow: 0 9px 22px rgba(25,55,45,.2); }
.today-heading::before { color: rgba(234,211,143,.08); opacity: 1; }
.today-heading .section-kicker { color: #e7d59e; }
.today-heading h2 { color: #fff8df; text-shadow: 0 2px 8px rgba(13,41,33,.25); }
.today-heading .heading-spinner { border-color: #e0c570; background: #ead99f; box-shadow: 0 3px 10px rgba(7,31,25,.28); }
.status-legend .open { border-color: rgba(220,235,227,.55); color: #d9f1e7; background: rgba(255,255,255,.09); }
.status-legend .declared { border-color: rgba(241,209,166,.55); color: #ffe1ac; background: rgba(255,255,255,.09); }

.result-slot { border-color: rgba(84,96,87,.22); box-shadow: 0 6px 15px rgba(30,51,42,.14); }
.result-slot.game_open { background: linear-gradient(145deg, #cde1d6, #e4eee8); }
.result-slot.bet_closed { background: linear-gradient(145deg, #edcdd3, #f3dfda); }
.result-slot.result_declared { background: linear-gradient(145deg, #ead59c, #f1e4bd); animation: slotCardIn .42s ease both, declaredCasinoGlow 3.1s ease-in-out infinite; animation-delay: var(--delay), calc(var(--delay) + .45s); }
.result-slot.upcoming { background: linear-gradient(145deg, #cddfe2, #e2ebea); animation: slotCardIn .42s ease both, upcomingBreathe 3.4s ease-in-out infinite; animation-delay: var(--delay), calc(var(--delay) + .55s); }
.result-slot.result_pending { background: linear-gradient(145deg, #d4e2e1, #e8ece7); }
.result-slot.sunday_closed { background: linear-gradient(145deg, #dadbd5, #ecebe4); }
@keyframes declaredCasinoGlow { 50% { border-color: #b58c33; box-shadow: 0 7px 19px rgba(139,101,32,.24); } }
@keyframes upcomingBreathe { 50% { border-color: #779ba3; box-shadow: 0 7px 18px rgba(55,94,102,.18); } }
.slot-top { position: relative; min-height: 21px; justify-content: center; }
.slot-top > strong { color: #153f34; font-size: clamp(12px, 3.2vw, 16px); text-align: center; }
.result-slot.bet_closed .slot-top > strong { color: #72263b; }
.result-slot.result_declared .slot-top > strong { color: #5e4720; }
.result-slot.upcoming .slot-top > strong, .result-slot.result_pending .slot-top > strong { color: #254f5b; }
.slot-corner-status { position: absolute; top: -2px; right: 0; width: 24px; height: 21px; }
.result-slot.game_open .slot-corner-status { border-color: #4b806c; color: #1d624c; background: #e5f1eb; }
.result-slot.bet_closed .slot-corner-status { border-color: #a65b6c; color: #852b42; background: #f8e8e9; }
.result-slot.result_declared .slot-corner-status { border-color: #aa873c; color: #6c5220; background: #f4e7bc; }
.result-slot.upcoming .slot-corner-status, .result-slot.result_pending .slot-corner-status { border-color: #698f99; color: #315e69; background: #e7f0f1; }
.slot-corner-status.verified .mini-status-icon { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; background: currentColor; box-shadow: inset 0 0 0 2px #f4e7bc; }
.slot-corner-status.verified .mini-status-icon::before { content: ""; position: absolute; left: 3px; top: 2px; width: 4px; height: 6px; transform: rotate(43deg); border-right: 2px solid #f8f0d5; border-bottom: 2px solid #f8f0d5; }
.slot-corner-status.verified .mini-status-icon::after { content: none; }
.slot-corner-status.lock .mini-status-icon::after { content: ""; position: absolute; left: 3px; top: 2px; width: 2px; height: 3px; border-radius: 50% 50% 1px 1px; background: #fff5e2; }
.slot-result-time { display: block; width: fit-content; min-height: 21px; margin: 6px auto 0; padding: 4px 7px; border-left: 0; border-radius: 999px; color: #344d44; background: rgba(255,250,232,.7); font-size: clamp(7px, 1.8vw, 9px); font-weight: 1000; text-align: center; }
.result-slot.result_declared .slot-result-time { color: #664d1d; background: rgba(255,246,211,.78); }
.result-slot.upcoming .slot-result-time, .result-slot.result_pending .slot-result-time { color: #315966; background: rgba(240,249,249,.72); }
.slot-result strong, .slot-result b { font-weight: 1000; }
.slot-status { border-color: rgba(75,91,82,.3); background: rgba(255,255,255,.38); }
.result-slot.result_declared .slot-status { color: #72521a; background: rgba(255,241,195,.62); }
.result-slot.upcoming .slot-status, .result-slot.result_pending .slot-status { color: #315f6b; background: rgba(236,247,248,.6); }
.result-slot.game_open .slot-status { color: #1e624c; background: rgba(232,246,238,.65); }
.slot-status i { animation: statusDot 1.9s ease-in-out infinite; }
@keyframes statusDot { 50% { opacity: .35; transform: scale(.65); } }

.history-browser .section-heading { background: linear-gradient(110deg, #e2d5b2, #d6e1da); }
.history-tabs button { background: #e6e4da; }
.history-shell { background: #f7f3e8; }
.history-scroll tbody td, .history-scroll tbody th { background: #f8f4e9; }
.history-scroll tbody tr:nth-child(even) th, .history-scroll tbody tr:nth-child(even) td { background: #e9eee7; }
.history-load-more { background: #e7dfc8; }
.game-guide { background: #ede6d5; }
.guide-download-box { background: #e6e0cf; border-color: #d5cdb8; }
.guide-intro, .schedule-summary { background: #e8e2d2; }
.schedule-card { background: #f5efdf !important; }
footer { border-color: #a9873f; color: #d9e6e0; background: linear-gradient(105deg, #173f35, #245d4d); }
footer p, footer > span { color: #d9e6e0; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #e2ca80; }

.live-panel { box-shadow: 0 0 0 2px rgba(198,162,77,.4), 0 0 32px rgba(198,154,55,.2), 0 20px 55px rgba(12,31,25,.62); }
.spin-status-line { width: fit-content; padding: 5px 10px; border: 1px solid rgba(222,193,108,.34); border-radius: 999px; background: rgba(19,57,47,.5); }
.wheel-stage.spinning { animation: stageEnergy 1.35s ease-in-out infinite; }
.wheel-stage.spinning .wheel-pointer { animation: pointerResponse .16s ease-in-out infinite alternate; }
.wheel-stage.spinning .wheel-gold-ring { animation: ringEnergy .85s ease-in-out infinite alternate; }
.wheel-stage.spinning .wheel-lights { animation: lightHalo 1.1s ease-in-out infinite alternate; }
@keyframes stageEnergy { 50% { filter: drop-shadow(0 0 13px rgba(224,183,70,.34)); } }
@keyframes pointerResponse { to { transform: translateX(-50%) rotate(2deg) translateY(2px); } }
@keyframes ringEnergy { to { box-shadow: 0 0 0 4px #671329, 0 0 29px rgba(255,210,64,.92), inset 0 0 16px #fff3ad; } }
@keyframes lightHalo { to { filter: brightness(1.16); } }
.reveal-card.show h3 { animation: resultHeadline .7s ease both; }
@keyframes resultHeadline { from { opacity: 0; transform: translateY(6px) scale(.94); } }

@media (max-width: 520px) {
  .hero-game-copy h2 { font-size: clamp(20px, 6vw, 27px); }
  .slot-top > strong { font-size: clamp(11px, 3vw, 14px); }
  .slot-result-time { font-size: 6px; padding-right: 5px; padding-left: 5px; }
}

/* Compact current-result panel and high-visibility result typography */
.live-hero { min-height: 145px; grid-template-rows: auto 1fr; padding: 8px 11px; }
.live-hero-top { min-height: 30px; }
.live-hero .section-kicker { font-size: 6px; }
.live-hero h1 { margin-top: 1px; font-size: clamp(17px, 3.7vw, 24px); }
.live-hero-body { gap: 7px; }
.hero-game-copy { justify-content: center; }
.hero-slot-label { padding: 2px 7px; font-size: 5px; }
.hero-game-copy h2 { margin-top: 4px; font-size: clamp(19px, 4.8vw, 30px); line-height: .95; }
.hero-action-row { display: flex; max-width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 5px; }
.hero-action-row .status-main { flex: 0 1 auto; margin-top: 0; padding: 4px 7px; font-size: 6px; white-space: nowrap; }
.hero-action-row .spin-cue { flex: 0 1 auto; margin-top: 0; padding: 3px 6px; }
.hero-action-row .spin-cue > i { width: 20px; height: 20px; flex: 0 0 auto; }
.hero-action-row .spin-cue small { font-size: 5px; }
.hero-action-row .spin-cue strong { font-size: 7px; white-space: nowrap; }
.hero-countdown-block { margin-top: 5px; }
.hero-countdown-block > span { font-size: 5px; letter-spacing: .16em; }
.hero-countdown-block strong { margin-top: 2px; padding: 4px 9px 5px; font-size: clamp(22px, 5.8vw, 36px); }
.hero-countdown-block strong::after { content: ""; position: absolute; top: -45%; bottom: -45%; left: -24%; width: 14%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,232,158,.45), transparent); animation: countdownSweep 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes countdownSweep { 0%,55% { left: -24%; } 86%,100% { left: 116%; } }
.hero-countdown-block::after { display: none; }
.live-hero-foot { display: none; }

.slot-top > strong { font-size: clamp(13px, 3.4vw, 17px); font-weight: 1000; letter-spacing: -.025em; }
.slot-result-time { min-height: 22px; padding: 4px 8px; font-size: clamp(7px, 1.9vw, 10px); font-weight: 1000; letter-spacing: .025em; }
.slot-result { min-height: 39px; margin-top: 5px; }
.slot-result strong, .slot-result b { font-size: clamp(21px, 5.8vw, 29px); font-weight: 1000; letter-spacing: -.035em; }
.slot-result span { font-size: 12px; font-weight: 1000; }
.result-slot.result_declared .slot-result strong { color: #243e35; }
.result-slot.result_declared .slot-result b { color: #7b2a40; }
.result-slot.upcoming .slot-result strong, .result-slot.result_pending .slot-result strong { color: #526964; }
.slot-status { font-weight: 1000; }

@media (max-width: 520px) {
  .live-hero { min-height: 143px; padding: 8px 9px; }
  .live-hero-body { grid-template-columns: minmax(0, 1fr) 104px; }
  .hero-wheel-wrap { --wheel-radius: 38px; width: 104px; min-width: 104px; }
  .hero-game-copy h2 { font-size: clamp(18px, 5.5vw, 25px); }
  .slot-top > strong { font-size: clamp(12px, 3.3vw, 15px); }
  .slot-result-time { padding-right: 6px; padding-left: 6px; font-size: 7px; }
  .slot-result strong, .slot-result b { font-size: clamp(20px, 6vw, 27px); }
}

@media (max-width: 350px) {
  .live-hero { min-height: 139px; padding: 7px 8px; }
  .live-hero-body { grid-template-columns: minmax(0, 1fr) 94px; }
  .hero-wheel-wrap { --wheel-radius: 34px; width: 94px; min-width: 94px; }
  .hero-action-row { gap: 4px; }
  .hero-action-row .status-main { padding-right: 5px; padding-left: 5px; font-size: 5px; }
  .hero-action-row .spin-cue { padding-right: 4px; padding-left: 4px; }
  .hero-countdown-block strong { font-size: 21px; }
  .slot-top > strong { font-size: 11px; }
  .slot-result strong, .slot-result b { font-size: 20px; }
}

/* Today Result: precise spacing without changing the existing card footprint. */
.result-slot .slot-top {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  grid-template-rows: 21px;
  gap: 6px;
  align-items: center;
  justify-content: stretch;
}
.result-slot .slot-top::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
}
.result-slot .slot-top > strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  text-align: center;
}
.result-slot .slot-corner-status {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: 20px;
  height: 20px;
  justify-self: end;
}
.slot-result-block {
  display: grid;
  min-height: 39px;
  align-content: center;
  margin: 5px 0 2px;
}
.slot-result-block .slot-result {
  min-height: 26px;
  margin: 0;
  gap: 2px;
  line-height: 1;
}
.slot-result-block .slot-result strong,
.slot-result-block .slot-result b {
  font-size: clamp(19px, 5.3vw, 27px);
  line-height: .9;
}
.slot-result-block .slot-result span {
  margin: 0 1px;
}
.slot-result-block .result-category {
  display: block;
  width: 100%;
  max-width: none;
  margin: 1px 0 0;
  overflow: visible;
  color: #6f2940;
  font-size: clamp(7px, 1.9vw, 10px);
  font-weight: 1000;
  letter-spacing: .045em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.slot-result-block.pending .slot-result {
  min-height: 39px;
}

@media (max-width: 350px) {
  .result-slot .slot-top {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 4px;
  }
  .result-slot .slot-corner-status {
    width: 18px;
    height: 18px;
  }
  .slot-result-block .slot-result strong,
  .slot-result-block .slot-result b {
    font-size: 19px;
  }
  .slot-result-block .result-category {
    font-size: 7px;
    letter-spacing: .025em;
  }
}

/* Mobile reading mode: the compact header leaves the content instead of covering it. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 10px;
  }
  .site-header {
    position: relative;
  }
  .section-anchor,
  .game-guide {
    scroll-margin-top: 10px;
  }
}

/* Large, low-reading-dependency number guide. */
.number-guide-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(230, 217, 173, .28);
}
.number-guide-heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d7bd6a;
  border-radius: 11px;
  color: #173f35;
  background: #ead58d;
  font-size: 15px;
  font-weight: 1000;
}
.number-guide-heading small,
.number-guide-heading strong,
.number-guide-heading p {
  display: block;
}
.number-guide-heading small {
  color: #ddc977;
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: .14em;
}
.number-guide-heading strong {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 1000;
  line-height: 1.05;
}
.number-guide-heading p {
  margin: 4px 0 0;
  color: #d9e7e1;
  font-size: 8px;
  font-weight: 800;
}
.visual-category-rules {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.visual-category-rules .category-rule,
.visual-category-rules .category-examples {
  padding: 12px;
  border-color: rgba(226, 198, 109, .42);
  background: rgba(255, 255, 255, .065);
}
.visual-category-rules .category-rule-head > span {
  width: 38px;
  height: 38px;
  font-size: 11px;
}
.visual-category-rules .category-rule-head small {
  font-size: 6px;
}
.visual-category-rules .category-rule-head strong {
  font-size: 16px;
}
.category-number-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .065);
}
.category-name b,
.category-name small {
  display: block;
  text-align: center;
}
.category-name b {
  color: #fff;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
}
.category-name small {
  margin-top: 4px;
  color: #d9e7e1;
  font-size: 7px;
  font-weight: 900;
}
.number-chip-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.number-chip-list b {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 9px;
  color: #173f35;
  background: #efd98f;
  box-shadow: 0 3px 8px rgba(4,24,19,.2);
  font-size: clamp(18px, 5.3vw, 25px);
  font-weight: 1000;
  line-height: 1;
}
.odd-row .number-chip-list b,
.big-row .number-chip-list b {
  color: #fff;
  background: #8a304d;
}
.small-row .number-chip-list b {
  color: #173f35;
  background: #d9e8df;
}
.visual-category-rules .category-examples {
  grid-column: auto;
}
.visual-category-rules .category-examples > strong {
  margin-bottom: 10px;
  font-size: 9px;
}
.visual-category-rules .number-meaning-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.visual-category-rules .meaning-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, .075);
}
.visual-category-rules .meaning-item > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #173f35;
  background: #ead48f;
  font-size: 19px;
  font-weight: 1000;
}
.visual-category-rules .meaning-item small,
.visual-category-rules .meaning-item small strong,
.visual-category-rules .meaning-item small em {
  display: block;
  overflow: visible;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1.25;
  white-space: nowrap;
}
.visual-category-rules .meaning-item small em {
  margin-top: 2px;
  color: #dfc875;
}
.policy-heading {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .visual-category-rules .number-meaning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visual-category-rules .meaning-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 8px;
  }
  .visual-category-rules .meaning-item > b {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .visual-category-rules .meaning-item small,
  .visual-category-rules .meaning-item small strong,
  .visual-category-rules .meaning-item small em {
    font-size: 8px;
  }
}

@media (max-width: 350px) {
  .category-number-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }
  .number-chip-list {
    gap: 3px;
  }
  .number-chip-list b {
    border-radius: 7px;
    font-size: 17px;
  }
}

/* Two clear clock phases: bet closing first, then the 15-minute result timer. */
.status-main.waiting_next,
.hero-status-pill.waiting_next {
  border-color: #3f7d67;
  color: #155a43;
  background: #e7f3ec;
}
.live-hero[data-phase="waiting_next"] .hero-slot-label {
  background: linear-gradient(90deg, #1e654e, #41836b);
  box-shadow: 0 2px 8px rgba(25,88,65,.2);
}
.live-hero[data-phase="waiting_next"] .hero-countdown-block > span {
  color: #195d47;
}
.live-hero[data-phase="waiting_next"] .hero-countdown-block strong {
  border-color: #c9a950;
  color: #ffe6a0;
  background: linear-gradient(180deg, #174a3b, #0e3229);
}
.live-hero[data-phase="bet_closed"] .hero-slot-label {
  background: linear-gradient(90deg, #8b203d, #b23c56);
  box-shadow: 0 0 12px rgba(151,35,62,.26);
  animation: closedPhasePulse 1.35s ease-in-out infinite;
}
.live-hero[data-phase="bet_closed"] .hero-countdown-block > span {
  color: #8f203d;
}
.live-hero[data-phase="bet_closed"] .hero-countdown-block strong {
  border-color: #b93a57;
  color: #fff0d0;
  background: linear-gradient(180deg, #722139, #411426);
  box-shadow: inset 0 0 15px rgba(255,205,126,.08), 0 0 0 1px #d6ad59, 0 6px 18px rgba(105,27,50,.3);
  animation: resultTimerPulse 1.15s ease-in-out infinite;
}
@keyframes closedPhasePulse {
  50% { filter: brightness(1.12); transform: scale(1.025); }
}
@keyframes resultTimerPulse {
  50% { border-color: #e3bc64; box-shadow: inset 0 0 22px rgba(255,205,126,.13), 0 0 0 2px #bd405c, 0 0 23px rgba(139,35,63,.38); }
}

/* Premium casino-style digital result console. */
.hero-countdown-block {
  width: min(100%, 190px);
  padding: 6px 7px 5px;
  border: 1px solid rgba(179,145,65,.72);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,250,229,.78), rgba(207,191,139,.6));
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 6px 15px rgba(48,45,27,.17);
}
.hero-countdown-block > span {
  display: flex;
  min-height: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #365b4e;
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: .17em;
  line-height: 1;
}
.hero-countdown-block > span::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #28a879;
  box-shadow: 0 0 8px currentColor;
  animation: timerLiveDot 1s ease-in-out infinite;
}
.hero-countdown-block strong {
  isolation: isolate;
  position: relative;
  display: grid;
  width: 100%;
  min-height: 42px;
  margin: 4px 0 0;
  overflow: hidden;
  padding: 5px 8px 6px;
  place-items: center;
  border: 2px solid #c9a54f;
  border-radius: 9px;
  color: #ffe8a2;
  background: radial-gradient(circle at 50% 0, rgba(63,138,106,.24), transparent 58%), linear-gradient(180deg, #163f34, #09251f);
  box-shadow: inset 0 0 0 1px rgba(255,223,127,.15), inset 0 0 22px rgba(32,143,101,.12), 0 4px 10px rgba(13,43,34,.27);
  font-size: clamp(25px, 6.5vw, 36px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
  line-height: 1;
  text-shadow: 0 0 6px rgba(255,220,118,.42);
  animation: consoleGlow 1.7s ease-in-out infinite;
}
.hero-countdown-block strong::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: 6px;
  opacity: .34;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.055) 3px 4px);
  pointer-events: none;
}
.timer-console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 0 3px;
}
.timer-console-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #45675b;
  font-size: 5px;
  font-weight: 1000;
  letter-spacing: .12em;
  white-space: nowrap;
}
.timer-console-foot > span i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #25a676;
  box-shadow: 0 0 6px #25a676;
}
.timer-signal {
  display: grid;
  width: 58px;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.timer-signal i {
  height: 3px;
  border-radius: 999px;
  background: #b5a66f;
  animation: timerSignal 1.4s ease-in-out infinite;
}
.timer-signal i:nth-child(2) { animation-delay: .1s; }
.timer-signal i:nth-child(3) { animation-delay: .2s; }
.timer-signal i:nth-child(4) { animation-delay: .3s; }
.timer-signal i:nth-child(5) { animation-delay: .4s; }
.timer-signal i:nth-child(6) { animation-delay: .5s; }
.timer-signal i:nth-child(7) { animation-delay: .6s; }
.live-hero[data-phase="bet_closed"] .hero-countdown-block {
  border-color: rgba(146,45,70,.68);
  background: linear-gradient(145deg, rgba(255,239,222,.82), rgba(208,165,157,.64));
}
.live-hero[data-phase="bet_closed"] .hero-countdown-block > span,
.live-hero[data-phase="bet_closed"] .timer-console-foot > span {
  color: #8c2440;
}
.live-hero[data-phase="bet_closed"] .hero-countdown-block > span::before,
.live-hero[data-phase="bet_closed"] .timer-console-foot > span i {
  background: #c33153;
  box-shadow: 0 0 8px #c33153;
}
.live-hero[data-phase="bet_closed"] .hero-countdown-block strong {
  border-color: #d0a650;
  color: #fff0cf;
  background: radial-gradient(circle at 50% 0, rgba(190,58,91,.25), transparent 58%), linear-gradient(180deg, #722139, #3e1224);
  box-shadow: inset 0 0 0 1px rgba(255,223,127,.13), inset 0 0 24px rgba(187,48,82,.16), 0 4px 12px rgba(82,21,40,.3);
  animation: resultTimerPulse 1.15s ease-in-out infinite;
}
.live-hero[data-phase="bet_closed"] .timer-signal i {
  background: #a93350;
}
@keyframes timerLiveDot {
  50% { opacity: .3; transform: scale(.72); }
}
@keyframes timerSignal {
  0%, 100% { opacity: .28; transform: scaleY(.65); }
  45% { opacity: 1; transform: scaleY(1); background: #d3b55e; }
}
@keyframes consoleGlow {
  50% { border-color: #e0c36d; box-shadow: inset 0 0 0 1px rgba(255,223,127,.2), inset 0 0 27px rgba(46,159,117,.16), 0 5px 14px rgba(13,43,34,.33); }
}

@media (max-width: 350px) {
  .hero-countdown-block {
    width: min(100%, 172px);
    padding-right: 6px;
    padding-left: 6px;
  }
  .hero-countdown-block strong {
    min-height: 39px;
    font-size: 24px;
  }
}

/* Slot time full width; status logo sits in the corner without clipping AM/PM. */
.result-slot .slot-top {
  position: relative;
  display: block;
  min-height: 22px;
  padding: 0;
}
.result-slot .slot-top::before {
  content: none;
  display: none;
}
.result-slot .slot-top > strong {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 26px;
  overflow: visible;
  font-size: clamp(11px, 2.8vw, 14px);
  letter-spacing: -.02em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.result-slot .slot-corner-status {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 2;
  grid-column: auto;
  width: 18px;
  height: 18px;
  margin-top: 0;
  transform: none;
  justify-self: auto;
  animation: none;
}

@media (max-width: 350px) {
  .result-slot .slot-top > strong {
    padding: 0 22px;
    font-size: 10px;
    letter-spacing: -.04em;
  }
  .result-slot .slot-corner-status {
    width: 16px;
    height: 16px;
  }
}

/* Balanced 3-up board: two trailing cards sit centered on the last row. */
.result-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.result-slot {
  grid-column: span 2;
}
.result-slot:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 2 / span 2;
}
.result-slot:nth-child(3n + 1):last-child {
  grid-column: 3 / span 2;
}

/* Special Game keeps the normal card structure with restrained emphasis. */
.result-slot.special-10x {
  animation: slotCardIn .32s ease both !important;
  border-color: #a61b35;
  box-shadow: 0 5px 12px rgba(88, 24, 40, .13);
}
.result-slot.special-10x::after {
  display: none;
}
.result-slot.special-10x:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(88, 24, 40, .15);
}
.result-slot.special-10x .slot-corner-status {
  animation: none;
  box-shadow: 0 2px 5px rgba(50, 44, 42, .12);
}
.result-slot.special-10x .special-10x-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 3px auto 0;
  overflow: hidden;
  color: #b4233f;
  font-size: clamp(7px, 1.7vw, 9px);
  font-weight: 1000;
  letter-spacing: .035em;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.result-slot.special-10x .slot-result-time {
  margin-top: 3px;
}

/* Distinct, accessible result-category badges. */
.category-even { color: #fff !important; background: #176b87; }
.category-odd { color: #fff !important; background: #9f2948; }
.category-small { color: #fff !important; background: #35743f; }
.category-big { color: #fff !important; background: #9a571d; }
.result-category {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.result-category > span,
.history-category > b,
.visual-category-rules .meaning-item small strong,
.visual-category-rules .meaning-item small em {
  border-radius: 4px;
  padding: 2px 4px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .035em;
  line-height: 1.1;
}
.history-scroll td .history-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: visible;
  font-size: clamp(7px, 1.45vw, 10px);
}
.history-category > b {
  min-width: 15px;
  padding: 2px 3px;
}
.even-row .category-name b { color: #67d4ee; }
.odd-row .category-name b { color: #f5a0b4; }
.small-row .category-name b { color: #8cdb95; }
.big-row .category-name b { color: #efb276; }
.visual-category-rules .meaning-item small strong,
.visual-category-rules .meaning-item small em {
  width: fit-content;
  min-width: 44px;
  font-size: 8px;
  text-align: center;
}

/* Keep narrow screens vertically scrollable and wide records horizontally scrollable. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
main,
.content-section,
.today-section,
.history-browser,
.history-shell {
  min-width: 0;
  max-width: 100%;
}
.history-shell {
  overflow: hidden;
}
.history-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.history-scroll table {
  width: max-content;
  min-width: 760px;
  table-layout: fixed;
}
.history-scroll th:first-child {
  width: 92px;
}
.history-scroll th,
.history-scroll td {
  width: 62px;
  min-width: 62px;
}

@media (max-width: 520px) {
  main {
    width: 100%;
    max-width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }
  .result-grid {
    gap: 6px;
  }
  .result-slot {
    min-width: 0;
    padding-right: 5px;
    padding-left: 5px;
  }
  .result-slot.special-10x .special-10x-label {
    font-size: 7px;
  }
  .history-scroll {
    padding-bottom: 5px;
  }
  .history-scroll table {
    min-width: 720px;
  }
}

/* Live IST date + clock strip above the Today Result board. */
.live-datestrip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #d7d4c8;
  border-radius: 11px;
  background: linear-gradient(105deg, #fffdf8, #f4f7f3);
  box-shadow: 0 4px 12px rgba(48, 63, 55, .09);
}
.live-datestrip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #bf5069;
  border-radius: 999px;
  color: #8f1f38;
  background: #fdf1f3;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .12em;
}
.live-datestrip-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c02b47;
  animation: liveDotPulse 2s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192, 43, 71, .35); }
  50% { opacity: .72; box-shadow: 0 0 0 4px rgba(192, 43, 71, 0); }
}
.live-datestrip-body,
.live-datestrip-clock {
  min-width: 0;
}
.live-datestrip-clock {
  text-align: right;
}
.live-datestrip small {
  display: block;
  color: #667971;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .11em;
}
.live-datestrip strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #17493c;
  font-size: clamp(14px, 4.1vw, 18px);
  font-weight: 1000;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-datestrip-clock strong {
  color: #8f1f38;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  .live-datestrip {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 9px;
    padding: 8px 9px;
  }
  .live-datestrip-clock {
    grid-column: 2;
    text-align: left;
  }
}

/* Slot time typography: keep AM/PM fully readable in every card. */
.result-slot .slot-top > strong,
.result-slot.game_open .slot-top > strong,
.result-slot.bet_closed .slot-top > strong,
.result-slot.result_declared .slot-top > strong,
.result-slot.result_pending .slot-top > strong,
.result-slot.upcoming .slot-top > strong {
  color: #17493c;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 1000;
  letter-spacing: -.02em;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  overflow: visible;
}
.result-slot.result_spinning .slot-top > strong {
  color: #fff;
  text-shadow: 0 1px rgba(9, 24, 19, .5);
}

.history-scroll thead th {
  color: #17493c;
  font-weight: 1000;
}
.history-scroll thead th span {
  font-size: 1.05em;
  font-weight: 1000;
  letter-spacing: -.02em;
}

/* Category badges stay small but carry a thick colour-coded border. */
.result-category > span,
.history-category > b {
  border: 2px solid currentColor;
  background: transparent !important;
}
.category-even { color: #10596f !important; border-color: #10596f !important; }
.category-odd { color: #96203f !important; border-color: #96203f !important; }
.category-small { color: #2c6335 !important; border-color: #2c6335 !important; }
.category-big { color: #8a4a13 !important; border-color: #8a4a13 !important; }
.result-slot.result_spinning .category-even,
.result-slot.result_spinning .category-odd,
.result-slot.result_spinning .category-small,
.result-slot.result_spinning .category-big {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .85) !important;
}

/* Mobile: the whole 9 AM - 8:30 PM record fits one screen, no side scrolling. */
@media (max-width: 640px) {
  .history-scroll {
    overflow-x: hidden;
  }
  .history-scroll table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .history-scroll th,
  .history-scroll td {
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 1px 0;
    overflow: hidden;
  }
  .history-scroll th:first-child {
    width: 9.5%;
  }
  .history-scroll caption {
    padding: 12px 6px 10px;
  }
  .history-scroll caption strong {
    font-size: clamp(15px, 4.2vw, 20px);
  }
  .history-scroll thead th {
    font-size: 6px;
    line-height: 1.02;
  }
  .history-scroll thead th small {
    margin-top: 0;
    font-size: 5px;
  }
  .history-scroll tbody th {
    font-size: 6px;
    line-height: 1.05;
  }
  .history-scroll tbody th small {
    font-size: 4px;
  }
  .history-scroll td strong {
    font-size: 5px;
    line-height: 1;
  }
  .history-scroll td small {
    margin-top: 0;
    font-size: 14px;
    font-weight: 1000;
    line-height: 1;
  }
  .history-scroll td > span {
    font-size: 6px;
  }
  .history-scroll td .history-category {
    gap: 1px;
    margin-top: 1px;
    font-size: 4px;
  }
  .history-category > b {
    min-width: 0;
    padding: 0;
    border-width: 2px;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 5px;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .history-scroll th,
  .history-scroll td {
    height: 42px;
  }
  .history-scroll td small {
    font-size: 13px;
  }
  .history-scroll thead th,
  .history-scroll thead th small {
    font-size: 5px;
  }
  .live-datestrip strong {
    font-size: clamp(13px, 3.8vw, 16px);
  }
  .result-slot .slot-top > strong {
    font-size: clamp(11px, 3.2vw, 14px);
  }
}

@media (max-width: 520px) {
  .result-slot .slot-top > strong {
    font-size: clamp(11px, 3.4vw, 14px);
  }
}

/* Live IST strip relocated under the "Today Result" heading, on the dark banner. */
.today-heading .live-datestrip {
  margin: 0 auto 9px;
  max-width: 420px;
  border-color: rgba(233, 214, 158, .42);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: left;
}
.today-heading .live-datestrip-badge {
  border-color: rgba(255, 205, 205, .6);
  color: #ffd9df;
  background: rgba(160, 32, 58, .38);
}
.today-heading .live-datestrip-badge i {
  background: #ff9aab;
}
.today-heading .live-datestrip small {
  color: #d8e6de;
}
.today-heading .live-datestrip strong {
  color: #fff8df;
}
.today-heading .live-datestrip-clock strong {
  color: #ffd9a6;
}

/* History cells: uniform sub-elements with a dominant main number. */
@media (max-width: 640px) {
  .history-scroll th,
  .history-scroll td {
    height: 46px;
  }
  .history-scroll td strong {
    font-size: 6px;
    line-height: 1.05;
  }
  .history-scroll td small {
    margin-top: 1px;
    font-size: 15px;
    line-height: 1;
  }
  .history-scroll td .history-category {
    gap: 2px;
    margin-top: 1px;
  }
  .history-category > b {
    width: 11px;
    height: 11px;
    border-width: 1.5px;
    font-size: 6px;
    font-weight: 900;
  }
}

@media (max-width: 380px) {
  .history-scroll th,
  .history-scroll td {
    height: 44px;
  }
  .history-scroll td small {
    font-size: 14px;
  }
  .history-category > b {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    font-size: 5px;
  }
}

/* Lighter, brighter category borders. */
.category-even { color: #14657d !important; border-color: #63c3d6 !important; }
.category-odd { color: #a02745 !important; border-color: #e896aa !important; }
.category-small { color: #2f6b3a !important; border-color: #83cd8e !important; }
.category-big { color: #8f5313 !important; border-color: #eec079 !important; }

/* Uniform slot cards: identical row structure for every slot, special badge in the bottom band. */
.result-grid .result-slot {
  display: grid;
  grid-template-rows: 24px auto minmax(39px, 1fr) auto 13px;
  row-gap: 4px;
  min-height: 132px;
  padding: 9px 8px 7px;
  align-content: stretch;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.result-grid .result-slot > .slot-top { grid-row: 1; }
.result-grid .result-slot > .slot-result-time { grid-row: 2; }
.result-grid .result-slot > .slot-result-block { grid-row: 3; margin: 0; }
.result-grid .result-slot > .slot-status { grid-row: 4; }
.result-grid .result-slot > .special-10x-label { grid-row: 5; }

/* Result time: readable but clearly secondary to the slot time. */
.result-slot .slot-result-time {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(88, 108, 98, .2);
  border-radius: 999px;
  font-size: clamp(8px, 2.1vw, 10px);
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

/* Special 10x: red frame kept, label repositioned as the bottom badge. */
.result-slot.special-10x .special-10x-label {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(180, 35, 63, .22);
  padding-top: 2px;
  color: #b4233f;
  font-size: clamp(7px, 1.8vw, 9px);
  font-weight: 1000;
  letter-spacing: .045em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tasteful motion: soft entry, gentle hover lift, calm status dot. */
@keyframes slotSoftIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.result-grid .result-slot {
  animation: slotSoftIn .38s ease both;
  animation-delay: var(--delay);
}
.result-grid .result-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(38, 55, 47, .15);
  filter: none;
}
.result-grid .result-slot.game_open {
  animation: slotSoftIn .38s ease both;
  border-color: rgba(45, 112, 90, .5);
}
.result-grid .result-slot.result_declared {
  animation: slotSoftIn .38s ease both;
}
.result-slot .slot-status i {
  animation: statusDot 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .result-grid .result-slot,
  .result-slot .slot-status i {
    animation: none;
  }
}

@media (max-width: 520px) {
  .result-grid .result-slot {
    min-height: 128px;
    padding: 8px 6px 6px;
  }
  .result-slot .slot-result-time {
    padding: 2px 6px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .result-grid .result-slot {
    grid-template-rows: 19px auto minmax(37px, 1fr) auto 12px;
    min-height: 124px;
    padding: 8px 5px 6px;
    row-gap: 3px;
  }
  .result-slot .slot-result-time {
    padding: 2px 5px;
    font-size: 7px;
    letter-spacing: .01em;
  }
}

/* Compact live board: the IST strip sits inside the Today Result banner. */
.today-heading {
  margin-bottom: 9px;
  padding: 9px 11px 8px;
}
.today-title-row {
  gap: 8px;
  margin: 3px 0 6px;
}
.today-heading h2 {
  font-size: clamp(21px, 5.6vw, 29px);
}
.today-heading .heading-spinner {
  width: 24px;
  height: 24px;
}
.status-legend span {
  min-height: 20px;
  padding: 3px 8px;
  font-size: 6px;
}
.today-heading .live-datestrip {
  display: flex;
  max-width: 100%;
  margin: 7px auto 0;
  padding: 6px 0 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  border: 0;
  border-top: 1px solid rgba(233, 214, 158, .3);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.today-heading .live-datestrip-badge {
  padding: 3px 7px;
  border-color: rgba(255, 205, 205, .55);
  font-size: 6px;
}
.today-heading .live-datestrip-badge i {
  width: 5px;
  height: 5px;
}
.today-heading .live-datestrip-body,
.today-heading .live-datestrip-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-align: left;
}
.today-heading .live-datestrip small {
  color: #cfe1d8;
  font-size: 6px;
  letter-spacing: .12em;
}
.today-heading .live-datestrip strong {
  margin: 0;
  font-size: clamp(11px, 3.1vw, 13px);
  letter-spacing: -.01em;
}

/* Shorter slot cards: same structure, tighter vertical rhythm. */
.result-grid .result-slot {
  grid-template-rows: 20px auto minmax(34px, 1fr) auto 12px;
  row-gap: 3px;
  min-height: 0;
  padding: 7px 7px 6px;
}
.slot-result-block {
  min-height: 0;
}
.slot-result-block .slot-result {
  min-height: 0;
}
.slot-result-block.pending .slot-result {
  min-height: 0;
}
.result-slot .slot-status {
  min-height: 18px;
  padding: 2px 7px;
}

/* Result time keeps its own colour and a compact RESULT caption. */
.result-slot .slot-result-time {
  display: flex;
  width: fit-content;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  padding: 2px 7px;
  border-color: rgba(140, 90, 105, .28);
  background: rgba(255, 250, 246, .72);
  font-size: clamp(8px, 2.1vw, 10px);
}
.result-slot .slot-result-time i {
  color: #6f8079;
  font-size: .76em;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .1em;
}
.result-slot .slot-result-time b {
  color: #8c2340;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.result-slot.result_declared .slot-result-time {
  border-color: rgba(160, 120, 40, .3);
  background: rgba(255, 247, 224, .78);
}
.result-slot.result_declared .slot-result-time b {
  color: #8a6415;
}
.result-slot.result_spinning .slot-result-time {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
}
.result-slot.result_spinning .slot-result-time i {
  color: #dbe7e1;
}
.result-slot.result_spinning .slot-result-time b {
  color: #ffd9a6;
}

/* Status pills: one colour per state, everywhere a status is shown. */
.result-slot .slot-status,
.result-slot.upcoming .slot-status,
.result-slot.result_pending .slot-status {
  border: 1px solid #a8c6ce;
  color: #2f5a68;
  background: #eef5f7;
}
.result-slot.game_open .slot-status {
  border-color: #8dc3ae;
  color: #1b6349;
  background: #eaf6f0;
}
.result-slot.bet_closed .slot-status,
.result-slot.sunday_closed .slot-status {
  border-color: #e0a3b1;
  color: #8c2340;
  background: #fdeef1;
}
.result-slot.result_declared .slot-status {
  border-color: #dfc078;
  color: #8a6415;
  background: #fdf3d8;
}
.result-slot.result_spinning .slot-status {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.hero-status-pill.game_open,
.hero-status-pill.waiting_next {
  border-color: #9cc9b7;
  color: #1b6349;
  background: #f0f8f4;
}
.hero-status-pill.upcoming {
  border-color: #b3ccd4;
  color: #2f5a68;
  background: #f1f7f8;
}
.hero-status-pill.result_declared {
  border-color: #dfc078;
  color: #8a6415;
  background: #fdf6e2;
}
.status-legend .open {
  border-color: rgba(150, 214, 186, .6);
  color: #b8e8d2;
}
.status-legend .declared {
  border-color: rgba(226, 190, 122, .6);
  color: #f3d79b;
}

/* Record table: main single digit slightly smaller so leaf + E/O/S/B match. */
.history-scroll td small {
  font-size: clamp(13px, 2.5vw, 17px);
}
.history-scroll td strong {
  font-size: clamp(7px, 1.5vw, 10px);
}
.history-category > b {
  border-width: 1px;
}

@media (max-width: 640px) {
  .history-scroll th,
  .history-scroll td {
    height: 43px;
    padding: 1px 0;
  }
  .history-scroll td strong {
    font-size: 6px;
    line-height: 1;
  }
  .history-scroll td small {
    margin-top: 0;
    font-size: 16px;
    line-height: 1;
  }
  .history-scroll td .history-category {
    gap: 2px;
    margin-top: 0;
  }
  .history-category > b {
    width: 10px;
    height: 10px;
    border-width: 1px;
    font-size: 6px;
  }
}

@media (max-width: 520px) {
  .today-heading {
    padding: 8px 9px 7px;
  }
  .result-grid .result-slot {
    min-height: 0;
    padding: 6px 5px 5px;
  }
  .result-slot .slot-result-time {
    padding: 2px 6px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .result-grid .result-slot {
    grid-template-rows: 19px auto minmax(32px, 1fr) auto 11px;
    min-height: 0;
    padding: 6px 4px 5px;
    row-gap: 2px;
  }
  .result-slot .slot-result-time {
    gap: 3px;
    padding: 2px 5px;
    font-size: 7px;
  }
  .history-scroll th,
  .history-scroll td {
    height: 41px;
  }
  .history-scroll td small {
    font-size: 14px;
  }
  .history-category > b {
    width: 9px;
    height: 9px;
    font-size: 5px;
  }
}

/* Record table: readable column labels and dates inside the same column widths. */
.history-scroll thead th {
  font-size: clamp(9px, 2vw, 13px);
  font-weight: 1000;
  line-height: 1.05;
}
.history-scroll thead th span {
  font-size: 1em;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.history-scroll thead th small {
  margin-top: 1px;
  font-size: .78em;
  font-weight: 900;
  letter-spacing: .02em;
}
.history-scroll tbody th {
  font-size: clamp(9px, 2vw, 13px);
  font-weight: 1000;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .history-scroll thead th {
    padding: 2px 0;
    font-size: 9px;
    line-height: 1.05;
  }
  .history-scroll thead th small {
    margin-top: 1px;
    font-size: 7px;
  }
  .history-scroll tbody th {
    font-size: 9px;
    line-height: 1.05;
  }
  .history-scroll tbody th small {
    margin-top: 1px;
    font-size: 5px;
  }
}

@media (max-width: 380px) {
  .history-scroll thead th {
    font-size: 8px;
  }
  .history-scroll thead th small {
    font-size: 6px;
  }
  .history-scroll tbody th {
    font-size: 8px;
  }
  .history-scroll tbody th small {
    font-size: 4.5px;
  }
}

/* Today Result banner: cohesive brand green, IST panel directly under the title. */
.today-section {
  margin-top: 15px;
}
.today-heading {
  margin-bottom: 15px;
  border-color: #bb9a48;
  background: linear-gradient(122deg, #163f35, #235f4d 58%, #1a5142);
  box-shadow: 0 9px 22px rgba(20, 48, 39, .19);
}
.today-heading::before {
  color: rgba(234, 211, 143, .07);
}
.today-heading .section-kicker {
  color: #d9c894;
}
.today-heading h2 {
  color: #fff8e4;
}

/* Live IST panel: the banner's primary read. */
.today-heading .live-datestrip {
  display: flex;
  max-width: 420px;
  margin: 8px auto 0;
  padding: 7px 10px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(233, 214, 158, .3);
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.today-heading .live-datestrip-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-color: rgba(255, 205, 205, .5);
  font-size: 6px;
  letter-spacing: .14em;
}
.today-heading .live-datestrip-body,
.today-heading .live-datestrip-clock {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
.today-heading .live-datestrip-clock {
  border-left: 1px solid rgba(233, 214, 158, .24);
}
.today-heading .live-datestrip small {
  display: block;
  color: #b9d0c5;
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: .15em;
}
.today-heading .live-datestrip strong {
  display: block;
  margin-top: 3px;
  color: #fff8e4;
  font-size: clamp(13px, 3.9vw, 16px);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.005em;
  line-height: 1.1;
  white-space: nowrap;
}
.today-heading .live-datestrip-clock strong {
  color: #ffd79c;
  text-transform: uppercase;
}
.today-heading .status-legend {
  margin-top: 8px;
}

/* Record cells: single digit a touch smaller so leaf + tags balance. */
.history-scroll td strong {
  font-size: clamp(8px, 1.7vw, 11px);
}
.history-scroll td small {
  font-size: clamp(12px, 2.2vw, 16px);
}

/* Number guide: category labels readable on their own colour. */
.visual-category-rules .meaning-item small strong,
.visual-category-rules .meaning-item small em {
  min-width: 56px;
  padding: 3px 6px;
  border: 0;
  color: #fff !important;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .09em;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(6, 24, 19, .38);
}
.visual-category-rules .meaning-item small .category-even { background: #10617a !important; }
.visual-category-rules .meaning-item small .category-odd { background: #93203f !important; }
.visual-category-rules .meaning-item small .category-small { background: #2b6a37 !important; }
.visual-category-rules .meaning-item small .category-big { background: #8a5313 !important; }

@media (max-width: 640px) {
  .history-scroll td strong {
    font-size: 8px;
    line-height: 1;
  }
  .history-scroll td small {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .visual-category-rules .meaning-item small strong,
  .visual-category-rules .meaning-item small em {
    min-width: 62px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .today-heading .live-datestrip {
    gap: 7px;
    padding: 6px 8px;
  }
  .history-scroll td strong {
    font-size: 7px;
  }
  .history-scroll td small {
    font-size: 13px;
  }
}

/* Online Play — compact corner CTA (original style) */
.today-heading { position: relative; }
.online-play-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(234, 217, 143, .75);
  border-radius: 999px;
  color: #173f35;
  background: linear-gradient(135deg, #ffe27a, #f0c14b 55%, #d4a84a);
  box-shadow: 0 0 0 0 rgba(240, 193, 75, .45), 0 4px 12px rgba(0, 0, 0, .18);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  animation: onlinePlayPulse 1.6s ease-in-out infinite;
  white-space: nowrap;
}
/* Beat .today-heading > * { position: relative } so corner CTA stays absolute */
.today-heading > .online-play-btn,
.today-heading .online-play-btn-today {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
}
.online-play-btn i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f5b49;
  box-shadow: 0 0 0 3px rgba(31, 91, 73, .22);
  animation: onlinePlayDot .9s ease-in-out infinite alternate;
  flex: 0 0 auto;
}
@keyframes onlinePlayPulse {
  0%, 100% { transform: translateZ(0) scale(1); box-shadow: 0 0 0 0 rgba(240, 193, 75, .35), 0 4px 12px rgba(0,0,0,.18); }
  50% { transform: translateZ(0) scale(1.04); box-shadow: 0 0 0 8px rgba(240, 193, 75, 0), 0 6px 14px rgba(0,0,0,.2); }
}
@keyframes onlinePlayDot { to { opacity: .45; transform: scale(.7); } }
.online-play-btn:hover,
.online-play-btn:focus-visible {
  outline: 2px solid #fff8df;
  outline-offset: 2px;
}

/* Top bar Online Play — fills the former IST clock space */
.online-play-btn-header {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 34px;
  max-width: min(46vw, 168px);
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: .08em;
  border-color: rgba(234, 217, 143, .9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
.site-header .online-play-btn-header {
  animation: onlinePlayPulseHeader 1.8s ease-in-out infinite;
}
@keyframes onlinePlayPulseHeader {
  0%, 100% { transform: translateZ(0) scale(1); box-shadow: 0 3px 10px rgba(0,0,0,.22); }
  50% { transform: translateZ(0) scale(1.03); box-shadow: 0 5px 14px rgba(0,0,0,.28), 0 0 0 5px rgba(240, 193, 75, .12); }
}

/* SPIN logos in Today Result title — white label on dark hub */
.today-heading .heading-spinner {
  border-color: #e0c570;
  background: #ead99f;
  box-shadow: 0 3px 10px rgba(7, 31, 25, .28);
}
.today-heading .heading-spinner::after {
  background: #163f35;
  border-color: #cbb066;
}
.today-heading .heading-spinner b {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}

.online-play-btn-guide {
  position: static;
  top: auto;
  right: auto;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 11px;
  animation: onlinePlayPulse 1.6s ease-in-out infinite;
}
.online-play-btn-slot {
  position: static;
  top: auto;
  right: auto;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  min-height: 32px;
}
.guide-play-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
}
.guide-play-row p {
  margin: 0;
  color: #61706a;
  font-size: 12px;
  font-weight: 700;
}

/* APK Download — below history, professional Android style */
.apk-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3ddc84 0%, #2bb673 45%, #0f9d58 100%);
  border: 1px solid rgba(15, 157, 88, .65);
  box-shadow: 0 10px 24px rgba(15, 157, 88, .28);
  transition: transform .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.apk-download-btn:hover,
.apk-download-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 157, 88, .36);
  outline: 2px solid #c8f7d8;
  outline-offset: 2px;
}
.apk-android-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  flex-shrink: 0;
}
.apk-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.apk-copy strong {
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.apk-copy small {
  font-size: 11px;
  font-weight: 700;
  opacity: .92;
}
.apk-dl-symbol {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.apk-dl-symbol b {
  font-size: 18px;
  line-height: 1;
  animation: apkArrowBounce 1.2s ease-in-out infinite;
}
.apk-dl-symbol i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255,255,255,.85);
  opacity: 0;
}
.apk-download-btn.is-downloading .apk-dl-symbol i {
  opacity: 1;
  animation: apkSpin .7s linear infinite;
}
.apk-download-btn.is-downloading .apk-dl-symbol b {
  animation: none;
  opacity: .35;
}
@keyframes apkArrowBounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
@keyframes apkSpin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .online-play-btn-header {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 8px;
    max-width: min(48vw, 140px);
  }
  .online-play-btn,
  .today-heading > .online-play-btn,
  .today-heading .online-play-btn-today {
    top: 6px;
    right: 6px;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 8px;
  }
  .apk-download-btn { min-height: 58px; padding: 10px 12px; }
}

.play-auth-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 24px);
}
.play-auth-dialog::backdrop { background: rgba(8, 18, 14, .72); backdrop-filter: blur(6px); }
.play-auth-card {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 18px 16px 16px;
  border: 1px solid #d7c48a;
  border-radius: 16px;
  background: linear-gradient(165deg, #fffdf7, #f4efe2);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: #1b3028;
}
.play-auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #5a6b63;
}
.play-auth-tabs { display: flex; gap: 6px; margin-right: 44px; margin-bottom: 10px; }
.play-auth-tabs button {
  flex: 1;
  min-height: 36px;
  border: 1px solid #d8d3c4;
  border-radius: 9px;
  background: #efebe0;
  font-weight: 900;
  cursor: pointer;
}
.play-auth-tabs button.active { background: #1f5b49; color: #fff; border-color: #1f5b49; }
.play-auth-card h3 { margin: 0 0 4px; font-size: 20px; }
.play-auth-help { margin: 0 0 12px; color: #61706a; font-size: 12px; }
.play-auth-field { display: grid; gap: 4px; margin-bottom: 10px; }
.play-auth-field[hidden] { display: none !important; }
.play-auth-link[hidden] { display: none !important; }
.play-auth-tabs[hidden] { display: none !important; }
.play-auth-msg[hidden] { display: none !important; }
.play-auth-field span { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #6a7a72; }
.play-auth-field input {
  min-height: 42px;
  border: 1px solid #d5d0c2;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 700;
}
.play-auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(120deg, #1f5b49, #2f7a63);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.play-auth-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #1f5b49;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.play-auth-msg { margin: 8px 0 0; padding: 8px; border-radius: 8px; background: #eaf6ef; color: #1f5b49; font-size: 12px; font-weight: 700; }
.play-auth-msg.error { background: #fdecef; color: #9b2740; }

/* Today Result: live status polish + balanced time + legend. */
.status-legend {
  flex-wrap: wrap;
  gap: 5px;
}
.status-legend .closed {
  border-color: rgba(224, 163, 177, .55);
  color: #f0c2cb;
  background: rgba(255, 255, 255, .09);
}
.status-legend .upcoming {
  border-color: rgba(168, 198, 206, .55);
  color: #c5dde4;
  background: rgba(255, 255, 255, .09);
}

.result-slot {
  border-width: 1.5px;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .2s ease;
}
.result-slot.game_open {
  border-color: #5f9e84;
  background: linear-gradient(155deg, #c8e6d7, #e8f4ee);
  box-shadow: 0 6px 16px rgba(31, 100, 74, .16);
}
.result-slot.bet_closed {
  border-color: #c47a8a;
  background: linear-gradient(155deg, #f0cfd6, #f7e6e2);
  box-shadow: 0 6px 16px rgba(140, 45, 70, .14);
}
.result-slot.upcoming {
  border-color: #7ea0a9;
  background: linear-gradient(155deg, #d0e3e7, #e7eef0);
  box-shadow: 0 6px 16px rgba(55, 94, 102, .14);
}
.result-slot.result_pending {
  border-color: #b59a55;
  background: linear-gradient(155deg, #efe0b4, #f6efd8);
  box-shadow: 0 6px 16px rgba(140, 110, 40, .14);
}
.result-slot.result_declared {
  border-color: #b8923a;
  background: linear-gradient(155deg, #ead59c, #f4ebcc);
  box-shadow: 0 6px 16px rgba(139, 101, 32, .16);
}
.result-slot.result_spinning {
  border-color: #8a3d55;
  background: linear-gradient(155deg, #6f2b43, #344c44);
  box-shadow: 0 6px 18px rgba(80, 30, 48, .28);
}

.result-slot .slot-top > strong {
  transform: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-right: 28px;
  padding-left: 28px;
  overflow: visible !important;
  text-overflow: clip;
  white-space: nowrap;
}
.result-slot.game_open .slot-top > strong { color: #1b6349; }
.result-slot.bet_closed .slot-top > strong,
.result-slot.sunday_closed .slot-top > strong { color: #8c2340; }
.result-slot.upcoming .slot-top > strong,
.result-slot.result_pending .slot-top > strong { color: #2f5a68; }
.result-slot.result_declared .slot-top > strong { color: #7a5a14; }
.result-slot.result_spinning .slot-top > strong { color: #fff; }

.result-slot .slot-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  margin: 2px auto 0;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .06em;
  line-height: 1;
}
.result-slot .slot-status em {
  font-style: normal;
  font-weight: 1000;
}
.result-slot .slot-status-mark {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  animation: none;
  opacity: .95;
}
.result-slot .slot-status-mark .mini-status-icon {
  width: 8px;
  height: 7px;
  color: #fff;
}
.result-slot .slot-status-mark.unlock .mini-status-icon,
.result-slot .slot-status-mark.lock .mini-status-icon {
  margin-top: 2px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  background: currentColor;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
}
.result-slot .slot-status-mark.unlock .mini-status-icon::before,
.result-slot .slot-status-mark.lock .mini-status-icon::before {
  left: 0;
  top: -6px;
  width: 5px;
  height: 5px;
  border-width: 1.5px;
}
.result-slot .slot-status-mark.unlock .mini-status-icon::before {
  left: 3px;
  transform: rotate(28deg);
  transform-origin: 0 100%;
}
.result-slot .slot-status-mark.time .mini-status-icon {
  width: 9px;
  height: 9px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.result-slot .slot-status-mark.time .mini-status-icon::before {
  left: 3px;
  top: 1px;
  width: 1.5px;
  height: 3.5px;
  background: #fff;
}
.result-slot .slot-status-mark.time .mini-status-icon::after {
  left: 3px;
  top: 4px;
  width: 3px;
  height: 1.5px;
  background: #fff;
}
.result-slot .slot-status-mark.verified .mini-status-icon {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.result-slot .slot-status-mark.verified .mini-status-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 3px;
  height: 5px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(40deg);
}
.result-slot .slot-status-mark.verified .mini-status-icon::after {
  content: none;
}
.result-slot .slot-status-mark.spin .mini-status-icon {
  width: 9px;
  height: 9px;
  border: 1.5px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  background: transparent;
  animation: miniIconSpin .7s linear infinite;
}
.result-slot .slot-status-mark.spin .mini-status-icon::after {
  content: none;
}

.result-slot.game_open .slot-status-mark { background: #1b6349; }
.result-slot.bet_closed .slot-status-mark,
.result-slot.sunday_closed .slot-status-mark { background: #8c2340; }
.result-slot.upcoming .slot-status-mark,
.result-slot.result_pending .slot-status-mark { background: #2f5a68; }
.result-slot.result_declared .slot-status-mark { background: #8a6415; }
.result-slot.result_spinning .slot-status-mark { background: rgba(255, 255, 255, .28); }

.result-slot.game_open .slot-corner-status {
  border-color: #5f9e84;
  color: #1b6349;
  background: #e8f6ef;
}
.result-slot.bet_closed .slot-corner-status {
  border-color: #c47a8a;
  color: #8c2340;
  background: #fdeef1;
}
.result-slot.upcoming .slot-corner-status,
.result-slot.result_pending .slot-corner-status {
  border-color: #7ea0a9;
  color: #2f5a68;
  background: #eef5f7;
}
.result-slot.result_declared .slot-corner-status {
  border-color: #b8923a;
  color: #8a6415;
  background: #fdf3d8;
}

@media (max-width: 520px) {
  .status-legend span {
    padding: 4px 7px;
    font-size: 6px;
  }
  .result-slot .slot-status {
    min-height: 20px;
    padding: 2px 7px 2px 5px;
    font-size: 6px;
  }
}
