/* src/style.css */
:root {
  --c64-blue: #352879;
  --c64-light: #6c5eb5;
  --c64-glow: #a69ef0;
  --c64-ink: #1f1650;
  --panel-pad: 1.5rem;
  --font-display:
    "Press Start 2P",
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  color-scheme: dark;
}
html,
body {
  height: 100%;
}
body {
  background: var(--c64-blue);
  color: var(--c64-glow);
  overflow: hidden;
}
#app {
  position: fixed;
  inset: 0;
}
canvas.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.screen {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(65vmin, 550px);
  aspect-ratio: 1 / 1;
  max-width: calc(100% - 64px);
  background: var(--c64-blue);
  box-shadow:
    0 0 0 6px var(--c64-blue),
    0 0 0 10px var(--c64-light),
    inset 0 0 0 2px var(--c64-ink);
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  min-height: 0;
  box-sizing: border-box;
}
@media (orientation: portrait) {
  .screen {
    width: min(100% - 64px, 550px);
  }
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--c64-light);
}
.tab {
  text-decoration: none;
  border-right: 2px solid var(--c64-light);
  padding: 0.9em 1.2em;
  font-family: var(--font-display);
  font-size: clamp(7px, (100cqi - 8px) / 36, 13.75px);
  letter-spacing: 0.04em;
  color: var(--c64-light);
  cursor: pointer;
}
.tab:hover {
  color: var(--c64-glow);
}
.tab.active {
  background: var(--c64-light);
  color: var(--c64-blue);
}
.tab:focus-visible {
  outline: 2px solid var(--c64-glow);
  outline-offset: -4px;
}
.panel {
  position: relative;
  display: block;
  padding: var(--panel-pad);
  min-height: 0;
  overflow: auto;
  scrollbar-color: var(--c64-light) var(--c64-blue);
}
.about {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(12.5px, 3.25vmin, 22.5px);
  color: var(--c64-glow);
  text-shadow: 0 0 6px rgba(166, 158, 240, 0.35);
}
.body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(8.75px, 1.75vmin, 12.5px);
  line-height: 2;
  color: var(--c64-light);
}
.label {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}
.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17.5px, 5.5vmin, 37.5px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c64-glow);
  text-shadow: 0 0 6px rgba(166, 158, 240, 0.35);
}
.name span {
  display: block;
}
.subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(8.75px, 2vmin, 13.75px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c64-light);
}
.cursor {
  display: inline-block;
  width: 0.9em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.12em;
  background: var(--c64-glow);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}
.intro {
  position: absolute;
  inset: var(--panel-pad);
  color: var(--c64-glow);
  filter: drop-shadow(0 0 4px rgba(166, 158, 240, 0.35));
}
.intro svg {
  display: block;
  width: 100%;
  height: 100%;
}
