/* hafinity – Webseite im C64-Stil (gleiche Schrift und Farben wie die App) */
@font-face {
  font-family: "Hafinity 64";
  src: url("hafinity64.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #3c31a6;
  --fg: #8b7fea;
  --hi: #ffffff;
  --dim: #6a5fd0;
  --ok: #a8f08f;
  --warn: #eedd77;
  --bad: #f08a7a;
  --accent: #ff9500;
  --shadow: rgba(0, 0, 20, 0.5);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--fg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fg);
  color: var(--fg);
  font-family: "Hafinity 64", ui-monospace, monospace;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: none;
  padding: 32px;
}
.screen {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--bg);
  padding: 32px 40px 40px;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.14) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.3) 100%);
}
a {
  color: var(--hi);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--warn);
}
.up {
  text-transform: uppercase;
}
.hi {
  color: var(--hi);
}
.dim {
  color: var(--dim);
}
.ok {
  color: var(--ok);
}
.center {
  text-align: center;
}
pre,
.pre {
  font: inherit;
  margin: 0;
  white-space: pre-wrap;
}
.cursor {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--fg);
  vertical-align: -2px;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
h1,
h2,
h3 {
  font-weight: normal;
  margin: 0;
  text-transform: uppercase;
}
h1 {
  font-size: 32px;
  line-height: 40px;
  color: var(--hi);
}
h2 {
  font-size: 16px;
  color: var(--bg);
  background: var(--fg);
  display: inline-block;
  padding: 0 8px;
  margin: 40px 0 16px;
}
.hero {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 32px 0 8px;
}
.hero img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  flex: none;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 8px;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 16px 24px;
  box-shadow: 6px 6px 0 var(--shadow);
  text-transform: uppercase;
  min-width: 280px;
}
.btn:hover {
  background: var(--hi);
  color: var(--bg);
}
.btn:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}
.btn .os {
  font-size: 32px;
  line-height: 40px;
}
.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 4px var(--fg);
}
.btn.ghost:hover {
  color: var(--hi);
  box-shadow: inset 0 0 0 4px var(--hi);
}
.btn.mine {
  outline: 4px dashed var(--warn);
  outline-offset: 6px;
}
.box {
  border: 4px solid var(--fg);
  padding: 16px 20px;
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.shot {
  border: 4px solid var(--fg);
  box-shadow: 8px 8px 0 var(--shadow);
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.caption {
  margin-top: 12px;
  text-transform: uppercase;
}
.listing .ln {
  color: var(--hi);
}
.steps li {
  margin-bottom: 8px;
}
ol.steps,
ul.plain {
  margin: 0;
  padding-left: 32px;
}
ul.plain {
  list-style: none;
}
ul.plain li::before {
  content: "► ";
  margin-left: -32px;
}
.kbd {
  background: var(--fg);
  color: var(--bg);
  padding: 0 6px;
  white-space: nowrap;
}
.note {
  border: 4px solid var(--warn);
  padding: 16px 20px;
  color: var(--hi);
  text-transform: uppercase;
}
.rel {
  border: 4px solid var(--fg);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.rel .head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}
.rel .ver {
  color: var(--hi);
  font-size: 32px;
  line-height: 40px;
}
footer {
  margin-top: 48px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  body {
    padding: 16px;
  }
  .screen {
    padding: 24px 16px 32px;
    min-height: calc(100vh - 32px);
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    min-width: 0;
    width: 100%;
  }
  h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .btn .os {
    font-size: 24px;
    line-height: 32px;
  }
}
