/* Digipup: lighter, cozier. Mint + cream + warm pastels; dark mode is a sleepy night version. */
:root {
  --bg: #c7ebd1; --bg2: #b6e0c2; --card: #fff6e3; --ink: #2a2433; --muted: #52495f; --line: #2a2433;
  --accent: #d6336c; --accent-ink: #ffffff; --peach: #ffcfa3; --pink: #ffa9bd; --butter: #ffe9a6;
  --link: #8a1d49; --link-hover: #d6336c; --focus: #2a2433; --shadow: rgba(42,36,51,.9);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14201c; --bg2: #1a2a24; --card: #213229; --ink: #f6ecd8; --muted: #b9c7bb; --line: #f6ecd8;
    --accent: #ff7da0; --accent-ink: #2a0d18; --peach: #5d4630; --pink: #5a3040; --butter: #5b5230;
    --link: #ffb3c8; --link-hover: #ffffff; --focus: #ffe9a6; --shadow: rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
.site-header { padding: .9rem 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Silkscreen", monospace; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; }
.site-header nav { display: flex; gap: 1.1rem; font-family: "Silkscreen", monospace; font-size: .8rem; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--accent); }
@media (max-width: 520px) { .site-header nav .opt { display: none; } }

.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .sub { display: block; font-size: .55em; margin-top: .5em; color: var(--accent); }
.lede { font-size: 1.2rem; max-width: 34ch; }
.stage { position: relative; background: var(--butter); border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--shadow); padding: 2rem 1rem 1.2rem; display: grid; place-items: center; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: var(--peach); border-top: 3px solid var(--line); }
.stage .pup-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; margin-bottom: 1.2rem; -webkit-tap-highlight-color: transparent; }
.pup { --u: 10px; width: calc(var(--u) * 16); height: calc(var(--u) * 16); background: url("/assets/sprites/puppy-breathing-16x.png") 0 0 / calc(var(--u) * 32) calc(var(--u) * 16) no-repeat; image-rendering: pixelated; transform-origin: 50% 100%; animation: breathe 1.6s steps(1) infinite, bob 1.6s steps(2) infinite; }
.pup.petted { background-image: url("/assets/sprites/puppy-closed-eyes-1x.png"); background-size: calc(var(--u) * 16) calc(var(--u) * 16); animation: hop .5s steps(4) 1; }
@media (min-width: 400px) { .pup { --u: 12px; } }
@keyframes breathe { 0% { background-position: 0 0; } 50% { background-position: calc(var(--u) * -16) 0; } }
@keyframes bob { 0%, 50% { transform: scale(1, 1); } 25%, 75% { transform: scale(1.04, .96); } }
@keyframes hop { 0% { transform: scale(1.1, .9); } 25% { transform: translateY(-12px) scale(.95, 1.08); } 50% { transform: translateY(-16px); } 75% { transform: translateY(-4px); } 100% { transform: none; } }
.heart { position: absolute; top: 18%; right: 28%; width: 28px; height: 24px; background: url("/assets/sprites/heart-full-1x.png") 0 0 / 28px 24px no-repeat; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.heart.on { animation: rise 1s steps(8) 1; }
@keyframes rise { 0% { opacity: 1; transform: translateY(20px); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
.stage .hint { position: relative; margin: 0; font-family: "VT323", monospace; font-size: 1.3rem; color: var(--ink); line-height: 1; }
.stage .hint { background: var(--card); border: 2px solid var(--line); padding: .15rem .6rem; }

form.waitlist { margin-top: 1.4rem; max-width: 30rem; }
form.waitlist label { display: block; font-family: "Silkscreen", monospace; font-size: .85rem; margin-bottom: .4rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row input[type=email] { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1.05rem; padding: .8rem .9rem; border: 3px solid var(--line); background: var(--card); color: var(--ink); border-radius: 0; }
.row input[type=email]::placeholder { color: var(--muted); opacity: 1; }
.btn { font-family: "Silkscreen", monospace; font-weight: 700; font-size: .95rem; padding: .85rem 1.2rem; background: var(--accent); color: var(--accent-ink); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); color: var(--accent-ink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-slot { margin-top: .8rem; min-height: 0; }
.fineprint { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
.msg { margin: .9rem 0 0; padding: .7rem .9rem; border: 3px solid var(--line); background: var(--card); font-weight: 600; }
.msg[hidden] { display: none; }
.msg.ok { background: var(--butter); }
.msg.err { background: var(--pink); }

section { padding: clamp(2rem, 6vw, 3.5rem) 0; }
section.alt { background: var(--bg2); border-block: 3px solid var(--line); }
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding: 0; list-style: none; counter-reset: s; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); padding: 1.3rem; }
.steps .card { position: relative; counter-increment: s; }
.steps .card::before { content: counter(s); position: absolute; top: -1rem; left: 1rem; font-family: "Silkscreen", monospace; font-weight: 700; background: var(--accent); color: var(--accent-ink); width: 2rem; height: 2rem; display: grid; place-items: center; border: 3px solid var(--line); }
.steps .art { height: 80px; display: flex; align-items: flex-end; gap: .4rem; margin-bottom: .6rem; }
.sp { image-rendering: pixelated; display: block; height: auto; }
.u4 { width: 64px; } .u5 { width: 80px; } .u6 { width: 96px; } .u3 { width: 48px; }
.w18-4 { width: 72px; } .w18-5 { width: 90px; } .w18-6 { width: 108px; }
.u1h { width: 28px; }
.stakes { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 1.5rem 0; }
@media (min-width: 560px) { .stakes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stakes { grid-template-columns: repeat(6, 1fr); } }
.stakes li { background: var(--card); border: 3px solid var(--line); padding: .9rem .4rem .7rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .5rem; box-shadow: 4px 4px 0 var(--shadow); }
.stakes li .cap { font-family: "Silkscreen", monospace; font-size: .72rem; line-height: 1.2; }
.stakes li.end { background: #2a2433; color: #f6ecd8; }
.stakes .art { height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.stakes .stage-idx { font-family: "VT323", monospace; font-size: 1.1rem; color: var(--muted); line-height: 1; }
.stakes li.end .stage-idx { color: #b9c7bb; }
.wink { font-size: 1.15rem; }
.wink .skull { font-size: 1.4em; }
.features { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features h3 { margin-bottom: .4em; }
.features .card p { margin: 0; }
.six { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.six .sp { width: 48px; }
.shots { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.4rem; margin: 1.2rem 0 0; list-style: none; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: min(62vw, 240px); scroll-snap-align: center; margin: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2868; border: 3px solid var(--line); border-radius: 22px; box-shadow: 6px 6px 0 var(--shadow); background: var(--card); }
.shots figcaption { font-family: "VT323", monospace; font-size: 1.25rem; text-align: center; margin-top: .7rem; line-height: 1.1; }
.faq details { background: var(--card); border: 3px solid var(--line); margin-bottom: .8rem; box-shadow: 4px 4px 0 var(--shadow); }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-family: "Silkscreen", monospace; font-weight: 700; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1rem 1rem; margin: 0; }
.cta-end { text-align: center; }
.cta-end .pupsleep { display: block; margin: 0 auto 1rem; width: 96px; }
.legal-head { padding: 2rem 0 .5rem; }
.updated { color: var(--muted); font-size: .95rem; }
.notfound { text-align: center; padding: 3rem 0; }
.notfound .big { font-family: "Silkscreen", monospace; font-size: clamp(4rem, 22vw, 9rem); line-height: 1; margin: 0; }
.notfound .ghost { width: 128px; margin: 1rem auto; }
.thanks { text-align: center; padding: 3rem 0; }
.thanks .sp { margin: 0 auto 1rem; width: 128px; }
