/*
 * paneos.stsystems.live: the PANE OS marketing desktop.
 *
 * A self-contained static page (no Next.js layout, no site theme). The look is
 * the game's own: deep navy wallpaper, layered glass windows, Inter throughout.
 *
 * Two layouts from one document:
 *   default     a stacked, scrolling page (small screens, and no JavaScript)
 *   html.wide   a desktop with draggable windows (set by the script in <head>)
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/paneos/inter-latin-var.woff2') format('woff2');
}

:root {
  --focus: #ffb347;
  --bg: #03080f;
  --text: #eaf4ff;
  --text-dim: rgba(222, 238, 255, 0.78);
  --text-faint: rgba(200, 225, 255, 0.5);
  --data: #5fb8ff;
  --credit: #ffd166;
  --glass-border: rgba(150, 205, 255, 0.3);
  --glass-rim: rgba(255, 255, 255, 0.5);
  --radius: 10px;
  --taskbar-h: 46px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.3, 1.4, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg, rgba(120, 170, 220, 0) 44%, rgba(120, 170, 220, 0.14) 58%, rgba(120, 170, 220, 0) 74%),
    radial-gradient(140% 100% at 18% 0%, #14406e 0%, rgba(9, 26, 48, 0) 62%),
    radial-gradient(120% 90% at 92% 100%, #0d3358 0%, rgba(6, 16, 32, 0) 58%),
    linear-gradient(170deg, #0a2340 0%, #051224 55%, #03080f 100%);
  background-attachment: fixed;
}

button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; }

/* ------------------------------------------------------------------ layout */

.desktop { min-height: 100dvh; display: flex; flex-direction: column; }
.workspace { position: relative; flex: 1 1 auto; padding: 14px 12px calc(var(--taskbar-h) + 18px); }
.icons, .wallmark { display: none; }

.wide body { overflow: hidden; }
.wide .desktop { height: 100dvh; min-height: 0; }
.wide .workspace { min-height: 0; padding: 0; overflow: hidden; }
/* Its own stacking context, so no window can climb over the start menu or the balloon. */
.wide .windows { position: absolute; inset: 0; z-index: 2; isolation: isolate; pointer-events: none; }

/* --------------------------------------------------------------- wallpaper */

.wide .wallmark {
  display: block; position: absolute; right: 22px; bottom: 16px; margin: 0;
  text-align: right; pointer-events: none; user-select: none;
}
.wallmark b { display: block; font-size: 72px; font-weight: 200; letter-spacing: 0.22em; line-height: 1; margin-right: -0.22em; color: rgba(190, 225, 255, 0.09); }
.wallmark span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200, 225, 255, 0.34); }

/* ------------------------------------------------------------------- icons */

