:root {
  --mayks-red: #C42629;
  --mayks-red-dark: #8B1A1C;
  --mayks-red-light: #EF4444;
  --mayks-orange: #EF7D00;
  --mayks-navy: #1B2A4A;
  --mayks-navy-light: #2A3F6A;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --bg-dark: #0A0E1A;
  --bg-card: rgba(255,255,255,0.05);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.12);
  --success: #22C55E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200,16,46,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(27,42,74,0.2) 0%, transparent 50%),
    var(--bg-dark);
  z-index: 0;
}

.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* TOP BAR */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px;
  padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
}

.logo-area { display: flex; align-items: center; gap: 12px; }

.back-to-site {
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--mayks-red-light); text-decoration: none;
  border: 1px solid rgba(200,16,46,0.3); background: rgba(200,16,46,0.08);
  transition: all 0.2s; white-space: nowrap;
}
.back-to-site:hover { background: rgba(200,16,46,0.2); color: #fff; }

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: 3px;
  color: var(--mayks-red);
}

.logo-sub {
  font-size: 10px; letter-spacing: 4px; color: var(--text-secondary);
  text-transform: uppercase; margin-top: -2px;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover { color: var(--text-primary); background: var(--glass); }
.nav-link.active { color: var(--mayks-red); background: rgba(200,16,46,0.1); }

/* MAIN */
.main-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 60px;
}

.section { margin-bottom: 80px; }

.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
  font-size: 12px; font-weight: 600;
  color: var(--mayks-red-light);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 12px;
}

.section-title .accent { color: var(--mayks-red); }

.section-desc {
  font-size: 16px; color: var(--text-secondary);
  max-width: 600px; line-height: 1.6;
}

/* HERO */
.hero { text-align: center; padding-top: 40px; }
.hero .section-desc { margin: 0 auto 40px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(200,16,46,0.15));
  border: 1px solid rgba(255,215,0,0.3);
  font-size: 14px; font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  color: white;
  box-shadow: 0 4px 20px rgba(200,16,46,0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,16,46,0.5); }

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 10px; }

/* CARDS */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

/* PRIZES */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.prize-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  overflow: hidden;
}

.prize-card.gold { border-color: rgba(255,215,0,0.3); background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02)); }
.prize-card.silver { border-color: rgba(192,192,192,0.3); background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(192,192,192,0.02)); }
.prize-card.bronze { border-color: rgba(205,127,50,0.3); background: linear-gradient(135deg, rgba(205,127,50,0.08), rgba(205,127,50,0.02)); }

.prize-rank {
  font-size: 48px; font-weight: 800;
  opacity: 0.15; position: absolute;
  top: -5px; right: 16px;
}

.prize-card.gold .prize-rank { color: var(--gold); }
.prize-card.silver .prize-rank { color: var(--silver); }
.prize-card.bronze .prize-rank { color: var(--bronze); }

.prize-icon { font-size: 40px; margin-bottom: 12px; }

.prize-amount { font-size: 36px; font-weight: 800; margin-bottom: 4px; }

.prize-card.gold .prize-amount { color: var(--gold); }
.prize-card.silver .prize-amount { color: var(--silver); }
.prize-card.bronze .prize-amount { color: var(--bronze); }

.prize-label { font-size: 13px; color: var(--text-secondary); }

/* REWARDS */
.rewards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 24px;
}

.reward-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.reward-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.reward-icon.green { background: rgba(34,197,94,0.15); }
.reward-icon.blue { background: rgba(59,130,246,0.15); }
.reward-icon.purple { background: rgba(168,85,247,0.15); }

.reward-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.reward-text p { font-size: 12px; color: var(--text-secondary); }

/* REGISTRATION */
.register-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}

.register-form-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--mayks-red);
  background: rgba(200,16,46,0.05);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

/* TUTORIAL */
.tutorial-step { display: none; text-align: center; animation: tutFadeIn 0.3s ease; }
.tutorial-step.active { display: block; }
@keyframes tutFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tutorial-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tutorial-card {
  flex: 1; min-width: 110px; max-width: 140px;
  padding: 16px 12px; border-radius: 14px;
  border: 1px solid var(--glass-border);
  text-align: center; transition: transform 0.2s;
}
.tutorial-card:hover { transform: translateY(-3px); }
.tutorial-demo-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.tutorial-demo-item { text-align: center; }
.tutorial-nav { display: flex; align-items: center; justify-content: space-between; }
.tutorial-dots { display: flex; gap: 8px; }
.tutorial-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--glass-border); transition: all 0.3s; cursor: pointer;
}
.tutorial-dot.active { background: var(--mayks-red); width: 24px; border-radius: 5px; }
.tutorial-dot:nth-child(n+2) { display: none; }

.form-check {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0; cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--mayks-red);
  cursor: pointer;
}

.form-check label { font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.form-check a { color: var(--mayks-red-light); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }

.info-step { display: flex; gap: 16px; margin-bottom: 24px; }

.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--mayks-red-light); flex-shrink: 0;
}

.step-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* GAME */
#game-section { display: none; }

.game-wrapper { position: relative; max-width: 800px; margin: 0 auto; }

.game-hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px 16px 0 0;
  backdrop-filter: blur(10px);
}

.hud-item { text-align: center; }

.hud-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

.hud-value { font-size: 28px; font-weight: 800; }
.hud-value.score { color: var(--gold); }

.instructor-dots { display: flex; gap: 6px; margin-top: 4px; }

.instructor-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: all 0.3s;
}

.instructor-dot.collected {
  background: rgba(34,197,94,0.3);
  border-color: var(--success);
}

.game-canvas-wrap {
  position: relative;
  background: #1a1a1a;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  overflow: hidden;
}

#gameCanvas { display: block; width: 100%; touch-action: none; }

.game-controls-bar {
  display: flex; justify-content: center; gap: 12px;
  padding: 16px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 16px 16px;
}

.touch-controls {
  display: none;
  gap: 0;
  padding: 0;
}

.touch-btn {
  flex: 1;
  height: 60px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn:first-child { border-radius: 0; border-right: none; }
.touch-btn:last-child { border-radius: 0; border-left: none; }

.touch-btn:active {
  background: rgba(200,16,46,0.25);
  border-color: var(--mayks-red);
}

/* OVERLAYS */
.game-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10; text-align: center; padding: 40px;
}

.game-overlay.hidden { display: none; }

.overlay-title { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.overlay-score { font-size: 64px; font-weight: 900; color: var(--gold); margin: 16px 0; }
.overlay-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.overlay-stats { display: flex; gap: 24px; margin-bottom: 24px; }
.overlay-stat { text-align: center; }
.overlay-stat-value { font-size: 20px; font-weight: 700; }
.overlay-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* LEADERBOARD */
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.leaderboard-table th {
  text-align: left; padding: 8px 16px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

.leaderboard-table td { padding: 14px 16px; font-size: 14px; }
.leaderboard-table tbody tr { background: var(--glass); transition: all 0.2s; }
.leaderboard-table tbody tr:hover { background: rgba(255,255,255,0.08); }
.leaderboard-table tbody tr td:first-child { border-radius: 12px 0 0 12px; }
.leaderboard-table tbody tr td:last-child { border-radius: 0 12px 12px 0; }

.leaderboard-table tbody tr.top-1 { background: linear-gradient(90deg, rgba(255,215,0,0.1), var(--glass)); }
.leaderboard-table tbody tr.top-2 { background: linear-gradient(90deg, rgba(192,192,192,0.08), var(--glass)); }
.leaderboard-table tbody tr.top-3 { background: linear-gradient(90deg, rgba(205,127,50,0.08), var(--glass)); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
}

.rank-1 { background: rgba(255,215,0,0.2); color: var(--gold); }
.rank-2 { background: rgba(192,192,192,0.2); color: var(--silver); }
.rank-3 { background: rgba(205,127,50,0.2); color: var(--bronze); }
.rank-other { background: var(--glass); color: var(--text-secondary); }

.player-name { font-weight: 600; }
.player-name.is-you { color: var(--mayks-red-light); }
.score-cell { font-weight: 700; color: var(--gold); }

/* ARCHIVE */
.archive-winners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 24px;
}

.archive-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 24px;
}

.archive-month { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.archive-entry {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--glass-border);
}

.archive-entry:last-child { border-bottom: none; }

/* COUNTDOWN */
.countdown-bar { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }
.countdown-unit { text-align: center; }

.countdown-num {
  font-size: 32px; font-weight: 800;
  color: var(--mayks-red-light);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 8px 16px;
  min-width: 64px; display: block;
}

.countdown-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}

/* TOAST */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 24px;
  background: rgba(10,14,26,0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  font-size: 14px; z-index: 200;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; gap: 10px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.reward { border-color: rgba(255,215,0,0.4); }


/* MODAL */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 300;
  align-items: center; justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: #111827; border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 32px;
  max-width: 700px; width: 92%; max-height: 85vh;
  overflow-y: auto; position: relative;
}

.modal-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--mayks-red); }
.modal-box h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.modal-box p, .modal-box li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.modal-box ul { padding-left: 20px; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }



