
*{box-sizing:border-box}html,body{margin:0;background:#fff;color:#111;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif}html{-webkit-text-size-adjust:100%}body{font-size:1.125rem;line-height:1.35}button{font:inherit}[hidden]{display:none!important}
.app{width:100%;max-width:640px;min-height:100vh;min-height:100svh;min-height:100dvh;margin-inline:auto;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:grid;align-content:start;gap:6px;overflow-wrap:anywhere}
p,h1,h2,dl,dd,ol{margin:0}.brand{font-size:1rem;font-weight:800;line-height:1.4;letter-spacing:.03em}.ticket{min-width:0;border:2px solid #E72521;border-radius:14px;padding:10px;display:grid;gap:8px}
h1{font-size:1rem;line-height:1.25}h1 span{display:block;font-weight:600}h1 strong{display:block;font-size:3.5rem;line-height:1.1;font-weight:850;letter-spacing:.01em;font-variant-numeric:tabular-nums}#notice{padding-block:12px;font-weight:700}
#receipt{min-width:0;display:grid;gap:8px}.state-panel{--state:#E72521;--step:#b51b18;background:#f5f5f5;border-radius:10px;padding:8px;display:grid;gap:6px;text-align:center}.state-panel[data-state="processing"]{--state:#914000;--step:#914000}.state-panel[data-state="completed"]{--state:#176338;--step:#176338}
h2{font-size:.9375rem;line-height:1.2;font-weight:600}.state-heading{display:flex;justify-content:center;align-items:center;gap:8px;color:var(--state);min-width:0}.state-heading svg{width:2rem;height:2rem;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}#status{font-size:2.25rem;line-height:1.2;font-weight:850;min-width:0}#message{font-size:1.125rem;line-height:1.35}
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-size:.9375rem;line-height:1.4}.steps li{position:relative;border-bottom:2px solid #b0b0b0;padding-block:2px;color:#333}.steps li[aria-current="step"]{border:2px solid var(--step);border-radius:5px;padding-block:0;font-weight:800;color:var(--step);background:white}.steps li[aria-current="step"]::before{content:'● ';font-size:.75em}
.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.details>div{min-width:0;padding:6px 8px;background:#f5f5f5;border-radius:8px}.details dt{font-size:.9375rem;line-height:1.3;font-weight:650;margin-bottom:3px}.details dd{font-size:1.125rem;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:700}#quantity{white-space:nowrap;font-weight:500}#synced{font-size:1rem;font-weight:600;font-variant-numeric:tabular-nums}#pickupCell.wide{grid-column:1/-1}#pickupCell.wide+#syncedCell{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}#pickupCell.wide+#syncedCell dt{margin:0}
.refresh-bar{background:#eef6fc;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;min-width:0;font-size:.9375rem;line-height:1.35}.refresh-bar>div{min-width:0}.refresh-bar button{min-width:64px;min-height:44px;border:1px solid #57758e;border-radius:7px;background:#fff;color:#15394e;font-size:1.125rem;font-weight:750;padding:6px 12px;flex-shrink:0;cursor:pointer}.refresh-bar button:focus-visible{outline:3px solid #111;outline-offset:2px}.refresh-bar button:disabled{color:#3c4d59;cursor:wait}#error{font-weight:700;color:#92201c;white-space:pre-line}#checked{font-size:.875rem;margin-top:2px}
#number{line-height:1.2}#number.unavailable{font-size:2rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:560px){.ticket{padding:14px;gap:10px}#receipt,.details{gap:10px}.state-panel{padding:12px}.details>div{padding:10px}.details dd{font-size:1.25rem}}
@media(max-width:22rem){.details{grid-template-columns:minmax(0,1fr)}h1 strong{font-size:3.25rem}.refresh-bar{flex-wrap:wrap}.refresh-bar button{margin-left:auto}}
