/* Win95 / Astral Project styles */

@font-face {
  font-family: 'PixelOperator';
  src: local('Pixelated MS Sans Serif'), local('MS Sans Serif'), local('Tahoma');
}

:root {
  --w95-bg: #c3c3c3;
  --w95-bg-light: #dfdfdf;
  --w95-shadow: #818181;
  --w95-shadow-dark: #000;
  --w95-highlight: #fff;
  --w95-title: #000080;
  --w95-title-text: #fff;
  --w95-disabled: #808080;
  --w95-blue: #0000aa;
  --w95-text: #000;

  --ap-pink: #ff7ad9;
  --ap-pink-deep: #ff3eb5;
  --ap-cyan: #6cf2ff;
  --ap-violet: #6a2bd9;
  --ap-orange: #ff7a18;
  --ap-yellow: #ffe14d;
  --ap-mint: #b6ffe5;

  --grid-cell: 86px;
  --grid-gap: 14px;
}

[data-density="compact"] {
  --grid-cell: 72px;
  --grid-gap: 8px;
}
[data-density="roomy"] {
  --grid-cell: 100px;
  --grid-gap: 22px;
}

[data-theme="teal"] {
  --ap-pink: #5ef0d4;
  --ap-pink-deep: #ff39c8;
  --ap-cyan: #00e0ff;
  --ap-violet: #2a0a4f;
  --ap-orange: #ff39c8;
}
[data-theme="sunset"] {
  --ap-pink: #ffb37a;
  --ap-pink-deep: #ff5e2a;
  --ap-cyan: #ffd24d;
  --ap-violet: #4a1b00;
  --ap-orange: #ff3a00;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'MS Sans Serif', 'Pixelated MS Sans Serif', Tahoma, Geneva, sans-serif;
  -webkit-font-smoothing: none;
  font-smooth: never;
  image-rendering: pixelated;
  background: #000;
  color: var(--w95-text);
}

body {
  font-size: 12px;
  line-height: 1.3;
}

/* ─── Win95 chrome ─────────────────────────────────────────── */
.w95-window {
  background: var(--w95-bg);
  border: 2px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow),
    2px 2px 0 var(--w95-shadow-dark);
  display: flex;
  flex-direction: column;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
}

.w95-titlebar {
  background: linear-gradient(to right, var(--w95-title) 0%, #1084d0 100%);
  color: var(--w95-title-text);
  font-weight: bold;
  font-size: 11px;
  padding: 2px 2px 2px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
  user-select: none;
  cursor: move;
}
.w95-titlebar.inactive {
  background: linear-gradient(to right, #808080 0%, #b5b5b5 100%);
}
.w95-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.w95-title-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.w95-title-buttons {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.w95-title-btn {
  width: 16px;
  height: 14px;
  background: var(--w95-bg);
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Marlett', 'MS Sans Serif', sans-serif;
  font-size: 9px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.w95-title-btn:active {
  border-color: var(--w95-shadow-dark) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow-dark);
  box-shadow: inset 1px 1px 0 var(--w95-shadow), inset -1px -1px 0 var(--w95-bg-light);
}

/* Touch-target enlargement: keep the 16x14 visual on desktop, but on
   coarse pointers (phones / tablets) expand the actual hit area to 32x32
   via a transparent ::before overlay. The visual size is unchanged. */
@media (pointer: coarse) {
  .w95-title-btn { position: relative; }
  .w95-title-btn::before {
    content: '';
    position: absolute;
    top: -10px; right: -6px; bottom: -10px; left: -6px;
    /* expands the tappable area without affecting layout */
  }
  .ap-wishlist-heart,
  .ap-touch-target { position: relative; }
  .ap-wishlist-heart::before,
  .ap-touch-target::before {
    content: '';
    position: absolute;
    top: -8px; right: -8px; bottom: -8px; left: -8px;
  }
  /* Win95 standard buttons get a generous min-height on touch devices */
  .w95-btn { min-height: 28px; }
  .taskbar .w95-btn { min-height: 26px; }
}

/* Keyboard accessibility: Win95-style dotted focus ring on tab navigation,
   never on mouse clicks (so the chrome stays clean for sighted mouse users).
   :focus-visible is supported in all evergreens; the rule is harmless on
   browsers that don't honor it. */
:focus { outline: none; }
:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 1px;
}
.w95-btn:focus-visible,
.w95-input:focus-visible,
select:focus-visible,
textarea:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
}
a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 2px;
}
.desktop-icon:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -2px;
}