/* LOTTERY UX */
.lottery-hud {
  min-width: 150px;
}
.lottery-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 12px; font-weight: 700;
}
.lottery-pill.in { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.35); color: #4ADE80; }
.lottery-pill.missing { background: rgba(196,38,41,0.12); border-color: rgba(196,38,41,0.28); color: var(--mayks-red-light); }
.submit-status, .lottery-status-panel {
  width: min(460px, 100%); margin: 0 auto 14px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
  font-size: 13px; line-height: 1.45;
}
.submit-status.ok { border-color: rgba(34,197,94,0.35); color: #4ADE80; background: rgba(34,197,94,0.1); }
.submit-status.err { border-color: rgba(239,68,68,0.35); color: #F87171; background: rgba(239,68,68,0.1); }
.lottery-status-panel strong { color: var(--text-primary); }
.lottery-status-panel.in { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.1); }
.form-hint { margin-top: 10px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.referral-invite-hint {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(239,125,0,0.28);
  border-radius: 12px;
  background: rgba(239,125,0,0.10);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.referral-panel {
  width: min(100%, 640px);
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.referral-panel[hidden] { display: none; }
.referral-panel strong,
.referral-panel span,
.referral-panel small {
  display: block;
}
.referral-panel strong {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 3px;
}
.referral-panel span {
  color: var(--text-secondary);
  font-size: 13px;
}
.referral-panel small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.referral-progress-line {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.gradient-text { background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange), var(--mayks-red)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 4s ease-in-out infinite; }
@keyframes gradientShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }



/* THEME HARDENING — keep light/dark consistent everywhere */
:root {
  --page-bg: #080A0F;
  --page-bg-2: #111521;
  --panel: rgba(17, 21, 33, 0.82);
  --panel-solid: #111521;
  --panel-soft: rgba(255,255,255,0.075);
  --panel-hover: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.22);
  --copy: #F9FAFB;
  --copy-soft: rgba(249,250,251,0.76);
  --copy-muted: rgba(249,250,251,0.52);
  --canvas-bg: #121826;
  --overlay-bg: rgba(8, 10, 15, 0.86);
  --control-bg: rgba(17, 21, 33, 0.90);
}
html[data-theme="light"] {
  --page-bg: #F6F2ED;
  --page-bg-2: #FFFFFF;
  --panel: rgba(255,255,255,0.86);
  --panel-solid: #FFFFFF;
  --panel-soft: rgba(255,255,255,0.72);
  --panel-hover: rgba(196,38,41,0.08);
  --line: rgba(27,42,74,0.14);
  --line-strong: rgba(27,42,74,0.24);
  --copy: #151820;
  --copy-soft: rgba(21,24,32,0.74);
  --copy-muted: rgba(21,24,32,0.52);
  --canvas-bg: #E8F1FB;
  --overlay-bg: rgba(255,255,255,0.88);
  --control-bg: rgba(255,255,255,0.92);
  --bg-dark: var(--page-bg);
  --bg-elevated: var(--panel);
  --bg-card-solid: var(--panel-solid);
  --text-primary: var(--copy);
  --text-secondary: var(--copy-soft);
  --text-muted: var(--copy-muted);
  --glass: var(--panel-soft);
  --glass-border: var(--line);
}
html[data-theme="dark"] {
  --bg-dark: var(--page-bg);
  --bg-elevated: var(--panel);
  --bg-card-solid: var(--panel-solid);
  --text-primary: var(--copy);
  --text-secondary: var(--copy-soft);
  --text-muted: var(--copy-muted);
  --glass: var(--panel-soft);
  --glass-border: var(--line);
}
body, .main-content, .footer { color: var(--copy); }
.top-bar, .game-hud, .game-controls-bar, .modal-box, .toast, .consent-banner {
  background: var(--control-bg) !important;
  border-color: var(--line) !important;
  color: var(--copy) !important;
}
.card, .register-form-card, .prize-card, .reward-item, .countdown-unit, .hero-facts div, .game-wrapper, .tutorial-card, .archive-card {
  background: var(--panel) !important;
  border-color: var(--line) !important;
  color: var(--copy) !important;
}
.nav-links, .btn-secondary, .touch-btn, .rank-other, .lottery-pill, .submit-status, .lottery-status-panel {
  background: var(--panel-soft) !important;
  border-color: var(--line) !important;
  color: var(--copy) !important;
}
.nav-link, .section-desc, .overlay-subtitle, .modal-box p, .modal-box li, .form-check label, .step-content p, .reward-text p, .prize-label, .hud-label, .countdown-label, .form-hint {
  color: var(--copy-soft) !important;
}
.logo-sub, .overlay-stat-label, .text-muted, .footer, .footer p { color: var(--copy-muted) !important; }
.form-input {
  background: var(--panel-solid) !important;
  border-color: var(--line) !important;
  color: var(--copy) !important;
}
.form-input::placeholder { color: var(--copy-muted) !important; }
.game-canvas-wrap {
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--mayks-red) 10%, transparent), transparent 36%),
    var(--canvas-bg) !important;
  border-color: var(--line) !important;
}
.game-overlay {
  background: var(--overlay-bg) !important;
  color: var(--copy) !important;
  backdrop-filter: blur(18px) saturate(1.15);
}
.leaderboard-table tbody tr { background: var(--panel) !important; color: var(--copy) !important; }
.leaderboard-table tbody tr:hover { background: var(--panel-hover) !important; }
.instructor-dot { background: var(--panel-soft) !important; border-color: var(--line-strong) !important; }
.instructor-dot.collected { background: rgba(34,197,94,0.24) !important; border-color: var(--success) !important; }
html[data-theme="light"] .nav-link.active, html[data-theme="light"] .btn-primary { color: #FFFFFF !important; }
html[data-theme="light"] .bg-gradient {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(196,38,41,0.14) 0%, transparent 44%),
    radial-gradient(ellipse at 85% 25%, rgba(239,125,0,0.12) 0%, transparent 40%),
    linear-gradient(180deg, #FFFDFC 0%, #F6F2ED 100%) !important;
}
html[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(27,42,74,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,42,74,0.055) 1px, transparent 1px) !important;
}

/* FOOTER */
.footer {
  text-align: center; padding: 40px 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px; color: var(--text-muted);
}

.footer a { color: var(--mayks-red-light); text-decoration: none; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.footer-links a { cursor: pointer; }
.footer-links a:hover { text-decoration: underline; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }

/* PARTICLES */
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-content { padding: 64px 16px 40px; }
  .top-bar { height: 48px; padding: 0 12px; }
  .top-bar img { height: 24px; }
  .section { margin-bottom: 48px; }
  .register-section { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .prizes-grid { grid-template-columns: 1fr; }
  .touch-controls { display: flex !important; }
  .game-hud { padding: 8px 10px; gap: 6px; }
  .hud-value { font-size: 18px; }
  .hud-label { font-size: 9px; }
  .section-title { font-size: 28px; }
  .register-form-card { padding: 24px; }
  .countdown-num { font-size: 24px; padding: 6px 12px; }
  .overlay-score { font-size: 40px; margin: 8px 0; }
  .overlay-title { font-size: 20px; }

  /* Game section: full mobile viewport height */
  #game-section {
    padding: 48px 0 0 0;
    max-width: 100%;
  }
  #game-section .section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 48px);
    overflow: hidden;
  }
  #game-section .section > div:first-child { padding: 8px 0 4px; }
  #game-section .section-badge { font-size: 11px; padding: 4px 10px; margin-bottom: 4px; }
  #game-section .game-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #game-section .game-canvas-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  #game-section .game-controls-bar {
    border-radius: 0;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  #game-section .touch-controls {
    flex-shrink: 0;
    display: flex;
  }

  /* Overlay: compact on mobile */
  .game-overlay { padding: 16px 12px; overflow-y: auto; }
  .overlay-subtitle { font-size: 12px; margin-bottom: 12px; }
  .overlay-stats { gap: 16px; }

  /* Tutorial mobile */
  .tutorial-cards { gap: 6px; }
  .tutorial-card { min-width: 80px; max-width: 110px; padding: 10px 6px; }
  .tutorial-card div:first-child { font-size: 24px !important; margin-bottom: 4px !important; }
  .tutorial-card div:nth-child(2) { font-size: 11px !important; }
  .tutorial-card div:nth-child(3) { font-size: 10px !important; }
  .tutorial-demo-row { gap: 12px; }
  .tutorial-nav { margin-top: 14px; }
  #tutorialContainer { max-width: 100%; }

}

@media (max-width: 480px) {
  .prizes-grid { grid-template-columns: 1fr; }
  .rewards-row { grid-template-columns: 1fr; }
  .overlay-stats { flex-direction: column; gap: 8px; }
  .game-hud { flex-wrap: wrap; justify-content: center; }
  .tutorial-card { min-width: 70px; max-width: 100px; }
}


