/* style.css | सट्टा मटका
 *
 * Red redesign. This file replaces the previous merged stylesheet (the
 * captured site layers plus the amber redesign layer) and is written from
 * scratch against the current markup. The <head> of index.html is untouched:
 * it still links this file and preloads Mukta 400 and Martel 800, so both
 * families stay in use.
 *
 * Palette (OKLCH hue ~22, oxblood to scarlet)
 *   --ink      #140303  page canvas
 *   --band     #1e0506  panels inside the reading band
 *   --panel    #2b0809  game lobby panel, active folder tab
 *   --tile     #390c0e  game tiles
 *   --crimson  #99151d  header, ticket stub, table heads, footer band
 *   --scarlet  #df2a2a  accent: active tab, ledger rules, markers
 *   --rose     #f89999  links and small headings on dark surfaces
 *   --paper    #fef3f3  headings, primary text, buttons on crimson
 *   --blush    #ebcccc  body text
 *   --muted    #c29999  small print
 *
 * Shape rule: buttons and chips are fully round; surfaces use 14-16px; game
 * tiles 12px with 8px covers; folder tabs round their top corners only.
 *
 * Layout map
 *   header   links | centred logo | actions  (phones: link strip on top)
 *   hero     lottery ticket: banner + perforated crimson stub with the CTAs
 *   games    heading + folder tabs sitting on the lobby panel, 6/5/4/3 cols
 *   article  full-bleed reading band: title + lead, then body + sticky TOC
 *   footer   crimson band (brand + payments), link columns, licence bar
 */

/* ================================================================ Fonts */

