/* Desktop app's 2D storefront. Immersive and counter scenes retain their own UI. */
body:not(.is-immersive) {
  --ink: #f6ebcc;
  --cream: #f6ebcc;
  --muted: #b5aa92;
  --blue: #172c49;
  --blue-deep: #0d1829;
  --red: #e24730;
  --yellow: #ffd447;
  --cyan: #43cbd5;
  background: #100d0b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body:not(.is-immersive) .store-shell { max-width: none; background: #17120f; box-shadow: none; }
body:not(.is-immersive) .store-header { position: relative; z-index: 5; display: block; min-height: 0; border-bottom: 6px solid var(--red); background: var(--blue); box-shadow: 0 8px 24px #0008; }
body:not(.is-immersive) .store-masthead { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1rem, 4vw, 3.5rem); border: 0; }
body:not(.is-immersive) .brand { min-width: 0; padding: 0; }
body:not(.is-immersive) .brand strong { font: 900 clamp(2.4rem, 5vw, 4.6rem)/.82 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: .04em; }
body:not(.is-immersive) .brand-tag { display: block; margin-top: .6rem; font: 700 .73rem/1.2 "Courier New", monospace; letter-spacing: .08em; text-transform: none; }
body:not(.is-immersive) .header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
body:not(.is-immersive) .header-actions button,
body:not(.is-immersive) .browse-menu button,
body:not(.is-immersive) .normal-settings button,
body:not(.is-immersive) .load-more-shelf {
  min-height: 40px; padding: .58rem .78rem; border: 2px solid #050a12; border-radius: 0;
  color: var(--cream); background: #243e61; box-shadow: 3px 3px 0 #08101d;
  font: 800 .68rem/1 "Courier New", monospace; letter-spacing: .035em; text-transform: uppercase;
}
body:not(.is-immersive) .header-actions .header-icon-button { display: inline-flex; width: auto; min-width: 0; gap: .4rem; }
body:not(.is-immersive) .header-actions .header-icon-button svg { display: none; }
body:not(.is-immersive) .header-actions .mobile-action-label { display: inline; }
body:not(.is-immersive) .mobile-menu-toggle { display: none; }
body:not(.is-immersive) .header-actions button:hover,
body:not(.is-immersive) .browse-menu button:hover,
body:not(.is-immersive) .normal-settings button:hover,
body:not(.is-immersive) .normal-settings button[aria-pressed="true"] { color: #17120f; background: var(--yellow); }
body:not(.is-immersive) #counter-open { position: static; display: inline-flex; align-items: center; gap: .45rem; width: auto; height: auto; transform: none; border-color: #050a12 !important; color: var(--cream) !important; background: #243e61 !important; box-shadow: 3px 3px 0 #08101d; }
body:not(.is-immersive) #counter-open > span { margin: 0; width: auto; height: auto; background: transparent; border-radius: 0; }
body:not(.is-immersive) #counter-open #counter-count { display: grid; min-width: 24px; height: 24px; place-items: center; color: var(--cream); background: var(--red); border-radius: 50%; }
body:not(.is-immersive) .store-header > .browse-menu { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(220px, 260px) auto; align-items: stretch; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3.5rem); background: var(--blue-deep); border-top: 1px solid #ffffff1f; border-bottom: 0; }
body:not(.is-immersive) .browse-menu .browse-select { display: grid; grid-template-columns: 1fr; order: 0; gap: .35rem; }
body:not(.is-immersive) .browse-menu .browse-select:not(.browse-sort-select) { grid-column: 1; }
body:not(.is-immersive) .browse-menu .browse-sort-select { grid-column: 2; width: max-content; }
body:not(.is-immersive) .browse-select > span,
body:not(.is-immersive) .year-label { color: var(--yellow); font: 800 .6rem/1 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
body:not(.is-immersive) .browse-select select { min-height: 40px; width: 100%; padding: .55rem .65rem; border: 2px solid #f8e8bc; border-radius: 0; color: var(--blue); background: var(--paper); font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.2; text-transform: none; }
body:not(.is-immersive) .browse-menu .browse-select > select { align-self: stretch; }
body:not(.is-immersive) .browse-menu .year-machine { grid-column: 3; order: 0; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto 40px; gap: .35rem; width: 100%; margin: 0; }
body:not(.is-immersive) .year-label { display: block; grid-column: 1 / -1; text-align: left; }
body:not(.is-immersive) .year-machine select { min-height: 40px; height: 40px; min-width: 0; padding: .45rem .4rem; border: 2px solid #f8e8bc; border-radius: 0; color: var(--blue); background: var(--paper); font: 800 .78rem/1 "Courier New", monospace; }
body:not(.is-immersive) .year-machine button { padding: .45rem; }
body:not(.is-immersive) .browse-menu .normal-filters-toggle { grid-column: 4; order: 0; min-height: 40px; }
body:not(.is-immersive) .normal-provider-filters { grid-column: 1 / -1; width: 100%; }
/* The toggle precedes the year machine in the DOM; pin all four controls to row 1. */
@media (min-width: 681px) {
  body:not(.is-immersive) .browse-menu .browse-select,
  body:not(.is-immersive) .browse-menu .year-machine,
  body:not(.is-immersive) .browse-menu .normal-filters-toggle { grid-row: 1; }
  body:not(.is-immersive) .browse-menu .normal-provider-filters { grid-row: 2; }
}
body:not(.is-immersive) .normal-settings { background: #203958; border-top: 1px dashed #ffffff36; border-bottom: 0; }
body:not(.is-immersive) .normal-settings .audio-setting { background: #203958; }
body:not(.is-immersive) .rental-intro { margin: 0; padding: .72rem 1rem; color: #22180c; background: var(--yellow); border: 0; text-align: center; font: 800 .72rem/1.4 "Courier New", monospace; letter-spacing: .04em; }
body:not(.is-immersive) .shop-floor { border: 0; }
body:not(.is-immersive) .shelf-room { position: relative; min-height: 680px; padding: 3.2rem clamp(1rem, 4vw, 4rem) 4.5rem; overflow: hidden; background: linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 100% 38px, radial-gradient(circle at 50% -20%, #4a382a 0, #1e1712 48%, #100d0b 82%); }
body:not(.is-immersive) .fluorescent { position: absolute; top: 1rem; left: 50%; width: min(520px, 58vw); height: 8px; margin: 0; transform: translateX(-50%); background: #fffbd3; box-shadow: 0 0 10px #fff, 0 0 45px #ffeeb6aa, 0 0 110px #ffe9a733; }
body:not(.is-immersive) .shelf-heading { position: relative; max-width: 1500px; margin: 0 auto 1.6rem; gap: 1.5rem; }
body:not(.is-immersive) .shelf-heading p { font: 700 .68rem/1.4 "Courier New", monospace; letter-spacing: .09em; }
body:not(.is-immersive) .shelf-heading h2 { color: var(--cream); font: 900 clamp(2.2rem, 6vw, 4.6rem)/.85 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: .02em; text-shadow: 4px 4px 0 #172c49; }
body:not(.is-immersive) #shelf-status { max-width: 30ch; color: var(--muted); }
body:not(.is-immersive) .shelves { position: relative; gap: 4.5rem; max-width: 1500px; margin: auto; }
body:not(.is-immersive) .shelf-stand { position: relative; }
body:not(.is-immersive) .stand-number { position: absolute; z-index: 2; top: -.85rem; left: 1.5rem; margin: 0; padding: .28rem .55rem; color: #17120f; background: var(--yellow); border: 2px solid #21130c; box-shadow: 3px 3px 0 #120b07; font: 900 .58rem/1 "Courier New", monospace; }
body:not(.is-immersive) .shelf { position: relative; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 2.6rem 1.1rem; min-height: 305px; padding: 1.4rem 1.5rem 3rem; border: 11px solid #4a2818; border-top-color: #875237; background: linear-gradient(90deg, #0003, transparent 10%, transparent 90%, #0004), repeating-linear-gradient(0deg, #2a1710 0 10px, #3d2216 10px 14px, #1a0d08 14px 18px); box-shadow: inset 0 -18px 0 #1e100b, 0 16px 30px #0008; }
body:not(.is-immersive) .shelf::after { content: ""; position: absolute; right: -11px; bottom: -20px; left: -11px; height: 18px; background: #6d3f27; border: 3px solid #2d170e; box-shadow: 0 8px 12px #000a; }
body:not(.is-immersive) footer { padding: 1rem clamp(1rem, 4vw, 4rem); color: #8f8573; background: #090706; font: 700 .62rem/1.4 "Courier New", monospace; letter-spacing: .09em; }
@media (max-width: 1100px) {
  body:not(.is-immersive) .store-masthead { flex-wrap: wrap; gap: 1.2rem; }
  body:not(.is-immersive) .header-actions { justify-content: flex-start; }
}
@media (max-width: 760px), (max-width: 900px) and (pointer: coarse) {
  body:not(.is-immersive) .shelf { grid-template-columns: repeat(auto-fit, minmax(49px, 1fr)); gap: 1.2rem .5rem; min-height: 215px; padding: 1rem .8rem 2rem; border-width: 8px; }
}
@media (max-width: 680px) {
  body:not(.is-immersive) .store-masthead { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: .9rem 1rem; }
  body:not(.is-immersive) .brand strong { font-size: clamp(2rem, 11vw, 3rem); text-shadow: 3px 3px 0 var(--yellow); }
  body:not(.is-immersive) .brand-tag { display: none; }
  body:not(.is-immersive) .header-actions { display: grid; grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  body:not(.is-immersive) .header-actions button { min-width: 0; padding: .55rem .3rem; font-size: .54rem; }
  body:not(.is-immersive) .store-header > .browse-menu { grid-template-columns: 1fr; padding: .8rem 1rem; }
  body:not(.is-immersive) .browse-menu .browse-select,
  body:not(.is-immersive) .browse-menu .year-machine,
  body:not(.is-immersive) .browse-menu .normal-filters-toggle { grid-column: 1; grid-row: auto; order: 0; }
  body:not(.is-immersive) .browse-menu .browse-sort-select { width: 100%; }
  body:not(.is-immersive) .browse-menu .year-machine { grid-template-columns: minmax(0, 1fr) 50px; grid-template-rows: auto 40px; width: 100%; }
  body:not(.is-immersive) .browse-menu .normal-filters-toggle { justify-content: space-between; }
  body:not(.is-immersive) .normal-settings { grid-template-columns: 1fr; }
  body:not(.is-immersive) .rental-intro { text-align: left; }
  body:not(.is-immersive) .shelf-room { min-height: 600px; padding: 2.6rem .75rem 3rem; }
  body:not(.is-immersive) .shelf-heading { align-items: start; }
}
