/* FIN X – Event Engagement Zone · JioFinance brand palette */
:root {
  --gold: #D5A963;
  --gold-soft: #FBF4E8;
  --purple: #6D17CE;
  --purple-dark: #5610A6;
  --purple-soft: #F3EAFD;
  --sky: #278BC1;
  --sky-soft: #E8F3FA;
  --navy: #00065A;
  --grey: #F5F5F6;
  --white: #FFFFFF;
  --ink: #12143A;
  --muted: #5C5F7A;
  --line: #E3E4EC;
  --red: #C62828;
  --red-soft: #FDECEC;
  --green: #1E8E4E;
  --green-soft: #E7F6EE;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 6, 90, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  color: var(--ink);
  background: var(--grey);
  font-size: 17px;
  line-height: 1.45;
}

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: var(--white); }
.topbar__inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 54px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.brand__name { font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--gold); }
.brand__sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.station { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.station__label { opacity: .7; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.station__pill {
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
}
.station__change { color: var(--white); opacity: .7; font-size: 13px; }
.station__change:hover { opacity: 1; }
/* brand dot strip (gold / purple / sky) */
.dots {
  height: 10px;
  background:
    radial-gradient(circle, var(--gold) 2.5px, transparent 3px) 0 0 / 30px 10px,
    radial-gradient(circle, var(--purple) 2.5px, transparent 3px) 10px 0 / 30px 10px,
    radial-gradient(circle, var(--sky) 2.5px, transparent 3px) 20px 0 / 30px 10px;
  opacity: .9;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 48px; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin: 0 auto;
}
.card--narrow { max-width: 620px; }
.card--center { text-align: center; }
.eyebrow { margin: 0 0 6px; color: var(--sky); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; color: var(--navy); letter-spacing: .01em; }
.subtitle { margin: 0 0 24px; color: var(--muted); }
.label { font-weight: 700; margin: 8px 0 12px; color: var(--navy); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.field input[type=text], .field input[type=tel] {
  width: 100%; font: inherit; font-size: 19px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
  transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--purple); }
.field--error input[type=text], .field--error input[type=tel], .field--error .phone { border-color: var(--red); }
.field__err { color: var(--red); font-size: 14px; margin: 6px 0 0; }
.field__hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone { display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.phone:focus-within { border-color: var(--purple); }
.phone__cc { background: var(--grey); padding: 14px 14px; font-size: 19px; color: var(--muted); font-weight: 600; }
.phone input[type=tel] { border: 0; border-radius: 0; font-size: 22px; letter-spacing: .08em; }
.readonly {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--grey); border-radius: 12px; padding: 14px 16px; font-size: 19px; font-weight: 600;
}
.readonly a { font-size: 14px; color: var(--purple); font-weight: 600; }

/* segmented YES / NO */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg__opt { margin: 0 !important; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: block; text-align: center; padding: 14px; font-weight: 700; font-size: 18px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--muted);
}
.seg__opt input:checked + span { border-color: var(--purple); background: var(--purple); color: var(--white); }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--purple-soft); }

