/* Tokens from the ACED UI Kit Figma file (styles and node values, not pixels). */

/* Hebrew faces carry the script the kit's Dosis/Urbanist lack; Latin and digits stay in the kit's faces. */
@font-face { font-family: "Dosis"; src: url(/fonts/dosis-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AA; }
@font-face { font-family: "Dosis"; src: url(/fonts/rubik-hebrew.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+FB1D-FB4F; }
@font-face { font-family: "Urbanist"; src: url(/fonts/urbanist-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AA; }
@font-face { font-family: "Urbanist"; src: url(/fonts/heebo-hebrew.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+FB1D-FB4F; }

:root {
  color-scheme: dark;
  --primary: #EDB258;          /* Colors/Primary/Base */
  --primary-300: #F3CD93;
  --primary-400: #EFBA6B;
  --primary-900: #513409;
  --bg: #131217;               /* Colors/Secondary/Base */
  --surface: #18171C;          /* Colors/Tertiary/Base */
  --well: #0F0E13;
  --sec-500: #B3B0C1;
  --sec-700: #89849F;
  --sec-800: #6B6581;          /* muted text in the kit */
  --sec-900: #3B3848;
  --ter-500: #B3B0BE;
  --ter-900: #3E3B48;
  --line: #2C2B33;
  --green: #7CDB2E;
  --red: #EA534B;
  --white: #FFFFFF;
  --block-bg: linear-gradient(180deg, #2A2A32, #17161C);     /* Elements/Blocks styles/Background */
  --block-stroke: linear-gradient(180deg, #3C3A42, #1B1A1F); /* Elements/Blocks styles/Stroke */
  --main-grad: linear-gradient(180deg, #EFBA6B, #DC8D18);    /* Gradient/Main Gradient */
  --head: "Dosis", "Rubik", system-ui, sans-serif;
  --body: "Urbanist", "Heebo", system-ui, sans-serif;
  --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--white); font: 400 14px/1.5 var(--body); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.page { max-width: 1180px; margin: 0 auto; padding: 24px var(--gutter) 140px; }
main { display: flex; flex-direction: column; gap: 20px; }   /* Home › Content: col gap20 */

/* ---------- header (Home › Header: row gap26, pills 42 high r40 pad4) ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 20px; flex-wrap: wrap; }
.logo { display: block; width: 40px; height: 47px; flex: none; }
.logo img { display: block; width: 100%; height: 100%; }
.pill { display: flex; align-items: center; gap: 10px; padding: 4px; padding-inline-end: 14px; min-width: 111px; border-radius: 40px; background: var(--surface); }
.pill-end { padding-inline-end: 4px; padding-inline-start: 14px; justify-content: flex-end; }
.pill-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 75%, #634828 0, #000 40%);              /* Gradient/Level Gold */
  box-shadow: 0 0 0 2px var(--ter-900); }                                           /* stroke 2 outside */
.pill-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--primary-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-txt { display: flex; flex-direction: column; line-height: 1.5; white-space: nowrap; }
.pill-txt small { font: 400 10px/1.5 var(--body); color: var(--sec-800); }          /* Body Small */
.pill-txt b { font: 600 12px/1.5 var(--head); }                                     /* Number 5 */
.topnav { display: none; }

/* ---------- blocks ---------- */
.card, .banner { position: relative; border-radius: 20px; padding: 19px; border: 1px solid transparent;
  background: var(--block-bg) padding-box, var(--block-stroke) border-box; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { font: 600 16px/1.5 var(--head); margin-bottom: 12px; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 143px; overflow: hidden; }
.banner-txt { display: flex; flex-direction: column; gap: 4px; max-width: 70%; }
.banner h1 { font: 600 18px/1.5 var(--head); }                                      /* Heading 4 */
.banner p { color: var(--sec-800); font-size: 14px; }
.banner-chip { width: 111px; height: 111px; flex: none; margin-inline-end: -10px; filter: drop-shadow(0 8px 24px rgba(237, 178, 88, .18)); }
.link { color: var(--primary); font-weight: 700; text-decoration: none; margin-top: 6px; }
.link:hover { text-decoration: underline; }

/* Slots › "Grand Jackpot" block: r20 pad10/20 gap5, well #0F0E13 r10 pad10 */
.block { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 20px 14px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.block-title { font: 700 20px/1.5 var(--body); text-align: center; }                 /* Body XLarge Bold */
.well { width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px; border-radius: 10px; background: var(--well); }
.jackpot { font: 700 32px/1.5 var(--head); direction: ltr; white-space: nowrap;
  background: linear-gradient(90deg, #FFD28E, #C69447); -webkit-background-clip: text; background-clip: text; color: transparent;   /* Bet Results/Win */
  filter: drop-shadow(0 2px 0 #684123) drop-shadow(0 0 10px rgba(255, 218, 164, .31)); }                                           /* Win result */

/* ---------- section heads (Home › Title: Heading 3 + Body Medium Bold primary) ---------- */
.section { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sec-head h2 { font: 600 20px/1.5 var(--head); }
.sec-note { font: 700 14px/1.5 var(--body); color: var(--primary); white-space: nowrap; }
.lead { color: var(--sec-700); max-width: 72ch; }
.muted { color: var(--sec-800); }
.small { font-size: 12px; }
.center { text-align: center; }

/* ---------- balls: Roulette/Type=*, Active=True (44, r80, gradient + stroke + inner/drop shadow) ---------- */
.balls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; direction: ltr; }
.ball { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 700 16px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #484755, #1F1F25); border: 1px solid #6B6581;
  box-shadow: inset 0 4px 4px rgba(125, 122, 150, .5), 0 4px 25px rgba(56, 56, 68, .25); }
.ball.gray  { background: linear-gradient(180deg, #A5A5AF, #666); border-color: #C4C1CF; box-shadow: inset 0 4px 4px rgba(255,255,255,.5), 0 4px 25px rgba(255,255,255,.25); }
.ball.gold  { background: linear-gradient(180deg, #D28B31, #815A23); border-color: #EFBA6B; box-shadow: inset 0 4px 4px rgba(255,218,164,.5), 0 4px 25px rgba(237,178,88,.25); }
.ball.green { background: linear-gradient(180deg, #67B826, #376B11); border-color: #A0E567; box-shadow: inset 0 4px 4px rgba(123,214,51,.5), 0 4px 25px rgba(92,166,33,.25); }
.ball.red   { background: linear-gradient(180deg, #FD312A, #791413); border-color: #F0817B; box-shadow: inset 0 4px 4px rgba(255,38,31,.5), 0 4px 25px rgba(221,42,36,.25); }
.ball.dim { opacity: .3; }                                                           /* Active=False */
.ball.sm { --s: 34px; font-size: 14px; }
.sep { width: 1px; align-self: stretch; background: var(--sec-900); margin: 4px 2px; }

/* ---------- list rows (Home › News / Flip History: #18171C r12 pad10 gap10) ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); min-width: 0; }
.row-ico { width: 39px; height: 39px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 75%, #634828 0, #000 40%); }
.row-ico img { width: 20px; height: 23px; }
.row-body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 0; min-width: 0; }
.row-meta { font: 400 12px/1.5 var(--body); color: var(--sec-800); }
.row-title { font: 500 14px/1.5 var(--body); }
.row-title em { font-style: normal; color: var(--primary); }
.row .balls { justify-content: flex-end; gap: 5px; }
bdi { white-space: nowrap; }
.row-end { margin-inline-start: auto; text-align: end; flex: none; }
.num { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------- main button (Main Button/State=Active) ---------- */
.actions { display: flex; justify-content: center; padding-top: 4px; }
.main-btn { padding: 4px; border-radius: 40px; border: 1px solid var(--sec-900); }
.main-btn span { display: block; padding: 10px 40px; border-radius: 40px; border: 1px solid var(--primary-300);
  background: linear-gradient(90deg, rgba(176,127,52,.5) 52.5%, rgba(249,200,136,.5) 100%), linear-gradient(90deg, #F9C888 0%, #7A551E 100%);
  font: 700 16px/1.5 var(--body); color: var(--primary-900); }
.main-btn:hover span { filter: brightness(1.08); }
.main-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- tabs (chips) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { padding: 6px 16px; border-radius: 40px; background: var(--surface); color: var(--ter-500); font-weight: 600; border: 1px solid var(--line); }
.tabs button[aria-selected="true"] { color: var(--primary-900); border-color: var(--primary-300); background: linear-gradient(90deg, #F9C888, #C69447); }
.tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- heat map ---------- */
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 12px 8px; direction: ltr; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; }
.cell .v { font: 600 12px/1.5 var(--head); color: var(--sec-700); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--sec-700); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .ball { --s: 14px; border-width: 1px; box-shadow: none; }

/* ---------- bar charts (single series: primary; theory = a thin neutral tick) ---------- */
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; direction: ltr; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.bar .plot { position: relative; flex: 1 1 0; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.bar i { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--main-grad); min-height: 2px; }
.bar b { font: 600 12px/1 var(--head); color: var(--sec-500); }
.bar .mk { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--sec-500); opacity: .7; }
.hist { display: flex; gap: 2px; align-items: flex-end; height: 140px; direction: ltr; }
.hist i { flex: 1 1 0; background: var(--main-grad); border-radius: 4px 4px 0 0; min-height: 2px; }
.hist i.out { background: var(--sec-900); }
.axis { display: flex; justify-content: space-between; direction: ltr; font: 600 11px/1.5 var(--head); color: var(--sec-800); margin-top: 4px; }

.dist { display: flex; flex-direction: column; gap: 6px; }
.drow { display: grid; grid-template-columns: 34px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; }
.drow .k { direction: ltr; unicode-bidi: isolate; font: 600 13px/1 var(--head); color: var(--sec-500); text-align: center; }
.track { position: relative; height: 10px; border-radius: 4px; background: var(--well); }
.track i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--main-grad); }
.track s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--sec-500); }
.drow .p { text-align: end; font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.key { display: flex; gap: 14px; font-size: 11px; color: var(--sec-700); margin-top: 10px; }
.key span { display: inline-flex; gap: 6px; align-items: center; }
.key i { width: 14px; height: 8px; border-radius: 2px; background: var(--main-grad); }
.key s { width: 2px; height: 12px; background: var(--sec-500); }

.facts { display: grid; gap: 12px; align-content: start; }
.fact { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact span { color: var(--sec-700); }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--sec-700); font-size: 12px; position: sticky; top: 0; background: #1f1e25; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
td.n { font-family: var(--head); font-weight: 700; color: var(--primary); }
.sortable th { cursor: pointer; user-select: none; }
.sortable th[aria-sort]::after { content: " ▾"; color: var(--primary); }
.sortable th[aria-sort="ascending"]::after { content: " ▴"; }
.odds { width: 100%; }
.odds summary { cursor: pointer; color: var(--primary); font-weight: 700; text-align: center; padding: 6px; }
.odds table { margin-top: 6px; }

.notice { padding: 12px 16px; border-radius: 12px; background: rgba(230, 49, 38, .12); border: 1px solid rgba(240, 129, 123, .4); color: #F8C4C1; }
.verdict { font-weight: 700; }

.foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--sec-700); }
.foot a { color: var(--primary); }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #2A2A32; border: 1px solid #3C3A42;
  font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); max-width: 240px; }
.tip b { color: var(--primary); font-family: var(--head); }

/* ---------- bottom menu (Menu/Menu=Main: 375x96 r40, gradient @80%, blur 5, centre 62 gold) ---------- */
.menu { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 480px; height: 81px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 30px calc(env(safe-area-inset-bottom) + 0px);
  border-radius: 40px 40px 0 0; border-top: 1px solid #444249;
  background: linear-gradient(180deg, rgba(37,36,43,.8), rgba(19,18,23,.8)); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.menu a { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; }
.menu svg { width: 24px; height: 24px; fill: none; stroke: #B3B2BE; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu a:hover svg, .menu a:focus-visible svg { stroke: var(--primary); }
.menu .menu-main { width: 62px; height: 62px; margin-top: -34px; background: radial-gradient(circle at 50% 30%, #F4C070, #CF943E); box-shadow: 0 4px 33px rgba(237,178,88,.4), 0 0 0 8px var(--bg); }
.menu .menu-main img { width: 28px; height: 32px; filter: brightness(0) invert(1) drop-shadow(0 0 5px #fff); }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ticketList, #history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { padding: 28px 32px; }
  .banner h1 { font-size: 32px; }                                                    /* Heading 2 */
  .banner-chip { width: 150px; height: 150px; }
}
@media (min-width: 1024px) {
  .grid, #history { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu { display: none; }
  .page { padding-bottom: 60px; }
  .topnav { display: flex; gap: 24px; order: 4; width: 100%; justify-content: center; padding-top: 8px; }
  .topnav a { text-decoration: none; color: var(--ter-500); font-weight: 600; }
  .topnav a:hover { color: var(--primary); }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .header { gap: 8px; }
  .pill { min-width: 0; }
  .ball.sm { --s: 30px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
