html, body, #app, .page {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background: #000 !important;
    color: #eee !important;
    border: none !important;
    box-shadow: none !important;
}

/* When side box is hidden, allow main play area to use left space */
.side-hidden #clickedBox { display: none !important; }
.side-hidden .main { margin-left: 12px !important; }
.side-hidden .main { display: flex; flex-direction: column; align-items: stretch; }
.side-hidden .grid { width: 100%; }

@media (max-width: 1024px) {
  .side-hidden .main { margin-left: 12px !important; }
}
.root-vars {
  /* fallback class - not used; keep for compatibility */
}

/* Ensure logo variables are available in the app regardless of site.css load order */
:root {
  --logo-blue: #0000FF;
  --logo-red: #FF0000;
  /* Card colors for pricing / feature cards */
  --card-bg: #fbf7f2; /* soft beige */
  --card-border: rgba(16,24,40,0.06);
  --card-border-strong: rgba(2,6,23,0.12);
  --card-border-hover: #3b82f6; /* vivid blue */
  --card-border-featured: #4f46e5; /* optional featured outline */
  --card-shadow: 0 12px 28px rgba(2,6,23,0.06);
  --card-shadow-strong: 0 30px 60px rgba(2,6,23,0.12);
  --card-highlight: rgba(255,255,255,0.28);
  --card-outline: rgba(59,130,246,0.18);
}
.page { display:flex; height:100vh; font-family: Inter, Arial, sans-serif; background: #000; color: #eee; min-height:100vh; width:100%; }

/* Brand two-color parts for app UI (use variables) */
.brand-vision { color: var(--logo-red); font-weight:800; }
.brand-sync { color: var(--logo-blue); font-weight:800; }

/* Landing page typography and spacing tweaks */
.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #071023;
  margin: 0 0 8px 0;
  line-height: 1.05;
}
.hero .sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 720px;
  margin: 0;
  text-align: left;
  line-height: 1.45;
}

.accent-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #071023;
  margin-bottom: 12px;
}

/* ===== HOW WE'RE DIFFERENT - 2-column card grid ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: 16px auto 0;
}

.compare-card {
  text-align: left;
}

.compare-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #071023;
  margin: 0 0 10px 0;
  text-align: center;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: #475569;
  display: inline-block;
  text-align: left;
  max-width: 420px;
  width: auto;
}

.compare-card ul li { margin-bottom: 8px; }

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  line-height: 1.6;
  text-align: left;
  width: 100%;
  display: block;
}

.compare-list li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}

.compare-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: #3b82f6;
  font-weight: 700;
}

.no-bullets .compare-list li::before {
  content: '\2715';
  color: #ef4444;
}

/* Mobile: stack to single column */
@media (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}

/* Pricing cards: tighten typography and left-align content */
#pricing-grid .plan {
  align-items: flex-start;
  text-align: left;
  padding: 20px 22px;
}

#pricing-grid .plan h3 { font-size: 22px; margin-bottom:6px; }
#pricing-grid .plan .desc { font-size: 14px; color: #475569; max-width: 100%; }

#pricing-grid .features { margin-top: 10px; }
#pricing-grid .features li { margin: 8px 0; }

/* Ensure hero and compare sections have comfortable vertical rhythm */
section.section-centered { padding-top: 8px; padding-bottom: 12px; }


/* Explicitly remove subtle white-ish borders on the main app UI that
   interfere with the dark theme. Use !important to override landing CSS. */
.page, .main, header, .card-illustration, .compare-card, .level-item, .login-card {
    border: none !important;
    box-shadow: none !important;
}

