/* ==========================================================================
   11xplay — Master Stylesheet
   Brand: 11xplay  |  Domain: 11xplays.it.com
   Fonts: Racing Sans One (headings, italic) + Arimo (body)
   Palette: Blue #2563eb / Orange #f97316 / Navy #0f172a
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Design Tokens
---------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-darker: #1e40af;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;

  --secondary: #f97316;
  --secondary-dark: #ea580c;
  --secondary-light: #fb923c;
  --secondary-50: #fff7ed;

  /* Surfaces */
  --bg-body: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --bg-dark-3: #334155;

  /* Text */
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-light: #94a3b8;
  --text-invert: #f8fafc;

  /* Lines */
  --border: #e2e8f0;
  --border-dark: #334155;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --shadow-primary: 0 12px 30px rgba(37, 99, 235, .30);
  --shadow-secondary: 0 12px 30px rgba(249, 115, 22, .30);

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;

  /* Type */
  --font-head: "Racing Sans One", "Arimo", system-ui, sans-serif;
  --font-body: "Arimo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #1e40af 100%);
  --grad-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --grad-blue-orange: linear-gradient(120deg, #2563eb 0%, #f97316 100%);
}

/* ----------------------------------------------------------------------------
   2. Reset & Base
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.25rem; }
li { margin: .35rem 0; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .2px;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--secondary); color: #fff; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------------------------------------------------------
   3. Layout helpers
---------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-invert); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-soft { background: var(--bg-soft); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.lead { font-size: 1.18rem; color: var(--text-muted); line-height: 1.75; }
.section-dark .lead { color: #cbd5e1; }

/* Section heading block */
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary-dark);
  background: var(--secondary-50);
  border: 1px solid #fed7aa;
  padding: .4rem .9rem; border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.section-dark .eyebrow { background: rgba(249,115,22,.14); border-color: rgba(249,115,22,.35); color: var(--secondary-light); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }

/* ----------------------------------------------------------------------------
   4. Buttons
---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  line-height: 1; text-align: center; white-space: nowrap;
  padding: .95rem 1.6rem; border-radius: var(--r-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px rgba(37,99,235,.42); }

.btn-secondary { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-secondary); }
.btn-secondary:hover { color: #fff; box-shadow: 0 16px 40px rgba(249,115,22,.42); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-whatsapp { background: #25d366; color: #063; box-shadow: 0 12px 30px rgba(37,211,102,.32); }
.btn-whatsapp:hover { background: #1ebe5a; color: #042; box-shadow: 0 16px 40px rgba(37,211,102,.42); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ----------------------------------------------------------------------------
   5. Header / Nav
---------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-head); font-style: italic; font-size: 1.35rem;
  color: var(--bg-dark); letter-spacing: .3px;
}
.brand-name b { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a {
  font-weight: 600; font-size: .98rem; color: var(--text-muted);
  padding: .55rem .85rem; border-radius: var(--r-sm);
  position: relative;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-50); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 3px; border-radius: 3px; background: var(--secondary);
}

.header-cta { display: flex; align-items: center; gap: .6rem; }

/* CTA buttons that live inside the nav are for the mobile menu only */
.main-nav .nav-cta { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   6. Top age / disclaimer strip
---------------------------------------------------------------------------- */
.topbar {
  background: var(--bg-dark); color: #cbd5e1;
  font-size: .82rem; text-align: center; padding: .5rem 1rem;
  letter-spacing: .2px;
}
.topbar b { color: var(--secondary-light); }
.topbar .age-pill {
  display: inline-block; background: var(--secondary); color: #fff;
  font-weight: 700; padding: .05rem .5rem; border-radius: var(--r-full);
  font-size: .74rem; margin-right: .35rem;
}

/* ----------------------------------------------------------------------------
   7. Hero
---------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(249,115,22,.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(37,99,235,.35), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%;
  width: 520px; height: 520px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.10);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-weight: 600; font-size: .85rem;
  padding: .45rem 1rem; border-radius: var(--r-full); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--secondary-light); }
.hero-sub { font-size: 1.2rem; color: #cbd5e1; max-width: 560px; margin-bottom: 1.8rem; }
.hero .btn-group { margin-bottom: 1.8rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; }
.hero-stat .num {
  font-family: var(--font-head); font-style: italic; font-size: 2rem;
  color: var(--secondary-light); line-height: 1;
}
.hero-stat .label { font-size: .85rem; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.08);
}
.hero-visual .float-card {
  position: absolute; background: #fff; color: var(--text);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem;
  font-weight: 700; font-size: .9rem;
}
.hero-visual .float-card .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 1.1rem;
}
.float-card.fc-1 { left: -18px; top: 22%; }
.float-card.fc-1 .ic { background: var(--grad-primary); }
.float-card.fc-2 { right: -14px; bottom: 16%; }
.float-card.fc-2 .ic { background: var(--grad-accent); }
.float-card .sub { display: block; font-weight: 500; font-size: .74rem; color: var(--text-soft); }

/* wave divider */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ----------------------------------------------------------------------------
   8. Feature cards / grids
---------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1.1rem; color: #fff;
  background: var(--grad-primary); box-shadow: var(--shadow-primary);
}
.feature-icon.alt { background: var(--grad-accent); box-shadow: var(--shadow-secondary); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .98rem; }

