:root {
  --bg: #0a090a;
  --pink: #d63a64;
  --deep: #b02a52;
  --glow: #ff5c8a;
  --grey: #9a9498;
  --white: #ffffff;
  --card: #141214;
  --card-2: #19171a;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(214, 58, 100, .55);
  --disp: "Anton", "Bebas Neue", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 13px;
  --gap: 16px;
  --pad: 16px;
  --tabs-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
}
@supports (min-height: 100dvh) {
  html, body { min-height: 100dvh; }
}

html { background: var(--bg); }

body {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(214, 58, 100, .18), transparent 70%),
    radial-gradient(500px 400px at 95% 100%, rgba(176, 42, 82, .2), transparent 70%),
    var(--bg);
}

button, input { font: inherit; }
button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.no9-disp {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}
.kicker, .eyebrow {
  display: block;
  color: var(--glow);
  font: 700 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.app-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}
@supports (height: 100dvh) {
  .app-shell { height: 100dvh; min-height: 100dvh; }
}
.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle, var(--pink) 1.3px, transparent 1.8px) 0 0 / 9px 9px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 70%);
  mask-image: radial-gradient(circle at 0 0, #000, transparent 70%);
}
.app-shell::before { top: 0; right: 0; transform: scaleX(-1); }
.app-shell::after { bottom: 0; left: 0; transform: scaleY(-1); }

@media (min-width: 520px) {
  body { display: grid; place-items: center; padding: 24px; }
  .app-shell {
    height: min(860px, calc(100dvh - 48px));
    min-height: 0;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 10px #111, 0 0 0 11px rgba(255, 255, 255, .08), 0 40px 120px rgba(214, 58, 100, .25);
  }
}

/* Home Screen (standalone) can report a dynamic viewport shorter than the
   actual screen, which leaves a band under the tab bar. Pin the shell to the
   full screen instead so the tabs sit at the very bottom. */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  body { display: block; padding: 0; }
  .app-shell {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* A backdrop-filter layer still softens text on iOS Home Screen mode. Keep
     the bar solid there so the title renders at full sharpness. */
  .no9-top::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 9, 10, .96);
  }
}

.no9-top {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}
/* Keep the blur on a background layer only. Applying backdrop-filter to the
   bar itself smears the title text on iOS, so the text stays on a clean layer. */
.no9-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 9, 10, .85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.no9-top__badge { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; }
.no9-top__name {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  filter: none;
  text-shadow: none;
  transform: none;
  -webkit-font-smoothing: antialiased;
}
.no9-top__sub {
  display: block;
  margin-top: 2px;
  color: var(--grey);
  font: 500 12px/1.2 var(--sans);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.no9-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(214, 58, 100, .5);
  border-radius: 99px;
  color: var(--white);
  font: 700 11px/1 var(--sans);
  letter-spacing: .12em;
}
.no9-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.no9-live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glow);
  animation: no9-ping 1.6s var(--ease) infinite;
}
@keyframes no9-ping {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(3); opacity: 0; }
}

#app {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--pad) var(--pad) calc(var(--tabs-h) + max(8px, env(safe-area-inset-bottom)));
  scrollbar-width: none;
}
#app::-webkit-scrollbar { display: none; }
body.no9-winner-open #app { overflow-y: hidden; }
#app > * + * { margin-top: var(--gap); }
/* A hidden slot (e.g. the install banner) must not add a gap before the first card. */
#app > [hidden] + * { margin-top: 0; }

#app.is-leaving { opacity: 0; transition: opacity .18s var(--ease), transform .22s var(--ease); }
#app.is-leaving.to-left { transform: translateX(-18px); }
#app.is-leaving.to-right { transform: translateX(18px); }
#app.is-entering.from-left { animation: no9-view-left .34s var(--ease) both; }
#app.is-entering.from-right { animation: no9-view-right .34s var(--ease) both; }
@keyframes no9-view-left {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}
@keyframes no9-view-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.no9-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  flex: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(10, 9, 10, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.no9-tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  color: var(--grey);
  font: 600 12px/1 var(--sans);
  transition: color .2s;
}
.no9-tabs svg { width: 24px; height: 24px; transition: transform .3s var(--bounce); }
.no9-tabs button::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.no9-tabs button.is-active { color: var(--white); }
.no9-tabs button.is-active svg { color: var(--pink); transform: translateY(-2px) scale(1.1); }
.no9-tabs button.is-active::before { transform: scaleX(1); }
.no9-tabs button.is-bump svg { animation: no9-pop .4s var(--bounce); }
.no9-tabs button:focus-visible,
.no9-foot__links button:focus-visible,
.no9-foot__links a:focus-visible,
.text-button:focus-visible,
.no9-btn:focus-visible,
.no9-bell:focus-visible,
.draw-night-card:focus-visible,
.game-card:focus-visible,
.champion-card:focus-visible,
.no9-wa:focus-visible,
.no9-mycard__share:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* Keep the framed desktop preview exactly as before: the tabs sit inside the
   rounded app shell instead of pinning to the browser window. */
@media (min-width: 520px) {
  .no9-tabs {
    position: sticky;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    margin: 0;
  }
  #app { padding-bottom: 28px; }
}

@keyframes no9-pop {
  0% { transform: scale(.6); }
  100% { transform: scale(1); }
}

