/* Indoor Cricket 27 — site styles.
   Palette and type follow the in-game front end (IndoorMenu.cpp, "style A": broadcast, gold on navy). */

:root {
  --gold: #f5c518;          /* menu Gold */
  --gold-hi: #ffd84d;
  --gold-score: #e8b54a;    /* scoreboard gold */
  --ink: #0a0f1d;           /* menu Ink */
  --navy: rgba(6, 10, 24, 0.86);
  --panel: #0b1b33;         /* scoreboard navy */
  --line: #1d3255;
  --muted: #8e9bb4;
  --soft: #b9c3d6;
  --sky: #7fa8e8;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.06);
  --footer: rgba(3, 6, 14, 0.92);
  --deep: #04081a;
  --creator-top: #00042e;   /* creator studio background */
  --creator-mid: #000327;

  --f-heavy: "Roboto", system-ui, sans-serif;      /* Roboto Black Italic in game */
  --f-cond: "Roboto Condensed", "Roboto", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --skew: -12deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--ink); color: var(--soft);
  font: 500 17px/1.6 var(--f-heavy); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.h-heavy, h1, h2, h3 {
  margin: 0 0 .4em; font-family: var(--f-heavy); font-weight: 900; font-style: italic;
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; color: var(--white);
}
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.gold { color: var(--gold); }
.kicker { display: block; font: 700 .78rem/1 var(--f-heavy); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker b { color: var(--gold); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--soft); max-width: 60ch; }

/* ---------- Logo (game Logo(): "I N D O O R" + CRICKET 27) ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--white); }
.logo-top { font: 700 .7em/1 var(--f-heavy); letter-spacing: .55em; color: var(--gold); margin-bottom: .18em; padding-left: .08em; }
.logo-main { font: 900 italic 2.6em/0.92 var(--f-heavy); letter-spacing: -0.02em; white-space: nowrap; }
.logo-main span { color: var(--gold); }

/* ---------- Skewed menu buttons ---------- */
.mbtn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 58px; padding: 0 30px 0 34px; transform: skewX(var(--skew));
  background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-left: 4px solid rgba(255,255,255,.55); color: var(--white); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.mbtn > * { transform: skewX(calc(var(--skew) * -1)); }