/* MAYKS 2026 DESIGN LIFT */
:root {
  --bg-dark: #080A0F;
  --bg-elevated: rgba(15, 18, 27, 0.82);
  --bg-card-solid: #111521;
  --surface-strong: rgba(255,255,255,0.10);
  --text-primary: #F9FAFB;
  --text-secondary: rgba(249,250,251,0.76);
  --text-muted: rgba(249,250,251,0.52);
  --glass: rgba(255,255,255,0.075);
  --glass-border: rgba(255,255,255,0.14);
  --shadow-soft: 0 24px 80px rgba(0,0,0,0.34);
  --shadow-red: 0 18px 48px rgba(196,38,41,0.28);
  --ring: 0 0 0 4px rgba(196,38,41,0.16);
}
html[data-theme="light"] {
  --bg-dark: #F6F2ED;
  --bg-elevated: rgba(255,255,255,0.84);
  --bg-card-solid: #FFFFFF;
  --text-primary: #151820;
  --text-secondary: rgba(21,24,32,0.72);
  --text-muted: rgba(21,24,32,0.50);
  --glass: rgba(255,255,255,0.74);
  --glass-border: rgba(27,42,74,0.12);
  --surface-strong: rgba(255,255,255,0.94);
  --shadow-soft: 0 24px 80px rgba(27,42,74,0.13);
  --shadow-red: 0 18px 48px rgba(196,38,41,0.16);
}
html[data-theme="light"] .bg-gradient {
  background:
    radial-gradient(ellipse at 10% -10%, rgba(196,38,41,0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(239,125,0,0.13) 0%, transparent 42%),
    linear-gradient(180deg, #FFF9F4 0%, #F6F2ED 100%);
}
html[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(27,42,74,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,42,74,0.045) 1px, transparent 1px);
}
html[data-theme="light"] .game-canvas-wrap { background: linear-gradient(180deg,#D8E7F8,#EEF6FF); }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg-dark); }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 34%);
}
.top-bar {
  height: 72px; padding: 0 clamp(14px, 3vw, 34px);
  background: color-mix(in srgb, var(--bg-dark) 76%, transparent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.16);
}
.logo-area { min-width: 0; gap: 14px; }
.brand-lockup { display:flex; align-items:center; color:var(--text-primary); text-decoration:none; min-width:0; }
.brand-mark {
  width: 132px; height: auto; display:flex; align-items:center; justify-content:center;
  padding: 0; border-radius: 0; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.brand-logo { width: 100%; height: auto; display:block; }
.brand-logo-dark { display:none; }
html[data-theme="dark"] .brand-logo-light { display:none; }
html[data-theme="dark"] .brand-logo-dark { display:block; }
.brand-copy { display:none; }
.nav-links { align-items:center; padding: 5px; border:1px solid var(--glass-border); background: var(--glass); border-radius: 999px; }
.nav-link { border-radius:999px; font-weight:700; }
.nav-link.active { color:#fff; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); box-shadow: var(--shadow-red); }
.theme-toggle {
  display:inline-flex; align-items:center; gap:8px; min-width:92px; justify-content:center;
  padding: 10px 14px; border-radius:999px; border:1px solid var(--glass-border);
  background:var(--glass); color:var(--text-primary); font-weight:800; cursor:pointer;
}
.theme-toggle:hover, .nav-link:hover, .back-to-site:hover { transform: translateY(-1px); }
.back-to-site { border-radius:999px; font-weight:800; }
.main-content { max-width: 1180px; padding-top: 104px; }
.hero { min-height: min(820px, calc(100vh - 72px)); display:flex; flex-direction:column; justify-content:center; align-items:center; padding: 58px 0 46px; }
.hero-badge, .section-badge {
  background: linear-gradient(135deg, rgba(196,38,41,0.16), rgba(239,125,0,0.12));
  color: color-mix(in srgb, var(--mayks-red-light) 84%, var(--text-primary));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}
.section-title { letter-spacing: -0.055em; }
.hero .section-title { font-size: clamp(46px, 8vw, 94px); max-width: 900px; }
.section-title .accent, .gradient-text { color: transparent; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); -webkit-background-clip:text; background-clip:text; }
.section-desc { font-size: clamp(16px, 1.8vw, 20px); max-width: 760px; }
.btn { border-radius: 16px; font-weight: 850; min-height: 48px; }
.btn-primary { background: linear-gradient(135deg, var(--mayks-red), #E64A2E 48%, var(--mayks-orange)); box-shadow: var(--shadow-red); }
.btn-secondary { background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10); }
.btn:focus-visible, .form-input:focus-visible, .theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.hero-facts {
  display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:12px; width:min(880px,100%); margin:30px auto 0;
}
.hero-facts div, .card, .register-form-card, .prize-card, .reward-item, .countdown-unit, .modal-box, .game-wrapper {
  background: var(--bg-elevated); border:1px solid var(--glass-border); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px);
}
.hero-facts div { border-radius:20px; padding:18px 16px; text-align:left; }
.hero-facts strong { display:block; color:var(--text-primary); font-size:22px; letter-spacing:-.04em; }
.hero-facts span { display:block; margin-top:4px; color:var(--text-muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.card, .register-form-card, .prize-card, .reward-item { border-radius:28px; }
.prize-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.prize-card:hover, .reward-item:hover { transform: translateY(-4px); border-color: rgba(196,38,41,0.34); }
.prize-card.gold, .prize-card.silver, .prize-card.bronze { background: var(--bg-elevated); }
.prize-rank { box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.reward-icon, .step-num { box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.form-input {
  min-height: 50px; border-radius: 16px; background: color-mix(in srgb, var(--bg-card-solid) 86%, transparent);
  border-color: var(--glass-border); color: var(--text-primary);
}
.form-input::placeholder { color: var(--text-muted); }
.form-check { align-items:flex-start; }
.countdown-timer { gap: 12px; }
.countdown-unit { min-width:92px; border-radius:22px; padding:18px 14px; }
.countdown-num { color:var(--text-primary); }
.game-wrapper { border-radius: 30px; overflow:hidden; }
.game-canvas-wrap { border-radius: 24px 24px 0 0; }
.game-hud { background: color-mix(in srgb, var(--bg-dark) 78%, transparent); }
.lottery-pill, .submit-status, .lottery-status-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.10); }
.leaderboard-table { border-collapse: separate; border-spacing: 0 10px; }
.leaderboard-table tbody tr { box-shadow: var(--shadow-soft); }
.footer { position:relative; z-index:1; background: color-mix(in srgb, var(--bg-dark) 90%, transparent); }
.consent-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 500;
  max-width: 760px; margin: 0 auto; display:none; align-items:center; justify-content:space-between; gap:18px;
  padding: 18px; border-radius: 24px; border:1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-card-solid) 92%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(22px);
}
.consent-banner.show { display:flex; }
.consent-banner strong { color:var(--text-primary); }
.consent-banner p { color:var(--text-secondary); font-size:13px; line-height:1.45; margin-top:4px; }
.consent-actions { display:flex; gap:10px; flex-shrink:0; }
@media (max-width: 860px) {
  .top-bar { height:64px; }
  .brand-mark { width:112px; height:auto; }
  .back-to-site { display:none; }
  .theme-toggle { min-width:46px; padding:10px; }
  #themeLabel { display:none; }
  .main-content { padding-top:84px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-banner { flex-direction:column; align-items:stretch; }
  .consent-actions { justify-content:flex-end; }
}
@media (max-width: 520px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .top-bar { padding: 0 10px; }
  .logo-area { flex: 1 1 auto; }
  .brand-mark { width: 104px; }
  .hero { min-height:auto; padding-top:32px; }
  .hero .section-title { width: 100%; max-width: 100%; font-size:40px; overflow-wrap: anywhere; }
  .hero .section-title > span:not(.accent) {
    max-width: 310px;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 0.34em !important;
    line-height: 1.35 !important;
    letter-spacing: 0.14em !important;
    white-space: normal;
  }
  .hero .section-desc { max-width: 100%; font-size: 15px; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; width: 100%; }
  .hero-facts { grid-template-columns:1fr; }
  .hero-facts div { padding:14px; }
  .countdown-unit { min-width:72px; }
  .consent-actions { flex-direction:column; }
  .consent-actions .btn { width:100%; }
  .referral-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .referral-panel .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  #landing.main-content,
  .hero-landing {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .hero-landing {
    align-items: stretch !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero-tag,
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-strip,
  .referral-panel {
    max-width: calc(100vw - 40px) !important;
  }
  .hero-title,
  .hero-sub {
    width: 320px !important;
    max-width: calc(100vw - 48px) !important;
    text-align: center !important;
    align-self: center !important;
  }
  .hero-cta {
    width: 320px !important;
    max-width: calc(100vw - 48px) !important;
    align-self: center !important;
  }
  .hero-cta .btn,
  .hero-cta .btn-xl {
    width: 100% !important;
    max-width: 100% !important;
  }
  .consent-banner {
    left: 20px !important;
    right: 20px !important;
    max-width: calc(100vw - 40px) !important;
  }
}



/* PREMIUM GAME UX PASS */
#game-section.main-content {
  max-width: none;
  width: 100%;
  padding: 92px clamp(16px, 3vw, 32px) 32px;
  min-height: 100dvh;
}
#game-section .section {
  max-width: 1180px;
  margin: 0 auto;
}
#game-section .section > div:first-child {
  margin-bottom: 14px !important;
}
.game-wrapper {
  width: min(100%, 1120px);
  height: min(760px, calc(100dvh - 148px));
  min-height: 620px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.game-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 0%, rgba(196,38,41,.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(239,125,0,.15), transparent 28%);
  z-index: -1;
}
.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 12px;
  background: var(--control-bg);
  border-bottom: 1px solid var(--line);
}
.game-mode {
  display: block;
  color: var(--mayks-red-light);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 4px;
}
.game-topline strong {
  color: var(--copy);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -.04em;
}
.game-target {
  flex-shrink: 0;
  min-width: 170px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  text-align: right;
}
.game-target span { display:block; color:var(--copy-muted); font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.10em; }
.game-target strong { display:block; color:var(--gold); font-size:18px; letter-spacing:-.03em; }
.game-hud {
  display: grid !important;
  grid-template-columns: 1.25fr 1.15fr 1fr 1.25fr 1fr;
  gap: 10px;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}
.hud-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}
.hud-value { font-size: clamp(18px, 2.5vw, 30px); line-height: 1; letter-spacing: -.04em; }
.hud-label { margin-bottom: 6px; }
.instructor-dots { justify-content: center; gap: 5px; }
.instructor-dot { width: 22px; height: 22px; font-size: 11px; }
.game-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px 12px;
  background: var(--control-bg);
  border-bottom: 1px solid var(--line);
}
.game-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--copy) 10%, transparent);
  border: 1px solid var(--line);
}
.game-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mayks-red), var(--mayks-orange), var(--gold));
  box-shadow: 0 0 18px rgba(239,125,0,.36);
  transition: width .25s ease;
}
.game-progress small { color: var(--copy-muted); font-size: 12px; font-weight: 850; white-space: nowrap; }
.game-canvas-wrap {
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 18px 50px rgba(0,0,0,.18);
}
#gameCanvas { width: 100%; height: 100%; display: block; }
.game-controls-bar {
  align-items: center;
  justify-content: space-between !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}
