/* Systum's information pages in the app's comic print (Chitrakatha, night
   edition), the same as the homepage: a Kajal page with a faint halftone,
   flat panels with a Kaagaz (cream) ink line and a hard ink shadow, Bangers
   headings and Comic Neue text. Colours are the app's AppColors. */

@font-face {
  font-family: "Systum Display";
  src: url("/beta/fonts/Bangers-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Systum Display";
  src: url("/beta/fonts/Modak-Devanagari.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Systum Sans";
  src: url("/beta/fonts/ComicNeue-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Systum Sans";
  src: url("/beta/fonts/ComicNeue-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Systum Sans";
  src: url("/beta/fonts/Baloo2-Devanagari-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Systum Sans";
  src: url("/beta/fonts/Baloo2-Devanagari-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  color-scheme: dark;
  --kesari: #ff7900;
  --mehndi: #3d7d32;
  --mehndi-glow: #4fa041;
  --aasmani: #87ceeb;
  --kajal: #0b0b0d;
  --kaagaz: #f6ecd4;
  --haldi: #ffe08a;
  --panel: #17191e;
  --panel-sunk: #0e0f12;
  --ink: var(--aasmani);
  --text-color: rgba(135, 206, 235, 0.9);
  --line: 2.5px;
  --pop: 5px 5px 0 #000;
  --pop-small: 3px 3px 0 #000;
  --display: "Systum Display", "Bangers", Impact, "Arial Narrow", sans-serif;
  --text: "Systum Sans", "Comic Neue", "Comic Sans MS", system-ui, sans-serif;
  --dots-light:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.1px, transparent 1.6px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--kajal);
  background-image: var(--dots-light);
  background-size: 10px 20px;
  background-position: 0 0, 5px 10px;
}

main,
.wrap {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

/* ---------- Headings ---------- */
h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
}
h1 {
  color: var(--ink);
  font-size: clamp(44px, 8vw, 84px);
}
h2 {
  color: var(--kesari);
  font-size: clamp(28px, 4.2vw, 38px);
}
h3 {
  color: var(--mehndi-glow);
  font-size: 24px;
}

p,
li { margin: 0 0 12px; }
ul,
ol { margin: 0 0 12px; padding-left: 1.3em; }
li + li { margin-top: 6px; }
li::marker { color: var(--kesari); }
strong { color: var(--kaagaz); font-weight: 700; }

a {
  color: var(--haldi);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: #fff; }

/* ---------- The heading area: caption box, big title, meta chips ---------- */
.hero { margin: 8px 0 34px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 12px;
  background: var(--haldi);
  color: #000;
  border: var(--line) solid #000;
  border-radius: 2px;
  box-shadow: var(--pop-small);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  transform: rotate(-1.5deg);
}
.hero p:not(.eyebrow),
.lede { font-size: 19px; color: var(--ink); max-width: 40em; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.meta span {
  padding: 4px 12px;
  border: 2px solid var(--kaagaz);
  border-radius: 8px;
  background: var(--panel);
  color: var(--kaagaz);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Panels (ComicPanel): flat fill, cream ink line, halftone,
   hard ink shadow. A page's plain sections print as panels too. ---------- */
.panel,
.card,
.identity,
main > section:not([class]) {
  margin: 0 0 24px;
  padding: 24px 24px 14px;
  border: var(--line) solid var(--kaagaz);
  border-radius: 20px;
  background-color: var(--panel);
  background-image: var(--dots-light);
  background-size: 10px 20px;
  background-position: 0 0, 5px 10px;
  box-shadow: var(--pop);
}
main > section:not([class]):first-child {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}
main > section:not([class]):first-child h1 { margin-bottom: 18px; }

/* Boxes inside a panel: sunk, with a thinner ink line. */
.box,
.tile {
  margin: 12px 0;
  padding: 14px 16px;
  border: 2px solid var(--kaagaz);
  border-radius: 14px;
  background: var(--panel-sunk);
}
.box > strong,
.tile > strong { display: block; color: var(--kesari); margin-bottom: 4px; }
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.summary .tile { margin: 0; }

/* A note is a caption box. */
.note {
  margin: 14px 0 10px;
  padding: 10px 14px;
  background: var(--haldi);
  color: #000;
  border: var(--line) solid #000;
  border-radius: 2px;
  box-shadow: var(--pop-small);
  font-weight: 700;
}
.note a { color: #000; }

/* ---------- Buttons: flat fill, cream ink line, a hard ink block that
   collapses while pressed. ---------- */
.cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 6px 12px 12px 0;
  padding: 10px 18px;
  border: var(--line) solid var(--kaagaz);
  border-radius: 14px;
  background: var(--kesari);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--pop-small);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.cta:hover,
.button:hover { color: #000; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.cta:active,
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.button.secondary { background: var(--mehndi); color: #fff; }
.button.secondary:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; margin-top: 22px; }

/* ---------- /systum/: the three games, each in its lobby card colour ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 24px;
}
.games .card { margin: 0; }
.card:nth-child(1) h2 { color: var(--kesari); }
.card:nth-child(2) h2 { color: var(--aasmani); }
.card:nth-child(3) h2 { color: var(--mehndi-glow); }
@media (max-width: 720px) {
  .games { grid-template-columns: 1fr; }
}

/* ---------- Footers ---------- */
footer,
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--line) solid var(--kaagaz);
  font-size: 15px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .cta, .button { transition: none; }
}
