/* ---------- first launch (js/first.js, js/first-guide.js; Gage 10-28) ---------- */
/* A fresh install boots straight into its first battle: Home never flashes first (Match.begin clears this). */
body.first-boot #home { visibility: hidden; }

/* The first battle's guide: the Campaign tour's look, but the map and the HUD stay live under it. */
.bg-tour .tour-shade { pointer-events: none; background: transparent; }
.bg-tour .bg-card { pointer-events: auto; max-width: 400px; max-height: none; overflow: visible; padding: 7px 10px 8px; box-shadow: 3px 4px #080707, 0 8px 24px #0008; }
.bg-tour .bg-card h2 { font-size: 21px; margin: 4px 0 1px; }
.bg-tour .bg-card p { font-size: 13px; line-height: 1.3; margin: 0 0 2px; }
.bg-tour .bg-card .cg-progress { gap: 5px; }
.bg-tour .bg-card .cg-pips i { width: 18px; height: 18px; }
.bg-tour .bg-card .cg-pips i .wi { width: 12px; height: 12px; }
.bg-tour .bg-card .cg-skip { height: 30px; min-width: 52px; font-size: 14px; }
.bg-tour .bg-card .tour-actions { margin-top: 6px; }
.bg-tour .bg-card .tour-actions button { min-height: 38px; font-size: 18px; }
.bg-tour .bg-card.asking { border-color: #e54e52; }
@media (max-height: 520px) { .bg-tour .bg-card { max-width: 340px; } .bg-tour .bg-card h2 { font-size: 18px; } .bg-tour .bg-card p { font-size: 12px; } }

/* Pick 3 reel categories: the idle Super Spin machine on a frameless stage (a deeper dim, so Home stays out of it). */
#modal:has(> .first-reels) { background: radial-gradient(ellipse 90% 60% at 50% 34%, #2b1e10f2, #050505f7 72%); }
.first-reels #fr-lock:disabled { opacity: 1; background: #2a1d1d; color: #b9a6a0; box-shadow: none; }
#modal .sheet-box.first-reels { background: none; border: 0; box-shadow: none; max-width: 430px; gap: 10px; text-align: center; padding: 8px 10px 12px; }
#modal .sheet-box.first-reels::before, #modal .sheet-box.first-reels::after { display: none; }
.first-reels .fr-head small { display: block; font: 400 14px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #f1c46a; }
.first-reels .fr-head h2 { margin: 2px 0 4px; }
.first-reels .fr-head p { color: #e2d6bf; font-size: 14px; }
.first-reels .fr-machine { position: relative; height: min(30dvh, 230px); display: grid; place-items: center; }
.first-reels .fr-machine canvas { width: 100%; height: 100%; }
.first-reels .fr-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.first-reels .fr-reels button { width: 100%; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px; background: #0c0b09cc; border: 1px dashed #8c6b3e; color: #b9ab92; font: 400 12px var(--body); }
.first-reels .fr-reels button i { font: 400 13px var(--display); color: #d9b56c; font-style: normal; letter-spacing: .1em; }
.first-reels .fr-reels button b { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.first-reels .fr-reels button b .wi { width: 14px; height: 14px; }
.first-reels .fr-reels button.on { border: 1px solid #edb64c; background: #2a2016e6; color: #fff3d6; }
.first-reels .fr-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.first-reels .fr-cat { position: relative; display: grid; justify-items: center; gap: 3px; min-height: 58px; padding: 8px 4px 6px; background: #181512e6; border: 1px solid #5f4c33; color: #eee1c7; }
.first-reels .fr-cat .wi { width: 22px; height: 22px; }
.first-reels .fr-cat b { font: 400 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.first-reels .fr-cat[aria-pressed="true"] { border-color: #edb64c; background: #3a2a17; box-shadow: inset 0 0 0 1px #edb64c; }
.first-reels .fr-cat[aria-pressed="true"]::after { content: attr(data-n); position: absolute; top: 3px; right: 5px; font: 400 14px var(--display); color: #f1c46a; }
.first-reels #fr-lock { min-height: 52px; font-size: 22px; }
.first-reels .fr-code { display: flex; align-items: center; justify-content: center; gap: 6px; }
.first-reels .fr-code .wi { width: 14px; height: 14px; }
@media (max-height: 640px) { .first-reels .fr-machine { height: 22dvh; } .first-reels .fr-head p { font-size: 12px; } .first-reels .fr-cat { min-height: 48px; padding: 5px 4px; } }

/* Save your progress: the three prizes, then sign in or Not now. */
.first-save .fs-items { display: grid; gap: 6px; }
.first-save .fs-items li { display: flex; align-items: center; gap: 10px; text-align: left; }
.first-save .fs-pic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.first-save .fs-pic img, .first-save .fs-pic svg { max-width: 40px; max-height: 40px; }
.first-save .fs-items b { display: block; }
.first-save .fs-items small { color: #b9ab92; font-size: 12px; }