.game-control-hint { color: var(--copy-muted); font-size: 12px; font-weight: 800; }
.game-control-actions { display:flex; gap:10px; }
.touch-controls {
  background: var(--control-bg);
  border-top: 1px solid var(--line);
}
.touch-btn {
  min-height: 68px;
  font-size: 32px;
  font-weight: 950;
  background: linear-gradient(180deg, var(--panel-soft), color-mix(in srgb, var(--panel-solid) 86%, transparent)) !important;
}
.game-overlay {
  padding: clamp(18px, 4vw, 42px) !important;
}
#tutorialContainer {
  max-width: min(560px, 100%) !important;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.tutorial-cards { display:grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tutorial-card { min-width: 0 !important; }
.overlay-title { letter-spacing: -.04em; }
@media (max-width: 860px) {
  #game-section.main-content { padding: 64px 0 0; }
  #game-section .section { height: calc(100dvh - 64px); margin: 0; max-width: none; }
  #game-section .section > div:first-child { display:none; }
  .game-wrapper {
    width: 100%;
    height: calc(100dvh - 64px);
    min-height: 0;
    border-radius: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .game-topline { padding: 10px 12px; }
  .game-mode { font-size: 9px; margin-bottom: 2px; }
  .game-topline strong { font-size: 17px; }
  .game-target { min-width: 120px; padding: 8px 10px; border-radius: 14px; }
  .game-target strong { font-size: 13px; }
  .game-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px !important; }
  .hud-item { padding: 8px 6px; border-radius: 14px; }
  .hud-label { font-size: 8px; letter-spacing: .08em; margin-bottom: 4px; }
  .hud-value { font-size: 17px; }
  .instructor-dots { gap: 2px; }
  .instructor-dot { width: 16px; height: 16px; font-size: 8px; border-width: 1px; }
  .lottery-hud { min-width: 0; }
  .lottery-pill { padding: 4px 6px; font-size: 10px; white-space: nowrap; }
  .game-progress { grid-template-columns: 1fr; gap: 5px; padding: 0 10px 8px; }
  .game-progress small { font-size: 10px; text-align: center; }
  .game-controls-bar { display:none !important; }
  .touch-controls { display:flex !important; }
  .touch-btn { min-height: 74px; }
  #tutorialContainer { max-height: calc(100dvh - 116px); overflow-y: auto; padding: 16px; border-radius: 22px; }
  .tutorial-cards { grid-template-columns: 1fr; gap: 8px; }
  .tutorial-card { padding: 10px !important; }
  .tutorial-demo-row { gap: 10px; }
  .overlay-title { font-size: 20px !important; }
  .overlay-score { font-size: 46px !important; }
}
@media (max-width: 420px) {
  .game-topline { gap: 8px; }
  .game-target { display:none; }
  .game-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* FINAL GAME CONTRAST + MOBILE FIT */
html[data-theme="light"] .game-overlay {
  background: rgba(255,255,255,0.96) !important;
}
html[data-theme="light"] #tutorialContainer,
html[data-theme="light"] .modal-box {
  background: rgba(255,255,255,0.98) !important;
  color: #151820 !important;
}
html[data-theme="light"] .tutorial-card {
  background: #FFFFFF !important;
  color: #151820 !important;
}
html[data-theme="light"] .tutorial-step,
html[data-theme="light"] .tutorial-step *:not(.btn):not(.accent) {
  opacity: 1 !important;
}
@media (max-width: 860px) {
  #game-section.main-content {
    overflow: hidden;
  }
  .game-topline,
  .game-hud,
  .game-progress,
  .touch-controls {
    width: 100vw;
    max-width: 100vw;
  }
  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible;
  }
  .hud-item {
    min-width: 0;
  }
  .hud-item:nth-child(3) {
    display: none;
  }
  .game-canvas-wrap {
    width: 100vw;
  }
}
@media (max-width: 420px) {
  .game-hud { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .game-target { display: none; }
}



/* MOBILE GAME FINAL FIT */
@media (max-width: 860px) {
  .game-topline {
    display: grid;
    grid-template-columns: 1fr;
  }
  .game-target { display:none !important; }
  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px !important;
  }
  .hud-item {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hud-item:nth-child(2),
  .hud-item:nth-child(4) {
    display: none;
  }
  .hud-item:nth-child(5) {
    display: block;
  }
  .game-progress {
    padding: 0 8px 7px !important;
  }
  #tutorialContainer {
    width: min(92vw, 360px) !important;
    max-height: min(440px, calc(100dvh - 250px)) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tutorial-cards {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .tutorial-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 10px 12px !important;
  }
  .tutorial-card > div:first-child {
    margin: 0 !important;
    font-size: 26px !important;
    grid-row: span 2;
  }
  .tutorial-card > div:nth-child(2) { font-size: 13px !important; }
  .tutorial-card > div:nth-child(3) { font-size: 11px !important; margin-top: 0 !important; }
  .tutorial-step[data-step="0"] .overlay-title { font-size: 22px !important; }
  .tutorial-step[data-step="0"] .overlay-subtitle { display:none; }
  .tutorial-nav {
    margin-top: 12px !important;
  }
  .touch-btn {
    min-height: 66px !important;
  }
}
@media (max-width: 420px) {
  .game-topline { padding: 9px 10px !important; }
  .game-topline strong { font-size: 16px !important; }
  .game-hud { grid-template-columns: repeat(2, calc(50% - 3px)) !important; }
  .hud-value { font-size: 16px !important; }
  .hud-label { font-size: 7px !important; }
}


/* CLICK-THROUGH NO-SCROLL GAME UX */
html, body { height: 100%; overscroll-behavior: none; }
body { overflow: hidden; }
body[data-view="landing"], body[data-view="leaderboard"], body[data-view="game-section"] { height: 100dvh; }
.main-content {
  width: 100%; max-width: none; height: 100dvh;
  padding: 88px clamp(12px, 2vw, 24px) 16px;
  overflow: hidden;
}
.section { margin-bottom: 0; }
.footer { display: none; }
.click-flow {
  width: min(1320px, 100%); height: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(12px, 1.6vw, 20px);
}
.flow-shell, .flow-side-panel > * {
  border: 1px solid var(--glass-border); background: var(--bg-elevated);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(22px);
}
.flow-shell {
  position: relative; overflow: hidden; border-radius: 36px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0;
}
.flow-shell::before {
  content: ""; position: absolute; inset: -30% -18% auto auto; width: 560px; height: 560px; border-radius: 999px;
  background: radial-gradient(circle, rgba(239,125,0,.26), rgba(196,38,41,.10) 42%, transparent 70%);
  pointer-events: none;
}
.flow-topline {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-dark) 62%, transparent);
}
.flow-topline strong { display:block; margin-top: 3px; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.05em; }
.eyebrow { display: block; color: var(--mayks-red-light); font-size: 11px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.flow-progress { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); }
.flow-dot { width: 11px; height: 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text-primary) 22%, transparent); cursor: pointer; transition: all .2s ease; }
.flow-dot.active { width: 34px; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); box-shadow: 0 0 0 4px rgba(196,38,41,.12); }
.flow-screen {
  position: relative; z-index: 1; display: none; min-height: 0; height: 100%;
  padding: clamp(22px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(16px, 2vw, 24px);
}
.flow-screen.active { display: grid; animation: flowIn .24s ease-out; }
@keyframes flowIn { from { opacity: 0; transform: translateX(18px) scale(.99); } to { opacity: 1; transform: translateX(0) scale(1); } }
.flow-copy h1, .flow-copy h2 {
  margin: 8px 0 10px; line-height: .9; letter-spacing: -.075em;
  font-size: clamp(46px, 7vw, 98px);
}
.flow-copy h2 { font-size: clamp(42px, 5.8vw, 82px); }
.flow-copy .accent { color: transparent; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); -webkit-background-clip: text; background-clip: text; }
.flow-copy p { color: var(--text-secondary); font-size: clamp(16px, 1.7vw, 22px); line-height: 1.35; max-width: 680px; }
.compact-copy h2 { font-size: clamp(34px, 4vw, 56px); }
.hero-prize-card {
  width: min(420px, 100%); border-radius: 30px; padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255,215,0,.32); background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(196,38,41,.10));
  box-shadow: 0 24px 70px rgba(255,215,0,.11);
}
.hero-prize-card span, .hero-prize-card em { display:block; color: var(--text-secondary); font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; font-size: 12px; }
.hero-prize-card strong { display:block; color: var(--gold); font-size: clamp(58px, 8vw, 104px); line-height: .9; letter-spacing: -.08em; margin: 8px 0; }
.flow-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.flow-actions .btn { min-width: 160px; }
.flow-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-prize {
  min-height: 170px; border: 1px solid var(--glass-border); border-radius: 28px; padding: 20px;
  background: var(--panel-soft); display:flex; flex-direction:column; justify-content:center;
}
.flow-prize small { color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.flow-prize strong { color: var(--gold); font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.07em; margin: 10px 0; }
.flow-prize span { color: var(--text-secondary); font-weight: 750; }
.flow-prize.gold { border-color: rgba(255,215,0,.34); background: linear-gradient(135deg, rgba(255,215,0,.16), var(--panel-soft)); }
.flow-prize.silver strong { color: var(--silver); }
.flow-prize.bronze strong { color: var(--bronze); }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-steps div { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: var(--panel-soft); }
.flow-steps b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); color: #fff; margin-bottom: 16px; }
.flow-steps strong { display:block; font-size: 18px; letter-spacing: -.03em; }
.flow-steps span { display:block; color: var(--text-secondary); margin-top: 6px; font-size: 14px; }
.register-flow-screen { grid-template-columns: minmax(260px, .55fr) minmax(320px, .85fr); align-items: center; }
.flow-form { min-width: 0; border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 2vw, 24px); background: var(--panel-soft); }
.form-grid-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-form .form-group { margin-bottom: 10px; }
.flow-form .form-input { min-height: 46px; padding: 12px 14px; }
.compact-check { margin: 12px 0; }
.compact-check label { font-size: 12px; line-height: 1.35; }
.form-actions .btn { flex: 1 1 160px; }
.returning-link { width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--text-secondary); font-weight: 850; cursor: pointer; }
.returning-link:hover { color: var(--mayks-red-light); }
.flow-side-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); min-height: 0; }
.flow-mini-card, .flow-fame-card { border-radius: 28px; padding: 18px; min-width: 0; }
.flow-mini-card strong { display:block; color: var(--gold); font-size: 34px; line-height: 1; letter-spacing: -.06em; margin: 7px 0; }
.flow-mini-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
.flow-fame-card { min-height: 0; display:flex; flex-direction:column; }
.panel-headline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-headline h2 { font-size: 24px; line-height: 1; letter-spacing: -.05em; margin-top: 3px; }
.fame-window { min-height: 0; overflow: auto; padding-right: 3px; display: grid; gap: 8px; scrollbar-width: thin; }
.fame-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border-radius: 16px; background: var(--panel-soft); border: 1px solid var(--line); }
.fame-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; font-weight: 950; color: #fff; background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange)); }
.fame-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 850; }
.fame-score { color: var(--gold); font-weight: 950; font-size: 13px; }
.empty-mini { color: var(--text-muted); border: 1px dashed var(--glass-border); border-radius: 18px; padding: 18px; text-align: center; font-weight: 750; }
#leaderboard.main-content { padding-top: 92px; }
#leaderboard .section { width: min(1120px, 100%); height: 100%; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
#leaderboard .section > div:first-child { margin-bottom: 0 !important; }
#leaderboard .section-title { font-size: clamp(32px, 4vw, 56px); }
#currentLeaderboard { min-height: 0; overflow: auto !important; }
#archiveSection { display: none; }
@media (max-width: 1060px) {
  .click-flow { grid-template-columns: 1fr; }
  .flow-side-panel { display: none; }
}
@media (max-width: 860px) {
  .main-content { padding: 74px 10px 10px; }
  .flow-shell { border-radius: 28px; }
  .flow-topline { padding: 14px; }
  .flow-screen { padding: 18px; }
  .flow-copy h1, .flow-copy h2 { font-size: clamp(40px, 13vw, 64px); }
  .hero-prize-card { width: 100%; padding: 18px; }
  .hero-prize-card strong { font-size: clamp(48px, 16vw, 78px); }
  .flow-prizes, .flow-steps, .register-flow-screen, .form-grid-compact { grid-template-columns: 1fr; }
  .flow-prize { min-height: 112px; }
  .flow-steps div { padding: 16px; }
  .compact-optional { display: none; }
  .flow-actions .btn { flex: 1 1 100%; }
  #leaderboard.main-content { padding-top: 74px; }
  #leaderboard .section-title { font-size: 34px; }
  #game-section.main-content { padding: 64px 0 0 !important; }
}
@media (max-height: 740px) and (min-width: 861px) {
  .flow-screen { padding: 24px; gap: 14px; }
  .flow-copy h1 { font-size: clamp(46px, 6vw, 76px); }
  .flow-copy h2 { font-size: clamp(40px, 5vw, 68px); }
  .hero-prize-card { padding: 22px; }
  .flow-prize { min-height: 126px; }
  .flow-form .form-input { min-height: 42px; }
}