/* Skip-to-content link — visually hidden until focused via Tab. */
.ap-skip-link {
  position: absolute;
  left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.ap-skip-link:focus {
  left: 8px; top: 8px; width: auto; height: auto; overflow: visible;
  z-index: 100000;
  background: #ffe14d; color: #000; border: 2px solid #000;
  padding: 4px 10px; font-weight: bold;
}

/* Image fade-in — products and lookbook images add this class once the
   load handler fires. Defaults to opacity 0 so the image doesn't flash
   pop-in over the placeholder; transitions to 1 over 200ms. */
img.ap-img-fade {
  opacity: 0;
  transition: opacity 220ms ease-out;
}
img.ap-img-fade.is-loaded {
  opacity: 1;
}

.w95-menubar {
  display: flex;
  gap: 0;
  padding: 1px 2px;
  font-size: 11px;
  border-bottom: 1px solid var(--w95-shadow);
}
.w95-menubar > span {
  padding: 1px 6px;
  cursor: default;
}
.w95-menubar > span:hover {
  background: var(--w95-title);
  color: #fff;
}
.w95-menubar u {
  text-decoration: underline;
}

.w95-content {
  padding: 8px;
  flex: 1;
  overflow: auto;
  background: var(--w95-bg);
}

.w95-statusbar {
  border-top: 1px solid var(--w95-highlight);
  box-shadow: inset 0 1px 0 var(--w95-shadow);
  padding: 4px 4px 2px;
  display: flex;
  gap: 2px;
  font-size: 11px;
}
.w95-status-cell {
  flex: 1;
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  padding: 1px 4px;
}

/* Resize handles — invisible hit-areas around window edges/corners.
   Sit above the chrome so a tight grab still works on the border. */
.w95-resize {
  position: absolute;
  z-index: 10;
  touch-action: none;
}
.w95-resize-n  { top: -3px;    left: 6px;     right: 6px;     height: 6px;  cursor: ns-resize; }
.w95-resize-s  { bottom: -3px; left: 6px;     right: 6px;     height: 6px;  cursor: ns-resize; }
.w95-resize-e  { top: 6px;     bottom: 6px;   right: -3px;    width: 6px;   cursor: ew-resize; }
.w95-resize-w  { top: 6px;     bottom: 6px;   left: -3px;     width: 6px;   cursor: ew-resize; }
.w95-resize-ne { top: -3px;    right: -3px;   width: 12px;    height: 12px; cursor: nesw-resize; }
.w95-resize-nw { top: -3px;    left: -3px;    width: 12px;    height: 12px; cursor: nwse-resize; }
.w95-resize-se { bottom: -3px; right: -3px;   width: 14px;    height: 14px; cursor: nwse-resize; }
.w95-resize-sw { bottom: -3px; left: -3px;    width: 12px;    height: 12px; cursor: nesw-resize; }
/* Subtle grip dots on the SE corner so users can see it's draggable. */
.w95-resize-se::after {
  content: '';
  position: absolute;
  right: 2px; bottom: 2px;
  width: 10px; height: 10px;
  background-image:
    linear-gradient(135deg, transparent 0 40%, var(--w95-shadow) 40% 50%, transparent 50% 60%, var(--w95-shadow) 60% 70%, transparent 70% 80%, var(--w95-shadow) 80% 90%, transparent 90%);
  opacity: 0.7;
  pointer-events: none;
}
.w95-window.maximized .w95-resize { display: none; }

/* Buttons */
.w95-btn {
  background: var(--w95-bg);
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow);
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  color: #000;
  min-width: 70px;
}
.w95-btn:active, .w95-btn[aria-pressed="true"] {
  border-color: var(--w95-shadow-dark) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow-dark);
  box-shadow: inset 1px 1px 0 var(--w95-shadow), inset -1px -1px 0 var(--w95-bg-light);
}
.w95-btn:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