.mbtn .m-label { font: 900 italic 1.45rem/1 var(--f-heavy); text-transform: uppercase; letter-spacing: .005em; }
.mbtn .m-tag { font: 700 .74rem/1 var(--f-heavy); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.mbtn:hover { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(245,197,24,.18), rgba(255,255,255,.04)); }
.mbtn.is-hot { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); border-left-color: #fff; color: var(--ink); box-shadow: 0 10px 40px rgba(245,197,24,.25); }
.mbtn.is-hot .m-tag { color: rgba(10,15,29,.72); }
.menu-stack { display: grid; gap: 12px; max-width: 560px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  transform: skewX(var(--skew)); background: var(--gold); color: var(--ink); border: 0; cursor: pointer;
  font: 900 italic 1rem/1 var(--f-heavy); text-transform: uppercase; letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.cta > span { transform: skewX(calc(var(--skew) * -1)); }
.cta:hover { background: var(--gold-hi); }
.cta--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.cta--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Panels (gold strip over navy, as in game) ---------- */
.panel { background: var(--navy); border-top: 5px solid var(--gold); padding: 26px 30px 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel-label { font: 700 .72rem/1 var(--f-heavy); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.panel-title { font: 900 italic 1.7rem/1.05 var(--f-heavy); text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.rows { display: grid; }
.rows li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; color: var(--white); }
.rows li:last-child { border-bottom: 0; }
.rows li b { color: var(--gold); font-weight: 700; text-align: right; }

/* ---------- Key chips + hint bar (game Footer()) ---------- */
.key { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 3px; background: rgba(255,255,255,.14); color: #fff; font: 700 .72rem/1 var(--f-heavy); letter-spacing: .04em; }
.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; font-size: .95rem; color: #fff; }
.hints span { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 76px; transition: background .3s ease, box-shadow .3s ease; }
.site-header.is-solid { background: rgba(4, 8, 20, .96); }
.site-header.is-open { background: #04081a; }
.site-header.is-solid, .site-header.is-open { box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo { font-size: 13px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link { padding: 10px 14px; font: 700 .82rem/1 var(--f-heavy); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); transition: color .2s ease; }
.nav a.nav-link:hover { color: var(--gold); }
.nav .cta { margin-left: 12px; min-height: 42px; padding: 0 20px; font-size: .9rem; }
.nav-toggle { display: none; width: 46px; height: 46px; background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease, background .25s ease; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -6px; } .nav-toggle i::after { top: 6px; }
.is-open .nav-toggle i { background: transparent; }
.is-open .nav-toggle i::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: #04081a;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .is-open .nav { opacity: 1; visibility: visible; }
  .nav a.nav-link { padding: 20px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .cta { margin: 26px 0 0; min-height: 54px; }
}
body.locked { overflow: hidden; }

/* ---------- Hero: venue slideshow (game main menu background) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; background: var(--deep); }
.slides, .slides div { position: absolute; inset: 0; }
.slides { z-index: -2; }
.slides div { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.slides div.is-on { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,8,20,.95) 0%, rgba(4,8,20,.78) 38%, rgba(4,8,20,.25) 75%, rgba(4,8,20,.45) 100%),
              linear-gradient(0deg, rgba(4,8,20,.95) 0%, transparent 35%);
}
.hero-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: end; padding-top: 140px; padding-bottom: 56px; }
.hero .logo { font-size: clamp(22px, 4.6vw, 44px); margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; color: #d4dbe8; }
.presents { font: 700 .78rem/1 var(--f-heavy); letter-spacing: .32em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; display: block; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); font: 700 .75rem/1 var(--f-heavy); letter-spacing: .14em; color: #fff; background: rgba(4,8,20,.4); }
.chip svg { width: 14px; height: 14px; color: var(--gold); }
.hero-bar { background: var(--footer); }
.hero-bar .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-bar .right { font: 700 .82rem/1 var(--f-heavy); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--panel { background: linear-gradient(180deg, #071022, var(--ink)); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.shot { position: relative; overflow: hidden; background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--framed { border-top: 5px solid var(--gold); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.wip { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; background: rgba(4,8,20,.8); font: 700 .66rem/1 var(--f-heavy); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 34px; background: var(--line); border-top: 4px solid var(--gold); }
.stat { background: var(--panel); padding: 20px 18px; }
.stat strong { display: block; font: 900 italic 2rem/1 var(--f-heavy); color: var(--gold); margin-bottom: 6px; }
.stat span { font: 700 .72rem/1.3 var(--f-heavy); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 30px 28px 28px; background: var(--panel); border-top: 4px solid var(--line); transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.feature:hover { border-top-color: var(--gold); transform: translateY(-4px); background: #0e2140; }
.feature .num { font: 900 italic 1rem/1 var(--f-heavy); color: var(--gold); margin-bottom: 18px; display: block; }
.feature h3 { margin-bottom: 12px; }
.feature p { margin: 0; color: var(--soft); font-size: .98rem; }

/* Modes (menu replica) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.mode-desc { margin: 8px 0 18px 30px; color: var(--soft); font-size: .96rem; max-width: 46ch; }

/* ---------- Create Player (creator studio background) ---------- */
.creator {
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(40, 52, 110, .35), transparent 70%),
    linear-gradient(180deg, var(--creator-top) 0%, var(--creator-mid) 55%, #01020b 100%);
}
.creator-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cshot { margin: 0; }
.cshot .g { display: block; width: 100%; aspect-ratio: 16 / 9; border-top: 4px solid var(--gold); }
.cshot figcaption { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 14px 2px 0; }
.cshot figcaption b { font: 900 italic 1.15rem/1 var(--f-heavy); text-transform: uppercase; color: #fff; }
.cshot figcaption span { font: 700 .7rem/1.3 var(--f-heavy); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.creator-note { margin-top: 28px; font-size: .9rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 12px; }
.g { position: relative; overflow: hidden; background: var(--panel); border: 0; padding: 0; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; filter: saturate(.95); }
.g:hover img { transform: scale(1.05); filter: saturate(1.1); }
.g::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.g:hover::after { transform: scaleX(1); }
.g--a { grid-column: span 4; grid-row: span 2; }
.g--b { grid-column: span 2; grid-row: span 1; }
.g--c { grid-column: span 2; grid-row: span 1; }
.g--d { grid-column: span 3; grid-row: span 2; }
.g--e { grid-column: span 3; grid-row: span 2; }
.g--f { grid-column: span 6; grid-row: span 3; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(2, 4, 10, .92); }
.lightbox img { width: 100%; height: auto; border-top: 5px solid var(--gold); }
.lightbox p { margin: 12px 0 0; color: var(--soft); font-size: .95rem; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: rgba(4,8,20,.85); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Waitlist ---------- */
.waitlist { background: linear-gradient(180deg, var(--ink), #060c1c); }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.wl-perks { display: grid; gap: 14px; margin-top: 26px; }
.wl-perks li { display: flex; gap: 14px; align-items: flex-start; color: #fff; }
.wl-perks svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 700 .72rem/1 var(--f-heavy); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input[type=text], .field input[type=email], .field select {
  width: 100%; min-height: 50px; padding: 0 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 0;
  color: #fff; font: 500 1rem/1 var(--f-heavy); appearance: none; -webkit-appearance: none; transition: border-color .2s ease, background .2s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--panel); color: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(245,197,24,.06); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.plat { position: relative; }
.field .plat { text-transform: none; letter-spacing: 0; padding: 0; }
.plat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plat span { display: grid; place-items: center; min-height: 46px; padding: 0 6px; border: 1px solid rgba(255,255,255,.18); font: 900 italic .92rem/1 var(--f-heavy); color: #fff; text-align: center; transition: background .15s ease, border-color .15s ease; }
.plat input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.plat input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin: 2px 0 0; flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 22px; }
.form-foot .cta { min-height: 54px; padding: 0 34px; font-size: 1.05rem; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }
.fine a { text-decoration: underline; }
.msg { margin-bottom: 18px; padding: 14px 16px; font-weight: 500; border-left: 4px solid; }
.msg--ok { background: rgba(245,197,24,.1); border-color: var(--gold); color: #fff; }
.msg--err { background: rgba(232, 80, 80, .12); border-color: #e85050; color: #ffd9d9; }
.msg[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #03060e; padding: 56px 0 0; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer .logo { font-size: 12px; margin-bottom: 18px; }
.site-footer h4 { margin: 0 0 14px; font: 700 .74rem/1 var(--f-heavy); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--gold); }
.studio { font: 900 italic 1.1rem/1 var(--f-heavy); color: #fff; text-transform: uppercase; }
.studio span { color: var(--gold); }
.credits { font-size: .78rem; line-height: 1.6; color: #66748d; border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; }
.credits a { text-decoration: underline; }
.foot-bar { background: var(--footer); border-top: 1px solid rgba(255,255,255,.06); }
.foot-bar .wrap { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .84rem; }

/* ---------- Legal pages ---------- */
.page-top { padding: 150px 0 48px; background: linear-gradient(180deg, var(--creator-top), var(--ink)); }
.legal { max-width: 820px; padding-bottom: 96px; }
.legal h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal a { color: var(--gold); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-body { grid-template-columns: 1fr; align-items: end; }
  .hero-body .panel { max-width: 460px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .wl-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g--a { grid-column: span 2; grid-row: span 2; }
  .g--b, .g--c { grid-column: span 1; }
  .g--d, .g--e, .g--f { grid-column: span 2; grid-row: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-bar .right { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .form-grid, .creator-shots { grid-template-columns: 1fr; }
  .plats { grid-template-columns: repeat(2, 1fr); }
  .mbtn { min-height: 54px; padding: 0 20px 0 24px; }
  .mbtn .m-label { font-size: 1.15rem; }
  .mbtn .m-tag { font-size: .62rem; letter-spacing: .14em; }
  .foot-grid { grid-template-columns: 1fr; }
  .hints { gap: 10px 18px; font-size: .85rem; }
  .hero-body { padding-top: 110px; padding-bottom: 36px; }
}