.float-score {
  position: absolute; z-index: 8; pointer-events: none; transform: translate(-50%, -50%);
  color: var(--gold); font-size: 18px; font-weight: 950; letter-spacing: -.04em;
  text-shadow: 0 2px 14px rgba(0,0,0,.45); animation: floatScore .9s ease-out forwards;
}
.float-score.big { font-size: clamp(28px, 5vw, 54px); text-transform: uppercase; letter-spacing: -.06em; }
.float-score.combo { color: #22C55E; }
@keyframes floatScore {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.84); }
  16% { opacity: 1; transform: translate(-50%, -62%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -132%) scale(.96); }
}
.game-wrapper.boost-flash .game-canvas-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at 50% 58%, rgba(255,215,0,.28), transparent 48%);
  animation: boostFlash .55s ease-out forwards;
}
@keyframes boostFlash { from { opacity: 1; } to { opacity: 0; } }
.game-wrapper.hit-shake { animation: hitShake .28s linear; }
@keyframes hitShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}
.milestone-chip {
  position: absolute; top: 14px; left: 50%; z-index: 9; transform: translateX(-50%);
  padding: 9px 14px; border-radius: 999px; color: #10131C;
  background: linear-gradient(135deg, var(--gold), #FFEFA3); box-shadow: 0 16px 46px rgba(255,215,0,.26);
  font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase;
  animation: milestoneDrop 1.4s ease forwards; white-space: nowrap;
}
@keyframes milestoneDrop {
  0% { opacity: 0; transform: translate(-50%, -18px) scale(.86); }
  15%,72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
}

.game-over-card {
  width: min(560px, 100%); max-height: min(92%, 680px); overflow: auto; text-align: center;
  padding: clamp(20px, 3vw, 32px); border-radius: 32px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-soft);
}
.result-kicker { display: inline-flex; margin-bottom: 8px; padding: 7px 12px; border-radius: 999px; color: var(--mayks-red-light); background: rgba(196,38,41,.12); border: 1px solid rgba(196,38,41,.24); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.score-chase { color: var(--text-secondary); font-size: 14px; line-height: 1.45; margin: -4px auto 16px; max-width: 380px; }
.reward-unlock { margin-bottom: 14px; padding: 12px 16px; background: rgba(255,215,0,.15); border: 1px solid rgba(255,215,0,.32); border-radius: 16px; }
.reward-unlock span { color: var(--gold); font-weight: 850; font-size: 14px; }
.game-over-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.game-over-actions .btn { flex: 1 1 150px; }


/* WEBSITE DESIGN KIT RESET – calmer, responsive, Mayks website-like */
html, body { height: auto !important; min-height: 100%; overscroll-behavior-y: auto; }
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--bg-dark);
}
body[data-view="landing"], body[data-view="leaderboard"], body[data-view="game-section"] { height: auto !important; min-height: 100dvh; }
.main-content {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
  max-width: 1280px !important;
  margin: 0 auto;
  padding: 104px clamp(18px, 4vw, 48px) 56px !important;
}
#landing.main-content { max-width: 1280px !important; }
.click-flow {
  width: 100%; height: auto; min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}