/* Inset (sunken) box */
.w95-inset {
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  box-shadow:
    inset 1px 1px 0 var(--w95-shadow-dark),
    inset -1px -1px 0 var(--w95-bg-light);
  background: #fff;
}
.w95-outset {
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow);
  background: var(--w95-bg);
}

.w95-input {
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  box-shadow:
    inset 1px 1px 0 var(--w95-shadow-dark),
    inset -1px -1px 0 var(--w95-bg-light);
  background: #fff;
  padding: 3px 4px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
  width: 100%;
}
.w95-input:focus { outline: none; }

.w95-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.w95-checkbox input { display: none; }
.w95-check-box {
  width: 13px;
  height: 13px;
  background: #fff;
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  box-shadow:
    inset 1px 1px 0 var(--w95-shadow-dark),
    inset -1px -1px 0 var(--w95-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

/* Marquee in title bar */
.w95-marquee {
  overflow: hidden;
  white-space: nowrap;
}
.w95-marquee > span {
  display: inline-block;
  padding-left: 100%;
  animation: w95-scroll 12s linear infinite;
}
@keyframes w95-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* CRT scanlines overlay */
.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0px,
      rgba(0,0,0,0.0) 2px,
      rgba(0,0,0,0.08) 3px,
      rgba(0,0,0,0.0) 4px
    );
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.35) 100%);
}

