:root {
  --pink: #FFD1DC;
  --lavender: #E6E6FA;
  --white: #FFFFFF;
  --blush: #FFF0F5;
  --mauve: #8B5A7C;
  --plum: #6D4C68;
  --bubblegum: #FF99B8;
  --cyan: #B2EBF2;
  --cream: #FFF9C4;
  --strawberry: #FF6B8B;
  --pixel: "Press Start 2P", monospace;
  --vt: "VT323", monospace;
  --silk: "Silkscreen", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--vt);
  color: var(--plum);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M5 2 5 19 8 15 11 18 13 17 10 14 14 14Z' fill='%23ffffff' stroke='%23ff6b8b' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto;
}
a, button { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M5 2 5 19 8 15 11 18 13 17 10 14 14 14Z' fill='%23ffffff' stroke='%23ff6b8b' stroke-width='2'/%3E%3C/svg%3E") 4 2, pointer; }

.hidden { display: none !important; }

/* ---------- background ---------- */
.desktop-bg {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(160deg, #FFD1DC 0%, #F6C6E4 38%, #E6E6FA 100%);
}
.bokeh { position: fixed; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: -1; pointer-events: none; }
.sparkle {
  position: fixed; z-index: -1; color: #fff; pointer-events: none;
  text-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- desktop grid ---------- */
.desktop {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "media status"
    "media about"
    "spoil find"
    "play play";
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px;
}
#win-media  { grid-area: media; }
#win-status { grid-area: status; }
#win-about  { grid-area: about; }
#win-spoil  { grid-area: spoil; }
#win-find   { grid-area: find; }
#win-play   { grid-area: play; }

/* ---------- windows ---------- */
.window {
  position: relative;
  width: 100%;
  background: var(--white);
  border: 2px solid var(--plum);
  box-shadow: 4px 4px 0 rgba(109,76,104,0.35);
  display: flex; flex-direction: column;
}
.titlebar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--bubblegum), var(--pink));
  border-bottom: 2px solid var(--plum);
  padding: 5px 8px;
  font-family: var(--silk); font-size: 11px; color: #5a3a4a;
  user-select: none;
}
.traffic { display: flex; gap: 4px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(109,76,104,0.6); }
.traffic i:nth-child(1) { background: #ff8a8a; }
.traffic i:nth-child(2) { background: var(--cream); }
.traffic i:nth-child(3) { background: #9ce6a8; }
.title-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-btns { font-family: var(--pixel); font-size: 8px; color: #5a3a4a; letter-spacing: 1px; }
.win-body { padding: 12px; background: var(--blush); flex: 1; display: flex; flex-direction: column; }

/* ---------- media player ---------- */
.mp-banner {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  border: 2px solid var(--plum);
  padding: 0; text-align: center;
  min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.mp-banner h1 {
  font-family: var(--pixel); font-size: clamp(0.9rem, 4.5vw, 1.4rem);
  color: #fff; text-shadow: 2px 2px 0 var(--plum);
  letter-spacing: 1px; line-height: 1.6;
}
.mp-banner .sub { margin-top: 6px; font-size: 15px; color: #5a3a4a; }
.mp-banner .kaomoji { font-size: 15px; }
/* photo */
.photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 12px;
  text-align: center;
  background: linear-gradient(transparent, rgba(109,76,104,0.72));
}
.photo-caption .sub { color: #fff; text-shadow: 1px 1px 0 rgba(109,76,104,0.9); }

/* ---------- generic OS list (links) ---------- */
.oslink {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px;
  background: #fff; border: 2px solid var(--plum);
  text-decoration: none; color: var(--plum);
  box-shadow: 2px 2px 0 rgba(109,76,104,0.35);
  font-family: var(--vt); font-size: 22px;
}
.oslink:last-child { margin-bottom: 0; }
.oslink:active { box-shadow: 1px 1px 0 rgba(109,76,104,0.35); transform: translate(1px,1px); }
.oslink .ico {
  font-size: 22px; line-height: 1;
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.oslink .ico img { display: block; height: 22px; width: auto; }
.oslink .lbl { flex: 1; }
.oslink .go { font-family: var(--pixel); font-size: 9px; color: var(--strawberry); }

/* ---------- playground ---------- */
.play-placeholder {
  text-align: center; padding: 20px 16px;
  background: #fff; border: 2px solid var(--plum);
}
.play-emoji { width: 80px; height: auto; display: block; margin: 0 auto; }
.play-title { font-family: var(--pixel); font-size: 13px; color: var(--plum); margin-top: 12px; }
.play-sub { font-family: var(--vt); font-size: 18px; color: #9a7a90; margin-top: 6px; }
.play-link { max-width: 220px; margin: 16px auto 0; text-decoration: none; }

/* ---------- status widget ---------- */
.status-widget { position: relative; }
.clock-big {
  font-family: var(--pixel); font-size: clamp(1.4rem, 7vw, 2rem);
  text-align: center; color: var(--plum);
  background: #fff; border: 2px inset #fff; padding: 10px;
  text-shadow: 2px 2px 0 var(--pink);
}
.date-line { text-align: center; font-family: var(--silk); font-size: 11px; margin-top: 6px; color: #9a7a90; }
.loadbar { margin-top: 12px; }
.loadbar .lb-label { font-family: var(--silk); font-size: 10px; margin-bottom: 4px; }
.lb-track { height: 16px; background: #fff; border: 2px inset #fff; position: relative; }
.lb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: repeating-linear-gradient(45deg, var(--bubblegum), var(--bubblegum) 6px, var(--strawberry) 6px, var(--strawberry) 12px); }
.bevel-btn {
  display: block; width: 100%; margin-top: 10px;
  padding: 7px; font-family: var(--silk); font-size: 11px;
  background: #fff; border: 2px solid; border-color: #fff var(--plum) var(--plum) #fff;
  color: var(--plum); cursor: pointer; text-align: center;
}
.bevel-btn:active { border-color: var(--plum) #fff #fff var(--plum); }

/* ---------- age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(109,76,104,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.agegate-box {
  width: 100%; max-width: 400px;
  background: var(--blush); border: 3px solid var(--plum);
  box-shadow: 5px 5px 0 rgba(109,76,104,0.5);
}
.agegate-title {
  background: linear-gradient(180deg, var(--bubblegum), var(--pink));
  border-bottom: 2px solid var(--plum); padding: 6px 10px;
  font-family: var(--silk); font-size: 11px; color: #5a3a4a; display: flex; justify-content: space-between;
}
.agegate-body { padding: 18px; text-align: center; }
.agegate-body .big { font-family: var(--pixel); font-size: 1rem; color: var(--plum); line-height: 1.8; }
.agegate-body p { font-family: var(--vt); font-size: 18px; color: #9a7a90; margin-top: 10px; }
.agegate-btns { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.agegate-note { font-family: var(--silk); font-size: 10px; color: #9a7a90; margin-top: 14px; }

/* ---------- responsive: single column ---------- */
@media (max-width: 760px) {
  .desktop {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "status"
      "about"
      "spoil"
      "find"
      "play";
    max-width: 100%;
    padding: 12px;
  }
  .sparkle { display: none; }
}
