:root { --cream: #fff4df; --paper: #fffaf0; --line: #b97a3c; --berry: #8f2219; --red: #e2493b; --ink: #5a3a2a; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 16px/1.8 "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--berry); font-weight: 700; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.hero { max-width: 560px; aspect-ratio: 3 / 4; margin: 0 auto; padding: 20px 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; background: #ffe3b0 url(images/parfait-cafe.webp) center / cover; text-align: center; }
@media (min-width: 600px) { .hero { border-radius: 0 0 28px 28px; } }
.hero img { width: min(420px, 86vw); display: block; margin: 0 auto 12px; }
.lead { display: inline-block; margin: 0; padding: 12px 20px; border-radius: 18px; background: rgb(255 250 240 / .94); border: 2px solid var(--line); border-bottom-width: 5px; font-weight: 800; }
.soon { display: block; margin-top: 4px; color: var(--berry); }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; }
h1, h2 { color: var(--berry); line-height: 1.4; text-wrap: balance; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; margin: 2em 0 .4em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 24px 0; padding: 0; list-style: none; }
.shots img { display: block; border-radius: 16px; border: 2px solid var(--line); }
.shots strong { display: block; margin-top: 8px; color: var(--berry); }
.draft { padding: 10px 14px; border: 2px dashed var(--red); border-radius: 12px; background: #fff; font-weight: 700; }
form { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); border-bottom-width: 5px; }
label { font-weight: 800; }
#code { width: 100%; min-height: 48px; padding: 8px 12px; font: 700 16px/1.4 ui-monospace, monospace; border: 2px solid var(--line); border-radius: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
#check { width: 22px; height: 22px; flex: none; margin-top: 4px; }
button { min-height: 48px; border: 2px solid var(--berry); border-bottom-width: 5px; border-radius: 14px; background: var(--red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
#result:empty { display: none; }
#result { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--line); font-weight: 800; }
#result[data-state="error"] { border-color: var(--red); } #result[data-state="ok"] { border-color: #3f8a4d; }
footer { padding: 24px 16px 40px; text-align: center; font-size: .85rem; }
