:root {
  /* Surfaces, restrained dark navy matched to futsal.lk (Novità family look).
     Solid lines + a single soft shadow read more professional than glows. */
  --bg-0: #0b1120;
  --bg-1: #0b1120;
  --surface: #111a2e;
  --surface-2: #16223c;
  --surface-3: #1c2a49;
  --sunken: #0c1424;
  --line: #223154;
  --line-2: #2b3c63;

  /* Text */
  --text: #e5e7eb;
  --muted: #93a4c3;
  --faint: #64769b;

  /* Accents (semantic). Cricket keeps green; futsal is the same frame in red. */
  --accent: #2ee06a;      /* brand / six */
  --accent-2: #16a34a;
  --blue: #38bdf8;        /* four / info, matched to futsal --accent */
  --amber: #fbbf24;       /* chase / extras */
  --danger: #f87171;      /* wicket */

  /* Elevation, flat and soft (no colored glows, matches futsal) */
  --sh-1: 0 10px 30px rgba(0,0,0,.35);
  --sh-2: 0 18px 44px rgba(0,0,0,.45);
  --glow-blue: 0 10px 30px rgba(0,0,0,.35);
  --glow-green: 0 10px 30px rgba(0,0,0,.35);
  --glow-red: 0 10px 30px rgba(0,0,0,.35);

  --r-lg: 16px; --r-md: 14px; --r-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* One consistent page rhythm across every screen. Nav clearance is handled
     separately by body.has-appnav #app, so bottom padding stays modest. */
  --gutter: 18px;
  --page-top: 14px;
  --page-bottom: 30px;

  /* Novità Sports shared design system, Sora display + Inter body. */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-head: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --brand: #2ee06a;
  --brand-2: #16a34a;
  --brand-ink: #04140a;
  --brand-grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #16233f 0%, #0b1120 60%) var(--bg-0);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  font-variant-numeric: tabular-nums;
}
#app { min-height: 100%; }

.wrap { max-width: 640px; margin: 0 auto; padding: calc(var(--page-top) + var(--safe-top)) var(--gutter) calc(var(--page-bottom) + var(--safe-bottom)); }

/* Typography */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-head); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.brand h1 { font-size: 26px; }
.subtitle { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }

.hero-logo {
  display: flex; justify-content: center; margin: 6px auto 14px; padding: 22px 26px; max-width: 380px;
  background: linear-gradient(180deg, #ffffff, #eef2f7); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.6);
}
.hero-logo img { width: 300px; max-width: 100%; height: auto; display: block; }
.logo-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; padding: 5px; background: linear-gradient(180deg, #ffffff, #e9edf3); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.logo-chip img { display: block; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--sh-1);
}
.card h2 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.card h2 .ic { color: var(--accent); }

/* Buttons — flat, app-standard shapes (Apple HIG / Material 3 / futsal.lk).
   Deliberately NO glossy inner highlight and NO coloured glow: those read as
   dated skeuomorphism and look wrong inside a native app shell. Depth comes from
   colour and a clean press state instead. */
button, .btn {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease, transform .1s ease;
  touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  button:hover, .btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.24); }
}
/* Native-feeling press: a quick dim + micro-scale, no bounce. */
button:active, .btn:active { opacity: .82; transform: scale(.985); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46,224,106,.4); }
button:disabled, .btn:disabled { opacity: .4; pointer-events: none; }