/* Remove any focus outlines that might appear around the viewport due to focus rings */
.page *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Darken scrollbar track so white edges are not visible in some browsers */
::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
.sidebar { width:220px; padding:20px; background:#000; }
.main { flex:1; padding:20px; overflow:auto; margin-top:60px; margin-left:160px; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(var(--cell-min,100px), 1fr)); gap:var(--grid-gap,8px); margin-top:10px; align-items:stretch; align-content:stretch; width:100%; height: var(--game-area-height, calc(100dvh - 270px)); min-height:150px; }
.grid .cell { display:flex; align-items:center; justify-content:center; background:#000; border-radius:8px; cursor:pointer; font-weight:bold; border: none; min-width:0; padding:6px; }
.target { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; justify-content:center; align-items:center; }
 .target .letter { display:flex; align-items:center; justify-content:center; background:black; color:blue; border-radius:8px; font-weight:bold; border: none; padding:0; min-width:50px; min-height:50px; width:auto; height:auto; }
 .target .letter.big { width: var(--target-cell-size, 64px); height: var(--target-cell-size, 64px); font-size: var(--target-font-size, 32px); }
.controls { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.info { margin-top:10px; }
button { cursor:pointer; background:#111; color:#9cf; border:1px solid #444; padding:6px 10px; border-radius:6px; }
select { background:#111; color:#9cf; border:1px solid #444; padding:6px; border-radius:6px; }
input { background:#111; color:#eee; border:1px solid #444; padding:6px; border-radius:6px; }

/* Signup form layout */
.signup-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.form-row { display:flex; flex-direction:column; }
.field { display:flex; flex-direction:column; }
.field-inline { display:flex; align-items:center; gap:8px; }
.captcha-block { display:flex; gap:10px; align-items:center; }
.captcha-image { height:60px; display:block; }
.btn-row { display:flex; gap:8px; flex-wrap:wrap; }
.error-msg { color:#ffcccc; }
.success-msg { color:#0a5; }

/* password show/hide */
.pw-wrap { position:relative; }
.pw-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); background:transparent; border:none; color:#9cf; cursor:pointer; font-size:16px; }

/* responsive: stack columns on small screens */
@media (max-width: 600px) {
  .signup-grid { grid-template-columns: 1fr; }
  .captcha-block { flex-direction:column; align-items:flex-start; }
}

/* Responsive helpers (minimal-impact additions)
   - Provide safe wrappers for tables, charts and admin drawer
   - Keep default layouts intact on desktop; adjust only on smaller viewports
*/
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive .table { min-width: 640px; }

/* Stats bar styling: remove borders/icons and keep compact on small screens */
.stats-bar {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  border: none !important;
  box-shadow: none !important;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-bar .stats-content { display:flex; gap:12px; align-items:center; }
.stats-bar .level-group select { background:transparent; border:1px solid rgba(255,255,255,0.04); color:#fff; }
.stat-item { display:flex; gap:8px; align-items:center; margin-right:12px }
.stat-icon { width:18px; height:18px; }
.stat-icon--small { width:14px; height:14px; }

@media (max-width: 480px) {
  /* Reduce clock and icon sizes on very small screens */
  .stat-icon--small { width:10px !important; height:10px !important; }
  .stats-bar { height:44px !important; }
  .stats-bar .stat-item { font-size:0.82rem; }
  .stats-bar .stat-icon { width:14px !important; height:14px !important; }
  .stats-bar .level-group label { display:none; }
}

.chart-wrapper { width: 100%; max-width: 100%; overflow: hidden; display: block; }
.chart-wrapper svg { width: 100% !important; height: 34px !important; }

/* Pricing controls and plan card styles moved from landing page inline styles */
/* Pricing tab styles (monthly/yearly toggle) */
.tab-wrapper { width:100%; display:flex; justify-content:center; align-items:center; margin: 0 0 8px 0; }
.tabs { background: #f1f5f9; padding: 6px; border-radius: 12px; display:flex; position: relative; border: 1px solid rgba(2,6,23,0.06); align-items:center; width: max-content; margin: 0 auto; }
.tabs .tab-slider { position: absolute; height: calc(100% - 8px); width: calc(50% - 8px); background: #3b82f6; top: 4px; left: 4px; border-radius: 10px; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); z-index: 0; box-shadow: 0 6px 18px rgba(59,130,246,0.12); }
.tabs.yearly-active .tab-slider { transform: translateX(100%); }
.tab { padding: 12px 30px; font-size: 1rem; font-weight:800; color: #94a3b8; cursor: pointer; border-radius:8px; position: relative; z-index: 1; }
.tab.active { color: #fff; }
.tabs .discount-badge { position: absolute; top: -10px; right: -6px; background: #10b981; color: #fff; font-weight:800; padding:8px 12px; border-radius: 10px; font-size:13px; box-shadow: 0 8px 22px rgba(16,185,129,0.14); transform: rotate(6deg); }

/* Make CTA buttons in pricing white text and tighter spacing to match screenshot */
#pricing-grid .cta { color: #fff !important; background: #0b5cff !important; padding:12px 20px !important; min-width:160px !important; border-radius:12px !important; box-shadow: 0 10px 30px rgba(11,92,202,0.12) !important; }

/* ===== PRICING PLAN CARDS - SINGLE AUTHORITATIVE DEFINITION ===== */

#pricing-grid .plan {
  position: relative;
  overflow: visible;
  padding: 22px 28px;
  border-radius: 14px;
  width: 360px;
  background: #fbf7f2;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  color: #071023;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .28s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 0;
}

#pricing-grid .plan h3 { 
  font-size: 26px; 
  margin: 4px 0 4px 0; 
  color: #071023; 
  font-weight: 800; 
}

#pricing-grid .plan .desc { 
  color: #475569; 
  font-size: 14px; 
  margin: 4px 0 8px 0; 
  max-width: 300px; 
}

#pricing-grid .price { 
  color: #0b5cff; 
  font-size: 34px; 
  font-weight: 900; 
  display: inline-block; 
  margin-right: 6px; 
}

#pricing-grid .per { 
  color: #6b7280; 
  font-size: 15px; 
  font-weight: 600; 
}

#pricing-grid .price-line { 
  margin: 4px 0 2px 0; 
}

#pricing-grid .yearly-total { 
  margin: 2px 0 6px 0; 
  color: #6b7280; 
  font-size: 0.95rem; 
  display: block; 
  opacity: 0; 
  transform: translateY(-6px); 
  transition: opacity .25s, transform .25s; 
}

body.billing-yearly #pricing-grid .plan .yearly-total { 
  opacity: 1; 
  transform: translateY(0); 
}

#pricing-grid .cta { 
  color: #fff !important; 
  background: #0b5cff !important; 
  padding: 12px 20px !important; 
  min-width: 160px !important; 
  border-radius: 12px !important; 
  box-shadow: 0 10px 30px rgba(11, 92, 202, 0.12) !important; 
  margin: 6px 0 10px 0;
}

#pricing-grid .features { 
  margin-top: 6px; 
}

#pricing-grid .features li { 
  color: #334155; 
  margin: 6px 0; 
  padding-left: 0; 
  list-style: none; 
  position: relative; 
}

#pricing-grid .features li:before { 
  content: '\2713'; 
  color: #10b981; 
  position: absolute; 
  left: -20px; 
  top: 3px; 
  font-weight: 700; 
}

/* Card color variants */
#pricing-grid .plan.basic { 
  background: linear-gradient(180deg, #f3f8ff 0%, #fbf7f2 60%);
}

#pricing-grid .plan.pro { 
  background: linear-gradient(180deg, #fff8f3 0%, #fbf7f2 60%);
}

/* Glossy highlight on top */
#pricing-grid .plan::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Floating shadow beneath card */
#pricing-grid .plan::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -20px;
  height: 30px;
  background: radial-gradient(closest-side, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0));
  filter: blur(22px);
  z-index: -2;
  border-radius: 14px;
  transform: translateY(8px);
  transition: transform .28s ease, filter .28s ease;
}

