/* jackpot777 — Sunlit League newspaper magazine. Cache v=20260816b */
:root {
  --primary: #176A9E;
  --accent: #D17A00;
  --accent-ink: #3A2300;
  --background: #FFFBEF;
  --surface: #FFFFFF;
  --surface-2: #FFF0C8;
  --surface-3: #F4E7C4;
  --text: #1D2A36;
  --muted: #5E6871;
  --border: #ECD9A7;
  --rule: #D8C28A;
  --ink-deep: #12202C;
  --focus: #0E4E78;
  --danger: #8B2430;
  --ok: #1B5E46;
  --header-h: 64px;
  --sticky-cta: 64px;
  --max: 1180px;
  --gutter: 20px;
  --shadow: 0 10px 28px rgba(29, 42, 54, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Nunito Sans", "Noto Sans Devanagari", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  max-width: 100%;
}

body {
  min-height: 100%;
  padding-bottom: calc(var(--sticky-cta) + env(safe-area-inset-bottom, 0px));
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  width: 100%;
}

figure { margin: 0; }

a {
  color: var(--primary);
  text-underline-offset: 0.14em;
}

a:hover { color: var(--focus); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink-deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  min-width: 0;
}

/* ---------- Utility bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 239, 0.96);
  border-bottom: 1px solid var(--border);
}

.utility {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-deep);
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--background);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-name span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-deep);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  min-height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.primary-nav a {
  color: var(--ink-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 8px 0;
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  white-space: nowrap;
  border: 1px solid #B86A00;
}

.header-cta:hover { color: var(--accent-ink); filter: brightness(0.96); }

.nav-close {
  display: none;
}

/* ---------- Hero stacked story ---------- */
.masthead {
  padding: 18px 0 28px;
  background:
    linear-gradient(180deg, var(--surface-2) 0%, var(--background) 72%);
  border-bottom: 1px solid var(--border);
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: end;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.masthead h1,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink-deep);
  font-weight: 800;
  max-width: 18ch;
}

.proof-line {
  margin: 0 0 16px;
  font-size: 1.05rem;
  max-width: 38ch;
  color: var(--text);
}

.age-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 42ch;
}

