/* Fruit Fusion — IQ Bonkers house style: dark ground, solid pink #FF00C6 accents */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #0a0a12;
  color: #f5f2fa;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
#app { max-width: 520px; margin: 0 auto; padding: 10px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.chrome { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { font-size: 34px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.brand-text h1 { font-size: 21px; letter-spacing: 2.5px; color: #fff; line-height: 1; }
.brand-text h1::after { content: ""; display: block; height: 3px; background: #FF00C6; margin-top: 4px; border-radius: 2px; }
.brand-text p { font-size: 11px; letter-spacing: 1.6px; color: #FF00C6; font-weight: 700; margin-top: 3px; }

.hud { display: flex; align-items: stretch; gap: 6px; margin-left: auto; }
.hud-box { background: #16162a; border: 1px solid #2c2c4a; border-radius: 10px; padding: 4px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; }
.hud-label { font-size: 9px; letter-spacing: 1.5px; color: #9d97b8; font-weight: 700; }
.hud-value { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.1; }
.next-box { min-width: 52px; padding: 2px 6px; }
#nextCanvas { width: 34px; height: 34px; }
.icon-btn { background: #16162a; border: 1px solid #2c2c4a; color: #fff; border-radius: 10px; width: 42px; font-size: 18px; cursor: pointer; }
.icon-btn:active { background: #FF00C6; }

.combo-banner {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) scale(1);
  background: #FF00C6; color: #fff; font-weight: 900; letter-spacing: 1.5px; font-size: 17px;
  padding: 6px 18px; border-radius: 999px; z-index: 30; box-shadow: 0 6px 22px rgba(255,0,198,.5);
  animation: comboPop .22s ease-out; pointer-events: none; white-space: nowrap;
}
@keyframes comboPop { 0% { transform: translateX(-50%) scale(.5); } 100% { transform: translateX(-50%) scale(1); } }

#stageWrap { position: relative; width: min(94vw, 420px); }
#game { width: 100%; height: auto; display: block; border-radius: 16px; touch-action: none; cursor: pointer; }

.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,6,16,.78); border-radius: 16px; z-index: 20; }
.overlay[hidden] { display: none; }
.overlay-card { text-align: center; padding: 22px 20px; max-width: 330px; }
.overlay-emoji { font-size: 52px; margin-bottom: 6px; }
.overlay-card h2 { font-size: 26px; letter-spacing: 2px; margin-bottom: 8px; }
.overlay-card p { font-size: 14px; line-height: 1.55; color: #cfc9e8; }
.big-btn { margin-top: 16px; background: #FF00C6; color: #fff; border: none; font-size: 17px; font-weight: 900; letter-spacing: 1px; padding: 13px 26px; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 24px rgba(255,0,198,.45); }
.big-btn:active { transform: scale(.96); }
.overlay-sub { margin-top: 12px; font-size: 11.5px !important; color: #FF00C6 !important; font-weight: 700; letter-spacing: .5px; }
.final-score { font-size: 30px !important; color: #fff !important; font-weight: 900; }

.evo { width: min(94vw, 420px); background: #12122a; border: 1px solid #2c2c4a; border-radius: 14px; padding: 8px 8px 6px; }
.evo-title { font-size: 10px; letter-spacing: 1.6px; color: #9d97b8; font-weight: 800; text-align: center; margin-bottom: 6px; }
.evo-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; }
.evo-item { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.evo-item canvas { display: block; }
.evo-item span { font-size: 8.5px; color: #bdb7d6; letter-spacing: .2px; text-align: center; white-space: nowrap; overflow: hidden; }
.evo-item.reached span { color: #FF00C6; font-weight: 800; }
.evo-arrow { color: #4a4570; font-size: 10px; padding-bottom: 16px; }

.controls-line { font-size: 11.5px; color: #8f8ab0; text-align: center; letter-spacing: .3px; padding: 0 6px; }
.foot { font-size: 10.5px; color: #55517a; letter-spacing: .5px; }

@media (max-width: 430px) {
  .brand-text h1 { font-size: 18px; }
  .hud-value { font-size: 16px; }
  .hud-box { min-width: 56px; padding: 3px 7px; }
}
