/* Package styles: inbox. See /mnt/data/personas/carmack/research/audit-2026-09-26/REPORT.md.
   Inbox, Trades (list and builder), Settings and Your Stats share the .inbox-screen frame. */

/* ---------- Frame: back link, neon title, LCD, section labels ---------- */
.notification-page .loyalty-main, .trades-page .loyalty-main, .settings-page .loyalty-main, .stats-page .loyalty-main { background: radial-gradient(120% 28% at 15% 0%, rgba(255,58,84,.13), transparent 70%); }
.inbox-screen { box-sizing: border-box; color: var(--arcade-cream); font-family: 'VT323', monospace; margin: 0 auto; max-width: 26rem; min-width: 0; padding: .6rem .85rem 1.5rem; position: relative; width: 100%; }
.inbox-screen::before { background: repeating-linear-gradient(0deg, rgba(0,0,0,.26) 0 1px, transparent 1px 3px); content: ''; inset: 0; pointer-events: none; position: absolute; z-index: 2; }
.inbox-screen .arcade-back-link { color: var(--arcade-cyan); font-family: 'VT323', monospace; font-size: 1.3rem; margin-left: -.1rem; min-height: 44px; text-shadow: 0 0 6px rgba(83,224,255,.6); }
.inbox-head { align-items: center; display: flex; gap: .6rem; justify-content: space-between; margin: -.1rem 0 .4rem; min-height: 3.6rem; }
.loyalty-main .inbox-head h1.arcade-neon-sign { color: #ffe6e9; font-family: 'Yellowtail', cursive; font-size: clamp(2.6rem, 12vw, 3.2rem); font-weight: 400; letter-spacing: 0; line-height: 1.05; margin: 0; padding: 0 .2rem 0 0; text-transform: none; }
.inbox-lcd { align-items: baseline; background: #060202; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255,74,58,.55), 0 0 12px rgba(255,74,58,.25); display: flex; flex: none; gap: .5rem; padding: .25rem .7rem; }
.inbox-lcd small { color: #ff8a98; font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .1em; }
.inbox-lcd b { color: #ff4a3a; font-family: 'VT323', monospace; font-size: 1.9rem; font-weight: 400; line-height: 1; text-shadow: 0 0 8px rgba(255,74,58,.9); }
.inbox-section { margin-top: 1rem; }
.loyalty-main .inbox-label { align-items: baseline; color: var(--arcade-cyan); display: flex; font-family: 'Silkscreen', monospace; font-size: .72rem; font-weight: 400; gap: .5rem; justify-content: space-between; letter-spacing: .18em; line-height: 1.2; margin: 0 0 .5rem; text-align: left; text-shadow: 0 0 6px rgba(83,224,255,.55); text-transform: uppercase; }
.loyalty-main .inbox-label span { color: #3f7d86; font-family: 'VT323', monospace; font-size: 1.05rem; letter-spacing: .02em; text-shadow: none; }
.inbox-none { color: #56708a; font-size: 1.2rem; margin: 0; padding: .2rem 0 .1rem; }
.inbox-empty { color: #56708a; font-size: 1.3rem; line-height: 1.2; padding: 2rem .5rem; text-align: center; }
.inbox-screen a.arcade-pill-primary { color: #fff; }
.inbox-screen a.arcade-pill-secondary { color: var(--arcade-cyan); }
.loyalty-main .inbox-screen button.arcade-pill-primary, .loyalty-main .inbox-screen button.arcade-pill-secondary { border-radius: 999px; cursor: pointer; font-family: 'Silkscreen', monospace; font-size: .8rem; font-weight: 700; letter-spacing: .1em; margin: 0; min-height: 44px; padding: 0 1.1rem; text-transform: uppercase; width: auto; }
.loyalty-main .inbox-screen button.inbox-text-action { background: transparent; border: 0; box-shadow: none; color: #b58a3a; cursor: pointer; font-family: 'VT323', monospace; font-size: 1.15rem; letter-spacing: .04em; margin: 0; min-height: 44px; padding: 0 .2rem 0 0; text-decoration: underline; text-underline-offset: 3px; width: auto; }
.loyalty-main .inbox-screen button.inbox-text-action:hover { color: var(--arcade-amber); }
.loyalty-main .inbox-screen form { display: block; margin: 0; max-width: none; width: auto; }
.loyalty-main .inbox-screen form.settings-form, .loyalty-main .inbox-screen form.trade-builder, .loyalty-main .inbox-screen form.trade-handle { width: 100%; }

/* ---------- Inbox: pinned cards ---------- */
.inbox-card { align-items: center; background: rgba(255,74,94,.04); border: 2px solid var(--arcade-red-bright); box-shadow: 0 0 14px rgba(255,74,94,.4), inset 0 0 12px rgba(255,74,94,.12); display: flex; gap: .7rem; margin-bottom: .7rem; padding: .55rem .6rem; }
.loyalty-main .inbox-card-avatar { align-items: center; background: #192a4a; border-radius: 4px; color: #56708a; display: flex; flex: 0 0 3.6rem; font-size: 2rem; height: 3.6rem; justify-content: center; object-fit: cover; position: relative; width: 3.6rem; z-index: 3; }
.inbox-card-copy { flex: 1; line-height: 1; min-width: 0; }
.inbox-card-copy p { margin: 0; }
.inbox-card-kicker { color: #ff8a98; font-size: 1.4rem; text-shadow: 0 0 8px rgba(255,74,94,.9); text-transform: uppercase; }
.inbox-card-line { color: var(--arcade-cream); font-size: 1.2rem; margin-top: .15rem !important; overflow-wrap: anywhere; text-transform: uppercase; }
.inbox-card-copy form { margin: -.55rem 0 -.7rem; }
.inbox-card > form { flex: none; }
.inbox-card.is-trade .inbox-card-avatar { border: 1.5px solid color-mix(in srgb, var(--rarity-color, #c9e4f2) 55%, #1c2640); }
.inbox-card.is-collect { background: rgba(255,191,63,.04); border-color: var(--arcade-amber); box-shadow: 0 0 14px rgba(255,191,63,.35), inset 0 0 12px rgba(255,191,63,.1); }
.inbox-card.is-collect .inbox-card-kicker { color: #ffcf5a; text-shadow: 0 0 8px rgba(255,191,63,.8); }
.inbox-card-prize { background: radial-gradient(circle, #3a2a08, #120c02); box-shadow: inset 0 0 0 1.5px rgba(255,191,63,.6); color: #ffcf5a; text-shadow: 0 0 10px var(--arcade-amber); }

/* ---------- Inbox: compact feed ---------- */
.inbox-feed { list-style: none; margin: 0; padding: 0; }
.inbox-row { align-items: center; border-bottom: 1px dashed rgba(83,224,255,.12); display: flex; font-size: 1.2rem; gap: .5rem; line-height: 1.05; min-height: 1.75rem; padding: .2rem 0; }
.inbox-row-text { color: #d9cfb2; flex: 1; min-width: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.inbox-row-text b { color: #ffcf5a; font-weight: 400; text-shadow: 0 0 6px rgba(255,191,63,.6); }
.inbox-row-text small { color: #8a7a5a; font-size: 1rem; }
.inbox-row time { color: rgba(255,244,214,.5); flex: none; font-size: 1.1rem; }
.inbox-row.is-new .inbox-row-text { color: var(--arcade-cream); }
.inbox-row.is-new .inbox-row-text::before { background: var(--arcade-amber); border-radius: 50%; box-shadow: 0 0 6px var(--arcade-amber); content: ''; display: inline-block; height: .45rem; margin: 0 .4rem .15rem 0; vertical-align: middle; width: .45rem; }
.inbox-pager { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 1rem; }
.inbox-pager a { align-items: center; color: var(--arcade-cyan); display: flex; font-size: 1.3rem; min-height: 44px; text-decoration: none; }
.inbox-pager a[rel=next] { justify-content: flex-end; }
.inbox-pager > span { color: #56708a; font-size: 1.15rem; }

/* ---------- Trades: offer cards ---------- */
.trade-card { background: linear-gradient(180deg, #0b1122, #070b16); border: 2px solid var(--arcade-red-bright); box-shadow: 0 0 14px rgba(255,74,94,.4), inset 0 0 12px rgba(255,74,94,.1); margin-bottom: .8rem; padding: .6rem .65rem .65rem; }
.trade-card.is-outgoing { border: 1.5px solid rgba(83,224,255,.7); box-shadow: 0 0 10px rgba(83,224,255,.22), inset 0 0 12px rgba(0,0,0,.4); padding-bottom: .15rem; }
.trade-card-head { align-items: center; display: flex; gap: .55rem; }
.loyalty-main .trade-card-avatar { align-items: center; background: #192a4a; border-radius: 50%; box-shadow: 0 0 0 2px var(--arcade-red-bright), 0 0 10px rgba(255,74,94,.5); color: #56708a; display: flex; flex: 0 0 2.6rem; height: 2.6rem; justify-content: center; object-fit: cover; position: relative; width: 2.6rem; z-index: 3; }
.is-outgoing .trade-card-avatar { box-shadow: 0 0 0 2px var(--arcade-cyan), 0 0 10px rgba(83,224,255,.5); }
.trade-card-who { color: var(--arcade-cream); display: flex; flex-direction: column; font-size: 1.3rem; line-height: 1; min-width: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.trade-card-who b { color: #ff8a98; font-family: 'Silkscreen', monospace; font-size: .7rem; font-weight: 400; letter-spacing: .14em; margin-bottom: .15rem; text-shadow: 0 0 6px rgba(255,74,94,.8); }
.is-outgoing .trade-card-who b { color: var(--arcade-cyan); text-shadow: 0 0 6px rgba(83,224,255,.6); }
.trade-card-when { color: #b58a3a; flex: none; font-size: 1.1rem; margin-left: auto; }
.trade-card-swap { align-items: start; display: grid; gap: .3rem; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); margin: .65rem 0 .7rem; }
.trade-card-arrow { align-self: center; color: var(--arcade-amber); font-size: 1.9rem; margin-top: -1.4rem; text-shadow: 0 0 8px rgba(255,191,63,.8); }
.trade-item { align-items: center; display: flex; flex-direction: column; gap: .3rem; min-width: 0; text-align: center; }
.trade-item-art { align-items: center; aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #141d33, #070b16 80%); border: 1.5px solid color-mix(in srgb, var(--rarity-color, #c9e4f2) 55%, #1c2640); border-radius: 6px; box-shadow: 0 0 10px var(--rarity-glow, transparent); color: #3a4866; display: flex; font-size: 2rem; justify-content: center; overflow: hidden; position: relative; width: 4.6rem; z-index: 3; }
.trade-item-art img { height: 100%; object-fit: cover; width: 100%; }
.trade-item-copy { color: var(--arcade-cream); display: flex; flex-direction: column; font-size: 1.15rem; line-height: 1; max-width: 100%; overflow-wrap: anywhere; text-transform: uppercase; }
.trade-item-copy small { color: var(--arcade-cyan); font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .12em; margin-bottom: .2rem; }
.trade-card-actions { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }
.loyalty-main .inbox-screen .trade-card-actions button { width: 100%; }
.loyalty-main .inbox-screen form.trade-card-cancel { display: flex; justify-content: center; width: 100%; }
.trades-new { box-sizing: border-box; display: flex; font-size: .9rem; letter-spacing: .14em; margin: 1.2rem 0 .5rem; min-height: 3.1rem; width: 100%; }
.trades-fine { color: #8a6a2a; font-size: 1.05rem; line-height: 1.1; margin: .3rem 0 0; text-align: center; }
.trades-past { border-top: 1px dashed rgba(83,224,255,.25); margin-top: 1.2rem; }
.trades-past summary { align-items: center; color: #56708a; cursor: pointer; display: flex; font-size: 1.2rem; list-style: none; min-height: 44px; }
.trades-past summary::-webkit-details-marker { display: none; }
.trades-past summary::before { content: '▸ '; white-space: pre; }
.trades-past[open] summary::before { content: '▾ '; }
.trades-status { color: #56708a; flex: none; font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.trades-status.is-accepted { color: #65ff9a; text-shadow: 0 0 6px rgba(101,255,154,.5); }

/* ---------- Trades: builder ---------- */
.trade-players { display: grid; gap: .55rem; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: .6rem; }
.trade-player { align-items: center; color: #d6f7ff; display: flex; flex-direction: column; font-size: 1.05rem; gap: .25rem; min-height: 5rem; min-width: 0; text-decoration: none; }
.loyalty-main .trade-player img, .trade-player-blank { border-radius: 50%; box-shadow: 0 0 0 2px var(--arcade-cyan), 0 0 12px rgba(83,224,255,.55); display: block; height: 3.45rem; object-fit: cover; position: relative; width: 3.45rem; z-index: 3; }
.trade-player-blank { align-items: center; background: #192a4a; color: #56708a; display: flex; font-size: 1.8rem; justify-content: center; }
.trade-player span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.trade-window-tabs { border-bottom: 1px solid rgba(83,224,255,.3); display: flex; justify-content: space-between; overflow-x: auto; padding: 0 .4rem; }
.trade-window-tabs[hidden] { display: none; }
.loyalty-main .trade-window-tabs button { align-items: baseline; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none; color: #56708a; cursor: pointer; display: flex; flex: none; font-family: 'VT323', monospace; font-size: 1.15rem; font-weight: 400; gap: .12rem; letter-spacing: 0; margin: 0; min-height: 44px; padding: .5rem .15rem .15rem; text-transform: none; width: auto; }
.loyalty-main .trade-window-tabs button small { font-size: .8rem; }
.loyalty-main .trade-window-tabs button[aria-pressed=true] { border-bottom-color: var(--arcade-amber); color: #fff4d6; text-shadow: 0 0 6px rgba(255,191,63,.8); }
.trade-grid { display: grid; gap: .5rem .45rem; grid-template-columns: repeat(4, minmax(0,1fr)); max-height: 20.5rem; overflow-y: auto; overscroll-behavior: contain; padding: .6rem; }
.trade-window-empty { color: #56708a; font-size: 1.2rem; margin: 0; padding: 1.2rem 1rem; text-align: center; }
.trade-tile { background: none; border: 0; box-shadow: none; color: inherit; cursor: pointer; font: inherit; margin: 0; padding: 0; text-transform: none; display: flex; flex-direction: column; gap: .2rem; min-width: 0; position: relative; }
.trade-tile[hidden] { display: none; }
.trade-tile-art { align-items: center; aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #141d33, #070b16 80%); border: 1px solid color-mix(in srgb, var(--rarity-color, #c9e4f2) 40%, #1c2640); border-radius: 6px; box-shadow: inset 2px 2px 0 rgba(0,0,0,.8), inset -2px -2px 0 rgba(80,100,150,.22); color: #3a4866; display: flex; font-size: 1.8rem; justify-content: center; position: relative; transition: transform .08s; z-index: 3; }
.trade-tile-art img { border-radius: 4px; height: 84%; object-fit: cover; width: 84%; }
.trade-tile-art b { bottom: 1px; color: #fff; font-size: 1.25rem; font-weight: 400; line-height: 1; position: absolute; right: 4px; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.trade-tile-name { -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #8ea3b8; display: -webkit-box; font-size: .95rem; line-height: .95; overflow: hidden; text-align: center; text-transform: uppercase; }
.trade-tile:active .trade-tile-art { transform: scale(.94); }

/* ---------- Settings ---------- */
.settings-form { margin-top: .6rem; }
.settings-field label { align-items: baseline; color: var(--arcade-cyan); display: flex; font-family: 'Silkscreen', monospace; font-size: .72rem; gap: .5rem; justify-content: space-between; letter-spacing: .18em; margin: 0 0 .4rem; text-shadow: 0 0 6px rgba(83,224,255,.5); }
.settings-field label span { color: #3f7d86; font-size: .7rem; letter-spacing: .12em; text-shadow: none; }
.loyalty-main .settings-field input#display_name, .loyalty-main .settings-field input#username { background: #03050a; border: 1.5px solid rgba(83,224,255,.45); border-radius: 8px; box-shadow: none; box-sizing: border-box; color: var(--arcade-cream); font-family: 'VT323', monospace; font-size: 1.8rem; height: 3.4rem; margin: 0; padding: 0 .8rem; width: 100%; }
.loyalty-main .settings-field input#display_name:focus, .loyalty-main .settings-field input#username:focus { border-color: var(--arcade-cyan); box-shadow: 0 0 10px rgba(83,224,255,.35); outline: none; }
.settings-identity { display: grid; gap: 0; margin: .9rem 0 .2rem; }
.settings-identity > div { align-items: baseline; border-bottom: 1px dashed rgba(83,224,255,.18); display: flex; gap: .8rem; justify-content: space-between; min-height: 2.3rem; }
.settings-identity dt { color: var(--arcade-cyan); flex: none; font-family: 'Silkscreen', monospace; font-size: .72rem; letter-spacing: .16em; }
.settings-identity dd { color: #d9cfb2; font-size: 1.25rem; margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.settings-toggle { align-items: center; border-bottom: 1px dashed rgba(83,224,255,.18); cursor: pointer; display: flex; gap: .9rem; justify-content: space-between; min-height: 3.6rem; padding: .45rem 0; }
.settings-toggle-copy { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.settings-toggle-copy b { color: var(--arcade-cream); font-size: 1.4rem; font-weight: 400; }
.settings-toggle-copy small { color: #8a7a5a; font-size: 1.05rem; }
.loyalty-main .settings-toggle .settings-switch { -webkit-appearance: none; appearance: none; background: #121827; border: 2px solid #3a4866; border-radius: 999px; box-shadow: inset 0 2px 6px rgba(0,0,0,.7); cursor: pointer; flex: none; height: 44px; margin: 0; min-height: 44px; padding: 0; position: relative; transition: background .15s, border-color .15s, box-shadow .15s; width: 76px; }
.loyalty-main .settings-toggle .settings-switch::before { background: #56708a; border-radius: 50%; box-shadow: 0 2px 3px rgba(0,0,0,.6); content: ''; height: 32px; left: 4px; position: absolute; top: 4px; transition: transform .15s, background .15s; width: 32px; }
.loyalty-main .settings-toggle .settings-switch::after { color: #56708a; content: 'OFF'; font-family: 'Silkscreen', monospace; font-size: .7rem; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.loyalty-main .settings-toggle .settings-switch:checked, .loyalty-main .settings-toggle .settings-switch[aria-pressed=true] { background: rgba(83,224,255,.14); border-color: var(--arcade-cyan); box-shadow: 0 0 10px rgba(83,224,255,.45), inset 0 0 8px rgba(83,224,255,.2); }
.loyalty-main .settings-toggle .settings-switch:checked::before, .loyalty-main .settings-toggle .settings-switch[aria-pressed=true]::before { background: #d6f7ff; box-shadow: 0 0 8px var(--arcade-cyan), 0 0 16px rgba(83,224,255,.7); transform: translateX(32px); }
.loyalty-main .settings-toggle .settings-switch:checked::after, .loyalty-main .settings-toggle .settings-switch[aria-pressed=true]::after { color: var(--arcade-cyan); content: 'ON'; left: 10px; right: auto; }
.loyalty-main .settings-toggle .settings-switch:focus-visible { outline: 2px solid var(--arcade-cream); outline-offset: 3px; }
.loyalty-main .inbox-screen button.settings-save { font-size: .9rem; letter-spacing: .16em; margin-top: 1.1rem; min-height: 3.1rem; width: 100%; }
.inbox-screen .settings-signout { box-sizing: border-box; display: flex; font-size: .85rem; letter-spacing: .16em; margin-top: 1.6rem; min-height: 3rem; width: 100%; }
@media (prefers-reduced-motion: reduce) { .loyalty-main .settings-toggle .settings-switch, .loyalty-main .settings-toggle .settings-switch::before, .trade-tile-art { transition: none; } }

/* ---------- Your Stats ---------- */
.stats-table { border-collapse: collapse; margin-top: .9rem; width: 100%; }
.stats-table caption { caption-side: top; }
.stats-table tr { border-bottom: 1px dashed rgba(255,191,63,.18); }
.stats-table th { color: #d9cfb2; font-family: 'VT323', monospace; font-size: 1.35rem; font-weight: 400; letter-spacing: .03em; padding: .35rem 0; text-align: left; }
.stats-table td { padding: .35rem 0; text-align: right; white-space: nowrap; }
.stats-table td strong { color: #ffcf5a; font-size: 1.75rem; font-weight: 400; line-height: 1; text-shadow: 0 0 8px rgba(255,191,63,.55); }
.stats-table td small { color: #8a7a5a; font-size: 1.05rem; margin-left: .45rem; }
.stats-nights { display: grid; gap: .3rem; grid-template-columns: repeat(7, minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.stats-night { align-items: center; display: flex; flex-direction: column; gap: .3rem; }
.stats-night i { border: 2px solid rgba(255,191,63,.35); border-radius: 50%; height: 1.2rem; width: 1.2rem; }
.stats-night.is-on i { background: #ffcf5a; border-color: #ffcf5a; box-shadow: 0 0 8px var(--arcade-amber), 0 0 18px rgba(255,191,63,.7); }
.stats-night span { color: #56708a; font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .06em; }
.stats-night.is-on span { color: var(--arcade-cyan); }
.settings .inbox-section { margin-top: 1.8rem; }
.inbox-card.is-trade { align-items: flex-start; }
.inbox-card-actions { align-items: center; display: flex; justify-content: space-between; margin-top: .45rem; }
.loyalty-main .inbox-card-copy .inbox-card-actions form { margin: 0; }
.settings-handle { border-bottom: 1px dashed rgba(83,224,255,.18); padding-bottom: 1rem; }

/* Settings, 2026-10-08 (Jesse): handle and email open a note that staff change them; SIGN OUT is a
   small pill under the email; sound is a round blue switch above SAVE. */
.loyalty-main .settings-identity button.settings-ask { text-transform: none; letter-spacing: 0; background: none; border: 0; border-bottom: 1px dashed rgba(83,224,255,.45); border-radius: 0; box-shadow: none; color: #d9cfb2; cursor: pointer; font-family: 'VT323', monospace; font-size: 1.25rem; margin: 0; min-height: 44px; overflow-wrap: anywhere; padding: 0; text-align: right; }
.loyalty-main .settings-identity button.settings-ask:focus-visible { outline: 2px solid var(--arcade-cyan); outline-offset: 2px; }
.inbox-screen .settings-form .settings-signout { align-self: flex-end; display: flex; font-size: .6rem; letter-spacing: .14em; margin: .6rem 0 .4rem auto; min-height: 36px; padding: 0 14px; width: fit-content; }
.settings-ask-pop { background: #151239; border: 2px solid var(--arcade-cyan); border-radius: 16px; box-shadow: 0 0 24px rgba(83,224,255,.4); color: var(--arcade-cream); max-width: min(22rem, calc(100vw - 32px)); padding: 18px 16px 14px; }
.settings-ask-pop::backdrop { background: rgba(4, 6, 16, .7); }
.settings-ask-pop p { font-family: 'VT323', monospace; font-size: 1.5rem; line-height: 1.15; margin: 0 0 14px; }
.loyalty-main .settings-ask-pop button { min-height: 44px; width: 100%; }
.loyalty-main .settings-toggle button.settings-round { align-items: center; background: radial-gradient(circle at 50% 38%, #1a2236, #0a0f1c 70%); border: 2px solid #3a4866; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0,0,0,.6), 0 2px 0 #05070d; color: #56708a; cursor: pointer; display: flex; flex: none; font-family: 'Silkscreen', monospace; font-size: .62rem; height: 56px; justify-content: center; letter-spacing: .08em; margin: 0; min-height: 56px; padding: 0; transition: background .15s, box-shadow .15s, border-color .15s, color .15s; width: 56px; }
.loyalty-main .settings-toggle button.settings-round[aria-pressed=true] { background: radial-gradient(circle at 50% 38%, #b8f3ff, #53e0ff 55%, #1d8fb0 100%); border-color: #b8f3ff; box-shadow: 0 0 10px var(--arcade-cyan), 0 0 22px rgba(83,224,255,.55), inset 0 -4px 8px rgba(0,60,90,.45); color: #04202a; }
.loyalty-main .settings-toggle button.settings-round:active { transform: translateY(1px); }
.loyalty-main .settings-toggle button.settings-round:focus-visible { outline: 2px solid var(--arcade-cream); outline-offset: 3px; }
.settings-round .settings-round-on { display: none; }
.settings-round[aria-pressed=true] .settings-round-on { display: inline; }
.settings-round[aria-pressed=true] .settings-round-off { display: none; }

/* ---------- Inbox, 2026-10-08 (Jesse): drops as art, newcomers, feed rows with pictures ---------- */
.inbox-section-head { align-items: center; display: flex; gap: .6rem; justify-content: space-between; }
.inbox-section-head .inbox-label { margin: 0; }
.inbox-more { font-family: 'Silkscreen', monospace; font-size: .55rem; letter-spacing: .12em; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.inbox-drop-grid { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: .5rem 0 0; padding: 0; }
.inbox-drop { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; text-decoration: none; }
.inbox-drop-art { align-items: center; aspect-ratio: 1; background: #0e1630; border: 2px solid color-mix(in srgb, var(--rarity-color, #53e0ff) 60%, #1c2640); border-radius: 10px; box-shadow: 0 0 8px color-mix(in srgb, var(--rarity-color, #53e0ff) 30%, transparent); color: #3a4866; display: flex; font-family: 'VT323', monospace; font-size: 2rem; justify-content: center; overflow: hidden; }
.inbox-drop-art img { height: 100%; object-fit: cover; width: 100%; }
.inbox-drop-count { background: rgba(3,5,10,.85); border-radius: 8px; color: #fff4d6; font-family: 'VT323', monospace; font-size: 1.05rem; font-weight: 400; line-height: 1; padding: 1px 5px; position: absolute; right: 4px; top: calc(100% - 3.1rem); }
.inbox-drop-new { background: var(--arcade-amber); border-radius: 50%; box-shadow: 0 0 6px var(--arcade-amber); height: 10px; left: 5px; position: absolute; top: 5px; width: 10px; }
.inbox-drop-name { color: #c9d6e8; font-family: 'VT323', monospace; font-size: .95rem; line-height: 1.05; overflow: hidden; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.inbox-drop.is-new .inbox-drop-name { color: var(--arcade-cream); }
.inbox-welcome-strip { display: flex; gap: 10px; list-style: none; margin: .5rem -2px 0; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.inbox-welcome { background: #f3eee2; box-shadow: 0 6px 14px rgba(0,0,0,.6); box-sizing: border-box; display: flex; flex: 0 0 9.5rem; flex-direction: column; gap: 2px; padding: 6px 6px 8px; scroll-snap-align: start; transform: rotate(-1.2deg); }
.inbox-welcome:nth-child(even) { transform: rotate(1.2deg); }
.inbox-welcome img { aspect-ratio: 1; background: #111; display: block; object-fit: cover; width: 100%; }
.inbox-welcome b { color: #2a2118; font-family: 'Yellowtail', cursive; font-size: 1.25rem; font-weight: 400; line-height: 1.1; overflow: hidden; padding-top: 4px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-welcome small { color: #6f6253; font-family: 'Silkscreen', monospace; font-size: .45rem; letter-spacing: .1em; }
.inbox-row { min-height: 2.6rem; }
.inbox-row-pic { align-items: center; background: #0e1630; border: 1px solid #26314d; border-radius: 8px; color: #7fd8ec; display: flex; flex: none; height: 34px; justify-content: center; overflow: hidden; width: 34px; }
.inbox-row-pic svg { height: 20px; width: 20px; }
.inbox-row.has-polaroid .inbox-row-pic { background: #f3eee2; border: 0; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.6); height: 52px; padding: 3px 3px 9px; transform: rotate(-3deg); width: 46px; }
.inbox-row-pic img { display: block; height: 100%; object-fit: cover; width: 100%; }
.inbox-row-text a { color: inherit; text-decoration: none; }
.inbox-row-text a b { text-decoration: underline; text-decoration-color: rgba(255,207,90,.5); text-underline-offset: 3px; }

/* Inbox, round two (2026-10-08): tighter top, golf art and trade pairs on feed rows. */
.inbox.inbox-screen { padding-top: .15rem; }
.inbox .inbox-head { margin: 0; min-height: 0; }
.inbox .inbox-head + .inbox-section { margin-top: .35rem; }
.inbox-row.has-art .inbox-row-pic { background: #120a24; border-color: #5a3a8a; height: 44px; width: 44px; }
.inbox-row.has-art .inbox-row-pic img { height: 80%; object-fit: contain; width: 80%; }
.inbox-row.has-pair .inbox-row-pic { background: none; border: 0; gap: 3px; height: 40px; width: 82px; }
.inbox-row.has-pair .inbox-row-pic img { border: 1.5px solid #3a4866; border-radius: 6px; height: 40px; width: 40px; }
.inbox-row.has-item .inbox-row-pic { border: 1.5px solid #3a4866; height: 42px; width: 42px; }
.inbox-row.has-house .inbox-row-pic { background: #0b1530; border: 1.5px solid #26314d; border-radius: 50%; height: 42px; width: 42px; }
.inbox-row.has-house .inbox-row-pic img { border-radius: 50%; height: 86%; object-fit: cover; width: 86%; }
.inbox-row.has-art .inbox-row-pic { box-shadow: 0 0 8px rgba(160,100,255,.35); }

/* Every feed row's picture sits in one 52px column, so the titles line up (Jesse, 2026-10-08).
   The frame styles the picture inside; a trade's two items stack. */
.inbox-row .inbox-row-pic, .inbox-row.has-polaroid .inbox-row-pic, .inbox-row.has-art .inbox-row-pic, .inbox-row.has-item .inbox-row-pic, .inbox-row.has-house .inbox-row-pic, .inbox-row.has-pair .inbox-row-pic {
  align-items: center; background: none; border: 0; border-radius: 0; box-shadow: none; display: flex; flex: 0 0 52px; flex-direction: column; gap: 3px; height: auto; justify-content: center; overflow: visible; padding: 0; transform: none; width: 52px;
}
.inbox-row .inbox-row-pic svg { background: #0e1630; border: 1px solid #26314d; border-radius: 8px; box-sizing: border-box; color: #7fd8ec; height: 36px; padding: 7px; width: 36px; }
.inbox-row .inbox-row-pic img { display: block; }
.inbox-row.has-polaroid .inbox-row-pic img { background: #f3eee2; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.6); box-sizing: border-box; height: 54px; object-fit: cover; padding: 3px 3px 9px; transform: rotate(-3deg); width: 46px; }
.inbox-row.has-art .inbox-row-pic img { background: #120a24; border: 1px solid #5a3a8a; border-radius: 8px; box-shadow: 0 0 8px rgba(160,100,255,.35); box-sizing: border-box; height: 44px; object-fit: contain; padding: 5px; width: 44px; }
.inbox-row.has-item .inbox-row-pic img { border: 1.5px solid #3a4866; border-radius: 8px; box-sizing: border-box; height: 44px; object-fit: cover; width: 44px; }
.inbox-row.has-house .inbox-row-pic img { background: #0b1530; border: 1.5px solid #26314d; border-radius: 50%; box-sizing: border-box; height: 42px; object-fit: cover; padding: 2px; width: 42px; }
.inbox-row.has-pair .inbox-row-pic img { border: 1.5px solid #3a4866; border-radius: 6px; box-sizing: border-box; height: 34px; object-fit: cover; width: 34px; }

/* Photos sit above the scanlines (Jesse, 2026-10-08): the welcome polaroids, frame and all, and
   polaroid thumbnails in the feed. Game and item art keeps the screen's scanlines. */
.inbox-welcome { position: relative; z-index: 3; }
.inbox-row.has-polaroid .inbox-row-pic { position: relative; z-index: 3; }
/* Inbox polaroids zoom (the Photo Booth's lightbox). */
.inbox-zoom { cursor: zoom-in; display: block; }
.inbox-zoom:focus-visible { outline: 2px solid var(--arcade-cyan); outline-offset: 3px; }
.inbox-welcome .inbox-zoom img { aspect-ratio: 1; background: #111; display: block; object-fit: cover; width: 100%; }
.inbox .booth-lightbox-frame figcaption { color: #2a2118; font-family: 'Yellowtail', cursive; font-size: 1.7rem; line-height: 1.1; padding-top: 8px; text-transform: none; }
.inbox .booth-lightbox-frame figcaption[hidden] { display: none; }

/* Trade Items (Jesse, 2026-10-09): YOU ⇄ THEM, a staging area, sheets and a HOW MANY popup. */
.loyalty-main .inbox-screen.trade-new { padding-bottom: 5.5rem; }
.trade-new .inbox-head { align-items: center; }
.loyalty-main .trade-info-link { background: none; border: 1.5px solid rgba(83,224,255,.6); border-radius: 999px; box-shadow: none; color: var(--arcade-cyan); cursor: pointer; font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .16em; margin: 0 0 0 auto; min-height: 44px; padding: 0 1rem; width: auto; }
.trade-faces { align-items: stretch; display: grid; gap: .4rem; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); margin: .3rem 0 .9rem; }
.trade-faces-arrow { align-self: center; color: var(--arcade-amber); font-size: 2rem; text-shadow: 0 0 8px rgba(255,191,63,.8); }
.loyalty-main .trade-face { align-items: center; background: linear-gradient(180deg, #0b1122, #070b16); border: 2px solid var(--arcade-cyan); border-radius: 14px; box-shadow: 0 0 14px rgba(83,224,255,.3), inset 0 0 16px rgba(0,0,0,.6); color: var(--arcade-cream); cursor: pointer; display: flex; flex-direction: column; font: inherit; gap: .4rem; margin: 0; min-width: 0; padding: .7rem .4rem .6rem; text-transform: none; width: 100%; }
.loyalty-main .trade-face.is-them { border-color: var(--arcade-red-bright); box-shadow: 0 0 14px rgba(255,74,94,.35), inset 0 0 16px rgba(0,0,0,.6); }
.loyalty-main .trade-face img, .trade-face .trade-player-blank { border-radius: 50%; box-shadow: 0 0 0 2px var(--arcade-cyan), 0 0 12px rgba(83,224,255,.55); display: block; height: 4.4rem; object-fit: cover; position: relative; width: 4.4rem; z-index: 3; }
.loyalty-main .trade-face.is-them img, .trade-face.is-them .trade-player-blank { box-shadow: 0 0 0 2px var(--arcade-red-bright), 0 0 12px rgba(255,74,94,.55); }
.trade-face .trade-player-blank { font-size: 2.2rem; }
.trade-face-words { align-items: center; display: flex; flex-direction: column; line-height: 1; max-width: 100%; min-width: 0; text-align: center; }
.trade-face-words small { color: var(--arcade-cyan); font-family: 'Silkscreen', monospace; font-size: .62rem; letter-spacing: .16em; }
.is-them .trade-face-words small { color: #ff8a98; }
.trade-face-words b { font-size: 1.35rem; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.trade-face-words em { color: #8a6a2a; font-size: .95rem; font-style: normal; margin-top: .15rem; }
.trade-stage { display: grid; gap: .6rem; }
.trade-stage-side { background: #03050a; border: 1.5px dashed rgba(83,224,255,.45); border-radius: 12px; padding: .5rem .55rem .55rem; }
.trade-stage-side.is-get { border-color: rgba(255,74,94,.5); }
.loyalty-main .trade-stage-title { color: var(--arcade-cyan); font-family: 'Silkscreen', monospace; font-size: .68rem; font-weight: 400; letter-spacing: .2em; margin: 0 0 .4rem; }
.loyalty-main .is-get .trade-stage-title { color: #ff8a98; }
.trade-stage-list { display: grid; gap: .35rem; list-style: none; margin: 0 0 .4rem; padding: 0; }
.trade-stage-list:empty { display: none; }
.trade-stage-chip { align-items: center; background: linear-gradient(180deg, #0f1830, #0a0f1c); border: 1px solid #26314d; border-radius: 10px; display: flex; }
.loyalty-main .trade-stage-chip-body { align-items: center; background: none; border: 0; box-shadow: none; color: var(--arcade-cream); cursor: pointer; display: flex; flex: 1; font: inherit; gap: .55rem; margin: 0; min-height: 52px; min-width: 0; padding: .3rem .5rem; text-align: left; text-transform: none; }
.loyalty-main .trade-stage-chip-body:disabled { cursor: default; opacity: 1; }
.trade-stage-chip-body .trade-tile-art { flex: 0 0 2.6rem; width: 2.6rem; }
.trade-stage-chip-name { flex: 1; font-size: 1.25rem; line-height: 1; min-width: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.trade-stage-chip-body > b { color: var(--arcade-amber); font-size: 1.45rem; font-weight: 400; text-shadow: 0 0 6px rgba(255,191,63,.6); }
.loyalty-main .trade-stage-chip-x { background: none; border: 0; border-left: 1px solid #26314d; border-radius: 0; box-shadow: none; color: #f6cdd3; cursor: pointer; font-size: 1.6rem; margin: 0; min-height: 52px; padding: 0; width: 48px; }
.trade-stage-empty { color: #56708a; font-size: 1.15rem; margin: 0 0 .35rem; }
.trade-stage-gift { align-items: center; color: #ffcf5a; display: flex; font-size: 1.2rem; gap: .45rem; margin: 0 0 .35rem; }
.trade-stage-gift svg, .trade-sheet-gift svg { flex: none; height: 1.6rem; width: 1.6rem; }
.trade-stage-empty[hidden], .trade-stage-gift[hidden] { display: none; }
.loyalty-main .trade-stage-add { background: none; border: 1.5px solid rgba(83,224,255,.45); border-radius: 999px; box-shadow: none; color: #b8f3ff; cursor: pointer; font-family: 'Silkscreen', monospace; font-size: .66rem; letter-spacing: .14em; margin: 0; min-height: 44px; padding: 0 1rem; width: 100%; }
.loyalty-main .is-get .trade-stage-add { border-color: rgba(255,74,94,.5); color: #f6cdd3; }
/* The confirm bar: full width, opaque, fixed above the tab bar (it never rides up). */
.trade-send { align-items: center; background: #060912; border-top: 2px solid var(--arcade-amber); bottom: 84px; box-shadow: 0 -8px 24px rgba(0,0,0,.7); box-sizing: border-box; display: flex; gap: .7rem; left: 0; padding: .55rem max(16px, calc((100vw - 40rem) / 2)); position: fixed; right: 0; z-index: 21; }
.trade-send p { color: var(--arcade-cream); flex: 1; font-size: 1.15rem; line-height: 1.05; margin: 0; min-width: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.loyalty-main .inbox-screen .trade-send button { flex: none; min-width: 9rem; }
.loyalty-main .inbox-screen .trade-send button:disabled { filter: grayscale(.8); opacity: .55; }
/* Sheets (your items, players, theirs) and popups (HOW MANY, INFO). */
.trade-sheet, .trade-qty-pop { background: linear-gradient(180deg, #0b1122, #060912); border: 2px solid var(--arcade-cyan); border-radius: 16px; box-shadow: 0 0 24px rgba(83,224,255,.35); box-sizing: border-box; color: var(--arcade-cream); font-family: 'VT323', monospace; max-height: 86vh; max-width: min(30rem, calc(100vw - 20px)); padding: 0; width: 100%; }
.trade-sheet::backdrop, .trade-qty-pop::backdrop { background: rgba(3,4,10,.8); }
.trade-sheet[open] { display: flex; flex-direction: column; margin: auto auto 10px; }
.trade-sheet-head { align-items: center; border-bottom: 1px solid rgba(83,224,255,.35); display: flex; padding: .3rem .3rem .3rem .8rem; }
.trade-sheet-head h2 { color: #b8f3ff; flex: 1; font-family: 'Silkscreen', monospace; font-size: .76rem; font-weight: 400; letter-spacing: .2em; margin: 0; text-shadow: 0 0 6px var(--arcade-cyan); }
.trade-sheet-close { background: none; border: 0; color: #b8f3ff; cursor: pointer; font-size: 2rem; height: 48px; line-height: 1; width: 48px; }
.trade-sheet .trade-grid { max-height: none; overflow-y: auto; }
.trade-sheet .player-pick, .trade-sheet .trade-recent, .trade-sheet .trade-players { margin-left: .7rem; margin-right: .7rem; }
.trade-sheet-fine { color: #56708a; font-size: 1rem; margin: 0; padding: 0 .8rem .7rem; }
.trade-sheet-gift { align-items: center; background: rgba(255,191,63,.08); border: 1.5px solid var(--arcade-amber); border-radius: 12px; color: #ffcf5a; cursor: pointer; display: flex; font: inherit; gap: .6rem; margin: .6rem .6rem 0; min-height: 52px; padding: .3rem .8rem; text-align: left; }
.trade-sheet-gift span { display: flex; flex-direction: column; font-size: 1.1rem; line-height: 1; }
.trade-sheet-gift b { font-family: 'Silkscreen', monospace; font-size: .7rem; font-weight: 400; letter-spacing: .14em; }
.trade-sheet-switch { background: none; border: 0; color: var(--arcade-cyan); cursor: pointer; font: inherit; font-size: 1.15rem; min-height: 44px; padding: 0 .8rem .4rem; }
.trade-tile.is-staged .trade-tile-art { border-color: var(--arcade-amber); box-shadow: 0 0 0 2px var(--arcade-amber), 0 0 16px rgba(255,191,63,.6); }
.trade-tile.is-staged .trade-tile-art::after { background: var(--arcade-amber); border-radius: 3px; color: #1a1002; content: '✓'; font-size: 1rem; left: 3px; line-height: 1; padding: 0 .2rem; position: absolute; top: 3px; }
.trade-tile.is-staged .trade-tile-name { color: #ffcf5a; }
.trade-tile:focus-visible .trade-tile-art { outline: 2px solid var(--arcade-cream); outline-offset: 2px; }
.trade-qty-pop { border-color: var(--arcade-amber); box-shadow: 0 0 24px rgba(255,191,63,.35); max-width: min(24rem, calc(100vw - 20px)); padding: 1rem; }
.trade-qty-pop[open] { display: grid; gap: .7rem; }
.trade-qty-pop-item { align-items: center; display: flex; gap: .7rem; }
.trade-qty-pop-art { flex: 0 0 4rem; width: 4rem; }
.trade-qty-pop-item > span:last-child { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.trade-qty-pop-item small { color: var(--arcade-amber); font-family: 'Silkscreen', monospace; font-size: .62rem; letter-spacing: .16em; }
.trade-qty-pop-item b { font-size: 1.6rem; font-weight: 400; overflow-wrap: anywhere; text-transform: uppercase; }
.trade-qty-pop-item em { color: #8fa6cf; font-size: 1.05rem; font-style: normal; }
.trade-qty-pop-label { color: #ffcf5a; font-family: 'Silkscreen', monospace; font-size: .7rem; letter-spacing: .2em; text-align: center; }
.trade-qty-pop-row { display: grid; gap: .5rem; grid-template-columns: 3.2rem minmax(0,1fr) 3.2rem; }
.loyalty-main .trade-qty-pop-row input, .trade-qty-pop-row input { background: #03050a; border: 2px solid var(--arcade-amber); border-radius: 10px; color: #fff4d6; font-family: 'VT323', monospace; font-size: 2.2rem; min-height: 52px; text-align: center; width: 100%; }
.trade-qty-pop-slider { accent-color: var(--arcade-amber); height: 44px; margin: 0; width: 100%; }
.trade-qty-pop-ends { display: flex; justify-content: space-between; margin-top: -.6rem; }
.trade-qty-pop-ends button { background: none; border: 0; color: #8fa6cf; cursor: pointer; font: inherit; font-size: 1.15rem; min-height: 40px; padding: 0 .2rem; }
.trade-qty-pop-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.trade-qty-pop-actions button[hidden] { display: none; }
.trade-qty-pop-actions .arcade-pill-primary { flex: 1; }
.trade-qty-pop-actions [data-trade-qty-remove] { margin-right: auto; }
.trade-info { border-color: var(--arcade-cyan); }
.trade-info h2 { color: #b8f3ff; font-family: 'Silkscreen', monospace; font-size: .78rem; font-weight: 400; letter-spacing: .2em; margin: 0; text-align: center; }
.trade-info ol { display: grid; font-size: 1.2rem; gap: .5rem; line-height: 1.1; margin: 0; padding-left: 1.3rem; }
.trade-info b { color: #ffcf5a; font-weight: 400; }
/* The legacy `.loyalty-main button` pill rule must not reach the sheets' plain buttons. */
.loyalty-main button.trade-tile, .loyalty-main button.trade-player, .loyalty-main button.trade-sheet-close, .loyalty-main button.trade-sheet-gift, .loyalty-main button.trade-sheet-switch, .loyalty-main .trade-qty-pop-ends button { background: none; border-radius: 0; box-shadow: none; display: flex; font-family: 'VT323', monospace; letter-spacing: 0; margin: 0; text-shadow: none; text-transform: none; width: auto; }
.loyalty-main button.trade-tile { border: 0; flex-direction: column; padding: 0; width: 100%; }
.loyalty-main button.trade-player { align-items: center; border: 0; color: #d6f7ff; flex-direction: column; font-size: 1.05rem; padding: 0; width: 100%; }
.loyalty-main button.trade-sheet-close { align-items: center; border: 0; color: #b8f3ff; font-size: 2rem; height: 48px; justify-content: center; padding: 0; width: 48px; }
.loyalty-main button.trade-sheet-gift { align-items: center; background: rgba(255,191,63,.08); border: 1.5px solid var(--arcade-amber); border-radius: 12px; color: #ffcf5a; flex: none; flex-direction: row; font-size: 1.1rem; margin: .6rem .6rem 0; padding: .3rem .8rem; }
.loyalty-main button.trade-sheet-switch { align-self: center; border: 0; color: var(--arcade-cyan); flex: none; font-size: 1.15rem; justify-content: center; padding: 0 .8rem .4rem; }
.loyalty-main .trade-qty-pop-ends button { border: 0; color: #8fa6cf; font-size: 1.15rem; padding: 0 .2rem; }
.trade-sheet-head, .trade-sheet .trade-window-tabs, .trade-sheet-fine, .trade-sheet .trade-window-empty, .trade-sheet .trade-recent, .trade-sheet .trade-players { flex: none; }
.trade-sheet .trade-grid { flex: 1 1 auto; min-height: 0; }
.trade-sheet .trade-players { padding-bottom: .8rem; }
.loyalty-main .trade-sheet form.player-pick { box-sizing: border-box; flex: none; padding: .7rem .8rem 0; width: 100%; }

/* ACCOUNT PIN on Settings (components/pin_card.html, pin_pages.rs) */
.settings-pin { background: linear-gradient(180deg, rgba(14,21,48,.92), rgba(8,12,28,.92)); border: 2px solid #3a4866; border-radius: 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: .7rem; margin-top: 1.8rem; padding: 1rem 1rem 1.1rem; scroll-margin-top: 1rem; }
.settings-pin.is-on { border-color: var(--arcade-cyan); box-shadow: 0 0 18px rgba(83,224,255,.22); }
.settings-pin-head { align-items: center; display: flex; gap: .6rem; }
.settings-pin-lock { color: #56708a; display: grid; flex: none; height: 32px; place-items: center; width: 32px; }
.settings-pin.is-on .settings-pin-lock { color: var(--arcade-cyan); filter: drop-shadow(0 0 6px rgba(83,224,255,.7)); }
.settings-pin-lock svg { height: 28px; width: 28px; }
.settings-pin-head h2 { color: var(--arcade-cream); flex: 1; font-family: 'Silkscreen', monospace; font-size: .8rem; font-weight: 400; letter-spacing: .18em; margin: 0; }
.settings-pin-state { color: #8a7a5a; font-family: 'Silkscreen', monospace; font-size: .6rem; letter-spacing: .12em; text-align: right; }
.settings-pin.is-on .settings-pin-state { color: var(--arcade-cyan); text-shadow: 0 0 6px rgba(83,224,255,.5); }
.settings-pin-why, .settings-pin-step { color: #d9cfb2; font-size: 1.3rem; line-height: 1.15; margin: 0; }
.settings-pin-step b { color: var(--arcade-cream); font-weight: 400; overflow-wrap: anywhere; }
.settings-pin-locked { background: rgba(255,48,72,.1); border: 1.5px solid var(--arcade-red); border-radius: 12px; color: #ffd0d6; display: flex; flex-direction: column; font-size: 1.35rem; gap: .2rem; margin: 0; padding: .7rem .9rem; }
.settings-pin-locked b { color: var(--arcade-red-bright); font-family: 'Silkscreen', monospace; font-size: .7rem; font-weight: 400; letter-spacing: .16em; }
.loyalty-main .inbox-screen form.settings-pin-form { display: flex; flex-direction: column; gap: .8rem; margin: 0; }
.loyalty-main .settings-field input.settings-pin-input { background: #03050a; border: 1.5px solid rgba(83,224,255,.45); border-radius: 10px; box-shadow: none; box-sizing: border-box; color: var(--arcade-cream); font-family: 'VT323', monospace; font-size: 2.2rem; height: 3.8rem; letter-spacing: .5em; margin: 0; padding: 0 .8rem; text-align: center; width: 100%; }
.loyalty-main .settings-field input.settings-pin-input:focus { border-color: var(--arcade-cyan); box-shadow: 0 0 10px rgba(83,224,255,.35); outline: none; }
.loyalty-main .settings-field input.settings-pin-input.is-code { border-color: rgba(255,191,63,.6); color: var(--arcade-amber); }
.loyalty-main .inbox-screen .settings-pin form { margin: 0; max-width: none; }
.loyalty-main .inbox-screen .settings-pin button.settings-save { margin-top: .2rem; }
.loyalty-main .inbox-screen .settings-pin button.settings-save.is-danger { border-color: var(--arcade-red); color: #ffd0d6; }
.settings-pin-actions { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.settings-pin-actions .arcade-pill-secondary { min-height: 3rem; }
.loyalty-main .inbox-screen .settings-pin .settings-pin-link { background: none; border: 0; box-shadow: none; color: var(--arcade-cyan); cursor: pointer; display: flex; font-family: 'Silkscreen', monospace; font-size: .62rem; font-weight: 400; justify-content: center; letter-spacing: .12em; margin: 0; min-height: 44px; padding: 0 .4rem; align-items: center; text-decoration: underline; text-underline-offset: 4px; width: 100%; }

/* The PIN sheet (account_pin.js): what's being confirmed, dots, big keys */
.pin-sheet { background: linear-gradient(180deg, #0b1122, #060912); border: 2px solid var(--arcade-cyan); border-radius: 18px; box-shadow: 0 0 28px rgba(83,224,255,.35); box-sizing: border-box; color: var(--arcade-cream); font-family: 'VT323', monospace; max-height: calc(100dvh - 16px); max-width: min(25rem, calc(100vw - 16px)); overflow-y: auto; padding: 0; width: 100%; }
.pin-sheet[open] { margin: auto auto 8px; }
.pin-sheet::backdrop { background: rgba(3,4,10,.82); }
.pin-sheet-pad { display: flex; flex-direction: column; gap: .7rem; padding: .3rem 1rem 1rem; }
.pin-sheet-pad.is-shake { animation: pin-shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes pin-shake { 15%, 85% { transform: translateX(-4px); } 30%, 70% { transform: translateX(9px); } 45% { transform: translateX(-12px); } 60% { transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .pin-sheet-pad.is-shake { animation: none; } }
.pin-sheet-head { align-items: center; border-bottom: 1px solid rgba(83,224,255,.3); display: flex; gap: .5rem; margin: 0 -1rem; padding: .2rem .3rem .2rem 1rem; }
.pin-sheet-lock { color: var(--arcade-cyan); display: grid; filter: drop-shadow(0 0 6px rgba(83,224,255,.6)); place-items: center; }
.pin-sheet-lock svg { height: 24px; width: 24px; }
.pin-sheet .pin-sheet-title { color: #b8f3ff; flex: 1; font-family: 'Silkscreen', monospace; font-size: .78rem; font-weight: 400; letter-spacing: .2em; margin: 0; text-shadow: 0 0 6px var(--arcade-cyan); }
.pin-sheet-close { background: none; border: 0; color: #b8f3ff; cursor: pointer; font: 400 2.2rem/1 'VT323', monospace; height: 48px; width: 48px; }
.pin-sheet-what { color: var(--arcade-cream); font-size: 1.75rem; line-height: 1.05; margin: .2rem 0 0; overflow-wrap: anywhere; text-align: center; }
.pin-sheet-ask { color: var(--arcade-cyan); font-family: 'Silkscreen', monospace; font-size: .62rem; letter-spacing: .16em; margin: 0; text-align: center; }
.pin-sheet-dots { display: flex; gap: .9rem; justify-content: center; padding: .2rem 0; }
.pin-sheet-dots[hidden], .pin-sheet-keys[hidden], .pin-sheet-ask[hidden] { display: none; }
.pin-sheet-dots i { border: 2px solid #3a4866; border-radius: 50%; height: 18px; transition: background .1s, border-color .1s; width: 18px; }
.pin-sheet-dots i:nth-child(n+5) { border-style: dashed; }
.pin-sheet-dots i.is-on { background: var(--arcade-cyan); border-color: var(--arcade-cyan); border-style: solid; box-shadow: 0 0 10px rgba(83,224,255,.7); }
.pin-sheet-input { height: 1px; left: -9999px; opacity: 0; position: absolute; width: 1px; }
.pin-sheet-msg { color: var(--arcade-muted); font-size: 1.3rem; line-height: 1.1; margin: 0; min-height: 1.2em; text-align: center; }
.pin-sheet-msg.is-bad { color: #ff8a98; }
.pin-sheet-msg:empty { display: none; }
.pin-sheet[data-state="locked"] .pin-sheet-msg, .pin-sheet[data-state="nopin"] .pin-sheet-msg, .pin-sheet[data-state="error"] .pin-sheet-msg { background: rgba(255,48,72,.08); border: 1.5px solid rgba(255,48,72,.55); border-radius: 12px; font-size: 1.45rem; padding: .7rem .8rem; }
.pin-sheet[data-state="nopin"] .pin-sheet-msg { background: rgba(255,191,63,.08); border-color: rgba(255,191,63,.6); color: #ffe2a0; }
.pin-sheet-keys { display: grid; gap: .55rem; grid-template-columns: repeat(3, 1fr); }
.pin-sheet-key { background: #101831; border: 1.5px solid #3a4866; border-radius: 16px; color: #fff; cursor: pointer; font: 400 2.5rem/1 'VT323', monospace; min-height: 64px; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pin-sheet-key:active { background: rgba(83,224,255,.22); border-color: var(--arcade-cyan); }
.pin-sheet-key.is-word { color: var(--arcade-muted); font: 400 .6rem 'Silkscreen', monospace; letter-spacing: .1em; }
.pin-sheet-key[data-key="back"] { font: 400 1.7rem 'VT323', monospace; }
.pin-sheet-key:focus-visible, .pin-sheet-close:focus-visible { outline: 2px solid var(--arcade-cream); outline-offset: 2px; }
.pin-sheet .pin-sheet-ok, .pin-sheet .pin-sheet-set, .pin-sheet .pin-sheet-done { font-size: .85rem; letter-spacing: .16em; min-height: 3.4rem; width: 100%; }
.pin-sheet .pin-sheet-ok[hidden], .pin-sheet .pin-sheet-set[hidden], .pin-sheet .pin-sheet-done[hidden] { display: none; }
.loyalty-site .pin-sheet a.pin-sheet-set { color: #fff; }
.pin-sheet .pin-sheet-ok:disabled { box-shadow: none; opacity: .45; }
@media (max-height: 640px) { .pin-sheet-key { min-height: 52px; } .pin-sheet-what { font-size: 1.5rem; } }

/* The old gift confirmation's PIN */
.gift-confirmation .gift-pin { display: flex; flex-direction: column; gap: .3rem; margin: .6rem 0; }

/* YOUR RUN / BAR RECORD (Jesse, 2026-10-15): a two-way switch over the stats. */
.stats-views { border: 1.5px solid rgba(255,191,63,.45); border-radius: 999px; display: grid; grid-template-columns: 1fr 1fr; margin-top: .8rem; overflow: hidden; }
.stats-views a { align-items: center; color: #d9cfb2; display: flex; font: 400 .7rem 'Silkscreen', monospace; justify-content: center; letter-spacing: .12em; min-height: 44px; text-decoration: none; }
.stats-views a[aria-current='page'] { background: #ffcf5a; color: #1a0d02; }
.stats-night i { align-items: center; color: #1a0d02; display: flex; font: 700 .8rem/1 system-ui, sans-serif; justify-content: center; }
/* BAR RECORD's numbers are green (Jesse, 2026-10-15); the words are YOUR RUN's. */
.stats.is-bar .stats-table td strong { color: #5dff8a; text-shadow: 0 0 8px rgba(93,255,138,.6); }
