:root { color: #14261f; background: #e9eee7; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: radial-gradient(circle at 86% 9%, #d5c081 0 3%, transparent 24%), linear-gradient(150deg, #f7f5ec, #dfe9e1); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: max(26px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; }
.brand { margin: 0 0 18px 4px; display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .12em; font-weight: 800; color: #395146; }
.brand-mark { color: #b47a07; font-size: 1.75rem; line-height: .5; }
.card { padding: 30px 24px 24px; background: rgba(255,255,255,.94); border: 1px solid rgba(20,38,31,.1); border-radius: 28px; box-shadow: 0 20px 60px rgba(37,63,50,.18); }
.hidden { display: none; }
.eyebrow { margin: 0 0 8px; color: #8c6515; font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
h1 { margin: 0 0 8px; font-size: clamp(1.65rem, 7vw, 2.1rem); letter-spacing: -.04em; line-height: 1.25; }
.intro, .hint, .qr-caption, .small-note, .caution { color: #5c685f; line-height: 1.6; }
.intro { margin: 0 0 28px; }
form { display: grid; gap: 10px; }
label { font-weight: 750; font-size: .92rem; }
input { width: 100%; border: 2px solid #cad5ce; border-radius: 14px; padding: 14px; min-height: 54px; background: #fff; color: #14261f; font-size: 1.25rem; font-weight: 750; outline: none; }
input:focus { border-color: #3d715c; box-shadow: 0 0 0 4px rgba(61,113,92,.15); }
.amount-field { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border: 2px solid #cad5ce; border-radius: 16px; padding: 0 15px; }
.amount-field:focus-within { border-color: #3d715c; box-shadow: 0 0 0 4px rgba(61,113,92,.15); }
.amount-field input { border: 0; border-radius: 0; padding-inline: 4px; font-size: 1.75rem; text-align: right; box-shadow: none !important; }
.amount-field span { color: #55655b; font-weight: 800; }
.hint { margin: 0; font-size: .86rem; }
.error { min-height: 1.35em; margin: 0; color: #b42318; font-weight: 700; font-size: .9rem; }
.primary, .secondary { width: 100%; min-height: 58px; margin-top: 12px; border-radius: 16px; border: 0; padding: 14px 18px; font-weight: 800; font-size: 1.04rem; }
.primary { color: #fff; background: #1f5d47; box-shadow: 0 8px 16px rgba(31,93,71,.25); }
.primary:active { background: #164434; transform: translateY(1px); }
.primary:disabled { cursor: wait; opacity: .7; }
.secondary { margin-top: 0; color: #1f5d47; background: #e5efe9; }
.text-button { margin: 20px auto 0; border: 0; color: #53655a; background: transparent; text-decoration: underline; font-size: .86rem; }
.confirm-amount { display: grid; gap: 6px; margin: 28px 0 20px; padding: 24px; background: #f1f5f0; border-radius: 20px; text-align: center; }
.confirm-amount strong { color: #184f3d; font-size: clamp(2.2rem, 12vw, 3.6rem); letter-spacing: -.06em; }
.confirm-amount span { color: #59675e; font-size: .9rem; font-weight: 700; }
.caution { margin: 0; font-size: .9rem; }
.actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 12px; }
.qr-box { display: grid; place-items: center; min-height: 290px; margin: 24px auto 18px; padding: 18px; background: #fff; border: 1px solid #d9ded7; border-radius: 20px; }
.qr-box canvas, .qr-box img { display: block; width: min(100%, 270px) !important; height: auto !important; image-rendering: pixelated; }
.qr-caption { margin: 0; text-align: center; font-weight: 650; }
.draft-name { margin: 14px 0 0; text-align: center; color: #7a877e; font-size: .85rem; }
.small-note { margin: 18px 0 0; text-align: center; font-size: .8rem; }
#next-button { margin-top: 22px; }
@media (max-width: 374px) { .card { padding: 26px 18px 20px; border-radius: 22px; } .actions { grid-template-columns: 1fr; } .qr-box { min-height: 250px; } }
