/* ============================================================
   DESKTOP — Windows XP theme
   ============================================================ */

@font-face {
  font-family: 'Minecraft Georgian';
  src: url('/mg-minecraft-georgian-regular-31222308478.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* XP cursors (PNG — SVG cursors not supported in Chrome) */
*, *::before, *::after {
  cursor: url('/cursor-arrow.png') 3 2, auto;
}
a, button, [role=button], select, label[for], .dicon, .cart-btn, .xp-btn-close, .xp-btn-max, .xp-btn-min, .start-item, .task-btn, .tray-btn, .pd-size-chip, .pm-option, .auth-tab, .auth-btn, .co-btn, .cart-checkout-btn, .pd-add-btn, .pd-size-guide-btn, [onclick] {
  cursor: url('/cursor-hand.png') 8 0, pointer;
}

:root {
  --xp-blue:        #593bac;
  --xp-blue-dark:   #3d2880;
  --xp-blue-light:  #7c5ec9;
  --xp-title-1:     #593bac;
  --xp-title-2:     #7c5ec9;
  --xp-title-3:     #4a2f96;
  --xp-face:        #ece9d8;
  --xp-face-dark:   #d6d2bd;
  --xp-border:      #0a246a;
  --xp-green:       #3c8b29;
  --xp-green-2:     #5dbf3a;
  --xp-taskbar-1:   #593bac;
  --xp-taskbar-2:   #4a2f96;
  --xp-taskbar-edge:#3d2880;
  --font:           'Minecraft Georgian', Tahoma, "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

:lang(ka) { font-family: 'Minecraft Georgian', "Noto Sans Georgian", Tahoma, sans-serif; }

/* ---------- Desktop / wallpaper ---------- */
.desktop {
  position: fixed;
  inset: 0 0 32px 0;
  overflow: auto;
  background: url('/wallpaper.jpg') center/cover no-repeat;
  padding: 14px;
}

.desktop::before { display: none; }

/* ---------- Desktop icons ---------- */
.desktop-icons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 84px;
  float: left;
  margin-right: 14px;
}
.dicon {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: 78px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.8);
}
.dicon:hover, .dicon:focus { background: rgba(49,106,197,.35); border: 1px dotted #ccd9f0; outline: none; }
.dicon-img { font-size: 32px; line-height: 1; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.4)); display: flex; align-items: center; justify-content: center; }
.dicon-img img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.dicon-label { font-size: 11px; text-align: center; line-height: 1.2; }