.flow-shell,
.flow-side-panel > *,
.flow-form,
.flow-prize,
.flow-steps div,
.hero-prize-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.10) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .flow-shell,
html[data-theme="light"] .flow-side-panel > *,
html[data-theme="light"] .flow-form,
html[data-theme="light"] .flow-prize,
html[data-theme="light"] .flow-steps div,
html[data-theme="light"] .hero-prize-card {
  box-shadow: 0 18px 50px rgba(17,24,39,.08) !important;
}
.flow-shell { overflow: visible !important; display: block !important; }
.flow-shell::before { opacity: .45; width: 360px; height: 360px; }
.flow-topline {
  position: static;
  padding: 22px 24px !important;
  background: transparent !important;
}
.flow-topline strong {
  font-family: var(--font-heading, 'Space Grotesk'), Inter, sans-serif;
  font-size: clamp(22px, 2.6vw, 34px) !important;
  letter-spacing: -.035em !important;
}
.flow-progress { display: none !important; }
.flow-screen {
  display: grid !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(22px, 4vw, 44px) !important;
  gap: 22px !important;
  align-content: start !important;
  border-top: 1px solid var(--glass-border);
  animation: none !important;
}
.flow-screen:first-of-type { border-top: 0; padding-top: 28px !important; }
.flow-screen:not(.active) { opacity: 1 !important; transform: none !important; }
.flow-copy h1,
.flow-copy h2 {
  font-family: var(--font-heading, 'Space Grotesk'), Inter, sans-serif;
  font-size: clamp(36px, 5vw, 68px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  max-width: 760px;
}
.flow-copy h2 { font-size: clamp(30px, 4vw, 54px) !important; }
.flow-copy p {
  font-size: clamp(15px, 1.5vw, 18px) !important;
  line-height: 1.6 !important;
  max-width: 640px;
  color: var(--text-secondary) !important;
}
.hero-badge,
.section-badge {
  box-shadow: none !important;
  font-size: 12px !important;
  padding: 7px 13px !important;
}
.hero-prize-card {
  width: min(360px, 100%) !important;
  padding: 24px !important;
  background: linear-gradient(135deg, rgba(196,38,41,.08), rgba(239,125,0,.08)) !important;
}
.hero-prize-card strong {
  font-size: clamp(44px, 6vw, 72px) !important;
  letter-spacing: -.06em !important;
}
.flow-actions .btn,
.btn {
  border-radius: 14px !important;
  min-height: 46px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.flow-prizes,
.flow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
}
.flow-prize {
  min-height: 132px !important;
  padding: 20px !important;
}
.flow-prize strong {
  font-size: clamp(30px, 3.5vw, 44px) !important;
  letter-spacing: -.055em !important;
}
.flow-prize span,
.flow-steps span { font-size: 13px !important; line-height: 1.45; }
.flow-steps div { padding: 20px !important; }
.flow-steps b {
  width: 34px !important; height: 34px !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
}
.flow-steps strong { font-size: 16px !important; }
.register-flow-screen {
  grid-template-columns: minmax(220px, .5fr) minmax(320px, .85fr) !important;
  gap: 22px !important;
}
.flow-form { padding: 22px !important; }
.flow-form .form-input,
.form-input {
  border-radius: 12px !important;
  min-height: 46px !important;
  background: var(--bg-card-solid, var(--bg-elevated)) !important;
}
.flow-side-panel {
  position: sticky;
  top: 92px;
  display: grid !important;
  gap: 18px !important;
  max-height: calc(100dvh - 120px);
}
.flow-mini-card,
.flow-fame-card { padding: 20px !important; border-radius: 22px !important; }
.flow-mini-card strong { font-size: 30px !important; }
.fame-window { max-height: 420px; overflow: auto; }
.fame-row { border-radius: 14px !important; background: var(--panel-soft) !important; }
#leaderboard .section { height: auto !important; min-height: calc(100dvh - 150px); }
#archiveSection { display: block !important; }
@media (max-width: 1060px) {
  .click-flow { grid-template-columns: 1fr; }
  .flow-side-panel {
    position: static;
    max-height: none;
    grid-template-columns: 1fr;
  }
  .fame-window { max-height: 320px; }
}
@media (max-width: 760px) {
  .top-bar { height: 64px !important; }
  .main-content { padding: 82px 16px 42px !important; }
  .flow-topline { padding: 18px !important; }
  .flow-screen { padding: 22px 18px !important; }
  .flow-copy h1 { font-size: clamp(34px, 10vw, 46px) !important; }
  .flow-copy h2 { font-size: clamp(28px, 8vw, 38px) !important; }
  .flow-prizes,
  .flow-steps,
  .register-flow-screen,
  .form-grid-compact { grid-template-columns: 1fr !important; }
  .flow-prize { min-height: auto !important; }
  .flow-actions { gap: 10px !important; }
  .flow-actions .btn { width: 100%; flex: 1 1 100%; }
  .compact-optional { display: block !important; }
}


/* 10/10 UI/UX PASS — focused app flow, website-kit polish */
:root {
  --app-radius: 28px;
  --app-gap: clamp(14px, 2vw, 24px);
}
.btn-ghost {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.btn-ghost:hover { background: var(--glass) !important; border-color: var(--glass-border) !important; }
.top-bar {
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}
.nav-links { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.nav-link { cursor: pointer; }
.main-content {
  padding-top: 92px !important;
  padding-bottom: 28px !important;
}
#landing.main-content,
#leaderboard.main-content { min-height: 100dvh; }
.click-flow {
  min-height: calc(100dvh - 120px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  gap: var(--app-gap) !important;
}
.flow-shell {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(720px, calc(100dvh - 120px));
  overflow: hidden !important;
  border-radius: var(--app-radius) !important;
}
.flow-topline {
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--glass-border);
}
.flow-progress { display: flex !important; }
.flow-screen {
  display: none !important;
  border-top: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  align-content: center !important;
  padding: clamp(26px, 4.8vw, 58px) !important;
}
.flow-screen.active { display: grid !important; animation: flowIn .28s ease-out !important; }
.flow-copy h1,
.flow-copy h2 {
  font-size: clamp(38px, 6vw, 76px) !important;
  line-height: .96 !important;
  margin-bottom: 12px !important;
}
.flow-copy p { max-width: 560px; }
.hero-prize-card {
  display: inline-grid;
  width: min(380px, 100%) !important;
  box-shadow: 0 24px 70px rgba(196,38,41,.13) !important;
}
.flow-actions { align-items: center; }
.flow-side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100dvh - 112px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.flow-mini-card,
.flow-fame-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--glass-border) !important;
}
.prize-mini-card {
  background: linear-gradient(145deg, rgba(196,38,41,.13), rgba(239,125,0,.09)), var(--bg-elevated) !important;
}
.prize-mini-card .btn { width: 100%; margin-top: 12px; }
.compact-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}
.compact-countdown .countdown-unit {
  min-width: 0 !important;
  padding: 10px 6px !important;
  border-radius: 14px !important;
  background: var(--panel-soft) !important;
  border: 1px solid var(--line) !important;
}
.compact-countdown .countdown-num { display: block; font-size: 20px; font-weight: 950; line-height: 1; }
.compact-countdown .countdown-label { margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.flow-fame-card { min-height: 0; }
.fame-window { max-height: 250px !important; }
.register-flow-screen { align-content: center !important; }
.form-actions .btn-primary { flex: 2 1 180px; }
.returning-link:hover { color: var(--mayks-red-light); }
#game-section.main-content {
  max-width: min(1180px, 100%) !important;
  min-height: 100dvh;
  padding: 86px clamp(10px, 2vw, 22px) 18px !important;
}
#game-section .section {
  min-height: calc(100dvh - 104px) !important;
  display: grid;
  align-items: center;
  margin: 0 auto !important;
}
#game-section .section > div:first-child { margin-bottom: 10px !important; }
.game-wrapper {
  max-width: 1040px !important;
  width: 100%;
  border-radius: var(--app-radius) !important;
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated) !important;
  box-shadow: var(--shadow-soft);
}
.game-topline {
  padding: 14px 16px !important;
  background: transparent !important;
}
.game-topline strong { font-size: clamp(18px, 2vw, 24px) !important; }
.game-hud {
  grid-template-columns: 1.15fr 1fr 1fr .95fr .85fr !important;
  padding: 10px 14px !important;
  gap: 8px !important;
}
.hud-item {
  min-height: 56px !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
}
.hud-value { font-size: clamp(18px, 2.2vw, 28px) !important; }
.instructor-dot { width: 20px !important; height: 20px !important; font-size: 10px !important; }
.game-progress { padding: 0 14px 10px !important; }
.game-canvas-wrap {
  height: clamp(360px, calc(100dvh - 330px), 570px) !important;
  min-height: 340px;
  border-radius: 22px 22px 0 0 !important;
  overflow: hidden;
}
.race-ready-card,
.game-over-card {
  width: min(540px, calc(100% - 28px)) !important;
  max-width: 540px !important;
  padding: clamp(20px, 3vw, 32px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 30px !important;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(22px);
  text-align: center;
}
.race-ready-icon {
  width: 58px; height: 58px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 20px;
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  box-shadow: var(--shadow-red); font-size: 28px;
}
.race-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.race-tips div {
  min-width: 0;
  padding: 13px 10px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--panel-soft);
}
.race-tips span { display: block; font-size: 22px; margin-bottom: 5px; }
.race-tips strong { display: block; font-size: 13px; line-height: 1.1; }
.race-tips small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; font-weight: 750; }
.race-start-actions,
.game-over-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.race-start-actions .btn { flex: 1 1 180px; }
.tutorial-dots { justify-content: center; margin-top: 14px; }
.tutorial-dot:nth-child(n+2) { display: block !important; }
.overlay-title { font-size: clamp(24px, 4vw, 38px) !important; line-height: 1.05; }
.overlay-score { font-size: clamp(48px, 7vw, 78px) !important; }
.overlay-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
}
.overlay-stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--panel-soft);
}
.lottery-status-panel { text-align: left; }
.touch-controls { margin-top: 10px; }
.touch-btn { user-select: none; }
#leaderboard .section {
  width: min(980px, 100%) !important;
  display: block !important;
}
#currentLeaderboard {
  border-radius: 24px !important;
  background: var(--bg-elevated) !important;
}
#archiveSection { display: none !important; }
#archiveSection.is-visible { display: block !important; }
.footer { display: none !important; }
@media (min-width: 1180px) and (min-height: 760px) {
  body[data-view="landing"] { overflow: hidden !important; }
}
@media (max-width: 1060px) {
  .click-flow { grid-template-columns: 1fr !important; }
  .flow-shell { min-height: auto; }
  .flow-side-panel {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow-fame-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .top-bar { gap: 8px; }
  .brand-mark { width: 96px !important; }
  .nav-links { gap: 4px; padding: 4px; }
  .nav-link { padding: 8px 9px !important; font-size: 12px !important; }
  .theme-toggle { min-width: 40px !important; padding: 9px !important; }
  .main-content { padding-top: 76px !important; }
  .flow-progress { display: none !important; }
  .flow-screen { padding: 22px 18px !important; }
  .flow-copy h1,
  .flow-copy h2 { font-size: clamp(34px, 11vw, 48px) !important; }
  .flow-side-panel { grid-template-columns: 1fr; }
  .flow-fame-card { grid-column: auto; }
  .compact-countdown .countdown-num { font-size: 17px; }
  #game-section.main-content { padding-top: 68px !important; }
  #game-section .section > div:first-child { display: none; }
  .game-topline { padding: 10px 12px !important; }
  .game-target { display: none !important; }
  .game-hud { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lottery-hud { grid-column: 1 / -1; }
  .game-canvas-wrap { height: clamp(380px, calc(100dvh - 278px), 560px) !important; }
  .race-tips { grid-template-columns: 1fr; }
  .game-controls-bar { display: none !important; }
}
@media (max-width: 420px) {
  .hud-item { min-height: 50px !important; padding: 8px !important; }
  .hud-label { font-size: 8px !important; }
  .hud-value { font-size: 18px !important; }
  .game-canvas-wrap { height: clamp(360px, calc(100dvh - 258px), 540px) !important; }
  .overlay-stats { grid-template-columns: 1fr; }
}

/* Slim game HUD — only Score + Distanz; Fortschritt zeigt der Progress-Bar */
#game-section .game-hud {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
#game-section .game-hud > .hud-item:nth-child(2),
#game-section .game-hud > .hud-item:nth-child(3),
#game-section .game-hud > .hud-item.lottery-hud {
  display: none !important;
}
#game-section .game-target {
  display: none !important;
}
#game-section .game-topline {
  padding: 14px 16px !important;
}
#game-section .game-progress {
  padding: 10px 16px !important;
}
/* =========================================================
   10/10 PASS — design tokens, typography, spacing, polish
   This block overrides everything above. Single source of truth.
   ========================================================= */
:root {
  --topbar-h: 64px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --section-pad-y: clamp(80px, 10vh, 112px);
  --section-pad-x: clamp(16px, 4vw, 40px);
}
@media (max-width: 540px) { :root { --topbar-h: 56px; } }

html, body {
  font-family: var(--font-body) !important;
  font-feature-settings: "ss01", "cv01", "cv11";
}
body {
  font-size: 15px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.hero-title, .flow-copy h1, .flow-copy h2,
.section-title, .panel-headline h2, .overlay-title,
.modal-box h2, .modal-box h3 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

/* TYPE SCALE — aligned with main website */
.hero-title {
  font-size: clamp(40px, 6vw, 72px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.hero-sub {
  font-size: clamp(15px, 1.3vw, 17px) !important;
  line-height: 1.55 !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}
.hero-tag {
  font-size: 11px !important;
  letter-spacing: .12em !important;
  font-weight: 700 !important;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 44px) !important;
}
.modal-box h2 {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.15 !important;
}
.modal-box h3 {
  font-size: 15px !important;
  margin: 14px 0 4px !important;
}
.modal-box p, .modal-box li {
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.overlay-title {
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
}
.overlay-score {
  font-size: clamp(48px, 6.5vw, 72px) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
}
.eyebrow, .hero-strip-label, .hud-label {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}
.btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}
.btn-xl {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  min-height: 52px !important;
}
.compact-countdown .countdown-num {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  letter-spacing: -.03em !important;
}
.fame-name, .player-name { font-weight: 600 !important; }
.fame-score, .score-cell { font-family: var(--font-heading) !important; font-weight: 600 !important; }

/* TOPBAR — single source */
.top-bar {
  position: fixed !important;
  height: var(--topbar-h) !important;
  padding: 0 var(--section-pad-x) !important;
  z-index: 100 !important;
}
.top-bar .logo, .top-bar .logo img { max-height: calc(var(--topbar-h) - 24px) !important; }
.nav-link { font-size: 14px !important; font-weight: 600 !important; }

/* VIEW PADDING — single source */
#landing.main-content,
#game-section.main-content,
#leaderboard.main-content {
  padding: 0 !important;
  max-width: none !important;
}
.hero-landing {
  padding: var(--topbar-h) var(--section-pad-x) 48px !important;
  min-height: calc(100dvh) !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
}
.hero-cta { gap: 10px !important; margin-top: 6px !important; }
.hero-strip {
  margin-top: 28px !important;
  padding: 16px 20px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 18px !important;
}
.hero-strip-label { font-size: 10px !important; }
#leaderboard.main-content {
  padding: calc(var(--topbar-h) + 24px) var(--section-pad-x) 56px !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
}
#game-section.main-content {
  padding: calc(var(--topbar-h) + 12px) var(--section-pad-x) 16px !important;
  flex-direction: column !important;
  align-items: center !important;
  min-height: 100dvh !important;
}
body[data-view="game-section"] #game-section.main-content { display: flex !important; }
body:not([data-view="game-section"]) #game-section.main-content { display: none !important; }
body:not([data-view="landing"]) #landing.main-content { display: none !important; }
body:not([data-view="leaderboard"]) #leaderboard.main-content { display: none !important; }
#game-section .section {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
#game-section .game-wrapper {
  width: 100% !important;
  max-width: 1280px !important;
  height: calc(100dvh - var(--topbar-h) - 32px) !important;
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 22px !important;
  border: 1px solid var(--line) !important;
  overflow: hidden !important;
}
/* Overlays stay readable cards centered inside wide canvas */
#game-section .game-over-card,
#game-section .race-ready-card {
  width: min(560px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}
