/* JCZS76.com — Retro Sports Navy, Turf Emerald & Gold Arcade Portal */
:root {
  --bg: #07111e;
  --panel: #0d1c30;
  --panel-alt: #152942;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --accent: #10b981;
  --gold: #facc15;
  --crimson: #ef4444;
  --sky: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0f2942 0%, #091526 42%, var(--bg) 80%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 14px; }

.site-header {
  background: rgba(7, 17, 30, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand-badge {
  background: linear-gradient(135deg, #10b981, #facc15);
  color: #07111e;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link { color: var(--muted); padding: 6px 11px; border-radius: 7px; font-size: 0.9rem; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-link.active { border: 1px solid rgba(16, 185, 129, 0.6); color: var(--accent); }

.ad-slot { margin: 12px auto; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.ad-leaderboard { min-height: 90px; max-width: 970px; }
.ad-rectangle { min-height: 250px; max-width: 728px; }
.ad-placeholder {
  width: 100%;
  min-height: inherit;
  border: 1px dashed rgba(250, 204, 21, 0.22);
  background: rgba(13, 28, 48, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.game-title-wrap h1 { margin: 0; font-size: 1.38rem; color: #fff; }
.game-subtitle { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }
.hud-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.stat-pill strong { color: var(--gold); margin-left: 4px; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--panel-alt);
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.btn:hover:not(:disabled) { background: #1e3a5c; border-color: rgba(16, 185, 129, 0.55); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #041e15;
  font-weight: 800;
}
.btn-accent:hover:not(:disabled) { background: linear-gradient(135deg, #34d399, #10b981); }
.btn-gold {
  background: linear-gradient(135deg, #facc15, #eab308);
  border-color: #fde047;
  color: #07111e;
  font-weight: 800;
}
.btn-gold:hover:not(:disabled) { background: linear-gradient(135deg, #fde047, #facc15); }
.btn-crimson {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #f87171;
  color: #fff;
  font-weight: 800;
}
.btn-crimson:hover:not(:disabled) { background: linear-gradient(135deg, #f87171, #ef4444); }
.select-ctrl {
  background: var(--panel-alt);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}
.toast {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.toast.alert { color: #f87171; }

/* Quick-Start Bar */
.quickstart-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.qs-item { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.qs-num {
  background: var(--accent);
  color: #07111e;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-top: 2px;
}
.qs-item strong { color: #fff; }

/* Retro Stadium Scoreboard Banner */
.scoreboard-banner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #0b192c 0%, #060f1c 100%);
  border: 2px solid rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.sb-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(21, 41, 66, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 12px;
}
.sb-team {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.sb-score {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}
.sb-center {
  text-align: center;
  padding: 0 8px;
}
.sb-clock {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.sb-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sports Responsive Canvas Viewport */
.sports-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.sports-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.45);
  background: #050d17;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.sports-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

/* 1P / 2P Touch Button Pads */
.touch-pad-row {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px;
  user-select: none;
  -webkit-user-select: none;
}
.touch-pad-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sport-btn {
  appearance: none;
  min-width: 92px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #1b3453 0%, #0f2136 100%);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.06s ease, border-color 0.1s ease, background 0.1s ease;
}
.sport-btn:active, .sport-btn.active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.sport-p1 {
  border-color: rgba(16, 185, 129, 0.75);
  background: linear-gradient(180deg, #065f46 0%, #064e3b 100%);
}
.sport-p1:active, .sport-p1.active { background: #10b981; color: #041e15; }
.sport-p2 {
  border-color: rgba(250, 204, 21, 0.75);
  background: linear-gradient(180deg, #854d0e 0%, #713f12 100%);
}
.sport-p2:active, .sport-p2.active { background: #facc15; color: #07111e; }
.sport-action {
  border-color: rgba(250, 204, 21, 0.85);
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  color: #041e15;
  min-width: 150px;
}
.sport-action:active, .sport-action.active { background: #facc15; color: #07111e; }
.sport-block {
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
}
.sport-block:active, .sport-block.active { background: #38bdf8; color: #07111e; }
.sport-hit {
  border-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
}
.sport-hit:active, .sport-hit.active { background: #ef4444; color: #fff; }

/* Power Sliders & Upgrade / Shop Strips */
.power-slider-row {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}
.power-range {
  width: 170px;
  accent-color: var(--gold);
  cursor: pointer;
}
.shop-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: var(--panel-alt);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.upgrade-btn:hover:not(:disabled) { border-color: var(--gold); background: #1e3a5c; }

/* Bowling 10-Frame Scorecard Table */
.bowling-scorecard-wrap {
  width: 100%;
  max-width: 820px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #091526;
}
.bowling-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bowling-table th {
  background: #152942;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bowling-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  vertical-align: top;
  background: #0d1c30;
}
.bowling-table td.frame-active {
  background: rgba(16, 185, 129, 0.16);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.frame-rolls {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 22px;
}
.frame-rolls span {
  flex: 1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 3px;
  color: #e2e8f0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.frame-rolls span:first-child { border-left: none; }
.frame-rolls span.strike { color: var(--gold); }
.frame-rolls span.spare { color: var(--accent); }
.frame-total {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  padding: 2px 4px;
}

/* Sections, Catalog & FAQ */
.section-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
.section-card h2 { margin-top: 0; font-size: 1.28rem; color: var(--gold); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.variant-card {
  display: block;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
}
.variant-card:hover { border-color: var(--accent); text-decoration: none; }
.variant-card p { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-item:last-child { border-bottom: none; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 14px 36px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Tutorial Modal */
.tut-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.tut-backdrop.open { display: flex; }
.tut-modal {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  max-height: 90vh;
  overflow-y: auto;
}
.tut-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.tut-head h2 { margin: 4px 0 2px; font-size: 1.3rem; color: var(--gold); }
.tut-sub { margin: 0; font-size: 0.84rem; color: var(--muted); }
.tut-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tut-close { background: transparent; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.tut-goal {
  background: var(--panel-alt);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.tut-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tut-step { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, 0.04); padding: 9px 11px; border-radius: 9px; }
.tut-num {
  background: var(--gold);
  color: #07111e;
  font-weight: 800;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.tut-step p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.tut-box { font-size: 0.84rem; margin-bottom: 10px; }
.tut-box ul { margin: 4px 0 0 18px; padding: 0; color: var(--muted); }
.tut-tip {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  margin-bottom: 14px;
}
.tut-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.tut-check { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tut-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #041e15;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.9rem;
}

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
}
.catalog-card:hover { border-color: var(--accent); text-decoration: none; }
.catalog-card.current { border-color: var(--gold); background: rgba(16, 185, 129, 0.14); }
.catalog-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.badge-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

@media (max-width: 720px) {
  .quickstart-bar { grid-template-columns: 1fr; }
  .scoreboard-banner { grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; }
  .touch-pad-row { justify-content: center; }
  .sport-btn { min-width: 76px; min-height: 48px; padding: 8px 12px; font-size: 0.84rem; }
}


/* Extra Sports Controls & Variants */
.sport-sweep {
  border-color: rgba(56, 189, 248, 0.85);
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #f8fafc;
}
.sport-sweep:active, .sport-sweep.active { background: #38bdf8; color: #07111e; }
.sport-lob {
  border-color: rgba(168, 85, 247, 0.75);
  background: linear-gradient(180deg, #7e22ce 0%, #581c87 100%);
  color: #f8fafc;
}
.sport-lob:active, .sport-lob.active { background: #c084fc; color: #07111e; }

/* Extra2 Sports Button Variants & Compact Touch Layouts */
.sport-parry {
  border-color: rgba(56, 189, 248, 0.8);
  background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
  color: #f8fafc;
}
.sport-parry:active, .sport-parry.active { background: #38bdf8; color: #07111e; }
.sport-lunge {
  border-color: rgba(239, 68, 68, 0.85);
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  min-width: 136px;
}
.sport-lunge:active, .sport-lunge.active { background: #f87171; color: #07111e; }
.sport-trick {
  border-color: rgba(250, 204, 21, 0.85);
  background: linear-gradient(180deg, #eab308 0%, #a16207 100%);
  color: #07111e;
}
.sport-trick:active, .sport-trick.active { background: #fde047; color: #07111e; }
@media (max-width: 540px) {
  .sport-btn { min-width: 68px; min-height: 44px; padding: 7px 10px; font-size: 0.8rem; }
  .sport-action, .sport-lunge { min-width: 118px; }
}


/* Extra3 Sports Pill Chips & Dodge Button Variant */
.sport-chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.sport-chip {
  appearance: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 33, 54, 0.9);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.sport-chip:hover {
  border-color: rgba(250, 204, 21, 0.7);
  color: #f8fafc;
}
.sport-chip.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(250, 204, 21, 0.22));
  color: #facc15;
}
.sport-dodge {
  border-color: rgba(168, 85, 247, 0.8);
  background: linear-gradient(180deg, #7e22ce 0%, #581c87 100%);
  color: #f8fafc;
}
.sport-dodge:active, .sport-dodge.active {
  background: #c084fc;
  color: #07111e;
}