/* HOVER STATE - VIVID BLUE BORDER + LIFTED SHADOW */
#pricing-grid .plan:hover {
  transform: translateY(-10px);
  border: 2px solid #3b82f6;
  box-shadow: 0 34px 70px rgba(2, 6, 23, 0.14), 0 6px 18px rgba(59, 130, 246, 0.08);
  z-index: 2;
}

#pricing-grid .plan:hover::after {
  transform: translateY(26px);
  filter: blur(28px);
  opacity: 0.98;
}

/* Featured card gets extra lift */
#pricing-grid .plan.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.16), 0 8px 24px rgba(59, 130, 246, 0.1);
}

/* Focus state for accessibility */
#pricing-grid .plan:focus-within {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 6px rgba(59, 130,246, 0.08);
}

/* ===== TRAINING TIERS CARDS - 3D HOVER EFFECT ===== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Row 1: Beginner spans both columns, centered */
.training-grid .tier-beginner {
  grid-column: 1 / -1;
  max-width: 360px;
  justify-self: center;
  width: 100%;
}

/* Rows 2 & 3: each card takes one column naturally */
.training-grid .tier-intermediate,
.training-grid .tier-advanced,
.training-grid .tier-expert,
.training-grid .tier-2020 {
  grid-column: auto;
}

/* ===== TRAINING TIERS RESPONSIVE OVERRIDES ===== */

/* Medium / tablet: keep same 2-col layout but adjust max-width */
@media (max-width: 1024px) {
  .training-grid {
    max-width: 100% !important;
    gap: 14px !important;
  }
  .training-grid .tier-beginner {
    max-width: 380px !important;
  }
}

/* Mobile: single column, beginner full-width */
@media (max-width: 600px) {
  .training-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 12px !important;
  }
  .training-grid .tier-beginner {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
  }
  .training-grid .tier-intermediate,
  .training-grid .tier-advanced,
  .training-grid .tier-expert,
  .training-grid .tier-2020 {
    grid-column: 1 / -1 !important;
  }
}