.no9-card,
.hero-card,
.draw-card,
.stats-row article,
.leader-stack article,
.history-card,
.player-card,
.personal-card,
.line-summary,
.archive-game,
.rules-grid article,
.audit-note,
.share-strip,
.empty-state,
.card-loading,
.card-error {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.hero-card {
  overflow: hidden;
  padding: 22px 18px 20px;
  border-color: var(--line-strong);
  background: linear-gradient(160deg, #2a1119, #160d11 60%);
}
.hero-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 220px;
  height: 120px;
  background: var(--pink);
  opacity: .25;
  transform: rotate(-18deg);
  clip-path: polygon(0 40%, 30% 20%, 60% 18%, 100% 0, 96% 30%, 70% 50%, 40% 70%, 4% 90%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  right: -90px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(70px);
  opacity: .24;
}
.hero-copy, .pot-split { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 8px 0 2px;
  font: 400 clamp(58px, 16vw, 86px)/.92 var(--disp);
  font-style: italic;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 92, 138, .45);
}
.hero-copy p { margin: 8px 0 0; color: var(--grey); font-size: 14px; }
.pot-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.pot-split div { display: grid; gap: 4px; padding: 12px; background: rgba(10, 9, 10, .6); border: 1px solid var(--line); border-radius: var(--r-sm); }
.pot-split span { color: var(--grey); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.pot-split strong { font: 400 28px/1 var(--disp); font-style: italic; color: var(--white); }
.pot-split div:first-child strong { color: var(--glow); }

.winner-announcement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-xl);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 30%), linear-gradient(145deg, var(--pink), var(--deep) 58%, #650525);
  box-shadow: 0 26px 80px rgba(214, 58, 100, .32);
}
.winner-burst { position: absolute; z-index: -1; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .18); filter: blur(60px); }
.winner-burst-one { top: -90px; left: -65px; }
.winner-burst-two { right: -80px; bottom: 40px; background: rgba(37, 0, 14, .55); }
.winner-trophy {
  width: 64px;
  height: 64px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: var(--white);
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 14px 32px rgba(59, 0, 22, .35);
}
.winner-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 99px;
  color: var(--white);
  background: rgba(35, 0, 13, .18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.winner-announcement h1 {
  margin: 16px 0 4px;
  font: 400 clamp(44px, 14vw, 78px)/.88 var(--disp);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.winner-name { margin: 16px 0 0; font-size: clamp(31px, 9vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.winner-subtitle { margin: 9px auto 0; color: #ffe7f0; font-size: 13px; line-height: 1.5; }
.winning-lines { display: grid; gap: 9px; margin: 24px auto 0; width: min(100%, 600px); }
.winning-lines article { padding: 15px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-md); background: rgba(30, 0, 11, .2); }
.winning-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; text-align: left; }
.winning-line-heading span { font-size: 13px; font-weight: 900; }
.winning-line-heading strong { color: #ffd5e4; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.winner-prize-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px auto 0; width: min(100%, 600px); }
.winner-prize-panel div { display: grid; gap: 5px; padding: 15px 12px; border-radius: var(--r-md); background: rgba(30, 0, 11, .28); border: 1px solid rgba(255, 255, 255, .2); }
.winner-prize-panel span { color: #ffd5e4; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.winner-prize-panel strong { font: 400 clamp(22px, 6vw, 32px)/1 var(--disp); font-style: italic; }
.game-stop { display: grid; gap: 3px; margin: 12px auto 0; width: min(100%, 600px); padding: 13px 15px; border-radius: var(--r-sm); color: #f8dce6; background: rgba(29, 0, 11, .42); border: 1px solid rgba(255, 255, 255, .18); }
.game-stop strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.game-stop span { font-size: 10px; line-height: 1.4; }

.sync-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 3px; color: var(--grey); font-size: 10px; }
.sync-note i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--glow); }
.sync-note span { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.sync-note small { flex-basis: 100%; padding-left: 15px; color: #746d71; font-size: 10px; }
.sync-note.sheet-connected i { background: var(--glow); }

.section-block { position: relative; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-heading h2 { margin: 4px 0 0; font: 400 28px/1 var(--disp); font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.text-button { min-height: 40px; padding: 0 4px; color: var(--glow); font: 700 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.status-tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--grey); font: 700 11px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; }
.status-tag.complete { color: var(--white); background: var(--pink); border-color: var(--pink); }
.status-tag.pending { color: var(--glow); border-color: rgba(214, 58, 100, .5); }

.draw-card { padding: 16px; }
.draw-card p { margin: 12px 0 0; color: var(--grey); font-size: 13px; line-height: 1.45; }
.draw-balls, .history-balls, .mini-balls, .my-balls, .archive-balls, .winner-balls, .winning-lines .draw-balls {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.4vw, 8px);
}
.draw-balls { justify-content: space-between; }
.draw-balls .number-ball { --s: clamp(34px, calc((100vw - 98px) / 6), 44px); }
.history-balls, .archive-balls { gap: 4px; }
.number-ball {
  --s: 44px;
  --disc: 75%;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #0a090a;
  background-color: transparent;
  background-image:
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football.svg");
  background-position: center, center;
  background-size: var(--disc) var(--disc), 100% 100%;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .42);
  font: 900 calc(var(--s) * .47)/1 var(--sans);
  font-style: normal;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -.02em;
  text-shadow: none;
}
.number-ball.is-matched {
  color: #0a090a;
  background-image:
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football-hit.svg");
  box-shadow: 0 5px 14px rgba(0, 0, 0, .45);
}
.number-ball.is-muted { opacity: .35; }
.no9-balls--sm .number-ball,
.history-balls .number-ball,
.mini-balls .number-ball,
.archive-balls .number-ball {
  background-image:
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football-simple.svg");
}
.no9-balls--sm .number-ball.is-matched,
.history-balls .number-ball.is-matched,
.mini-balls .number-ball.is-matched,
.archive-balls .number-ball.is-matched {
  background-image:
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football-simple-hit.svg");
}
.no9-balls--sm .number-ball,
.no9-winner-line .number-ball { font-size: calc(var(--s) * .47); }
.history-balls .number-ball { --s: clamp(34px, calc((88vw - 112px) / 6), 44px); }
.mini-balls .number-ball { --s: 34px; }
.archive-balls .number-ball { --s: clamp(34px, calc((100vw - 140px) / 6), 44px); }
.my-balls .number-ball { --s: 46px; }
.winner-balls .number-ball, .winning-lines .number-ball { --s: 40px; }

.past-draws-section { position: relative; }
.draw-history { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.draw-history summary,
.archive-draws summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.draw-history summary::-webkit-details-marker,
.archive-draws summary::-webkit-details-marker { display: none; }
.draw-history summary i, .archive-draws summary i { color: var(--grey); font-style: normal; transition: transform .3s var(--ease); }
.draw-history[open] summary i, .archive-draws[open] summary i { transform: rotate(180deg); }
.history-list, .archive-draw-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.history-card, .archive-draw-list article { padding: 12px; background: #0a090a; border: 1px solid var(--line); border-radius: var(--r-md); }
.history-card-heading, .archive-draw-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.history-card-heading strong, .archive-draw-heading strong { font: 400 22px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.history-card-heading span, .archive-draw-heading span { color: var(--grey); font-size: 12px; text-align: right; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats-row article { padding: 14px 8px; text-align: center; }
.stats-row span { display: block; color: var(--grey); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stats-row strong { display: block; margin-top: 6px; font: 400 36px/1 var(--disp); font-style: italic; font-variant-numeric: tabular-nums; }
.stats-row small { display: block; margin-top: 4px; color: var(--grey); font-size: 10px; }

.leader-stack { display: grid; gap: 8px; }
.leader-stack article {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #1b191b;
  border: 1px solid transparent;
  border-radius: var(--r-md);
}
.leader-stack article > span { font: 400 22px/1 var(--disp); font-style: italic; color: var(--grey); }
.leader-stack article strong { font-weight: 700; }
.leader-stack article small { display: block; color: var(--grey); font-size: 12px; }
.leader-stack article b { font: 400 26px/1 var(--disp); font-style: italic; }
.leader-stack article.winner-row { border-color: rgba(214, 58, 100, .6); background: #2a1119; box-shadow: 0 0 22px rgba(214, 58, 100, .18); }

.empty-state { display: flex; align-items: center; gap: 14px; padding: 18px; }
.empty-icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pink); font: 400 24px/1 var(--disp); font-style: italic; }
.empty-state strong { display: block; }
.empty-state p { margin: 3px 0 0; color: var(--grey); font-size: 13px; }

.share-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; }
.share-strip h2 { margin: 5px 0 0; font: 400 26px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.share-strip p { margin: 6px 0 0; color: var(--grey); font-size: 13px; }
.share-strip button,
.no9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--white);
  font: 700 14px/1 var(--sans);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(214, 58, 100, .35);
  transition: transform .15s var(--ease);
}
.share-strip button:active, .no9-btn:active { transform: scale(.96); }
.no9-btn--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }

.page-title { margin: 2px 0 0; }
.page-title h1 { margin: 5px 0 0; font: 400 clamp(38px, 11vw, 48px)/.94 var(--disp); font-style: italic; text-transform: uppercase; }
.page-title p { margin: 8px 0 0; color: var(--grey); font-size: 14px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.search-box > span { color: var(--grey); font-size: 18px; }
.search-box input { flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; color: var(--white); font-size: 16px; outline: none; }
.search-box input::placeholder { color: var(--grey); }
.search-box:focus-within { border-color: var(--pink); }
.search-box button { width: 36px; height: 36px; border-radius: 50%; color: var(--grey); font-size: 22px; }
.result-count { color: var(--grey); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

.player-list { display: grid; gap: 8px; }
.player-card { padding: 14px; border-radius: var(--r-md); }
.player-main { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; }
.rank { font: 400 22px/1 var(--disp); font-style: italic; color: var(--grey); }
.player-details strong { font-size: 15px; }
.player-details small { display: block; margin-top: 2px; color: var(--grey); font-size: 11px; letter-spacing: .04em; }
.progress-count { text-align: right; }
.progress-count strong { display: block; font: 400 26px/1 var(--disp); font-style: italic; }
.progress-count span { display: block; margin-top: 2px; color: var(--grey); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.mini-balls { margin-top: 10px; gap: 6px; }
.numbers-missing { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); color: var(--grey); font-size: 12px; }

.my-card-view { display: block; }
.my-card-view > * + * { margin-top: var(--gap); }
.my-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.my-card-heading h1 { margin: 5px 0 0; font: 400 42px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.my-card-heading button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--white); font: 700 13px/1 var(--sans); }
.line-summary { padding: 14px 16px; }
.line-summary span { display: block; color: var(--grey); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.line-summary strong { display: block; margin-top: 5px; font-size: 14px; }
.personal-card-stack { display: grid; gap: 12px; }
.personal-card { padding: 16px; }
.line-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.line-heading strong { font: 400 24px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.line-heading span { color: var(--grey); font-size: 11px; letter-spacing: .06em; }
.card-progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card-progress-head span { display: block; color: var(--grey); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.card-progress-head strong { display: block; margin-top: 3px; font-size: 14px; }
.card-progress-head b { font: 400 30px/1 var(--disp); font-style: italic; color: var(--white); }
.progress-track { height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--deep), var(--glow)); transform-origin: left; transition: transform .8s var(--ease); }
.progress-0 i { width: 0; }
.progress-1 i { width: 16.6667%; }
.progress-2 i { width: 33.3333%; }
.progress-3 i { width: 50%; }
.progress-4 i { width: 66.6667%; }
.progress-5 i { width: 83.3333%; }
.progress-6 i { width: 100%; }
.personal-numbers { margin-top: 16px; }
.field-title { display: block; color: var(--grey); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.my-balls { margin-top: 10px; }
.match-key { display: flex; gap: 14px; margin-top: 12px; color: var(--grey); font-size: 11px; }
.match-key span { display: inline-flex; align-items: center; gap: 6px; }
.match-key i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.match-key i.matched-dot { background: var(--pink); box-shadow: 0 0 8px var(--glow); }
.matched-summary { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.matched-summary span { display: block; color: var(--grey); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.matched-summary strong { display: block; margin-top: 4px; font-size: 14px; }
.privacy-note { margin: 0; color: var(--grey); font-size: 12px; line-height: 1.5; text-align: center; }
.card-picker-list { display: grid; gap: 8px; margin-top: var(--gap); }
.card-picker-list button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.card-picker-list strong { font-size: 15px; }
.card-picker-list small { display: block; margin-top: 2px; color: var(--grey); font-size: 12px; }
.card-picker-list button > span:last-child { color: var(--glow); font-weight: 700; font-size: 13px; }
.card-picker-list button:disabled { opacity: .6; }
.card-picker-list button.is-on { border-color: var(--pink); }
.no9-card-picker { display: grid; gap: var(--gap); }

.card-loading, .card-error { padding: 26px 20px; text-align: center; }
.card-loading strong, .card-error strong { font: 400 26px/1.05 var(--disp); font-style: italic; text-transform: uppercase; }
.card-loading p, .card-error p { margin: 8px 0 0; color: var(--grey); font-size: 13px; }
.card-error button { margin-top: 16px; min-height: 44px; padding: 0 20px; border-radius: 99px; background: var(--pink); color: var(--white); font-weight: 700; }

.archive-stack { display: grid; gap: var(--gap); }
.archive-game { padding: 18px; }
.archive-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.archive-hero > div > span { color: var(--glow); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.archive-hero h2 { margin: 5px 0 0; font: 400 28px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.archive-hero p { margin: 6px 0 0; color: var(--grey); font-size: 13px; }
.archive-total { text-align: right; flex: none; }
.archive-total span { display: block; color: var(--grey); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.archive-total strong { display: block; margin-top: 4px; font: 400 32px/1 var(--disp); font-style: italic; }
.archive-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.archive-split div { padding: 12px 8px; border-radius: var(--r-sm); background: rgba(10, 9, 10, .6); border: 1px solid var(--line); text-align: center; }
.archive-split span { display: block; color: var(--grey); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.archive-split strong { display: block; margin-top: 5px; font: 400 22px/1 var(--disp); font-style: italic; }
.archive-winners { margin-top: 18px; }
.archive-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.archive-section-heading > div > span { color: var(--glow); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.archive-section-heading h3 { margin: 3px 0 0; font: 400 24px/1 var(--disp); font-style: italic; text-transform: uppercase; }
.archive-section-heading > b { color: var(--grey); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.archive-winner-list { display: grid; gap: 8px; }
.archive-winner-list article { padding: 12px; border-radius: var(--r-md); background: #0a090a; border: 1px solid var(--line); }
.archive-winner-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.archive-winner-list strong { font-size: 14px; }
.archive-winner-list span { color: var(--glow); font-weight: 700; font-size: 12px; }
.archive-draws { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.archive-section-heading + .archive-draws { margin-top: 0; }
.archive-back { display: flex; justify-content: center; }

.rules-grid { display: grid; gap: 10px; }
.rules-grid article { display: flex; align-items: flex-start; gap: 14px; padding: 15px; border-radius: var(--r-md); }
.rules-grid article > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pink); font: 400 18px/1 var(--disp); font-style: italic; }
.rules-grid h2 { margin: 0; font: 400 20px/1.05 var(--disp); font-style: italic; text-transform: uppercase; }
.rules-grid p { margin: 5px 0 0; color: var(--grey); font-size: 13px; line-height: 1.45; }
.audit-note { padding: 16px; border-color: var(--line-strong); background: linear-gradient(160deg, rgba(214, 58, 100, .14), rgba(10, 9, 10, 0) 65%); }
.audit-note strong { font: 400 22px/1.05 var(--disp); font-style: italic; text-transform: uppercase; }
.audit-note p { margin: 6px 0 0; color: var(--grey); font-size: 13px; line-height: 1.45; }
.rules-archive { display: flex; justify-content: center; }
.rules-archive .no9-btn { min-width: 220px; }

.no9-foot { padding: 22px 0 6px; text-align: center; color: var(--grey); font-size: 12px; }
.no9-foot img { display: block; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; opacity: .9; }
.no9-foot p { margin: 0; }
.no9-foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 6px; }
.no9-foot__links button,
.no9-foot__links a { min-height: 44px; padding: 0 10px; color: var(--white); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.no9-foot__links button:hover,
.no9-foot__links a:hover { color: var(--glow); }

@media (max-width: 380px) {
  .stats-row strong { font-size: 30px; }
  .share-strip { flex-direction: column; align-items: flex-start; }
  .share-strip button { width: 100%; }
  .no9-tabs { padding-left: 4px; padding-right: 4px; }
  .no9-tabs button { font-size: 10px; }
  .no9-tabs svg { width: 22px; height: 22px; }
}

@media (max-width: 360px) {
  .history-week { flex-basis: 100%; padding-left: 8px; padding-right: 8px; }
  .history-week .history-balls { gap: 4px; }
  .archive-balls { gap: 3px; }
  .archive-draw-list { padding-left: 0; padding-right: 0; }
}

@media (max-width: 420px) {
  .archive-hero { display: block; }
  .archive-total { margin-top: 12px; text-align: left; }
}

.home-hero { padding: 22px 18px 20px; }
.home-hero .hero-copy h1 { margin: 8px 0 0; font-size: clamp(48px, 15vw, 64px); }
.home-hero .hero-copy h1 span { color: var(--pink); }
.hero-when { margin: 8px 0 0; color: var(--white); font-size: 15px; font-weight: 600; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.countdown div { padding: 10px 4px 8px; text-align: center; background: rgba(10, 9, 10, .6); border: 1px solid var(--line); border-radius: 14px; }
.countdown b { display: block; font: 400 34px/1 var(--disp); font-style: italic; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .1em; }
.countdown b.is-tick { animation: no9-tick .35s var(--ease); }
@keyframes no9-tick {
  from { transform: translateY(-6px); opacity: .3; }
  to { transform: none; opacity: 1; }
}

.home-card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pot-figure { margin: 6px 0 0; color: var(--white); font: 400 clamp(62px, 20vw, 84px)/.92 var(--disp); font-style: italic; letter-spacing: -.02em; text-shadow: 0 0 30px rgba(255, 92, 138, .45); }
.split-bar { display: flex; gap: 3px; height: 14px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.split-bar i { display: block; height: 100%; transform: scaleX(0); }
.split-winner { flex: 0 0 var(--winner, 50%); transform-origin: left; background: linear-gradient(90deg, var(--deep), var(--glow)); transition: transform 1.2s var(--ease) .2s; }
.split-team { flex: 0 0 var(--team, 50%); transform-origin: right; background: var(--white); transition: transform 1.2s var(--ease) .2s; }
.home-card.is-in .split-bar i { transform: none; }
.split-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--grey); font-size: 13px; }
.split-legend b { display: block; font: 400 26px/1 var(--disp); font-style: italic; color: var(--white); }
.split-legend div:first-child b { color: var(--glow); }
.split-legend div:last-child { text-align: right; }

.home-h { margin: 4px 0 0; font: 400 30px/1 var(--disp); font-style: italic; letter-spacing: -.01em; text-transform: uppercase; }
.draw-roll { margin-top: 16px; }
.draw-roll .number-ball { opacity: 0; transform: translateX(-140px); }
.draw-roll .number-ball:nth-child(1) { --d: .2s; }
.draw-roll .number-ball:nth-child(2) { --d: .34s; }
.draw-roll .number-ball:nth-child(3) { --d: .48s; }
.draw-roll .number-ball:nth-child(4) { --d: .62s; }
.draw-roll .number-ball:nth-child(5) { --d: .76s; }
.draw-roll .number-ball:nth-child(6) { --d: .9s; }
.draw-roll.is-in .number-ball { animation: no9-roll .8s var(--bounce) forwards; animation-delay: var(--d, 0s); }
@keyframes no9-roll {
  0% { opacity: 0; transform: translateX(-140px); }
  60% { opacity: 1; transform: translateX(6px); }
  100% { opacity: 1; transform: none; }
}
.home-note { margin: 12px 0 0; color: var(--grey); font-size: 13px; }
.home-fine { margin: 10px 0 0; color: var(--grey); font-size: 12px; }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-stats article { padding: 14px 8px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.home-stats strong { display: block; font: 400 40px/1 var(--disp); font-style: italic; font-variant-numeric: tabular-nums; }
.home-stats span { display: block; margin-top: 6px; color: var(--grey); font-size: 12px; line-height: 1.25; }

.leader-card .leader-stack { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.leader-row { --w: 0; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: 16px; background: #1b191b; }
.leader-row.is-close { border-color: rgba(214, 58, 100, .6); background: #2a1119; box-shadow: 0 0 22px rgba(214, 58, 100, .18); }
.leader-row.is-winner { border-color: var(--line-strong); background: radial-gradient(circle at 20% 0%, rgba(214, 58, 100, .35), #2a1119 70%); box-shadow: 0 0 28px rgba(255, 92, 138, .3); }
.leader-pos { font: 400 22px/1 var(--disp); font-style: italic; color: var(--grey); }
.leader-row.is-close .leader-pos, .leader-row.is-winner .leader-pos { color: var(--white); }
.leader-main { min-width: 0; }
.leader-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-weight: 700; }
.away-tag { padding: 4px 8px; border-radius: 99px; background: var(--pink); color: var(--white); font: 700 11px/1 var(--sans); letter-spacing: .08em; animation: no9-pulse 1.4s ease-in-out infinite; }
.winner-tag { padding: 4px 8px; border-radius: 99px; background: var(--white); color: var(--pink); font: 700 11px/1 var(--sans); letter-spacing: .08em; }
@keyframes no9-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .8; }
}
.leader-bar { height: 8px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.leader-bar i { display: block; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--deep), var(--glow)); transition: transform 1s var(--ease); }
.leader-row:not(.is-close):not(.is-winner) .leader-bar i { background: var(--white); }
.leader-row.is-winner .leader-bar i { background: var(--glow); }
.leader-card.is-in .leader-bar i { transform: scaleX(var(--w, 0)); }
.leader-row:nth-child(1) .leader-bar i { transition-delay: .1s; }
.leader-row:nth-child(2) .leader-bar i { transition-delay: .19s; }
.leader-row:nth-child(3) .leader-bar i { transition-delay: .28s; }
.leader-row:nth-child(4) .leader-bar i { transition-delay: .37s; }
.leader-row:nth-child(5) .leader-bar i { transition-delay: .46s; }
.leader-row:nth-child(6) .leader-bar i { transition-delay: .55s; }
.leader-score { font: 400 26px/1 var(--disp); font-style: italic; }
.leader-score small { font-size: 16px; color: var(--grey); }
.leader-row.is-close .leader-score small, .leader-row.is-winner .leader-score small { color: var(--white); }

.history-carousel { display: flex; gap: 10px; margin: 14px -18px 0; padding: 0 18px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.history-carousel::-webkit-scrollbar { display: none; }
.history-week { flex: 0 0 88%; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #0a090a; scroll-snap-align: center; }
.history-week:first-child { border-color: var(--line-strong); }
.history-week h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 22px; }
.history-week h3 small { color: var(--grey); font: 500 13px/1 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none; }
.history-week .history-balls { justify-content: flex-start; gap: 5px; margin-top: 12px; }
.history-week .number-ball { --s: clamp(34px, calc((88vw - 112px) / 6), 44px); }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: transform .3s var(--ease), background .3s; }
.carousel-dots i.is-on { background: var(--pink); transform: scaleX(2.2); }

#app.is-static .draw-roll .number-ball { animation: none !important; opacity: 1; transform: none; }
#app.is-static .split-bar i,
#app.is-static .leader-bar i { transition: none !important; }

@media (max-width: 380px) {
  .home-stats strong { font-size: 32px; }
  .countdown b { font-size: 30px; }
}

/* ---------- redesigned card, players, rules, winner ---------- */

.search-box svg { width: 20px; height: 20px; flex: none; color: var(--grey); }
.search-box button { flex: none; }

.no9-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.no9-suggest button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--white);
  font: 600 13px/1 var(--sans);
}
.no9-suggest button.is-on { background: var(--pink); border-color: var(--pink); }
.no9-muted { margin: 0; color: var(--grey); font-size: 13px; }

.no9-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--white);
  font: 700 12px/1 var(--sans);
  letter-spacing: .03em;
  white-space: nowrap;
}
.no9-chip--pink { background: var(--pink); border-color: var(--pink); }

.no9-title-pink { color: var(--pink); }

.no9-banner {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 8px 34px 9px;
  background: var(--pink);
  color: var(--bg);
  font-size: 24px;
  text-align: center;
  transform: rotate(-2deg);
  clip-path: polygon(3% 8%, 12% 0, 40% 6%, 70% 0, 97% 4%, 100% 40%, 96% 62%, 100% 100%, 70% 92%, 40% 100%, 8% 94%, 0 100%, 4% 60%, 0 30%);
}

.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title-row h2 { margin: 5px 0 0; font: 400 clamp(34px, 10vw, 46px)/1 var(--disp); font-style: italic; text-transform: uppercase; }
.no9-mycard { overflow: hidden; padding: 18px; border-color: var(--line-strong); background: linear-gradient(160deg, #2a1119, #160d11 60%); }
.line-label { margin: 8px 0 0; color: var(--grey); font-size: 11px; letter-spacing: .06em; }
.card-progress { margin: 16px 0 0; font-size: 30px; }
.card-progress span { color: var(--grey); }

.no9-flip-balls { --s: clamp(34px, calc((100vw - 98px) / 6), 46px); display: flex; flex-wrap: nowrap; justify-content: space-between; gap: clamp(4px, 1.4vw, 8px); margin-top: 16px; }
.no9-flip-balls .number-ball { --s: inherit; }
.ball-flip { display: inline-block; width: var(--s, 48px); height: var(--s, 48px); perspective: 600px; }
.ball-face { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--bounce); }
.ball-front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ball-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ball-stamp {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink);
  font: 900 13px/1 var(--sans);
  transform: rotateY(180deg) scale(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.no9-mycard.is-go .ball-flip.is-hit .ball-face { transform: rotateY(180deg); }
.no9-mycard.is-go .ball-flip.is-hit .ball-stamp { animation: no9-stamp .5s var(--bounce) forwards; animation-delay: .9s; }
.no9-mycard .ball-flip:nth-child(1) .ball-face { transition-delay: .3s; }
.no9-mycard .ball-flip:nth-child(2) .ball-face { transition-delay: .48s; }
.no9-mycard .ball-flip:nth-child(3) .ball-face { transition-delay: .66s; }
.no9-mycard .ball-flip:nth-child(4) .ball-face { transition-delay: .84s; }
.no9-mycard .ball-flip:nth-child(5) .ball-face { transition-delay: 1.02s; }
.no9-mycard .ball-flip:nth-child(6) .ball-face { transition-delay: 1.2s; }
.no9-mycard .ball-flip:nth-child(1) .ball-stamp { animation-delay: .9s; }
.no9-mycard .ball-flip:nth-child(2) .ball-stamp { animation-delay: 1.08s; }
.no9-mycard .ball-flip:nth-child(3) .ball-stamp { animation-delay: 1.26s; }
.no9-mycard .ball-flip:nth-child(4) .ball-stamp { animation-delay: 1.44s; }
.no9-mycard .ball-flip:nth-child(5) .ball-stamp { animation-delay: 1.62s; }
.no9-mycard .ball-flip:nth-child(6) .ball-stamp { animation-delay: 1.8s; }
@keyframes no9-stamp {
  from { transform: rotateY(180deg) scale(2.4); opacity: 0; }
  to { transform: rotateY(180deg) scale(1); opacity: 1; }
}

.card-timeline { margin-top: 20px; }
.card-timeline h3 { margin: 4px 0 0; font-size: 24px; }
.no9-timeline { position: relative; margin: 14px 0 0; padding: 0; list-style: none; }
.no9-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.no9-timeline li { position: relative; padding: 0 0 14px 28px; }
.no9-timeline li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border: 2px solid var(--grey); border-radius: 50%; background: var(--bg); }
.no9-timeline li.is-hit::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px var(--glow); }
.no9-timeline li.is-off { opacity: .5; }
.no9-timeline b { font-weight: 700; }
.no9-timeline small { margin-left: 6px; color: var(--grey); font-size: 13px; }
.no9-timeline .no9-balls { margin-top: 6px; }

.no9-balls { display: flex; flex-wrap: wrap; gap: 8px; }
.no9-balls--sm { gap: clamp(3px, 1.2vw, 5px); justify-content: flex-start; flex-wrap: nowrap; }
.no9-balls--sm .number-ball { --s: clamp(34px, calc((100vw - 112px) / 6), 40px); }

.no9-players { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.no9-player { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.no9-player h3 { margin: 0; font: 700 15px/1.2 var(--sans); }
.no9-player h3 small { margin-left: 4px; color: var(--grey); font-size: 12px; font-weight: 500; }
.no9-player .no9-balls { grid-column: 1 / -1; }
.no9-player .no9-chip { justify-self: end; }
.no9-empty { padding: 20px; color: var(--grey); text-align: center; list-style: none; }
.no9-stagger.is-go .no9-player:nth-child(-n+12) { animation: no9-up .5s var(--ease) both; }
.no9-stagger.is-go .no9-player:nth-child(1) { animation-delay: .05s; }
.no9-stagger.is-go .no9-player:nth-child(2) { animation-delay: .1s; }
.no9-stagger.is-go .no9-player:nth-child(3) { animation-delay: .15s; }
.no9-stagger.is-go .no9-player:nth-child(4) { animation-delay: .2s; }
.no9-stagger.is-go .no9-player:nth-child(5) { animation-delay: .25s; }
.no9-stagger.is-go .no9-player:nth-child(6) { animation-delay: .3s; }
.no9-stagger.is-go .no9-player:nth-child(7) { animation-delay: .35s; }
.no9-stagger.is-go .no9-player:nth-child(8) { animation-delay: .4s; }
.no9-stagger.is-go .no9-player:nth-child(9) { animation-delay: .45s; }
.no9-stagger.is-go .no9-player:nth-child(10) { animation-delay: .5s; }
.no9-stagger.is-go .no9-player:nth-child(11) { animation-delay: .55s; }
.no9-stagger.is-go .no9-player:nth-child(12) { animation-delay: .6s; }
@keyframes no9-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.rules-view > * + * { margin-top: 16px; }
.no9-rules-hero { padding: 22px 0 6px; text-align: center; }
.no9-rules-hero h1 { margin: 6px 0 0; font-size: clamp(52px, 16vw, 58px); }
.no9-rules-hero h1 span { display: block; color: var(--pink); font-size: clamp(64px, 20vw, 76px); }
.no9-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; margin-top: 20px; }
.no9-step { text-align: center; }
.no9-step__ico { position: relative; width: 92px; height: 92px; margin: 0 auto 10px; display: grid; place-items: center; border: 2px solid var(--pink); border-radius: 50%; }
.no9-step__ico svg { width: 44px; height: 44px; }
.no9-step__ico b { position: absolute; left: -2px; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); font: 400 16px/1 var(--disp); font-style: italic; }
.no9-step h3 { margin: 0; font-size: 20px; }
.no9-step p { margin: 4px 0 0; color: var(--grey); font-size: 13px; }
.no9-step em { display: block; color: var(--glow); font-style: italic; font-weight: 700; }
.no9-fifty { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 18px; border: 2px solid var(--pink); border-radius: var(--r-lg); background: var(--card); text-align: center; }
.no9-fifty b { display: block; color: var(--pink); font: 400 46px/1 var(--disp); font-style: italic; }
.no9-fifty h3 { margin: 4px 0 0; font: 400 17px/1.05 var(--disp); font-style: italic; text-transform: uppercase; }
.no9-fifty p { margin: 4px 0 0; color: var(--grey); font-size: 12px; }
.no9-fifty__mid { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); }
.no9-price { margin: 0; text-align: center; font-size: 34px; }
.no9-price span { color: var(--pink); }
.no9-btn--block { width: 100%; }

.winner-announcement .no9-btn { margin-top: 18px; }

.no9-winner {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(214, 58, 100, .55), rgba(10, 9, 10, .96) 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.no9-winner.is-open { opacity: 1; }
.no9-winner__in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(56px, calc(env(safe-area-inset-top) + 64px)) 18px max(20px, env(safe-area-inset-bottom));
}
.no9-winner__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  font-size: 26px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.no9-winner__close:active { transform: scale(.94); }
.no9-winner__close:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.no9-trophy { display: block; width: 140px; height: 140px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(255, 92, 138, .7)); }
.no9-winner.is-open .no9-trophy { animation: no9-trophy 1s var(--bounce) both; }
@keyframes no9-trophy {
  0% { transform: translateY(-300px) scale(.4) rotate(-20deg); }
  60% { transform: translateY(10px) scale(1.1) rotate(4deg); }
  80% { transform: translateY(-14px) scale(1); }
  100% { transform: none; }
}
.no9-winner h2 { margin: 8px 0 0; font-size: clamp(72px, 24vw, 110px); color: var(--white); text-shadow: 0 0 40px rgba(255, 92, 138, .8), 4px 4px 0 var(--pink); }
.no9-winner.is-open h2 { animation: no9-slam .5s var(--ease) .5s both; }
@keyframes no9-slam {
  0% { opacity: 0; transform: scale(2.6); }
  65% { opacity: 1; transform: scale(.94); }
  100% { opacity: 1; transform: none; }
}
.no9-winner__names { margin: 6px 0 0; font: 400 34px/1.05 var(--disp); font-style: italic; text-transform: uppercase; }
.no9-winner__share { margin: 6px 0 0; color: var(--white); font-size: 14px; font-weight: 600; }
.no9-winner__lines { display: grid; gap: 8px; max-height: 34vh; margin-top: 18px; overflow: auto; }
.no9-winner-line { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-md); background: rgba(30, 0, 11, .3); text-align: left; }
.no9-winner-line__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.no9-winner-line__head strong { font-size: 15px; }
.no9-winner-line__head span { color: #ffd5e4; font-weight: 800; font-size: 13px; }
.no9-winner-line .no9-balls { margin-top: 8px; gap: 5px; }
.no9-winner-line .number-ball { --s: 34px; }
.no9-winner small { display: block; margin-top: 12px; color: #ffd5e4; font-size: 13px; }
.no9-winner .no9-btn { margin-top: 22px; }
.no9-winner.is-open .no9-winner__names,
.no9-winner.is-open .no9-winner__share,
.no9-winner.is-open .no9-winner__lines,
.no9-winner.is-open small,
.no9-winner.is-open .no9-btn { animation: no9-up .5s var(--ease) .9s both; }

.no9-confetti { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.no9-confetti i {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: no9-fall var(--t, 2.6s) linear var(--d, 0s) forwards;
}
.no9-confetti i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
.no9-confetti i:nth-child(1) { left: 4%; background: #d63a64; --dx: -40px; --r: 480deg; --t: 2.2s; --d: .1s; }
.no9-confetti i:nth-child(2) { left: 12%; background: #ffffff; --dx: 70px; --r: 640deg; --t: 2.8s; --d: .3s; }
.no9-confetti i:nth-child(3) { left: 20%; background: #ff5c8a; --dx: -90px; --r: 380deg; --t: 2.4s; --d: .05s; }
.no9-confetti i:nth-child(4) { left: 28%; background: #b02a52; --dx: 60px; --r: 720deg; --t: 3s; --d: .5s; }
.no9-confetti i:nth-child(5) { left: 36%; background: #ffffff; --dx: -30px; --r: 520deg; --t: 2.6s; --d: .2s; }
.no9-confetti i:nth-child(6) { left: 44%; background: #d63a64; --dx: 100px; --r: 600deg; --t: 2.9s; --d: .4s; }
.no9-confetti i:nth-child(7) { left: 52%; background: #ff5c8a; --dx: -80px; --r: 440deg; --t: 2.3s; --d: .15s; }
.no9-confetti i:nth-child(8) { left: 60%; background: #ffffff; --dx: 40px; --r: 800deg; --t: 3.1s; --d: .55s; }
.no9-confetti i:nth-child(9) { left: 68%; background: #b02a52; --dx: -50px; --r: 500deg; --t: 2.5s; --d: .25s; }
.no9-confetti i:nth-child(10) { left: 76%; background: #d63a64; --dx: 90px; --r: 660deg; --t: 2.7s; --d: .45s; }
.no9-confetti i:nth-child(11) { left: 84%; background: #ffffff; --dx: -70px; --r: 420deg; --t: 2.4s; --d: .08s; }
.no9-confetti i:nth-child(12) { left: 92%; background: #ff5c8a; --dx: 50px; --r: 740deg; --t: 3s; --d: .38s; }
.no9-confetti i:nth-child(13) { left: 8%; background: #ff5c8a; --dx: 30px; --r: 560deg; --t: 2.6s; --d: .65s; }
.no9-confetti i:nth-child(14) { left: 16%; background: #d63a64; --dx: -100px; --r: 480deg; --t: 2.9s; --d: .12s; }
.no9-confetti i:nth-child(15) { left: 24%; background: #ffffff; --dx: 80px; --r: 680deg; --t: 2.2s; --d: .48s; }
.no9-confetti i:nth-child(16) { left: 32%; background: #b02a52; --dx: -60px; --r: 400deg; --t: 3.1s; --d: .22s; }
.no9-confetti i:nth-child(17) { left: 40%; background: #ffffff; --dx: 110px; --r: 620deg; --t: 2.7s; --d: .58s; }
.no9-confetti i:nth-child(18) { left: 48%; background: #d63a64; --dx: -40px; --r: 540deg; --t: 2.4s; --d: .35s; }
.no9-confetti i:nth-child(19) { left: 56%; background: #ff5c8a; --dx: 70px; --r: 460deg; --t: 3s; --d: .18s; }
.no9-confetti i:nth-child(20) { left: 64%; background: #ffffff; --dx: -90px; --r: 780deg; --t: 2.5s; --d: .52s; }
.no9-confetti i:nth-child(21) { left: 72%; background: #d63a64; --dx: 50px; --r: 580deg; --t: 2.8s; --d: .28s; }
.no9-confetti i:nth-child(22) { left: 80%; background: #b02a52; --dx: -60px; --r: 440deg; --t: 2.3s; --d: .42s; }
.no9-confetti i:nth-child(23) { left: 88%; background: #ffffff; --dx: 80px; --r: 700deg; --t: 3.1s; --d: .06s; }
.no9-confetti i:nth-child(24) { left: 96%; background: #ff5c8a; --dx: -30px; --r: 500deg; --t: 2.6s; --d: .6s; }
@keyframes no9-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(var(--dx, 0), 1000px) rotate(var(--r, 540deg)); }
}

@media (max-width: 380px) {
  .no9-fifty b { font-size: 38px; }
  .no9-step__ico { width: 80px; height: 80px; }
  .no9-step__ico svg { width: 38px; height: 38px; }
  .no9-winner__names { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ball-face { transition: none !important; }
  .no9-mycard .ball-flip.is-hit .ball-face { transform: rotateY(180deg); }
  .no9-mycard .ball-flip.is-hit .ball-stamp { transform: rotateY(180deg) scale(1); opacity: 1; animation: none !important; }
  .no9-stagger .no9-player { opacity: 1; transform: none; animation: none !important; }
  .draw-roll .number-ball { animation: none !important; opacity: 1; transform: none; }
  .no9-confetti { display: none; }
}

/* Install banner and offline chip */
.no9-offline {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--grey);
  font: 700 10px/1 var(--sans);
  letter-spacing: .04em;
  white-space: nowrap;
}
.no9-install {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  animation: no9-install-in .35s var(--ease);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.no9-install.is-gone { animation: none; opacity: 0; transform: translateY(-12px) scale(.96); }
.no9-install__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 58, 100, .5);
  border-radius: 13px;
  background: var(--bg);
}
.no9-install__icon img { width: 40px; height: 40px; border-radius: 50%; }
.no9-install__txt { flex: 1; min-width: 0; margin: 0; color: var(--grey); font-size: 13px; line-height: 1.35; }
.no9-install__txt b { display: block; color: var(--white); font: 700 14px/1.3 var(--sans); }
.no9-install__btn {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--white);
  font: 700 13px/1 var(--sans);
}
.no9-install__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px -4px;
  border-radius: 50%;
  color: var(--grey);
}
.no9-install__x:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.no9-install__x svg { width: 18px; height: 18px; }
.no9-install__btn:focus-visible,
.no9-install__x:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
@keyframes no9-install-in {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .no9-install { animation: none; transition: none; }
  .no9-install.is-gone { opacity: 1; transform: none; }
}

/* Header draw-alert bell */
.no9-bell {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.no9-bell svg { width: 20px; height: 20px; }
.no9-bell.is-on { background: var(--pink); border-color: var(--pink); }
.no9-bell.is-on svg { animation: no9-bell-ring .9s var(--ease); }
.no9-bell:active { transform: scale(.94); }
.no9-bell.is-busy { opacity: .6; }
@keyframes no9-bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(20deg); }
  30% { transform: rotate(-16deg); }
  45% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  75% { transform: rotate(3deg); }
}

/* Draw night reveal link */
.draw-night-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(214, 58, 100, .18), rgba(20, 18, 20, .92));
  color: var(--white);
  text-decoration: none;
  transition: transform .15s var(--ease);
}
.draw-night-card:active { transform: scale(.98); }
.draw-night-card__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(214, 58, 100, .35);
}
.draw-night-card__ico svg { width: 26px; height: 26px; }
.draw-night-card__copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.draw-night-card__copy strong { font-size: 27px; }
.draw-night-card__copy small { color: var(--grey); font-size: 12px; line-height: 1.35; }
.draw-night-card__go { flex: none; font-size: 22px; color: var(--glow); }
.draw-night-card.is-live {
  background: linear-gradient(150deg, var(--pink), var(--deep));
  box-shadow: 0 16px 40px rgba(214, 58, 100, .4);
  animation: no9-draw-glow 2.4s ease-in-out infinite;
}
.draw-night-card.is-live .kicker,
.draw-night-card.is-live .draw-night-card__copy small,
.draw-night-card.is-live .draw-night-card__go { color: var(--white); }
.draw-night-card.is-live .draw-night-card__ico { background: var(--white); color: var(--pink); }
@keyframes no9-draw-glow {
  0%, 100% { box-shadow: 0 16px 40px rgba(214, 58, 100, .32); }
  50% { box-shadow: 0 18px 52px rgba(214, 58, 100, .55); }
}

/* Penalty shootout mini-game link */
.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(140px 90px at 92% 12%, rgba(255, 92, 138, .22), transparent 70%),
    linear-gradient(150deg, #1d1216, #121012 62%);
  color: var(--white);
  text-decoration: none;
  transition: transform .15s var(--ease);
}
.game-card:active { transform: scale(.98); }
.game-card__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.game-card__ico svg { width: 30px; height: 30px; }
.game-card__copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.game-card__copy strong { font-size: 27px; }
.game-card__copy small { color: var(--grey); font-size: 12px; line-height: 1.35; }
.game-card__play {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--white);
  font: 800 13px/1 var(--sans);
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(214, 58, 100, .35);
}

/* Shootout champion banner */
.champion-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 209, 102, .4);
  border-radius: var(--r-lg);
  background:
    radial-gradient(160px 90px at 8% 10%, rgba(255, 209, 102, .16), transparent 72%),
    linear-gradient(150deg, #1c1611, var(--card));
  color: var(--white);
  text-decoration: none;
  transition: transform .15s var(--ease);
}
.champion-card:active { transform: scale(.98); }
.champion-card__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd166;
  color: #3a2a07;
  font-size: 19px;
  line-height: 1;
}
.champion-card__copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.champion-card__copy strong { font-size: 22px; overflow-wrap: anywhere; }
.champion-card__copy small { color: var(--grey); font-size: 12px; line-height: 1.35; }
.champion-card__go { flex: none; font-size: 20px; color: #ffd166; }

/* WhatsApp group link */
.no9-wa {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #21131a, var(--card));
  color: var(--white);
  text-decoration: none;
  transition: transform .15s var(--ease);
}
.no9-wa:active { transform: scale(.98); }
.no9-wa__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
}
.no9-wa__ico svg { width: 28px; height: 28px; }
.no9-wa__copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.no9-wa__copy strong { font-size: 26px; }
.no9-wa__copy small { color: var(--grey); font-size: 12px; line-height: 1.35; }
.no9-wa--rules { margin-top: 4px; }

/* My card share action */
.no9-mycard__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.no9-mycard__remove {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--grey);
  font: 700 13px/1 var(--sans);
  transition: transform .15s var(--ease), color .2s var(--ease);
}
.no9-mycard__remove:active { transform: scale(.96); color: var(--white); }
.no9-mycard__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(214, 58, 100, .16);
  color: var(--white);
  font: 700 13px/1 var(--sans);
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.no9-mycard__share svg { width: 17px; height: 17px; }
.no9-mycard__share:active { transform: scale(.96); background: rgba(214, 58, 100, .3); }
.no9-mycard__share:disabled { opacity: .6; }

/* Saved-card payment status */
.no9-mycard__pay { display: grid; gap: 6px; justify-items: start; margin-top: 14px; }
.no9-mycard__pay[hidden] { display: none; }
.no9-pay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 700 12px/1 var(--sans);
}
.no9-pay-pill--paid { background: rgba(46, 160, 90, .2); border-color: rgba(46, 160, 90, .55); }
.no9-pay-pill--due { background: rgba(214, 160, 58, .2); border-color: rgba(214, 160, 58, .55); }
.no9-pay-pill--behind { background: rgba(214, 58, 100, .22); border-color: rgba(214, 58, 100, .6); }
.no9-pay-note { margin: 0; color: var(--grey); font-size: 12px; line-height: 1.4; }

/* Number stats */
.stats-view > * + * { margin-top: 16px; }
.stats-board,
.stats-grid-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.stats-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.stats-board__head b {
  color: var(--grey);
  font: 700 11px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stats-row-balls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.stats-pick {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}
.stats-pick .number-ball { --s: clamp(32px, calc((100vw - 120px) / 6), 44px); }
.stats-pick__count {
  font: 400 15px/1 var(--disp);
  font-style: italic;
  color: var(--white);
}
.stats-pick__count small { margin-left: 1px; color: var(--grey); font-size: 10px; }
.stats-pick__bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.stats-pick__bar i {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deep), var(--glow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 30ms);
}
.stats-view.is-go .stats-pick__bar i { transform: scaleX(1); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}
.stats-grid .number-ball {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  font-size: clamp(10px, 2.6vw, 14px);
  background-image:
    linear-gradient(rgba(214, 58, 100, var(--heat, 0)), rgba(214, 58, 100, var(--heat, 0))),
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football-simple.svg");
  background-position: center, center, center;
  background-size: 100% 100%, var(--disc) var(--disc), 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.stats-grid .number-ball.is-on {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}
.stats-detail {
  min-height: 40px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.35;
}
.stats-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.stats-empty .empty-icon { font-size: 11px; letter-spacing: -.02em; }
.stats-empty strong {
  display: block;
  font: 400 22px/1.05 var(--disp);
  font-style: italic;
  text-transform: uppercase;
}
.stats-empty p { margin: 6px 0 0; color: var(--grey); font-size: 13px; }
.stats-view.is-go .stats-pick { animation: no9-stat-in .45s var(--bounce) both; animation-delay: calc(var(--i, 0) * 25ms); }
.stats-view.is-go .stat-dot { animation: no9-stat-in .4s var(--bounce) both; animation-delay: calc(var(--i, 0) * 8ms); }
@keyframes no9-stat-in {
  from { opacity: 0; transform: translateY(10px) scale(.8); }
  to { opacity: 1; transform: none; }
}

/* Hall of fame */
.hall { display: grid; gap: 12px; }
.hall-head { padding: 4px 2px 0; }
.hall-head h2 { margin: 6px 0 6px; font-size: 34px; }
.hall-head p { margin: 0; color: var(--grey); font-size: 13px; line-height: 1.4; }
.hall-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  overflow: hidden;
}
.hall-champion {
  border-color: rgba(255, 210, 122, .42);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255, 210, 122, .16), transparent 55%),
    radial-gradient(120% 150% at 100% 0%, rgba(255, 92, 138, .22), transparent 62%),
    linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: 0 0 0 1px rgba(255, 210, 122, .1), 0 14px 34px rgba(214, 58, 100, .22), 0 0 26px rgba(255, 92, 138, .14);
}
.hall-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hall-card__head h3 { margin: 4px 0 0; font-size: 24px; line-height: .98; overflow-wrap: anywhere; }
.hall-card__weeks,
.hall-pill {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--grey);
  font: 700 10px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hall-champion .hall-pill {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, .45);
  background: rgba(255, 210, 122, .1);
}
.hall-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hall-metrics > div { min-width: 0; }
.hall-metrics span {
  display: block;
  color: var(--grey);
  font: 700 10px/1.1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hall-metrics strong {
  display: block;
  margin-top: 5px;
  font: 400 18px/1 var(--disp);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hall-winners { display: grid; gap: 6px; margin-top: 14px; }
.hall-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.hall-winner:first-child { border-top: 0; }
.hall-winner__name {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #ffd98f;
  font: 400 18px/1.05 var(--disp);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hall-winner__name::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: translateX(-220%) skewX(-18deg);
  animation: hall-shine 3.8s var(--ease) infinite;
  pointer-events: none;
}
.hall-winner:nth-child(2) .hall-winner__name::after { animation-delay: .35s; }
.hall-winner:nth-child(3) .hall-winner__name::after { animation-delay: .7s; }
.hall-winner:nth-child(4) .hall-winner__name::after { animation-delay: 1.05s; }
.hall-winner:nth-child(5) .hall-winner__name::after { animation-delay: 1.4s; }
.hall-balls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  width: min(62%, 210px);
  flex: none;
}
.hall-balls .number-ball {
  --s: clamp(24px, calc((100vw - 280px) / 6), 32px);
  background-image:
    radial-gradient(circle closest-side, var(--white) 0 99%, transparent 100%),
    url("football-simple.svg");
}
.hall-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--grey);
  font-size: 13px;
  text-align: center;
}
.stats-view.is-go .hall-card { animation: no9-hall-in .6s var(--bounce) both; animation-delay: calc(140ms + var(--i, 0) * 90ms); }
@keyframes no9-hall-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes hall-shine {
  0%, 62% { opacity: 0; transform: translateX(-220%) skewX(-18deg); }
  66% { opacity: 1; }
  82%, 100% { opacity: 0; transform: translateX(220%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .draw-night-card.is-live,
  .no9-bell.is-on svg { animation: none; }
  .stats-view.is-go .stats-pick,
  .stats-view.is-go .stat-dot { animation: none !important; }
  .stats-pick__bar i { transform: scaleX(1) !important; transition: none !important; }
  .stats-view.is-go .hall-card { animation: none !important; }
  .hall-winner__name::after { animation: none !important; opacity: 0 !important; }
}
