/* The mini games' purchase offer (panels/shopoffer.js) and the first-time tour over the live shop (panels/shoptour.js). iOS twins:
   Views/Storefront/ShopOfferViews.swift. Colours and type are the shared tokens; every target is at least 44 px. */

/* The decorative worker: small, never a control, left out under big text and on very narrow screens (html.no-workers). */
.bs-worker { display: block; flex: none; width: 44px; height: auto; align-self: flex-start; pointer-events: none; user-select: none; }
html.no-workers .bs-worker { display: none; }

/* The offer: a modal card over the floor with a dimmed backdrop. */
.so-wrap { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; padding: 40px 20px; background: rgba(0,0,0,.5); animation: so-in .25s ease-out both; }
.so-wrap.still { animation: none; }
@keyframes so-in { from { opacity: 0; } to { opacity: 1; } }
.so-card { position: relative; width: min(420px, 100%); display: grid; gap: 12px; padding: 16px; border-radius: 14px;
  background: var(--paper); border: 1px solid rgba(243,235,216,.28); color: var(--ink); }
.so-card h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 26px; line-height: 1.1; padding-top: 3px; }
.so-card h2 .sf { color: var(--accent); }
.so-card p { font: 400 16px/1.35 var(--round); color: rgba(243,235,216,.92); }
.so-card #so-body { display: grid; gap: 10px; overflow-y: auto; max-height: calc(100dvh - 260px); }
/* The worker looks over the card's top edge, behind it. */
.so-worker { position: absolute; right: 20px; top: -64px; width: 56px; z-index: -1; }
.so-price { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: rgba(15,42,73,.6); }
.so-price b { font-size: 34px; line-height: 1.1; color: var(--accent); }
.so-price span { font: 400 14px/1.3 var(--round); color: rgba(243,235,216,.8); }
.so-problem { padding: 8px 12px; border-radius: 10px; background: var(--stamp); color: #fff !important; font-weight: 600 !important; }
.so-btns { display: grid; gap: 8px; }
.so-btns .bigbtn { min-height: 48px; }
.so-btns .so-later { background: #1E3556; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.so-card button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.so-card .so-note { font-size: 13px !important; text-align: center; color: rgba(243,235,216,.7) !important; }

/* The tour: the shop dims behind (its top bar and tray stay bright and inert), and one card sits under the status strip or over the tabs. */
.bs-tourdim { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.18); }
.bs-tourcard { position: absolute; z-index: 6; left: 50%; width: min(520px, calc(100% - 24px)); transform: translateX(-50%); display: flex; gap: 10px; padding: 14px;
  border-radius: 28px; color: #fff; background: rgba(15,42,73,.82); animation: bs-tour-in .25s ease-out both; }
.bs-root[data-shop=coffee] .bs-tourcard { background: rgba(47,29,18,.82); }
.bs-tourcard.still { animation: none; }
@keyframes bs-tour-in { from { opacity: 0; } to { opacity: 1; } }
.bs-tbody { display: grid; gap: 8px; min-width: 0; flex: 1; }
.bs-tbody h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 21px; line-height: 1.1; padding-top: 3px; }
.bs-tbody h3 .sf { color: var(--accent); }
.bs-tbody h3 .ct { margin-left: auto; font-size: 14px; color: rgba(255,255,255,.7); }
.bs-tbody p { font: 600 15px/1.35 var(--round); }
.bs-tbtns { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.bs-tskip { min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); font-weight: 600; font-size: 15px; }
.bs-tbtns .bigbtn { width: auto; min-height: 44px; padding: 10px 28px; }
.bs-tourcard button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
