:root{
  --bg:#f4f5f8;--ink:#1f2635;--muted:#687287;--line:#e3e6ee;--blue:#3a5fd9;--blue-d:#2b4cc0;--soft:#edf1ff;
  --green:#21806a;--green-soft:#e7f5ef;--amber:#a8670f;--amber-soft:#fff5e3;--red:#b33939;--red-soft:#fff0f0;
  --radius:16px;--shadow:0 1px 2px #1a24400a,0 4px 16px #1a24400a;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 "Noto Sans JP",-apple-system,BlinkMacSystemFont,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:3px solid #9db2ff;outline-offset:2px}
input,select,textarea{width:100%;border:1px solid #d7dce7;border-radius:10px;background:#fff;padding:10px 12px;min-height:44px;color:var(--ink);font-size:16px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #e1e8ff}
label{display:block;font-weight:700;font-size:13px;margin:14px 0 6px}
h1,h2,h3,p{margin:0}
h1{font-size:26px;letter-spacing:-.03em;line-height:1.4}
h2{font-size:16px}
.muted,small{color:var(--muted)}
.num{font-family:Inter,"Noto Sans JP",sans-serif;font-variant-numeric:tabular-nums}

/* layout */
.app{max-width:1440px;margin:auto;display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;height:100vh;overflow:auto}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.02em}
.logo-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;font-family:Inter;font-size:15px;background:linear-gradient(135deg,#4d72ef,#2f4fc4);box-shadow:0 4px 12px #3a5fd940}
.logo-sub{font-size:10px;letter-spacing:.16em;color:var(--muted);margin:2px 0 0 44px}
.side-label{font-size:11px;letter-spacing:.1em;color:#8a93a6;margin:0 0 8px 6px}
.event-btn{display:block;width:100%;text-align:left;border:0;background:none;border-radius:12px;padding:10px 12px;margin-bottom:4px;color:var(--muted);transition:background .15s}
.event-btn:hover{background:#f6f8fc}
.event-btn strong{display:block;color:var(--ink);font-size:13px}
.event-btn small{display:block;font-size:10px;margin-top:2px}
.event-btn.active{background:var(--soft);color:var(--blue);box-shadow:inset 3px 0 var(--blue)}
.event-btn.active strong{color:var(--blue)}
.event-btn.sub{padding-left:22px;font-size:12px}
.group-btn{display:block;width:100%;text-align:left;border:0;background:none;border-radius:10px;padding:8px 12px;margin-bottom:2px;font-weight:700;font-size:13px;color:var(--ink);cursor:pointer;transition:background .15s}
.group-btn:hover{background:#f6f8fc}
.group-btn.active{color:var(--blue);background:var(--soft)}
.main{padding:26px 38px 70px;min-width:0}
.topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;font-size:12px;color:var(--muted)}
.flex{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.grow{flex:1}
.mobile-only{display:none}

/* parts */
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:9px 14px;min-height:40px;font-weight:700;white-space:nowrap;transition:background .15s,transform .05s,box-shadow .15s}
.btn:hover{background:#f7f9ff}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 8px #3a5fd933}
.btn.primary:hover{background:var(--blue-d)}
.btn.quiet{background:transparent;border-color:transparent;color:var(--muted)}
.btn.quiet:hover{background:#eef1f7}
.btn.danger{color:var(--red)}
.btn.sm{min-height:32px;padding:5px 10px;font-size:12px}
.btn.full{width:100%}
.badge{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:3px 10px;background:var(--green-soft);color:var(--green);white-space:nowrap}
.badge.gray{background:#edf0f4;color:#6a7388}
.badge.amber{background:var(--amber-soft);color:var(--amber)}
.badge.blue{background:var(--soft);color:var(--blue)}
.pill{display:inline-block;font-size:11px;background:#f2f4f9;border:1px solid var(--line);border-radius:6px;padding:2px 8px;margin:0 4px 4px 0;white-space:nowrap}
.headline{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.eyebrow{font-size:12px;color:var(--blue);font-weight:700;margin-bottom:4px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 22px}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;box-shadow:var(--shadow)}
.stat-label{font-size:12px;color:var(--muted)}
.stat-value{font-family:Inter,"Noto Sans JP";font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1.35}
.stat-value small{font-size:12px;font-weight:500;margin-left:3px}
.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto;scrollbar-width:none}
.tab{border:0;background:none;padding:0 2px 12px;color:var(--muted);font-weight:700;white-space:nowrap;border-bottom:3px solid transparent;transition:color .15s}
.tab:hover{color:var(--ink)}
.tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.grid2{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(320px,1.2fr);gap:20px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);animation:rise .25s ease}
@keyframes rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.card+.card{margin-top:18px}
.card-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.card-head p{font-size:12px;color:var(--muted);margin-top:2px}
.card-body{padding:22px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.big-input{font-family:Inter;font-size:30px;font-weight:800;min-height:72px;text-align:center;letter-spacing:.02em}
.help{font-size:12px;color:var(--muted);margin:12px 0 18px;line-height:1.8}
.me-chip{display:flex;align-items:center;gap:10px;background:var(--soft);border-radius:12px;padding:10px 14px;color:var(--blue);font-weight:700}
.listrow{display:flex;align-items:center;gap:12px;padding:13px 22px;border-bottom:1px solid #f0f2f6}
.listrow:last-child{border-bottom:0}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef1f8;color:#6f7b96;font-size:12px;font-weight:700;flex-shrink:0}
.avatar.leader{background:#fde9c8;color:#9a5c06}
.avatar.member{background:#e3e9ff;color:var(--blue)}
.empty{padding:46px 20px;text-align:center;color:var(--muted)}
.empty strong{display:block;color:var(--ink);margin-bottom:4px}
.note{font-size:12px;color:var(--muted);padding:13px 22px;background:#fafbfd;border-top:1px solid #f0f2f6}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;text-align:left}
th{font-size:11px;font-weight:600;color:var(--muted);background:#fafbfd;padding:11px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:12px 16px;border-bottom:1px solid #f0f2f6;font-size:13px;white-space:nowrap;vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr{transition:background .12s}
tbody tr:hover{background:#fafbff}
td.r,th.r{text-align:right}
td input,td select{min-height:34px;padding:5px 8px;font-size:13px;width:auto;max-width:110px}
.ticket{font-family:Inter;font-size:22px;font-weight:800;letter-spacing:-.02em}
.ticket::before{content:'#';font-size:12px;color:#a2abbd;font-weight:500;margin-right:3px}
tr.used .ticket{color:var(--blue)}
tr.unused{color:#8a93a6}
.assign-btn{border:1px dashed #cfd7ea;background:#fff;color:var(--blue);border-radius:8px;min-height:34px;padding:5px 10px;min-width:120px;text-align:left;font-weight:700}
.assign-btn.filled{border-style:solid;border-color:#dde5fb;background:#f3f6ff}
.assign-btn .auto{font-size:10px;color:var(--muted);font-weight:500;margin-left:6px}
.segments{display:inline-flex;background:#e8ecf3;border-radius:10px;padding:3px;gap:2px}
.segments button{border:0;background:none;color:var(--muted);font-weight:700;padding:6px 20px;border-radius:8px}
.segments button.active{background:#fff;color:var(--blue);box-shadow:0 1px 4px #1a254214}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.queue-row.next{background:linear-gradient(90deg,#eef2ff,#fff 70%)}
.queue-row.next .avatar{background:var(--blue);color:#fff}
.queue-row.done{opacity:.55}
.qno{font-family:Inter;font-weight:800;width:32px;color:#a2abbd;text-align:center}
.money{font-family:Inter;font-variant-numeric:tabular-nums;font-weight:700}
.money.big{font-size:16px}
.good{color:var(--green)}.warn{color:var(--amber)}
.error{background:var(--red-soft);color:var(--red);border:1px solid #f3d3d3;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:13px}
.banner{background:var(--amber-soft);border:1px solid #f0dcaf;color:#7d5a17;border-radius:12px;padding:10px 14px;font-size:12px;margin-bottom:16px}
.url-box{display:flex;gap:6px}
.url-box input{font-size:12px;min-height:34px;background:#f7f8fb}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#222b3f;color:#fff;border-radius:12px;padding:12px 20px;font-size:13px;box-shadow:0 8px 30px #0003;z-index:100;animation:rise .2s}
.overlay{position:fixed;inset:0;background:#141e3a66;backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px;z-index:50;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.modal{background:#fff;border-radius:18px;width:min(100%,520px);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 24px 80px #0003;animation:rise .2s}
.modal-actions{display:flex;gap:8px;margin-top:22px}
.modal-actions .primary{flex:1}
.check{display:flex;align-items:center;gap:8px;font-weight:700;margin:14px 0 4px}
.check input{width:auto;min-height:auto;transform:scale(1.2)}
.loading{padding:120px 20px;text-align:center;color:var(--muted)}
.footer{margin-top:24px;font-size:11px;color:#8b94a6;display:flex;justify-content:space-between}
[hidden]{display:none!important}
.listrow{flex-wrap:wrap}
.row-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-left:auto}
.row-actions .inline{display:flex;align-items:center;gap:4px;margin:0 6px 0 0;font-size:11px;color:var(--muted);font-weight:600}
.row-actions .inline input{width:64px;min-height:32px;padding:4px 6px;font-size:13px}
.pill.order{background:var(--soft);border-color:#d9e2ff;color:var(--blue);font-weight:700}
.pill.order.area{background:var(--amber-soft);border-color:#f0dcaf;color:var(--amber)}
.pill.order.goods{background:#f2f4f9;border-color:var(--line);color:var(--ink)}
button.pill{font:inherit;font-size:11px}
.order-line{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #f0f2f6}
.order-line input{width:64px;text-align:center;min-height:36px;font-family:Inter;font-weight:700}
.order-total{display:flex;justify-content:flex-end;align-items:baseline;gap:10px;margin-top:14px;color:var(--muted)}
.notice-body{white-space:pre-wrap;font-size:14px;line-height:1.9}
.notice-body a{color:var(--blue);word-break:break-all}
.slot-card .slot-hero{display:flex;align-items:center;gap:28px;padding:18px 22px;background:linear-gradient(120deg,#eef2ff,#fff 75%);border-bottom:1px solid var(--line)}
.slot-card.bought .slot-hero{background:linear-gradient(120deg,#e9f0ff,#fff 75%)}
.slot-card.collected .slot-hero{background:linear-gradient(120deg,var(--green-soft),#fff 75%)}
.slot-no{font-family:Inter;font-size:44px;font-weight:800;letter-spacing:-.04em;line-height:1.1;color:var(--blue)}
.slot-time{font-family:Inter;font-size:26px;font-weight:800;line-height:1.3}
.script{background:#fffbf0;border:1px solid #f3e3b5;border-radius:12px;padding:12px 14px}
.script p{font-weight:700;margin-top:2px}
tr.group td{background:#f6f8fc;font-weight:700;font-size:12px;color:var(--blue);padding:8px 16px}
tr.slot-row.collected{opacity:.6}
.badge-btn{border:0;cursor:pointer;font:inherit;font-size:11px;font-weight:700}
.badge-btn:hover{filter:brightness(.95)}

@media(max-width:1020px){
  .app{grid-template-columns:200px 1fr}.main{padding:22px}.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .app{display:block}.sidebar{display:none}.mobile-only{display:block}.main{padding:16px 14px 50px}
  h1{font-size:21px}.stats{gap:8px;margin:14px 0 18px}.stat{padding:10px 12px}.stat-value{font-size:22px}
  .card-body{padding:18px}.card-head{padding:15px 18px}.listrow{padding:12px 16px}
  th,td{padding:10px 12px}.row3{grid-template-columns:1fr 1fr}.desktop-only{display:none}
}
.open-btns{display:grid;gap:8px;margin-top:12px}
.open-btns:empty{display:none}
.open-btn{display:block;text-align:center;min-height:50px;font-size:15px;padding:13px;text-decoration:none;background:var(--soft);border-color:#d9e2ff;color:var(--blue)}
.open-btn.pay{background:#fff4f2;border-color:#f6d2cc;color:#b4392a}
.open-cell a,.open-cell button{text-decoration:none}
a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
a.open-btn{display:flex}
.viewer{background:#0d1222ee;padding:12px}
.viewer-box{width:min(100%,560px);max-height:96vh;display:flex;flex-direction:column}
.viewer-box img{width:100%;max-height:calc(96vh - 50px);object-fit:contain;background:#fff;border-radius:12px}
.self-upload{margin-top:12px;font-size:13px;color:var(--muted)}
.self-upload summary{cursor:pointer;padding:4px 0}
.file-btn{font-size:12px;font-weight:600}
.file-btn input{font-size:12px;min-height:auto;padding:6px}
.add-self{border-style:dashed;color:var(--blue);background:#fff;margin-bottom:16px;min-height:46px}
button.pill-edit{cursor:pointer;font-weight:700}
button.pill-edit:hover{background:var(--soft)}

/* ---------- タップ抽選（ミニゲーム） ---------- */
#game-root { display: none; }
#game-root.show {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; padding: 20px;
  background: radial-gradient(circle at 30% 20%, #ff7aa8 0%, #8a6cff 55%, #3b2a8f 100%);
  color: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
#game-root.tap { cursor: pointer; }
.g-card { width: min(420px, 100%); text-align: center; }
.g-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; }
.g-lead { font-size: 14px; line-height: 1.7; opacity: .95; margin-top: 12px; }
.g-sub { font-size: 13px; opacity: .9; }
.g-count { font: 800 120px/1 Inter, sans-serif; text-shadow: 0 8px 30px rgba(0,0,0,.25); animation: g-pulse 1s infinite; }
.g-taps { font: 800 96px/1 Inter, sans-serif; margin-top: 18px; text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.g-taps.bump { animation: g-bump .12s ease-out; }
.g-power { display: inline-block; margin: 14px 0 6px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 700; }
.g-hint { margin-top: 18px; font-size: 12px; opacity: .8; }
.g-timer { height: 10px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; margin-bottom: 8px; }
.g-timer > div { height: 100%; background: #fff; border-radius: 99px; transition: width .1s linear; }
.g-rivals { list-style: none; padding: 0; margin: 14px auto 0; max-width: 260px; font-size: 13px; text-align: left; counter-reset: r; }
.g-rivals li { display: flex; justify-content: space-between; padding: 4px 10px; border-radius: 8px; counter-increment: r; }
.g-rivals li::before { content: counter(r) "."; width: 22px; opacity: .7; }
.g-rivals li span { flex: 1; }
.g-rivals li.me { background: rgba(255,255,255,.25); font-weight: 700; }
.g-result { margin: 16px 0 10px; display: grid; gap: 10px; }
.g-num { font: 800 72px/1.1 Inter, sans-serif; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.18); }
.g-num.rolling { opacity: .7; filter: blur(.5px); }
.g-num.pop { background: #fff; color: #6b4cf0; animation: g-pop .5s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.g-none { font-size: 18px; font-weight: 700; padding: 20px; }
.g-fx { position: fixed; pointer-events: none; font: 800 22px Inter, sans-serif; color: #fff; transform: translate(-50%, -50%); animation: g-float .6s ease-out forwards; }
.g-board { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,122,168,.12), rgba(138,108,255,.12)); }
.g-board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; margin-top: 8px; font-size: 13px; }
@keyframes g-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes g-bump { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes g-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes g-float { to { transform: translate(-50%, -140%); opacity: 0; } }

/* 一括操作バー */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 22px 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,122,168,.14), rgba(138,108,255,.14)); position: sticky; top: 8px; z-index: 5; }
.bulk-bar strong { margin-right: 6px; }

/* ---------- 🍓 いちごソーダ ---------- */
#game-root.g-soda { background: radial-gradient(circle at 50% 10%, #ffd1e1 0%, #ff6f9f 45%, #d6336c 80%, #8f1d4a 100%); }
.soda-wrap { display: grid; place-items: center; margin: 10px 0 4px; }
.soda-bottle { position: relative; width: 96px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.soda-bottle.shake { animation: soda-shake .18s ease-in-out; }
.soda-cap { width: 34px; height: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#fff, #ffc2d6); }
.soda-neck { width: 30px; height: 24px; background: rgba(255,255,255,.45); border-left: 2px solid rgba(255,255,255,.8); border-right: 2px solid rgba(255,255,255,.8); }
.soda-body { position: relative; width: 96px; height: 150px; border-radius: 22px 22px 18px 18px; background: rgba(255,255,255,.28); border: 2px solid rgba(255,255,255,.85); overflow: hidden; }
.soda-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(180deg, #ff9dbd, #ff3d7f); transition: height .15s ease-out; }
.soda-liquid::before { content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 10px 6px, #fff 5px, transparent 6px) repeat-x; background-size: 18px 12px; opacity: .85; }
.soda-bubbles i { position: absolute; bottom: 0; border-radius: 50%; background: rgba(255,255,255,.85); animation: soda-bubble 1.2s linear infinite; }
.soda-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 11px/1.25 Inter, sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); letter-spacing: .08em; }
.soda-spray { position: relative; height: var(--h, 30vh); margin: 0 auto 6px; width: 140px; }
.soda-spray i { position: absolute; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.9); animation: soda-spray 1s ease-out infinite; }
.g-soda .g-fx { font-size: 26px; }
@keyframes soda-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg) translateY(-4px); } 75% { transform: rotate(14deg) translateY(-4px); } }
@keyframes soda-bubble { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-140px); opacity: 0; } }
@keyframes soda-spray { 0% { transform: translateY(0) scale(.6); opacity: 1; } 100% { transform: translateY(calc(var(--h, 30vh) * -1)) scale(1.4); opacity: 0; } }

/* 💥 ダイナミック噴射 */
.sp-card { overflow: visible; animation: sp-quake .5s cubic-bezier(.36,.07,.19,.97) .35s 3 both; }
.sp-title { animation: sp-pop .5s cubic-bezier(.2,1.6,.4,1) .3s both; font-size: 30px; text-shadow: 0 3px 0 #d6336c, 0 0 24px rgba(255,255,255,.8); }
.sp-flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 70%, #fff 0%, rgba(255,220,235,.9) 30%, transparent 70%); pointer-events: none; opacity: 0; animation: sp-flash .7s ease-out .3s; z-index: 2; }
.sp-stage { position: relative; height: calc(var(--h) + 120px); max-height: 78vh; display: flex; align-items: flex-end; justify-content: center; margin: -10px auto 4px; }
.sp-bottle { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 100%; animation: sp-bottle-shake .08s linear 0s 4, sp-recoil .6s cubic-bezier(.2,1.8,.4,1) .32s both; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.sp-bottle .soda-body { width: 70px; height: 100px; }
.sp-bottle .soda-neck { width: 24px; height: 18px; }
.sp-drain { height: 85%; animation: sp-drain 2.4s ease-in .35s forwards; }
.sp-cap { position: absolute; z-index: 4; bottom: 118px; left: 50%; width: 30px; height: 12px; margin-left: -15px; border-radius: 4px; background: linear-gradient(#fff, #ffc2d6); box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: sp-cap 1.4s cubic-bezier(.15,.8,.4,1) .3s forwards; }
.sp-jet { position: absolute; z-index: 2; bottom: 112px; left: 50%; width: calc(18px + var(--p) * 30px); margin-left: calc((18px + var(--p) * 30px) / -2); height: var(--h); border-radius: 50% 50% 40% 40% / 20% 20% 10% 10%; background: linear-gradient(0deg, rgba(255,255,255,.95), rgba(255,180,210,.85) 60%, rgba(255,255,255,0)); filter: blur(2px); transform-origin: 50% 100%; transform: scaleY(0); animation: sp-jet 2.6s cubic-bezier(.1,.9,.3,1) .32s forwards; box-shadow: 0 0 30px rgba(255,255,255,.7); }
.sp-parts { position: absolute; inset: auto 0 112px 0; height: 0; z-index: 3; }
.sp-parts i { position: absolute; left: 50%; bottom: 0; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; opacity: 0; font-style: normal; font-size: var(--s); line-height: 1; animation-name: sp-fly; animation-timing-function: cubic-bezier(.2,.7,.4,1); animation-iteration-count: 2; animation-fill-mode: both; }
.sp-drop { background: radial-gradient(circle at 35% 30%, #fff, #ffb3cf 60%, #ff5c93); }
.sp-bub { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0 20%, rgba(255,255,255,.15) 45%, rgba(255,255,255,.6) 70%, transparent 72%); border: 1.5px solid rgba(255,255,255,.8); }
.sp-berry { border-radius: 0 !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.sp-ring { position: absolute; z-index: 1; bottom: 100px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); opacity: 0; animation: sp-ring .9s ease-out .32s; }
.sp-ring.r2 { animation-delay: .5s; }
.sp-dist { animation: sp-pop .6s cubic-bezier(.2,1.6,.4,1) .5s both; text-shadow: 0 4px 0 #d6336c, 0 0 30px rgba(255,255,255,.7); }
@keyframes sp-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sp-quake { 10%,90% { transform: translate(-2px, 1px); } 20%,80% { transform: translate(4px, -2px); } 30%,50%,70% { transform: translate(-7px, 3px) rotate(-1deg); } 40%,60% { transform: translate(7px, -3px) rotate(1deg); } }
@keyframes sp-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes sp-bottle-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes sp-recoil { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(14px) scale(1.12, .85); } 100% { transform: translateY(0) scale(1); } }
@keyframes sp-drain { to { height: 8%; } }
@keyframes sp-cap { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(90px, calc(var(--h) * -1 - 40px)) rotate(900deg); opacity: 0; } }
@keyframes sp-jet { 0% { transform: scaleY(0) scaleX(.6); opacity: 1; } 12% { transform: scaleY(1.05) scaleX(1.2); } 30% { transform: scaleY(1) scaleX(1); } 75% { opacity: .9; } 100% { transform: scaleY(.15) scaleX(.5); opacity: 0; } }
@keyframes sp-fly { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 55% { transform: translate(calc(var(--dx) * .7), var(--up)) scale(1) rotate(calc(var(--rot) * .6)); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--up) * .45)) scale(.8) rotate(var(--rot)); opacity: 0; } }
@keyframes sp-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-card, .sp-flash { animation: none; } }

/* ---------- 🎫 先着叩き ---------- */
#game-root.g-race { background: radial-gradient(circle at 50% 0%, #4c6fff 0%, #2b2f8f 55%, #14143d 100%); }
.rc-card { max-width: 420px; width: 100%; }
.rc-mission { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 10px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #ffd84d, #ff9f43); color: #3a2400; box-shadow: 0 6px 20px rgba(255,170,60,.4); }
.rc-mission small { width: 100%; font-weight: 700; font-size: 11px; letter-spacing: .1em; opacity: .8; }
.rc-mission b { font-size: 17px; }
.rc-mission span { font: 800 22px Inter, sans-serif; }
.rc-mission.big { margin: 14px 0; padding: 18px; animation: g-pulse 1.2s ease-in-out infinite; }
.rc-mission.big b { font-size: 22px; } .rc-mission.big span { font-size: 34px; }
.rc-site { background: #fff; color: #222; border-radius: 14px; overflow: hidden; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: g-pop .18s ease-out; }
.rc-head { background: #f1f3f8; border-bottom: 1px solid #e2e5ee; padding: 10px 14px; font-size: 13px; font-weight: 700; color: #3b4a7a; }
.rc-list { display: grid; }
.rc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 0; border-bottom: 1px solid #eef0f5; background: #fff; font: 700 15px inherit; color: #222; text-align: left; cursor: pointer; min-height: 56px; }
.rc-row:active { background: #e8eeff; }
.rc-row small { display: block; font-weight: 400; font-size: 11px; color: #888; margin-top: 2px; }
.rc-row em { font-style: normal; font-size: 12px; color: #fff; background: #3b5bfd; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.rc-sel { padding: 16px 14px 4px; font-weight: 800; font-size: 17px; } .rc-sel small { display: block; font-weight: 400; color: #888; font-size: 12px; }
.rc-qty { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px; }
.rc-qty button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #3b5bfd; background: #fff; color: #3b5bfd; font-size: 28px; font-weight: 800; cursor: pointer; }
.rc-qty button:active { background: #e8eeff; }
.rc-qty b { font: 800 40px Inter, sans-serif; min-width: 50px; text-align: center; }
.rc-total { text-align: center; color: #555; font-size: 13px; }
.rc-btn { display: block; width: calc(100% - 28px); margin: 12px 14px 6px; min-height: 52px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #3b5bfd, #6b4cf0); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.rc-btn:disabled { opacity: .35; }
.rc-btn.buy { background: linear-gradient(135deg, #ff4d7e, #ff7a3d); }
.rc-link { display: block; margin: 0 auto 12px; border: 0; background: none; color: #3b5bfd; font-size: 13px; padding: 8px; cursor: pointer; }
.rc-confirm { padding: 8px 14px; } .rc-confirm div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e2e5ee; font-size: 14px; } .rc-confirm span { color: #888; }
.rc-loading { padding: 34px 14px; text-align: center; font-weight: 700; color: #3b4a7a; } .rc-loading small { color: #999; font-weight: 400; }
.rc-spin { width: 34px; height: 34px; margin: 0 auto 12px; border: 4px solid #e2e5ee; border-top-color: #3b5bfd; border-radius: 50%; animation: rc-spin .6s linear infinite; }
.rc-error, .rc-done { padding: 22px 14px 8px; text-align: center; display: grid; gap: 4px; } .rc-error > div, .rc-done > div { font-size: 44px; }
.rc-error b { color: #e0244f; font-size: 17px; } .rc-error small { color: #888; }
.rc-error { animation: rc-ng .35s; }
.rc-done b { font-size: 22px; color: #1a9a55; } .rc-done span { font: 800 26px Inter, sans-serif; padding-bottom: 14px; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-ng { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
