:root {
  color-scheme: light;
  --navy: #052551;
  --blue: #0759b6;
  --blue-hover: #00458f;
  --ink: #0b2d66;
  --muted: #496486;
  --line: #cbdef4;
  --surface: #ebf5ff;
  --radius: 15px;
  --content-width: 1588px;
  --font: Tahoma, "Leelawadee UI", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.55 var(--font);
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("./assets/wallpaper.png") center / cover no-repeat;
  pointer-events: none;
  content: "";
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #2072d7; outline-offset: 3px; }

.site-width { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./assets/header-icons.woff2") format("woff2");
}
.menu-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font: 400 19px/1 "Material Symbols Outlined";
  font-feature-settings: "liga";
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 0, #215a965f, transparent 70%),
    linear-gradient(106deg, #0a2b55, #071f42 52%, #0b305b);
  border-bottom: 1px solid #78b9ef8a;
  box-shadow: 0 5px 16px #03173570;
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: 0 0 146px; }
.brand img { width: 100%; height: auto; }
.site-header :focus-visible { outline-color: #a2cbff; }
.topnav { align-self: stretch; display: flex; gap: 3px; }
.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dceaff;
  white-space: nowrap;
  font-weight: 650;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.topnav a .menu-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #a8d3ff;
  background: #a5ccf318;
  font-size: 18px;
  transition: color .2s, background-color .2s, transform .2s;
}
.topnav a:hover, .topnav a:focus-visible {
  color: #fff;
  border-color: #96caff55;
  background: #1b4e805e;
}
.topnav a:hover .menu-icon { transform: translateY(-1px); }
.topnav a[aria-current] {
  color: #fff;
  border-color: #75b9ff;
  background: linear-gradient(180deg, #2167aa, #114278 85%);
  box-shadow: inset 0 1px 0 #d2eeff52, 0 3px 9px #040f2a73;
}
.topnav a:hover .menu-icon, .topnav a[aria-current] .menu-icon { color: #ecf8ff; background: #b4dcff35; }
.topnav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 17px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9fe3ff, transparent);
}
.header-actions, .header-shortcuts, .header-tools { display: flex; align-items: center; }
.header-actions { margin-left: auto; gap: 9px; flex-shrink: 0; }
.header-tools { gap: 5px; padding-inline-start: 8px; border-inline-start: 1px solid #74a7d63b; }
.header-shortcuts { gap: 7px; }
.header-tool {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #75aadc52;
  border-radius: 10px;
  color: #d6ebff;
  background: #9ac7ef16;
  transition: color .2s, background-color .2s, border-color .2s, transform .18s;
}
.header-tool:hover { color: #fff; background: #76b7f63d; border-color: #95caff; }
.header-tool:active { transform: scale(.94); }
.header-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 37px;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background-color .25s ease;
}
.header-button .menu-icon { font-size: 17px; transition: transform .25s ease; }
.header-button::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 45%;
  transform: translateX(-160%) skewX(-24deg);
  background: linear-gradient(90deg, transparent, #ffffff96 48%, transparent);
  transition: transform .55s ease;
  content: "";
}
.header-button:hover::before, .header-button:focus-visible::before { transform: translateX(300%) skewX(-24deg); }
.header-events {
  border-color: #76c6ff;
  color: #f1faff;
  background: linear-gradient(180deg, #226cab, #124377);
  box-shadow: inset 0 1px 0 #bce5ff52, 0 2px 8px #1b8fdf32;
}
.header-events:hover { box-shadow: inset 0 1px 0 #d7f0ff82, 0 0 12px #58beff6b; }
.header-events:hover .menu-icon { transform: translateY(-2px); }
.header-promotions {
  border-color: #ffe58d;
  color: #3d2804;
  background: linear-gradient(180deg, #ffecab, #ffcd52 54%, #f5a71e);
  box-shadow: inset 0 1px 0 #fff6ce, 0 2px 9px #efad4566;
}
.header-promotions:hover { box-shadow: inset 0 1px 0 #fff9d8, 0 0 14px #ffcb5b92; }
.header-promotions:hover .menu-icon { transform: rotate(-9deg) scale(1.09); }
.header-button:active { transform: scale(.96); }
.menu-toggle { display: none; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-hover); }
.button-outline { color: var(--blue); border-color: #a9c2e2; background: #fff; }
.button-outline:hover { background: #edf4fd; }

.dashboard {
  --sidebar-width: 268px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 24px;
  padding-block: 24px 32px;
}
.dashboard-main { min-width: 0; }
.game-shortcuts-rail {
  margin: 9px 10px 0;
  border: 1px solid #effaff;
  border-radius: 20px;
  background:
    linear-gradient(158deg, #f1faffed, #b4d3f2ec 50%, #9ebff0e8);
  box-shadow: inset 0 0 0 1px #2866a439, 0 7px 20px #0b3d763b;
}
.game-shortcuts-heading { display: none; margin: 0; }
.quick-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  min-block-size: 0;
  padding: 6px;
}
.quick-category {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 1px;
  border: 1px solid #edf8ffb8;
  border-radius: 13px;
  background: linear-gradient(160deg, #f2faffcc, #9cc3edc9);
  box-shadow: inset 0 -1px #447fb04d;
}
.quick-category img {
  width: min(100%, 74px);
  height: auto;
  filter: drop-shadow(0 3px 3px #16447859);
}
.quick-category::before {
  position: absolute;
  inset-inline-start: 3px;
  inset-block-start: 50%;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: #ffe39a;
  box-shadow: 0 0 7px #ffd772bd;
  transform: translateY(-50%);
  opacity: 0;
  content: "";
  pointer-events: none;
}
.quick-category:is(:hover, :focus-visible, [aria-pressed="true"]) {
  z-index: 1;
  border-color: #b9ecff;
  background:
    radial-gradient(ellipse at 50% 95%, #57bdffb8, transparent 75%),
    linear-gradient(160deg, #295f92, #112e55);
  box-shadow: 0 3px 9px #12376265, inset 0 1px #e9faff57;
}
.quick-category:is(:hover, :focus-visible, [aria-pressed="true"])::before { opacity: 1; }
.quick-category:focus-visible { outline-color: #133f71; outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .quick-category img { transition: transform .2s ease; }
  .quick-category::before { transition: opacity .18s ease; }
  .quick-category:is(:hover, :focus-visible) img { transform: translateY(-2px) scale(1.05); }
}
@media (min-width: 1280px) {
  .game-shortcuts-rail {
    --rail-top: clamp(78px, min(calc(77px + 17.7dvh), calc(100dvh - 550px)), 249px);
    position: fixed;
    z-index: 4;
    inset-block-start: var(--rail-top);
    inset-inline-end: calc((100% + var(--frame-max)) / 2 + 7px);
    width: clamp(88px, calc((100vw - var(--frame-max)) / 2 - 22px), 114px);
    max-block-size: calc(100dvh - var(--rail-top) - 12px);
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  .game-shortcuts-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 19px 19px 0 0;
    font-size: 13px;
  }
  .game-shortcuts-heading .menu-icon { font-size: 16px; }
  .quick-categories {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px;
  }
}
@media (min-width: 1280px) and (max-height: 630px) {
  .quick-categories { overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 1600px) and (min-height: 631px) {
  .quick-category::after {
    position: absolute;
    inset-inline-end: calc(100% + 13px);
    inset-block-start: 50%;
    padding: 6px 11px;
    border: 1px solid #94cef35e;
    border-radius: 8px;
    color: #eff7ff;
    background: linear-gradient(150deg, #1a4979, #0b294e);
    box-shadow: 0 4px 10px #11396145;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    content: attr(data-category);
    pointer-events: none;
  }
  .quick-category:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; }
}
@media (min-width: 1600px) and (min-height: 631px) and (prefers-reduced-motion: no-preference) {
  .quick-category::after { transition: opacity .18s ease, transform .18s ease; }
  .quick-category:not(:is(:hover, :focus-visible))::after { transform: translate(5px, -50%); }
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #06285d;
}
.hero-art { display: block; }
.hero-art img { width: 100%; height: auto; }
.hero-cta {
  position: absolute;
  inset-inline-start: 43%;
  inset-block-start: 66.8%;
  width: 31.8%;
  height: 12.8%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.hero-cta:hover { box-shadow: 0 0 15px #ffdf5580; }
.hero-cta:focus-visible { outline-color: #fff; outline-offset: 2px; }

.jackpot {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  margin-top: 8px;
  min-height: 72px;
  padding: 7px 16px;
  border: 1px solid #5eaceb;
  border-radius: 13px;
  background:
    linear-gradient(35deg, #03255442 12%, transparent 12.2%),
    linear-gradient(35deg, transparent 89%, #03255442 89.2%),
    radial-gradient(ellipse at 50% 75%, #0a5aae, transparent 73%),
    linear-gradient(105deg, #042c64, #1457a6 40%, #0e4b96 62%, #042c64);
  color: #fff;
}
.jackpot-label {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  padding-inline-end: clamp(14px, 3vw, 34px);
  border-inline-end: 1px solid #cdeaff55;
}
.jackpot-label::after, .jackpot-value::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #fff0a6;
  box-shadow: 0 0 8px #ffe586;
  content: "";
}
.jackpot-label::after { inset: -2px -3px auto auto; transform: rotate(45deg); }
.jackpot-emblem { font: 400 31px/1 Georgia, serif; color: #ffd745; text-shadow: 0 0 9px #ffcf7177; }
.jackpot h2 { font-size: 15px; font-weight: 900; line-height: 1.03; text-transform: uppercase; }
.jackpot-value {
  position: relative;
  font-size: clamp(30px, 5.1vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 0 10px #69ccffbd, 0 2px 0 #5296d2;
}
.jackpot-value::after { inset: auto 2px 0 auto; transform: rotate(45deg); }
.jackpot-value > span:first-child { font-size: .72em; }
.jackpot-bonus {
  position: absolute;
  inset-inline-end: 12px;
  top: 9px;
  padding: 2px 6px;
  border: 1px solid #ffe0808c;
  border-radius: 20px;
  background: #083263;
  color: #ffe080;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}
.jackpot.is-boosted .jackpot-bonus { animation: bonus-rise 1.6s ease-out both; }
.jackpot.is-boosted .jackpot-value { animation: jackpot-glow .9s ease-out; }

@keyframes bonus-rise {
  0% { opacity: 0; transform: translateY(7px); }
  15%, 73% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes jackpot-glow {
  35% { text-shadow: 0 0 16px #ffe691, 0 0 25px #66caff, 0 2px 0 #5296d2; }
}

.ticker {
  width: 100%;
  display: flex;
  min-width: 0;
  min-height: 31px;
  gap: 3px;
  margin-top: 6px;
  padding-inline: 8px 12px;
  align-items: center;
  border: 1px solid #f4faff;
  border-radius: 20px;
  background: linear-gradient(180deg, #cfe6fb, #e1f0fc);
  color: var(--ink);
}
.ticker-toggle, .ticker-news { min-height: 29px; padding: 0; border: 0; color: inherit; background: transparent; }
.ticker-toggle { display: grid; place-items: center; flex: 0 0 32px; border-radius: 16px; }
.ticker-toggle:hover, .ticker-toggle[aria-pressed="true"] { background: #b6d7f4; }
.ticker-speaker { position: relative; width: 23px; height: 16px; }
.ticker-speaker::before {
  position: absolute;
  inset: 2px auto 2px 0;
  width: 10px;
  background: currentColor;
  clip-path: polygon(0 29%, 40% 29%, 100% 0, 100% 100%, 40% 71%, 0 71%);
  content: "";
}
.ticker-speaker::after {
  position: absolute;
  inset: 1px 2px 1px 5px;
  border-inline-end: 5px double currentColor;
  border-radius: 50%;
  content: "";
}
.ticker-news { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: start; }
.ticker-window { display: block; flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; }
.ticker-track { display: flex; width: max-content; }
.ticker-message {
  flex: 0 0 auto;
  min-width: 100cqw;
  padding-inline: min(34cqw, 225px) 38px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker.is-running .ticker-track { animation: ticker-scroll 18s linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-live { padding: 1px 7px; border-radius: 12px; background: #fff; color: #0861a9; font-size: 9px; font-weight: 800; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-running .ticker-track, .jackpot.is-boosted .jackpot-value { animation: none; }
  .ticker-toggle, .ticker-message[aria-hidden="true"] { display: none; }
  .ticker-track { display: block; width: 100%; }
  .ticker-message { display: block; min-width: 0; padding-inline: 2px; overflow: hidden; text-overflow: ellipsis; }
  .jackpot.is-boosted .jackpot-bonus { animation: none; opacity: 1; }
}

.promotion-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(6px, .45vw, 8px);
  margin-top: clamp(5px, .45vw, 7px);
}
.promotion-banner {
  position: relative;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  aspect-ratio: 600 / 163;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}
.promotion-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promotion-banner:is(:hover, :focus-visible) { filter: drop-shadow(0 3px 5px #3278b34a); }
@media (prefers-reduced-motion: no-preference) {
  .promotion-banner { transition: transform .18s ease; }
  .promotion-banner:is(:hover, :focus-visible) { transform: translateY(-2px); }
}

.game-library {
  margin-top: 10px;
  border: 1px solid #b8d3ed;
  border-radius: 15px;
  background: linear-gradient(145deg, #f5faff, #e2effc);
  box-shadow: 0 4px 12px #163c741c;
}
.game-library h2, .recent-games h3 { display: flex; align-items: center; gap: 8px; }
.game-library h2, .game-shortcuts-heading {
  color: #fff;
  background: linear-gradient(105deg, #103e78, #092955 65%, #134c88);
}
.game-library h2 {
  padding: 8px 13px;
  border-radius: 14px 14px 0 0;
  font-size: 16px;
}
.recent-games {
  min-width: 0;
  padding: 9px 11px 10px;
  border-bottom: 1px solid #c5dbef;
  background: linear-gradient(170deg, #f0f8ff, #daeafb);
}
.recent-games h3, .game-results h3 { margin: 0; font-size: 14px; }
.recent-games h3 .menu-icon { font-size: 17px; }
#recent-empty {
  padding: 14px 4px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.recent-list, .game-results-list { margin: 0; padding: 0; list-style: none; }
.recent-list {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  margin-top: 6px;
  padding: 3px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.recent-list li { flex: 0 0 76px; }
.recent-list .game-tile { border-color: #c0a35a; background: #fff; }
.game-results { padding: 10px; }
.game-results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0 7px;
}
#game-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.game-results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.game-tile {
  display: block;
  width: 100%;
  padding: 6px;
  border: 1px solid #b9d7ef;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 65%, #bcdcf0a8, transparent 72%),
    linear-gradient(155deg, #f8fcff, #d8e9fa);
}
.game-tile img { width: 100%; aspect-ratio: 1.1; object-fit: contain; }
.recent-list .game-tile img { aspect-ratio: 1; }
.game-tile:hover { border-color: #3178b8; box-shadow: 0 2px 8px #144c882e; }
@media (max-width: 560px) {
  .quick-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .game-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sidebar { display: grid; align-content: start; gap: 16px; }
@media (min-width: 941px) {
  .sidebar {
    --sidebar-top: 85px;
    position: sticky;
    z-index: 3;
    align-self: start;
    inset-block-start: var(--sidebar-top);
    max-block-size: calc(100dvh - var(--sidebar-top) - 12px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.panel { overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel h2 { font-size: 17px; line-height: 1.4; font-weight: 750; }
.text-button { padding: 4px 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.winner-list { padding: 0; margin: 8px 0 0; list-style: none; }
.winner-list li {
  min-height: 60px;
  display: grid;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  border-bottom: 1px solid #e8eef5;
}
.winner-art {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1.25;
  overflow: hidden;
  border-radius: 5px;
  color: #0b4e95;
  background: #dceeff;
}
.winner-art img { width: 100%; height: 100%; object-fit: contain; }
.winner-list strong, .winner-list small { display: block; }
.winner-list strong { font-size: 12px; }
.winner-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.winner-list b { color: #15457e; white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.panel-note { padding-top: 10px; color: var(--muted); font-size: 11px; }
.winner-history { max-height: calc(100dvh - 24px); overflow-y: auto; }
.winner-history .winner-list { margin-inline: 0; }
@media (prefers-reduced-motion: no-preference) {
  .winner-new { animation: winner-arrival .65s ease-out both; }
}
@keyframes winner-arrival {
  from { opacity: .45; transform: translateY(-6px); background: #cfefdf; }
  to { opacity: 1; transform: translateY(0); background: transparent; }
}

.mobile-nav { display: none; }

dialog {
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}
dialog::backdrop { background: rgb(5 17 34 / 64%); }
dialog h2 { padding-right: 24px; margin-bottom: 9px; }
dialog p { color: var(--muted); margin-bottom: 18px; }
.dialog-close { position: absolute; top: 10px; right: 12px; padding: 2px 8px; border: 0; color: var(--ink); background: transparent; font-size: 23px; }
.toast {
  position: fixed;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

@media (max-width: 1140px) {
  .site-width { width: calc(100% - 40px); }
  .dashboard { gap: 16px; }
  .header-inner { gap: 14px; }
}
@media (max-width: 1023px) {
  .header-inner { min-height: 60px; }
  .brand { flex-basis: 126px; }
  .menu-toggle {
    order: 2;
    display: grid;
    place-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #78b6ec80;
    border-radius: 8px;
    color: #fff;
    background: #0a3768;
  }
  .menu-toggle .menu-icon { font-size: 22px; }
  .topnav {
    position: absolute;
    inset: calc(100% + 8px) 14px auto;
    display: none;
    max-height: min(75vh, 360px);
    padding: 8px;
    overflow: auto;
    border: 1px solid #77a9df74;
    border-radius: 15px;
    background: linear-gradient(160deg, #123869, #081f42);
    box-shadow: 0 10px 26px #041b4a80;
  }
  .topnav.open { display: grid; }
  .topnav a { min-height: 42px; gap: 9px; }
  .header-tools { display: none; }
}
@media (max-width: 940px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 621px) and (max-width: 940px) {
  .account-panel { grid-row: span 2; align-self: start; }
}
@media (max-width: 620px) {
  .site-width { width: calc(100% - 28px); }
  .header-inner { gap: 6px; }
  .brand { flex-basis: clamp(80px, 27vw, 126px); }
  .header-shortcuts { gap: 5px; }
  .header-button { gap: 3px; min-height: 34px; padding-inline: 8px; font-size: 11px; }
  .header-button .menu-icon { font-size: 14px; }
  .menu-toggle { width: 34px; height: 34px; }
  .dashboard { padding-block: 12px 24px; gap: 20px; }
  .hero-cta {
    inset-inline-start: 4.7%;
    inset-block-start: 76.8%;
    width: 64.5%;
    height: 8.4%;
  }
  .jackpot { min-height: 61px; padding: 12px 8px 6px; gap: 10px; }
  .jackpot-label { gap: 5px; padding-inline-end: 8px; }
  .jackpot-emblem { font-size: 22px; }
  .jackpot h2 { font-size: 10px; }
  .jackpot-value { font-size: clamp(23px, 6.1vw, 32px); }
  .jackpot-bonus { inset-inline-end: 6px; top: 3px; padding: 0 4px; font-size: 9px; }
  .sidebar { grid-template-columns: 1fr; }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px 9px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--blue);
    background: #fff;
  }
  .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 45px; font-size: 11px; font-weight: 650; }
  .mobile-nav .menu-icon { font-size: 19px; }
  .toast { bottom: 67px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.panel {
  border-color: #f8fcff;
  background: linear-gradient(120deg, #f9fcff, #eaf4ff);
  box-shadow: 0 3px 12px #0753a129;
}
.account-panel { padding: 5px; border-radius: 12px; }
.account-summary {
  padding: 7px 8px 8px;
  border: 1px solid #639fd9;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(ellipse at 12% 0, #3088d278, transparent 65%),
    linear-gradient(155deg, #174d85, #0d3263 55%, #081f46);
  box-shadow: inset 0 1px #bbe2ff59, 0 3px 8px #0b4a8e30;
}
.account-identity, .balance { display: flex; align-items: center; gap: 9px; color: #fff; }
.account-identity {
  width: 100%;
  min-height: 56px;
  padding: 4px 5px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: start;
}
.account-identity::after {
  flex: 0 0 7px;
  height: 7px;
  margin-inline-end: 3px;
  border: solid #c4e1ff;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  content: "";
}
.account-identity:hover { background: #b4dbff26; }
.account-panel :focus-visible { outline-offset: -2px; outline-color: #9cdcfe; }
.account-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balance {
  min-height: 42px;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid #9ccaff40;
  border-radius: 9px;
  background: #061c43b8;
  box-shadow: inset 0 1px 2px #03142a6b;
}
.balance-details { display: grid; gap: 2px; }
.balance-details span { color: #c0d9f2; font-size: 10px; line-height: 1.15; }
.balance strong { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.balance-icon {
  flex: 0 0 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(#84db2c, #268e1b);
  box-shadow: inset 0 1px 1px #c4ff7b96, 0 0 5px #3fba466d;
}
.refresh {
  width: 30px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: transparent;
}
.refresh:hover { background: #a2d4ff25; }
.refresh .menu-icon { font-size: 22px; transition: transform .35s ease; }
.refresh.spinning .menu-icon { transform: rotate(360deg); }
.money-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.money-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid #5399db;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(150deg, #207ac0, #125a9f 45%, #093974);
  box-shadow: inset 0 1px 0 #a6dcff91, 0 2px 4px #103c7b3b;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: box-shadow .2s, transform .16s;
}
.money-button:is([data-action="withdraw"], [data-action="transaction-history"]) {
  border-color: #477db7;
  background: linear-gradient(150deg, #1c5a96, #0d437f 48%, #062c60);
}
.money-button[data-action="transaction-history"] { grid-column: 1 / -1; }
.money-button::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 40%;
  transform: translateX(-170%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, #c9f0ff69, transparent);
  transition: transform .55s ease-out;
  content: "";
}
.money-button:hover, .money-button:focus-visible { box-shadow: inset 0 1px 0 #cef0ffaa, 0 1px 8px #1b78cb80; }
.money-button:hover::before, .money-button:focus-visible::before { transform: translateX(320%) skewX(-22deg); }
.money-button:active { transform: scale(.97); }

.money-art {
  flex: 0 0 40px;
  width: 40px;
  height: 36px;
  object-fit: contain;
}
.winners-panel { padding: 0; }
.winners-panel .panel-heading, .contact-panel .panel-heading {
  min-height: 44px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(115deg, #0755ac, #03265c 76%, #1765ae);
}
.winners-panel .text-button { color: #fff; }
.winners-panel .text-button:disabled { cursor: default; opacity: .65; text-decoration: none; }
.winner-list { margin: 5px 13px 0; }
.panel-note {
  margin: 9px 13px;
  padding: 6px;
  border-radius: 8px;
  background: #dbeafe;
  text-align: center;
  font-weight: 700;
}
.panel-note[data-live="true"] { color: #136145; background: #dff3e9; }
.panel-note[data-live="true"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.contact-panel {
  padding: 0;
  scroll-margin-block: 78px 12px;
  background: linear-gradient(155deg, #fbfdff, #eaf4ff);
  box-shadow: 0 4px 14px #0a396c14;
}
.contact-panel h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.contact-panel h2 .menu-icon { color: #c7e5ff; font-size: 17px; }
.contact-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin-inline: auto;
  padding: 10px;
}
.contact-qr {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.contact-qr img {
  box-sizing: content-box;
  max-width: none;
  padding: 3px;
  border: 1px solid #c4dcf3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 5px #10477e10;
  image-rendering: pixelated;
}
.contact-channels {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.contact-channels li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 7px;
  border: 1px solid #cbdff4;
  border-radius: 9px;
  background: #ffffffba;
  font-size: 12px;
  font-weight: 700;
}
.contact-line-icon, .contact-phone-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.contact-line-icon {
  color: #fff;
  background: #068248;
  font: 800 7px/1 var(--font);
}
.contact-phone-icon {
  color: #145797;
  background: #e1efff;
}
.contact-phone-icon::before {
  width: 10px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  content: "";
}
.contact-phone-icon::after {
  position: absolute;
  bottom: 7px;
  width: 4px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}
.contact-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #bdd9f2;
  border-radius: 0 0 20px 20px;
  background: #eaf4ff;
  box-shadow: 0 8px 20px #06244946;
}
.footer-assurance {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr 1fr 1.12fr;
  align-items: center;
  min-height: 58px;
  margin: 6px 8px 9px;
  padding: 6px 3px;
  list-style: none;
  color: #092e65;
  border: 1px solid #eef8ff;
  border-radius: 32px;
  background: linear-gradient(180deg, #e1edfc, #c6dff9);
  box-shadow: 0 2px 4px #286bb32b, inset 0 1px #fff9;
}
.footer-assurance li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding-inline: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.footer-assurance li + li { border-inline-start: 1px solid #90b6dd; }
.footer-assurance .menu-icon { font-size: 30px; }
.footer-panel {
  padding: 22px clamp(16px, 3vw, 34px) 10px;
  color: #d1e3f8;
  background:
    linear-gradient(90deg, #76c4ff, #4075aa67 55%, #4075aa26) top / 100% 1px no-repeat,
    radial-gradient(ellipse at 9% 0, #164981, transparent 52%),
    linear-gradient(115deg, #0b2c55, #081e3e 66%, #081a37);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.38fr 1fr 1fr minmax(143px, .9fr) minmax(161px, .94fr);
  gap: 17px clamp(12px, 2vw, 26px);
  font-size: 13px;
  line-height: 1.55;
}
.footer-brand a { display: inline-block; margin: -7px 0 3px; }
.footer-brand img { width: 156px; height: auto; }
.footer-brand p { max-width: 27ch; color: #c6dcf6; text-wrap: pretty; }
.footer-column h2 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.footer-column h2::after {
  display: block;
  width: 19px;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: #79bcf5;
  content: "";
}
.footer-links {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li { display: flex; align-items: baseline; gap: 8px; }
.footer-links li::before {
  flex: 0 0 5px;
  height: 5px;
  border: solid #8dc3f6;
  border-width: 1px 1px 0 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.footer-links button {
  padding: 3px 0;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: none;
  text-align: start;
}
.footer-links button:hover { color: #fff; text-decoration: underline; }
.footer-panel :focus-visible { outline-color: #a2cbff; }
.footer-social, .footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.footer-social button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--social-ink) 37%, #1c3961);
  border-radius: 8px;
  color: var(--social-ink);
  background: linear-gradient(150deg, var(--social-surface), #102644);
  box-shadow: 0 2px 6px #010e245e, inset 0 1px #ffffff13;
  transition: border-color .18s ease, transform .18s ease;
}
.footer-social button:hover { border-color: currentColor; transform: translateY(-2px); }
.social-line { --social-ink: #71f6a8; --social-surface: #124338; }
.social-line span {
  position: relative;
  padding: 2px;
  border-radius: 5px;
  color: #103b2a;
  background: var(--social-ink);
  font: 700 7px/1.15 Arial, sans-serif;
}
.social-line span::after {
  position: absolute;
  bottom: -2px;
  left: 6px;
  border-top: 4px solid var(--social-ink);
  border-right: 4px solid transparent;
  content: "";
}
.social-facebook { --social-ink: #8bbcff; --social-surface: #163f76; }
.social-facebook span { font: 700 23px/1 Arial, sans-serif; padding-top: 1px; }
.social-telegram { --social-ink: #77dbff; --social-surface: #144664; }
.social-telegram::before {
  width: 16px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 42%, 100% 0, 82% 100%, 52% 73%, 36% 89%, 38% 61%, 78% 24%, 30% 56%);
  content: "";
}
.social-youtube { --social-ink: #ff919f; --social-surface: #532837; }
.social-youtube::before, .social-youtube::after { grid-area: 1 / 1; content: ""; }
.social-youtube::before {
  width: 17px;
  height: 12px;
  border-radius: 4px;
  background: currentColor;
}
.social-youtube::after {
  width: 5px;
  height: 6px;
  margin-left: 1px;
  background: #4b1c2b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.footer-payments li {
  display: grid;
  place-items: center;
  height: 32px;
  padding-inline: 5px;
  border: 1px solid #c5d9ef;
  border-radius: 7px;
  color: #104080;
  background: linear-gradient(#fff, #e6effa);
  box-shadow: 0 2px 6px #010e245e, inset 0 1px #fff;
  white-space: nowrap;
}
.payment-visa { font: italic 800 14px/1 Arial, sans-serif; }
.footer-payments .payment-mastercard {
  width: 41px;
  background:
    radial-gradient(circle at calc(50% - 5px) 50%, #ea001b 7px, transparent 7.6px),
    radial-gradient(circle at calc(50% + 5px) 50%, #ffa728 7px, transparent 7.6px),
    linear-gradient(#fff, #e6effa);
}
.payment-promptpay span {
  padding: 2px 3px;
  border-radius: 2px;
  color: #fff;
  background: #154675;
  font: 700 8.5px/1 Arial, sans-serif;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid #7bb7f042;
  color: #c0d4ed;
  font-size: 12px;
}
.footer-age { display: flex; align-items: center; gap: 8px; }
.footer-age strong {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  height: 25px;
  border: 1px solid #83bbf282;
  border-radius: 13px;
  color: #f0f7ff;
  background: #29548545;
  font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
  .footer-social button { transition: none; }
  .footer-social button:hover { transform: none; }
}

@media (min-width: 1024px) {
  body {
    --frame-max: 1050px;
    --frame-width: min(var(--frame-max), calc(100% - 40px));
    --header-width: calc(var(--frame-max) + 50px);
    --scale: calc(min(var(--frame-max), calc(100vw - 40px)) / 1588);
  }
  .site-width { width: var(--frame-width); }
  .header-inner { width: min(var(--header-width), calc(100% - 24px)); min-height: 64px; gap: 12px; }
  .brand { flex-basis: 126px; }
  .topnav {
    flex: 1 1 auto;
    align-self: center;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    min-height: 46px;
    padding: 4px;
    border: 1px solid #8ab9e543;
    border-radius: 15px;
    background: linear-gradient(180deg, #061933ae, #0d335f5c);
    box-shadow: inset 0 1px 4px #04183369;
  }
  .topnav a { min-height: 36px; padding-inline: clamp(5px, .6vw, 10px); font-size: 13px; }
  .header-actions { margin-left: 0; }

  .dashboard {
    --sidebar-width: 255px;
    gap: calc(20 * var(--scale));
    margin-top: 12px;
    padding: calc(10 * var(--scale)) calc(18 * var(--scale)) calc(14 * var(--scale));
    border: 1px solid #fff;
    border-radius: calc(29 * var(--scale)) calc(29 * var(--scale)) 0 0;
    background: linear-gradient(135deg, #f7fcff, #eaf4ff);
    box-shadow: 0 8px 24px #003b8040;
  }
  .sidebar {
    --sidebar-top: calc(78px + 10 * var(--scale));
    gap: calc(20 * var(--scale));
    padding-top: calc(2 * var(--scale));
  }
  .winners-panel .panel-heading, .contact-panel .panel-heading { min-height: 35px; padding-inline: 9px; }
  .winners-panel h2 { font-size: 14px; }
  .winner-list { margin-inline: 8px; }
  .winner-list li { min-height: 39px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .winner-list strong { font-size: 11px; }
  .winner-list small { font-size: 9px; }
  .winner-list b { font-size: 12px; }
  .winner-art { width: 28px; height: auto; }
  .panel-note { margin-block: 8px; }

  .site-footer {
    width: var(--frame-width);
  }
}

@media (min-width: 1024px) and (max-width: 1110px) {
  .topnav a { gap: 5px; padding-inline: 5px; font-size: 12px; }
  .topnav a .menu-icon { width: 22px; height: 22px; font-size: 16px; }
  .header-tools { gap: 4px; padding-inline-start: 5px; }
  .header-tool { width: 32px; height: 32px; }
}

@media (max-width: 980px) {
  .footer-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 440px; }
  .footer-social button { width: 29px; height: 29px; }
  .footer-payments li { height: 29px; }
  .footer-assurance li { gap: 6px; font-size: 12px; }
  .footer-assurance .menu-icon { font-size: 25px; }
}
@media (max-width: 740px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body::before { background-position: 38% center; }
  .site-footer {
    width: calc(100% - 28px);
    margin-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .footer-inner { column-gap: 12px; }
  .footer-brand img { width: 145px; }
  .footer-social button { width: 27px; height: 27px; }
  .footer-social .social-facebook span { font-size: 20px; }
  .footer-payments { gap: 3px; }
  .footer-payments li { height: 27px; padding-inline: 3px; }
  .payment-visa { width: 34px; font-size: 12px; }
  .footer-payments .payment-mastercard { width: 35px; }
  .payment-promptpay { width: 46px; }
  .payment-promptpay span { font-size: 8px; }
  .footer-assurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 0;
    padding: 6px;
    border-radius: 14px;
  }
  .footer-assurance li { justify-content: flex-start; }
  .footer-assurance li:nth-child(odd) { border-inline-start: 0; }
  .footer-assurance li:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid #90b6dd;
  }
}
@media (max-width: 360px) {
  .header-button .menu-icon { display: none; }
}