#game-section .game-canvas-wrap {
  flex: 1 1 auto !important;
  min-height: 280px !important;
  height: auto !important;
  position: relative !important;
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}
#game-section .game-topline,
#game-section .game-progress,
#game-section .game-hud,
#game-section .game-controls-bar {
  width: 100% !important;
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* TOAST — bottom center, never blocks game */
.toast {
  bottom: max(20px, env(safe-area-inset-bottom, 16px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 80px) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  z-index: 250 !important;
}
.toast.show { transform: translate(-50%, 0) !important; }
@media (max-width: 540px) {
  .toast { bottom: 96px !important; }
}

/* MODAL polish */
.modal-overlay {
  padding: 16px !important;
  z-index: 300 !important;
}
.modal-box {
  border-radius: 20px !important;
  font-family: var(--font-body) !important;
}
.register-modal-actions { gap: 10px !important; }

/* HUD typography */
.hud-value { font-family: var(--font-heading) !important; font-weight: 600 !important; letter-spacing: -.02em !important; }

/* Strong hover unification */
.btn-primary { box-shadow: 0 8px 22px rgba(196,38,41,.28) !important; }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(196,38,41,.42) !important; transform: translateY(-1px) !important; }
.btn-primary:disabled,
.btn-primary[aria-busy="true"] {
  opacity: .65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Form inputs */
.form-input {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  border-radius: 12px !important;
}
.form-label { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 12px !important; letter-spacing: .08em !important; text-transform: uppercase !important; }

/* Mobile */
@media (max-width: 720px) {
  .hero-strip { grid-template-columns: 1fr !important; }
  .hero-strip-divider { display: none !important; }
  .hero-cta { width: 100%; flex-direction: column !important; }
  .hero-cta .btn { width: 100% !important; }
}
@media (max-width: 540px) {
  .hero-title { font-size: clamp(36px, 11vw, 56px) !important; }
  body { font-size: 14px !important; }
}
/* Screen-reader-only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Top-bar right cluster */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  font-family: var(--font-body);
  font-size: 13px;
}
.user-chip-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.user-chip-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip-logout {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}
.user-chip-logout:hover { color: var(--mayks-red); background: color-mix(in srgb, var(--mayks-red) 12%, transparent); }
@media (max-width: 540px) {
  .user-chip-name { max-width: 70px; }
}

/* Performance: lighten backdrop-filter stack */
.top-bar { backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; }
.hero-strip { backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; }
.modal-box { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
@media (prefers-reduced-motion: reduce) {
  .top-bar, .hero-strip, .modal-box, .toast {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Game-Over status merge: when both panels visible, tighten and add subtle separator */
.game-over-card .submit-status + .lottery-status-panel {
  margin-top: 6px !important;
  border-top: 1px dashed var(--line) !important;
  padding-top: 10px !important;
}
.game-over-card .submit-status:empty,
.game-over-card .lottery-status-panel:empty { display: none !important; }

/* Leaderboard mobile cards alignment with new tokens */
@media (max-width: 540px) {
  .leaderboard-table tr { padding: 10px !important; }
  .leaderboard-table .player-name { font-size: 14px !important; font-weight: 600 !important; }
  .leaderboard-table .score-cell { font-size: 14px !important; }
  .rank-badge { width: 32px !important; height: 32px !important; font-size: 12px !important; }
}
/* RACE SCREEN — modern game UI: full-bleed canvas, floating score/progress overlays */
#game-section .game-topline,
#game-section .game-controls-bar { display: none !important; }
#game-section .game-canvas-wrap {
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
}
#game-section .game-wrapper {
  position: relative !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
}
#game-section .game-canvas-wrap {
  border-radius: 18px !important;
  width: 100% !important;
  max-width: 1100px !important;
  height: 100% !important;
  overflow: hidden !important;
}
/* Score + Distance — floating glass chips inside canvas, top-left/right */
#game-section .game-hud {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(960px, calc(100% - 28px)) !important;
  display: flex !important;
  justify-content: space-between !important;
  pointer-events: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  z-index: 5 !important;
  margin: 0 !important;
}
#game-section .game-hud > .hud-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #0a0e1a 78%, transparent) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent) !important;
  pointer-events: auto !important;
  min-height: 0 !important;
}
html[data-theme="light"] #game-section .game-hud > .hud-item {
  background: color-mix(in srgb, #ffffff 82%, transparent) !important;
  border-color: rgba(0,0,0,.08) !important;
}
#game-section .game-hud .hud-label {
  font-size: 9px !important;
  letter-spacing: .16em !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}
#game-section .game-hud .hud-value {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -.02em !important;
}
#game-section .game-hud .hud-item .score {
  font-size: 22px !important;
  color: var(--gold) !important;
}
/* Distanz: smaller, less prominent */
#game-section .game-hud > .hud-item:last-child {
  opacity: .82 !important;
}
#game-section .game-hud > .hud-item:last-child .hud-value {
  font-size: 14px !important;
}
/* Progress — slim bottom strip inside canvas-wrap */
#game-section .game-progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent) !important;
  border: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
html[data-theme="light"] #game-section .game-progress {
  background: linear-gradient(to top, rgba(255,255,255,.85), transparent) !important;
}
#game-section .game-progress-track {
  flex: 1 1 auto !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #fff 12%, transparent) !important;
}
#game-section .game-progress small {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
}

/* GAME-OVER CARD — clean hierarchy, no redundancy */
.game-over-card {
  width: min(520px, calc(100% - 32px)) !important;
  padding: 28px 24px !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--panel) 92%, transparent) !important;
  border: 1px solid var(--line) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.game-over-card .result-kicker { display: none !important; }
.game-over-card .overlay-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  letter-spacing: -.02em !important;
}
.game-over-card .overlay-score {
  font-family: var(--font-heading) !important;
  font-size: clamp(56px, 7vw, 88px) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: var(--gold) !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
}
.game-over-card .score-chase {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  line-height: 1.45 !important;
  font-family: var(--font-body) !important;
}
.game-over-card .overlay-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
}
.game-over-card .overlay-stat {
  padding: 10px 6px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--panel-soft) 80%, transparent) !important;
  border: 1px solid var(--line) !important;
  text-align: center !important;
}
.game-over-card .overlay-stat-value {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
  letter-spacing: -.02em !important;
}
.game-over-card .overlay-stat-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
}
.game-over-card .reward-unlock {
  margin: 4px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent) !important;
  color: var(--gold) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