/* PRIMARY — chunky 3D, presses down like a physical key. */
.btn-primary {
  background: #16c964; color: #05331b; border-color: transparent; font-weight: 800; border-radius: 14px;
  box-shadow: 0 4px 0 #0c8a44;
  transition: transform .09s ease, box-shadow .09s ease, background .15s ease;
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 #0c8a44; opacity: 1; }
@media (hover: hover) { .btn-primary:hover { background: #1ad46c; transform: translateY(2px); box-shadow: 0 2px 0 #0c8a44; border-color: transparent; } }
/* SECONDARY — green tonal, quiet. */
.btn-tonal { background: rgba(46,224,106,.14); color: #7ff0a8; border-color: transparent; font-weight: 700; }
@media (hover: hover) { .btn-tonal:hover { background: rgba(46,224,106,.2); border-color: transparent; } }
.btn-blue    { background: #2f6fe6; color: #fff; border-color: transparent; font-weight: 700; }
.btn-danger  { background: #ef4444; color: #fff; border-color: transparent; font-weight: 700; }
@media (hover: hover) {
  .btn-blue:hover    { background: #3a7bf0; border-color: transparent; }
  .btn-danger:hover  { background: #f05555; border-color: transparent; }
}
/* Quiet actions */
.btn-ghost { background: transparent; border-color: transparent; font-weight: 600; color: var(--muted); }
@media (hover: hover) { .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: transparent; color: var(--text); } }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 15px 18px; font-size: 16px; min-height: 52px; border-radius: 13px; }

.ic { flex: 0 0 auto; display: block; }
svg.ic { vertical-align: middle; }

/* Inputs */
/* Every text-like input, whatever its type (email/password/tel/search/date...),
   plus textareas. Excludes the control types that need their own styling. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]):not(.venue-search),
textarea, select {
  font: inherit; width: 100%; color: var(--text);
  background: var(--sunken); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
input:focus:not(.venue-search), textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,224,106,.18); }
input::placeholder, textarea::placeholder { color: var(--faint); }
/* Safari/iOS autofill would otherwise paint the field white. */
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--sunken) inset;
  caret-color: var(--text);
}
label.field { display: block; margin-bottom: 12px; }
label.field .lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 700; letter-spacing: .02em; }
.inline { display: flex; align-items: center; gap: 10px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

/* Section label */
.lbl-sec { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 18px 0 9px; }

/* Code pill */
.codepill { display: inline-flex; align-items: center; gap: 8px; background: var(--sunken); border: 1px dashed var(--accent); color: var(--accent); font-weight: 800; letter-spacing: 4px; font-size: 22px; padding: 12px 18px; border-radius: 14px; }

/* Segmented control */
.seg { display: flex; background: var(--sunken); border: 1px solid var(--line); border-radius: 14px; padding: 5px; gap: 4px; }
.seg button { flex: 1; background: transparent; border: none; padding: 12px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0,0,0,.5); }

/* Chips (players) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--sunken); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 8px 8px 13px; font-size: 14px; font-weight: 600; }
.chip button { padding: 0; width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.06); border: none; color: var(--muted); }
.chip button:hover { color: var(--danger); }

/* Zone editor rows */
.zone-row { display: grid; grid-template-columns: 1fr 68px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: center; gap: 12px; }
.step-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #042311; }
.step-text { color: var(--muted); font-size: 14px; line-height: 1.35; }
.step-text b { color: var(--text); font-weight: 700; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topbar .code { font-weight: 800; letter-spacing: 3px; font-size: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px rgba(46,224,106,.2); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(245,69,92,.2); }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line-2); color: var(--muted); }

/* ============ SCORER HERO ============ */
.hero {
  border-radius: var(--r-lg); padding: 20px 18px 16px; margin-bottom: 14px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% -20%, rgba(61,139,255,.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); box-shadow: var(--sh-2);
}
.hero-team { text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--muted); }
.hero-team b { color: var(--text); }
.hero-score { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 2px 0 4px; }
.hs-num { font-size: 68px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.hs-num .sep { color: var(--faint); margin: 0 2px; font-weight: 800; }
.hs-num .wkts { color: var(--muted); }
.hs-overs { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; color: var(--muted); font-size: 16px; }
.hs-overs .ovlabel { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 8px; }
.stat { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--muted); }
.stat b { color: var(--text); }
.chase { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 13px; background: linear-gradient(180deg, rgba(247,178,59,.16), rgba(247,178,59,.06)); border: 1px solid rgba(247,178,59,.35); color: var(--amber); font-weight: 800; font-size: 15px; }
.chase .big { font-size: 20px; }

/* current over dots */
.over-dots { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; }
.odot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.odot.empty { border-style: dashed; color: transparent; }
.odot.four { background: var(--blue); border-color: transparent; color: #fff; }
.odot.six { background: var(--accent-2); border-color: transparent; color: #fff; }
.odot.w { background: var(--danger); border-color: transparent; color: #fff; }
.odot.ex { background: rgba(247,178,59,.18); border-color: rgba(247,178,59,.5); color: var(--amber); font-size: 10px; }

/* ============ BATTER / BOWLER STRIP ============ */
.figs-card { padding: 6px 4px; }
.batter-row, .bowler-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; }
.batter-row.on { background: linear-gradient(90deg, rgba(46,224,106,.10), transparent); }
.batter-row + .batter-row { margin-top: 2px; }
.batter-row .name, .bowler-row .name { font-weight: 700; display: inline-flex; align-items: center; }
.batter-row .figs, .bowler-row .figs { color: var(--muted); font-weight: 700; font-size: 14px; }
.batter-row .figs b { color: var(--text); font-size: 16px; }
.bowler-row { border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 12px 12px; color: var(--muted); }
.striker-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(46,224,106,.2); margin-right: 9px; }

/* ============ KEYPAD ============ */
.keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.key { min-width: 0; aspect-ratio: 1.3; border-radius: 16px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(180deg, var(--surface-3), #16203a); border: 1px solid var(--line-2); }
.key:active { transform: scale(.94); }
.key-boundaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.key-big { min-width: 0; border-radius: 16px; padding: 20px 0; font-size: 30px; font-weight: 900; }
.key-4 { background: linear-gradient(180deg, #4f97ff, #2f6fe6); border-color: transparent; color: #fff; box-shadow: var(--glow-blue); }
.key-6 { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: transparent; color: #042311; box-shadow: var(--glow-green); }

/* Zones */
.grid-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-zones .zone-btn { min-width: 0; }
.zone-btn { text-align: left; padding: 14px; border-radius: 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; background: linear-gradient(180deg, var(--surface-3), #16203a); border-width: 1.5px; }
.zone-btn .z-top { display: flex; align-items: baseline; gap: 8px; width: 100%; }
.zone-btn .z-name { font-weight: 800; font-size: 15px; }
.zone-btn .z-runs { font-size: 13px; color: var(--muted); font-weight: 700; margin-left: auto; }
.z-pill { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); background: rgba(247,178,59,.14); border: 1px solid rgba(247,178,59,.35); padding: 3px 8px; border-radius: 999px; }

/* Extras chips */
.extras-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.extras-row button { min-width: 0; padding: 13px 4px; font-size: 13px; font-weight: 700; border-radius: 12px; background: #0f1830; }

/* Toolbar (undo/swap) */
.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar button { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; }
.toolbar button:hover { color: var(--text); }

/* Ball-by-ball strip */
.timeline { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.ball { flex: none; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.ball.w { background: var(--danger); border-color: transparent; color: #fff; }
.ball.four { background: var(--blue); border-color: transparent; color: #fff; }
.ball.six { background: var(--accent-2); border-color: transparent; color: #fff; }
.ball.ex { background: rgba(247,178,59,.16); border-color: rgba(247,178,59,.4); color: var(--amber); }

/* ============ DISPLAY (broadcast) ============ */
.display-wrap { min-height: 100vh; display: flex; flex-direction: column; padding: calc(22px + var(--safe-top)) 22px calc(22px + var(--safe-bottom)); }
.disp-top { display: flex; align-items: center; justify-content: space-between; }
.disp-code { font-weight: 800; letter-spacing: 3px; color: var(--faint); }
.disp-center { margin: auto 0; text-align: center; }
.display-team { font-size: clamp(24px, 6vw, 44px); font-weight: 800; letter-spacing: -.01em; }
.display-team .accent { display: inline-block; width: 44px; height: 5px; border-radius: 999px; background: var(--accent); vertical-align: middle; margin-bottom: 8px; }
.display-score { font-size: clamp(76px, 22vw, 200px); font-weight: 900; line-height: 1.02; letter-spacing: -.045em; margin: 6px 0 8px; }
.display-score .sep { color: var(--faint); }
.display-score .wkts { color: var(--muted); }
.display-overs { font-size: clamp(18px, 5vw, 34px); color: var(--muted); font-weight: 700; }
.disp-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.disp-chips .stat { font-size: clamp(13px, 2.4vw, 18px); padding: 8px 14px; }
.display-target { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font-size: clamp(17px, 4vw, 30px); font-weight: 800; padding: 10px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(247,178,59,.14), rgba(247,178,59,.05)); border: 1px solid rgba(247,178,59,.35); }
.display-result { margin-top: 16px; font-size: clamp(22px, 5vw, 40px); font-weight: 900; color: var(--accent); }
.disp-balls { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.display-batters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.display-batters .b { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--sh-1); }
.display-batters .b.on { border-color: rgba(46,224,106,.4); background: linear-gradient(180deg, rgba(46,224,106,.10), var(--surface)); }
.display-batters .b .n { font-weight: 800; font-size: clamp(17px, 4vw, 26px); display: inline-flex; align-items: center; }
.display-batters .b .f { color: var(--muted); font-size: clamp(14px, 3.5vw, 22px); font-weight: 700; margin-top: 2px; }
.display-batters .b .n .striker-dot { width: 13px; height: 13px; margin-right: 11px; }
.disp-bowler { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.disp-bowler .db-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: rgba(247,178,59,.14); border: 1px solid rgba(247,178,59,.35); padding: 5px 11px; border-radius: 999px; }
.disp-bowler .db-name { font-weight: 800; font-size: clamp(15px, 3.4vw, 22px); color: var(--text); }
.disp-bowler .db-figs { font-weight: 700; font-size: clamp(14px, 3vw, 20px); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(3,7,18,.72); backdrop-filter: blur(4px); display: grid; place-items: end center; z-index: 50; }
.modal { width: 100%; max-width: 640px; background: linear-gradient(180deg, var(--surface-2), var(--bg-1)); border-top-left-radius: 26px; border-top-right-radius: 26px; border: 1px solid var(--line-2); padding: 10px 16px calc(20px + var(--safe-bottom)); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8); }
.modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 6px auto 14px; }
.modal h3 { margin-bottom: 14px; font-size: 18px; }
.list-btns { display: grid; gap: 8px; }
.list-btns button { text-align: left; justify-content: flex-start; padding: 15px 16px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); padding: 13px 18px; border-radius: 13px; z-index: 60; box-shadow: var(--sh-2); font-weight: 600; }

.hr { height: 1px; background: var(--line); border: none; margin: 14px 0; }
.mini-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---- Camera overlay ---- */
.cam-overlay { position: fixed; inset: 0; background: #000; z-index: 80; display: flex; flex-direction: column; }
.cam-overlay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-top)) 14px 12px; }
.cam-status { background: rgba(0,0,0,.55); padding: 9px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.cam-status.ok { background: var(--accent); color: #042311; }
.cam-close { background: rgba(0,0,0,.55); border: none; padding: 10px 14px; border-radius: 999px; }
.cam-pos { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); z-index: 3; font-size: 22px; font-weight: 900; background: rgba(0,0,0,.6); padding: 12px 18px; border-radius: 14px; opacity: 0; transition: opacity .2s; text-align: center; }
.cam-pos.show { opacity: 1; }
.cam-help { position: absolute; bottom: 220px; left: 0; right: 0; z-index: 2; text-align: center; color: #cbd5e1; font-size: 12px; padding: 0 20px; text-shadow: 0 1px 4px #000; }
.cam-zones { position: relative; margin-top: auto; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 14px calc(18px + var(--safe-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.cam-zone { background: rgba(0,0,0,.55); border: 2px solid #fff; border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.cam-zone.plain { flex: 0 0 auto; min-width: 52px; border-color: var(--line-2); }
.cam-zone .cz-runs { color: var(--accent); font-weight: 900; }
.cam-zone.hot { animation: pulse .6s ease infinite alternate; border-color: var(--accent); background: rgba(46,224,106,.35); }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Camera-device page */
.cam-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); padding: 9px 14px; border-radius: 999px; font-weight: 800; }
.cam-badge .ic { color: var(--accent); }
.cam-flagbar { position: relative; margin-top: auto; z-index: 2; padding: 16px 16px calc(20px + var(--safe-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.cam-flagbar .cam-flag { width: 100%; padding: 18px; border-radius: 16px; font-size: 18px; font-weight: 800; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border: none; color: #042311; box-shadow: var(--glow-green); }

/* Camera count badge on the scorer */
.badge.cam-count .ic { color: var(--accent); margin-right: 2px; }

/* Scorer alert when a camera reports a hit */
.cam-alert-wrap { position: fixed; top: calc(10px + var(--safe-top)); left: 0; right: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.cam-alert { pointer-events: none; display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--accent); border-radius: 999px; padding: 10px 16px; font-size: 14px; box-shadow: var(--sh-2); animation: camAlertIn .3s ease, camAlertOut .4s ease 3.8s forwards; }
.cam-alert .ca-ic { display: inline-flex; color: var(--accent); }
.cam-alert .ca-side { color: var(--amber); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
@keyframes camAlertIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes camAlertOut { to { transform: translateY(-12px); opacity: 0; } }

/* ---- Celebration overlay ---- */
.celebrate { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; animation: celebBackdrop 1.9s ease forwards; }
.celeb-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.celeb-word { font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-size: clamp(90px, 26vw, 360px); animation: celebWord 1.9s cubic-bezier(.2,.9,.2,1) forwards; }
.celeb-sub { margin-top: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 6px; font-size: clamp(16px, 4vw, 34px); opacity: 0; animation: celebSub 1.9s ease forwards; }
.celeb-shake { animation: celebWord 1.9s cubic-bezier(.2,.9,.2,1) forwards, celebShake .5s ease 3; }
@keyframes celebBackdrop { 0% { background: rgba(0,0,0,0); } 18% { background: rgba(5,10,20,.72); } 75% { background: rgba(5,10,20,.66); } 100% { background: rgba(0,0,0,0); } }
@keyframes celebWord { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 18% { transform: scale(1.18) rotate(3deg); opacity: 1; } 32% { transform: scale(.98) rotate(0); } 42% { transform: scale(1.02); } 78% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes celebSub { 0%, 20% { opacity: 0; transform: translateY(10px); } 36% { opacity: 1; transform: translateY(0); } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes celebShake { 0%,100% { margin-left: 0; } 25% { margin-left: -18px; } 75% { margin-left: 18px; } }
.celeb-burst { position: absolute; inset: 0; display: grid; place-items: center; }
.celeb-dot { position: absolute; width: 14px; height: 14px; border-radius: 3px; opacity: 0; animation: celebDot 1.2s ease-out forwards; }
@keyframes celebDot { 0% { transform: translate(0,0) scale(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(240deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .celeb-word, .celeb-sub, .celeb-dot, .celebrate { animation-duration: .8s; } .celeb-shake { animation: celebWord .8s ease forwards; } }

/* ===== Home (Option 1) ===== */
.home { max-width: 640px; margin: 0 auto; padding: calc(var(--page-top) + var(--safe-top)) var(--gutter) calc(var(--page-bottom) + var(--safe-bottom)); position: relative; }
.home::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(7,11,22,.45) 0%, rgba(7,11,22,.78) 52%, #070b16 86%),
    url('/stadium.svg') center top / cover no-repeat; }
.home-top { display:flex; justify-content:space-between; align-items:center; }
.icon-btn { background:transparent; border:none; color:var(--muted); padding:8px; width:42px; height:42px; }
.icon-btn:hover { color:var(--text); }
/* ---- Novità wordmark ---- */
.nv-brand { background:none; border:0; padding:0; cursor:pointer;
  font-family: var(--font-head); font-weight:800; font-size:22px; letter-spacing:-.03em; color:var(--text); line-height:1; }
.nv-brand span { color: var(--accent); }

/* ---- Novità hero (shared frame; cricket = green glow) ---- */
.nv-hero { position:relative; overflow:hidden; border-radius:22px; margin:6px 0 20px;
  padding: 40px 26px; border:1px solid var(--line-2);
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(46,224,106,.30), transparent 60%),
    radial-gradient(700px 500px at 0% 120%, rgba(61,139,255,.14), transparent 55%),
    linear-gradient(180deg, #141d33, #0d1526);
}
.nv-hero::after { content:""; position:absolute; right:-40px; top:-40px; width:320px; height:320px;
  background: radial-gradient(circle, rgba(46,224,106,.22), transparent 70%); filter: blur(10px); pointer-events:none; }
.nv-hero-inner { position:relative; max-width:560px; }
.nv-badge { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:#86efac;
  background: rgba(46,224,106,.13); border:1px solid rgba(46,224,106,.32); padding:6px 12px; border-radius:999px; }
.nv-badge svg { color:#86efac; }
.nv-title { font-family:var(--font-head); font-weight:800; font-size:clamp(34px,7vw,54px); line-height:1.02;
  letter-spacing:-.03em; margin:16px 0 12px; }
.nv-title em { font-style:normal; color:var(--accent); }
.nv-sub { color:var(--muted); font-size:clamp(15px,2vw,17px); max-width:500px; margin:0; line-height:1.5; }
/* ---- Verify-email banner ---- */
.verify-banner { display:flex; align-items:center; gap:10px; background:rgba(247,178,59,.12); border:1px solid rgba(247,178,59,.4);
  color:#fcd77f; border-radius:14px; padding:11px 14px; margin-bottom:14px; font-size:13.5px; font-weight:600; }
.verify-banner svg { flex:0 0 auto; }
.verify-banner span { flex:1; }
.verify-resend { flex:0 0 auto; background:rgba(247,178,59,.18); border:1px solid rgba(247,178,59,.5); color:#fcd77f;
  border-radius:999px; padding:6px 14px; font-weight:700; font-size:12.5px; cursor:pointer; }
.verify-resend:disabled { opacity:.6; }

/* ---- Newsletter subscribe ---- */
.news-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:18px; margin:6px 0 4px; }
.news-title { font-family:var(--font-head); font-weight:800; font-size:16px; }
.news-sub { color:var(--muted); font-size:13px; margin:3px 0 12px; }
.news-row { display:flex; gap:8px; align-items:stretch; }
.news-row input { flex:1; min-width:0; }
.news-row .btn { flex:0 0 auto; white-space:nowrap; }
.maint-news { width:100%; max-width:420px; margin-top:24px; }
.auth-forgot { text-align:center; margin-top:10px; }
.auth-forgot a { color:var(--muted); font-size:13px; text-decoration:none; }
.auth-forgot a:hover { color:var(--accent); }

/* ---- Email auth form ---- */
.auth-or { display:flex; align-items:center; gap:12px; color:var(--faint); font-size:12px; margin:14px 0; }
.auth-or::before, .auth-or::after { content:""; flex:1; height:1px; background:var(--line); }
.auth-form { display:flex; flex-direction:column; gap:2px; }
.auth-form .field { margin:6px 0; }
.auth-switch { text-align:center; color:var(--muted); font-size:13.5px; margin-top:14px; }
.auth-switch a { color:var(--accent); font-weight:700; text-decoration:none; }

/* ---- Desktop canvas (matches futsal.lk's ~1000px shell) ----
   Mobile stays a single column; from 900px up the app uses the wider canvas and
   lays cards out in a grid. The scorer keeps its compact phone width on purpose,
   since it's used one-handed at the court. */
.home-grid, .setup-teams { display:grid; gap:16px; }
/* cards carry their own margin for the stacked layout; the grid gap handles it here */
.home-grid > *, .setup-teams > * { margin-bottom:0; }
.home-links { display:flex; flex-direction:column; gap:2px; }
@media (min-width: 900px) { .home-links { flex-direction:row; justify-content:center; gap:10px; } }
@media (min-width: 900px) {
  :root { --gutter: 24px; --page-top: 20px; }
  .home, .wrap, .sc { max-width: 1000px; }
  .sc.scorer-screen { max-width: 640px; }
  .home-grid, .setup-teams { grid-template-columns: 1fr 1fr; align-items: start; }
  .nv-hero { padding: 52px 46px; }
  .nv-title { font-size: clamp(38px, 5vw, 58px); }
}

.nv-links { display:flex; justify-content:center; flex-wrap:wrap; gap:18px; margin:26px 0 4px; }
.nv-links a { color:var(--muted); text-decoration:none; font-size:13px; font-weight:600; }
.nv-links a:hover { color:var(--text); }
.nv-foot { text-align:center; color:var(--faint); font-size:12.5px; letter-spacing:.02em; margin:8px 0 6px; }
.nv-foot b { color:var(--muted); font-weight:700; }

/* ---- Court booking ---- */
.chip-row { display:flex; gap:8px; overflow-x:auto; padding:2px 0 6px; margin-bottom:6px; -webkit-overflow-scrolling:touch; }
.chip-row::-webkit-scrollbar { display:none; }
.day-chip { flex:0 0 auto; padding:11px 16px; min-height:42px; display:inline-flex; align-items:center; border-radius:999px; background:var(--surface); border:1px solid var(--line-2);
  color:var(--muted); font-weight:700; font-size:13px; white-space:nowrap; cursor:pointer; }
.day-chip.active { background:var(--brand-grad); color:var(--brand-ink); border-color:transparent; box-shadow:var(--glow-green); }
.court-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:12px 14px; margin-bottom:12px; }
.court-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.slot-row { display:flex; flex-wrap:wrap; gap:8px; }
.slot { padding:11px 12px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background:var(--surface-2); border:1px solid var(--line-2);
  color:var(--text); font-weight:700; font-size:13px; cursor:pointer; min-width:64px; }
.slot:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
.slot.taken { background:transparent; color:var(--faint); text-decoration:line-through; cursor:not-allowed; opacity:.6; }
.slot.past { opacity:.3; cursor:not-allowed; }
.book-confirm { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-md); padding:12px 14px; }
.bc-row { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); }
.bc-row:last-child { border-bottom:0; }
.book-row { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-md); padding:12px 14px; margin-bottom:10px; }
.book-row.is-off { opacity:.6; }
.pill-off { display:inline-block; margin-top:4px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700;
  background:rgba(245,69,92,.15); color:var(--danger); }
.admin-court-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.admin-court-row:last-child { border-bottom:0; }

/* ---- Logo (replaces the text wordmark) ---- */
.nv-logo-btn { background:none; border:0; padding:0; cursor:pointer; display:inline-flex; align-items:center; }
.nv-logo { display:block; width:auto; }

/* ---- Maintenance / coming-soon (centered, futsal-style) ---- */
.maint { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:56px 20px; position:relative;
  background:radial-gradient(1100px 520px at 50% -12%, rgba(46,224,106,.10), transparent 60%); }
.maint-top { position:absolute; top:20px; left:24px; }
.maint-center { display:flex; flex-direction:column; align-items:center; max-width:600px; }
.maint-logo { height:58px; width:auto; margin-bottom:24px; }
.maint-badge { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:#86efac;
  background:rgba(46,224,106,.13); border:1px solid rgba(46,224,106,.32); padding:6px 14px; border-radius:999px; }
.maint-badge svg { color:#86efac; }
.maint-h1 { font-family:var(--font-head); font-weight:800; font-size:clamp(38px,7.5vw,62px); letter-spacing:-.03em;
  line-height:1.02; margin:18px 0 14px; }
.maint-sub { color:var(--muted); font-size:clamp(15px,2vw,18px); max-width:520px; margin:0 auto; line-height:1.55; }
.maint-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:28px 0 4px; }
.maint-pill { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--muted);
  background:var(--surface); border:1px solid var(--line-2); padding:9px 16px; border-radius:999px; }
.maint-pill svg { color:var(--accent); }
.maint-admin { margin-top:22px; width:100%; max-width:340px; }
.maint-admin summary { display:inline-flex; align-items:center; gap:6px; justify-content:center; cursor:pointer;
  color:var(--muted); font-size:13px; font-weight:600; list-style:none; padding:6px 0; }
.maint-admin summary::-webkit-details-marker { display:none; }
.maint-admin summary:hover { color:var(--text); }
.maint-dot { position:fixed; right:16px; bottom:16px; width:9px; height:9px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 10px rgba(46,224,106,.7); }
.maint-live { display:flex; align-items:center; gap:8px; color:var(--amber); font-size:13px; font-weight:700; margin-bottom:8px; }
.maint-banner { display:flex; align-items:center; gap:10px; width:100%; text-align:left; margin-bottom:14px;
  background:rgba(247,178,59,.12); border:1px solid rgba(247,178,59,.4); color:#fcd77f; border-radius:14px; padding:11px 14px;
  font-size:13.5px; font-weight:600; cursor:pointer; }
.maint-banner b { color:#fff; }

.hcard { background: linear-gradient(180deg,#101a31,#0b1322); border:1px solid var(--line-2); border-radius:var(--r-lg); padding:18px; margin-bottom:16px; box-shadow: var(--sh-2); }
.hcard-head { display:flex; align-items:center; gap:14px; }
.hc-icon { flex:0 0 auto; width:56px; height:56px; border-radius:16px; display:grid; place-items:center; }
.hc-icon.green { color:var(--accent); background:rgba(46,224,106,.12); border:1.5px solid rgba(46,224,106,.55); }
.hc-icon.blue { color:var(--blue); background:rgba(61,139,255,.12); border:1.5px solid rgba(61,139,255,.55); }
.hc-text { flex:1; min-width:0; }
.hc-title { font-weight:800; font-size:18px; }
.hc-sub { color:var(--muted); font-size:13.5px; margin-top:3px; line-height:1.35; }
.hc-chev { color:var(--faint); flex:0 0 auto; }

.btn-xl { width:100%; margin-top:16px; padding:16px; border-radius:16px; font-size:16.5px; font-weight:800;
  border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:54px;
  transition:transform .09s ease, box-shadow .09s ease, background .15s ease;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.btn-xl:focus-visible { outline:none; box-shadow:0 0 0 3px rgba(46,224,106,.4); }
/* Chunky 3D press for the big call-to-action buttons. */
.btn-xl-green { background:#16c964; color:#05331b; box-shadow:0 5px 0 #0c8a44; }
.btn-xl-blue { background:#2f6fe6; color:#fff; box-shadow:0 5px 0 #1c4fac; }
.btn-xl-green:active { transform:translateY(5px); box-shadow:0 0 0 #0c8a44; }
.btn-xl-blue:active  { transform:translateY(5px); box-shadow:0 0 0 #1c4fac; }
@media (hover: hover) {
  .btn-xl-green:hover { background:#1ad46c; transform:translateY(2px); box-shadow:0 3px 0 #0c8a44; }
  .btn-xl-blue:hover  { background:#3a7bf0; transform:translateY(2px); box-shadow:0 3px 0 #1c4fac; }
}
.btn-xl:disabled { opacity:.5; pointer-events:none; }

.code-field { display:flex; gap:10px; margin-top:14px; }
.code-input { flex:1; text-align:center; letter-spacing:6px; font-weight:800; font-size:18px; text-transform:uppercase; }
.code-input::placeholder { letter-spacing:4px; color:var(--faint); font-weight:700; }
.qr-btn { flex:0 0 auto; width:54px; border:1px solid var(--line-2); background:var(--sunken); color:var(--muted); border-radius:12px; }
.qr-btn:hover { color:var(--text); }

.role-lbl { margin:16px 0 8px; font-size:13px; font-weight:700; color:var(--muted); }
.role-seg { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.role-pill { padding:12px 4px; border-radius:12px; background:var(--sunken); border:1px solid var(--line-2); color:var(--muted); font-weight:700; font-size:14px;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.role-pill.active { color:var(--text); border-color:var(--blue); background:rgba(61,139,255,.12); }
.role-pill.active .ic { color:var(--blue); }

/* ===== New Scorer (mockup) ===== */
.sc { max-width: 640px; margin: 0 auto; padding: calc(var(--page-top) + var(--safe-top)) var(--gutter) calc(var(--page-bottom) + var(--safe-bottom)); }
/* Widen .sc pages (Book, Play, Account, Operator) on desktop. Higher specificity
   than the base rule so it wins regardless of source order; scorer stays narrow. */
@media (min-width: 900px) { .sc:not(.scorer-screen) { max-width: 1040px; } }
.appbar { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.appbar-title { flex: 1; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--accent); }
.conn.off { color: var(--danger); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(46,224,106,.18); }

.team-strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  background: linear-gradient(180deg,#101a30,var(--sunken)); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sh-1); }
.ts-side { display: flex; flex-direction: column; }
.ts-side.bowl { align-items: flex-end; text-align: right; }
.ts-name { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ts-side.bat .ts-name { color: var(--blue); }
.ts-side.bowl .ts-name { color: var(--amber); }
.ts-score { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.ts-bowl { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.ts-mid { text-align: center; }
.ts-ov { font-size: 22px; font-weight: 900; }
.ts-ov-l { font-size: 10px; letter-spacing: .12em; color: var(--faint); font-weight: 800; }
.ts-chase { text-align: center; margin-top: 8px; color: var(--amber); font-weight: 800; font-size: 14px; }

.strike-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.sb-bat { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 13px; background: var(--sunken); border: 1px solid var(--line); }
.sb-bat.on { background: linear-gradient(180deg, rgba(61,139,255,.14), rgba(61,139,255,.04)); border-color: rgba(61,139,255,.4); }
.sb-role { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sb-name { font-weight: 800; font-size: 15px; }
.sb-fig { color: var(--muted); font-weight: 700; font-size: 13px; }

.keypad-lg { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.key-lg { min-width: 0; aspect-ratio: 1.25; border-radius: 14px; font-size: 26px; font-weight: 900;
  background: linear-gradient(180deg, var(--surface-3), #16203a); border: 1px solid var(--line-2); }
.key-lg:active { transform: scale(.94); }
.key-lg.k4 { background: linear-gradient(180deg,#3d8bff,#2f6fe6); border-color: transparent; color: #fff; box-shadow: var(--glow-blue); }
.key-lg.k6 { background: linear-gradient(180deg,#2ee06a,#16a34a); border-color: transparent; color: #042311; box-shadow: var(--glow-green); }
.key-lg.k-dot { flex-direction: column; gap: 4px; font-size: 0; }
.key-lg.k-dot .kd { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.key-lg.k-dot .kd-l { font-size: 12px; font-weight: 700; color: var(--muted); }

.wicket-btn { width: 100%; margin-top: 12px; padding: 16px; border-radius: 14px; font-size: 18px; font-weight: 800;
  background: linear-gradient(180deg,#ff5568,#e0324a); border: none; color: #fff; box-shadow: var(--glow-red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.extras-lg { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.extras-lg button { min-width: 0; padding: 13px 4px; font-size: 13px; font-weight: 700; border-radius: 12px; background: #0f1830; border: 1px solid var(--line-2); }


/* ===== Duck (out for 0) ===== */
.duck-scene { background: transparent; }
.duck-stage { position: fixed; left: 0; bottom: 12%; width: 100%; height: 150px; pointer-events: none; }
.duck { position: absolute; bottom: 0; left: -260px; width: 230px; animation: duckCross 3.6s linear forwards; }
.duck img { display: block; width: 100%; height: auto; transform-origin: 70% bottom;
  animation: duckBob .38s ease-in-out infinite; }
.duck-label { position: fixed; top: 32%; left: 0; right: 0; text-align: center; font-weight: 900; letter-spacing: .04em;
  font-size: clamp(34px, 9vw, 96px); color: #ffd23f; text-shadow: 0 0 40px rgba(255,210,63,.5), 0 6px 24px rgba(0,0,0,.6);
  animation: duckLabel 3.6s ease forwards; }
@keyframes duckCross { from { left: -260px; } to { left: 100%; } }
/* Trudging waddle — a small side-to-side tilt + bob (the bat drag is baked into the art). */
@keyframes duckBob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes duckLabel { 0% { opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1.06); } 24% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .duck { animation-duration: 2.4s; } .duck img { animation: none; } }

/* ===== Match detail (Scoreboard/Scorecard/FoW/Overs sub-views) ===== */
.detail-wrap { padding: 4px 2px; }
.sbd-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  background: linear-gradient(180deg,#101a30,var(--sunken)); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; }
.sbd-team { text-align: center; }
.sbd-team.a .sbd-tn { color: var(--blue); }
.sbd-team.b .sbd-tn { color: var(--amber); }
.sbd-tn { font-size: 13px; font-weight: 800; }
.sbd-ts { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin-top: 2px; }
.sbd-to { font-size: 12px; color: var(--muted); }
.sbd-vs { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-weight: 800; font-size: 13px; color: var(--muted); }
.sbd-chase { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.sbd-chase b { color: var(--text); }
.accent-amber { color: var(--amber) !important; }
.sbd-result { text-align: center; margin-top: 12px; font-weight: 900; color: var(--accent); font-size: 18px; }

.st-head { display: flex; align-items: flex-end; justify-content: space-between; }
.st-cols { display: flex; gap: 0; }
.st-cols span { width: 40px; text-align: right; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.stat-table { background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-row { display: grid; grid-template-columns: 1fr 84px 40px 40px 40px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-table.bowl .st-row { grid-template-columns: 1fr 40px 40px 40px 40px; }
.st-row:last-child { border-bottom: none; }
.st-row.live { background: rgba(46,224,106,.06); }
.st-name { font-weight: 700; display: flex; align-items: center; min-width: 0; }
.st-name .st-out { color: var(--faint); font-weight: 600; font-size: 11.5px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-runs { text-align: right; font-weight: 800; }
.st-c { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.extras-line { color: var(--muted); font-size: 12.5px; margin: 8px 2px 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 10px; margin-top: 16px; }
.stat-card { background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.sc-lbl { font-size: 11px; font-weight: 700; color: var(--muted); }
.sc-val { font-size: 20px; font-weight: 900; margin-top: 4px; }

.sc-inn-head { font-weight: 800; font-size: 16px; margin: 8px 0 2px; }
.fow-list { background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fow-row { display: grid; grid-template-columns: 28px 64px 1fr auto; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fow-row:last-child { border-bottom: none; }
.fow-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,69,92,.16); color: var(--danger); font-weight: 800; font-size: 12px; }
.fow-score { font-weight: 800; }
.fow-name { font-weight: 600; }
.fow-ov { font-size: 12px; }

.ov-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.ov-num { font-size: 12px; font-weight: 800; color: var(--muted); width: 56px; }
.ov-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-balls .ball { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
.ov-runs { font-weight: 900; font-size: 16px; }

/* ===== Camera page (mockup) ===== */
.cam-page { max-width: 640px; margin: 0 auto; padding: calc(var(--page-top) + var(--safe-top)) var(--gutter) calc(var(--page-bottom) + var(--safe-bottom)); }
.cam-feed { position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: #05070d; border: 1px solid var(--line-2); }
.cam-vid { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-feed.no-feed::after { content: "Camera preview appears here on a real device"; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 24px; color: var(--faint); font-size: 13px; font-weight: 600; }
.cam-feed-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--danger); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; }
.lb-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1s infinite alternate; }
.view-count { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.cam-label-pill { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.cam-feed .cam-pos { z-index: 3; }

.cam-flag { width: 100%; margin-top: 14px; padding: 15px; border-radius: 14px; font-size: 16px; font-weight: 800;
  background: linear-gradient(180deg,#3d8bff,#2f6fe6); border: none; color: #fff; box-shadow: var(--glow-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.cam-angles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.cam-angle { text-align: center; }
.ca-thumb { aspect-ratio: 16/11; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--faint); }
.cam-angle.active .ca-thumb { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px rgba(46,224,106,.15); }
.ca-name { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.cam-angle.active .ca-name { color: var(--text); }

.cam-controls { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.cam-ctl { flex-direction: column; gap: 6px; padding: 12px 2px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.cam-ctl .ic { color: var(--text); }
.cam-ctl:active { transform: scale(.95); }

/* ===== Accounts / groups / admin ===== */
.acct-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 700; font-size: 13px; color: var(--text); }
.acct-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg,var(--blue),#2f6fe6); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.ghost-link { width: 100%; margin: -6px 0 14px; background: transparent; border: none; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.ghost-link:hover { color: var(--text); }
.ghost-link .ic { color: var(--accent); }

.group-row { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; margin-bottom: 10px; padding: 14px; }
.group-title { font-size: 22px; font-weight: 900; margin: 4px 0 6px; }

.hist-row, .user-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.hist-row:last-child, .user-row:last-child { border-bottom: none; }
.hist-row > div:first-child, .user-row > div:first-child { flex: 1; min-width: 0; }
.hist-teams { font-weight: 700; font-size: 14px; }
.hist-sub { margin-top: 2px; }
.user-row { flex-wrap: wrap; }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.btn.tiny { padding: 7px 11px; font-size: 12px; border-radius: 9px; min-height: 0; }
.badge.ok { color: var(--accent); border-color: rgba(46,224,106,.4); }
.badge.warn { color: var(--amber); border-color: rgba(247,178,59,.4); }
.badge.bad { color: var(--danger); border-color: rgba(245,69,92,.4); }

.menu-acct { display: flex; align-items: center; gap: 12px; padding: 10px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* Scorer header code chip (visible match code, tap to share) */
.appbar-titlebox { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(46,224,106,.12); border: 1px solid rgba(46,224,106,.45); color: var(--accent); font-weight: 800; letter-spacing: 2px; font-size: 14px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.code-chip .ic { color: var(--accent); }

/* Squad quick-pick chips in match setup */
.squad-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.squad-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.4); color: #93c5fd; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 999px; }
.squad-chip:hover { background: rgba(59,130,246,.22); }

/* Leaderboard tables */
.lead-wrap { overflow-x: auto; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; margin-bottom: 6px; }
.lead-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 340px; }
.lead-table th, .lead-table td { padding: 9px 10px; text-align: right; white-space: nowrap; }
.lead-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #8a94a6); font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.lead-table td { border-bottom: 1px solid rgba(255,255,255,.05); }
.lead-table tbody tr:last-child td { border-bottom: none; }
.lead-table .lead-name { text-align: left; font-weight: 700; }
.lead-table tbody tr:first-child td { color: var(--accent); }

/* Disabled picker option (e.g. bowler at over limit) */
.btn.is-disabled { opacity: .45; cursor: not-allowed; }
.list-btns .btn { display: flex; align-items: center; }

/* Display end-of-match actions */
.disp-end { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; width: min(460px, 90%); align-self: center; }

/* Camera position banner + court plan */
.cam-position { background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.35); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.cp-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #93c5fd; }
.cp-head .ic { color: #93c5fd; }
.cp-aim { margin-top: 5px; }
.cp-count { margin-top: 6px; opacity: .8; }
.cam-plan { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; margin-top: 4px; }
.cam-plan-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.cpr-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(59,130,246,.2); color: #93c5fd; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hist-row.cam-you { background: rgba(46,224,106,.08); }

/* Live camera feed, green edge + no placeholder when a real stream is attached */
.cam-feed.has-feed { border-color: var(--accent); }
.cam-feed.has-feed::after { display: none; }

/* Camera review clips (Highlights tab) */
.clip-row { background: var(--surface-2, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; padding: 10px; }
.clip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.clip-vid { width: 100%; border-radius: 8px; background: #000; max-height: 260px; }

/* ===== Compact no-scroll scorer (fits an iPhone viewport) ===== */
.scorer-screen { height: 100dvh; height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  box-sizing: border-box; padding: 0 0 calc(58px + var(--safe-bottom)); } /* reserve the fixed tab bar */
.scorer-screen > .appbar { flex: 0 0 auto; }
.scorer-screen > .ts-wrap { flex: 0 0 auto; padding: 8px 12px 0; }
.scorer-screen > .tabbar { flex: 0 0 auto; }
.scorer-screen .ss-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 6px; }
.scorer-screen .strike-bar { flex: 0 0 auto; margin: 0; }
.scorer-screen .over-dots { flex: 0 0 auto; margin: 0; }

/* the keypad fills whatever height is left; rows share it equally → never scrolls */
.ss-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.ssk { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  border-radius: 14px; background: var(--surface-2, #141c2b); border: 1px solid var(--line-2, rgba(255,255,255,.09));
  color: #fff; font-size: clamp(20px, 5.5vw, 30px); font-weight: 800; line-height: 1; -webkit-tap-highlight-color: transparent; }
.ssk:active { transform: scale(.97); }
.ssk[disabled] { opacity: .4; }
.ssk.k4 { background: #2563eb; border-color: #2563eb; }
.ssk.k6 { background: #16a34a; border-color: #16a34a; }
.ssk.k-wkt { grid-column: span 2; background: #dc2626; border-color: #dc2626; }
.ssk.ext { font-size: clamp(13px, 3.6vw, 17px); font-weight: 700; }
.ssk.k-tool { font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; color: var(--muted, #9aa6ba); }
.ssk .ssk-ic { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: clamp(13px, 3.6vw, 16px); }
.ssk .ssk-ic .ic { opacity: .9; }
.ssk .ssk-dot { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.ssk .kd { width: 12px; height: 12px; border-radius: 50%; background: #9aa6ba; }
.ssk .kd-l { font-size: 13px; font-weight: 700; color: var(--muted, #9aa6ba); }

/* Admin usage chart (matches per day) */
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--accent), rgba(46,224,106,.4)); border-radius: 5px 5px 2px 2px; position: relative; transition: height .3s; }
.bar-v { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; color: var(--accent); }
.bar-x { font-size: 9px; color: var(--faint, #5a6a86); font-weight: 600; }

/* Admin: use more room on large screens, tappable action chips, scroll-safe tabs */
@media (min-width: 760px) { .admin-wide { max-width: 1000px; } }
.u-actions .btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 13px; }
.u-actions .btn.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: transparent; }
.u-actions .btn:active { filter: brightness(1.12); }
.seg { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; }

/* ============ Admin dashboard shell ============ */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; height: 100dvh; overflow: hidden; background: var(--bg-0); }
.admin-side { background: linear-gradient(180deg, var(--surface), var(--bg-1)); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; height: 100dvh; overflow-y: auto; }
.as-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; }
.as-brand strong { font-size: 17px; }
.as-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(46,224,106,.12); padding: 2px 7px; border-radius: 6px; margin-left: auto; }
.as-nav { display: flex; flex-direction: column; gap: 3px; }
.as-item { display: flex; align-items: center; gap: 11px; justify-content: flex-start; width: 100%; background: transparent; border: none; color: var(--muted); font-weight: 700; font-size: 14.5px; padding: 11px 12px; border-radius: 11px; }
.as-item .ic { color: var(--faint); }
.as-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.as-item.active { background: linear-gradient(180deg, rgba(46,224,106,.16), rgba(46,224,106,.06)); color: var(--text); }
.as-item.active .ic { color: var(--accent); }
.as-item.soon { opacity: .5; }
.as-soon { margin-left: auto; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.as-sec { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.as-home { margin-top: auto; color: var(--muted); }
.as-scrim { display: none; }

.admin-main { min-width: 0; height: 100dvh; overflow-y: auto; padding: 18px 22px 40px; }
.am-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.am-burger { display: none; }
.am-titles { flex: 1; min-width: 0; }
.am-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.am-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--sh-1); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-lbl { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.kpi-blue .kpi-ic { background: rgba(61,139,255,.15); color: #7db1ff; }
.kpi-green .kpi-ic { background: rgba(46,224,106,.15); color: var(--accent); }
.kpi-amber .kpi-ic { background: rgba(247,178,59,.15); color: var(--amber); }
.kpi-violet .kpi-ic { background: rgba(139,110,255,.18); color: #b9a6ff; }
.kpi-val { font-size: 30px; font-weight: 900; margin: 8px 0 4px; letter-spacing: -.02em; }
.kpi-trend { font-size: 12px; font-weight: 700; }
.kpi-trend.up { color: var(--accent); } .kpi-trend.down { color: var(--danger); } .kpi-trend.muted { color: var(--faint); }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--sh-1); min-width: 0; }
.dc-head { font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.chart-wrap { width: 100%; }
.area-svg { width: 100%; height: 190px; display: block; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut-svg { width: 140px; height: 140px; flex: 0 0 auto; }
.donut-c { fill: var(--text); font-size: 26px; font-weight: 900; }
.donut-l { fill: var(--muted); font-size: 11px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lg-row b { color: var(--text); margin-left: 4px; }
.lg-dot { width: 11px; height: 11px; border-radius: 3px; }
.gauge-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gauge-svg { width: 180px; height: 110px; flex: 0 0 auto; }
.gauge-v { fill: var(--text); font-size: 34px; font-weight: 900; }
.gauge-l { fill: var(--muted); font-size: 12px; }
.gauge-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.gauge-facts li { font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; }
.gauge-facts li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.glance { display: flex; flex-direction: column; }
.gl-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gl-row:last-child { border-bottom: none; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.qa-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 14px; padding: 15px; text-align: left; }
.qa-tile:hover { border-color: var(--line-2); }
.qa-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); }
.qa-tile.hot .qa-ic { background: rgba(247,178,59,.16); color: var(--amber); }
.qa-t { font-weight: 800; font-size: 14.5px; }
.qa-s { font-size: 12px; color: var(--muted); }
.dash-warn { display: flex; align-items: center; gap: 12px; background: rgba(247,178,59,.1); border: 1px solid rgba(247,178,59,.4); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.dash-warn .ic { color: var(--amber); flex: 0 0 auto; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .admin-main { height: auto; overflow: visible; }
  .admin-side { position: fixed; z-index: 60; left: 0; top: 0; width: 262px; transform: translateX(-100%); transition: transform .22s ease; }
  .admin-shell.nav-open .admin-side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .admin-shell.nav-open .as-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .am-burger { display: inline-flex; }
  .am-viewapp { display: none; }
  .admin-main { padding: 14px 14px calc(30px + var(--safe-bottom)); }
  .dash-grid { grid-template-columns: 1fr; }
  .am-title { font-size: 20px; }
}

/* Admin dashboard, tighter, 2-up cards on phones */
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px; border-radius: 14px; }
  .kpi-lbl { font-size: 11px; line-height: 1.2; }
  .kpi-ic { width: 30px; height: 30px; border-radius: 9px; }
  .kpi-val { font-size: 25px; margin: 7px 0 3px; }
  .kpi-trend { font-size: 10px; }
  .dash-card { padding: 14px; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .qa-tile { padding: 13px; }
  .am-title { font-size: 19px; }
  .am-sub { font-size: 11.5px; }
  .donut-svg { width: 120px; height: 120px; }
}

/* Duck (out for 0) tag, text, not an emoji */
.duck-tag { display: inline-block; margin-left: 7px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--amber); background: rgba(247,178,59,.14); border: 1px solid rgba(247,178,59,.4); padding: 1px 6px; border-radius: 6px; }

/* Cup / session progress toward planned matches */
.cup-progress { margin: 4px 0 12px; }
.cp-line { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.cp-bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.cp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--accent)); transition: width .3s; }

/* Picker row with an inline rename (bowler/batter selection) */
.picker-row { display: flex; gap: 8px; align-items: stretch; }
.picker-row .btn-lg { flex: 1; min-width: 0; }
.pick-edit { flex: 0 0 auto; padding: 0 14px; }

/* ---- Team logos ---- */
/* Setup uploader */
.logo-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.logo-slot { flex: 0 0 auto; }
.logo-preview { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.05); border: 1px solid var(--line, rgba(255,255,255,.12)); display: inline-flex; }
.logo-preview.empty { align-items: center; justify-content: center; color: var(--muted, #7a8aa3); }
/* Inline badges wherever a team name appears */
.team-logo, .sbd-logo, .ts-logo { border-radius: 6px; object-fit: cover; background: rgba(255,255,255,.06); vertical-align: middle; flex: 0 0 auto; }
.sbd-tn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.ts-name { display: inline-flex; align-items: center; gap: 6px; }
.display-logo { border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.06); vertical-align: middle; margin-bottom: 8px; }
.display-vs-teams { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: clamp(20px, 4vw, 34px); font-weight: 800; }
.display-vs-teams .dvt { display: inline-flex; align-items: center; gap: 12px; }
.display-vs-teams .dvt-vs { color: var(--muted, #7a8aa3); font-weight: 700; font-size: .7em; }

/* ---- Hero dual CTA ---- */
.nv-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nv-hero-cta .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .nv-hero-cta .btn { flex: 1 1 auto; } }

/* ---- Venue marketplace (search + filters + cards) ---- */
.venue-search-wrap { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; }
.venue-search { flex: 1; background: none; border: 0; color: var(--text); font-family: inherit; font-size: 15px; padding: 12px 0; outline: none; min-width: 0; -webkit-appearance: none; appearance: none; }
.venue-search::-webkit-search-decoration, .venue-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.venue-search::placeholder { color: var(--faint); }
.venue-search-go { flex: 0 0 auto; width: 44px; height: 44px; min-height: 0; border-radius: 50%; background: #16c964; color: #05331b; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 #0c8a44; transition: transform .09s ease, box-shadow .09s ease; }
.venue-search-go:active { transform: translateY(3px); box-shadow: 0 0 0 #0c8a44; }
@media (hover: hover) { .venue-search-go:hover { background: #1ad46c; } }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.filter-chip { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.filter-chip:hover { color: var(--text); }
.filter-chip.active { color: var(--brand); border-color: var(--brand); background: rgba(46,224,106,.08); }

.venue-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .venue-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .venue-grid { grid-template-columns: 1fr 1fr 1fr; } }
.venue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.venue-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.venue-card:active { transform: translateY(0); }
.venue-card:focus-visible, .hcard:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46,224,106,.45); }

/* Photo-style banner: a lit indoor-court scene stands in until a real photo is
   uploaded. Hue variants give each venue its own look. */
.venue-banner { position: relative; height: 132px; overflow: hidden; }
.venue-banner .scene, .venue-hero .scene { position: absolute; inset: 0; }
.venue-banner .scene::after, .venue-hero .scene::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(0,0,0,.10) 26px 27px), linear-gradient(180deg, rgba(255,255,255,.14), transparent 45%); }
.venue-banner .pitch, .venue-hero .pitch { position: absolute; left: 50%; bottom: -6%; width: 34%; height: 78%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(226,232,240,.28), rgba(203,213,225,.12)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); border-radius: 2px; }
.venue-banner .venue-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 34px; color: #fff; opacity: .92; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.scene-0 { background: linear-gradient(160deg, #1c7a4a, #0f5637 70%); }
.scene-1 { background: linear-gradient(160deg, #0f766e, #0b3b4a 75%); }
.scene-2 { background: linear-gradient(160deg, #1e4e8c, #0b1f45 75%); }
.scene-3 { background: linear-gradient(160deg, #3a4a63, #141d30 75%); }
.venue-rate { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #1a1205; background: #f5c451; padding: 3px 9px; border-radius: 999px; }
.venue-rate .ic { width: 12px; height: 12px; fill: #1a1205; stroke: none; }
.venue-rate.new { color: var(--brand-ink); background: var(--brand); }
.venue-count { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: var(--text); background: rgba(4,8,18,.55); border: 1px solid rgba(255,255,255,.15); padding: 3px 10px; border-radius: 999px; }
.venue-body { padding: 12px 14px; }
.venue-pay { display: flex; gap: 6px; margin-top: 10px; }
.pay-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pay-badge.online { color: var(--brand); border-color: rgba(46,224,106,.4); background: rgba(46,224,106,.08); }
.venue-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* Venue profile hero (drill-in) */
.venue-hero { position: relative; height: 180px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.venue-hero .scene::after, .venue-hero .pitch { }
.venue-hero .hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,17,32,.85)); }
.venue-hero .hero-title { position: absolute; left: 16px; right: 16px; bottom: 12px; }
.venue-hero .hero-title h2 { font-size: 22px; margin: 0; }
.amenity-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.amenity { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }

/* Booking cards (My bookings + operator lists) */
.booking-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; }
.booking-card.is-off { opacity: .6; }
.bk-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; }
.bk-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 60%); }
.bk-thumb span { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: #fff; opacity: .95; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.bk-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.bk-badge.paid { color: var(--brand); border-color: rgba(46,224,106,.4); background: rgba(46,224,106,.08); }
.bk-badge.warn { color: var(--amber); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.bk-badge.off { color: var(--danger); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }

/* ---- Bottom tab bar (persistent navigation) ---- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: stretch;
  background: rgba(17, 26, 46, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}

/* ---- Top nav bar (tablet / desktop) ---- */
.topnav { display: none; }

/* Phones: bottom tab bar only, content clears it. */
@media (max-width: 767px) {
  body.has-appnav #app { padding-bottom: calc(64px + var(--safe-bottom)); }
}

/* Tablet / desktop: top nav bar instead of the bottom bar. */
@media (min-width: 768px) {
  .tabbar { display: none; }
  .topnav {
    display: flex; align-items: center; gap: 18px;
    position: fixed; top: 0; left: 0; right: 0; height: 62px; z-index: 60;
    padding: 0 24px;
    background: rgba(17, 26, 46, .92);
    -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  body.has-appnav #app { padding-top: 62px; }
  /* Home has its own logo row; the top nav already carries the brand + account. */
  body.has-appnav .home-top { display: none; }
  /* The appbar hamburger is redundant on desktop (top nav has the account menu). */
  body.has-appnav .appbar-menu { display: none; }

  .topnav-brand { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; }
  .topnav-brand img { display: block; }
  .topnav-links { display: flex; align-items: center; gap: 4px; }
  .topnav-link {
    background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
    color: var(--muted); padding: 8px 14px; border-radius: 10px; transition: color .15s ease, background .15s ease;
  }
  .topnav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .topnav-link.active { color: var(--brand); background: rgba(46,224,106,.10); }
  .topnav-acct {
    margin-left: auto; display: flex; align-items: center; gap: 8px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px 6px 6px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  }
  .topnav-acct.active { border-color: var(--brand); }
  .topnav-av {
    width: 28px; height: 28px; border-radius: 50%; background: var(--brand-grad); color: var(--brand-ink);
    display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--font-head);
  }
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 9px 4px 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease;
}
.tabbar-item .ic { opacity: .95; }
.tabbar-item.active { color: var(--brand); }
.tabbar-item:active { opacity: .7; }
/* Keep scrollable content clear of the fixed bar. */
body.has-tabbar #app { padding-bottom: calc(64px + var(--safe-bottom)); }

/* ---- Account tab ---- */
.acct-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand-grad); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; font-family: var(--font-head);
  overflow: hidden; flex: 0 0 auto;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-list { display: flex; flex-direction: column; gap: 8px; }
.acct-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 14px; cursor: pointer; color: var(--text); font-family: inherit; font-size: 14px;
}
.acct-row:active { opacity: .82; }
.acct-row-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }

/* ============================================================================
   RED CINEMATIC THEME — public Home (Milestone 1). Scoped to .home.cv-red so
   scoring/admin and their colour semantics (6=green, 4=blue, wicket=red) are
   untouched. Anton (display) + Archivo (labels) + Inter (body).
   ============================================================================ */
/* ---- Red theme SCOPE for Book / Play / Account: override dark-navy tokens +
   retint hardcoded greens so they match the red Home. Scoring/admin never get
   .cv-red, so 6=green / 4=blue / wicket=red stay intact. ---- */
.cv-red{
  --bg-0:#1c0810; --bg-1:#1c0810;
  --surface:rgba(255,255,255,.055); --surface-2:rgba(255,255,255,.09); --surface-3:rgba(255,255,255,.13); --sunken:rgba(0,0,0,.22);
  --line:rgba(255,255,255,.12); --line-2:rgba(255,255,255,.18);
  --text:#fdf3ef; --muted:rgba(253,243,239,.64); --faint:rgba(253,243,239,.42);
  --accent:#cdf24a; --accent-2:#a8d423; --amber:#ffb43b; --danger:#ff6b74;
  --brand:#cdf24a; --brand-2:#a8d423; --brand-ink:#1c0810; --brand-grad:linear-gradient(135deg,#cdf24a,#a8d423);
  color:#fdf3ef;
  background:radial-gradient(150% 92% at 50% -4%, #ff5a45 0%, #ee2233 14%, #d31029 28%, #94132a 48%, #4a0e1c 68%, #1c0810 86%, #0b0407 100%) fixed;
  min-height:100vh;
}
.cv-red .btn-primary{background:#cdf24a;color:#1c0810;box-shadow:0 4px 0 #93b81e;border-color:transparent;}
.cv-red .btn-primary:active{box-shadow:0 0 0 #93b81e;}
.cv-red .btn-xl-green{background:#cdf24a;color:#1c0810;box-shadow:0 5px 0 #93b81e;}
.cv-red .btn-xl-green:active{box-shadow:0 0 0 #93b81e;}
.cv-red .venue-search-go{background:#fff;color:#d31029;box-shadow:0 3px 0 rgba(0,0,0,.3);}
.cv-red .btn-tonal{background:rgba(205,242,74,.14);color:#cdf24a;}
.cv-red .pay-badge.online{color:#cdf24a;border-color:rgba(205,242,74,.4);}
.cv-red .slot.selected,.cv-red .day-chip.active{background:#cdf24a!important;color:#1c0810!important;border-color:transparent!important;}
/* Shared bottom nav (only shows on Book/Play/Account) → match red */
.tabbar{background:rgba(11,4,7,.9)!important;border-top:1px solid rgba(255,255,255,.08)!important;}
.tabbar-item.active{color:#cdf24a!important;}
/* hardcoded components that don't follow tokens: dark cards, inputs, blue button */
.cv-red .card,.cv-red .hcard{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.12)!important;}
.cv-red input:not(.venue-search),.cv-red textarea,.cv-red select{background:rgba(0,0,0,.22);border-color:rgba(255,255,255,.16);color:#fdf3ef;}
.cv-red .btn-blue{background:#cdf24a;color:#1c0810;box-shadow:0 4px 0 #93b81e;border-color:transparent;}
.cv-red .btn-blue:active{box-shadow:0 0 0 #93b81e;}
.cv-red .btn-xl-blue{background:#cdf24a;color:#1c0810;box-shadow:0 5px 0 #93b81e;}
.cv-red .btn-xl-blue:active{box-shadow:0 0 0 #93b81e;}
.cv-red .role-pill.active{color:#cdf24a;border-color:#cdf24a;background:rgba(205,242,74,.12);}
.cv-red .role-pill.active .ic{color:#cdf24a;}
.cv-red .code-input{background:rgba(0,0,0,.22);border-color:rgba(255,255,255,.16);color:#fdf3ef;}

.home.cv-red{max-width:none;margin:0;padding:0 0 96px;color:#fdf3ef;min-height:100vh;
  background:radial-gradient(150% 88% at 50% -4%, #ff5a45 0%, #ee2233 14%, #d31029 28%, #94132a 48%, #4a0e1c 68%, #1c0810 86%, #0b0407 100%) fixed;}
.home.cv-red::before{display:none;}
.cv-red-x{--_:0}
.cv-hero{position:relative;min-height:72vh;overflow:hidden;}
.cv-hero .ph{position:absolute;inset:0;background:linear-gradient(135deg,#7c0f1a,#1c0810);}
.cv-hero > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;}
.cv-hero::after{content:"";position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(180,20,34,.15) 0%,rgba(120,15,28,.04) 32%,rgba(150,18,30,.55) 62%,rgba(45,10,20,.92) 84%,#1c0810 100%),
  radial-gradient(120% 55% at 18% 8%,rgba(255,138,61,.34),transparent 60%);}
.cv-top{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:calc(16px + var(--safe-top)) 20px 0;}
.cv-logo{font-family:'Anton',sans-serif;font-size:22px;letter-spacing:.5px;text-transform:uppercase;color:#fff;background:none;border:0;cursor:pointer;}
.cv-logo b{color:#cdf24a;font-weight:400;}
.cv-cbtn{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;color:#fff;cursor:pointer;}
.cv-cbtn svg{width:19px;height:19px;}
.cv-hero-in{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:0 20px 24px;max-width:640px;margin:0 auto;}
.cv-kick{font-family:'Archivo',sans-serif;font-weight:800;font-size:11.5px;text-transform:uppercase;letter-spacing:2px;color:#ffcbb6;margin-bottom:12px;}
.cv-h1{font-family:'Anton',sans-serif;font-weight:400;font-size:clamp(42px,12vw,56px);line-height:1;text-transform:uppercase;letter-spacing:.5px;color:#fff;text-shadow:0 6px 30px rgba(0,0,0,.4);margin:0;}
.cv-h1 span{color:#cdf24a;}
.cv-search{margin-top:20px;background:rgba(20,6,9,.5);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.16);border-radius:16px;display:flex;align-items:center;gap:12px;padding:9px 9px 9px 17px;}
.cv-search > svg{width:19px;height:19px;color:rgba(255,255,255,.6);flex:0 0 auto;}
.cv-search input{border:0;outline:0;flex:1;font:inherit;font-size:15px;color:#fff;background:none;min-width:0;}
.cv-search input::placeholder{color:rgba(255,255,255,.58);}
.cv-search button{width:48px;height:48px;border-radius:13px;background:#fff;color:#d31029;border:0;display:grid;place-items:center;cursor:pointer;flex:0 0 auto;box-shadow:0 8px 22px rgba(0,0,0,.35);}
.cv-search button svg{width:21px;height:21px;}
.cv-body{max-width:640px;margin:0 auto;}
.cv-sec{display:flex;align-items:center;justify-content:space-between;padding:26px 20px 4px;}
.cv-sec h2{font-family:'Archivo',sans-serif;font-weight:900;font-size:15px;text-transform:uppercase;letter-spacing:1px;color:#fdf3ef;margin:0;}
.cv-sec button{font-family:'Archivo',sans-serif;font-weight:800;font-size:12px;color:#cdf24a;text-transform:uppercase;letter-spacing:.5px;display:inline-flex;align-items:center;gap:5px;background:none;border:0;cursor:pointer;}
.cv-sec button svg{width:14px;height:14px;}
.cv-vlist{padding:2px 16px 0;}
.cv-vrow{display:flex;align-items:center;gap:15px;padding:16px 8px;border:0;border-top:1px solid rgba(255,255,255,.08);cursor:pointer;text-align:left;background:none;width:100%;color:inherit;}
.cv-vrow:first-child{border-top:0;}
.cv-vrow:active{opacity:.7;}
.cv-vthumb{width:60px;height:60px;border-radius:16px;background:linear-gradient(135deg,#3a7d55,#164a2e);overflow:hidden;flex:0 0 auto;display:grid;place-items:center;font-family:'Anton',sans-serif;color:#fff;font-size:17px;}
.cv-vthumb img{width:100%;height:100%;object-fit:cover;}
.cv-vrow .nm{flex:1;min-width:0;}
.cv-vrow .nm b{font-family:'Archivo',sans-serif;font-weight:800;font-size:16px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px;color:#fff;}
.cv-vrow .nm small{color:rgba(253,243,239,.62);font-size:12.5px;display:flex;align-items:center;gap:5px;}
.cv-vrow .nm small svg{width:12px;height:12px;}
.cv-price{text-align:right;flex:0 0 auto;}
.cv-price .amt{font-family:'Anton',sans-serif;font-size:22px;letter-spacing:.3px;font-style:italic;color:#fff;}
.cv-price .amt small{font-family:'Inter',sans-serif;font-style:normal;font-weight:600;font-size:12px;color:rgba(253,243,239,.62);}
.cv-price .fr{display:block;color:rgba(253,243,239,.62);font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;margin-top:2px;}
.cv-cta{margin:16px 20px 0;}
.cv-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;background:#cdf24a;color:#1c0810;border:0;border-radius:14px;font-family:'Archivo',sans-serif;font-weight:800;font-size:15px;text-transform:uppercase;letter-spacing:.5px;padding:16px;cursor:pointer;box-shadow:0 8px 24px rgba(205,242,74,.35);}
.cv-btn svg{width:18px;height:18px;}
.cv-note{color:rgba(253,243,239,.55);font-size:12.5px;text-align:center;padding:14px 24px 0;}
.cv-note a,.cv-note button{color:#cdf24a;background:none;border:0;cursor:pointer;font:inherit;text-decoration:none;}
.cv-foot{text-align:center;color:rgba(253,243,239,.4);font-size:12px;padding:28px 20px 8px;}
.cv-foot b{color:#fdf3ef;}
.cv-flinks{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:center;padding:8px 20px 0;}
.cv-flinks a{color:rgba(253,243,239,.5);font-size:12.5px;text-decoration:none;}
/* Home's own red bottom nav (global tabbar is hidden on home) */
.cv-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:640px;z-index:40;display:flex;align-items:flex-end;justify-content:space-around;
  padding:14px 14px calc(14px + var(--safe-bottom));background:linear-gradient(180deg,rgba(11,4,7,.72),#0b0407 46%);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid rgba(255,255,255,.06);}
.cv-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;color:rgba(253,243,239,.42);font-family:'Archivo',sans-serif;font-weight:800;font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;background:none;border:0;cursor:pointer;}
.cv-nav button svg{width:23px;height:23px;}
.cv-nav button.on{color:#cdf24a;}
