/* ORDER GACHA - red x white, pop, mobile-first, one-hand friendly */
:root { --red:#e60012; --red-dark:#b3000d; --ink:#222; --bg:#fff; --soft:#fff5f5; --line:#f0d9d9; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif; color:var(--ink); background:var(--bg); padding-bottom:110px; }
.app-header { background:var(--red); color:#fff; padding:18px 16px 12px; }
.app-header h1 { margin:0; font-size:28px; letter-spacing:.04em; }
.tagline { margin:4px 0 0; font-size:13px; opacity:.92; }
.candidate-banner { background:#fff3cd; border-bottom:2px solid #e6c34a; padding:10px 14px; font-size:13px; line-height:1.6; }
main { padding:12px; display:grid; gap:12px; max-width:720px; margin:0 auto; }
.card { border:1px solid var(--line); border-radius:14px; padding:14px; background:#fff; }
.card h2 { margin:0 0 10px; font-size:18px; }
.card h3 { margin:14px 0 6px; font-size:15px; }
label { display:block; font-size:14px; margin:8px 0; }
input[type="number"], input[type="text"], input[type="search"], select, textarea { width:100%; font-size:16px; padding:10px; border:1px solid #ccc; border-radius:10px; margin-top:4px; }
input[type="range"] { width:100%; }
.toggle { display:flex; gap:8px; align-items:center; font-size:15px; }
.toggle input { width:20px; height:20px; }
button { font-size:16px; border-radius:999px; border:1px solid var(--red); padding:10px 18px; background:#fff; color:var(--red-dark); cursor:pointer; }
button.primary { background:var(--red); color:#fff; font-weight:700; }
button.big { width:100%; font-size:19px; padding:16px; margin:10px 0; }
button.secondary { background:var(--soft); }
button.danger { border-color:#888; color:#555; width:100%; margin-top:8px; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.file-btn { border:1px solid var(--red); color:var(--red-dark); background:var(--soft); border-radius:999px; padding:10px 18px; font-size:16px; cursor:pointer; }
.status { font-size:13px; color:#555; line-height:1.6; }
.status .stale { color:#b3000d; font-weight:700; }
.menu-list, .result-list { list-style:none; margin:8px 0; padding:0; }
.menu-list li, .result-list li { display:flex; justify-content:space-between; gap:8px; padding:7px 4px; border-bottom:1px dashed var(--line); font-size:15px; }
.menu-list .soldout { color:#999; text-decoration:line-through; }
.total-line { font-size:22px; font-weight:800; }
.total-line .remaining { font-size:14px; font-weight:400; color:#555; }
#qr-video { width:100%; border-radius:12px; margin-top:10px; }
code { word-break:break-all; font-size:12px; }
.draw-bar { position:fixed; left:0; right:0; bottom:0; background:#fff; border-top:2px solid var(--red); padding:10px 12px calc(10px + env(safe-area-inset-bottom)); display:flex; gap:8px; }
.draw-bar .draw { flex:1; background:var(--red); color:#fff; font-size:20px; font-weight:800; padding:16px; }
.draw-bar .draw-sub { font-size:13px; }
textarea { font-size:13px; line-height:1.5; }
