@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Karla:wght@400;600;700&display=swap');
/* Cookie Cutter look: an open cobalt tin lined with baking paper. */
:root {
  --pl-font: "Manrope", ui-rounded, "Nunito", "Avenir Next", system-ui, sans-serif;
  --pl-topbar-bg: #F5EFE2;
  --pl-topbar-text: #2B1F1A;
  --pl-control-text: #2B1F1A;
  --pl-control-bg: #FFFBF2;
  --pl-control-border: #2B1F1A;
  --pl-card-bg: #FFFBF2;
  --pl-card-text: #2B1F1A;
  --pl-card-muted: #5d4c40;
  --pl-card-border: #2B1F1A;
  --pl-primary: #2F8F5B;
  --pl-primary-text: #FFFBF2;
  --pl-share-bg: #F5EFE2;
  --pl-radius-control: 12px;
  --pl-radius-card: 18px;
  --pl-focus: #2F8F5B;
  font-family: var(--pl-font);
  color: #2B1F1A;
  background: #F5EFE2;
}
body {
  background-color: #F5EFE2;
  background-image:
    repeating-linear-gradient(90deg, rgb(210 72 60 / .16) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(0deg, rgb(210 72 60 / .16) 0 14px, transparent 14px 28px);
}
.shell { padding-top: calc(62px + env(safe-area-inset-top)); }
#play-screen { padding-top: 4px; }
.level-row { background: #FFFBF2; border: 2px solid #2B1F1A; border-radius: 12px; padding: 4px 12px; }
.level-name { font-size: 17px; font-weight: 800; }
.move-count { color: #5d4c40; }
.instruction:empty, .message:empty { min-height: 0; margin: 4px 0; }
.board-shell { margin-top: 6px; border: 3px solid #2B1F1A; border-radius: 18px; background: #F5EFE2; box-shadow: 0 5px 0 rgb(43 31 26 / .85); }
button { border: 2px solid #2B1F1A; background: #FFFBF2; font-weight: 750; }
.primary-button { border-color: #2B1F1A; background: #2F8F5B; color: #FFFBF2; box-shadow: 0 4px 0 #2B1F1A; }
.message { color: #2B1F1A; font-weight: 650; text-align: center; }
.message.refused { color: #9b2d22; }
.result-card { border: 3px solid #2B1F1A; background: #FFFBF2; box-shadow: 0 5px 0 rgb(43 31 26 / .85); }
.result-title { color: #2B1F1A; font-weight: 850; }
.share-line { color: #5d4c40; }
.level-tile { border: 2px solid #2B1F1A; background: #FFFBF2; }
.level-tile.complete { border-color: #2F8F5B; background: #eef6ee; }
.map-heading h1 { color: #2B1F1A; }
#map-screen { background: rgb(245 239 226 / .94); border-radius: 18px; padding: 4px 8px 12px; }
.eyebrow { color: #9c6430; }
.hand-demo { width: 46px; height: 50px; margin: -8px 0 0 -10px; border-radius: 0; background: transparent; box-shadow: none; line-height: 0; }
.hand-demo.running { animation: mitten-press 1.6s ease-in-out infinite; }
@keyframes mitten-press { 0%, 100% { transform: translate(0, 14px); opacity: .55; } 45%, 60% { transform: translate(0, 0) scale(.92); opacity: 1; } }
.success-effect i { border-radius: 50%; background: #C98A45 !important; border: 2px solid #2B1F1A; width: 12px; height: 12px; }
button:focus-visible, a:focus-visible { outline-color: #2F8F5B; }
.move-count { visibility: visible; font-weight: 800; }
.result-stars { margin: 0 0 4px; text-align: center; font-size: 34px; line-height: 1; letter-spacing: 6px; -webkit-text-stroke: 1.5px #2B1F1A; }
.result-stars .on { color: #E0A93A; }
.result-stars .on.par { color: #2F8F5B; }
.result-stars .off { color: transparent; }
/* The result card waits for the last stamp to finish, then fades in. The share line goes only into Share. */
.result-card { transition: opacity .25s ease, transform .25s ease; }
.result-card.waiting { opacity: 0; transform: translateY(8px); pointer-events: none; }
.reduced-motion .result-card { transition: none; }
.share-line { display: none; }
.result-marks { font-size: 18px; margin: 4px 0 14px; }
.controls[hidden] { display: none; }
/* Cooling rack: every cookie you cut stays here. Only on screens tall enough to hold it without scrolling. */
.rack { display: block; width: 100%; height: auto; margin: 0 0 6px; }
@media (max-height: 699px) { .rack { display: none; } }

/* 2026-10-20 tin pass: the blue tin owns every surface. */
:root { --tin:#213E8A; --tin-dark:#172C66; --gold:#C9A44C; --paper:#F2ECDF; --ink:#1E1A17; --pencil:#4A4A48; --pl-font:Karla,system-ui,sans-serif; --pl-topbar-bg:#213E8A; --pl-topbar-text:#F2ECDF; --pl-control-text:#F2ECDF; --pl-control-bg:transparent; --pl-control-border:rgb(242 236 223 / .55); --pl-card-bg:#F2ECDF; --pl-card-text:#1E1A17; --pl-card-muted:#4A4A48; --pl-card-border:#C9A44C; --pl-primary:#C9A44C; --pl-primary-text:#1E1A17; --pl-overlay:rgb(23 44 102 / .83); --pl-shadow:rgb(10 20 55 / .5); --pl-share-bg:#F2ECDF; --pl-radius-control:6px; --pl-radius-card:3px; --pl-radius-picture:2px; --pl-focus:#C9A44C; font-family:Karla,system-ui,sans-serif; color:var(--paper); background:var(--tin); }
body { background:var(--tin); }.shell { width:min(100%,430px); padding:calc(62px + env(safe-area-inset-top)) 10px calc(20px + env(safe-area-inset-bottom)); } #play-screen { padding-top:4px; }
[data-pl="topbar"] { background:var(--tin); box-shadow:0 1px 0 rgb(242 236 223 / .24); }.pl-topbar__inner { width:min(100%,430px); padding:0 10px; }[data-pl="back"] { gap:7px; padding:5px 0; color:var(--paper); font:700 20px/1 Fraunces,Georgia,serif; }[data-pl="back"] svg { flex:0 0 auto; }.pl-topbar__actions { gap:2px; }.pl-topbar__actions button { color:var(--paper); border:1px solid rgb(242 236 223 / .42); border-radius:5px; min-width:44px; min-height:44px; padding:5px 7px; font:700 12px/1 Karla,sans-serif; }
.level-row { display:block; padding:0 5px; background:transparent; border:0; }.level-name { margin:0; color:var(--paper); font:700 21px/1.1 Fraunces,Georgia,serif; }.move-count { margin:3px 0 0; color:rgb(242 236 223 / .82); font:400 13px/1.2 Karla,sans-serif; }.instruction { min-height:1.4em; margin:5px 5px 7px; color:var(--paper); font:600 16px/1.25 Karla,sans-serif; }.instruction:empty,.message:empty { min-height:0; margin:0; }
.board-shell { margin:0; border:0; border-radius:2px; background:var(--paper); box-shadow:0 3px 0 var(--tin-dark),0 0 0 1px rgb(0 0 0 / .12); }.board-shell::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:1; border:1px solid rgb(30 26 23 / .08); }#board { position:relative; z-index:0; }.message { min-height:1.25em; margin:6px 5px 2px; color:var(--paper); font:600 14px/1.2 Karla,sans-serif; text-align:center; }.message.refused { color:#F2ECDF; }
button { border:1px solid rgb(242 236 223 / .58); border-radius:5px; color:var(--paper); background:transparent; font:700 14px Karla,sans-serif; }.controls { padding:7px 0 5px; gap:8px; }.controls button { min-width:100px; }.primary-button { border-color:var(--gold); color:var(--ink); background:var(--gold); box-shadow:0 3px 0 #8E7130; }.primary-button:active { box-shadow:0 1px 0 #8E7130; }button:focus-visible,a:focus-visible { outline-color:var(--gold); }
.rack { display:block; width:100%; height:auto; margin:0; border:0; }.result-card { margin:8px 0 12px; padding:0 0 14px; border:0; border-radius:0; background:transparent; box-shadow:none; text-align:center; }.result-tin { display:block; width:min(100%,340px); height:auto; margin:0 auto -6px; }.result-title { margin:0; color:var(--paper); font:700 25px/1.13 Fraunces,Georgia,serif; }.result-marks { margin:6px auto 13px; max-width:30ch; color:rgb(242 236 223 / .9); font:400 16px/1.3 Karla,sans-serif; }.result-stars,.share-line { display:none; }.result-actions { gap:8px; }.result-actions button { min-width:112px; }
#map-screen { margin-top:8px; padding:12px 8px; background:var(--paper); color:var(--ink); border-radius:2px; }.map-heading h1 { font-family:Fraunces,Georgia,serif; }.eyebrow { color:var(--pencil); }.level-tile { border:1px solid #BEB4A0; border-radius:2px; color:var(--ink); background:#FBF8F0; }.level-tile.complete { border-color:var(--gold); background:#F4EBD5; }.quiet-button { color:var(--ink); }.hand-demo { color:var(--gold); }.success-effect i { background:var(--gold) !important; border-radius:50%; }.result-card { transition:opacity .25s ease,transform .25s ease; }.result-card.waiting { opacity:0; transform:translateY(8px); pointer-events:none; }.reduced-motion .result-card { transition:none; }
@media (max-width:359px) { .shell { padding-right:8px; padding-left:8px; }.pl-topbar__inner { padding:0 8px; gap:3px; }[data-pl="back"] { gap:4px; font-size:17px; }[data-pl="back"] svg { width:25px; height:25px; }.pl-topbar__actions { gap:1px; }.pl-topbar__actions button { min-width:44px; width:44px; min-height:44px; padding:3px; font-size:10px; }.level-name { font-size:19px; }.instruction { font-size:15px; }.result-tin { width:280px; } }
@media (max-width:359px) and (max-height:600px) { .level-row { display:flex; align-items:baseline; gap:10px; }.level-name { font-size:17px; }.move-count { margin:0; font-size:12px; }.instruction { margin:2px 5px 4px; font-size:14px; } }

/* At the payoff the lid picture has the whole screen. */
#play-screen:has(#result-screen:not([hidden])) > .level-row,
#play-screen:has(#result-screen:not([hidden])) > .instruction,
#play-screen:has(#result-screen:not([hidden])) > .board-shell,
#play-screen:has(#result-screen:not([hidden])) > .message,
#play-screen:has(#result-screen:not([hidden])) > .controls,
#play-screen:has(#result-screen:not([hidden])) > .rack { display:none; }
