/* Bean Passport, daily quests and the set album (G, 2026-10-01). Loaded only by the pages that show them; colours come from beanville.css. */
.qs { min-width: 0; }
.qs[hidden] { display: none; }
.qs-strip { background: var(--surface); border: 3px solid var(--edge); border-radius: var(--r-lg, 22px); padding: 16px 18px; margin: 16px 0; }
.qs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qs-head h2 { margin: 0; }
.qs-strip .qs-head h2 { font-size: 22px; }
.qs-reset { font: 600 13px var(--f-mono, monospace); color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); white-space: nowrap; }
.qs-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qs-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic body" "act act"; gap: 8px 10px; align-items: center; padding: 12px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 2px solid var(--line); }
.qs-item.ready { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: qsPulse 1.6s ease-in-out infinite; }
.qs-item.claimed { opacity: .72; }
.qs-ic { grid-area: ic; font-size: 28px; line-height: 1; text-align: center; }
.qs-body { grid-area: body; min-width: 0; display: grid; gap: 5px; }
.qs-body b { font-size: 15px; line-height: 1.25; }
.qs-body small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.qs-bar { position: relative; height: 12px; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface); overflow: hidden; }
.qs-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(115deg, #5BBF6A 0 8px, #7ED08A 8px 16px); transition: width .4s ease; }
.qs-item .btn, .qs-item .qs-done { grid-area: act; justify-self: stretch; min-height: 40px; font-size: 15px; }
.qs-done { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ok, #2E7D4F); }
.qs-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.qs-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; }
.qs-stamp.got { border: 3px solid var(--accent); color: var(--accent); transform: rotate(-2deg); font-family: var(--f-display, inherit); }
@keyframes qsPulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }

