/* style.css — Neon Breaker */
:root{
  --bg: #06030d;
  --panel: #0d0820;
  --ink: #e8e6ff;
  --dim: #8a86b8;
  --accent: #7afcff;
  --accent2: #ff4fa3;
  --line: rgba(122,252,255,0.18);
  color-scheme: dark;
}
html[data-theme="light"]{
  --bg: #06030d;
  --panel: #0d0820;
  --ink: #e8e6ff;
  --dim: #8a86b8;
  --accent: #7afcff;
  --accent2: #ff4fa3;
  color-scheme: dark;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme]) { color-scheme: dark; }
}
*{ box-sizing: border-box; }
html, body{
  margin:0; padding:0; height:100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
#app{
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(122,252,255,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(255,79,163,0.10), transparent 60%),
    var(--bg);
}
#hud{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(20,12,40,0.9), rgba(10,6,24,0.6));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hud-group{ display:flex; align-items:center; gap: 14px; }
.stat{ display:flex; flex-direction:column; align-items:flex-start; line-height:1; }
.stat-label{
  font-size: 9px; letter-spacing: 2px; color: var(--dim);
  margin-bottom: 3px;
}
.stat-val{
  font-size: 18px; font-weight: 700; color: var(--ink);
  text-shadow: 0 0 12px var(--accent);
}
#lives{ color: #ff4fa3; text-shadow: 0 0 12px #ff4fa3; letter-spacing: 1px; }
.combo{
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
  color: #ffd84f; text-shadow: 0 0 14px #ffaa00;
  opacity: 0; transition: opacity .2s;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,170,0,0.08);
}
.icon-btn{
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(122,252,255,0.06);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 18px; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.icon-btn:hover{ background: rgba(122,252,255,0.14); box-shadow: 0 0 14px rgba(122,252,255,0.3); transform: translateY(-1px); }
.icon-btn:active{ transform: translateY(0) scale(0.95); }
.icon-btn.off{ color: var(--dim); }
#fs{ font-size: 16px; }

#stage{
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
#game{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  touch-action: none;
  background: #05030a;
}
@media (min-aspect-ratio: 4/3){
  #game{ height: 100%; width: auto; }
}

#overlay{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, rgba(6,3,13,0.35), rgba(6,3,13,0.75));
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 5;
}
#overlay.show{ opacity: 1; pointer-events: auto; }
.overlay-card{
  text-align: center;
  padding: 28px 36px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,12,46,0.85), rgba(10,6,24,0.9));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(122,252,255,0.15) inset;
  animation: floatIn .4s ease;
}
@keyframes floatIn{ from{ transform: translateY(12px) scale(0.96); opacity:0; } to{ transform:none; opacity:1; } }
.overlay-card h1{
  margin: 0 0 6px; font-size: clamp(28px, 6vw, 52px);
  font-weight: 900; letter-spacing: 3px;
  color: var(--ink);
  text-shadow: 0 0 24px var(--accent), 0 0 48px rgba(122,252,255,0.4);
  line-height: 1;
}
.overlay-card h1 span{
  display:block; color: var(--accent2);
  text-shadow: 0 0 24px var(--accent2), 0 0 48px rgba(255,79,163,0.4);
  margin-top: 2px;
}
#overlay-msg{
  margin: 8px 0 18px; color: var(--dim); font-size: 13px;
  letter-spacing: 0.5px;
}
#overlay-msg b{ color: var(--accent); }
#start-btn{
  font-family: inherit;
  font-size: 16px; font-weight: 800; letter-spacing: 2px;
  padding: 14px 34px; border-radius: 14px; cursor: pointer;
  color: #04121a;
  background: linear-gradient(180deg, #affcff, #36d6ff);
  border: none;
  box-shadow: 0 0 24px rgba(122,252,255,0.6), 0 8px 20px rgba(0,0,0,0.4);
  transition: transform .12s, box-shadow .15s;
}
#start-btn:hover{ transform: translateY(-2px) scale(1.03); box-shadow: 0 0 36px rgba(122,252,255,0.85), 0 12px 28px rgba(0,0,0,0.5); }
#start-btn:active{ transform: translateY(0) scale(0.98); }
.hint{
  margin-top: 16px; font-size: 11px; color: var(--dim);
  letter-spacing: 1px;
}

@media (max-width: 480px){
  #hud{ padding: 8px 10px; gap: 6px; }
  .stat-val{ font-size: 15px; }
  .stat-label{ font-size: 8px; }
  .icon-btn{ width: 34px; height: 34px; font-size: 16px; }
  .combo{ font-size: 11px; padding: 3px 8px; }
  .overlay-card{ padding: 22px 24px; }
}
