/* Spin & win: phone screens and admin page */
.sp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.sp-wheel { display: block; width: 100%; height: auto; max-width: 330px; margin: 0 auto; overflow: visible; filter: drop-shadow(0 8px 14px #18234944); } .sp-rotor { will-change: transform; }
.sp-wheel-wrap { padding: 4px 8px 0; } .sp-wheel-box { max-width: 300px; margin: 0 auto; } .sp-wheel-box .sp-wheel { filter: none; }

/* phone */
.w-sp { display: flex; flex-direction: column; gap: 10px; } .w-sp > * { flex: none; } .w-sp.has-bg { background-size: cover; background-position: center top; }
.sp-bal { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #1b1f3a, #2a2f66); color: #fff; } .sp-bal small { display: block; color: #c8cbe8; } .sp-bal b { font-size: 30px; line-height: 1.1; } .sp-bal .w-chip { margin-left: auto; background: #ffffff1f; color: #fff; }
.sp-token { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #e39824; background: #5058f2; color: #fff; box-shadow: 0 2px 8px #0b172555; } .sp-token-img { width: 46px; height: 46px; object-fit: contain; }
.sp-day { display: flex; gap: 12px; align-items: center; } .sp-day b { font-size: 13.5px; } .sp-day-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--w-primary-s); color: var(--w-primary); }
.sp-day.done .sp-day-ic { background: var(--w-ok-s); color: var(--w-ok); } .sp-day.pause .sp-day-ic { background: #eef0f6; color: var(--w-muted); } .sp-day.half .sp-day-ic { background: var(--w-warn-s); color: var(--w-warn); }
.sp-steps { display: flex; gap: 8px; margin-top: 4px; } .sp-steps span { display: inline-flex; gap: 3px; align-items: center; padding: 2px 8px; border-radius: 999px; background: #eef0f6; color: var(--w-muted); font-size: 11.5px; } .sp-steps span.on { background: var(--w-ok-s); color: var(--w-ok); font-weight: 700; }
.sp-streak-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .sp-streak-h small { display: block; color: var(--w-muted); } .sp-streak-h b { font-size: 20px; }
.sp-ms-row { display: flex; justify-content: space-between; gap: 6px; margin: 10px 0 4px; } .sp-ms-dot { display: grid; justify-items: center; gap: 2px; flex: 1; } .sp-ms-dot i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--w-line); background: #fff; color: var(--w-muted); font-style: normal; font-weight: 700; font-size: 12px; } .sp-ms-dot.on i { border-color: #1f9d63; background: #1f9d63; color: #fff; } .sp-ms-dot small { color: var(--w-muted); font-size: 11px; }
.sp-stage { display: grid; gap: 10px; padding-top: 14px !important; } .sp-go { margin-top: 2px; }
.sp-links { display: grid; gap: 8px; } .sp-links .w-link small { display: block; color: var(--w-muted); font-weight: 400; }
.sp-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .sp-row small { display: block; color: var(--w-muted); } .sp-row .up { color: var(--w-ok); font-weight: 700; } .sp-row .down { color: var(--w-danger); font-weight: 700; }
.sp-code { display: grid; gap: 6px; justify-items: center; text-align: center; background: linear-gradient(135deg, #1b1f3a, #2a2f66); color: #fff; } .sp-code small { color: #c8cbe8; } .sp-code b { font-size: 30px; letter-spacing: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.sp-how { display: grid; gap: 6px; font-size: 13px; } .sp-how ol, .sp-how ul { margin: 4px 0; padding-left: 18px; display: grid; gap: 4px; } .sp-how small { color: var(--w-muted); }
.sp-prize { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--w-line); } .sp-prize.out { color: var(--w-muted); } .sp-prize small { margin-left: auto; color: var(--w-danger); }
.sp-result { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0b172599; } .sp-result-card { position: relative; width: 100%; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px 18px 18px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px #0b172566; overflow: hidden; animation: sp-pop .35s ease-out; } .sp-result-card h2 { margin: 0; font-size: 22px; } .sp-result-card p { margin: 0 0 6px; color: var(--w-muted); font-size: 13px; } .sp-result-card .w-btn { width: 100%; }
.sp-result-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #fff4de; color: #e39824; } .sp-result.lose .sp-result-ic { background: #eef0f6; color: var(--w-muted); } .sp-burst { position: absolute; top: -60px; left: 50%; width: 320px; transform: translateX(-50%); opacity: .9; pointer-events: none; } .sp-result-card > *:not(.sp-burst) { position: relative; }
@keyframes sp-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sp-result-card { animation: none; } }

/* admin */
.sp-budget { display: grid; gap: 8px; padding: 16px 18px; } .sp-budget-h { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; } .sp-budget small { display: block; color: var(--a-muted); } .sp-budget b { font-size: 24px; } .sp-budget b i { font-size: 14px; font-style: normal; color: var(--a-muted); font-weight: 500; }
.sp-bar { height: 10px; border-radius: 999px; background: #e7eaf3; overflow: hidden; } .sp-bar i { display: block; height: 100%; border-radius: 999px; background: #1f9d63; } .sp-bar.warn i { background: #e39824; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 14px; align-items: start; } .sp-cols > .a-card { margin: 0 0 14px; } .sp-wk { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--a-line); } .sp-wk span:last-child { margin-left: auto; color: var(--a-muted); font-size: 12.5px; }
.sp-tok { font-size: 16px; color: #14724a; } .sp-up { color: #14724a; } .sp-down { color: #b32d2d; }
.sp-ms { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--a-line); } .sp-ms input { width: 80px; } .sp-ms label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.sp-pz-top { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; } .sp-pz-top > .a-card { margin: 0; padding: 16px; } .sp-pz-wheel { display: grid; gap: 6px; justify-items: center; }
.sp-pz-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; } .sp-pz-sum > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--a-bg); } .sp-pz-sum small { color: var(--a-muted); } .sp-pz-sum b { font-size: 18px; color: #14724a; }
.sp-pz input[type=number] { width: 68px; } .sp-pz select { max-width: 130px; } .sp-pz th, .sp-pz td { vertical-align: top; } .sp-names { min-width: 170px; } .sp-names input { display: block; width: 100%; margin: 0 0 4px; box-sizing: border-box; }
.sp-art-how { padding: 14px 18px; } .sp-art-how ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; }
.sp-art { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; } .sp-art-card { margin: 0; padding: 14px 16px; display: grid; gap: 6px; align-content: start; } .sp-art-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .sp-art-card p { margin: 0; } .sp-art-card textarea { font-size: 12px; line-height: 1.5; } .sp-art-prev { max-width: 120px; max-height: 120px; border: 1px solid var(--a-line); border-radius: 10px; background: repeating-conic-gradient(#f1f1f4 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
@media (max-width: 900px) { .sp-cols, .sp-pz-top { grid-template-columns: minmax(0, 1fr); } }
