/* 3 · Desk Monitor: no zoom. The shop runs inside the monitor's own bezel while the room stays
   around it; one big product card at a time, like a game shop menu. The cart is a paper receipt
   that prints out onto the desk. */
.spc--onscreen { --spc-bg: #1B2340; --spc-fg: #fff; --spc-muted: #B9C2E0; --spc-line: rgba(255, 255, 255, 0.2); --spc-card: #26305A; --spc-accent: #FCAA1A; --spc-accent-fg: #2A1B05; }
.spc--onscreen[data-site='f4f'] { --spc-bg: #161616; --spc-card: #242424; --spc-accent: #D9B45A; --spc-muted: #C9C2B0; }
.spc--onscreen .pc__app { display: block; }
.mon {
  position: absolute; left: 12%; right: 12%; top: 3%; bottom: 25%; padding: 12px 12px 18px; border-radius: 22px;
  background: linear-gradient(180deg, #3A4656, #263445); box-shadow: 0 14px 0 rgba(38, 52, 69, 0.35), 0 26px 40px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.14);
}
.mon::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7DFF9B; box-shadow: 0 0 8px #7DFF9B; }
.mon__glass {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 10px 12px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--spc-card) 80%, #fff) 0%, var(--spc-bg) 70%); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
  animation: monOn 0.45s ease-out;
}
.mon__glass::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 22%, transparent 22%); }
@keyframes monOn { from { filter: brightness(2.2) saturate(0); opacity: 0; } }

.mon__top { display: flex; align-items: center; gap: 6px; }
.mon__coll { flex: 1; min-width: 0; text-align: center; font: 400 clamp(16px, 2.4cqi, 22px)/1.1 var(--heading-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon__nav, .mon__pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); cursor: pointer; font-weight: 700; }
.mon__nav { padding: 0; font-size: 16px; }
.mon__nav:hover, .mon__pill:hover { background: rgba(255, 255, 255, 0.22); }
.mon__cartbtn[aria-expanded='true'] { background: var(--spc-accent); color: var(--spc-accent-fg); }
.mon__count { min-width: 1.2em; }
.mon__off { padding: 0; }
.mon__find { display: flex; gap: 6px; }
.mon__find[hidden] { display: none; }
.mon__find label { flex: 1; }
.mon__find input { width: 100%; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1B2340; font: inherit; }

.mon__stage { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; outline: none; touch-action: pan-y; }
.mon__stage:focus-visible .mon__card { box-shadow: 0 0 0 3px var(--primary-yellow); }
.mon__arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--spc-accent); color: var(--spc-accent-fg); font-size: 22px; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.mon__arrow:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.mon__card { position: relative; height: 100%; min-height: 0; border-radius: 16px; background: var(--spc-card); overflow: hidden; box-shadow: 0 0 0 2px var(--spc-line); }
.mon__card.is-empty { display: grid; place-items: center; padding: 16px; text-align: center; }
.mon__card.is-flipped { animation: monFlip 0.3s ease; }
@keyframes monFlip { from { transform: perspective(900px) rotateY(-70deg); opacity: 0.4; } }
.mon__face { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
.mon__photo { display: grid; place-items: center; min-height: 0; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.55)); }
.mon__photo img { width: 100%; height: 100%; object-fit: contain; }
.mon__pos { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font: 700 12px/1.6 var(--body-font); }
.mon__wish { position: absolute; right: 10px; top: 10px; }
.mon__label { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 18px; min-width: 0; }
.mon__line { margin: 0; font: 700 11px/1.2 var(--body-font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--spc-muted); }
.mon__name { margin: 0; font: 400 clamp(20px, 3.2cqi, 34px)/1.05 var(--heading-font); text-wrap: balance; }
.mon__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.mon__flip { align-self: flex-start; margin-top: 6px; }
.mon__flip kbd { background: rgba(0, 0, 0, 0.2); color: inherit; }
.mon__back { height: 100%; overflow-y: auto; padding: 14px 18px; overscroll-behavior: contain; }
.mon__unflip { margin-bottom: 6px; }
.spc--onscreen .spc-chip input:checked + span { background: var(--spc-accent); color: var(--spc-accent-fg); }
.spc--onscreen .spc-site { color: var(--spc-accent); }
.spc--onscreen .spc-desc { color: var(--spc-muted); }

.mon__strip { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mon__thumb { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.85); cursor: pointer; opacity: 0.6; transition: transform 0.15s ease, opacity 0.15s ease; }
.mon__thumb.is-on { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 3px var(--spc-accent); }
.mon__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mon__keys { margin: 0; text-align: center; font-size: 11px; color: var(--spc-muted); }
.mon__keys kbd { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* the receipt prints out of the desk, below the monitor */
.receipt { position: absolute; z-index: 8; right: 6%; bottom: 0; width: min(330px, 46%); max-height: 70%; display: flex; }
.receipt[hidden] { display: none; }
.receipt__paper {
  position: relative; flex: 1; overflow-y: auto; padding: 16px 16px 26px; background: #FFFDF6; color: #2A2A2A; font: 400 13px/1.45 ui-monospace, 'SFMono-Regular', Menlo, monospace;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25); --spc-fg: #2A2A2A; --spc-muted: #6A6A6A; --spc-line: rgba(0, 0, 0, 0.14); --spc-card: transparent; --spc-accent: #2A2A2A; --spc-accent-fg: #FFFDF6;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt.is-printing .receipt__paper { animation: receiptPrint 0.7s steps(10) 1; }
@keyframes receiptPrint { from { clip-path: inset(100% 0 0 0); transform: translateY(40%); } }
.receipt__h { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px dashed rgba(0, 0, 0, 0.3); font: 700 13px/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.receipt .spc-cart-store { padding: 0; box-shadow: none; border-bottom: 2px dashed rgba(0, 0, 0, 0.25); border-radius: 0; padding-bottom: 10px; }
.receipt .spc-line { grid-template-columns: 36px minmax(0, 1fr) auto; }
.receipt .spc-line img { width: 36px; height: 36px; filter: grayscale(1); }
.receipt .spc-line .spc-line__total { grid-column: 2; }
.receipt .spc-line .spc-link { grid-column: 3; justify-self: end; }
.receipt .spc-checkout { border-radius: 6px; transform: rotate(-1.5deg); box-shadow: 0 0 0 3px #FFFDF6, 0 0 0 5px #C8102E; background: #C8102E; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.receipt__tear { display: block; margin: 8px auto 0; }

@container pc (max-width: 640px) {
  .mon { left: 3%; right: 3%; top: 2%; bottom: 30%; padding: 8px 8px 14px; border-radius: 16px; }
  .mon__glass { padding: 8px; }
  .mon__face { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .mon__label { padding: 10px 12px; }
  .mon__arrow { width: 40px; height: 40px; }
  .mon__stage { gap: 4px; }
  .mon__keys { display: none; }
  .receipt { left: 4%; right: 4%; width: auto; max-height: 64%; }
}
@media (prefers-reduced-motion: reduce) {
  .mon__glass, .mon__card.is-flipped, .receipt.is-printing .receipt__paper { animation: none; }
}
