/* 1. Shared pink Windows palette and pixel typography. */
@font-face { font-family: Pixdor; src: url('https://poisonp1nk.art/interests/fonts/PixdorTwo.ttf'); font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; color: #330033; background: radial-gradient(ellipse at 50% 35%, #ff66c4, #ff99cc 55%, #fff 90%); font: 16px/1.5 Pixdor, Tahoma, sans-serif; }
button, input, .window { font-family: inherit; }
button, a { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #a80065; outline-offset: 3px; }
.desktop { height: calc(100dvh - 52px); padding: 22px; display: grid; place-items: center; }
.window { display: none; width: min(1440px, 100%); height: 100%; min-height: 0; flex-direction: column; padding: 2px; background: #ffffffb3; backdrop-filter: blur(8px); border-radius: 0; box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf, 4px 4px #ff0099; }
.window.active { display: flex; }
.title-bar { background: linear-gradient(90deg,#ff66c4,#ff99cc); padding: 4px 6px; min-height: 32px; flex-shrink: 0; color: #330033; }
.title-bar-text { display: flex; align-items: center; min-width: 0; font-size: 14px; }
.title-bar-text img { object-fit: contain; max-height: 20px; }
.title-bar-controls { flex-shrink: 0; }
.title-bar-controls button { border-radius: 0; }
.address-bar { display: flex; align-items: center; gap: 12px; padding: 7px 9px; background: #ffeaf8; font-size: 13px; }
.address-bar span { flex: 1; padding: 3px 8px; background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.window-body { margin: 0; overflow: auto; flex: 1; min-height: 0; padding: 20px; background: #fff7fce8; }
.status-bar { padding: 4px 9px; font-size: 12px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; background: #ffeaf8; }
/* 2. Collection trays keep full silhouettes and readable labels. */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(205px,1fr)); gap: 18px; }
.console-item { min-width: 0; padding: 0; background: #fff; border: 1px solid #d6aec7; box-shadow: 3px 3px #ff00991a; }
.image-button { display: block; width: 100%; min-width: 0; padding: 14px; border: 0; box-shadow: none; background: linear-gradient(145deg,#fff,#ffeaf8); cursor: zoom-in; }
.image-button:hover { background: #ffd9ee; box-shadow: inset 0 0 0 2px #ff0099; }
.console-item img { display: block; width: 100%; height: 225px; object-fit: contain; filter: drop-shadow(3px 5px 2px #33003322); }
.console-name { padding: 12px; border-top: 1px solid #eac3dc; font-size: 14px; line-height: 1.45; }
.console-name b { display: block; color: #a80065; margin-bottom: 3px; }
/* 3. Photos keep their original ratio. */
.gallery-grid { columns: 2; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; border: 1px solid #d6aec7; box-shadow: 3px 3px #ff009926; }
.gallery-item .image-button { padding: 5px; }
.gallery-item img { width: 100%; height: auto; display: block; }
/* 4. Taskbar and keyboard-accessible image viewer. */
.taskbar { position: fixed; bottom: 0; left: 0; right: 0; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 6px; background: linear-gradient(90deg,#ff66c4,#ff99cc); box-shadow: inset 0 1px #fff, inset 0 2px #dfdfdf; }
.start-button { display: flex; align-items: center; gap: 6px; color: #330033; text-decoration: none; padding: 4px 10px; background: #ffeaf8; box-shadow: inset 1px 1px #fff, inset -1px -1px #808080; }
.start-button img { width: 24px; height: 24px; object-fit: contain; }
.taskbar-section { display: flex; gap: 5px; min-width: 0; }
.taskbar-item { min-width: 0; font-size: 13px; padding: 6px 10px; }
.taskbar-item.active { background: #ffeaf8; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
#lightbox { padding: 2px; width: min(1000px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; color: #330033; background: #ffeaf8; box-shadow: inset 1px 1px #fff, inset -2px -2px #808080, 4px 4px #ff0099; }
#lightbox::backdrop { background: #220019b3; backdrop-filter: blur(6px); }
#photo-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.photo-stage { padding: 12px; background: #fff7fc; }
.photo-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: 72dvh; margin: auto; object-fit: contain; }
.photo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; }
@media(max-width:600px) {
 .desktop { padding: 8px; }
 .window-body { padding: 10px; }
 .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .console-item img { height: 160px; }
 .image-button { padding: 8px; }
 .console-name { padding: 9px; font-size: 13px; }
 .gallery-grid { columns: 1; }
 .taskbar-item { font-size: 12px; padding: 6px; }
 
 .address-bar { font-size: 12px; gap: 6px; }
}

/* 5. Desktop-matched frame and compact navigation. */
:root {
  --taskbar-height: 42px;
  --pink: #ff66c4;
  --pink-light: #ff99cc;
  --pink-accent: #ff0099;
  --shell-face: #ffeaf8;
  --bevel: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
           inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.desktop {
  height: calc(100dvh - var(--taskbar-height));
  padding: 16px 22px 20px;
}
.window { max-width: 1440px; box-shadow: var(--bevel), 4px 4px 0 var(--pink-accent); }
.window .title-bar { padding: 4px 6px; min-height: 28px; gap: 8px; }
.title-bar-text { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.title-bar-controls { display: flex; gap: 2px; }
.window .title-bar-controls button {
  width: 22px;
  min-width: 22px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #c0c0c0;
  box-shadow: var(--bevel);
  opacity: 1;
  cursor: default;
}
/* Keep the original black 98.css glyphs on decorative controls. */
.window .title-bar-controls button:disabled { filter: none; }
.address-bar { padding: 6px 7px; background: var(--shell-face); border-bottom: 1px solid #d7a3c4; }
.address-bar span { padding: 4px 8px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #0a0a0a; }
.window-body { padding: 16px; border: 1px solid; border-color: #808080 #fff #fff #808080; }
.status-bar { margin: 2px; padding: 3px 7px; background: var(--shell-face); }
.console-item { border-radius: 0; border-color: #d2acc4; box-shadow: 2px 2px 0 #33003314; }
.console-name { background: #fffafd; }
.taskbar {
  height: var(--taskbar-height);
  min-height: var(--taskbar-height);
  gap: 6px;
  padding: 5px 6px;
  border-top: 1px solid #fff;
  box-shadow: inset 0 1px #dfdfdf, 0 -1px #ff0099;
}
.taskbar .start-button, .taskbar-item {
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 3px 11px;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 20px;
  color: #330033;
  background: #ffeaf880;
  box-shadow: var(--bevel);
}
.start-button img { width: 18px; height: 18px; }
.taskbar-divider { width: 2px; height: 25px; border-left: 1px solid #b87c9e; border-right: 1px solid #fff; }
.taskbar-section { gap: 4px; }
.taskbar-item.active, .taskbar-item:active {
  background: #ffeaf8;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
}
.photo-footer button { min-width: 68px; min-height: 28px; padding: 4px 8px; font-size: 12px; }
@media (max-width: 600px) {
  .desktop { padding: 7px 7px 12px; }
  .window-body { padding: 9px; }
  .title-bar-text { font-size: 12px; }
  .window .title-bar-controls button { width: 20px; min-width: 20px; height: 18px; min-height: 18px; }
  .taskbar { gap: 4px; }
  .taskbar .start-button, .taskbar-item { padding: 3px 8px; font-size: 12px; }
  .address-bar { gap: 6px; padding: 5px; }
}

/* Wider trays give horizontal handhelds room while retaining full silhouettes. */
@media (min-width: 601px) {
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .console-item img { height: 240px; }
}
