/* todayxi.in — match-day scorecard. Terracotta + pitch green on paper. */

:root {
  --paper: #f6efe2;
  --ink: #2a1c14;
  --clay: #c4451c;
  --clay-2: #e36a2e;
  --pitch: #1f6b4a;
  --pitch-2: #2f8a62;
  --rule: #d7c4a8;
  --muted: #6d5b4d;
  --card: #fffaf1;
  --night: #1b2a22;
  --font-display: "Newsreader", "Noto Sans Devanagari", "Times New Roman", serif;
  --font-body: "Figtree", "Noto Sans Devanagari", system-ui, sans-serif;
  --wrap: 1140px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; padding-bottom: 78px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); }
a:hover { color: var(--pitch); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.skip {
  position: absolute; left: 10px; top: -40px;
  background: var(--clay); color: #fff; padding: 8px 10px; z-index: 20;
}
.skip:focus { top: 10px; }
.wrap { width: min(var(--wrap), calc(100% - 28px)); margin-inline: auto; }

/* Scoreboard header */
.board {
  background: var(--night);
  color: #f3ead8;
  position: sticky; top: 0; z-index: 30;
}
.board__top {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
}
.brand { display: flex; gap: 10px; align-items: center; color: #f3ead8; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #c9b79a; }
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { color: #d7c4a8; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav a:hover, .nav a.is-active { color: #fff; }
.lang a { color: #c9b79a; text-decoration: none; margin-left: 8px; font-size: 0.8rem; }
.lang a.is-active { color: #fff; font-weight: 700; }

.ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #31463a;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}
.ticks div {
  padding: 8px 12px;
  border-right: 1px solid #31463a;
}
.ticks span { display: block; color: #9cb3a6; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.65rem; }
.ticks b { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px;
  background: var(--clay); border: 0; color: #fff;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 8px; }
.drawer { display: none; background: #14201a; padding: 8px 0 16px; }
.drawer.open { display: block; }
.drawer a {
  display: block; padding: 10px 0; color: #f3ead8; text-decoration: none;
  border-bottom: 1px dashed #31463a;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  font-weight: 700; text-decoration: none;
  border-radius: 4px;
}
.btn-play { background: var(--clay); color: #fff; }
.btn-play:hover { background: var(--clay-2); color: #fff; }
.btn-apk { background: var(--pitch); color: #fff; }
.btn-apk:hover { background: var(--pitch-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-lg { min-height: 50px; padding: 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Hero: photo with score overlay */
.match {
  position: relative;
  min-height: 76vh;
  display: grid; align-items: end;
  color: #fff;
}
.match picture, .match img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.match::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,42,34,0.1), rgba(27,42,34,0.82));
}
.match .wrap { position: relative; z-index: 1; padding: 40px 0 48px; }
.kicker {
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.72rem; color: #f0c29a; font-weight: 700;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 0.98;
  margin: 8px 0 12px;
  max-width: 14ch;
  font-weight: 700;
}
.lede { max-width: 46ch; color: #f3ead8; }

.xi-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-top: 6px solid var(--clay);
  background: var(--card);
}
.xi-copy { padding: 36px 28px; }
.xi-copy h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 6px 0 10px;
}

/* CSS pitch — 11 dots */
.pitch-wrap { background: var(--pitch); padding: 28px; color: #fff; }
.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 340px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, #2f8a62 0%, #1a5a3e 70%);
  border-radius: 50% / 12%;
  border: 2px dashed rgba(255,255,255,0.28);
}
.pitch .dot {
  position: absolute;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #fffaf1;
  color: var(--ink);
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--night);
}
.pitch .dot.c { background: var(--clay); color: #fff; border-color: #fff; }
.pitch .dot.vc { background: var(--night); color: #fff; }
.legend { display: flex; gap: 14px; justify-content: center; margin-top: 12px; font-size: 0.8rem; }

.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.ticket {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 18px 18px 20px;
  position: relative;
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: var(--paper);
  border-radius: 50%;
  top: 42%;
}
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket h3 { font-family: var(--font-display); margin: 6px 0; font-size: 1.3rem; }
.tickets--stack { grid-template-columns: 1fr; max-width: 36rem; }

.tonight {
  background: var(--card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.tonight .kicker,
.page-hero .kicker { color: var(--clay); }
.page-hero .lede,
.tonight .lede { color: var(--ink); }

.score-card {
  background: var(--card);
  border: 2px solid var(--night);
  padding: 22px 24px;
  box-shadow: 4px 4px 0 var(--clay);
}
.score-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 6px 0 10px;
  line-height: 1.05;
}
.score-card h2 span {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.55em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.score-card .kicker { color: var(--pitch); }
.score-card .fine { color: var(--muted); font-size: 0.82rem; }

.order { margin: 0 0 16px; padding-left: 1.2em; }
.order li { margin: 0 0 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--rule); padding: 18px; }
.card img { width: calc(100% + 36px); max-width: none; margin: -18px -18px 12px; height: 180px; object-fit: cover; }
.card h3 { font-family: var(--font-display); margin: 6px 0; }

section.block { padding: 48px 0; }
.muted { color: var(--muted); }

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; }
.page-hero { padding: 24px 0 10px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}
.crumb { font-size: 0.82rem; color: var(--muted); }

.cv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.cv article {
  padding: 22px;
  color: #fff;
}
.cv article:first-child { background: var(--clay); }
.cv article:last-child { background: var(--night); }
.cv h3 { font-family: var(--font-display); font-size: 1.8rem; margin: 4px 0 8px; }

.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }

.foot {
  background: var(--night);
  color: #d7c4a8;
  padding: 32px 0 56px;
  font-size: 0.9rem;
}
.foot a { color: #f3ead8; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.fine { color: #9cb3a6; font-size: 0.78rem; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--clay); color: #fff; z-index: 40;
}
.sticky .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px;
}
.sticky p { margin: 0; font-size: 0.88rem; }
.sticky .btn-play { background: #fff; color: var(--clay); }
.sticky .btn-apk { background: var(--night); }

@media (max-width: 900px) {
  .nav, .lang { display: none; }
  .nav-toggle { display: block; }
  .ticks { grid-template-columns: 1fr 1fr; }
  .xi-strip, .tickets, .grid-2, .cv, .foot__grid { grid-template-columns: 1fr; }
  .match { min-height: 86vh; }
  .sticky p { display: none; }
}