/* Status: collapse "Score gespeichert" into a tiny inline check */
.game-over-card .submit-status {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  margin: 2px 0 0 !important;
}
.game-over-card .submit-status.ok::before { content: "✓ "; color: var(--success, #22C55E); }
.game-over-card .submit-status.err { color: var(--mayks-red); }
/* Lottery status panel: only show if it has content beyond the chase text */
.game-over-card .lottery-status-panel {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--mayks-red) 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--mayks-red) 22%, transparent) !important;
  font-size: 13px !important;
  text-align: left !important;
}
.game-over-card .lottery-status-panel:empty,
.game-over-card .lottery-status-panel[style*="display:none"] { display: none !important; }
.game-over-card .submit-status + .lottery-status-panel {
  margin-top: 6px !important;
  border-top: 0 !important;
  padding-top: 12px !important;
}
.game-over-card .game-over-actions {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 8px !important;
}
.game-over-card .game-over-actions .btn {
  flex: none !important;
  min-height: 46px !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
}
@media (max-width: 480px) {
  .game-over-card { padding: 22px 18px !important; }
  .game-over-card .overlay-stats { gap: 6px !important; }
  .game-over-card .overlay-stat { padding: 8px 4px !important; }
  .game-over-card .game-over-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Disable inputs/buttons during async cleanly */
.btn[disabled], .btn:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
  filter: grayscale(.2);
  transform: none !important;
  box-shadow: none !important;
}
.hero-prize-card,
.flow-prize,
.flow-steps div,
.flow-form,
.flow-mini-card,
.flow-fame-card,
.card,
.modal-box,
.game-wrapper,
.race-ready-card,
.game-over-card {
  border-radius: 18px !important;
}
.flow-side-panel {
  overscroll-behavior: auto !important;
}
.flow-fame-card .panel-headline {
  align-items: center !important;
}
.fame-row {
  flex: 0 0 auto !important;
}
#leaderboard.main-content {
  max-width: 1040px !important;
}
#leaderboard .section {
  min-height: 0 !important;
}
#currentLeaderboard {
  overflow: visible !important;
  padding: 14px !important;
}
.leaderboard-table {
  width: 100% !important;
}
#archiveSection {
  margin-top: 28px !important;
}
.archive-winners {
  display: grid;
  gap: 14px;
}
#game-section.main-content {
  overflow: visible !important;
  padding-bottom: 24px !important;
}
#game-section .section {
  min-height: 0 !important;
  display: block !important;
}
.game-wrapper {
  height: auto !important;
  overflow: hidden !important;
}
.game-canvas-wrap {
  height: clamp(420px, 56dvh, 590px) !important;
  min-height: 420px !important;
}
.game-overlay {
  overflow: hidden !important;
  padding: 16px !important;
}
.race-ready-card,
.game-over-card {
  max-height: none !important;
  overflow: visible !important;
}
.race-ready-card {
  width: min(500px, calc(100% - 24px)) !important;
}
.race-ready-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 16px !important;
  font-size: 24px !important;
}
.race-tips {
  margin: 14px 0 !important;
}
.overlay-score {
  margin: 8px 0 !important;
}
.overlay-stats {
  margin: 12px 0 !important;
}
.consent-banner {
  max-height: none !important;
}
@media (max-width: 860px) {
  .click-flow {
    gap: 14px !important;
  }
  .flow-shell {
    border-radius: 20px !important;
  }
  .flow-screen {
    min-height: auto !important;
  }
  .flow-prizes,
  .flow-steps,
  .register-flow-screen,
  .form-grid-compact {
    grid-template-columns: 1fr !important;
  }
  .hero-prize-card {
    width: 100% !important;
  }
  .flow-actions .btn {
    width: 100%;
  }
  .game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .hud-item:nth-child(2),
  .hud-item:nth-child(3) {
    display: none !important;
  }
  .hud-item:nth-child(4),
  .hud-item:nth-child(5) {
    display: block !important;
  }
  .game-canvas-wrap {
    height: clamp(390px, 58dvh, 560px) !important;
    min-height: 390px !important;
  }
  .game-controls-bar {
    display: flex !important;
  }
  .touch-controls {
    display: flex !important;
  }
  .race-tips {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .race-tips div {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    text-align: left;
    column-gap: 10px;
    padding: 10px 12px !important;
  }
  .race-tips span {
    grid-row: span 2;
    margin: 0 !important;
    font-size: 20px !important;
  }
  .race-tips small {
    margin-top: 2px !important;
  }
  .overlay-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .top-bar {
    height: 62px !important;
  }
  .nav-links {
    display: none !important;
  }
  #landing.main-content,
  #leaderboard.main-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  #game-section.main-content {
    padding: 76px 10px 18px !important;
  }
  .game-topline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .game-target {
    display: block !important;
  }
  .hud-item {
    min-height: 54px !important;
  }
  .game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .hud-label {
    font-size: 8px !important;
  }
  .hud-value,
  .lottery-pill {
    font-size: 15px !important;
  }
  .game-canvas-wrap {
    height: clamp(360px, 54dvh, 500px) !important;
    min-height: 360px !important;
  }
  .game-controls-bar {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .game-control-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .race-ready-card,
  .game-over-card {
    width: min(100% - 20px, 440px) !important;
    padding: 18px !important;
  }
  .overlay-title {
    font-size: 24px !important;
  }
  .overlay-score {
    font-size: 46px !important;
  }
  #currentLeaderboard {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .leaderboard-table,
  .leaderboard-table tbody,
  .leaderboard-table tr,
  .leaderboard-table td {
    display: block !important;
    width: 100% !important;
  }
  .leaderboard-table thead {
    display: none !important;
  }
  .leaderboard-table tbody {
    display: grid !important;
    gap: 10px !important;
  }
  .leaderboard-table tr {
    position: relative;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px !important;
    border-radius: 16px !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
  }
  .leaderboard-table td {
    padding: 0 !important;
  }
  .leaderboard-table td:first-child,
  .leaderboard-table td:last-child {
    border-radius: 0 !important;
  }
  .rank-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }
  .player-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .score-cell {
    white-space: nowrap;
    font-size: 16px !important;
  }
}


/* HERO LANDING — restored layout after cleanup */
.hero-landing {
  gap: 22px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mayks-red) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mayks-red) 32%, transparent);
  color: var(--mayks-red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  width: min(100%, 56ch);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  overflow-wrap: break-word;
}
.hero-cta {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 440px);
  min-width: 0;
}
.hero-cta .btn {
  min-height: 52px;
  min-width: 0;
  max-width: 100%;
}
.hero-strip {
  display: grid !important;
  grid-template-columns: 1fr 1px 1fr !important;
  gap: clamp(16px, 3vw, 32px) !important;
  align-items: stretch;
  width: 100%;
  max-width: 760px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border: 1px solid var(--line);
}
.hero-strip-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hero-strip-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}
.hero-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.hero-strip-link {
  border: 0;
  background: transparent;
  color: var(--mayks-orange);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.hero-strip-link:hover { color: var(--mayks-red-light); }
.hero-top3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-top3 .fame-row {
  display: grid !important;
  grid-template-columns: 28px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  min-height: 0 !important;
}
.hero-top3 .fame-rank {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  color: #fff;
  font-weight: 800;
}
.hero-top3 .fame-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.hero-top3 .fame-score {
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.hero-top3 .empty-mini {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
}
.hero-strip .compact-countdown {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.hero-strip .compact-countdown .countdown-unit {
  padding: 8px 4px !important;
  border-radius: 10px !important;
  background: var(--panel-soft) !important;
  border: 1px solid var(--line) !important;
  text-align: center;
}
.hero-strip .compact-countdown .countdown-num {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  display: block;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero-strip .compact-countdown .countdown-label {
  font-size: 8px !important;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
@media (max-width: 720px) {
  .hero-strip {
    grid-template-columns: 1fr !important;
    padding: 16px 18px !important;
  }
  .hero-strip-divider {
    width: 100%;
    height: 1px;
  }
  .hero-strip-block { text-align: center; }
  .hero-strip-head { justify-content: center; }
  .hero-cta { width: 100%; flex-direction: column !important; }
  .hero-cta .btn { width: 100% !important; }
}

/* ==========================================================
   FULL RESTORATION BLOCK — every page layout, post-cleanup
   ========================================================== */

/* GAME SECTION layout */
#game-section.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
}
#game-section .section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#game-section .game-wrapper {
  width: 100%;
  max-width: 1280px;
  height: calc(100dvh - var(--topbar-h) - 32px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: transparent;
  border: 0;
}
#game-section .game-canvas-wrap {
  flex: 1 1 auto;
  min-height: 280px;
  height: 100%;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
}
#gameCanvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* Game overlays — centered cards */
#game-section .game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10;
}
#game-section .game-overlay.hidden { display: none; }
.race-ready-card {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.race-ready-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 4px;
}
.race-ready-card .overlay-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
}
.race-ready-card .overlay-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.race-ready-card .race-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.race-ready-card .race-tips > div {
  padding: 10px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-soft) 80%, transparent);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
}
.race-ready-card .race-tips span {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}
.race-ready-card .race-tips strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.race-ready-card .race-tips small {
  font-size: 10px;
  color: var(--text-muted);
}
.race-ready-card .race-start-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.race-ready-card .race-start-actions .btn { min-height: 46px; }
@media (max-width: 480px) {
  .race-ready-card { padding: 20px; }
  .race-ready-card .race-tips { grid-template-columns: 1fr; }
  .race-ready-card .race-start-actions { grid-template-columns: 1fr; }
}

/* TOUCH CONTROLS — only visible on small screens */
.touch-controls { display: none; }
@media (max-width: 760px) {
  .touch-controls {
    display: flex !important;
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    gap: 12px;
    z-index: 8;
  }
  .touch-btn {
    flex: 1;
    height: 64px;
    border-radius: 16px;
    background: color-mix(in srgb, #0a0e1a 70%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, #fff 12%, transparent);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* MODALS — center, scroll if needed */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  z-index: 300;
}
.modal-overlay.active { display: flex; }
.modal-box {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  max-width: min(560px, calc(100vw - 24px));
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-box h2 { margin: 0 0 8px; }
.modal-box h3 { margin: 16px 0 6px; font-size: 15px; }
.modal-box p, .modal-box li { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

.register-modal-box {
  max-width: min(500px, calc(100vw - 24px));
  text-align: left;
}
.register-modal-sub {
  margin: 4px 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
}
.register-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.register-modal-actions .btn {
  flex: 1 1 0;
  min-height: 48px;
}
.register-modal-actions .btn-primary { flex: 2 1 0; }
.register-modal-box .returning-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 540px) {
  .modal-overlay { padding: 12px; }
  .register-modal-box { padding: 22px 18px; }
  .register-modal-actions { flex-direction: column-reverse; }
  .register-modal-actions .btn { width: 100%; flex: 1 1 100%; }
  .form-grid-compact { grid-template-columns: 1fr; }
}

/* LEADERBOARD layout */
#leaderboard.main-content {
  display: block;
}
#leaderboard .section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
#currentLeaderboard.card {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.leaderboard-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.leaderboard-table .rank-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.leaderboard-table .player-name {
  font-weight: 600;
}
.leaderboard-table .score-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold);
}
@media (max-width: 540px) {
  .leaderboard-table thead { display: none; }
  .leaderboard-table tbody { display: grid; gap: 10px; }
  .leaderboard-table tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
  }
  .leaderboard-table td {
    border: 0;
    padding: 0;
  }
}

/* GAME-OVER OVERLAY positioning fix */
.game-over-card {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
}

/* SECTION badge / desc base */
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mayks-red) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mayks-red) 28%, transparent);
  color: var(--mayks-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  font-family: var(--font-heading);
  margin: 0 0 8px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--mayks-red), var(--mayks-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 540px) {
  #landing.main-content,
  .hero-landing {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .hero-landing {
    align-items: center !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-strip,
  .referral-panel {
    width: min(100%, 340px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-title,
  .hero-sub {
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
  .hero-cta {
    flex-direction: column !important;
  }
  .hero-cta .btn,
  .hero-cta .btn-xl {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .consent-banner {
    left: 20px !important;
    right: 20px !important;
    max-width: calc(100vw - 40px) !important;
  }
}