/* the passport cover */
.ps-cover { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 18px 24px; align-items: center; }
.ps-cover[hidden] { display: none; }
.ps-cover-pic { display: grid; place-items: center; min-height: 190px; border-radius: var(--r-md, 14px); border: 3px solid var(--edge); background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); padding: 12px; }
.ps-cover-pic .ps-hero { height: 180px; width: auto; max-width: 100%; border-radius: 12px; }
.ps-nobean { font-size: 72px; opacity: .5; }
.ps-cover-main { min-width: 0; display: grid; gap: 8px; }
.ps-cover-main h2 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.05; }
.ps-cover-main .hint { margin: 0; }
.ps-titlebar { height: 16px; }
.ps-streak { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ps-streak b { font: 800 22px var(--f-mono, monospace); }
.ps-flame { font-size: 22px; }
.ps-flame.off { filter: grayscale(1); opacity: .5; }
.ps-chips { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips li { display: grid; gap: 1px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); min-width: 86px; }
.ps-chips .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ps-chips b { font: 700 16px var(--f-mono, monospace); font-variant-numeric: tabular-nums; }
.ps-pick { grid-column: 1 / -1; }
.ps-pick:empty { display: none; }

/* the set album */
.ps-sets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ps-set { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 2px solid var(--line); }
.ps-set.done { border: 3px solid var(--accent); }
.ps-set-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-set h3 { margin: 0; font-size: 20px; }
.ps-dots { display: inline-flex; gap: 5px; }
.ps-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--edge); background: var(--surface); }
.ps-dots i.wearing { background: #5BBF6A; }
.ps-dots i.locker, .ps-dots i.other { background: #FFC93C; }
.ps-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ps-piece { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; }
.ps-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ps-piece.wearing .ps-mark { border: 2px solid var(--edge); background: #5BBF6A; color: #0A2412; }
.ps-piece.locker .ps-mark, .ps-piece.other .ps-mark { border: 2px solid var(--edge); background: #FFC93C; color: #2B1B14; }
.ps-piece small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ps-opts { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 14px; }
.ps-opts em { font-style: normal; color: var(--muted); font-size: 12px; }
.ps-opt { color: var(--muted); }
.ps-piece.missing .ps-opt { color: var(--text); }
.ps-opt.have { color: var(--text); font-weight: 700; }
.ps-opt.secret { font-family: var(--f-mono, monospace); letter-spacing: .1em; }
.ps-badge { justify-self: start; padding: 4px 12px; border-radius: 999px; border: 3px solid var(--accent); color: var(--accent); font-weight: 800; transform: rotate(-2deg); }
.ps-set .hint { margin: 0; font-size: 13px; }

/* the ribbon shelf */
.ps-ribs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ps-rib { display: grid; gap: 5px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 2px solid var(--line); }
.ps-rib small { color: var(--muted); font-size: 12px; }
.ps-rib .qs-bar { width: 100%; height: 10px; }
.ps-rosette { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; border: 4px solid var(--edge); background: var(--surface); box-shadow: 0 0 0 4px var(--rib, transparent); }
.ps-rib.locked .ps-rosette { filter: grayscale(1); opacity: .45; border-style: dashed; }
.ps-rib.bronze { --rib: #C98B4A; } .ps-rib.silver { --rib: #B9C2CC; } .ps-rib.gold { --rib: #FFC93C; }
.ps-rib.bronze .ps-rosette { background: #F0D2B0; } .ps-rib.silver .ps-rosette { background: #EEF2F6; } .ps-rib.gold .ps-rosette { background: #FFF0B8; }
.ps-rib.gold { border-color: #FFC93C; }
.ps-next { font-variant-numeric: tabular-nums; }

/* the household */
.ps-beanlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ps-bean { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 2px solid var(--line); }
.ps-bean .fd-cut, .ps-bean .fd-av { height: 64px; width: 64px; object-fit: contain; }
.ps-bean small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }

@media (max-width: 760px) {
  .qs-list { grid-template-columns: minmax(0, 1fr); }
  .qs-item { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic body act"; }
  .qs-item .btn, .qs-item .qs-done { justify-self: end; padding: 0 14px; }
  .ps-cover { grid-template-columns: minmax(0, 1fr); }
  .ps-cover-pic { min-height: 150px; }
  .ps-cover-pic .ps-hero { height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .qs-item.ready { animation: none; } .qs-bar i { transition: none; } }

/* ── the Midway: booth tiles (the Midway page, and the event picker on Field Day) ── */
.mw-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin: 16px 0; padding: 18px 20px; border-radius: var(--r-lg, 22px); border: 3px solid var(--edge); background: repeating-linear-gradient(115deg, #FFC93C 0 26px, #FFD866 26px 52px); color: #2B1B14; }
.mw-banner[hidden] { display: none; }
.mw-banner h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); color: #2B1B14; }
.mw-banner p { margin: 2px 0 0; color: #2B1B14; }
.mw-banner .bm-eyebrow { color: #5A3A1C; }
.mw-star { font-size: 44px; line-height: 1; }
.mw-booth h2 { margin: 0 0 12px; }
.mw-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mw-tile, .mw-tiles button { position: relative; display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; min-height: 132px; padding: 14px; border-radius: 16px; border: 3px solid var(--edge, #0A0604); background: var(--surface-2); color: var(--text); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
body.bm-page main.bm-wrap a.mw-tile { color: var(--text) !important; font-weight: 400; }
body.bm-page main.bm-wrap a.mw-tile:hover { filter: none; }
.mw-tile:hover, .mw-tiles button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--edge, #0A0604); }
.mw-tile b, .mw-tiles button b { font: 400 19px var(--f-display, inherit); line-height: 1.15; }
.mw-tile small, .mw-tiles button small { color: var(--muted); font: 500 13px var(--f-body, inherit); line-height: 1.3; }
.mw-ic { font-size: 32px; line-height: 1; }
.mw-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.mw-badges:empty { display: none; }
.mw-badges i { font: 700 11px var(--f-body, inherit); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--muted); }
.mw-badges i.x2 { background: #FFC93C; border-color: #0A0604; color: #2B1B14; }
.mw-badges i.qst { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mw-tile.gotd, .mw-tiles button.gotd { border-color: #E0A100; box-shadow: 0 0 0 3px #FFC93C; }
/* Field Day: the event picker as booths */
.mw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.mw-head h3 { margin: 0; }
.mw-gotd { padding: 5px 12px; border-radius: 999px; border: 3px solid #0A0604; background: #FFC93C; color: #2B1B14; font-size: 14px; font-weight: 600; }
.fd-events.mw-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fd-events.mw-tiles button { min-height: 112px; background: rgba(255,246,230,.92); color: #2B1B14; flex: none; font: inherit; }
.fd-events.mw-tiles button small { color: #6B5446; }
.fd-events.mw-tiles button[aria-selected="true"] { background: #FFC93C; box-shadow: 0 5px 0 #0A0604; transform: translateY(-3px); }
.fd-events.mw-tiles .mw-ic { font-size: 26px; }
.bc-open { min-height: 34px !important; padding: 0 12px !important; font-size: 13px !important; margin-top: 6px; }

/* ── the BEAN card ── */
.bc-dialog { border: 0; background: transparent; padding: 12px; max-width: 100vw; max-height: 100vh; overflow: visible; color: var(--text); }
.bc-dialog::backdrop { background: rgba(10, 6, 4, .78); }
.bc-stage { perspective: 1400px; display: grid; place-items: center; }
.bc-card { --bc: #B7793F; --bcSoft: #F3E1C7; position: relative; width: min(340px, 86vw); aspect-ratio: 5 / 7; padding: 0; border: 0; background: transparent; cursor: pointer; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .8, .3, 1); font: inherit; color: #2B1B14; text-align: left; }
.bc-card.flipped { transform: rotateY(180deg); }
.bc-face { position: absolute; inset: 0; display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 20px; border: 5px solid #0A0604; background: var(--bc); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.bc-front { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.bc-back { transform: rotateY(180deg); background: #FFF6E6; grid-template-rows: auto auto auto 1fr auto; }
.bc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #FFF; }
.bc-top b { font: 400 22px var(--f-display, inherit); }
.bc-top span { font-size: 13px; font-weight: 700; }
.bc-back .bc-top { color: #2B1B14; border-bottom: 3px solid #0A0604; padding-bottom: 6px; }
.bc-pic { position: relative; display: grid; place-items: end center; border-radius: 12px; border: 4px solid #0A0604; background: radial-gradient(circle at 50% 45%, #FFF 0, var(--bcSoft) 75%); min-height: 0; overflow: hidden; }
.bc-pic img { max-width: 86%; max-height: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .22)); }
.bc-card.foil .bc-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255, 143, 177, .35) 35%, rgba(255, 201, 60, .35) 45%, rgba(155, 224, 122, .35) 55%, rgba(124, 199, 255, .35) 65%, transparent 80%); background-size: 250% 100%; mix-blend-mode: screen; animation: bcFoil 3.2s linear infinite; pointer-events: none; }
@keyframes bcFoil { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.bc-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.bc-tags span { padding: 2px 9px; border-radius: 999px; background: #FFF6E6; border: 2px solid #0A0604; font-size: 11px; font-weight: 700; }
.bc-tags span.foil { background: linear-gradient(90deg, #FF8FB1, #FFC93C, #9BE07A, #7CC7FF); }
.bc-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.bc-mini li { display: grid; justify-items: center; padding: 4px 2px; border-radius: 9px; background: #FFF6E6; border: 2px solid #0A0604; }
.bc-mini small { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B5446; }
.bc-mini b { font: 400 20px var(--f-display, inherit); line-height: 1.1; }
.bc-rec { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; border-radius: 9px; background: #0A0604; color: #FFF6E6; font-size: 12px; font-weight: 700; }
.bc-rec b { font: 400 18px var(--f-display, inherit); }
.bc-stats { display: grid; gap: 5px; }
.bc-stat { display: grid; grid-template-columns: 42px 1fr 28px; gap: 2px 6px; align-items: center; font-size: 12px; font-weight: 700; }
.bc-stat i { height: 10px; border-radius: 999px; border: 2px solid #0A0604; background: #EADBC4; overflow: hidden; }
.bc-stat i b { display: block; height: 100%; background: var(--bc); }
.bc-stat em { font-style: normal; text-align: right; font-family: var(--f-mono, monospace); }
.bc-stat small { grid-column: 2 / -1; font-size: 10px; font-weight: 500; color: #6B5446; margin-top: -2px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bc-table th { text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6B5446; border-bottom: 2px solid #0A0604; padding: 2px 4px; }
.bc-table td { padding: 2px 4px; border-bottom: 1px dashed rgba(43, 27, 20, .25); font-variant-numeric: tabular-nums; }
.bc-table th:nth-child(n+2), .bc-table td:nth-child(n+2) { text-align: right; }
.bc-traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; align-content: start; overflow: hidden; font-size: 11px; }
.bc-traits li { display: flex; gap: 4px; align-items: baseline; min-width: 0; }
.bc-traits small { color: #6B5446; font-size: 9px; text-transform: uppercase; flex: none; }
.bc-traits span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bc-traits .bm-tier { font-size: 8px; padding: 0 4px; }
.bc-foot { margin: 0; text-align: center; font-size: 10px; color: #6B5446; }
.bc-wait { margin: auto; padding: 40px 10px; color: #FFF; text-align: center; font-weight: 700; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.bc-msg { margin: 8px 0 0; text-align: center; color: #FFF6E6; font-size: 14px; }
[data-card] { cursor: pointer; }
.ps-cardbtn { display: grid; justify-items: center; gap: 4px; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--text); font: 700 13px var(--f-body, inherit); }
.ps-cardbtn span { padding: 3px 12px; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface); }
.ps-cardlink { color: var(--accent) !important; font-weight: 700; }
@media (max-width: 760px) { .mw-banner { grid-template-columns: auto minmax(0, 1fr); } .mw-banner .btn { grid-column: 1 / -1; } .mw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fd-events.mw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .bc-card { transition: none; } .bc-card.foil .bc-pic::after { animation: none; } .mw-tile, .mw-tiles button { transition: none; } }

/* ── the mint: the picture develops, a rarity sting, and what to do next ── */
.bv-stage img.developing { transition: filter .35s ease; }
.bv-stage.flash::after { content: ""; position: absolute; inset: 0; background: #FFF; pointer-events: none; animation: bvFlash .6s ease-out both; }
@keyframes bvFlash { from { opacity: .85; } to { opacity: 0; } }
.bv-sting { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) rotate(-4deg); padding: 6px 18px; border-radius: 999px; border: 4px solid #0A0604; background: #FFC93C; color: #2B1B14; font: 400 26px var(--f-display, inherit); text-transform: uppercase; white-space: nowrap; animation: bvSting 2.6s ease both; pointer-events: none; }
.bv-sting.uncommon { background: #7CC7FF; } .bv-sting.rare { background: #9BE07A; } .bv-sting.epic { background: #B794F6; } .bv-sting.legendary, .bv-sting.mythic { background: linear-gradient(90deg, #FF8FB1, #FFC93C, #9BE07A, #7CC7FF); }
@keyframes bvSting { 0% { opacity: 0; transform: translateX(-50%) rotate(-4deg) scale(.3); } 12% { opacity: 1; transform: translateX(-50%) rotate(-4deg) scale(1.15); } 20%, 82% { opacity: 1; transform: translateX(-50%) rotate(-4deg) scale(1); } 100% { opacity: 0; transform: translateX(-50%) rotate(-4deg) scale(1); } }
.bv-next, .bv-how { margin-top: 16px; }
.bv-next[hidden], .bv-how[hidden] { display: none; }
.bv-next h3 { margin: 0 0 10px; }
.bv-next ol, .bv-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bv-how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bv-next li, .bv-how li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.bv-how li { grid-template-columns: 34px minmax(0, 1fr); background: var(--surface); border: 3px solid var(--edge); }
.bv-next .n, .bv-how .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.bv-next b, .bv-how b { display: block; }
.bv-next small, .bv-how small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.bv-next .btn { min-height: 40px; font-size: 14px; padding: 0 14px; white-space: nowrap; }
.arc-teaser .mw-badges { justify-content: center; }
@media (max-width: 760px) { .bv-how ol { grid-template-columns: minmax(0, 1fr); } .bv-next li { grid-template-columns: 34px minmax(0, 1fr); } .bv-next li .btn { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .bv-stage.flash::after, .bv-sting { animation: none; } .bv-sting { opacity: 1; } }

/* ── identity: the Main Bean and its name ── */
.ps-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ps-id[hidden], .ps-nameform[hidden] { display: none; }
.ps-id > b { font: 400 22px var(--f-display, inherit); margin-right: 4px; }
.ps-id .btn { min-height: 36px; font-size: 13px; padding: 0 12px; }
.ps-nameform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); }
.ps-nameform label { font-weight: 700; }
.ps-nameform input { flex: 1 1 180px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 3px solid var(--edge); background: var(--surface); color: var(--text); font: 600 16px var(--f-body, inherit); }
.ps-nameform .btn { min-height: 40px; font-size: 14px; }
.ps-nameform .hint { flex: 1 1 100%; margin: 0; font-size: 13px; }
.ps-nameerr { color: var(--bad, #B3261E); }
.fd-bean.is-main { box-shadow: 0 0 0 3px #FFC93C; }
.fd-mainnote { flex: 1 1 100%; margin: 6px 0 0; font-size: 13px; }
.lb-bean { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.lb-bean img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.lb-bean span { display: grid; min-width: 0; line-height: 1.15; }
.lb-bean small { opacity: .7; font-size: 11px; font-family: var(--f-mono, monospace); }

/* ── the arcade floor: one thing open at a time ── */
.floor-off { display: none !important; }
.arc-floor2 { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
body.bm-page main.bm-wrap a.arc-teaser { text-decoration: none; color: #FFF6E6 !important; }
.arc-teaser .scr.pic { display: grid; place-items: center; font-size: 28px; padding: 0; grid-template-columns: 1fr; align-items: center; }
.arc-teaser.wall { background: linear-gradient(#2A2440, #1A1730); }
.arc-teaser.door { background: linear-gradient(#1F3B2A, #13261B); }
.arc-teaser.pop { background: linear-gradient(#4A3A12, #2E240B); }
.arc-teaser.sketchy { background: linear-gradient(#3B3320, #201C12); transform: rotate(-1.6deg); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .04), 0 0 18px rgba(255, 201, 60, .18); }
.arc-teaser.sketchy .scr { animation: arcFlicker 4.2s steps(1) infinite; }
.arc-teaser.sketchy .soon { color: #FFC93C; }
@keyframes arcFlicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 48% { opacity: .35; } 50% { opacity: 1; } 71% { opacity: .5; } 73% { opacity: 1; } }
.arc-teaser.dark { filter: grayscale(1) brightness(.55); cursor: not-allowed; font: inherit; color: inherit; }
.arc-teaser.dark .soon { animation: none; color: #D2BFAB; }
.arc-teaser.dark.rattle { animation: arcRattle .4s ease; }
@keyframes arcRattle { 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }
.arc-floor2 .arc-teaser[aria-pressed="true"] .soon { color: #0E1A1F; background: var(--neon-b, #4FE3D6); padding: 4px 8px; border-radius: 999px; animation: none; }
.mw-tile.off { filter: grayscale(1); opacity: .6; cursor: not-allowed; }
.mw-tile.off:hover { transform: none; box-shadow: none; }
.mw-badges i.lock { background: #2B1B14; border-color: #2B1B14; color: #FFF6E6; }
@media (prefers-reduced-motion: reduce) { .arc-teaser.sketchy .scr, .arc-teaser.dark.rattle { animation: none; } }
.arc-room .bv-bubble, .arc-room .bv-bubble #mayorSays { color: var(--text); }

/* ── Duck Pond ── */
.pond { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px; margin: 12px 0; border-radius: 40% / 22%; border: 4px solid #0A0604; background: radial-gradient(ellipse at 50% 40%, #8FD3FF 0, #3C80CC 70%, #2E6FB7 100%); }
.pond-duck { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: transparent; cursor: pointer; font: inherit; color: #0A0604; animation: pondBob 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.23s); }
.pond-duck:disabled { cursor: default; }
.pond-duck .d { font-size: 38px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .22)); transition: transform .3s ease; }
.pond-duck:not(:disabled):hover .d, .pond-duck.lift .d { transform: translateY(-8px) rotate(-8deg); }
.pond-duck .n { min-width: 46px; padding: 2px 8px; border-radius: 999px; border: 2px solid #0A0604; background: #FFF6E6; font: 700 13px var(--f-mono, monospace); text-align: center; }
.pond-duck.up { animation: none; }
.pond-duck.up.empty { opacity: .55; }
.pond-duck.up.mine .n { background: #FFC93C; box-shadow: 0 0 0 3px #0A0604; }
.pond-duck.up.mine .d { transform: translateY(-6px) scale(1.15); }
@keyframes pondBob { 50% { transform: translateY(-5px) rotate(2deg); } }
.pond-prizes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; }
.pond-prizes span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 246, 230, .9); border: 2px solid #0A0604; color: #2B1B14; font-weight: 700; }
.pond-prizes small { opacity: .7; }
@media (max-width: 520px) { .pond { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 30% / 12%; } }
@media (prefers-reduced-motion: reduce) { .pond-duck { animation: none; } .pond-duck .d { transition: none; } }

/* ── Pinto Racer ── */
.rc-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.rc-track { display: grid; gap: 8px; justify-items: center; }
#road { width: 100%; max-width: 320px; height: auto; border-radius: 16px; border: 4px solid var(--edge, #0A0604); background: #4A4A55; touch-action: manipulation; }
.rc-steer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 320px; }
.rc-steer .btn { min-height: 58px; font-size: 26px; }
.rc-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.rc-stats { display: flex; gap: 10px; }
.rc-pays { justify-content: flex-start; }
.rc-pays span { background: var(--surface-2); color: var(--text); border-color: var(--line); }
@media (max-width: 760px) { .rc-wrap { grid-template-columns: minmax(0, 1fr); } }

/* the Main Bean in the arcade room */
.arc-as { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 3px solid #0A0604; background: #FFF6E6; text-decoration: none; }
body.bm-page main.bm-wrap a.arc-as { color: #2B1B14 !important; }
.arc-as img { width: 34px; height: 34px; object-fit: contain; }
.arc-as span { display: grid; line-height: 1.1; }
.arc-as small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.arc-as b { font-size: 14px; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-teaser.machine { background: linear-gradient(#4A1D1D, #2A1010); }

/* Arcade Level on the passport cover */
.ps-level { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.ps-lvl-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--edge, #2B1B14); background: #FFD866; color: #2B1B14; font: 400 26px/1 var(--f-display, inherit); }
.ps-lvl-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.ps-lvl-main .qs-bar { height: 12px; }

/* a booth that is put away (hidden) must not show: the tile grid sets display on buttons */
.mw-tiles button[hidden], .mw-tile[hidden] { display: none; }

/* ── Trade Center (G, 2026-10-07): spare Locker traits, one for one ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-form { display: grid; gap: 14px; margin-top: 12px; }
.tc-form fieldset { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0; min-width: 0; }
.tc-form legend { font: 400 18px var(--f-display, inherit); padding: 0 6px; }
.tc-form select, .tc-search select, .tc-search input { font: inherit; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--edge, #0A0604); background: var(--surface); color: var(--text); min-height: 44px; }
.tc-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.tc-search input { flex: 1 1 200px; min-width: 0; }
.tc-check { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.tc-picks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tc-results { max-height: 300px; overflow: auto; padding: 2px; }
.tc-pick { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; min-height: 44px; }
.tc-pick b { font-weight: 700; line-height: 1.2; }
.tc-pick small { color: var(--muted); font-size: 12px; }
.tc-pick:hover:not(:disabled) { border-color: var(--edge, #0A0604); }
.tc-pick[aria-checked="true"], .tc-pick[aria-pressed="true"] { border-color: var(--edge, #0A0604); background: #FFC93C; color: #2B1B14; box-shadow: 0 3px 0 var(--edge, #0A0604); }
.tc-pick[aria-checked="true"] small, .tc-pick[aria-pressed="true"] small { color: #6B5446; }
.tc-pick:disabled { opacity: .5; cursor: not-allowed; }
.tc-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; min-height: 30px; align-items: center; }
.tc-want { font: inherit; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 2px solid var(--edge, #0A0604); background: #FFC93C; color: #2B1B14; cursor: pointer; }
.tc-open { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.tc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tc-offer { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 10px; }
.tc-offer.mine { border-color: var(--edge, #0A0604); }
.tc-swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 12px; align-items: center; }
.tc-arrow { font-size: 24px; color: var(--muted); }
.tc-lbl { display: block; color: var(--muted); font: 700 11px var(--f-mono, monospace); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
body.bm-page main.bm-wrap .tc-lbl a { color: inherit !important; }
.tc-wants { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-trait { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); max-width: 100%; }
.tc-trait img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; }
.tc-trait > span:not(.bm-badge) { display: grid; min-width: 0; }
.tc-trait b { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tc-trait small { color: var(--muted); font-size: 12px; }
.tc-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tc-bids { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; border-radius: 12px; background: var(--surface); border: 2px dashed var(--line); }
.tc-bids li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tc-dialog { border: 3px solid var(--edge, #0A0604); border-radius: 20px; padding: 18px; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; }
.tc-dialog::backdrop { background: rgba(10, 6, 4, .55); }
@media (max-width: 640px) { .tc-swap { grid-template-columns: 1fr; } .tc-arrow { justify-self: center; transform: rotate(90deg); } .tc-foot .bm-row { width: 100%; } .tc-foot .btn { flex: 1 1 auto; } }
.tc-check { white-space: nowrap; }
.tc-check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; }
.tc-trait { flex-wrap: wrap; }
.tc-trait > span:not(.bm-badge) { flex: 1 1 90px; }
.tc-offer.can { border-color: #2E8B57; box-shadow: 0 0 0 2px rgba(46, 139, 87, .25); }
.tc-worn { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 2px dashed var(--line); }

/* ── Trait Shop (G, 2026-10-07): artists' seasonal and limited traits ── */
.sh-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sh-card { border: 3px solid var(--edge, #0A0604); border-radius: 18px; background: var(--surface-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sh-card.sold_out, .sh-card.ended, .sh-card.off { opacity: .72; border-color: var(--line); }
.sh-pic { position: relative; display: block; aspect-ratio: 1; background: var(--surface); }
.sh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-flag { position: absolute; top: 8px; left: 8px; font: 800 11px var(--f-mono, monospace); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: #FFC93C; color: #2B1B14; border: 2px solid #0A0604; }
.sh-flag.soon { background: #7CC7FF; } .sh-flag.off { background: #E8E0D4; }
.sh-body { display: grid; gap: 4px; padding: 12px; align-content: start; justify-items: start; }
.sh-body b { font: 400 19px var(--f-display, inherit); line-height: 1.15; }
.sh-body small { color: var(--muted); font-size: 13px; }
.sh-body p { margin: 0; }
.sh-drop { font: 700 11px var(--f-mono, monospace); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sh-price { font: 800 18px var(--f-mono, monospace); }
.sh-act { margin-top: 6px; width: 100%; }
.sh-act .btn { width: 100%; }
.sh-payrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; margin-top: 10px; }
.sh-pay { border-color: #E0A100; box-shadow: 0 0 0 3px #FFC93C; }
@media (max-width: 640px) { .sh-payrow { grid-template-columns: 1fr; } .sh-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
