* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1f201a; color: #fffefa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; touch-action: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* start.ng profile card */
.startng-card { position: fixed; top: 16px; left: 16px; display: flex; align-items: center; gap: 12px; z-index: 5;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: #292a23; color: #fffefa; max-width: calc(100vw - 32px); }
.startng-card img { width: 48px; height: 48px; border-radius: 50%; background: #d8fd71; }
.startng-card b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.startng-card span { font-size: 12px; opacity: .7; }
.startng-card button { margin-left: 8px; border: 0; border-radius: 999px; padding: 6px 12px; background: #d8fd71; color: #292a23; font-weight: 700; }

/* HUD */
.hud { position: fixed; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 5; }
.hud > div { background: #292a23; border-radius: 14px; padding: 6px 12px; text-align: center; min-width: 58px; }
.hud small { display: block; font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.hud b { font-size: 18px; }
.hud .hearts { color: #ff6b6b; font-size: 20px; display: flex; align-items: center; letter-spacing: 2px; }

.bottom-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.ghost { white-space: nowrap; border: 1px solid #4a4b3f; background: #292a23cc; color: #fffefa; border-radius: 999px; padding: 10px 18px; }
.ghost:hover { border-color: #d8fd71; }

.toast { position: fixed; top: 96px; left: 50%; transform: translate(-50%, -10px); opacity: 0; z-index: 6;
  background: #d8fd71; color: #292a23; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Panels */
.panel-wrap { position: fixed; inset: 0; display: grid; place-items: center; background: #1f201aa6; z-index: 10; padding: 16px; }
.panel { background: #292a23; border-radius: 24px; padding: 28px; width: min(420px, 100%); text-align: center;
  box-shadow: 0 20px 60px #0008; max-height: calc(100vh - 32px); overflow: auto; }
.panel h1 { margin: 0 0 8px; font-size: 40px; letter-spacing: -.02em; }
.panel h1 span { color: #d8fd71; }
.panel h2 { margin: 0 0 8px; }
.panel p { opacity: .85; line-height: 1.45; }
.panel ul { text-align: left; padding-left: 20px; opacity: .8; line-height: 1.6; font-size: 14px; }
.primary { display: block; width: 100%; margin-top: 14px; border: 0; border-radius: 999px; padding: 14px; background: #d8fd71;
  color: #292a23; font-size: 18px; font-weight: 800; }
.primary:hover { filter: brightness(1.05); }
.link { margin-top: 12px; border: 0; background: none; color: #d8fd71; text-decoration: underline; }
.save { font-weight: 600; }

.board { text-align: left; padding: 0; margin: 12px 0 0; list-style: none; }
.board li { padding: 8px 12px; border-radius: 10px; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.board li:nth-child(odd) { background: #ffffff0a; }
.board li.me { outline: 2px solid #d8fd71; }
.board li.muted { opacity: .6; }
.board i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

@media (max-width: 640px) {
  .startng-card { top: 10px; left: 10px; padding: 6px 12px 6px 6px; gap: 8px; }
  .startng-card img { width: 36px; height: 36px; }
  .hud { top: auto; bottom: 70px; right: 50%; transform: translateX(50%); }
  .ghost { padding: 9px 14px; font-size: 14px; }
  .hud > div { min-width: 52px; padding: 4px 10px; }
  .toast { top: 70px; }
}