@font-face {
  font-family: 'Martel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/martel-devanagari-700-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Martel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/martel-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martel';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/martel-devanagari-800-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Martel';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/martel-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mukta-devanagari-400-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mukta-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/mukta-devanagari-500-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/mukta-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/mukta-devanagari-600-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/mukta-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/mukta-devanagari-700-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/mukta-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================== Tokens */

:root {
  --ink: #140303;
  --band: #1e0506;
  --panel: #2b0809;
  --tile: #390c0e;
  --tile-hot: #4a1012;
  --crimson: #99151d;
  --crimson-hi: #a3161f;
  --crimson-lo: #7a0e17;
  --scarlet: #df2a2a;
  --scarlet-hi: #f1453f;
  --rose: #f89999;
  --paper: #fef3f3;
  --blush: #ebcccc;
  --muted: #c29999;
  --line: rgba(248, 153, 153, 0.12);
  --line-2: rgba(248, 153, 153, 0.22);
  --rule: rgba(223, 42, 42, 0.55);

  --font-display: 'Martel', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --w: 1240px;
  --gutter: 24px;
  --header-h: 72px;
  --strip-h: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur: 180ms;
}

/* ================================================================= Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--crimson) var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
img {
  max-width: 100%;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* game-tabs.js hides filtered cards with the hidden attribute */
[hidden] {
  display: none !important;
}
::selection {
  background: var(--scarlet);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The page artwork, recoloured to red by blending a crimson layer in
   `color` mode (hue from the red, light and shade from the artwork), then
   darkened by a scrim so it stays behind the content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(#b3141f, #b3141f),
    url('../images/background.webp') center top / cover no-repeat,
    var(--ink);
  background-blend-mode: color, normal;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(20, 3, 3, 0.3) 0%, rgba(20, 3, 3, 0.78) 58%, rgba(20, 3, 3, 0.93) 100%),
    linear-gradient(180deg, rgba(20, 3, 3, 0.14) 0%, rgba(20, 3, 3, 0.68) 48%, rgba(20, 3, 3, 0.9) 100%);
}

/* =============================================================== Header */

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--crimson-hi) 0%, #8b111a 100%);
  box-shadow: inset 0 -1px 0 rgba(20, 3, 3, 0.45), 0 14px 30px -20px rgba(0, 0, 0, 0.9);
}
.main-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 'nav logo actions';
  align-items: center;
  column-gap: 24px;
  max-width: var(--w);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-nav {
  grid-area: nav;
  justify-self: start;
  display: flex;
  align-items: center;
  margin-left: -12px;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: var(--paper);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.logo {
  grid-area: logo;
  display: block;
  width: 212px;
  height: 46px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.header-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn-ghost {
  color: var(--paper);
  border-color: rgba(254, 243, 243, 0.55);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(254, 243, 243, 0.12);
}
.btn-solid {
  color: #8b111a;
  background: var(--paper);
  box-shadow: 0 8px 18px -10px rgba(20, 0, 0, 0.8);
}
.btn-solid:hover {
  background: #fff;
}
.btn:active {
  transform: translateY(1px);
}

/* ================================================================= Hero */

/* A lottery ticket: the banner is the ticket body, the crimson stub on the
   right holds the two CTAs, split by a dashed tear line with a semicircle
   notch punched out at each end of it. The mask cuts the notches; the drop
   shadow sits on the parent so it follows the cut shape. */
.hero {
  padding-top: 32px;
}
.hero .wrap {
  filter: drop-shadow(0 26px 32px rgba(8, 0, 0, 0.55));
}
.ticket {
  --stub: 300px;
  --notch: 15px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  overflow: hidden;
  border-radius: 18px;
  background: var(--crimson);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.hero-banner {
  min-width: 0;
  line-height: 0;
}
.hero-banner a {
  display: block;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 28px 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, #c21d26 0%, rgba(194, 29, 38, 0) 62%),
    linear-gradient(165deg, var(--crimson-hi) 0%, var(--crimson-lo) 100%);
}
.hero-cta::before {
  content: '';
  position: absolute;
  top: calc(var(--notch) + 10px);
  bottom: calc(var(--notch) + 10px);
  left: -1px;
  border-left: 2px dashed rgba(254, 243, 243, 0.5);
}
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.cta-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: inherit;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.cta-main .cta-face {
  color: #8b111a;
  background: var(--paper);
  box-shadow: 0 14px 26px -14px rgba(30, 0, 0, 0.9);
}
.cta-line .cta-face {
  color: #fff;
  border-color: rgba(255, 236, 236, 0.8);
  background: linear-gradient(180deg, rgba(255, 92, 98, 0.34) 0%, rgba(110, 6, 16, 0.3) 100%);
}
.cta:hover .cta-face {
  transform: translateY(-2px);
}
.cta-main:hover .cta-face {
  background: #fff;
}
.cta-line:hover .cta-face {
  border-color: #fff;
  background: linear-gradient(180deg, rgba(255, 110, 115, 0.5) 0%, rgba(140, 10, 22, 0.4) 100%);
}
.cta:active .cta-face {
  transform: translateY(0) scale(0.98);
}
/* Attention loop on both stub buttons: each one beats (scales up and back)
   while a blurred halo behind it swells and brightens, and a sheen crosses
   the face. The pair alternates half a beat apart. Transform and opacity
   only, so it runs on the compositor. Timings live in the Motion section. */
.cta::before {
  content: '';
  position: absolute;
  inset: -6px -8px;
  z-index: 0;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.6;
  pointer-events: none;
}
.cta-main::before {
  background: linear-gradient(90deg, #ff8a92 0%, #fff6f6 50%, #ff8a92 100%);
}
.cta-line::before {
  background: linear-gradient(90deg, #ff3542 0%, #ffa3a9 50%, #ff3542 100%);
}
.cta-face::after {
  content: '';
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: 0;
  width: 34%;
  transform: translateX(-260%) skewX(-20deg);
  pointer-events: none;
}
.cta-main .cta-face::after {
  background: linear-gradient(90deg, rgba(223, 42, 42, 0), rgba(223, 42, 42, 0.3), rgba(223, 42, 42, 0));
}
.cta-line .cta-face::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}
/* under the pointer or keyboard focus the loop holds and the halo goes full */
.cta:hover::before,
.cta:focus-visible::before {
  opacity: 1 !important;
}

/* ================================================================ Games */

.section-games {
  margin-top: 56px;
}
/* heading on the left, folder tabs on the right, both resting on the panel */
.lobby-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
}
.games-head h2 {
  padding-bottom: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 800;
  line-height: 1.3;
}
.gametype-tag {
  margin-left: auto;
  padding-inline: 18px;
}
.gametype-inner {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.gametype-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(30, 5, 6, 0.72);
  color: var(--blush);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.gametype-item:hover {
  background: rgba(57, 12, 14, 0.92);
  color: var(--paper);
}
/* the active tab is taller, panel-coloured and overlaps the panel's top
   border by a pixel so it reads as the front folder */
.gametype-item.active,
.gametype-item.active:hover {
  height: 50px;
  margin-bottom: -1px;
  border-color: var(--line-2);
  background: var(--panel);
  color: #fff;
  box-shadow: inset 0 3px 0 var(--scarlet);
}
.section-games .main-wrap {
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
}
.lottery-game-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
  list-style: none;
}
.lottery-game-list > li {
  min-width: 0;
}
.lottery-game-list li > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile);
  color: var(--blush);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.lottery-game-list .cover {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.lottery-game-list .cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lottery-game-list .cont h2 {
  padding-inline: 4px;
  color: inherit;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.lottery-game-list li > a:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 42, 42, 0.8);
  background: var(--tile-hot);
  color: #fff;
}

/* ============================================================== Article */

/* A full-bleed, opaque reading band: the artwork stops behind running text. */
.post {
  margin-top: 72px;
  padding: 72px 0 96px;
  border-top: 1px solid rgba(223, 42, 42, 0.42);
  background: #130304;
}
.post-inner {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.post-head {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 4px double var(--rule);
}
.post-title {
  max-width: 940px;
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.post .lead {
  max-width: 68ch;
  color: var(--paper);
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.8;
}
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  justify-content: space-between;
  align-items: start;
  column-gap: 56px;
}
.post-grid > .toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.post-body {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.post-body p {
  margin-bottom: 20px;
  color: var(--blush);
  font-size: 17px;
  line-height: 1.85;
}
/* section heads carry a ledger-style double rule instead of a top divider */
.post-body h2 {
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 4px double var(--rule);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 800;
  line-height: 1.38;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.post a.kw {
  color: var(--rose);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 153, 153, 0.45);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.post a.kw:hover {
  color: #fff;
  border-color: #fff;
}

/* table of contents */
.toc {
  padding: 22px 18px 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--band);
}
.toc .toc-head {
  margin: 0 4px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--rose);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.toc-list {
  display: grid;
  gap: 2px;
  list-style: none;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
}
.toc-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--blush);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.toc-list a::before {
  content: counter(toc);
  color: var(--scarlet-hi);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.toc-list a:hover {
  background: rgba(223, 42, 42, 0.13);
  color: #fff;
}

/* legal note */
.callout {
  margin: 26px 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(223, 42, 42, 0.5);
  border-radius: 14px;
  background: rgba(223, 42, 42, 0.09);
}
.callout .callout-head {
  margin-bottom: 6px;
  color: var(--rose);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.callout p:last-child {
  margin: 0;
  color: var(--paper);
}

/* ledger tables: crimson head row, alternating row shade, no row hairlines */
.table-scroll {
  margin: 6px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--band);
}
.post table {
  width: 100%;
  font-size: 15.5px;
}
.post thead th {
  padding: 13px 18px;
  background: var(--crimson);
  color: var(--paper);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.post tbody th,
.post tbody td {
  padding: 12px 18px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}
.post tbody tr:nth-child(even) {
  background: rgba(248, 153, 153, 0.05);
}
.post tbody th {
  width: 38%;
  color: var(--paper);
  font-weight: 600;
}
.post tbody td {
  color: var(--blush);
}

/* help list: two columns of short lines on wide screens */
.post .care-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 6px 0 22px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--band);
  list-style: none;
}
.care-list li {
  position: relative;
  padding-left: 26px;
  color: var(--blush);
  font-size: 16px;
  line-height: 1.7;
}
.care-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--scarlet);
  border-radius: 50%;
}

/* FAQ: separate panels, plus sign turns into a cross when open */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.faq details {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--band);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq details[open] {
  border-color: rgba(223, 42, 42, 0.6);
  background: #260708;
}
.faq summary {
  position: relative;
  display: block;
  padding: 17px 64px 17px 22px;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    linear-gradient(var(--scarlet-hi), var(--scarlet-hi)) center / 12px 2px no-repeat,
    linear-gradient(var(--scarlet-hi), var(--scarlet-hi)) center / 2px 12px no-repeat,
    rgba(223, 42, 42, 0.14);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary h3 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.faq summary:hover h3 {
  color: #fff;
}
.faq-body {
  padding: 0 22px 18px;
}
.faq-body p {
  margin: 0;
  color: var(--blush);
  font-size: 15.5px;
  line-height: 1.8;
}

/* =============================================================== Footer */

footer {
  background: #0f0202;
}
/* crimson band: brand block and payment logos side by side */
.footer-top {
  background:
    radial-gradient(80% 140% at 100% 0%, #b51b24 0%, rgba(181, 27, 36, 0) 58%),
    linear-gradient(135deg, #9a151d 0%, #6a0c14 100%);
}
.footer-top-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 40px 72px;
  padding-block: 44px;
}
.footer-logo {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}
.brand-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.age-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.age-note {
  color: var(--blush);
  font-size: 14px;
  font-weight: 500;
}
.footer-provider .footer-head {
  margin-bottom: 12px;
  color: var(--blush);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.payment-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.payment-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}
/* link columns */
.footer-cont {
  border-bottom: 1px solid var(--line);
}
.footer-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px 56px;
  padding-block: 52px 48px;
}
.footer-ref .footer-head {
  margin-bottom: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.footer-links a,
.footer-nav a {
  display: block;
  padding: 5px 0;
  color: var(--blush);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.footer-links a:hover,
.footer-nav a[href]:hover {
  color: #fff;
}
.footer-nav .nav {
  columns: 2;
  column-gap: 32px;
  list-style: none;
}
.footer-nav .nav > li {
  break-inside: avoid;
}
.footer-nav h3 {
  margin: 0;
  color: inherit;
  font: inherit;
}
/* provider fly-outs were hidden before and stay hidden */
.footer-nav .submenu {
  display: none;
}
/* licence and copyright share one bar */
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 48px;
  padding-block: 28px 36px;
}
.footer-license p {
  max-width: 74ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.licence-en {
  display: block;
  margin-top: 6px;
  color: #a98385;
  font-size: 12.5px;
}
.copy {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* =========================================================== Responsive */

@media (max-width: 1100px) {
  .ticket {
    --stub: 260px;
  }
  .hero-cta {
    padding: 22px 24px;
  }
  .lottery-game-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .post-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
    --header-h: 60px;
    --strip-h: 40px;
  }
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }
  /* the link strip sits above the logo row and scrolls away; the logo row
     with the two buttons is what stays pinned */
  .quick-nav {
    top: calc(var(--strip-h) * -1);
  }
  .main-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'nav nav'
      'logo actions';
    column-gap: 0;
    height: auto;
    padding-inline: 0;
  }
  .site-nav {
    justify-self: stretch;
    justify-content: space-around;
    height: var(--strip-h);
    margin: 0;
    padding-inline: 6px;
    background: rgba(30, 0, 4, 0.3);
    box-shadow: inset 0 -1px 0 rgba(20, 3, 3, 0.35);
  }
  .site-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  .site-nav a::after {
    left: 10px;
    right: 10px;
    bottom: 2px;
  }
  .logo {
    width: 150px;
    height: 34px;
    margin: 13px 0 13px var(--gutter);
    background-position: left center;
  }
  .header-actions {
    gap: 8px;
    padding-right: var(--gutter);
  }
  .btn {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  /* ticket turns vertical: banner on top, stub underneath */
  .hero {
    padding-top: 18px;
  }
  .ticket {
    --stub-h: 88px;
    --notch: 12px;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  /* crop to the centre of the artwork so the sign stays legible */
  .hero-banner img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
  }
  .hero-cta {
    flex-direction: row;
    align-items: center;
    height: var(--stub-h);
    padding: 0 16px;
    gap: 12px;
  }
  .hero-cta::before {
    top: -1px;
    bottom: auto;
    left: calc(var(--notch) + 8px);
    right: calc(var(--notch) + 8px);
    border-left: 0;
    border-top: 2px dashed rgba(254, 243, 243, 0.5);
  }
  .cta {
    flex: 1 1 0;
    min-width: 0;
  }
  .cta-face {
    height: 52px;
    padding: 0 12px;
    font-size: 17px;
  }
  .cta::before {
    inset: -4px -6px;
    filter: blur(10px);
  }

  .section-games {
    margin-top: 40px;
  }
  .lottery-game-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .post {
    margin-top: 52px;
    padding: 44px 0 64px;
  }
  .post-head {
    margin-bottom: 32px;
    padding-bottom: 26px;
  }
  .post-grid {
    display: block;
  }
  .post-grid > .toc {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 36px;
  }
  .post .care-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-body h2 {
    margin-top: 44px;
  }

  .footer-top-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 36px;
  }
  .footer-ref {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 32px 24px;
    padding-block: 40px;
  }
  .footer-nav {
    grid-column: 1 / -1;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* folder tabs no longer fit in one row: switch to a 3 x 2 grid of chips */
@media (max-width: 759px) {
  .lobby-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .games-head h2 {
    padding-bottom: 0;
  }
  .gametype-tag {
    margin-left: 0;
    padding-inline: 0;
  }
  .gametype-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .gametype-item,
  .gametype-item.active,
  .gametype-item.active:hover {
    height: 40px;
    margin-bottom: 0;
    padding: 0 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13.5px;
  }
  .gametype-item.active,
  .gametype-item.active:hover {
    border-color: var(--scarlet);
    background: var(--scarlet);
    color: #fff;
    box-shadow: none;
  }
}

@media (max-width: 599px) {
  .section-games .main-wrap {
    padding: 10px;
    border-radius: 14px;
  }
  .lottery-game-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .lottery-game-list li > a {
    gap: 7px;
    padding: 5px 5px 9px;
    border-radius: 10px;
  }
  .lottery-game-list .cover {
    border-radius: 6px;
  }
  .lottery-game-list .cont h2 {
    padding-inline: 2px;
    font-size: 12.5px;
  }
  .post-body p {
    font-size: 16.5px;
  }
  .toc {
    padding: 18px 14px 10px;
  }
  .payment-list {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .logo {
    width: 126px;
    height: 30px;
    margin-block: 15px;
  }
  .header-actions {
    gap: 6px;
  }
  .btn {
    padding: 0 11px;
    font-size: 13px;
  }
  .cta-face {
    font-size: 16px;
  }
  .footer-nav .nav {
    column-gap: 20px;
  }
}

/* touch screens have no hover; do not leave a tile lifted after a tap */
@media (hover: none) {
  .lottery-game-list li > a:hover {
    transform: none;
  }
}

/* =============================================================== Motion */

/* One entrance (the ticket) and one attention loop (the two stub buttons).
   Nothing else moves on its own. The beat is 0.9s, so it reads as lively
   rather than sleepy. */
@media (prefers-reduced-motion: no-preference) {
  .ticket {
    animation: ticket-in 0.7s var(--ease-out) both;
  }
  .cta {
    will-change: transform;
    animation: cta-beat 2s var(--ease-in-out) infinite;
  }
  .cta::before {
    animation: cta-glow 2s var(--ease-in-out) infinite;
  }
  .cta-face::after {
    animation: cta-sheen 1.8s ease-in-out infinite;
  }
  /* the second button peaks half a beat after the first */
  .cta-line,
  .cta-line::before {
    animation-delay: -1s;
  }
  .cta-line .cta-face::after {
    animation-delay: 0.9s;
  }
  /* a button should not keep moving once the pointer or focus is on it */
  .cta:hover,
  .cta:focus-visible,
  .cta:hover::before,
  .cta:focus-visible::before,
  .cta:hover .cta-face::after,
  .cta:focus-visible .cta-face::after {
    animation-play-state: paused;
  }
}
@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes cta-beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}
@keyframes cta-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96, 0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.06, 1.3);
  }
}
@keyframes cta-sheen {
  0% {
    transform: translateX(-260%) skewX(-20deg);
  }
  45%,
  100% {
    transform: translateX(420%) skewX(-20deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
