/* Cric Tac Toe site: the app's Floodlit palette. Navy night match, gold for the one main action. */
:root {
  --navy: #141a4b;
  --navy-2: #1b2163;
  --navy-3: #2b3190;
  --ink: #1b2559;
  --cream: #f7eeda;
  --paper: #fffaf0;
  --gold: #f6c445;
  --gold-deep: #e0a21b;
  --red: #d42a2a;
  --chalk: #eef1ff;
  --chalk-soft: #c3c9ee;
  --muted: #4b5480;
  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Mukta', system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 18px/1.6 var(--body);
  color: var(--chalk);
  background: var(--navy);
  background-image: radial-gradient(60% 40% at 10% 0%, rgba(201, 211, 255, 0.22), transparent 70%),
    radial-gradient(60% 40% at 90% 0%, rgba(201, 211, 255, 0.22), transparent 70%),
    linear-gradient(#2b3190, #1b2163 40%, #121845);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; font-weight: 600; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--chalk-soft); }
.top nav a:hover, .top nav a[aria-current] { color: var(--chalk); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px 0 56px; }
.hero h1 { font: 800 clamp(44px, 8vw, 76px)/0.95 var(--display); margin: 0 0 14px; letter-spacing: -0.5px; text-wrap: balance; }
.hero h1 .gold { color: var(--gold); display: block; }
.lede { font-size: clamp(19px, 2.4vw, 22px); color: var(--chalk-soft); margin: 0 0 26px; max-width: 34ch; }
.status { display: inline-block; font: 700 14px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 8px 12px 6px; border-radius: 999px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 18px/1 var(--display); text-decoration: none; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-gold { background: linear-gradient(#ffd766, var(--gold) 60%, var(--gold-deep)); color: var(--ink); box-shadow: 0 6px 18px rgba(246, 196, 69, 0.25); }
.btn-line { border: 2px solid rgba(238, 241, 255, 0.55); color: var(--chalk); }
.btn-line:hover { background: rgba(238, 241, 255, 0.08); }
.phones { display: flex; justify-content: center; gap: 14px; min-width: 0; }
.phone { width: min(260px, calc(50% - 7px)); min-width: 0; border-radius: 30px; overflow: hidden; border: 6px solid #0b0f2e; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); background: #0b0f2e; }
.phone + .phone { margin-top: 48px; }

/* Sections */
section { padding: 48px 0; }
h2 { font: 800 clamp(32px, 5vw, 44px)/1.05 var(--display); margin: 0 0 18px; text-wrap: balance; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.card { background: rgba(238, 241, 255, 0.06); border: 1px solid rgba(238, 241, 255, 0.14); border-radius: 20px; padding: 22px; }
.how .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 22px/1 var(--display); margin-bottom: 12px; }
.card h3 { font: 700 22px/1.2 var(--display); margin: 0 0 6px; }
.card p { margin: 0; color: var(--chalk-soft); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modes .card { border-top: 4px solid var(--gold); }
.modes ul { margin: 10px 0 0; padding-left: 20px; color: var(--chalk-soft); }
.modes li { margin: 4px 0; }

/* Footer */
footer { border-top: 1px solid rgba(238, 241, 255, 0.14); padding: 28px 0 40px; margin-top: 32px; color: var(--chalk-soft); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Long-form pages (privacy, account deletion): dark ink on paper for comfortable reading. */
.doc { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 36px 40px 40px; margin: 8px 0 24px; max-width: 800px; }
.doc h1 { font: 800 clamp(36px, 7vw, 50px)/1.05 var(--display); margin: 0 0 6px; }
.doc h2 { font: 800 26px/1.2 var(--display); margin: 34px 0 8px; }
.doc p, .doc li { color: #26314f; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: #1f4fd1; font-weight: 700; }
.doc .muted { color: var(--muted); }
.doc .short { background: #fff2c9; border-radius: 16px; padding: 14px 18px; margin: 18px 0 0; box-shadow: inset 0 0 0 2px #efd07a; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #e4dcc8; }
.doc th { font-family: var(--display); font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .how, .modes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav { gap: 14px; font-size: 15px; }
  .doc { padding: 24px 18px 28px; border-radius: 18px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td:first-child { font-weight: 700; padding-bottom: 0; border: 0; }
  .phone + .phone { margin-top: 32px; }
  .phone { border-width: 4px; border-radius: 22px; }
}
@media (max-width: 400px) { .top nav a[href="#how"] { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
