.market {
  --ink: var(--shop-ink);
  --paper: var(--shop-paper);
  padding: clamp(24px, 3.5vw, 54px) 0 clamp(30px, 4.5vw, 70px);
  background: var(--shop-lavender);
  color: var(--ink);
  border-bottom: 4px solid var(--ink);
  scroll-margin-top: 12px;
}
.market-mast, .market-spread { width: 90%; max-width: 1440px; margin-inline: auto; }
.market-mast { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.market-kicker, .episode-number, .scene-note, .market summary, .market button, .market-counter a {
  font: 700 12px/1.4 'Courier Prime', 'Courier New', monospace;
}
.market-kicker { margin: 0 0 5px; letter-spacing: .08em; }
.market-kicker span { color: #a63842; padding-inline: 3px; }
#store-name { font: 900 clamp(25px, 5.5vw, 82px)/1.02 'Arial Black', Impact, sans-serif; letter-spacing: -.055em; margin: 0; }
.episode-number { transform: rotate(-4deg); margin: 0 5px 5px 0; padding: 5px 10px; color: var(--ink); border: 2px solid var(--ink); background: #ff9d88; white-space: nowrap; }
.market-spread { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(265px, 1fr); gap: clamp(18px, 3vw, 42px); align-items: start; }
.market-stage { container-type: inline-size; position: relative; isolation: isolate; border: 3px solid var(--ink); box-shadow: 4px 5px var(--ink); }
.market-set { position: relative; isolation: isolate; background: #dba74b; }
.market-set:focus-visible { outline: 3px solid var(--shop-violet); outline-offset: 3px; }

.set-image { display: block; width: 100%; height: auto; }
/* Locations follow the fixtures in the 1672 × 941 painting. */
.actor-frame { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.reggie-paper {
  background: url('/market-art/shop-floor.webp') 0 0 / 100% 100% no-repeat;
  clip-path: polygon(37.0% 60%,39.8% 59.7%,40.3% 60.5%,40.8% 64.7%,41.2% 65.4%,38.8% 66%,38.3% 65.1%,37.9% 61.6%);
  transform: translate(.06%,.45%);
}
.market .shop-hit {
  position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4%;
  background: transparent; cursor: pointer; text-decoration: none;
}
.shop-hit::after, .counter-print::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: max(100%, 44px); height: max(100%, 44px);
}
.shop-hit .hit-name {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  padding: 3px 7px; background: var(--shop-ink); color: var(--shop-paper); white-space: nowrap;
  font: bold clamp(11px,1.5cqw,16px)/1.3 'Courier New',monospace; pointer-events: none; opacity: 0;
}
.shop-hit:focus-visible .hit-name { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .shop-hit:hover .hit-name { opacity: 1; } }
.market-set .shop-hit:focus-visible, .market-set .counter-print:focus-visible { outline: 3px dashed #fff3a1; outline-offset: -2px; }
.prop-cabinet { left: .8%; top: 44.2%; width: 11.9%; height: 44%; }
.prop-fortune { left: 13%; top: 37%; width: 11.4%; height: 50%; }
.prop-bomi { left: 24.5%; top: 22.5%; width: 11%; height: 14.2%; }
.prop-reggie { left: 26.5%; top: 45.5%; width: 15%; height: 20.7%; }
.prop-nani { left: 42.8%; top: 37.8%; width: 13.8%; height: 27.6%; }
.prop-dubu { left: 59.2%; top: 39.8%; width: 23%; height: 46%; }
.tester-lettering { position: absolute; top: 85%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #275342; font: bold italic 3.45cqw/.92 Georgia,serif; text-shadow: .08cqw .14cqw #c1d6a2; }
.tester-lettering small { display: block; margin-top: .48cqw; font: bold .98cqw/1 'Courier New',monospace; letter-spacing: .21em; text-transform: uppercase; }
.prop-valet { left: 83.1%; top: 39.2%; width: 12.9%; height: 48.5%; }
.market-set .shop-tv { left: 8.9%; top: 18.9%; width: 10.9%; height: 15%; }
.shop-tv .tv-glass {
  position: absolute; overflow: hidden; left: 30.6%; top: 15%; width: 59%; height: 61.8%;
  border-radius: 11% / 15%; background: #282921;
}
.tv-glass video { display: block; width: 100%; height: 100%; object-fit: contain; background: #171c17; }
.fortune-window { position: absolute; left: 13.93%; top: 50.5%; width: 9.22%; height: 18.9%; overflow: hidden; pointer-events: none; }
.fortune-window img { position: absolute; width: 145%; max-width: none; height: 256%; left: -22%; top: -83%; }
@media (prefers-reduced-motion: reduce) { .actor-frame, .fortune-window { display: none; } }
.counter-print { position: absolute; display: block; top: 71.1%; width: 6.1%; height: 13%; }
.counter-print img { width: 100%; height: 100%; display: block; border: 1px solid #372e1d; }
.counter-print::before { content: ''; position: absolute; top: -3%; width: 21%; height: 9%; background: #ead89d; border: 1px solid #73623e; transform: rotate(-18deg); }
.ybin-print { left: 32.55%; transform: rotate(-3deg); }
.vezofit-print { left: 44.05%; transform: skewX(-6deg) rotate(2deg); }
.vezofit-print::before { right: 0; transform: rotate(13deg); }
.mono-print { left: 25.85%; transform: rotate(2deg); }
.ags-print { left: 51.2%; transform: rotate(-2deg); }
.market-set .counter-print-picker { display: none; }
.prop-record { left: 3.8%; top: 23.8%; width: 5.1%; height: 10.1%; }
.prop-coffee { left: 77.8%; top: 58.2%; width: 4.1%; height: 8.8%; }
.prop-pens { left: 23.62%; top: 51.01%; width: 5.74%; height: 16.79%; }
.prop-shelf { left: 63.6%; top: 22.4%; width: 17.9%; height: 23.5%; }
.prop-coffee, .prop-pens, .prop-shelf { z-index: 1; }
.valet-shops a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: bold; }
/* Registered package faces use the same shelf painting as the shoppable close-up. */
.stock-face { position: absolute; display: block; pointer-events: none; background: url('/market-art/skincare-shelf.webp') no-repeat; }
.stock-cleanser { left: 64.3%; top: 26.1%; width: 7.05%; height: 6.84%; background-size: 274.2% 501.8%; background-position: 8.52% 27.31%; }
.stock-panda { left: 71.8%; top: 26.1%; width: 5.53%; height: 6.84%; background-size: 294.1% 497.4%; background-position: 65.77% 27.37%; }
.stock-serum { left: 77.69%; top: 22.92%; width: 3.36%; height: 10.05%; background-size: 720.3% 262.5%; background-position: 91.94% 5.13%; }
.stock-masks { left: 64.16%; top: 35%; width: 17.03%; height: 12%; background-size: 109% 236.3%; background-position: 57.14% 88.07%; clip-path: polygon(0 0,100% 0,100% 100%,65% 100%,61% 95%,47% 92%,44% 94%,43% 85%,40% 76%,36% 76%,33% 84%,33% 93%,25% 91%,20% 93%,13% 99%,0 100%); }
.room-pack { display: none; }
@media (hover:hover) and (pointer:fine) {
  @container (min-width: 700px) {
    .room-pack { display: block; position: absolute; z-index: 2; }
    .room-pack:is(:hover,:focus-visible) { outline: 2px dashed #fae8a8; outline-offset: 1px; }
  }
}
@container (max-width: 620px) {
  .market-set .counter-print-picker { display: block; z-index: 1; left: 25%; top: 70%; width: 32.3%; height: 16%; }
}

.shelf-labels li a { display: flex; width: fit-content; min-height: 44px; align-items: center; text-underline-offset: 3px; }
.shelf-labels li a { font: bold 13px/1.35 monospace; color: var(--shop-muted); }
.prop-menu { margin-top: 12px; }
.market summary { cursor: pointer; padding: 10px 0; font-size: 13px; }
#market-props, .make-ruling > div, .episode-controls, .prop-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.market button, .market-counter a { color: var(--ink); }
#market-props button, .make-ruling button, .prop-action button, .prop-action a, .episode-controls button, .episode-controls .back-issues { background: var(--paper); padding: 7px 9px; min-height: 40px; border: 1.5px solid var(--ink); cursor: pointer; border-radius: 0; }
#market-props button:hover, .make-ruling button:hover, .prop-action button:hover, .prop-action a:hover { background: var(--shop-lime); }
.market-counter { padding-top: 2px; }
.market-counter p { margin: 0; }
.market-counter .scene-note { font-size: 13px; font-weight: 500; line-height: 1.45; border-bottom: 1px dashed var(--shop-rule); padding-bottom: 12px; }
.exchange { display: grid; gap: 12px; padding-block: 16px; }
.exchange strong { display: block; font: 800 11px/1.3 'Courier New',monospace; letter-spacing:.13em; text-transform: uppercase; margin-bottom: 4px; }
.exchange [data-speaker="Nani"] strong { color: #29561f; }
.exchange [data-speaker="Reggie"] strong { color: #9d253b; }
.exchange [data-speaker="Bomi"] strong { color: #604783; }
.exchange [data-speaker="Dubu"] strong { color: #235751; }
.exchange [data-speaker="Madam Petty"] strong { color: #733755; }
.exchange [data-speaker="Valet"] strong { color: #744021; }
#shift-journal { width: min(550px,calc(100% - 28px)); padding: 0; color: var(--shop-ink); border: 3px solid var(--shop-ink); border-radius: 0; background: var(--shop-paper); }
#journal-title { font: 900 30px/1.1 Arial,sans-serif; margin: 0; letter-spacing: -.04em; }
.journal-page { padding: 14px 18px 18px; }
.journal-crew { display: flex; flex-wrap: wrap; gap: 4px; }
.journal-crew button, #journal-mic { min-height: 44px; padding: 5px 9px; border: 1px solid var(--shop-ink); background: var(--shop-paper); color: var(--shop-ink); font: bold 13px/1.2 monospace; }
.journal-crew button[aria-pressed=true], #journal-mic { background: #253e35; color: var(--shop-paper); }
#journal-portrait { float: right; width: 64px; height: 96px; object-fit: contain; margin: 10px 0 5px 10px; }
.journal-page h4 { clear: both; }
.journal-page h3 { font: 900 26px/1.1 Arial,sans-serif; margin: 15px 0 4px; }
.journal-page h4 { border-top: 1px dashed var(--shop-rule); padding-top: 10px; margin: 12px 0 4px; font: bold 13px/1.3 'Courier New',monospace; }
.journal-page p, .journal-page li { margin: 2px 0 12px; font: 15px/1.35 Georgia,serif; }
.journal-page ol { list-style: none; padding: 0; margin: 0; }
.journal-page li strong { display: block; font: 12px/1.5 monospace; color: #643348; }
.exchange p span { display: block; font: 600 clamp(17px, 1.45vw, 24px)/1.25 'Arial',sans-serif; letter-spacing: -.025em; }
.episode-controls .market-primary { background: var(--ink); color: var(--shop-lime); }
.episode-controls .back-issues { display: inline-flex; align-items: center; text-decoration: none; }
.episode-controls button[aria-pressed=true] { background:var(--shop-lime); }
.make-ruling { margin-top: 7px; }
.market .till-receipt { background: var(--shop-paper); padding: 10px 12px; margin-top: 10px; border-block: 1px dashed var(--shop-rule); font: bold 12px/1.5 monospace; }
.prop-action { margin-top: 10px; }
.prop-action img { width: min(65%,200px); height: auto; border: 2px solid var(--ink); }
.market :is(a,button,summary):focus-visible { outline: 3px solid var(--shop-violet); outline-offset: 2px; }
#after-bust { font: bold 12px/1.4 monospace; color: inherit; text-underline-offset: 3px; padding: 9px 0; }
@media(max-width:850px) {
  .market-spread { grid-template-columns: 1fr; gap: 10px; }
  .market-counter { max-width: 65ch; }
  .exchange { min-height: 130px; }
  .episode-number { font-size: 10px; }
}
@media(max-width:480px) {
  .market-kicker { font-size: 9px; }
  .episode-controls button, #market-props button, .make-ruling button, .prop-action button { min-height:44px; }
  .header nav { flex-wrap: wrap; justify-content: end; gap: 5px 10px; }
  .header nav a[href="#market"], .header nav a[href="#arcade"] { display:inline; }
  .header nav [data-roast] { display:none; }
  .prop-action img { width:min(60%,180px); }
}
.station { color: var(--shop-ink); background: var(--shop-paper); padding: 0 max(5%, calc((100vw - 1440px)/2)); border-block: 1px dashed var(--shop-rule); }
.station summary { padding: 10px 0; }
.bomi-cassette { width: 38px; height: 24px; object-fit: contain; vertical-align: middle; }
@media (max-width: 480px) { #station-selection { display: block; margin: 4px 0 0 18px; } }
.station summary span { font-size: 12px; margin-left: 8px; }
.bomi-note { font: 13px/1.4 Arial,sans-serif; }
.station-deck { padding: 2px 0 12px; }
.market-counter .episode-stamp { font: 800 11px/1.35 'Courier New',monospace; letter-spacing:.08em; }
#episode-title { font: 900 clamp(30px,3vw,52px)/.98 'Arial Black',Impact,sans-serif; letter-spacing:-.055em; margin:4px 0 10px; }
.market-counter .episode-stamp { color: var(--shop-violet); }
.under-set { display: flex; align-items: baseline; gap: 5px 20px; flex-wrap: wrap; margin-top: 8px; }
.under-set > a, .cabinet-rail a { font: bold 13px/1.4 monospace; text-underline-offset: 3px; color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.under-set [hidden] { display: none; }
.under-set .prop-menu { margin: 0; }
.shop-hint { margin: 0; align-self: center; color: var(--shop-muted); font: italic 15px/1.25 Georgia,serif; }

.under-set .prop-menu[open] { flex-basis: 100%; order: 1; }
.shop-directions { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.shop-directions :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: bold 13px/1.3 monospace; }
@media (max-width: 1000px) { .market-spread { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .market-location { margin-inline: -3vw; }
  .market-mast { margin-bottom: 10px; }
  .under-set { margin-inline: 3vw; }
  .shop-hint { flex-basis: 100%; padding-top: 4px; }
  .market-set .prop-cabinet .hit-name { left: 0; transform: none; }
}
.dubu-counter { display: grid; grid-template-columns: minmax(120px,.65fr) minmax(0,1.35fr); background: var(--shop-lavender); border-bottom: 2px solid var(--shop-ink); }
.dubu-portrait { display: grid; place-items: center; background: #a3cab2; border-right: 2px solid var(--shop-ink); }
.dubu-portrait img { display: block; width: min(94%, 235px); height: auto; }
.dubu-talk { padding: clamp(12px, 2vw, 22px); }
.dubu-origin { font: 15px/1.35 Georgia,serif; margin: 0 0 10px; }
.dubu-origin a, .dubu-answers a, .guest-shelf a { color: #542c37; font: bold 12px/1.4 'Courier New', monospace; text-underline-offset: 3px; }
.dubu-questions { display: flex; gap: 4px; flex-wrap: wrap; }
.dubu-questions button { min-height: 44px; padding: 4px 7px; border: 1px solid #30372a; background: var(--shop-paper); color: #263022; font: bold 12px/1.25 'Courier New', monospace; }
.dubu-questions button[aria-pressed=true] { background: #233f36; color: var(--shop-paper); }
.dubu-answers { margin-top: 12px; }
.dubu-answers q { font: bold 21px/1.08 Georgia,serif; }
.dubu-answers p, .guest-shelf p { margin: 6px 0; font: 14px/1.35 Arial,sans-serif; }
.guest-shelf { display: flex; gap: 16px; align-items: center; padding: 15px clamp(12px, 3vw, 28px); border-bottom: 4px solid var(--shop-rule); background: var(--shop-lavender); }
.guest-status { font: bold 12px/1.45 'Courier New',monospace; color: #7b3548; }
.guest-shelf h3 { margin: 0; font: bold 20px/1.1 Arial,sans-serif; }
@media (max-width: 490px) {
  .dubu-counter { grid-template-columns: 74px minmax(0,1fr); }
  .dubu-talk { padding: 10px; }
  .dubu-portrait { align-items: start; padding-top: 10px; }
  .dubu-questions button { font-size: 11px; }
  .guest-shelf { gap: 10px; }
}
#roast-dialog { width: min(760px, calc(100% - 28px)); padding: 0; border: 3px solid var(--shop-ink); background: var(--shop-paper); color: var(--shop-ink); overscroll-behavior: contain; }
.fortune-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 6px 20px; background: #682e36; color: var(--shop-paper); border-bottom: 3px solid var(--shop-ink); }
#roast-dialog-title { margin: 0; font: bold clamp(28px, 4vw, 42px)/1.1 Georgia, serif; letter-spacing: -.045em; }
#close-roast { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: 32px/1 Arial, sans-serif; }
.fortune-interior { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.fortune-portrait { align-self: stretch; display: flex; align-items: flex-start; justify-content: center; padding: 18px; background: #21433d; border-right: 2px solid var(--shop-ink); }
.fortune-portrait img { display: block; width: 100%; max-height: 410px; object-fit: contain; }
.fortune-portrait picture { display: block; width: 100%; }
.fortune-controls { padding: clamp(14px, 3vw, 26px); min-width: 0; }
.fortune-question { margin: 0; font: bold clamp(19px, 2.5vw, 25px)/1.12 Georgia, serif; }
#roast-dialog .categories { margin: 14px 0; gap: 6px; }
#roast-dialog .categories button { min-height: 44px; padding: 6px 10px; font: bold 13px/1.2 monospace; background: var(--shop-paper); }
#roast-dialog .categories button[aria-pressed=true] { background: #243f36; color: var(--shop-paper); }
.fortune-lever { min-height: 44px; padding: 7px 18px; background: #ecb956; border: 2px solid #332920; border-radius: 4px; box-shadow: 0 3px 0 #613c2c; color: #251f1a; font: bold 15px/1.2 monospace; }
.fortune-lever:active { transform: translateY(2px); box-shadow: none; }
.fortune-slot { margin-top: 22px; height: 8px; border: 2px solid #aa8459; background: var(--shop-ink); border-radius: 5px; }
#fortune-output { overflow: hidden; padding-inline: 5px; }
#fortune-ticket { padding: 15px; background: var(--shop-paper); border: 1px solid #b8a88a; border-bottom: 2px dashed #a79984; }
.ticket-stamp { margin: 0 0 8px; font: bold 11px/1.4 monospace; letter-spacing: .1em; text-transform: uppercase; color: #793841; }
#prediction { margin: 0 0 8px; font: bold 18px/1.25 Georgia, serif; }
#fortune-ticket #roast-results { margin: 0; }
#fortune-ticket #roast-results li { padding: 9px 0 9px 26px; font: 14px/1.4 monospace; }
#fortune-ticket #roast-results li::before { top: 10px; }
#copy-roast { min-height: 44px; padding: 0; border: 0; color: #682e36; background: transparent; font: bold 13px/1.3 monospace; text-decoration: underline; text-underline-offset: 3px; }
#roast-dialog #copy-status:empty { display: none; }
@media(max-width:540px) {
  .fortune-interior { grid-template-columns: minmax(58px, 24%) minmax(0, 1fr); gap: 9px 12px; padding: 12px; }
  .fortune-portrait { grid-column: 1; grid-row: 1 / 4; padding: 4px; border: 0; align-items: center; }
  .fortune-controls { display: contents; }
  .fortune-question, #roast-dialog .categories, .fortune-lever { grid-column: 2; }
  #roast-dialog .categories { margin: 0; }
  .fortune-lever { justify-self: start; }
  .fortune-slot, #fortune-output, #copy-status { grid-column: 1 / -1; }
  .fortune-slot { margin-top: 6px; }
  #fortune-output { margin-top: -9px; }
}
.cabinet-room { padding: 16px max(5%, calc((100vw - 1100px)/2)) 38px; scroll-margin-top:0; }
.cabinet-room-frame { max-width:580px; margin:auto; }
.cabinet-rail { display:flex; justify-content:space-between; align-items:center; gap:10px; }
#cabinet-title { font:900 clamp(27px,4vw,54px)/1 'Arial Black',Impact,sans-serif; letter-spacing:-.06em; margin:3px 0 26px; }
.cabinet-room .arcade-wrap { margin:0 3px; }
.cabinet-room .cabinet { transform:none; }
@media(min-width:851px) and (max-height:850px) { .cabinet-room-frame { max-width:min(500px,68vh); } }
@media(max-width:850px) {
  .market-counter { width:100%; }
  .market .market-counter .scene-note { padding-bottom:8px; }
  .exchange { min-height:0; }
  .market-set { scroll-margin-top:10px; }
  .market-counter { scroll-margin-top:8px; }
  .market-spread { gap:14px; }
}
@media(max-width:480px) {
  .market { padding-top:18px; }
  .market-mast { margin-bottom:13px; }
  .under-set { gap:1px 12px; }
  .market .prop-menu summary, .station summary { min-height:44px; display:list-item; padding-block:12px; }
  .cabinet-room { padding-inline:4%; }
  .cabinet-room .sticker { width:100px; right:0; font-size:13px; height:55px; }
  .cabinet-room .mobile-controls { flex-wrap:wrap; }
}

#skin-case, #seoul-flyers { width: min(760px, calc(100% - 28px)); padding: 0; border: 3px solid var(--shop-ink); border-radius: 0; color: var(--shop-ink); background: var(--shop-paper); overscroll-behavior: contain; }
#seoul-flyers { max-width: 610px; }
.seoul-prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 24px); padding: clamp(14px, 3vw, 25px); }
.seoul-prints a { display: block; color: var(--shop-ink); text-decoration: none; }
.seoul-prints img { display: block; width: 100%; height: auto; border: 1px solid #24271c; box-shadow: 2px 3px #24271c; }
.seoul-prints strong, .seoul-prints span, .seoul-prints b { display: block; }
.seoul-prints strong { margin-top: 12px; font: 800 clamp(16px, 2.8vw, 21px)/1.12 Arial, sans-serif; }
.seoul-prints span { margin: 4px 0 8px; font: 14px/1.3 Arial, sans-serif; }
.seoul-prints b { font: bold 13px/1.4 monospace; text-decoration: underline; text-underline-offset: 3px; }
.seoul-prints .stylist-booking { display: inline-flex; align-items: center; min-height: 44px; font: 13px/1.4 monospace; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 450px) { .seoul-prints { gap: 16px 12px; padding: 14px 10px; } }
.shelf-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 12px 5px 18px; background: var(--shop-paper); border-bottom: 2px solid var(--shop-ink); }
#skin-case-title, #seoul-title { margin: 0; font: 900 clamp(26px, 4vw, 40px)/1.1 'Arial Black', Impact, sans-serif; letter-spacing: -.055em; }
.shelf-heading form { margin: 0; }
.shelf-heading button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 32px; line-height: 1; }
.shelf-print { display: block; width: 100%; height: auto; }
.shelf-display { margin: 0; }
.shelf-display figcaption { padding: 8px 18px; background: #253e35; color: var(--shop-paper); font: bold 13px/1.4 'Courier New',monospace; }
.shelf-display figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
.package-art { position: relative; }
.pack-link { position: absolute; border-radius: 2px; }
.pack-link:focus-visible { z-index: 1; outline: 3px solid #303c24; outline-offset: -3px; box-shadow: inset 0 0 0 5px #e8f794; }
@media (hover:hover) and (pointer:fine) { .pack-link:hover { outline: 2px dashed #433c22; outline-offset: -3px; } }

.shelf-labels { padding: 16px clamp(14px, 3vw, 28px); }
.shelf-labels h3, .shelf-labels summary { margin: 0; font: bold 15px/1.4 'Courier New', monospace; }
.shelf-labels ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 14px 22px; }
.shelf-labels li { font: 15px/1.4 Arial, sans-serif; }
.shelf-labels li strong, .shelf-labels li small { display: block; }
.shelf-labels li small { font-size: 13px; }
.shelf-why { margin: 7px 0 1px; padding-left: 9px; border-left: 2px solid #59816c; color: #244438; font: 15px/1.4 Georgia, serif; }
.shelf-labels details { border-top: 1px dashed var(--shop-rule); margin-top: 16px; }
.shelf-labels summary { padding: 12px 0; min-height: 44px; cursor: pointer; }
#skin-case :is(button,summary):focus-visible { outline: 3px solid #9d253b; outline-offset: -3px; }
@media (pointer:coarse), (max-width:850px) {
  .cabinet-room .mobile-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; padding:8px 10px; gap:6px; border-top:1px solid #f3f0de22; }
  .cabinet-room .direction-controls { display:flex; gap:3px; }
  .cabinet-room .mobile-controls button { min-width:44px; min-height:44px; padding:0 3px; color:#d7f54b; background:#282c23; border:1px solid #657242; border-radius:4px; font:700 20px monospace; }
  .cabinet-room .mobile-controls #flip { min-width:75px; font:700 11px monospace; }
}
@media(max-width:370px) {
  .cabinet-room .mobile-controls { display:grid; grid-template-columns:1fr; }
  .cabinet-room .direction-controls { display:grid; grid-template-columns:repeat(4,1fr); }
}

.tv-viewer { padding: 0; width: min(550px,calc(100% - 28px)); max-height: 92vh; color: #20281e; background: var(--shop-paper); border: 3px solid var(--shop-ink); }
.tv-viewer .shelf-heading h2 { margin: 0; font: 900 clamp(21px,5vw,34px)/1.05 Arial,sans-serif; letter-spacing: -.04em; }
.tv-console { padding: 10px clamp(14px,4vw,32px) 0; background: #47483b; color: #fff0c6; }
#big-screen { height: min(52vh,460px); border: 5px solid #22261f; }
.tv-console-foot, .tv-shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.tv-console-foot { font: bold 11px/1.3 monospace; letter-spacing: .08em; }
#tv-play { min-height: 44px; padding: 4px 9px; background: none; color: #fff5cc; border: 0; text-decoration: underline; font: bold 14px/1.3 monospace; }
.tv-shop { padding: 10px 16px; }
.tv-shop a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.tv-shop .leisure-site { font: bold 17px/1.3 Arial,sans-serif; color: #223a2e; }
.tv-shop .tv-address { color: var(--shop-muted); font: 13px/1.4 'Courier New', monospace; }
#tv-error { margin: 10px 16px 0; font: 14px/1.35 Arial,sans-serif; }

.game-select { display: flex; gap: 3px; border-bottom: 2px solid #272a20; margin: 3px 0 12px; }
.game-select a { min-height: 44px; flex: 1; display: grid; place-items: center; text-align: center; padding: 5px; color: #2b3023; text-decoration: none; font: bold clamp(11px,1.3vw,15px)/1.1 monospace; }
.game-select [aria-current] { color: #e1f85c; background: #20241e; }
.side-cabinet { --accent: #dbf54f; border: 4px solid #25271e; border-radius: 5px; background: #232920; color: #fff3cf; box-shadow: 4px 5px #161b17; overflow: hidden; }
.side-cabinet[data-game="putter-rink"] { --accent: #a1ecce; }
.side-scoreboard, .side-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; }
.side-scoreboard { color: var(--accent); font: 700 clamp(10px,1.25vw,14px)/1.3 monospace; text-transform: uppercase; }
.side-scoreboard output { color: #fff2d3; text-align: right; }
.side-screen { background: #16241c; }
#side-game { width: 100%; height: auto; display: block; touch-action: none; }
.side-actions { border-top: 2px solid #141e17; }
.side-actions strong { font: bold 15px/1.2 Georgia,serif; }
.side-cabinet button { min-height: 44px; padding: 5px 12px; background: var(--accent); color: #17241b; font: bold 13px/1.2 monospace; border: 2px solid #181b16; border-radius: 4px; cursor: pointer; }
.side-actions button { flex-shrink: 0; }
#side-controls-help { margin: 0; padding: 0 12px 12px; color: #eee7cb; font: 13px/1.45 monospace; }
.side-pad { display: none; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px 9px; border-top: 1px solid #69806a; }
.side-pad button { min-width: 44px; touch-action: none; user-select: none; -webkit-user-select: none; }
.side-pad button:active { background: #f29fbb; }
.side-arrows { display: grid; grid-template-columns: repeat(3,44px); gap: 2px; }
.side-arrows button:first-child { grid-column: 2; }
.side-arrows button:nth-child(2) { grid-column: 1; }
.side-cabinet :focus-visible, .game-select a:focus-visible { outline: 3px dashed #e978a5; outline-offset: -3px; }
[data-game="putter-rink"] .side-pad { display:flex; }
.side-buttons { display:flex; gap:4px; }
[data-game="putter-rink"] .side-buttons { flex:1; }
[data-game="putter-rink"] .side-buttons button { flex:1; padding:4px; }
.side-buttons small { display:block; margin-top:2px; font: bold 10px/1.1 monospace; }
.side-buttons button { background:var(--ability-color,var(--accent)); }
#rink-turbo { --ability-color:#d4ec53; }
#rink-power { --ability-color:#ffd581; }
.side-buttons button[aria-disabled="true"] { background:#38493f; color:#d7dccb; cursor:default; }
@media (hover:hover) and (pointer:fine) and (min-width:851px) {
  [data-game="putter-rink"] .side-arrows { display:none; }
}
@media (pointer:coarse), (max-width:850px) {
  .side-pad { display:flex; }
  [data-game="putter-rink"] .side-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:240px; }
  [data-game="putter-rink"] #side-action { grid-column:1 / -1; }
  [data-game="putter-rink"] .side-buttons button { font-size:12px; }
}

.exchange .on-mic { box-shadow: -3px 0 #577960; padding-left: 7px; }
.market-set { --art: url('/market-art/shop-floor.webp'); }
/* Help wanted: the taped sign on the counter, the application and the printed name tag. */
.help-wanted { left: 38.9%; top: 72.3%; width: 4.9%; height: 9.4%; z-index: 1; }
.help-wanted .sign-face {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 4%;
  background: #fff6dc; color: var(--shop-ink); border: 1px solid #372e1d; box-shadow: 1px 2px #23271b80; transform: rotate(-4deg);
  font: bold 1.02cqw/1.05 'Courier New', monospace; letter-spacing: .02em; text-align: center; text-transform: uppercase;
}
.help-wanted .sign-face::before { content: ''; position: absolute; top: -7%; left: 38%; width: 24%; height: 11%; background: #ead89d; border: 1px solid #73623e; transform: rotate(9deg); }
@container (max-width: 620px) { .market-set .help-wanted { display: none; } }
.under-set .hire-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: bold 13px/1.4 monospace; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#hire { width: min(560px, calc(100% - 28px)); padding: 0; color: var(--shop-ink); border: 3px solid var(--shop-ink); border-radius: 0; background: var(--shop-paper); overscroll-behavior: contain; }
#hire-title { margin: 0; font: 900 30px/1.1 Arial, sans-serif; letter-spacing: -.04em; }
.hire-page { padding: 14px 18px 18px; }
.hire-page p { margin: 0 0 12px; font: 16px/1.4 Georgia, serif; }
#hire-form label { display: block; margin-bottom: 6px; font: bold 13px/1.4 'Courier New', monospace; }
#hire-form small { display: block; font-size: 12px; font-weight: 500; }
#hire-form div { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#hire-name { flex: 1 1 12ch; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2px solid var(--shop-ink); border-radius: 0; background: var(--shop-paper); color: inherit; font: bold 18px monospace; }
#hire-form button, .hire-actions button { min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--shop-ink); border-radius: 0; background: var(--shop-paper); color: var(--shop-ink); font: bold 13px/1.2 monospace; cursor: pointer; }
#hire-form button, .hire-actions #start-shift { background: #253e35; color: var(--shop-paper); }
#name-tag { display: block; width: 100%; height: auto; margin: 8px 0 18px; transform: rotate(-1.2deg); box-shadow: 3px 4px 0 var(--shop-ink); }
#hire-letter { font-weight: bold; }
.hire-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#hire-status, #hire-error { min-height: 1.4em; font: 13px/1.4 'Courier New', monospace; overflow-wrap: anywhere; }
#quit-shift { min-height: 44px; padding: 0; border: 0; background: transparent; color: #5b3a2c; font: 12px/1.4 monospace; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#hire :is(button, input):focus-visible { outline: 3px solid #9d253b; outline-offset: 2px; }

/* The card uses the exact cut of the packet on Dubu's painted shelf. */
.pack-link, .room-pack, .guest-preview { border: 0; padding: 0; background: transparent; cursor: pointer; }
.guest-preview { flex: 0 0 clamp(94px, 16vw, 145px); min-height: 44px; }
.product-preview { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--shop-muted); text-decoration: underline; text-underline-offset: 3px; font: bold 13px/1.35 'Courier New', monospace; }
#product-card { padding: 0; width: min(500px, calc(100% - 28px)); max-height: 87vh; max-height: 87dvh; overflow: auto; overscroll-behavior: contain; border: 3px solid var(--shop-ink); border-radius: 0; background: var(--shop-paper); color: var(--shop-ink); box-shadow: 6px 6px #142f27; }
#product-card::backdrop { background: rgb(18 28 23 / 65%); }
#product-card .shelf-heading { background: #244739; color: var(--shop-paper); font: bold 14px/1.3 'Courier New', monospace; }
.product-body { display: grid; grid-template-columns: minmax(75px, 0.65fr) minmax(0, 1.4fr); }
.product-art { display: grid; align-content: center; justify-items: center; padding: 17px 10px; background: #bfd9bc; border-right: 1px dashed #557760; }
.product-crop { display: block; width: 100%; max-width: 145px; background: url('/market-art/skincare-shelf.webp') no-repeat; }
.product-copy { padding: clamp(14px, 3vw, 24px); overflow-wrap: anywhere; }
.product-status { color: #764252; font: bold 12px/1.4 'Courier New', monospace; }
#product-name { margin: 7px 0 10px; font: 800 clamp(22px, 5vw, 32px)/1.05 Arial, sans-serif; letter-spacing: -.035em; }
.product-note { margin: 0 0 15px; font: 16px/1.45 Georgia, serif; }
.product-links a { display: flex; align-items: center; min-height: 44px; font: bold 13px/1.35 'Courier New', monospace; text-underline-offset: 3px; }
.product-links a:first-child { width: fit-content; padding: 9px 13px; background: #244739; color: var(--shop-paper); }

.dubu-stops { background: #ecedd6; padding: 14px clamp(12px, 3vw, 28px); border-bottom: 1px dashed #59816c; color: #244438; }
.dubu-stops h3 { margin: 0 0 5px; font: bold 15px/1.2 'Courier New', monospace; }
.dubu-stops ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 4px 14px; }
.dubu-stops a { display: grid; align-content: center; min-height: 44px; text-decoration: none; }
.dubu-stops strong { text-decoration: underline; text-underline-offset: 3px; font: bold 15px/1.4 Georgia, serif; }
.dubu-stops span, .shelf-arrival small { font: 12px/1.4 'Courier New', monospace; }
.shelf-arrival { padding: 5px clamp(12px, 3vw, 28px); background: #e3ead2; color: #244438; }
.shelf-arrival small { display: block; padding-top: 5px; }
.shelf-arrival button { min-height: 44px; padding: 0; color: inherit; background: none; border: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; font: bold 17px/1.25 Georgia, serif; }

.product-art img, .guest-preview img { display: block; max-height: 195px; width: 100%; object-fit: contain; }
.product-art[hidden] + .product-copy { grid-column: 1 / -1; }
.product-art[hidden], .product-evidence[hidden] { display: none; }
.guest-shelf .guest-evidence, .shelf-labels .shelf-evidence, .product-evidence { font: 13px/1.45 Arial, sans-serif; color: #3f5045; }
.product-evidence { padding-top: 10px; border-top: 1px dashed #8c927b; }
.shelf-feeds { display: flex; flex-wrap: wrap; }
.shelf-feeds > div { flex: 1 1 230px; }
.shelf-bestseller { background: var(--shop-lavender); color: #592f32; }
