* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden;
  background: #101828;
  font-family: -apple-system, Arial, sans-serif;
  color: #eef1f8;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
#cv { display: block; }
.hud {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-weight: 800;
  font-size: clamp(12px, 3.5vw, 16px);
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  z-index: 5;
}
.hud .a { flex: none; color: #5ad0f0; }
.hud .b { color: #cfd8ea; }
.panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: rgba(10,16,30, .84);
  backdrop-filter: blur(3px);
  text-align: center;
  padding: 20px;
}
.panel[hidden] { display: none; }
.panel h2 { font-size: 34px; letter-spacing: 3px; color: #5ad0f0; }
.panel p { font-size: 15px; line-height: 1.8; color: #b8c2d8; }
.panel.menu {
  background: radial-gradient(ellipse at 50% 30%, rgba(10,16,30, .15) 0%, rgba(10,16,30, .84) 74%);
  justify-content: flex-end;
  padding-bottom: max(9vh, 48px);
}
.menu-body { width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panel.menu h2 {
  font-size: clamp(32px, 8.5vw, 52px);
  letter-spacing: 1px;
  background: linear-gradient(180deg, #cfefff 10%, #2a89c0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(90,208,240,.4));
}
.tagline { color: #5ad0f0; letter-spacing: .5px; font-size: 15px; }
.feats { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 6px 0; }
.feats li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 14px;
  color: #c8d2e8;
}
.howto { font-size: 13px; color: #8fa0c0; }
button {
  border: none;
  border-radius: 12px;
  background: #2a89c0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 11px 24px;
  cursor: pointer;
  font-family: inherit;
}
button:active { transform: scale(.96); }
button.primary {
  background: linear-gradient(180deg, #5ad0f0, #2a89c0);
  color: #16121a;
  font-size: 19px;
  padding: 14px 42px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(90,208,240,.4);
}
button.ghost { background: rgba(255, 255, 255, .13); color: #eef1f8; }
.panel-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.in-menu .hud { display: none; }
.banner {
  position: fixed;
  top: 34%;
  left: 0; right: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #5ad0f0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity .3s;
}
.banner.show { opacity: 1; }

/* Score pulse */
.hud .a { transition: transform .12s ease-out; transform-origin: left center; }
.hud .a.bump { transform: scale(1.3); }

@media (max-width: 360px), (max-height: 600px) {
  .panel { padding: 14px; }
  .panel.menu { padding-bottom: max(5vh, 20px); }
  .menu-body { gap: 8px; }
  .feats li { padding: 7px 12px; font-size: 12px; }
  button { padding: 10px 18px; font-size: 14px; }
}
