* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden;
  background: #1a1420;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 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: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  z-index: 5;
}
.hud .a { color: #ff8c66; }
.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(22,16,28, .84);
  backdrop-filter: blur(3px);
  text-align: center;
  padding: 20px;
}
.panel[hidden] { display: none; }
.panel h2 { font-size: clamp(24px, 6vw, 34px); letter-spacing: .5px; color: #ff8c66; }
.panel p { font-size: 15px; line-height: 1.8; color: #b8c2d8; }
.panel.menu {
  background: radial-gradient(ellipse at 50% 30%, rgba(22,16,28, .15) 0%, rgba(22,16,28, .84) 74%);
  justify-content: flex-end;
  padding-bottom: max(9vh, 48px);
}
.menu-body { width: min(100%, 560px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panel.menu h2 {
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd9c4 10%, #d05a2a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(240,120,80,.4));
}
.tagline { color: #ff8c66; letter-spacing: .3px; 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 12px;
  font-size: 14px;
  color: #c8d2e8;
}
.howto { font-size: 13px; color: #8fa0c0; }
button {
  border: none;
  border-radius: 12px;
  background: #d05a2a;
  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, #ff8c66, #d05a2a);
  color: #16121a;
  font-size: 19px;
  padding: 14px 42px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(240,120,80,.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: #ff8c66;
  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; }

/* Keep English copy reachable on narrow and short screens. */
.panel { overflow-y: auto; }
@media (max-height: 620px) {
  .panel.menu { justify-content: flex-start; padding-block: 24px; }
}
