/* Startmenü: der Windows-98-Bootbildschirm als Auswahlseite. */

@font-face {
  font-family: "Perfect DOS VGA 437";
  src: url("../vendor/xp.css/PerfectDOSVGA437Win.woff2") format("woff2"),
       url("../vendor/xp.css/PerfectDOSVGA437Win.woff") format("woff");
  font-display: swap;
}

html { background: #000; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #000;
  color: #aaa;
  font-family: "Perfect DOS VGA 437", "Lucida Console", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.25;
}

/* Scanlines und Röhren-Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .55) 100%);
}

.screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  padding: 48px 24px 40px;
}

h1 { margin: 0; font-size: inherit; font-weight: normal; color: #fff; }
.rule { margin: 0 0 24px; overflow: hidden; white-space: nowrap; }

.menu {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
}
.menu a:hover,
.menu a:focus-visible { background: #aaa; color: #000; outline: none; }
.menu a:hover small,
.menu a:focus-visible small { color: #222; }

.num { flex: 0 0 2ch; }
.label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.label small { font-size: 14px; color: #7c7c7c; }

/* Mini-Vorschau, komplett aus CSS gemalt */
.thumb {
  flex: 0 0 96px;
  position: relative;
  width: 96px;
  height: 64px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #555;
}
.thumb::before, .thumb::after { content: ""; position: absolute; }

.thumb-98 { background: #008080; }
.thumb-98::before {
  left: 22px; top: 10px; width: 56px; height: 36px;
  background: linear-gradient(#000080 0 6px, #c0c0c0 6px);
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #808080;
}
.thumb-98::after {
  left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, #c0c0c0 0 16px, #808080 16px 17px, #c0c0c0 17px);
  border-top: 1px solid #fff;
}

.thumb-99 {
  background:
    radial-gradient(circle at 12px 10px, #fff 1px, transparent 1.6px),
    radial-gradient(circle at 60px 22px, #fff .8px, transparent 1.4px),
    radial-gradient(circle at 84px 8px, #fff 1px, transparent 1.6px),
    radial-gradient(circle at 30px 50px, #fff .8px, transparent 1.4px),
    radial-gradient(circle at 72px 56px, #fff 1px, transparent 1.6px),
    #000;
}
.thumb-99::before {
  left: 6px; right: 6px; top: 18px; height: 3px;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f);
}
.thumb-99::after {
  left: 6px; top: 27px; width: 22px; height: 30px;
  background: #c0c0c0;
  border: 1px solid #fff;
  box-shadow: 30px 4px 0 -12px #0f0, 30px 12px 0 -12px #0f0, 30px 20px 0 -12px #ff0;
}

.thumb-xp {
  background:
    radial-gradient(ellipse 120% 50% at 40% 115%, #3f8f22 0 55%, transparent 56%),
    linear-gradient(#2a63c9, #8fc3f0 70%, #d4ebf9);
}
.thumb-xp::before {
  left: 20px; top: 8px; width: 58px; height: 36px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#0a5fe8 0 7px, #ece9d8 7px);
  border: 1px solid #0831d9;
}
.thumb-xp::after {
  left: 0; right: 0; bottom: 0; height: 9px;
  background: linear-gradient(90deg, #3c9a3c 0 18px, #245edb 18px);
}

.thumb-2005 { background: #e5e5e5; }
.thumb-2005::before {
  left: 8px; right: 8px; top: 6px; height: 12px;
  background: linear-gradient(#5aa9f5, #0e6ba8);
  border: 1px solid #003d66;
}
.thumb-2005::after {
  left: 8px; top: 22px; width: 22px; height: 34px;
  background: linear-gradient(#0e6ba8 0 5px, #fff 5px);
  border: 1px solid #666;
  box-shadow: 26px 0 0 0 #fff, 26px 0 0 1px #666, 54px 0 0 0 #fff, 54px 0 0 1px #666;
}

.prompt { margin: 0 0 20px; color: #fff; }
.cursor {
  display: inline-block;
  width: 1ch;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hint { margin: 0 0 40px; font-size: 14px; color: #7c7c7c; }
.fkeys { margin: 0; font-size: 13px; color: #555; white-space: pre-wrap; }

@media (max-width: 520px) {
  body { font-size: 15px; }
  .screen { padding: 24px 14px; }
  .thumb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
