
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
:root {
  --bg: #f18e19;
  --fg: #101418;
  --muted: #3d4652;
  --panel: rgba(255,255,255,0.35);
  --bord: rgba(0,0,0,0.12);
  --accent: #111827;
  --shadow: 0 12px 24px rgba(0,0,0,.18);
}
.app { display: grid; grid-template-rows: 1fr auto; height: 100vh; background: var(--bg); color: var(--fg); }
.main { display: grid; grid-template-rows: 1fr auto auto auto auto auto; gap: 10px; padding: 10px 12px; overflow: hidden; }
.hero { display: grid; place-items: center; }
.hero img { display:block; max-width: 520px; width: 100%; max-height: 100%; object-fit: contain; background: #f18e19; }
.banner { text-align: center; font-weight: 800; font-family: "Bradley Hand", "Bradley Hand ITC", "Segoe Script", cursive; font-size: clamp(20px, 4.5vw, 41px); min-height: 1.2em; opacity: 0; transition: opacity .6s ease; }
.banner.show { opacity: 1; }
.banner.hide { opacity: 0; }
.display { text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; font-size: clamp(40px, 9vw, 82px); }
.controls { display: grid; gap: 12px; grid-auto-rows: min-content; }
.controls label { font-size: 16px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
button { border: 1px solid var(--bord); background: var(--panel); color: var(--fg); padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 16px; font-weight: 700; transition: transform .12s ease; }
button.primary { background: var(--accent); color: white; border: none; }
button:disabled { opacity: .5; }
.pressable:active { transform: scale(.97); box-shadow: 0 6px 12px rgba(0,0,0,.14); }
.hint { text-align:center; min-height:1.2em; font-size:14px; color:#111; opacity:.85; }
.footer { text-align: center; font-size: 12px; padding: 6px 0; color: var(--muted); background: var(--bg); border-top: 1px solid var(--bord); }

/* Unlock overlay */
.unlock { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); z-index: 50; }
.unlock.hidden { display: none; }
.unlock-card { background: white; color: #111; width: min(560px, 92vw); border-radius: 16px; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.35); text-align: center; }
.unlock-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.unlock-text { font-size: 16px; opacity: .85; margin-bottom: 14px; }
