/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple-dark: #1a0a3c;
  --purple-mid: #3a1a7a;
  --purple-bright: #7c3aed;
  --purple-btn: #6d28d9;
  --green: #16a34a;
  --green-bright: #22c55e;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --white: #ffffff;
  --text-dark: #1e1b4b;
  --danger: #ef4444;
  --blue: #2563eb;
}

html {
  min-height: 100%;
  background: var(--purple-dark);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--purple-dark);
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

button {
  font-family: inherit;
}

.phone-wrap {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  box-shadow: none;
  overflow-y: visible;
}

/* ══════════════════════════════════════
   SCREENS
══════════════════════════════════════ */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  background: var(--purple-dark);
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger {
  width: 44px;
  height: 44px;
  background: var(--purple-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  box-shadow: 0 6px 0 white, 0 -6px 0 white;
}

.logo-wrap {
  text-align: center;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.brand-logo {
  max-width: 190px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-title {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.l-t { color:#ff4444; }
.l-h { color:#ff9900; }
.l-e { color:#ffdd00; }
.l-r { color:#44dd44; }
.l-e2 { color:#44aaff; }
.l-t2 { color:#aa44ff; }
.l-o { color:#ff44aa; }
.l-s { color:#ff4444; }

.logo-sub {
  font-family: 'Fredoka One', cursive;
  color: #c084fc;
  font-size: 13px;
  letter-spacing: 4px;
  margin-top: -2px;
}

.etickets-badge {
  background: var(--purple-dark);
  border: 2px solid var(--purple-bright);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.etickets-badge:active {
  transform: scale(.96);
}

.etickets-badge .ticket-icon {
  font-size: 22px;
}

.etickets-badge .label {
  color: #c4b5fd;
  font-size: 11px;
  line-height: 1;
}

.etickets-badge .count {
  color: white;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform .3s;
}

.etickets-badge .count.bump {
  transform: scale(1.4);
  color: var(--gold-light);
}

/* ══════════════════════════════════════
   HOME
══════════════════════════════════════ */
.hero {
  background: white;
  border-radius: 20px;
  margin: 8px 12px 0;
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.hero-left {
  flex: 1;
  z-index: 2;
}

.hero-left h1 {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}

.hero-left h1 span {
  color: var(--purple-bright);
}

.hero-left p {
  color: #555;
  font-size: 13px;
  margin: 8px 0 16px;
  line-height: 1.4;
}

.hero-robot {
  width: 130px;
  flex-shrink: 0;
}

.robot-svg {
  width: 130px;
  height: 130px;
  animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.dot {
  position: absolute;
  border-radius: 50%;
}

.dot-purple { width:8px; height:8px; background:var(--purple-bright); }
.dot-gold { width:8px; height:8px; background:var(--gold); }
.dot-green { width:6px; height:6px; background:var(--green-bright); }
.dot-red { width:6px; height:6px; background:var(--danger); }

.scatter {
  position: absolute;
  pointer-events: none;
}

.section-title,
.prizes-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 12px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 12px 10px;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #7c3aed55, transparent);
  margin: 0 12px;
}

/* ══════════════════════════════════════
   GAME CARDS
══════════════════════════════════════ */
.game-day {
  background: white;
  border-radius: 16px;
  margin: 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.13);
}

.game-day-thumb {
  width: 120px;
  min-height: 120px;
  background: linear-gradient(135deg,#1e1b4b,#3b0764);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.tap-text {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: var(--gold);
  text-align: center;
  line-height: 1;
}

.frenetic-text {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: white;
  text-align: center;
  line-height: 1;
  margin-bottom: 6px;
}

.tap-coin {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%,#fcd34d,#f59e0b);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(245,158,11,.5);
  font-size:22px;
  position:relative;
}

.tap-coin::after {
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:2px dashed #fcd34d88;
}

.game-day-info {
  flex: 1;
  padding: 14px 14px 14px 0;
}

.game-day-info p {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 12px;
}

.game-stats {
  display:flex;
  gap:10px;
  margin-bottom:10px;
}

.stat-box {
  background:#f3f4f6;
  border-radius:10px;
  padding:8px 10px;
  text-align:center;
  flex:1;
}

.stat-box .stat-label {
  font-size:9px;
  color:#888;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.stat-box .stat-val {
  font-size:18px;
  font-weight:900;
  color:var(--text-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  margin-top:2px;
}

.stat-box .stat-val.green {
  color: var(--green);
}

.btn-play-small {
  background: var(--purple-btn);
  color:white;
  border:none;
  border-radius:10px;
  padding:11px 18px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  justify-content:center;
}

.btn-play-small:active {
  transform: scale(.97);
}

.games-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0 12px;
}

.game-card {
  border-radius:14px;
  overflow:hidden;
  background:white;
  cursor:pointer;
  transition:transform .15s;
  box-shadow:0 8px 18px rgba(0,0,0,.13);
}

.game-card:active {
  transform:scale(.97);
}

.game-card-thumb {
  width:100%;
  aspect-ratio:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  color:white;
  padding:6px;
  text-align:center;
  letter-spacing:.3px;
}

.game-card-thumb.balloons {
  background:linear-gradient(160deg,#1d4ed8,#3b82f6,#60a5fa);
}

.game-card-thumb.moles {
  background:linear-gradient(160deg,#15803d,#16a34a,#4ade80);
}

.game-card-thumb.coins {
  background:linear-gradient(160deg,#1e3a5f,#1d4ed8,#2563eb);
}

.game-card-desc {
  padding:6px 6px 0;
  font-size:10px;
  color:#444;
  text-align:center;
  line-height:1.3;
  min-height:40px;
}

.btn-game {
  display:block;
  margin:6px 8px 8px;
  color:white;
  border:none;
  border-radius:8px;
  padding:7px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  width:calc(100% - 16px);
  text-align:center;
}

.btn-game.green { background:var(--green); }
.btn-game.blue { background:var(--blue); }
.btn-game.purple { background:var(--purple-btn); }

/* ══════════════════════════════════════
   TICKETS & PRIZES
══════════════════════════════════════ */
.ticket-progress {
  background:var(--purple-mid);
  border-radius:16px;
  margin:14px 12px 0;
  padding:16px 20px;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:0 8px 16px rgba(0,0,0,.16);
}

.ticket-big {
  width:56px;
  height:56px;
  background:linear-gradient(135deg,var(--purple-bright),#a855f7);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  border:2px dashed #c4b5fd;
  flex-shrink:0;
}

.tp-center {
  flex:1;
}

.tp-label {
  color:#c4b5fd;
  font-size:11px;
  font-weight:700;
}

.tp-count {
  color:white;
  font-size:32px;
  font-weight:900;
  line-height:1;
}

.progress-bar {
  height:8px;
  background:#4c1d95;
  border-radius:10px;
  overflow:hidden;
  margin-top:6px;
}

.progress-fill {
  height:100%;
  background:linear-gradient(to right,#a855f7,#c084fc);
  border-radius:10px;
  transition:width .5s;
}

.tp-right {
  color:white;
  font-size:12px;
  font-weight:700;
  text-align:center;
  flex-shrink:0;
  max-width:100px;
  line-height:1.3;
}

.gift-icon {
  font-size:40px;
  display:block;
  margin-bottom:4px;
}

.prizes-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0 12px;
}

.prize-card {
  border-radius:14px;
  padding:14px 10px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  min-height:130px;
}

.prize-card.green-card { background:var(--green); }
.prize-card.blue-card { background:var(--blue); }
.prize-card.purple-card { background:var(--purple-btn); }

.prize-card .prize-emoji {
  font-size:36px;
}

.prize-card .prize-name {
  color:white;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  line-height:1.2;
}

.prize-cost {
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--gold-light);
  font-size:22px;
  font-weight:900;
}

.see-all {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#c084fc;
  font-size:13px;
  font-weight:800;
  margin:14px 0 10px;
  cursor:pointer;
  text-transform:uppercase;
}

/* ══════════════════════════════════════
   GAME SCREENS
══════════════════════════════════════ */
.game-header {
  background:var(--purple-dark);
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  position:sticky;
  top:0;
  z-index:100;
}

.back-btn {
  width:40px;
  height:40px;
  background:var(--purple-mid);
  border-radius:50%;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:white;
  font-size:25px;
  flex-shrink:0;
}

.game-header-title {
  font-family:'Fredoka One', cursive;
  color:white;
  font-size:18px;
  flex:1;
  text-align:center;
}

.game-header-tickets {
  background:var(--purple-mid);
  border-radius:12px;
  padding:6px 12px;
  color:var(--gold-light);
  font-size:14px;
  font-weight:900;
  flex-shrink:0;
}

.game-arena {
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.game-info-bar {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--purple-mid);
  border-radius:14px;
  padding:12px 20px;
}

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

.info-item .info-label {
  color:#c4b5fd;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
}

.info-item .info-val {
  color:white;
  font-size:24px;
  font-weight:900;
  line-height:1;
}

.info-item .info-val.gold {
  color:var(--gold-light);
}

.start-btn {
  width:100%;
  background:linear-gradient(135deg,var(--green),#15803d);
  color:white;
  border:none;
  border-radius:16px;
  padding:18px;
  font-family:'Fredoka One', cursive;
  font-size:21px;
  cursor:pointer;
  letter-spacing:1px;
  box-shadow:0 6px 20px rgba(22,163,74,.4);
  transition:transform .1s, box-shadow .1s;
}

.start-btn:active {
  transform:scale(.97);
  box-shadow:0 2px 8px rgba(22,163,74,.3);
}

/* ══════════════════════════════════════
   RESULT OVERLAY
══════════════════════════════════════ */
.result-overlay {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(10,5,30,.86);
  z-index:200;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.result-overlay.show {
  display:flex;
}

.result-card {
  background:linear-gradient(160deg,#2d1b69,#1a0a3c);
  border:2px solid var(--purple-bright);
  border-radius:24px;
  padding:32px 28px;
  text-align:center;
  width:320px;
  max-width:100%;
  animation:popIn .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
  from { transform:scale(.6); opacity:0; }
  to { transform:scale(1); opacity:1; }
}

.result-card .result-emoji {
  font-size:56px;
  margin-bottom:8px;
}

.result-card h2 {
  color:white;
  font-family:'Fredoka One', cursive;
  font-size:28px;
  margin-bottom:4px;
}

.result-card .result-score {
  color:var(--gold-light);
  font-size:18px;
  font-weight:700;
  margin-bottom:6px;
}

.result-card .tickets-earned {
  background:var(--purple-mid);
  border-radius:12px;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:16px 0;
}

.result-card .tickets-earned span {
  color:white;
  font-size:15px;
  font-weight:700;
}

.result-card .tickets-earned .big {
  color:var(--gold-light);
  font-size:32px;
  font-weight:900;
}

.result-btn {
  width:100%;
  border:none;
  border-radius:12px;
  padding:14px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  margin-top:8px;
}

.result-btn.primary {
  background:var(--green);
  color:white;
}

.result-btn.secondary {
  background:var(--purple-mid);
  color:#c4b5fd;
  margin-top:6px;
}

/* ══════════════════════════════════════
   GAME 1 — TAP FRENÉTICO
══════════════════════════════════════ */
#tap-arena {
  background:linear-gradient(160deg,#0f0728,#1e1048);
  border-radius:20px;
  width:100%;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:30px 20px;
  position:relative;
  overflow:hidden;
  min-height:300px;
}

#tap-arena::before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 60%, #7c3aed22, transparent 70%);
}

#tap-timer-ring {
  width:120px;
  height:120px;
  position:relative;
  flex-shrink:0;
}

#tap-timer-ring svg {
  width:120px;
  height:120px;
  transform:rotate(-90deg);
}

#tap-timer-circle {
  stroke:var(--purple-bright);
  stroke-width:8;
  fill:none;
  stroke-dasharray:339;
  stroke-dashoffset:0;
  stroke-linecap:round;
  transition:stroke-dashoffset .1s linear;
}

#tap-timer-bg {
  stroke:#2d1b69;
  stroke-width:8;
  fill:none;
}

.tap-timer-text {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:white;
  font-family:'Fredoka One', cursive;
}

.tap-timer-text .t-num {
  font-size:36px;
  line-height:1;
}

.tap-timer-text .t-label {
  font-size:10px;
  color:#c4b5fd;
}

#tap-btn {
  width:160px;
  height:160px;
  background:radial-gradient(circle at 35% 30%, #fcd34d, #d97706);
  border-radius:50%;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:56px;
  box-shadow:0 8px 30px rgba(245,158,11,.5), 0 0 0 6px #92400e44;
  transition:transform .05s, box-shadow .05s;
  position:relative;
  z-index:1;
  -webkit-tap-highlight-color:transparent;
}

#tap-btn:active,
#tap-btn.tapped {
  transform:scale(.9);
  box-shadow:0 2px 10px rgba(245,158,11,.3);
}

#tap-btn.inactive {
  background:radial-gradient(circle at 35% 30%, #6b7280, #374151);
  box-shadow:none;
}

#tap-score-display {
  color:white;
  font-family:'Fredoka One', cursive;
  font-size:28px;
  position:relative;
  z-index:1;
}

.tap-particle {
  position:absolute;
  color:var(--gold-light);
  font-size:18px;
  font-weight:900;
  pointer-events:none;
  animation:floatUp .6s ease-out forwards;
  z-index:10;
}

@keyframes floatUp {
  from { transform:translateY(0); opacity:1; }
  to { transform:translateY(-60px); opacity:0; }
}

/* ══════════════════════════════════════
   GAME 2 — REVIENTA GLOBOS
══════════════════════════════════════ */
#balloons-arena {
  background:linear-gradient(180deg,#164e80 0%,#1d4ed8 50%,#1e3a8a 100%);
  border-radius:20px;
  width:100%;
  position:relative;
  overflow:hidden;
  min-height:380px;
  flex:1;
}

.balloon {
  position:absolute;
  cursor:pointer;
  transition:transform .1s;
  animation:floatBalloon linear forwards;
  -webkit-tap-highlight-color:transparent;
  z-index:2;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.3));
}

.balloon:hover {
  transform:scale(1.15);
}

.balloon.pop {
  animation:popBalloon .3s ease-out forwards !important;
}

@keyframes floatBalloon {
  from { transform:translateY(110%) rotate(0deg); opacity:1; }
  to { transform:translateY(-120px) rotate(15deg); opacity:.8; }
}

@keyframes popBalloon {
  0% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.6); opacity:.8; }
  100% { transform:scale(0); opacity:0; }
}

/* ══════════════════════════════════════
   GAME 3 — GOLPEA EL OBJETIVO
══════════════════════════════════════ */
#moles-arena {
  background:linear-gradient(160deg,#064e3b,#065f46);
  border-radius:20px;
  width:100%;
  padding:20px 16px;
  min-height:340px;
}

.moles-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.mole-hole {
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #3b2f1f 0%, #1f140d 100%);
  border-radius: 50%;
  border: 5px solid #5b4631;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 8px 18px rgba(0,0,0,.7),
    0 4px 8px rgba(0,0,0,.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s;
}

.mole-hole.has-mole {
  background:#065f46;
}

.mole-hole .mole-emoji {
  transition:transform .15s, opacity .15s;
  transform:translateY(100%);
  opacity:0;
}

.mole-hole.has-mole .mole-emoji {
  transform: translateY(0);
  opacity: 1;
  animation: moleBounce .18s ease-out;
}

.mole-hole.hit .mole-emoji {
  animation:moleHit .25s ease-out forwards;
}

@keyframes moleHit {
  0% { transform:scale(1); }
  40% { transform:scale(1.4) rotate(-10deg); }
  100% { transform:scale(0) translateY(100%); opacity:0; }
}

.hit-star {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  pointer-events:none;
  animation:hitStar .4s ease-out forwards;
}

@keyframes hitStar {
  from { opacity:1; transform:scale(.5); }
  to { opacity:0; transform:scale(2); }
}

/* ══════════════════════════════════════
   GAME 4 — ATRAPA MONEDAS
══════════════════════════════════════ */
#coins-game-wrap {
  width:100%;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

#coins-canvas-wrap {
  width:100%;
  position:relative;
  background:linear-gradient(180deg,#0c1445 0%,#1a237e 40%,#1565c0 100%);
  border-radius:20px;
  overflow:hidden;
  height:320px;
}

#coins-canvas {
  width:100%;
  height:100%;
  display:block;
}

#basket-ctrl {
  width:100%;
  display:flex;
  gap:12px;
  justify-content:center;
}

.basket-btn {
  flex:1;
  max-width:150px;
  background:var(--purple-btn);
  color:white;
  border:none;
  border-radius:14px;
  padding:16px;
  font-size:28px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 4px 12px rgba(109,40,217,.4);
  transition:transform .08s;
}

.basket-btn:active {
  transform:scale(.93);
}

/* ══════════════════════════════════════
   ANIMATIONS & TOAST
══════════════════════════════════════ */
@keyframes bumpIn {
  0% { transform:scale(1); }
  40% { transform:scale(1.5); color:#fcd34d; }
  100% { transform:scale(1); }
}

.bump {
  animation:bumpIn .4s ease-out;
}

.toast {
  position:fixed;
  bottom:90px;
  left:50%;
  transform:translateX(-50%);
  background:#1a0a3c;
  border:2px solid var(--gold);
  border-radius:50px;
  padding:10px 24px;
  color:white;
  font-weight:800;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:300;
  white-space:nowrap;
  animation:toastIn .3s ease-out;
  pointer-events:none;
}

@keyframes toastIn {
  from { opacity:0; transform:translateX(-50%) translateY(20px); }
  to { opacity:1; transform:translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════
   MOBILE OPTIMIZATION
══════════════════════════════════════ */
@media (max-width: 480px) {
  html,
  body {
    width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    background:var(--purple-dark);
    -webkit-overflow-scrolling:touch;
  }

  .phone-wrap {
  width: 100%;
  max-width: 420px;
  background: var(--purple-dark);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0,0,0,.25);
}

  .header {
    display:grid;
    grid-template-columns:48px 1fr 96px;
    gap:8px;
    padding:10px 10px 8px;
    align-items:center;
  }

  .hamburger {
    width:42px;
    height:42px;
  }

  .brand-logo {
    max-width:178px;
  }

  .logo-title {
    font-size:24px;
    white-space:nowrap;
  }

  .logo-sub {
    font-size:11px;
    letter-spacing:3px;
  }

  .etickets-badge {
    padding:7px 8px;
    gap:5px;
    border-radius:13px;
  }

  .etickets-badge .ticket-icon {
    font-size:18px;
  }

  .etickets-badge .label {
    font-size:10px;
  }

  .etickets-badge .count {
    font-size:22px;
  }

  .hero {
    margin:6px 10px 0;
    padding:16px 14px;
    border-radius:22px;
  }

  .hero-left h1 {
    font-size:26px;
    line-height:1.02;
  }

  .hero-left p {
    font-size:13px;
    margin:8px 0 12px;
  }

  .hero-robot {
    width:94px;
  }

  .robot-svg {
    width:94px;
    height:104px;
  }

  .section-title,
  .section-title-left,
  .prizes-title {
    margin-top:14px;
    margin-bottom:10px;
  }

  .game-day {
    margin:0 10px;
    gap:10px;
    border-radius:18px;
  }

  .game-day-thumb {
    width:112px;
    min-height:116px;
  }

  .tap-text {
    font-size:22px;
  }

  .frenetic-text {
    font-size:16px;
  }

  .tap-coin {
    width:46px;
    height:46px;
  }

  .game-day-info {
    padding:12px 10px 12px 0;
  }

  .game-day-info p {
    font-size:12.5px;
    margin-bottom:9px;
  }

  .game-stats {
    gap:7px;
    margin-bottom:8px;
  }

  .stat-box {
    padding:7px 6px;
  }

  .stat-box .stat-label {
    font-size:8px;
  }

  .stat-box .stat-val {
    font-size:16px;
  }

  .btn-play-small {
    padding:10px 12px;
    font-size:14px;
  }

  .games-grid {
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    margin:0 10px;
  }

  .game-card-thumb {
    aspect-ratio:1.05;
    font-size:10px;
  }

  .game-card-desc {
    min-height:34px;
    font-size:10px;
    padding:6px 7px 0;
  }

  .btn-game {
    margin:6px 8px 8px;
    padding:8px;
    font-size:11px;
  }

  .ticket-progress {
    margin:14px 10px 0;
    padding:14px;
    gap:12px;
  }

  .ticket-big {
    width:52px;
    height:52px;
    font-size:24px;
  }

  .tp-count {
    font-size:30px;
  }

  .tp-right {
    max-width:90px;
    font-size:11px;
  }

  .gift-icon {
    font-size:32px;
  }

  .prizes-grid {
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin:0 10px;
  }

  .prize-card {
    min-height:118px;
    padding:10px 7px;
  }

  .prize-card .prize-emoji {
    font-size:30px;
  }

  .prize-card .prize-name {
    font-size:9px;
  }

  .prize-cost {
    font-size:18px;
  }

  .game-header {
    padding:10px;
    gap:8px;
  }

  .game-header-title {
    font-size:15px;
  }

  .game-header-tickets {
    font-size:12px;
    padding:6px 9px;
  }

  .game-arena {
    padding:12px;
    gap:12px;
  }

  .game-info-bar {
    padding:10px 12px;
  }

  .info-item .info-label {
    font-size:9px;
  }

  .info-item .info-val {
    font-size:22px;
  }

  #tap-arena,
  #balloons-arena,
  #moles-arena {
    min-height:320px;
  }

  #coins-canvas-wrap {
    height:300px;
  }

  .start-btn {
    padding:15px;
    font-size:18px;
  }
}