/* Luckywin ice-blue editorial desk — Blue Trust / ruled newspaper */
:root {
  --primary: #1769e8;
  --primary-ink: #0e4fb8;
  --accent: #0ea5a8;
  --background: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #e8f1ff;
  --text: #13213a;
  --muted: #52647c;
  --border: #c9d9f2;
  --rule: #b7c9e6;
  --danger: #9b2c2c;
  --ok: #0f6b4c;
  --header-h: 64px;
  --cta-h: 64px;
  --max: 1120px;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(19, 33, 58, 0.04);
  --focus: 0 0 0 3px #f4f8ff, 0 0 0 5px #1769e8;
}

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

html { scroll-behavior: smooth; }

html:focus-within { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Manrope, "Noto Sans Devanagari", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--cta-h) + 18px);
  min-width: 0;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { width: 100%; }
figure { margin: 0; min-width: 0; }
figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

a { color: var(--primary-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244, 248, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-desktop {
  display: none;
  justify-content: center;
}
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 8px 0;
}
.nav-desktop a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}
.header-cta {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-play {
  background: var(--primary);
  color: #fff;
}
.btn-play:hover { background: var(--primary-ink); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 49;
  padding: 18px;
  overflow: auto;
  border-top: 1px solid var(--border);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer li { border-bottom: 1px solid var(--surface-2); }
.nav-drawer a {
  display: flex;
  min-height: 48px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.nav-drawer .btn-play { width: 100%; margin-top: 16px; }

body.nav-open { overflow: hidden; }

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  min-width: 0;
}
.band {
  padding: 42px 0;
  min-width: 0;
}
.band + .band { border-top: 1px solid var(--border); }
.band-paper { background: var(--surface); }
.band-tint { background: var(--surface-2); }
.band-ice { background: var(--background); }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: normal;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a6b6d;
  margin: 0 0 8px;
}
.fine { font-size: 0.88rem; color: var(--muted); max-width: 70ch; }
.disclose {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Hero editorial-lead */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px 0 28px;
  min-width: 0;
}
.hero-copy { min-width: 0; }
.hero-visual {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px;
}
.hero-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    min-height: calc(100dvh - var(--header-h) - 24px);
    padding: 20px 0 32px;
    align-items: end;
  }
  .hero-visual img { aspect-ratio: 4 / 5; max-height: 72dvh; object-position: center 20%; }
}

/* Signature modular score strip */
.score-strip {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #062628;
}
.score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 800px) {
  .score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  min-width: 0;
  box-shadow: inset 3px 0 0 var(--accent);
}
.score-card h3 { display: flex; justify-content: space-between; gap: 8px; }
.score-card .mark {
  color: #0a6b6d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.score-card dl { margin: 0; display: grid; gap: 6px; }
.score-card div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 0.92rem; }
.score-card dt { color: var(--muted); }
.score-card dd { margin: 0; font-weight: 700; }

/* Horizontal stepper */
.stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  min-width: 0;
  padding: 16px 0 16px 52px;
  position: relative;
  border-left: 1px solid var(--rule);
  margin-left: 16px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
@media (min-width: 900px) {
  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 0;
    gap: 18px;
  }
  .step {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 2px solid var(--rule);
    padding-top: 18px;
  }
  .step::before { left: 0; top: -16px; }
}

/* Portrait meld notes */
.meld {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 800px) {
  .meld { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr); }
}
.note {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.note img { aspect-ratio: 3 / 4; object-fit: cover; }
.note-body { padding: 12px 14px 16px; }

/* Ruled ledger */
.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}
.ledger th, .ledger td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  min-width: 0;
}
.ledger th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }

/* Stacked definition rows (mobile ledgers/desks) */
.deflist { margin: 0; }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.deflist dt { font-weight: 700; }
.deflist dd { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .deflist > div { grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); gap: 18px; }
}

/* Access desk / usability bench */
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 800px) {
  .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.desk article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  min-width: 0;
}

.bench { display: grid; gap: 0; }
.bench-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.bench-row span { min-width: 0; }
.obs { font-weight: 700; }
.unk { color: var(--danger); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }
@media (max-width: 799px) {
  .bench-row { grid-template-columns: minmax(0, 1fr); }
}

/* Strategy boundary pair */
.boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 800px) {
  .boundary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.col {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.col-warn { box-shadow: inset 0 3px 0 var(--danger); }
.col-ok { box-shadow: inset 0 3px 0 var(--ok); }

/* Checklist */
.check { list-style: none; margin: 0; padding: 0; }
.check li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.check i {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 1px solid var(--text);
  background: var(--surface);
}

/* Action rail */
.rail {
  display: grid;
  gap: 12px;
  background: var(--text);
  color: #e8f1ff;
  padding: 28px 18px;
}
.rail h2, .rail p { color: #e8f1ff; }
.rail .btn-play { justify-self: start; }
.rail .disclose { color: #c9d9f2; }
@media (min-width: 800px) {
  .rail {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 32px;
  }
}

/* Responsible play panel */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
}
@media (min-width: 800px) {
  .panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

/* Dated register */
.register { list-style: none; margin: 0; padding: 0; }
.register li {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  min-width: 0;
}
.date { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .register li { grid-template-columns: minmax(0, 1fr); }
}

/* Article internals */
.article { max-width: 74ch; }
.article img { aspect-ratio: 16 / 10; object-fit: cover; }
.hero-banner img { aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 700px) {
  .hero-banner img { aspect-ratio: 16 / 10; }
}

.toc {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin: 0 0 24px;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.link-index {
  columns: 1;
  gap: 24px;
}
@media (min-width: 700px) { .link-index { columns: 2; } }
.link-index ul { list-style: none; margin: 0 0 16px; padding: 0; break-inside: avoid; }
.link-index a { display: inline-block; padding: 4px 0; white-space: nowrap; }

.crumb { font-size: 0.86rem; color: var(--muted); margin: 12px 0 8px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--text);
  padding: 32px 0 28px;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { text-decoration: underline; }

/* Sticky mobile PLAY NOW */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.sticky-cta .btn-play {
  width: 100%;
  min-height: 48px;
}
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.stack > * + * { margin-top: 0.85rem; }
.unknown { color: var(--danger); }
.rule-top { border-top: 1px solid var(--border); padding-top: 18px; }

/* Contact widget coexistence: keep it above mid-right, not covering CTA */
[data-support-launcher] { top: 40% !important; }

/* Error pages */
.err {
  min-height: 60dvh;
  display: grid;
  place-items: center;
  text-align: left;
}
