/*
  shared/shell.css  — the LOOK of the shared game screens.
  Uses the site's colour variables when they exist, with safe fallbacks so the
  screens still look right even on a page that hasn't loaded the main site CSS.
*/

/* top-right pause + sound buttons */
.ottshell-controls{position:absolute;top:10px;right:10px;display:flex;gap:8px;z-index:20}
.ottshell-ctrl{width:40px;height:40px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.18);background:rgba(20,22,40,.72);color:#fff;
  font-size:18px;display:grid;place-items:center}
.ottshell-ctrl:hover{background:rgba(40,44,80,.85)}

/* the dark screen that covers the game area for start/pause/game-over.
   Uses grid centring + overflow-y:auto so a tall game-over card (e.g. with the
   Continue + Double + Play-Again buttons) is never clipped — it stays centred
   when it fits and scrolls inside the box if the game area is short. */
.ottshell-overlay{position:absolute;inset:0;z-index:15;display:grid;place-items:center;
  padding:20px;text-align:center;border-radius:inherit;overflow-y:auto;
  background:rgba(10,12,23,.86);backdrop-filter:blur(4px)}
.ottshell-overlay.hidden{display:none}

.ottshell-card{max-width:340px}
.ottshell-card h2{margin:0 0 8px;font-size:30px;
  font-family:'Fredoka','Inter',system-ui,sans-serif;color:var(--text,#eef0fb)}
.ottshell-card p{margin:2px 0 18px;color:var(--muted,#9aa0c3)}

.ottshell-best{margin-bottom:6px;font-weight:600;color:var(--good,#37e0a6)}
.ottshell-score{margin:6px 0;font-size:56px;font-weight:700;line-height:1;
  font-family:'Fredoka','Inter',system-ui,sans-serif;
  background:var(--grad,linear-gradient(120deg,#7c5cff,#00d4ff));
  -webkit-background-clip:text;background-clip:text;color:transparent}

.ottshell-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.ottshell-btn{padding:13px 18px;border-radius:14px;cursor:pointer;font-weight:600;font-size:16px;
  border:1px solid rgba(255,255,255,.16);background:rgba(30,34,64,.9);color:#fff}
.ottshell-btn:hover{filter:brightness(1.12)}
.ottshell-btn.primary{border:none;color:#fff;
  background:var(--grad,linear-gradient(120deg,#7c5cff,#00d4ff))}