.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--purple); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  border: 0; border-radius: 12px; padding: 14px 22px; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn--block { width: 100%; }
.btn--lg { padding: 18px 22px; font-size: 18px; }
.btn--primary { background: var(--purple); color: var(--white); }
@media (hover: hover) { .btn--primary:hover { background: var(--purple-dark); } }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--ghost { background: var(--grey); color: var(--ink); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-muted { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: 14px 16px; margin: 0 auto 18px; font-weight: 600; max-width: 620px; }
.alert--error { background: var(--red-soft); color: var(--red); }
.alert--success { background: var(--green-soft); color: var(--green); }

/* ---------- Station setup ---------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.game {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 28px 22px; border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--white);
}
.game--current { border-color: var(--purple); }
@media (hover: hover) { .game:hover { border-color: var(--purple); } }
.game__title { font-size: 22px; font-weight: 800; color: var(--navy); }
.game__desc { color: var(--muted); flex: 1; }
.game__icon { width: 72px; height: 72px; border-radius: 50%; position: relative; }
.game__icon--claw_machine { background: var(--gold-soft); }
.game__icon--claw_machine::after {
  content: ""; position: absolute; left: 50%; top: 14px; width: 4px; height: 22px; background: var(--navy); transform: translateX(-50%);
  box-shadow: none;
}
.game__icon--claw_machine::before {
  content: ""; position: absolute; left: 50%; top: 34px; width: 30px; height: 18px;
  border: 4px solid var(--navy); border-top: 0; border-radius: 0 0 16px 16px; transform: translateX(-50%);
}
.game__icon--catch_the_stick { background: var(--sky-soft); }
.game__icon--catch_the_stick::before {
  content: ""; position: absolute; inset: 16px 22px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 5px, transparent 5px 12px);
  border-radius: 3px;
}

/* ---------- Participant summary ---------- */
.pcard {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: var(--purple-soft); border-radius: 14px; padding: 16px 18px; margin: 18px 0;
}
.pcard__k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pcard__v { display: block; font-weight: 700; font-size: 18px; color: var(--navy); word-break: break-word; }
.rules { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rules li {
  background: var(--sky-soft); color: var(--navy); font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- Score options ---------- */
.options { display: grid; gap: 14px; }
.options--claw { grid-template-columns: 1fr 1fr; }
.options--grid { grid-template-columns: repeat(6, 1fr); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__body {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 88px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--white);
  transition: border-color .12s, background .12s, transform .12s;
}
@media (hover: hover) { .opt:hover .opt__body { border-color: var(--gold); } }
.opt__pts { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.opt__pts small { font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.opt__sticks { font-size: 13px; color: var(--muted); margin-top: 4px; }
.opt__desc { color: var(--muted); font-size: 15px; margin-top: 8px; }
.opt--big .opt__body { min-height: 170px; padding: 20px; }
.opt--big .opt__pts { font-size: 40px; }
.opt input:checked + .opt__body {
  border-color: var(--gold); background: #F7EBD3; box-shadow: 0 0 0 2px var(--gold) inset;
}
.opt input:checked + .opt__body::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple); color: var(--white); font-size: 14px; font-weight: 800;
  display: grid; place-items: center;
}
.opt input:checked + .opt__body .opt__pts { color: var(--purple); }
.opt input:focus-visible + .opt__body { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Success / done ---------- */
.tick, .stop { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; position: relative; }
.tick { background: var(--green-soft); }
.tick::after {
  content: ""; position: absolute; left: 27px; top: 16px; width: 18px; height: 34px;
  border: solid var(--green); border-width: 0 6px 6px 0; transform: rotate(45deg);
}
.stop { background: var(--gold-soft); }
.stop::after {
  content: "!"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 44px; font-weight: 900; color: var(--gold);
}
.summary { margin: 22px 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.summary__pts { background: var(--gold-soft); }
.summary__pts dd { font-size: 24px; color: var(--purple); }
.summary__pts small { font-size: 13px; color: var(--muted); }
.message { color: var(--ink); margin: 0 0 22px; }
.edited-note { color: var(--muted); font-size: 14px; margin: -10px 0 16px; }
.hint-box { background: var(--sky-soft); color: var(--navy); border-radius: 12px; padding: 12px 16px; }
.who { color: var(--muted); font-size: 15px; }
.edit { margin-top: 24px; text-align: left; border-top: 1px dashed var(--line); padding-top: 16px; }
.edit summary { cursor: pointer; color: var(--purple); font-weight: 600; text-align: center; list-style: none; }
.edit summary::-webkit-details-marker { display: none; }
.edit[open] summary { margin-bottom: 16px; }
.edit .options--grid { grid-template-columns: repeat(4, 1fr); }
.edit .opt--big .opt__body { min-height: 110px; }
.edit .opt--big .opt__pts { font-size: 30px; }
.edit .opt__desc { display: none; }

/* ---------- Confirm modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0, 6, 90, .55);
  display: grid; place-items: center; padding: 20px; z-index: 50;
}
.modal[hidden] { display: none; }
.modal__card { background: var(--white); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 440px; text-align: center; }
.modal__title { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.modal__score { font-size: 44px; font-weight: 800; color: var(--purple); margin: 6px 0 0; }
.modal__score small { font-size: 15px; color: var(--muted); font-weight: 600; }
.modal__game { color: var(--muted); margin: 4px 0 22px; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .options--grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 18px 12px 36px; }
  .card { padding: 22px 18px; }
  .title { font-size: 21px; }
  .brand__logo { height: 42px; }
  .brand__name { font-size: 19px; }
  .row2, .games, .options--claw { grid-template-columns: 1fr; }
  .options--grid, .edit .options--grid { grid-template-columns: repeat(3, 1fr); }
  .pcard { grid-template-columns: 1fr 1fr; }
  .pcard > div:last-child { grid-column: 1 / -1; }
  .opt--big .opt__body { min-height: 120px; }
}

/* =========================================================
   TOUCH & TABLET
   ========================================================= */
button, a, label, input, summary { touch-action: manipulation; }
.opt, .seg__opt, .game, .check { -webkit-user-select: none; user-select: none; }
.btn:active, .opt:active .opt__body, .seg__opt:active span, .game:active { transform: scale(.98); }
.topbar__inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.topbar { padding-top: env(safe-area-inset-top); }
.wrap { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.station__change { padding: 10px 4px; }           /* bigger tap target */
.readonly a { padding: 8px 0 8px 12px; }
.edit summary { padding: 10px 0; }
.score-side .title, .score-side .pcard { margin-top: 0; }

/* Portrait tablets (e.g. 768×1024, 800×1280, 820×1180): use the height */
@media (min-width: 700px) and (orientation: portrait) {
  .wrap { padding-top: 22px; }
  .options--grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .opt__body { min-height: 96px; }
  .opt__pts { font-size: 30px; }
  .opt--big .opt__body { min-height: 230px; }
  .opt--big .opt__pts { font-size: 48px; }
  .card--narrow { max-width: 660px; }
  .field input[type=text], .field input[type=tel] { padding: 16px 18px; }
  .seg__opt span { padding: 18px; }
}

/* Landscape tablets (e.g. 1024×768, 1180×820, 1280×800): compact + two columns */
@media (min-width: 900px) and (orientation: landscape) and (max-height: 960px) {
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 20px; }
  .dots { height: 8px; background-size: 30px 8px; }
  .wrap { padding-top: 16px; padding-bottom: 20px; max-width: 1220px; }
  .card { padding: 22px 26px; }
  .title { font-size: 23px; margin-bottom: 4px; }
  .subtitle { margin-bottom: 14px; }
  .eyebrow { margin-bottom: 2px; }
  .form { gap: 13px; }
  .field label { margin-bottom: 6px; }
  .field input[type=text], .field input[type=tel], .phone__cc { padding-top: 11px; padding-bottom: 11px; }
  .seg__opt span { padding: 11px; }
  .btn--lg { padding: 15px 22px; }
  .card--narrow { max-width: 680px; }

  /* Score entry: info on the left, scores on the right */
  .card--score { max-width: none; }
  .score-layout { display: grid; grid-template-columns: minmax(260px, 30%) 1fr; gap: 28px; align-items: start; }
  .score-side .pcard { grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
  .score-side .rules { flex-direction: column; align-items: flex-start; }
  .score-main .label { margin-top: 0; }
  .score-main .form { gap: 14px; }
  .options--grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .opt__body { min-height: 84px; }
  .opt--big .opt__body { min-height: 250px; }
  .opt--big .opt__pts { font-size: 46px; }

  /* Success: summary left, message + actions right */
  .card--success { max-width: 1000px; }
  .success-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; text-align: left; }
  .success-side .tick { margin: 0 0 10px; width: 60px; height: 60px; }
  .success-side .tick::after { left: 20px; top: 10px; width: 16px; height: 30px; }
  .success-side .title { font-size: 22px; }
  .success-side .summary { margin: 14px 0 0; }
  .success-main .edited-note { margin: 0 0 12px; }
  .success-main .edit { margin-top: 16px; }
  .success-main .edit .options--grid { grid-template-columns: repeat(4, 1fr); }
  .success-main .edit .opt__body { min-height: 64px; }
  .success-main .edit .opt__pts { font-size: 22px; }
  .success-main .edit .opt__sticks { display: none; }
  .success-main .edit .opt--big .opt__body { min-height: 80px; }

  .games { gap: 16px; }
  .game { padding: 22px; }
}

/* Short landscape screens (browser bars visible): tighten further */
@media (min-width: 900px) and (orientation: landscape) and (max-height: 700px) {
  .opt--big .opt__body { min-height: 190px; }
  .opt__body { min-height: 74px; }
  .score-side .rules li { padding: 5px 12px; font-size: 13px; }
}

/* ---------- JioFinance App toggle switch ---------- */
.field label.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.toggle-row__q { font-weight: 600; color: var(--navy); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.toggle input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.toggle__track {
  position: relative; width: 72px; height: 40px; border-radius: 999px;
  background: #C9CBD8; transition: background .2s;
}
.toggle__thumb {
  position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 6px rgba(0, 6, 90, .25); transition: transform .2s;
}
.toggle__text { font-weight: 800; font-size: 18px; width: 38px; color: var(--muted); }
.toggle__text--yes { display: none; color: var(--purple); }
.toggle input:checked ~ .toggle__track { background: var(--purple); }
.toggle input:checked ~ .toggle__track .toggle__thumb { transform: translateX(32px); }
.toggle input:checked ~ .toggle__text--no { display: none; }
.toggle input:checked ~ .toggle__text--yes { display: inline; }
.toggle input:focus-visible ~ .toggle__track { box-shadow: 0 0 0 3px var(--purple-soft); }
.field label.toggle-row:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); }
@media (max-width: 640px) {
  .field label.toggle-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- JioFinance App required prompt ---------- */
.app-prompt {
  display: none; margin-top: 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--gold-soft); border: 2px solid var(--gold); color: var(--navy); font-size: 15px;
}
.app-prompt strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--navy); }
.app-prompt--show { display: block; animation: nudge .35s ease; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.field--error label.toggle-row { border-color: var(--gold); }
.game__url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; color: var(--sky); }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin .wrap, .admin .topbar__inner { max-width: 1240px; }
.station__pill--admin { background: var(--sky); color: var(--white); }
.admin-login { margin-top: 24px; }
.input {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); width: 100%;
}
.input:focus { outline: none; border-color: var(--purple); }
.admin-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-bar .subtitle { margin: 0; font-size: 14px; }
.admin-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-bar__actions form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.stat__n { font-size: 32px; font-weight: 800; color: var(--purple); line-height: 1.1; }
.stat__l { font-weight: 700; color: var(--navy); font-size: 14px; }
.stat__s { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat--navy { background: var(--navy); }
.stat--navy .stat__n { color: var(--gold); }
.stat--navy .stat__l { color: var(--white); }
.stat--gold { background: var(--gold-soft); border: 2px solid var(--gold); }
.stat--gold .stat__n { color: var(--navy); }
.dist { padding: 16px 22px; margin-bottom: 14px; }
.dist summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.dist__bars { display: grid; grid-template-columns: repeat(11, 1fr); gap: 8px; height: 150px; margin-top: 14px; align-items: end; }
.dist__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.dist__bar { width: 70%; background: var(--sky); border-radius: 6px 6px 0 0; min-height: 3px; }
.dist__n { font-size: 13px; font-weight: 700; color: var(--navy); }
.dist__k { font-size: 12px; color: var(--muted); }
.admin-list { padding: 20px 22px; }
.admin-filters { display: grid; grid-template-columns: 1fr 240px auto auto; gap: 10px; align-items: center; }
.admin-count { color: var(--muted); font-size: 14px; margin: 14px 0 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.table th { position: sticky; top: 0; background: var(--navy); color: var(--white); text-align: left; font-weight: 600; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:nth-child(even) td { background: #FAFAFC; }
.table .num { text-align: right; white-space: nowrap; }
.table .mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.table .muted { color: var(--muted); white-space: nowrap; font-size: 14px; }
.table .empty { text-align: center; color: var(--muted); padding: 30px; }
.na { color: #B9BBC9; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 999px; background: var(--gold-soft); color: #8A6420; margin-left: 4px; vertical-align: 2px; }
.tag--edit { background: var(--sky-soft); color: var(--sky); cursor: help; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; color: var(--muted); }
@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--navy { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; }
  .table td, .table th { padding-left: 10px; padding-right: 10px; }
  .table { font-size: 14px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-filters .input[type=search] { grid-column: 1 / -1; }
}

/* ---------- JioFinance brand band (under the header) ---------- */
.brand__text { border-left: 0; padding-left: 0; }
.brandband {
  display: flex; align-items: center; height: 44px; padding: 7px 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-sizing: content-box;
}
.brandband__dots {
  flex: 1; height: 100%; min-width: 0;
  background: url(../img/jiofinance-band-dots.png) repeat-x;
  background-size: auto 100%;
}
.brandband__dots--l { background-position: right center; }
.brandband__dots--r { background-position: left center; }
.brandband__logo { height: 100%; width: auto; margin: 0 14px; flex: none; }
@media (max-width: 640px) {
  .brandband { height: 32px; padding: 5px 0; }
  .brandband__logo { margin: 0 8px; }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 960px) {
  .brandband { height: 36px; padding: 5px 0; }
}

/* ---------- Admin: edit scores ---------- */
.btn--sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.link-back { display: inline-block; color: var(--purple); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 6px; }
.stat--inline { min-width: 180px; }
.edit-games { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.edit-game { padding: 22px; margin: 0; width: 100%; }
.edit-game__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.edit-game__title { margin: 0; font-size: 20px; color: var(--navy); }
.edit-game__score { font-size: 26px; font-weight: 800; color: var(--purple); }
.edit-game__score small { font-size: 13px; color: var(--muted); }
.muted-text { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
.edit-game .options--grid { grid-template-columns: repeat(4, 1fr); }
.edit-game .opt__body { min-height: 70px; }
.edit-game .opt__pts { font-size: 22px; }
.edit-game .opt--big .opt__body { min-height: 110px; }
.edit-game .opt--big .opt__pts { font-size: 30px; }
.edit-game .opt__desc { font-size: 13px; }
@media (max-width: 900px) { .edit-games { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .table .col-app { display: none; }
  .table { min-width: 640px; }
}

/* ---------- Header lockup (JioFinance | FinX Season 3) ---------- */
.brand { gap: 18px; }
.brand__lockup { height: 52px; width: auto; display: block; }
.brand__zone {
  border-left: 1px solid rgba(255,255,255,.3); padding-left: 16px;
  font-size: 13px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.brandband--dots { height: 22px; padding: 0; }
.brandband--dots .brandband__dots { background-position: center; }
@media (min-width: 900px) and (orientation: landscape) and (max-height: 960px) {
  .brand__lockup { height: 42px; }
  .brandband--dots { height: 18px; padding: 0; }
}
@media (max-width: 640px) {
  .brand__lockup { height: 38px; }
  .brand__zone { display: none; }
  .brandband--dots { height: 16px; padding: 0; }
}
.brandband--dots .brandband__dots { background-image: url(../img/jiofinance-band-dots-2row.png); background-repeat: repeat-x; background-size: auto 100%; }
.brandband--dots { padding: 6px 0; }
@media (min-width: 900px) and (orientation: landscape) and (max-height: 960px) { .brandband--dots { padding: 5px 0; } }
@media (max-width: 640px) { .brandband--dots { padding: 4px 0; } }

/* =========================================================
   RELIANCE NAVY PAGE BACKGROUND
   ========================================================= */
body {
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 50% 35%, #141C86 0%, rgba(0, 6, 90, 0) 70%);
  background-attachment: fixed;
}
.brandband, .brandband--dots { background-color: var(--navy); border-bottom: 0; }
.topbar { box-shadow: none; }
.card, .stat { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.stat--navy { background: #0B137A; border: 1px solid rgba(255,255,255,.18); }

/* text that sits directly on the navy background */
.admin-bar .title, .wrap > .admin-bar .title { color: var(--white); }
.admin-bar .subtitle { color: rgba(255,255,255,.75); }
.link-back { color: var(--gold); }
.admin-bar .btn--ghost { background: rgba(255,255,255,.12); color: var(--white); }
@media (hover: hover) { .admin-bar .btn--ghost:hover { background: rgba(255,255,255,.2); } }
.alert--success { background: #E7F6EE; }