/* Blink cursor */
.blink-cursor::after {
  content: '_';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Scrollbar — Win95 style */
.w95-scroll::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
.w95-scroll::-webkit-scrollbar-track {
  background: #d4d0c8;
  background-image:
    repeating-conic-gradient(#c3c3c3 0% 25%, #dfdfdf 0% 50%);
  background-size: 2px 2px;
}
.w95-scroll::-webkit-scrollbar-thumb {
  background: var(--w95-bg);
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow);
}
.w95-scroll::-webkit-scrollbar-button {
  background: var(--w95-bg);
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow:
    inset 1px 1px 0 var(--w95-bg-light),
    inset -1px -1px 0 var(--w95-shadow);
  height: 16px;
  width: 16px;
  display: block;
}

/* Desktop icon (label under icon) */
.desktop-icon {
  width: var(--grid-cell);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  padding: 4px 2px;
  border-radius: 0;
}
.desktop-icon .icon-img {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
}
.desktop-icon .icon-label {
  color: #fff;
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 0 #000, 0 0 4px rgba(0,0,0,0.8);
  line-height: 1.15;
  padding: 1px 3px;
  word-break: break-word;
  hyphens: auto;
}
.desktop-icon:active .icon-label,
.desktop-icon.selected .icon-label {
  background: var(--w95-title);
  text-shadow: none;
  outline: 1px dotted #fff;
}

/* Vaporwave wallpapers (CSS only) */
.wp-base {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Default: car + moon dusk */
.wp-car {
  background:
    linear-gradient(180deg, #2b0e44 0%, #6e1b6f 30%, #d147a3 60%, #ff8ec9 80%, #ffd6c2 100%);
}
.wp-car .moon {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #ffe7f6 30%, #ff9ad4 60%, #d147a3 100%);
  box-shadow: 0 0 50px #ff9ad4, 0 0 90px rgba(255,154,212,0.6);
}
.wp-car .moon::before {
  content: '';
  position: absolute; inset: 22% 18%;
  background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(40,8,60,0.25) 8px 10px);
  border-radius: 50%;
}
.wp-car .grid {
  position: absolute; bottom: 0; left: -50%; right: -50%; height: 45%;
  background:
    linear-gradient(to bottom, transparent 0%, #ff3eb5 60%, #ff8ec9 100%),
    repeating-linear-gradient(90deg, transparent 0 39px, #ffe14d 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, #ffe14d 39px 40px);
  background-blend-mode: multiply;
  transform: perspective(400px) rotateX(70deg);
  transform-origin: top center;
}
.wp-car .palms {
  position: absolute; bottom: 35%; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 8%;
}
.wp-car .palms svg { filter: drop-shadow(0 0 4px #ff3eb5); }
.wp-car .car {
  position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%);
  width: 140px; filter: drop-shadow(0 0 12px rgba(255,200,80,0.8));
}

/* statue + clouds */
.wp-statue {
  background:
    linear-gradient(180deg, #1a0033 0%, #6c1f8a 35%, #d765d2 65%, #ffb6e3 100%);
}
.wp-statue .clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 220px 60px at 20% 30%, rgba(255,255,255,0.4), transparent 70%),
    radial-gradient(ellipse 280px 70px at 80% 25%, rgba(255,180,220,0.5), transparent 70%),
    radial-gradient(ellipse 200px 50px at 50% 55%, rgba(255,255,255,0.3), transparent 70%);
}
.wp-statue .statue {
  position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%);
  height: 60%; filter: drop-shadow(0 0 18px rgba(255,180,220,0.7));
}
.wp-statue .checker {
  position: absolute; bottom: 0; left: 0; right: 0; height: 18%;
  background:
    repeating-conic-gradient(#000 0% 25%, #ff3eb5 0% 50%);
  background-size: 26px 26px;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: top center;
  opacity: 0.85;
}

/* grid + sun */
.wp-grid {
  background:
    linear-gradient(180deg, #0a0028 0%, #2a0046 25%, #8b1264 55%, #ff6ec7 80%, #ffe14d 100%);
}
.wp-grid .sun {
  position: absolute; bottom: 35%; left: 50%; transform: translateX(-50%);
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe14d 0%, #ff3a8e 70%, #6a2bd9 100%);
  -webkit-mask:
    linear-gradient(#000 0 0),
    repeating-linear-gradient(transparent 0 16px, #000 16px 22px);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(#000 0 0),
    repeating-linear-gradient(transparent 0 16px, #000 16px 22px);
  mask-composite: intersect;
  box-shadow: 0 0 80px #ff3a8e;
}
.wp-grid .floor {
  position: absolute; bottom: 0; left: -50%; right: -50%; height: 45%;
  background:
    linear-gradient(to bottom, #2a0046 0%, transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 49px, #00e5ff 49px 50px),
    repeating-linear-gradient(0deg, transparent 0 39px, #00e5ff 39px 40px);
  background-blend-mode: screen;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: top center;
}
.wp-grid .mountains {
  position: absolute; bottom: 32%; left: 0; right: 0; height: 12%;
  background:
    linear-gradient(135deg, transparent 49.5%, #1a0033 50%) 0 0/40px 100%,
    linear-gradient(45deg, transparent 49.5%, #1a0033 50%) 0 0/40px 100%;
  background-blend-mode: multiply;
  opacity: 0.6;
}

/* Top header bar (browser-style) */
.ap-topbar {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11px;
  border-bottom: 2px solid #444;
  position: relative;
  z-index: 100;
}
.ap-logo {
  font-weight: bold;
  letter-spacing: 0.05em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ap-logo .star {
  color: var(--ap-pink);
  text-shadow: 0 0 6px var(--ap-pink-deep);
}

/* Sticky orange shipping bar */
.ship-bar {
  background: linear-gradient(180deg, #ff9d3e 0%, #ff7a18 100%);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #b8470a;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 11px;
  padding: 6px 10px;
  text-shadow: 1px 1px 0 #b8470a;
  position: relative;
  overflow: hidden;
}
.ship-bar .progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.25);
  border-right: 2px solid #fff;
  transition: width 0.4s cubic-bezier(.2,.8,.4,1);
  pointer-events: none;
}
.ship-bar .ship-text {
  position: relative; z-index: 1;
}
.ship-bar .ticker-line {
  display: inline-block;
  animation: ticker-fade 3.5s ease-in-out;
}
@keyframes ticker-fade {
  0%   { opacity: 0; transform: translateY(4px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Start button */
.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 6px 2px 4px;
  height: 24px;
}
.start-btn .star {
  color: var(--ap-pink);
}

/* Taskbar */
.taskbar {
  background: var(--w95-bg);
  border-top: 1px solid var(--w95-highlight);
  box-shadow: inset 0 1px 0 var(--w95-bg-light);
  padding: 2px 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  flex-shrink: 0;
}
.taskbar-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, var(--w95-shadow), var(--w95-highlight));
}
.taskbar-tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  height: 22px;
  font-size: 10px;
}
.task-window {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 10px;
  height: 22px;
  flex-shrink: 0;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Drawer */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.drawer {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 75%;
  background: var(--w95-bg);
  border-right: 2px solid var(--w95-shadow-dark);
  z-index: 201;
  display: flex;
  flex-direction: column;
  animation: drawer-slide 0.25s ease-out;
}
@keyframes drawer-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.drawer-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--w95-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.drawer-item:hover {
  background: var(--w95-title);
  color: #fff;
}

/* Boot screen */
.boot-screen {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.boot-screen .logo {
  font-size: 28px;
  text-align: center;
  margin: 30% 0 20px;
  color: var(--ap-pink);
  text-shadow: 0 0 12px var(--ap-pink-deep), 2px 2px 0 #6a2bd9;
  letter-spacing: 0.1em;
}
.boot-line { white-space: nowrap; overflow: hidden; }

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid;
  border-color: var(--w95-shadow) var(--w95-highlight) var(--w95-highlight) var(--w95-shadow);
  box-shadow: inset 1px 1px 0 var(--w95-shadow-dark);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.product-card .thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffd6c2, #ff8ec9);
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card .name {
  font-size: 11px;
  font-weight: bold;
  color: #000;
}
.product-card .price {
  font-size: 11px;
  color: var(--w95-blue);
  font-weight: bold;
}

/* Pixel art helpers */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Tabs */
.w95-tabs {
  display: flex;
  border-bottom: 1px solid var(--w95-shadow);
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.w95-tab {
  background: var(--w95-bg);
  border: 1px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) transparent;
  padding: 3px 10px 4px;
  font-size: 11px;
  cursor: pointer;
  margin-right: 2px;
  position: relative;
}
.w95-tab[aria-selected="true"] {
  background: var(--w95-bg);
  z-index: 2;
  padding-bottom: 5px;
  margin-bottom: -1px;
  border-bottom-color: var(--w95-bg);
}

/* Notification dot */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3a3a; display: inline-block;
}

/* Animated marquee text content */
.scroll-text {
  white-space: nowrap;
  animation: marquee-move 8s linear infinite;
}
@keyframes marquee-move {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Nudge / shake */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.shake { animation: shake 0.4s; }

/* Hide scrollbars when needed */
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ─── PWA install banner ──────────────────────────────────── */
.ap-install-banner {
  position: fixed;
  left: 8px; right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 10001;
  background: linear-gradient(180deg, #2a0046 0%, #0a0014 100%);
  border: 2px solid var(--ap-pink);
  box-shadow:
    0 0 0 1px #000,
    0 0 16px rgba(255, 58, 142, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  animation: ap-install-slide 0.35s ease-out;
}
@keyframes ap-install-slide {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ap-install-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ap-pink);
  color: #fff;
  font-size: 22px;
  text-shadow: 0 0 6px var(--ap-pink-deep);
  border: 1px solid #000;
}
.ap-install-text { flex: 1; min-width: 0; }
.ap-install-title {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.ap-install-sub {
  font-size: 11px;
  opacity: 0.8;
}
.ap-install-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.ap-install-actions .w95-btn {
  min-width: 44px;
}

.ap-install-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  animation: ap-install-fade 0.2s ease-out;
}
@keyframes ap-install-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ap-install-sheet {
  background: var(--w95-bg);
  border: 2px solid;
  border-color: var(--w95-highlight) var(--w95-shadow-dark) var(--w95-shadow-dark) var(--w95-highlight);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), 4px 4px 0 #000;
  width: 100%;
  max-width: 360px;
  padding: 14px;
  color: #000;
  animation: ap-install-slide 0.3s ease-out;
}
.ap-install-sheet-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.ap-install-sheet-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.6;
}
.ap-install-sheet-steps li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: block;
}
.ap-install-sheet-steps li:last-child { border-bottom: none; }
.ap-install-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--ap-pink);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  margin-right: 8px;
  vertical-align: -3px;
}
