/* base.css — reset, custom properties, global layout */

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

:root {
  /* Win98 palette */
  --w-gray:         #c0c0c0;
  --w-gray-light:   #dfdfdf;
  --w-gray-dark:    #808080;
  --w-gray-darker:  #404040;
  --w-white:        #ffffff;
  --w-black:        #000000;
  --w-title-start:  #000080;
  --w-title-end:    #1084d0;
  --w-title-text:   #ffffff;

  /* Horror palette */
  --h-bg:           #0c0c0c;
  --h-panel-bg:     #080808;
  --h-text:         #9a9a9a;
  --h-text-dim:     #555555;
  --h-accent:       #cc2200;

  /* Typography */
  --font-ui:    Tahoma, "Segoe UI", "MS Sans Serif", Arial, sans-serif;
  --font-mono:  "Courier New", Courier, monospace;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--h-bg);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--w-gray);
  overflow-x: hidden;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 99999;
  background: #000080;
  color: #fff;
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  text-decoration: none;
  border: 2px solid #fff;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 8px;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid #000080;
  outline-offset: 2px;
}

/* Desktop area centres the window */
.desktop {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

/* Wheel CSS transform pivot — must match SVG viewBox centre (200,200) */
#wheel-group {
  transform-origin: 200px 200px;
  will-change: transform;
}
