/* Flappy Khamba – UI */
:root{
  --bg1:#0b1020;
  --bg2:#123a6b;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --green:#34c759;
  --blue:#2f7ef7;
  --danger:#ef4444;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, #1f2a44 0%, var(--bg1) 55%, #050814 100%);
}
.wrap{max-width:980px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;padding:16px}
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:12px 12px;border-radius:16px;background:rgba(15,23,42,.55);backdrop-filter: blur(8px);
  border:1px solid rgba(148,163,184,.15);
}
.brand{display:flex;align-items:center;gap:10px}
.brand__icon{width:38px;height:38px;border-radius:12px;outline:1px solid rgba(148,163,184,.18)}
.brand__title{font-weight:800;letter-spacing:.2px}
.brand__sub{font-size:12px;color:var(--muted)}
.stats{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.chip{
  display:flex;align-items:baseline;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(2,6,23,.35);
  border:1px solid rgba(148,163,184,.18);
  font-size:12px;color:var(--muted);
}
.chip b{color:var(--text);font-size:16px;line-height:1}
.chip--btn{
  cursor:pointer;
  align-items:center;
  font-size:16px;
  line-height:1;
  padding:8px 12px;
  user-select:none;
}
.chip--btn:active{transform:scale(.98)}

.stage{
  position:relative;
  display:flex;justify-content:center;align-items:center;
  margin:16px 0;flex:1;
}
canvas{
  width:min(92vw, 520px);
  height:auto;
  border-radius:22px;
  background: linear-gradient(180deg, #6db8ff 0%, #bfe6ff 25%, #eaf7ff 60%, #f6fbff 100%);
  outline:1px solid rgba(148,163,184,.22);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  touch-action: none;
}

/* Splash screen like screenshot */
.splash{
  position:fixed;inset:0;z-index:50;
  display:flex;align-items:center;justify-content:center;
  background: radial-gradient(1000px 700px at 70% 30%, #1a3e7a 0%, #0b1020 60%, #050814 100%);
}
.splash__inner{display:flex;flex-direction:column;align-items:center;gap:14px}
.splash__avatar{
  width:120px;height:120px;border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 18px 55px rgba(0,0,0,.35);
}
.splash__avatar img{
  width:78px;height:78px;object-fit:contain;
  image-rendering: pixelated;
}
.splash__title{
  letter-spacing:.28em;
  font-weight:700;
  font-size:14px;
  opacity:.9;
}
.spinner{
  width:34px;height:34px;border-radius:999px;
  border:3px solid rgba(229,231,235,.25);
  border-top-color: rgba(229,231,235,.9);
  animation:spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Start hint */
.hintOverlay{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  pointer-events:none;
}
.hintCard{
  pointer-events:none;
  width:min(88%, 360px);
  border-radius:18px;
  padding:14px 14px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  text-align:center;
  color:#0f172a;
}
.hintCard__avatar{
  width:78px;height:78px;border-radius:999px;
  margin:0 auto 10px;
  background:#eef2ff;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.hintCard__avatar img{width:52px;height:52px;object-fit:contain;image-rendering:pixelated}
.hintCard__title{font-weight:900;font-size:20px;margin:0}
.hintCard__sub{font-size:13px;opacity:.8;margin-top:4px}

/* Gameover overlay + card (like your screenshot) */
.overlay{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  backdrop-filter: blur(4px);
  background: rgba(2,6,23,.12);
}
.goCard{
  width:min(90%, 420px);
  border-radius:22px;
  padding:18px 18px 16px;
  background:#ffffff;
  color:#0f172a;
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
  text-align:center;
  border:1px solid rgba(15,23,42,.08);
}
.goAvatar{
  width:92px;height:92px;border-radius:999px;
  background:#eef2ff;
  margin:0 auto 10px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.goAvatar img{width:68px;height:68px;object-fit:contain;image-rendering:pixelated}
.goTitle{
  font-weight:900;
  font-size:30px;
  color:var(--danger);
  margin:6px 0 6px;
}
.goScore{
  font-size:18px;
  font-weight:700;
  margin:6px 0 14px;
}
.goBtnRow{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.goBtn{
  border:0;cursor:pointer;
  padding:12px 18px;border-radius:999px;
  font-weight:900;
  min-width:150px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}
.goBtn--green{background:var(--green);color:#ffffff}
.goBtn--blue{background:var(--blue);color:#ffffff}
.goBtn:active{transform:scale(.98)}
.goTip{
  margin-top:14px;
  font-size:13px;
  color:#b45309;
  font-weight:700;
}
.goLink{
  display:inline-block;
  margin-top:8px;
  font-size:13px;
  color:#2563eb;
  text-decoration:underline;
  font-weight:700;
}

.footer{opacity:.75;text-align:center;font-size:12px;color:var(--muted);padding:8px}

/* CLEAN UI: no top header */
.wrap{padding:10px;max-width:none}
.stage{margin:10px 0}
.floatSound{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(15,23,42,.25);
  backdrop-filter: blur(6px);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.floatSound:active{transform:scale(.98)}
@media (max-width:520px){
  .wrap{padding:8px}
  .floatSound{top:10px;right:10px;width:40px;height:40px}
}