.tile {
  position: relative; flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 8, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.tile::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  border-radius: 12px 12px 60% 60% / 12px 12px 24% 24%;
}
.tile svg { position: relative; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.tile-logo { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.tile-logo::before { display: none; }
.tile-logo svg { filter: drop-shadow(0 2px 6px rgba(0, 10, 30, 0.7)); }
.tile-amber { background: linear-gradient(180deg, #ffc66b, #e08a1c); }
.tile-pink { background: linear-gradient(180deg, #ff8fb4, #d6386e); }
.tile-blue { background: linear-gradient(180deg, #7cc4ff, #2470d4); }
.tile-green { background: linear-gradient(180deg, #9be38a, #3f9e3a); }
.tile-violet { background: linear-gradient(180deg, #c9a6ff, #7d4be0); }
.tile-red { background: linear-gradient(180deg, #ff9a8f, #c93a3a); }

.wide .icons {
  position: absolute; inset: 14px auto 14px 14px; z-index: 1;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 6px;
}
.icon {
  width: 100px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  border-radius: 8px; cursor: pointer; background: transparent; border: 1px solid transparent;
  transition: background 0.14s var(--ease-out);
}
.icon:hover { background: rgba(150, 205, 255, 0.12); }
.icon.is-on { background: rgba(120, 190, 255, 0.22); border-color: rgba(160, 215, 255, 0.45); }
.icon-label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }

/* ----------------------------------------------------------------- windows */

.win {
  position: relative; display: flex; flex-direction: column;
  max-width: 720px; margin: 0 auto 16px;
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: rgba(14, 36, 64, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: 0 18px 48px rgba(2, 8, 20, 0.6), inset 0 1px 0 var(--glass-rim), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden; scroll-margin-top: 12px;
}
.win:focus { outline: none; }

.wide .win {
  position: absolute; margin: 0; max-width: none; pointer-events: auto;
  min-width: 300px; min-height: 180px; resize: both;
  animation: win-in 0.22s var(--ease-pop);
}
.wide .win:not(.is-active) { box-shadow: 0 10px 30px rgba(2, 8, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.wide .win:not(.is-active) .win-title { filter: saturate(0.6) brightness(0.86); }
.wide .win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; }
.wide .win.is-dragging { transition: none; user-select: none; }
/* The corner grip: drawn over the browser's own resize handle, which does the work. */
.wide .win:not(.is-max)::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; pointer-events: none; opacity: 0.75;
  background-image: linear-gradient(135deg, transparent 0 42%, rgba(190, 230, 255, 0.55) 42% 50%, transparent 50% 62%, rgba(190, 230, 255, 0.45) 62% 70%, transparent 70% 82%, rgba(190, 230, 255, 0.35) 82% 90%, transparent 90%);
}
@keyframes win-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

.win-title {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px;
  background: linear-gradient(180deg, rgba(120, 180, 240, 0.4), rgba(40, 88, 144, 0.26) 52%, rgba(12, 34, 60, 0.3));
  border-bottom: 1px solid rgba(150, 205, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.wide .win-title { cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; }
.win-icon { flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.win-icon.tile { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.win-icon.tile::before { border-radius: 5px 5px 60% 60% / 5px 5px 24% 24%; }
.win-title-text {
  flex: 1; min-width: 0; margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  color: rgba(235, 246, 255, 0.94); text-shadow: 0 1px 2px rgba(0, 10, 24, 0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.caps { display: none; gap: 3px; flex: none; }
.wide .caps { display: flex; }
.cap {
  width: 28px; height: 19px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: rgba(240, 250, 255, 0.9); border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: filter 0.16s ease, transform 0.16s var(--ease-pop);
}
.cap:hover { filter: brightness(1.45); transform: translateY(-1px); }
.cap:active { transform: translateY(1px); filter: brightness(0.9); }
.cap-close { background: linear-gradient(180deg, rgba(255, 150, 150, 0.55), rgba(190, 40, 50, 0.55)); border-color: rgba(255, 190, 190, 0.5); }

.win-body { flex: 1 1 auto; min-height: 0; overflow: auto; background: rgba(4, 14, 28, 0.5); scrollbar-color: rgba(150, 205, 255, 0.4) transparent; }
.pad { padding: 18px 22px 22px; }
.win-status {
  flex: none; display: flex; justify-content: space-between; gap: 12px; padding: 6px 22px 6px 12px;
  font-size: 11.5px; color: var(--text-dim); border-top: 1px solid rgba(150, 205, 255, 0.2);
  background: linear-gradient(180deg, rgba(40, 88, 144, 0.3), rgba(12, 34, 60, 0.4));
}
.win-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------- window content */

.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--data); }
.kicker i { font-style: normal; color: var(--text-faint); margin: 0 4px; }
h1 { margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.pad p { margin: 0 0 12px; color: var(--text-dim); max-width: 62ch; }
.pad p.kicker { color: var(--data); }
.hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 62% 50%; border-bottom: 1px solid rgba(150, 205, 255, 0.22); }

.pad p.lede { font-size: 16px; line-height: 1.5; color: var(--text); }
.pad p.cta { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(150, 205, 255, 0.16); }
.cta b { color: var(--credit); font-weight: 700; }
.hero-room { aspect-ratio: 16 / 8; object-position: 50% 62%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 11px; cursor: pointer; text-decoration: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #05121e;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #b8e6ff, #4fa8ff 52%, #1f6fd0);
  box-shadow: 0 8px 20px rgba(2, 10, 24, 0.55), 0 0 22px rgba(79, 168, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s var(--ease-pop), filter 0.18s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 50%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  border-radius: 11px 11px 60% 60% / 11px 11px 24% 24%;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:hover::after { animation: sweep 0.65s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-quiet {
  color: var(--text); border-color: rgba(160, 215, 255, 0.45);
  background: linear-gradient(180deg, rgba(120, 180, 240, 0.34), rgba(30, 70, 120, 0.4));
  box-shadow: 0 6px 16px rgba(2, 10, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-quiet::before { opacity: 0.35; }
@keyframes sweep { to { left: 130%; } }

.features { list-style: none; margin: 0; padding: 0; }
.features li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid rgba(150, 205, 255, 0.14); }
.features li:first-child { border-top: 0; padding-top: 2px; }
.features p { margin: 0; }
.chip {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: #06121f;
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 16px var(--glow);
}
.chip-azure { --glow: rgba(95, 184, 255, 0.4); background: linear-gradient(180deg, #a9dcff, #4a9df0); }
.chip-emerald { --glow: rgba(61, 220, 151, 0.35); background: linear-gradient(180deg, #a8ffe4, #2fbe92); }
.chip-amber { --glow: rgba(255, 190, 90, 0.35); background: linear-gradient(180deg, #ffe3a8, #eaa838); }
.chip-violet { --glow: rgba(170, 120, 255, 0.4); background: linear-gradient(180deg, #e2c4ff, #a070ee); }
.chip-magenta { --glow: rgba(255, 95, 170, 0.4); background: linear-gradient(180deg, #ffc0dc, #f0609c); }

.sysmark { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(150, 205, 255, 0.16); }
.sysmark p { margin: 0; }
.sysmark b { display: block; font-size: 22px; font-weight: 300; letter-spacing: 0.22em; color: var(--text); }
.sysmark span { display: block; font-size: 12px; color: var(--text-faint); }
.props { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 14px; margin: 0 0 18px; }
.props dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding-top: 3px; }
.props dd { margin: 0; }
.pad p.fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-faint); }

.lead { font-size: 19px; line-height: 1.3; margin-bottom: 14px; }
.pad p.mailrow { margin: 0 0 16px; }
.mail {
  display: inline-block; padding: 9px 14px; border-radius: 8px; font-size: 17px; font-weight: 600; color: var(--credit); text-decoration: none;
  overflow-wrap: anywhere; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 209, 102, 0.35); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.4);
}
.mail:hover { border-color: var(--credit); }
.ticks { margin: 0; padding: 0 0 0 2px; list-style: none; color: var(--text-dim); }
.ticks li { position: relative; padding: 2px 0 2px 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(180deg, #a8ffe4, #1fae86); }

/* ------------------------------------------------------------------ viewer */

.viewer { display: flex; flex-direction: column; }
.viewer-stage { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; flex-direction: column; background: #02060c; }
.viewer-stage img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.wide .viewer-stage img { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
.viewer-stage figcaption { flex: none; padding: 9px 14px; font-size: 13px; color: var(--text-dim); border-top: 1px solid rgba(150, 205, 255, 0.16); background: rgba(8, 22, 42, 0.9); }
.viewer-strip { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.thumb { flex: 0 1 112px; min-width: 0; display: block; border-radius: 5px; overflow: hidden; border: 2px solid rgba(150, 205, 255, 0.25); opacity: 0.7; transition: opacity 0.15s ease, border-color 0.15s ease; }
.thumb img { display: block; width: 100%; height: auto; }
.thumb:hover { opacity: 1; }
.thumb[aria-current='true'] { opacity: 1; border-color: var(--data); box-shadow: 0 0 14px rgba(95, 184, 255, 0.5); }
.viewer-nav {
  flex: none; display: none; width: 30px; height: 44px; place-items: center; padding: 0 0 3px; cursor: pointer;
  font-size: 22px; line-height: 1; border-radius: 6px; border: 1px solid rgba(160, 215, 255, 0.4);
  background: linear-gradient(180deg, rgba(120, 180, 240, 0.34), rgba(30, 70, 120, 0.4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.js .viewer-nav { display: grid; }
.viewer-nav:hover { filter: brightness(1.3); }

/* ----------------------------------------------------------------- taskbar */

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--taskbar-h);
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  background: linear-gradient(180deg, rgba(52, 104, 164, 0.94), rgba(18, 46, 82, 0.96) 48%, rgba(8, 24, 46, 0.98));
  border-top: 1px solid rgba(160, 215, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 -8px 24px rgba(2, 8, 20, 0.5);
}
.wide .taskbar { position: relative; flex: none; }

.start {
  position: relative; overflow: hidden; flex: none; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 16px 0 9px; cursor: pointer;
  border-radius: 9px; border: 1px solid rgba(220, 255, 220, 0.6);
  background: linear-gradient(180deg, #8be28f, #36ac4c 50%, #1c8236);
  box-shadow: 0 2px 10px rgba(30, 160, 70, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 16px; font-weight: 800; font-style: italic; letter-spacing: 0.01em; color: #fff; text-shadow: 0 1px 2px rgba(0, 40, 10, 0.7);
}
.start::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 50%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); border-radius: 9px 9px 60% 60% / 9px 9px 24% 24%; pointer-events: none; }
.start > * { position: relative; }
.start:hover { filter: brightness(1.1); }
.start[aria-expanded='true'] { filter: brightness(0.88); box-shadow: inset 0 2px 6px rgba(0, 40, 10, 0.6); }

.tasks { flex: 1 1 auto; min-width: 0; display: none; gap: 6px; overflow: hidden; }
.wide .tasks { display: flex; }
.task {
  flex: 0 1 190px; min-width: 44px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; border-radius: 6px; border: 1px solid rgba(160, 215, 255, 0.3);
  background: linear-gradient(180deg, rgba(120, 180, 240, 0.18), rgba(20, 50, 90, 0.3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { filter: brightness(1.25); }
.task.is-active { border-color: rgba(190, 230, 255, 0.65); background: linear-gradient(180deg, rgba(150, 205, 255, 0.42), rgba(40, 90, 150, 0.5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 14px rgba(95, 184, 255, 0.3); }
.task .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(180deg, #8fd8ff, #2f7fd6); border: 1px solid rgba(255, 255, 255, 0.8); }

.tray {
  flex: none; margin-left: auto; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 7px; border: 1px solid rgba(150, 205, 255, 0.22); background: rgba(2, 10, 22, 0.45); box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
}
.tray-note { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--credit); white-space: nowrap; }
.tray-btn { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; cursor: pointer; border: 0; border-radius: 4px; background: none; color: var(--text-dim); }
.tray-btn:hover { background: rgba(150, 205, 255, 0.18); color: var(--text); }
.clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .tray-note { display: none; } }

/* -------------------------------------------------------------- start menu */

.startmenu {
  position: fixed; left: 8px; bottom: calc(var(--taskbar-h) + 4px); z-index: 60; width: min(280px, calc(100vw - 16px));
  display: flex; flex-direction: column; padding-bottom: 6px; overflow: hidden;
  border-radius: 10px 10px 8px 8px; border: 1px solid rgba(160, 215, 255, 0.4);
  background: linear-gradient(180deg, rgba(20, 50, 86, 0.97), rgba(8, 22, 42, 0.98));
  box-shadow: 0 22px 60px rgba(2, 8, 20, 0.75);
  animation: menu-in 0.18s var(--ease-pop); transform-origin: bottom left;
}
.wide .startmenu { position: absolute; bottom: 4px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.startmenu-banner {
  display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 11px 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em;
  background: linear-gradient(90deg, rgba(46, 110, 178, 0.9), rgba(20, 54, 96, 0.5)); border-bottom: 1px solid rgba(160, 215, 255, 0.28);
}
.startmenu button {
  display: flex; align-items: center; gap: 11px; margin: 0 6px; padding: 7px 8px; cursor: pointer; text-align: left;
  font-size: 13.5px; font-weight: 500; border: 1px solid transparent; border-radius: 6px; background: none;
}
.startmenu button:hover, .startmenu button:focus-visible { background: rgba(120, 190, 255, 0.22); border-color: rgba(160, 215, 255, 0.4); }
.startmenu .tile { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.startmenu .tile::before { border-radius: 7px 7px 60% 60% / 7px 7px 24% 24%; }
.startmenu hr { width: calc(100% - 24px); margin: 6px 12px; border: 0; border-top: 1px solid rgba(160, 215, 255, 0.2); }

/* ----------------------------------------------------------------- balloon */

.balloon {
  position: absolute; right: 14px; bottom: 14px; z-index: 40; width: 290px; padding: 11px 14px 13px;
  border-radius: 10px; border: 1px solid rgba(255, 220, 150, 0.5);
  background: linear-gradient(180deg, rgba(92, 62, 34, 0.94), rgba(46, 30, 18, 0.96));
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.7), inset 0 1px 0 rgba(255, 240, 210, 0.4);
  animation: win-in 0.3s var(--ease-pop);
}
.balloon::after {
  content: ''; position: absolute; right: 62px; bottom: -8px; width: 14px; height: 14px; transform: rotate(45deg);
  background: rgba(46, 30, 18, 0.96); border-right: 1px solid rgba(255, 220, 150, 0.5); border-bottom: 1px solid rgba(255, 220, 150, 0.5);
}
.balloon-head { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ffe2b0; }
.balloon-body { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: #fff3df; }
.balloon-body b { color: var(--credit); font-weight: 600; }
.balloon-body:hover { text-decoration: underline; }
.balloon-x { position: absolute; top: 7px; right: 7px; width: 22px; height: 20px; display: grid; place-items: center; padding: 0; cursor: pointer; border: 0; border-radius: 4px; background: none; color: #ffe2b0; }
.balloon-x:hover { background: rgba(255, 220, 150, 0.2); }

/* ------------------------------------------------------- boot and power off */

.boot { display: none; }
.booting .boot {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(90% 70% at 50% 40%, #0d2f55 0%, #03080f 75%);
  transition: opacity 0.45s ease;
}
.boot.is-leaving { opacity: 0; pointer-events: none; }
.boot-logo { filter: drop-shadow(0 0 24px rgba(95, 184, 255, 0.55)); }
.boot-name { margin: 0; font-size: 34px; font-weight: 200; letter-spacing: 0.32em; margin-right: -0.32em; }
.boot-bar { position: relative; width: 190px; height: 12px; overflow: hidden; border-radius: 7px; border: 1px solid rgba(160, 215, 255, 0.5); background: rgba(0, 0, 0, 0.45); }
.boot-bar span { position: absolute; top: 1px; bottom: 1px; left: 0; width: 54px; border-radius: 5px; background: linear-gradient(90deg, rgba(95, 184, 255, 0), #7cc8ff 40%, #b8e6ff 60%, rgba(95, 184, 255, 0)); animation: marquee 1.25s linear infinite; }
.boot-note { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: var(--text-faint); }
@keyframes marquee { from { transform: translateX(-60px); } to { transform: translateX(196px); } }

.off {
  position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center;
  background: #000; animation: off-in 0.6s ease;
}
.off svg { opacity: 0.5; }
.off p { margin: 0; font-size: clamp(18px, 3vw, 24px); font-weight: 300; letter-spacing: 0.04em; color: #ffb347; }
@keyframes off-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