/* ---------- XP window ---------- */
.xp-window {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto 24px;
  background: var(--xp-face);
  border: 1px solid var(--xp-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  overflow: hidden;
}
.xp-window-sm { max-width: 460px; }
.hidden { display: none !important; }

.xp-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 4px 0 7px;
  background: linear-gradient(180deg, var(--xp-title-2) 0%, var(--xp-title-1) 8%, var(--xp-title-3) 40%, var(--xp-title-1) 88%, #2e1a6e 100%);
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  cursor: move;
  user-select: none;
  touch-action: none;   /* allow pointer-drag on touch without page scroll */
}
.xp-title { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.xp-title-icon { font-size: 15px; display: flex; align-items: center; }
.xp-title-icon img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.xp-title .logo { font-weight: 700; }

.xp-controls { display: flex; gap: 2px; }
.xp-controls button {
  width: 22px; height: 22px;
  border: 1px solid #fff;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #7c5ec9, #593bac);
}
.xp-controls button:hover { filter: brightness(1.12); }
.xp-btn-close { background: linear-gradient(180deg, #f1908a, #d24c3f) !important; }
.xp-btn-close:hover { filter: brightness(1.12); }

/* menubar */
.xp-menubar {
  display: flex;
  gap: 2px;
  padding: 3px 6px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-face-dark);
  font-size: 12px;
}
.xp-menubar span { padding: 2px 8px; cursor: default; border-radius: 2px; }
.xp-menubar span:hover { background: var(--xp-blue); color: #fff; }

.xp-window-body { background: #fff; padding: 0; }

/* hero strip inside the window */
.hero-strip {
  background: linear-gradient(180deg, #fafafa, #ece9d8);
  border-bottom: 1px solid var(--xp-face-dark);
  padding: 22px 24px 18px;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: 44px;
  letter-spacing: 6px;
  font-weight: 700;
  color: var(--xp-blue-dark);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0,0,0,.08);
  font-family: "Apple Garamond", "EB Garamond", Garamond, Georgia, serif;
}
.hero-sub {
  margin: 4px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--xp-green);
  font-weight: 700;
}
.hero-desc { margin: 8px 0 0; font-size: 13px; color: #444; }

/* filters toolbar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 12px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-face-dark);
}
.filter-btn {
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 12px;
  background: linear-gradient(180deg, #fff, #ece9d8);
  border: 1px solid #aca999;
  border-radius: 3px;
  cursor: pointer;
  color: #222;
}
.filter-btn:hover { border-color: var(--xp-blue); }
.filter-btn.active {
  background: linear-gradient(180deg, #fbe9a0, #fdd768);
  border-color: #d9a300;
  font-weight: 700;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
  background: #fff;
  min-height: 160px;
}
.product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #c8c4b4;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.product-card:hover {
  border-color: var(--xp-blue);
  box-shadow: 0 4px 12px rgba(36,94,219,.25);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f4f0;
  overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-overlay, .card-shine { display: none; }
.card-badge-new, .card-badge-oos {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
}
.card-badge-new { background: var(--xp-green); }
.card-badge-oos { background: #c0392b; left: auto; right: 6px; }
.card-quick-add {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font);
  font-size: 11px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #7cc15a, var(--xp-green));
  color: #fff;
  border: 1px solid #2c6b1e;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}
.product-card:hover .card-quick-add { opacity: 1; }
.card-info { padding: 8px 10px; }
.card-cat { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.card-name { margin: 2px 0; font-size: 13px; font-weight: 700; color: #222; }
.card-price { margin: 0; font-size: 14px; font-weight: 700; color: var(--xp-blue-dark); }
.no-products { grid-column: 1/-1; text-align: center; color: #888; padding: 40px 0; }

/* statusbar */
.xp-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  color: #444;
  background: var(--xp-face);
  border-top: 1px solid #fff;
  box-shadow: inset 0 1px 0 var(--xp-face-dark);
}

/* about window */
.about-body { padding: 18px 22px; }
.about-body h2 { margin: 0 0 10px; font-size: 18px; color: var(--xp-blue-dark); }
.about-body p { margin: 0 0 10px; line-height: 1.55; color: #333; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.footer-links a { color: var(--xp-blue); }
.footer-copy { font-size: 11px; color: #888; }

/* ---------- Taskbar ---------- */
.taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #7c5ec9 0%, #593bac 9%, #4a2f96 90%, #3d2880 100%);
  border-top: 1px solid #2e1a6e;
  z-index: 100;
  box-shadow: inset 0 1px 0 #9b7de0;
}
.start-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 22px 0 12px;
  border: none;
  font-family: var(--font);
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  cursor: pointer;
  background: linear-gradient(180deg, #5dbf3a 0%, #3c8b29 45%, #2f7d20 100%);
  border-radius: 0 9px 9px 0;
  box-shadow: inset 0 1px 0 #8fe06a;
}
.start-btn:hover { filter: brightness(1.08); }
.start-flag { display: inline-block; width: 18px; height: 18px; background: url('/favicon.png') center/contain no-repeat; vertical-align: middle; font-size: 0; position: relative; top: 1px; }

.task-buttons { display: flex; align-items: center; gap: 3px; padding: 3px 6px; flex: 1; overflow: hidden; }
.task-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  max-width: 200px;
  padding: 0 10px;
  border: 1px solid #2e1a6e;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #7c5ec9, #593bac);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-btn.active { background: linear-gradient(180deg, #4a2f96, #593bac); box-shadow: inset 1px 1px 3px rgba(0,0,0,.4); }

/* system tray */
.systray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: linear-gradient(180deg, #4a2f96, #3d2880);
  border-left: 1px solid #2e1a6e;
  box-shadow: inset 1px 0 0 #7c5ec9;
}
.tray-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  height: 22px;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.tray-btn:hover { background: rgba(255,255,255,.25); }
.cart-count {
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 5px;
  min-width: 14px;
  text-align: center;
  display: none;
}
.clock {
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  text-shadow: 1px 1px 1px rgba(0,0,0,.4);
}

/* ---------- Start menu ---------- */
.start-menu {
  position: fixed;
  left: 4px;
  bottom: 33px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--xp-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  z-index: 110;
  overflow: hidden;
}
.start-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--xp-title-1), #2e1a6e);
  color: #fff;
  border-bottom: 2px solid #d8a000;
}
.start-avatar {
  font-size: 26px;
  background: rgba(255,255,255,.2);
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 2px 4px;
}
.start-username { font-weight: 700; font-size: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,.4); }
.start-body, .start-footer { padding: 6px; background: #fff; }
.start-footer { background: linear-gradient(180deg, #dfeaf8, #aecbf0); border-top: 1px solid #88a9d8; }
.start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  color: #222;
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
}
.start-item span:first-child { font-size: 18px; width: 22px; text-align: center; }
.start-item:hover { background: var(--xp-blue); color: #fff; }

/* ---------- Cart drawer (re-themed as XP) ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
  z-index: 120;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(.96);
  width: 380px; max-width: 92vw;
  max-height: 80vh;
  background: var(--xp-face);
  border: 1px solid var(--xp-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s;
  z-index: 121;
  display: flex; flex-direction: column;
}
.cart-drawer.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 0 9px; height: 30px;
  background: linear-gradient(180deg, var(--xp-title-1) 0%, var(--xp-title-3) 50%, #003fd4 100%);
  color: #fff;
}
.cart-drawer-header h2 { margin: 0; font-size: 13px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0,.5); }
.cart-close {
  width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px;
  background: linear-gradient(180deg, #f1908a, #d24c3f); color: #fff;
  font-weight: 700; cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; background: #fff; padding: 8px; }
.cart-empty { text-align: center; padding: 40px 0; color: #888; }
.cart-empty a { display: inline-block; margin-top: 10px; color: var(--xp-blue); }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-bottom: 1px solid #eee;
}
.cart-item img { width: 48px; height: 48px; object-fit: cover; border: 1px solid #ccc; border-radius: 3px; }
.cart-item-info { flex: 1; }
.cart-item-name { margin: 0; font-size: 13px; font-weight: 700; }
.cart-item-meta { margin: 2px 0 0; font-size: 12px; color: #666; }
.cart-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.cart-qty-btn {
  width: 20px; height: 20px; line-height: 1; font-size: 14px; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, #fff, #ece9d8); border: 1px solid #aca999; border-radius: 3px; color: #222;
}
.cart-qty-btn:hover { border-color: var(--xp-blue); }
.cart-qty-num { min-width: 20px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-item-remove { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 14px; align-self: flex-start; }
.cart-footer { padding: 10px; background: var(--xp-face); border-top: 1px solid var(--xp-face-dark); flex-direction: column; gap: 8px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.cart-checkout-btn {
  display: block; text-align: center;
  padding: 8px; border-radius: 3px;
  background: linear-gradient(180deg, #7cc15a, var(--xp-green));
  color: #fff; text-decoration: none; font-weight: 700;
  border: 1px solid #2c6b1e;
}
.cart-checkout-btn:hover { filter: brightness(1.08); }

/* hide leftover desktop elements that may exist */
.marquee-wrap, #site-header, .mobile-nav, footer:not(.about-body) { display: none; }

/* ============================================================
   Shared sub-page chrome + form controls (product / checkout /
   account / login / 404)
   ============================================================ */

.xp-page-window { margin: 26px auto; }

/* close button that returns to desktop */
.xp-btn-home {
  width: 22px; height: 22px;
  border: 1px solid #fff; border-radius: 3px;
  background: linear-gradient(180deg, #f1908a, #d24c3f);
  color: #fff; font-weight: 700; cursor: pointer;
}
.xp-btn-home:hover { filter: brightness(1.12); }

/* XP sunken text fields */
.xp input[type="text"],
.xp input[type="email"],
.xp input[type="tel"],
.xp input[type="password"],
.xp input[type="number"],
.xp select,
.xp textarea {
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid #7f9db9;
  border-top-color: #3a4a5a;
  border-left-color: #3a4a5a;
  border-radius: 0;
  color: #111;
  outline: none;
}
.xp input:focus, .xp select:focus, .xp textarea:focus { border-color: var(--xp-blue); }

/* XP raised push button (generic) */
.xp-action-btn {
  font-family: var(--font);
  font-size: 13px;
  padding: 6px 18px;
  background: linear-gradient(180deg, #fefefe, #ece9d8 55%, #dcd8c4);
  border: 1px solid #003c74;
  border-radius: 3px;
  color: #111;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #fff;
}
.xp-action-btn:hover { border-color: var(--xp-blue); }
.xp-action-btn:active { box-shadow: inset 1px 1px 3px rgba(0,0,0,.3); }
.xp-action-btn:disabled { color: #999; cursor: default; filter: grayscale(.5); }

/* primary green "go" button */
.xp-go-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  background: linear-gradient(180deg, #7cc15a, var(--xp-green));
  border: 1px solid #2c6b1e;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #a6e283;
}
.xp-go-btn:hover { filter: brightness(1.07); }
.xp-go-btn:disabled { background: linear-gradient(180deg, #cfcdc0, #b9b6a6); border-color: #999; color: #f0f0f0; cursor: default; box-shadow: none; }

.xp-field { margin-bottom: 12px; }
.xp-field label { display: block; font-size: 12px; font-weight: 700; color: #333; margin-bottom: 4px; }

/* a sunken inset panel (like XP grouped content) */
.xp-inset {
  background: #fff;
  border: 1px solid #7f9db9;
  border-top-color: #3a4a5a;
  border-left-color: #3a4a5a;
  padding: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  html, body { overflow: auto; }
  .desktop {
    position: relative; inset: auto;
    min-height: calc(100vh - 40px);
    padding: 8px 8px 60px; /* 60px = taskbar height + breathing room */
    overflow: visible;
  }
  .desktop-icons {
    float: none; flex-direction: row; flex-wrap: wrap;
    width: 100%; justify-content: flex-start; gap: 4px; margin: 0 0 10px;
  }
  .dicon { width: 72px; }
  .dicon-img img { width: 44px; height: 44px; }
  .dicon-label { font-size: 10px; }
  .xp-window {
    position: relative !important; left: auto !important; top: auto !important;
    width: 100% !important; max-width: 100% !important;
    margin: 0 0 12px; transform: none !important;
  }
  .xp-window-dyn { position: relative; top: auto; left: auto; width: 100%; }
  .xp-window-body { max-height: none; overflow: visible; }
  .hero-title { font-size: 28px; letter-spacing: 2px; }
  .product-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .xp-page-window { margin: 0; border-radius: 0; }
  .taskbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; }

  /* Bigger touch targets for XP control buttons */
  .xp-btn-close, .xp-btn-min, .xp-btn-max {
    width: 22px; height: 22px; font-size: 12px;
  }

  /* Cart qty buttons — bigger tap area */
  .cart-qty-btn { width: 28px; height: 28px; font-size: 16px; }

  /* Always show quick-add on touch (no hover) */
  .card-quick-add { opacity: 1; transform: translateY(0); }

  /* Start menu — prevent overflow on narrow screens */
  .start-menu { left: 0; bottom: 40px; max-width: 100vw; }

  /* Minesweeper cells bigger on touch */
  .mine-cell { width: 32px; height: 32px; font-size: 15px; }
}

/* ── Boot screen ──────────────────────────────────────────────────────────── */
#boot-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity .5s ease;
}
#boot-screen.boot-done { opacity: 0; pointer-events: none; }
#boot-screen .boot-logo { font-size: 46px; letter-spacing: 8px; font-weight: 700; }
#boot-screen .boot-logo .logo { color: #fff; }
.boot-bar {
  width: 200px; height: 18px; border: 2px solid #4a4a8a; border-radius: 3px;
  padding: 2px; overflow: hidden; background: #0a0a1a;
}
.boot-bar-fill {
  height: 100%; width: 60px; border-radius: 2px;
  background: linear-gradient(90deg, #0058ee, #3f8cf3, #0058ee);
  animation: boot-slide 1.1s linear infinite;
}
@keyframes boot-slide { 0% { transform: translateX(-65px); } 100% { transform: translateX(205px); } }
.boot-tip { font-size: 13px; color: #9fb8ff; }
.boot-copyright { position: absolute; bottom: 20px; right: 24px; font-size: 11px; color: #555; }

/* ── Dynamic windows ──────────────────────────────────────────────────────── */
.xp-window-dyn { position: absolute; top: 70px; left: 80px; width: 360px; max-width: 92vw; z-index: 60; }
.mc-body h2, .about-body h2 { margin: 0 0 8px; font-size: 16px; color: var(--xp-blue-dark); }
.mc-list, .rb-list { list-style: none; margin: 10px 0; padding: 0; }
.mc-list li, .rb-list li { padding: 5px 4px; border-bottom: 1px solid var(--xp-face-dark); font-size: 13px; }
.rb-tag { color: #b00; font-size: 11px; margin-left: 6px; }
.rb-empty { padding: 16px; text-align: center; color: #555; }
.mc-open {
  margin-top: 8px; font-family: var(--font); cursor: pointer;
  padding: 4px 12px; border: 1px solid var(--xp-border); background: var(--xp-face);
}
.mc-open:hover { background: var(--xp-blue); color: #fff; }

/* ── Context menu ─────────────────────────────────────────────────────────── */
#ctx-menu {
  position: absolute; z-index: 9000; min-width: 160px;
  background: var(--xp-face); border: 1px solid var(--xp-border);
  box-shadow: 2px 2px 6px rgba(0,0,0,.4); padding: 2px;
}
#ctx-menu.hidden { display: none; }
#ctx-menu button {
  display: block; width: 100%; text-align: left; border: none; background: none;
  font-family: var(--font); font-size: 13px; padding: 5px 14px; cursor: pointer;
}
#ctx-menu button:hover { background: var(--xp-blue); color: #fff; }

/* ── Minesweeper ──────────────────────────────────────────────────────────── */
#mine-board { display: grid; gap: 2px; justify-content: center; padding: 8px; background: var(--xp-face-dark); }
.mine-cell {
  width: 24px; height: 24px; padding: 0; font-family: var(--font); font-weight: 700;
  font-size: 13px; cursor: pointer; border: 2px outset #fff; background: #cdc9b8;
}
.mine-cell.open { border: 1px solid #b0ac9c; background: #efeada; cursor: default; }
.mine-cell.boom { background: #e44; }
.mine-cell[data-n="1"] { color: #00f; } .mine-cell[data-n="2"] { color: #080; }
.mine-cell[data-n="3"] { color: #e00; } .mine-cell[data-n="4"] { color: #008; }
.mine-cell[data-n="5"] { color: #800; } .mine-cell[data-n="6"] { color: #088; }
.mine-bar { display: flex; align-items: center; gap: 12px; padding: 8px; font-size: 13px; }
.mine-bar button { font-family: var(--font); cursor: pointer; padding: 3px 10px; border: 1px solid var(--xp-border); background: var(--xp-face); }

/* ── BSOD ─────────────────────────────────────────────────────────────────── */
#bsod {
  position: fixed; inset: 0; z-index: 99998; background: #0827d6; color: #fff;
  font-family: 'Lucida Console', monospace; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 30px;
}
.bsod-inner { max-width: 640px; font-size: 15px; line-height: 1.7; }
.bsod-inner p:first-child { font-size: 56px; margin: 0 0 20px; }
.bsod-tip { margin-top: 26px; }