/* number/step cards */
.step-card { position: relative; padding-top: 2.2rem; }
.step-num {
  position: absolute; top: -18px; left: 1.7rem;
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-style: italic; font-size: 1.4rem; color: #fff;
  background: var(--grad-accent); box-shadow: var(--shadow-secondary);
}

/* ----------------------------------------------------------------------------
   9. Split / media sections
---------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.split-media { position: relative; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin: .7rem 0; color: var(--text-muted); }
.check-list li::before {
  content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-100); color: var(--primary-dark); font-weight: 700; font-size: .8rem;
}
.section-dark .check-list li { color: #cbd5e1; }
.section-dark .check-list li::before { background: rgba(37,99,235,.25); color: #93c5fd; }

/* ----------------------------------------------------------------------------
   10. Tools (interactive)
---------------------------------------------------------------------------- */
.tool {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow); overflow: hidden;
}
.tool-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.tool-head .t-ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 1.35rem; background: var(--grad-primary); box-shadow: var(--shadow-primary);
}
.tool-head.alt .t-ic { background: var(--grad-accent); box-shadow: var(--shadow-secondary); }
.tool-head h3 { margin: 0; }
.tool-head .t-sub { font-size: .9rem; color: var(--text-soft); margin: 0; }
.tool-head .t-meta { margin-left: auto; }
.tool-body { padding: 1.6rem; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--r-full);
}
.tag-blue { background: var(--primary-100); color: var(--primary-darker); }
.tag-orange { background: var(--secondary-50); color: var(--secondary-dark); border: 1px solid #fed7aa; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-slate { background: var(--bg-muted); color: var(--text-muted); }

/* form controls */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.input, select.input, textarea.input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; transition: border-color .18s, box-shadow .18s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.input-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }

/* --- XI Team Picker --- */
.picker-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: 1.2rem;
}
.picker-filter {
  border: 1.5px solid var(--border); background: #fff; color: var(--text-muted);
  font-weight: 600; font-size: .85rem; padding: .45rem .9rem; border-radius: var(--r-full);
  cursor: pointer; transition: .16s;
}
.picker-filter:hover { border-color: var(--primary); color: var(--primary); }
.picker-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.picker-count {
  margin-left: auto; font-weight: 700; font-family: var(--font-head); font-style: italic;
  font-size: 1.1rem; color: var(--primary);
}
.picker-count.full { color: #15803d; }

.player-pool {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem;
  max-height: 420px; overflow-y: auto; padding: .3rem; margin: 0 -.3rem;
}
.player-chip {
  border: 1.5px solid var(--border); border-radius: var(--r); padding: .7rem .8rem;
  cursor: pointer; background: #fff; transition: .15s; text-align: left; position: relative;
  display: flex; flex-direction: column; gap: .25rem;
}
.player-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.player-chip.selected { border-color: var(--primary); background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.player-chip.selected::after {
  content: "✓"; position: absolute; top: .5rem; right: .5rem;
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: .72rem; display: grid; place-items: center; font-weight: 700;
}
.player-chip .p-name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.player-chip .p-role { font-size: .75rem; color: var(--text-soft); }
.player-chip.disabled { opacity: .45; cursor: not-allowed; }
.player-chip.disabled:hover { transform: none; border-color: var(--border); box-shadow: none; }

.role-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .35rem; }
.role-BAT { background: #2563eb; } .role-BOWL { background: #f97316; }
.role-AR { background: #16a34a; } .role-WK { background: #a855f7; }

.balance-panel {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.2rem; margin-top: 1.2rem;
}
.balance-row { display: flex; align-items: center; gap: .7rem; margin: .55rem 0; font-size: .9rem; }
.balance-row .b-label { width: 120px; font-weight: 600; }
.balance-row .b-bar { flex: 1; height: 10px; background: var(--bg-muted); border-radius: var(--r-full); overflow: hidden; }
.balance-row .b-bar span { display: block; height: 100%; border-radius: var(--r-full); transition: width .4s ease; }
.balance-row .b-val { width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-verdict {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem;
  display: flex; gap: .5rem; align-items: flex-start;
}
.balance-verdict.good { background: #dcfce7; color: #15803d; }
.balance-verdict.warn { background: var(--secondary-50); color: var(--secondary-dark); border: 1px solid #fed7aa; }
.balance-verdict.bad  { background: #fee2e2; color: #b91c1c; }

/* --- Run Chase Visualizer --- */
.chase-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: start; }
.chase-result {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .8rem; margin-bottom: 1.2rem;
}
.stat-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1rem;
}
.stat-box .s-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); font-weight: 700; }
.stat-box .s-val { font-family: var(--font-head); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--primary); }
.stat-box.hot .s-val { color: var(--secondary-dark); }
.chase-chart {
  border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem 1rem .6rem; background: #fff;
}
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-top: 10px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.chart-bar .bar {
  width: 100%; max-width: 34px; border-radius: 6px 6px 0 0;
  background: var(--grad-primary); transition: height .5s ease; position: relative; min-height: 2px;
}
.chart-bar.req .bar { background: var(--grad-accent); }
.chart-bar .bar-val { font-size: .72rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.chart-bar .bar-x { font-size: .68rem; color: var(--text-light); }
.chart-legend { display: flex; gap: 1.2rem; justify-content: center; margin-top: .9rem; font-size: .8rem; color: var(--text-soft); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.chase-verdict { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; }
.chase-verdict.easy { background: #dcfce7; color: #15803d; }
.chase-verdict.tough { background: var(--secondary-50); color: var(--secondary-dark); }
.chase-verdict.hard { background: #fee2e2; color: #b91c1c; }

/* --- Player Stats Lookup --- */
.stats-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; align-items: center; }
.stats-search { position: relative; flex: 1; min-width: 220px; }
.stats-search .input { padding-left: 2.6rem; }
.stats-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-light); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px;
}
table.data thead th {
  background: var(--bg-dark); color: #fff; text-align: left; padding: .85rem 1rem;
  font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; position: relative;
}
table.data thead th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data thead th:hover { background: var(--bg-dark-2); }
table.data thead th .arrow { opacity: .4; font-size: .7rem; margin-left: .3rem; }
table.data thead th.sorted .arrow { opacity: 1; color: var(--secondary-light); }
table.data tbody td { padding: .8rem 1rem; border-top: 1px solid var(--border); }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody tr:hover { background: var(--primary-50); }
table.data .player-cell { display: flex; align-items: center; gap: .6rem; font-weight: 700; white-space: nowrap; }
table.data .flag { font-size: 1.1rem; }
.stats-empty { text-align: center; padding: 2rem; color: var(--text-soft); }
.stats-count { font-size: .85rem; color: var(--text-soft); margin-top: .7rem; }

/* ----------------------------------------------------------------------------
   11. FAQ accordion
---------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: .8rem; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: #cbd5e1; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ic {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-100);
  color: var(--primary-dark); display: grid; place-items: center; font-size: 1.1rem; transition: .25s; font-weight: 700;
}
.faq-item[open] summary .q-ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ----------------------------------------------------------------------------
   12. CTA band
---------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--grad-primary); color: #fff; border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249,115,22,.35), transparent 45%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.6rem; }
.cta-band .btn-group { justify-content: center; }

/* ----------------------------------------------------------------------------
   13. Auth (login / signup)
---------------------------------------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-visual {
  position: relative; background: var(--grad-hero); color: #fff; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(249,115,22,.3), transparent 45%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.auth-visual p { color: #cbd5e1; }
.auth-visual .check-list { margin-top: 1.6rem; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: .4rem; }
.auth-card .sub { color: var(--text-soft); margin-bottom: 1.8rem; }
.auth-note {
  font-size: .82rem; color: var(--text-soft); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: .8rem 1rem; margin-top: 1.2rem;
  display: flex; gap: .6rem; align-items: flex-start;
}
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-soft); font-size: .82rem; font-weight: 600; padding: .3rem; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; font-size: .9rem; }
.checkbox { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: var(--text-muted); }
.checkbox input { margin-top: .28rem; width: 16px; height: 16px; accent-color: var(--primary); }
.divider-or { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--text-light); font-size: .85rem; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; margin-top: 1.4rem; font-size: .95rem; color: var(--text-muted); }

/* form validation states */
.field .err-msg { display: none; color: #dc2626; font-size: .82rem; margin-top: .35rem; }
.field.invalid .input { border-color: #dc2626; }
.field.invalid .err-msg { display: block; }
.form-success {
  display: none; background: #dcfce7; color: #15803d; border: 1px solid #86efac;
  border-radius: var(--r-sm); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600;
}
.form-success.show { display: block; }

/* ----------------------------------------------------------------------------
   14. APK page specifics
---------------------------------------------------------------------------- */
.apk-hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.apk-icon {
  width: 96px; height: 96px; border-radius: 22px; background: var(--grad-primary);
  display: grid; place-items: center; box-shadow: var(--shadow-primary); flex-shrink: 0;
}
.apk-icon img { width: 70px; }
.apk-meta { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 1rem 0; }
.apk-meta .m { }
.apk-meta .m .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); font-weight: 700; }
.apk-meta .m .v { font-weight: 700; font-size: 1.05rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-soft); width: 45%; font-weight: 600; }
.spec-table td:last-child { font-weight: 600; }
.stars { color: var(--secondary); letter-spacing: 2px; }

/* ----------------------------------------------------------------------------
   15. Legal / article pages
---------------------------------------------------------------------------- */
.page-hero {
  background: var(--grad-hero); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(249,115,22,.22), transparent 45%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .crumb { color: #94a3b8; font-size: .9rem; margin-bottom: .8rem; }
.page-hero .crumb a { color: #cbd5e1; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .updated { color: #cbd5e1; margin-top: .6rem; font-size: .95rem; }

.article { max-width: 820px; }
.article h2 { margin: 2.2rem 0 .9rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.article h3 { margin: 1.6rem 0 .6rem; }
.article p, .article li { color: var(--text-muted); }
.article ul, .article ol { margin: .6rem 0 1.2rem; }
.article a { text-decoration: underline; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.3rem 1.5rem; margin-bottom: 2rem;
}
.toc h4 { margin-bottom: .6rem; font-family: var(--font-body); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--text-soft); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc a { text-decoration: none; color: var(--primary); font-weight: 600; }
.notice-box {
  border-left: 4px solid var(--secondary); background: var(--secondary-50);
  padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 1.4rem 0; color: var(--secondary-dark);
}
.notice-box.blue { border-color: var(--primary); background: var(--primary-50); color: var(--primary-darker); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-methods { display: grid; gap: 1rem; }
.contact-method {
  display: flex; gap: 1rem; align-items: center; padding: 1.2rem;
  border: 1px solid var(--border); border-radius: var(--r); background: #fff; transition: .18s;
}
.contact-method:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.contact-method .cm-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-method .cm-k { font-size: .8rem; color: var(--text-soft); }
.contact-method .cm-v { font-weight: 700; }

/* ----------------------------------------------------------------------------
   16. Footer
---------------------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding-top: clamp(48px, 6vw, 72px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: .92rem; margin-top: .9rem; max-width: 320px; }
.footer-logo { height: 34px; margin-bottom: .6rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .55rem 0; }
.footer-col a { color: #94a3b8; font-size: .95rem; }
.footer-col a:hover { color: var(--secondary-light); }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-dark-2); display: grid; place-items: center; color: #cbd5e1; }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-18 {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--bg-dark-2);
  border: 1px solid var(--border-dark); border-radius: var(--r-sm); padding: .6rem .9rem; margin-top: 1.2rem;
}
.footer-18 .b18 { background: var(--secondary); color: #fff; font-weight: 800; border-radius: 6px; padding: .1rem .4rem; font-size: .8rem; }
.footer-18 span { font-size: .82rem; color: #cbd5e1; }

.footer-disclaimer { border-top: 1px solid var(--border-dark); padding: 1.6rem 0; font-size: .82rem; color: #64748b; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding: 1.4rem 0; display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: space-between; align-items: center; font-size: .88rem;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }

/* ----------------------------------------------------------------------------
   17. Utilities / misc
---------------------------------------------------------------------------- */
/* Scroll-reveal is a progressive enhancement: elements only hide when the
   `js` class is present, so no-JS users always see the content. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-full); padding: .5rem 1rem; font-weight: 600; font-size: .88rem; color: var(--text-muted);
}
.pill .ic { color: var(--secondary); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* markets / sports strip */
.markets { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.market-pill {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-full); padding: .6rem 1.2rem; font-weight: 700; box-shadow: var(--shadow-sm);
  transition: .18s;
}
.market-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.market-pill .emo { font-size: 1.2rem; }

/* ----------------------------------------------------------------------------
   18. Responsive
---------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .chase-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .btn-desktop { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem var(--gutter) 1.4rem;
    gap: .2rem; box-shadow: var(--shadow-md);
  }
  .main-nav.open a { padding: .8rem 1rem; font-size: 1.05rem; }
  .main-nav.open a.active::after { display: none; }
  .main-nav.open .nav-cta { display: flex; margin-top: .6rem; }
  .main-nav.open a.nav-cta { color: #fff; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.2rem 1.8rem; }
  body { font-size: 16px; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .apk-hero-card { flex-direction: column; text-align: center; align-items: stretch; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .site-header, .site-footer, .topbar, .cta-band, .btn { display: none !important; }
  body { color: #000; }
}