.still {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.still img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.still figcaption,
.frame figcaption {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Section families ---------- */
.band {
  padding: 42px 0;
  min-width: 0;
}

.band + .band { border-top: 1px solid transparent; }

.band-paper { background: var(--surface); }
.band-sun { background: var(--surface-2); }
.band-ivory { background: var(--background); }
.band-ink {
  background: var(--ink-deep);
  color: #F4EEE0;
}
.band-ink h2,
.band-ink h3 { color: #FFFBEF; }
.band-ink p,
.band-ink li { color: #E6DCC4; }
.band-ink a { color: #FFD27A; }
.band-ink a.btn-play,
.band-ink a.btn-play:hover {
  color: var(--accent-ink);
}

.sec-head {
  margin: 0 0 18px;
  max-width: 62ch;
}

.sec-head h2,
.article h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  font-weight: 800;
}

.sec-head p,
.lede {
  margin: 0;
  color: var(--text);
}

/* Marketplace desk: one featured rail + stacked chooser, not equal cards */
.market {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.market-lead,
.chooser article,
.ledger,
.gate,
.workshop,
.note,
.faq details,
.colophon,
.factbox,
.corridor-step,
.map-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.market-lead { padding: 0; }

.market-lead .copy { padding: 18px 20px 22px; }

.chooser {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}

.chooser article { padding: 16px 18px; }

.chooser h3,
.market-lead h3,
.article h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.score {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Cinematic chapter */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.chapter .still { border: 0; box-shadow: none; }

.chapter-notes {
  padding: 22px 22px 26px;
  background: var(--surface);
  min-width: 0;
}

.chapter-notes ol {
  margin: 12px 0 0;
  padding: 0 0 0 1.15rem;
}

.chapter-notes li { margin: 0 0 10px; }

/* Diagram board */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.board figure { border-right: 1px solid var(--border); }

.board dl {
  margin: 0;
  padding: 18px 20px;
}

.board dt {
  font-weight: 800;
  margin-top: 12px;
}

.board dt:first-child { margin-top: 0; }

.board dd {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Process corridor */
.corridor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.corridor-step { padding: 16px 16px 18px; }

.step-num {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Usability ledger */
.ledger {
  width: 100%;
  border-collapse: collapse;
  display: block;
}

.ledger .row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.ledger .row:last-child { border-bottom: 0; }

.ledger dt {
  font-weight: 800;
  margin: 0;
}

.ledger dd { margin: 0; }

/* Process map */
.proc-map {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.map-stage { padding: 16px 18px; }

/* Split essay */
.essay {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
}

.essay .panel {
  border-top: 6px solid var(--primary);
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
}

.essay .panel.chance { border-top-color: var(--danger); }

/* Checklist gate */
.gate { padding: 20px; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.tag {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-stop { color: var(--danger); }
.tag-go { color: var(--ok); }

/* Workshop */
.workshop { padding: 8px 0; }

.workshop li {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.workshop ul { margin: 0; padding: 0; }

.workshop li:last-child { border-bottom: 0; }

/* Action rail */
.rail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 168px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border: 1px solid #B86A00;
}

.btn-play:hover { color: var(--accent-ink); filter: brightness(0.96); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  background: var(--surface);
}

/* Dated register */
.register {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.register a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.register time {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

/* Colophon */
.colophon { padding: 20px; }

/* FAQ */
.faq details {
  padding: 12px 16px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p { margin: 8px 0 4px; }

/* Page hero for children */
.page-hero {
  padding: 22px 0 10px;
}

.page-hero .still { margin-top: 16px; }

.crumbs {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--rule);
}

.article {
  max-width: 72ch;
}

.article p { margin: 0 0 14px; }

.article ul,
.article ol { margin: 0 0 16px; padding-left: 1.2rem; }

.care-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 18px 18px;
  min-width: 0;
  max-width: 100%;
}
.care-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.care-box .avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}
.care-box .messages {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 0 0 14px;
  background: var(--background);
}
.care-box .bubble { margin: 0 0 10px; }
.care-box .bubble p { margin: 0 0 4px; }
.care-box .bubble time { font-size: 0.8rem; color: var(--muted); }
.care-box label { display: block; font-weight: 700; margin: 0 0 12px; }
.care-box input,
.care-box textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.care-box .composer { margin: 0; }
.care-box .composer button,
.care-box .reset {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #B86A00;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  cursor: pointer;
}
.care-box .status { margin: 10px 0 0; color: var(--muted); font-size: 0.86rem; }
.care-box .status.error { color: var(--danger); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  margin: 22px 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.factbox {
  padding: 16px 18px;
  margin: 18px 0;
  background: var(--surface-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  border-bottom: 1px solid var(--border);
}

.related a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink-deep);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 8px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin: 0 0 6px; }

.site-footer a {
  color: var(--ink-deep);
  text-decoration: none;
  font-weight: 700;
}

.legal {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Mobile sticky CTA — one full-width PLAY NOW */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 251, 239, 0.96);
  border-top: 1px solid var(--border);
}

.sticky-cta .btn-play {
  width: 100%;
  min-width: 0;
}

/* Tables */
.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sheet th,
.sheet td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sheet th {
  background: var(--surface-2);
  font-size: 0.86rem;
}

.table-scroll {
  overflow-x: auto;
  min-width: 0;
}

/* Hindi newspaper accent, used sparingly */
.devanagari {
  font-family: "Noto Sans Devanagari", "Nunito Sans", sans-serif;
  font-weight: 700;
}

/* Disclosure */
.affiliate-note {
  font-size: 0.86rem;
  color: var(--muted);
}

/* 404 */
.dead {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 40px 0;
}

/* Desktop nav stays one row from 1024 */
@media (max-width: 1100px) {
  .primary-nav a { font-size: 0.84rem; }
  .utility { gap: 10px; }
}

html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .utility {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    position: relative;
    z-index: 80;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    max-width: min(86vw, 360px);
    padding: 0;
    border: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    background: var(--surface);
    z-index: 40;
    grid-column: 1;
    grid-row: 1;
  }
  .primary-nav .nav-close,
  .primary-nav ul {
    display: none;
  }
  .primary-nav.is-open {
    width: min(86vw, 360px);
    padding: 12px 18px 88px;
    border-left: 1px solid var(--border);
    overflow: auto;
    overscroll-behavior: contain;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.is-open .header-cta { display: inline-flex; }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .primary-nav.is-open .nav-close {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid var(--border);
    background: var(--background);
    font-weight: 800;
    padding: 0 12px;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  .sticky-cta { display: block; }
  .masthead-grid,
  .market,
  .chapter,
  .board,
  .corridor,
  .essay,
  .proc-map,
  .two-col,
  .rail,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .board figure { border-right: 0; border-bottom: 1px solid var(--border); }
  .checks li,
  .workshop li,
  .ledger .row,
  .register a {
    grid-template-columns: minmax(0, 1fr);
  }
  .masthead h1 { max-width: none; }
}

@media (max-width: 430px) {
  body { font-size: 17px; }
  .band { padding: 32px 0; }
  .brand-name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
