/* Shared puzzle-studio chrome. Games set --bg, --ink, --accent, --panel on :root via bootPuzzle({ theme }). */
:root { --bg: #102a43; --bg2: #0b1d30; --ink: #fff; --muted: #b8c7d9; --accent: #ffcc00; --accent-ink: #1b1300; --panel: #ffffff14; --good: #3ddc84; --bad: #ff5a5f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body { background: radial-gradient(120% 80% at 50% 0%, var(--bg), var(--bg2)); color: var(--ink); font: 500 16px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:disabled { opacity: .45; cursor: default; }
#app { max-width: 480px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
.pz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.pz-chip { background: var(--panel); border-radius: 99px; padding: 8px 14px; font-weight: 800; min-width: 74px; }
.pz-chip small { font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.pz-brand { text-align: center; line-height: 1; }
.pz-brand strong { display: block; font-size: 20px; letter-spacing: .02em; }
.pz-brand small { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.pz-home { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.pz-path { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; justify-content: center; }
.pz-node { width: 64px; height: 64px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 20px; position: relative; }
.pz-node:nth-child(odd) { transform: translateX(-46px); } .pz-node:nth-child(even) { transform: translateX(46px); }
.pz-node.now { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px #ffffff22; font-weight: 900; }
.pz-node.done { background: #ffffff2a; }
.pz-node span { position: absolute; bottom: -8px; font-size: 11px; color: var(--accent); }
.pz-play { background: var(--accent); color: var(--accent-ink); border-radius: 18px; padding: 16px; font-size: 22px; font-weight: 900; width: 100%; box-shadow: 0 6px 0 #00000040; }
.pz-play.alt { background: var(--panel); color: var(--ink); font-size: 18px; padding: 12px; box-shadow: none; }
.pz-play.alt small { font-weight: 600; color: var(--muted); }
.pz-play:active { transform: translateY(3px); box-shadow: 0 3px 0 #00000040; }
.pz-row { display: flex; gap: 8px; }
.pz-ghost { flex: 1; background: var(--panel); border-radius: 14px; padding: 12px; font-weight: 700; width: 100%; }
.pz-note { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.pz-level-head { display: flex; align-items: center; gap: 10px; }
.pz-level-head b { font-size: 18px; }
.pz-x { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); }
.pz-board { flex: 1; position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pz-boosters { display: flex; gap: 10px; justify-content: center; min-height: 64px; }
.pz-boost { width: 64px; height: 60px; border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pz-boost i { font-style: normal; font-size: 24px; } .pz-boost small { font-weight: 800; }
.pz-modal { position: fixed; inset: 0; background: #000a; display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: pzfade .15s; }
.pz-sheet { background: var(--bg2); border-radius: 22px 22px 0 0; width: min(100%, 480px); padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 86%; overflow: auto; }
.pz-sheet h2 { margin: 0; text-align: center; }
.pz-sheet p { margin: 0; text-align: center; color: var(--muted); }
.pz-stars { font-size: 40px; color: var(--accent) !important; }
.pz-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 12px 14px; text-align: left; }
.pz-buy span { display: flex; flex-direction: column; font-weight: 800; } .pz-buy small { font-weight: 500; color: var(--muted); font-size: 12px; }
.pz-buy b { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
.pz-buy.focus { outline: 2px solid var(--accent); }
.pz-lb { margin: 0; padding: 0 0 0 22px; } .pz-lb li { display: flex; justify-content: space-between; padding: 4px 0; }
.pz-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #000d; padding: 10px 16px; border-radius: 99px; z-index: 60; font-size: 14px; }
@keyframes pzfade { from { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
