:root {
  --desk: #008080;
  --win-gray: #c0c0c0;
  --win-blue: #000080;
  --shadow-dark: #000;
  --shadow-mid: #808080;
  --shadow-light: #fff;
  --text: #111;
  --font: Tahoma, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--desk); color: var(--text); font-family: var(--font); overflow: hidden; }
button, a { font: inherit; }
img { display: block; max-width: 100%; }
.site { position: fixed; inset: 0; }
.is-hidden { display: none; }
[hidden] { display: none !important; }

.boot-screen { position: fixed; inset: 0; background: #000; color: #65ff8b; display: grid; place-items: center; z-index: 20000; }
.boot-card { width: min(520px, 90vw); border: 2px solid #1aff6b; padding: 24px; text-align: center; background: #021305; box-shadow: 0 0 32px rgba(70,255,120,.2); }
.boot-logo { font: 700 34px/1.1 var(--mono); letter-spacing: 1px; margin-bottom: 18px; }
.boot-copy { font: 700 18px/1.4 var(--mono); margin-bottom: 16px; }
.boot-progress { height: 16px; border: 1px solid #1aff6b; padding: 2px; margin-bottom: 16px; }
.boot-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1aff6b 0 20%, transparent 20% 25%, #1aff6b 25% 45%, transparent 45% 50%, #1aff6b 50% 70%, transparent 70% 75%, #1aff6b 75% 100%); animation: bootmove 2s linear infinite; }
@keyframes bootmove { from { background-position: 0 0; } to { background-position: 160px 0; } }
.boot-enter { font: 700 16px/1 var(--mono); }

.desktop-stage-wrap { position: fixed; inset: 0; }
.desktop-stage { position: relative; width: 1536px; height: 864px; transform-origin: top left; background: var(--desk); overflow: hidden; }
.reference-bg { position: absolute; inset: 0; width: 1536px; height: 864px; pointer-events: none; user-select: none; }

.win95-window { background: var(--win-gray); border-top: 2px solid var(--shadow-light); border-left: 2px solid var(--shadow-light); border-right: 2px solid var(--shadow-dark); border-bottom: 2px solid var(--shadow-dark); box-shadow: 1px 1px 0 #555; }
.titlebar { min-height: 32px; background: var(--win-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 3px 6px; font-weight: 700; }
.titlebar-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.titlebar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar-icon { font-size: 17px; }
.win-controls { display: flex; gap: 3px; }
.win-controls span { width: 25px; height: 24px; color: #000; display: grid; place-items: center; background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; line-height: 1; font-size: 14px; font-weight: 700; }
.menu-row { display: flex; gap: 0; align-items: center; padding: 2px 4px; background: var(--win-gray); border-bottom: 1px solid #7d7d7d; }
.menu-row button { background: transparent; border: 0; padding: 3px 10px; font-size: 16px; }
.menu-row button:hover, .menu-row button:focus-visible { background: var(--win-blue); color: #fff; outline: none; }

.paint-window { position: absolute; left: 30px; top: 19px; width: 850px; height: 779px; z-index: 10; }
.paint-body { display: flex; gap: 4px; padding: 4px 4px 0; height: 687px; }
.toolbox { width: 118px; background: var(--win-gray); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; align-content: start; }
.tool-btn { min-height: 49px; background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; font-size: 22px; display: grid; place-items: center; padding: 0; }
.tool-btn.active, .tool-btn:active { border-top-color: #000; border-left-color: #000; border-right-color: #fff; border-bottom-color: #fff; background: #d8d8d8; }
.tool-btn.decorative { opacity: .6; }
.canvas-shell { flex: 1; border-top: 2px solid #7d7d7d; border-left: 2px solid #7d7d7d; border-right: 2px solid #fff; border-bottom: 2px solid #fff; background: #fff; }
.canvas-stack { position: relative; width: 736px; height: 665px; background: #fff; touch-action: none; user-select: none; }
.canvas-stack canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.status-strip { display: flex; justify-content: space-between; gap: 8px; padding: 3px 6px; font: 700 13px/1 var(--mono); }
.palette-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 6px; }
.swatches { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; flex: 1; }
.swatch { width: 28px; height: 24px; border: 2px solid #fff; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #808080; padding: 0; }
.swatch.active { outline: 2px solid #000080; outline-offset: 1px; }
.size-picks { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.size-btn { min-width: 34px; height: 24px; padding: 0 6px; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; background: var(--win-gray); font: 700 12px/1 var(--mono); }
.size-btn.active, .size-btn:active { border-top-color: #000; border-left-color: #000; border-right-color: #fff; border-bottom-color: #fff; }

.tour-window-label { position: absolute; left: 930px; top: 110px; z-index: 40; color: #fff; font: 700 22px/1 var(--font); text-shadow: 1px 1px 0 #000; }
.taskbar-app-label { position: absolute; left: 149px; bottom: 7px; z-index: 35; min-width: 260px; height: 31px; padding: 0 12px; display: flex; align-items: center; font: 700 14px/1 var(--font); color: #000; background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; }
.saved-indicator { font: 700 12px/1 var(--font); white-space: nowrap; }
.desktop-saved-indicator { position: absolute; right: 112px; bottom: 7px; z-index: 36; height: 31px; min-width: 86px; padding: 0 9px; display:flex; align-items:center; justify-content:center; background: var(--win-gray); border-top:2px solid #808080; border-left:2px solid #808080; border-right:2px solid #fff; border-bottom:2px solid #fff; }
.saved-indicator.unsaved { font-weight: 700; }
.hotspot { position: absolute; background: transparent; border: 0; padding: 0; margin: 0; z-index: 20; }
.ticket { display: block; z-index: 50; }
.ticket:hover, .ticket:focus-visible { box-shadow: inset 0 0 0 3px rgba(0,0,128,.55); }
.t1 { left: 1336px; top: 163px; width: 139px; height: 49px; }
.t2 { left: 1336px; top: 246px; width: 139px; height: 49px; }
.t3 { left: 1336px; top: 328px; width: 139px; height: 49px; }
.t4 { left: 1336px; top: 410px; width: 139px; height: 49px; }
.t5 { left: 1336px; top: 493px; width: 139px; height: 49px; }
.t6 { left: 1336px; top: 575px; width: 139px; height: 49px; }
.t7 { left: 1336px; top: 657px; width: 139px; height: 50px; }
.start-hotspot { left: 0; bottom: 0; width: 135px; height: 45px; z-index: 60; }
.sound-hotspot { right: 47px; bottom: 4px; width: 55px; height: 35px; z-index: 60; }

.win-menu { position: absolute; z-index: 200; min-width: 240px; background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; box-shadow: 2px 2px 0 #444; padding: 3px; font-size: 18px; }
.win-menu button { width: 100%; border: 0; background: transparent; text-align: left; padding: 7px 24px 7px 8px; }
.win-menu button:hover { background: #000080; color: #fff; }
.win-menu .sep { height: 2px; background: #808080; border-bottom: 1px solid #fff; margin: 2px 0; }

.start-menu { position: absolute; left: 4px; bottom: 42px; width: 320px; z-index: 150; background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; box-shadow: 2px 2px 0 #444; padding: 4px 4px 4px 38px; }
.start-side { position: absolute; left: 3px; bottom: 3px; top: 3px; width: 31px; background: #808080; color: #ddd; writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; font-weight: 700; letter-spacing: 1px; }
.start-menu button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 8px; font-size: 18px; }
.start-menu button:hover { background: #000080; color: #fff; }
.start-sep { height: 2px; background: #808080; border-bottom: 1px solid #fff; margin: 3px 0; }

.van-runner { position: absolute; left: -290px; top: 614px; width: 170px; z-index: 6; opacity: .92; pointer-events: none; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.35)); }
.van-runner.drive { animation: driveAcross 8s linear; }
@keyframes driveAcross { from { transform: translateX(0); } to { transform: translateX(1100px); } }
.spark-layer { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.spark { position: absolute; width: 14px; height: 14px; background: #ff00a8; border: 2px solid #000; animation: pop .7s ease-out forwards; }
.spark:nth-child(2n) { background: #00d9ff; }
.spark:nth-child(3n) { background: #ffe900; }
@keyframes pop { to { transform: translate(var(--dx),var(--dy)) rotate(180deg) scale(0); opacity: 0; } }

.retro-cursor { position: fixed; width: 16px; height: 22px; z-index: 9999; pointer-events: none; transform: translate(3px,3px); display: none; }
.retro-cursor::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 85%, 27% 66%, 43% 100%, 58% 92%, 42% 60%, 76% 60%); filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000); }

.popup-window { position: fixed; z-index: 10000; width: min(460px, 90vw); background: var(--win-gray); border-top: 3px solid #fff; border-left: 3px solid #fff; border-right: 3px solid #000; border-bottom: 3px solid #000; box-shadow: 4px 4px 0 rgba(0,0,0,.5); top: 22vh; left: 50%; transform: translateX(-50%); }
.popup-titlebar { height: 34px; background: #000080; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 3px 8px; font-weight: 700; cursor: move; }
.popup-close, .win95-btn { background: var(--win-gray); border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #000; border-bottom: 2px solid #000; min-width: 30px; min-height: 26px; }
.popup-close:active, .win95-btn:active { border-top-color:#000; border-left-color:#000; border-right-color:#fff; border-bottom-color:#fff; }
.popup-body { padding: 22px; font-family: var(--mono); line-height: 1.5; white-space: pre-wrap; }
.popup-actions { padding: 0 18px 18px; text-align: center; display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.popup-ok { padding: 4px 24px; }

.mobile-site { display: none; }

@media (pointer:fine) and (min-width:769px) {
  body, button, a, canvas { cursor: none !important; }
  .retro-cursor { display: block; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; overflow-y: auto; }
  body { background: var(--desk); }
  .site { position: static; min-height: 100vh; padding-bottom: 62px; }
  .desktop-stage-wrap { display: none; }
  .mobile-site { display: block; padding: 8px 8px 76px; }
  .mobile-window { margin-bottom: 12px; }
  .paint-mobile-body { display: grid; grid-template-columns: 48px 1fr; background:#808080; gap:4px; padding:4px; }
  .mobile-toolbox { width: 48px; display: grid; grid-template-columns: 1fr; gap: 3px; }
  .mobile-toolbox .tool-btn { min-height: 38px; font-size: 18px; }
  .mobile-canvas-area { overflow:hidden; background:#fff; border-top:2px solid #808080; border-left:2px solid #808080; border-right:2px solid #fff; border-bottom:2px solid #fff; }
  .mobile-canvas-stack { width: 100%; height: auto; aspect-ratio: 736 / 665; }
  .mobile-controls { padding: 5px; }
  .mobile-controls .swatches { grid-template-columns: repeat(8, 1fr); }
  .mobile-controls .swatch { width: auto; min-height: 24px; }
  .mobile-controls .size-picks { justify-content: flex-start; margin-top: 4px; }
  .mobile-paint-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:8px; }
  .mobile-paint-action { min-height:42px; padding:7px 10px; background:var(--win-gray); border-top:2px solid #fff; border-left:2px solid #fff; border-right:2px solid #000; border-bottom:2px solid #000; font:700 14px/1 var(--font); }
  .mobile-paint-action:active { border-top-color:#000; border-left-color:#000; border-right-color:#fff; border-bottom-color:#fff; }
  .mobile-status { margin-top: 6px; font: 700 12px/1.3 var(--mono); }
  .tour-list { padding: 5px; background:#bfbfbf; }
  .tour-row { display:grid; grid-template-columns: 38px 60px minmax(0,1fr) 82px; align-items:center; gap:5px; min-height:68px; color:#000; text-decoration:none; border-top:2px solid #fff; border-left:2px solid #fff; border-right:2px solid #808080; border-bottom:2px solid #808080; padding:6px 7px; margin-bottom:2px; background:#cfcfcf; }
  .tour-row:active { border-top-color:#808080; border-left-color:#808080; border-right-color:#fff; border-bottom-color:#fff; }
  .tour-icon { font-size:27px; text-align:center; }
  .date { font-family:var(--mono); font-weight:900; font-size:16px; }
  .place { min-width:0; font-family:var(--mono); line-height:1.12; }
  .place strong { display:block; font-size:15px; white-space:normal; }
  .place small { display:block; font-size:12px; margin-top:2px; }
  .ticket-btn { justify-self:end; background:var(--win-gray); border-top:2px solid #fff; border-left:2px solid #fff; border-right:2px solid #000; border-bottom:2px solid #000; padding:8px 7px; font-family:var(--mono); font-weight:900; font-size:14px; }
  .mobile-taskbar { position:fixed; z-index:500; left:0; right:0; bottom:0; height:54px; background:var(--win-gray); border-top:2px solid #fff; display:flex; align-items:center; gap:4px; padding:4px; }
  .mobile-taskbar button, .task-app, .mobile-clock, .mobile-saved-indicator { height:43px; display:flex; align-items:center; border-top:2px solid #fff; border-left:2px solid #fff; border-right:2px solid #000; border-bottom:2px solid #000; background:var(--win-gray); padding:0 8px; }
  #mobileStart { font-weight:700; min-width:82px; }
  .task-app { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
  .mobile-saved-indicator { min-width:72px; justify-content:center; font-size:10px; }
  .mobile-sound { min-width:43px; justify-content:center; }
  .mobile-clock { min-width:70px; justify-content:center; font-size:11px; }
  .mobile-start-menu { position:fixed; z-index:600; left:3px; bottom:54px; width:250px; background:var(--win-gray); border-top:2px solid #fff; border-left:2px solid #fff; border-right:2px solid #000; border-bottom:2px solid #000; padding:4px; box-shadow:2px 2px 0 #333; }
  .mobile-start-menu button { width:100%; border:0; background:transparent; text-align:left; padding:10px; font-size:16px; }
  .mobile-start-menu button:active { background:#000080; color:#fff; }
  .popup-window { top: 18vh; }
}

@media (max-width: 430px) {
  .tour-row { grid-template-columns: 34px 54px minmax(0,1fr) 74px; gap:4px; padding:5px; }
  .ticket-btn { font-size:12px; padding:8px 5px; }
  .place strong { font-size:13px; }
  .date { font-size:14px; }
}

/* Updated desktop tour window: overlays the original mockup panel so all current dates fit. */
.desktop-tour-window {
  position: absolute;
  left: 894px;
  top: 103px;
  width: 606px;
  height: 642px;
  z-index: 45;
  overflow: hidden;
}
.desktop-tour-titlebar { min-height: 37px; font-size: 20px; }
.desktop-tour-list { padding: 4px; background: #bfbfbf; height: calc(100% - 37px); overflow: hidden; }
.desktop-tour-row {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 7px;
  min-height: 53px;
  color: #000;
  text-decoration: none;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 4px 7px;
  background: #cfcfcf;
  font-family: var(--mono);
}
.desktop-tour-row:hover { background: #d9d9d9; }
.desktop-tour-row:active { border-top-color:#808080; border-left-color:#808080; border-right-color:#fff; border-bottom-color:#fff; }
.desktop-tour-row .tour-icon { font-size: 24px; text-align: center; }
.desktop-tour-row .date { font-size: 17px; font-weight: 900; }
.desktop-tour-row .place { min-width: 0; line-height: 1.05; }
.desktop-tour-row .place strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-tour-row .place small { display: block; font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-tour-row .ticket-btn {
  justify-self: stretch;
  text-align: center;
  background: var(--win-gray);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 8px 5px;
  font-weight: 900;
  font-size: 14px;
}
