:root {
  --bg: #07060d;
  --bg2: #120f22;
  --text: #f3f1ff;
  --muted: #a49fc4;
  --neon: #5ef2ff;
  --pink: #ff3fa4;
  /* DVD-Hülle: 135 x 190 x 14 mm */
  --w: 224px;
  --h: 315px;
  --d: 24px;
  --plastic: #1d5be0;
  --plastic-dark: #0f3aa6;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% -10%, #2a1a5e 0%, var(--bg2) 40%, var(--bg) 75%);
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: auto -50% 0 -50%;
  height: 55vh;
  background:
    linear-gradient(transparent 0 calc(100% - 1px), rgba(94, 242, 255, .22) 0) 0 0 / 60px 60px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255, 63, 164, .18) 0) 0 0 / 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(48px, 10vw, 110px) 16px 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  animation: blink 1.6s steps(2) infinite;
}

@keyframes blink { 50% { opacity: .35; } }

h1 {
  margin: 0;
  font-family: Bungee, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 0 24px rgba(94, 242, 255, .35);
}

h1 span {
  display: block;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon), 0 0 40px rgba(94, 242, 255, .6);
}

.lead {
  max-width: 600px;
  margin: 22px auto 0;
  font-family: "Josefin Sans", "Century Gothic", Futura, sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  letter-spacing: .06em;
  color: #ffe3f2;
  text-shadow: 0 0 6px rgba(255, 63, 164, .7), 0 0 20px rgba(255, 63, 164, .35);
}

/* ---------- Shelf ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 64px 32px;
  justify-items: center;
}

.game {
  --ry: 26deg;
  --rx: 0deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  color: inherit;
  text-decoration: none;
  perspective: 1100px;
  outline: none;
  animation: rise .7s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: var(--delay);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
}

.box {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}

.game:hover .box,
.game:focus-visible .box {
  transform: translateY(-10px) rotateY(var(--ry)) rotateX(var(--rx)) scale(1.04);
}

/* floor shadow */
.box::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -34px;
  height: 30px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
  transform: translateZ(-40px) rotateX(90deg);
}

.face {
  position: absolute;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Chrome/Safari draw the edges of 3D-rotated layers without anti-aliasing;
     a transparent outline makes the visible edge an inner, smoothed one */
  outline: 1px solid transparent;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Front: plastic case + printed insert under clear sleeve ---------- */
.front {
  inset: 0;
  overflow: hidden;
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(160deg, #3a78f2, var(--plastic) 45%, var(--plastic-dark));
  transform: translateZ(calc(var(--d) / 2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset 0 0 0 3px rgba(0, 20, 80, .35);
}

/* hinge ridges along the left edge */
.front::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .10), transparent 30%, transparent 70%, rgba(0, 20, 80, .25)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .14) 0,
      rgba(255, 255, 255, 0) 1.5px,
      rgba(0, 20, 80, .18) 3px,
      rgba(255, 255, 255, 0) 4.5px,
      rgba(255, 255, 255, .14) 6px);
  box-shadow: 1px 0 3px rgba(0, 20, 80, .25);
  z-index: 2;
}

.game:focus-visible .front {
  box-shadow: 0 0 0 3px var(--accent), inset 0 0 0 3px rgba(0, 20, 80, .35);
}

.insert {
  position: absolute;
  inset: 4px 4px 4px 11px;
  overflow: hidden;
  border-radius: 1px 5px 5px 1px;
  background: linear-gradient(170deg, var(--c1), var(--c2));
}

/* white console-style header band */
.banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  background: #fff;
  color: #000;
}

.banner .logo {
  color: #000;
  font-size: 12px;
  font-style: italic;
  border: 0;
  padding: 0;
  letter-spacing: -.02em;
}

.banner-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #555;
}

.banner-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
}

.art {
  position: absolute;
  inset: 25px 0 30% 0;
}

.art svg { width: 100%; height: 100%; display: block; }

.cover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  padding: 0 14px;
}

.cover-title h2 {
  margin: 0;
  font-family: Bungee, Impact, sans-serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.05;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 0 0 18px var(--accent);
  overflow-wrap: normal;
  hyphens: none;
}

.cover-title p {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cover-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 4px 12px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

/* ---------- netartists.de brand ---------- */
.na-mark {
  flex: none;
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px 3px 3px 6px;
  background: conic-gradient(from 210deg, #ff3fa4, #ffcf3a, #5ef2ff, #7a5cff, #ff3fa4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

.na-mark::after {
  content: "";
  position: absolute;
  inset: 3px 2px 3px 4px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.na-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
}

.na-logo .na-mark {
  align-self: center;
  margin-right: 3px;
  width: 10px;
  height: 10px;
}

.na-logo .na-mark::after { inset: 3px 2px 3px 4px; }

/* banner (top left of the cover): the site icon itself */
.banner .na-mark {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: url(icons/apple-touch-icon.png) center / contain no-repeat;
  box-shadow: none;
}

.banner .na-mark::after { content: none; }

.na-logo {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 10px;
  line-height: 1;
}

.na-net { font-weight: 400; opacity: .8; }
.na-art { font-weight: 800; }
.na-tld { font-weight: 800; }

.cover-foot { gap: 6px; padding: 0 7px 4px 9px; }

.cover-foot > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7.5px;
  letter-spacing: .03em;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(0, 0, 0, .6);
}

/* darken the lower part of the artwork so the title reads well */
.insert::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  pointer-events: none;
}

.cover-title, .cover-foot { z-index: 1; }

.logo {
  font-family: Bungee, Impact, sans-serif;
  font-size: 11px;
  padding: 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  letter-spacing: .05em;
}

/* clear plastic sleeve: permanent gloss */
.sleeve {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 22%, transparent 40%, transparent 78%, rgba(255, 255, 255, .07) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  pointer-events: none;
  z-index: 3;
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
  z-index: 4;
}

.game:hover .shine,
.game:focus-visible .shine { transform: translateX(120%); }

/* ---------- Spine (left side) ---------- */
.spine {
  top: 0;
  left: calc(var(--d) * -1);
  width: var(--d);
  height: 100%;
  transform-origin: right center;
  transform: translateZ(calc(var(--d) / 2)) rotateY(-90deg);
  background: linear-gradient(90deg, var(--plastic-dark), var(--plastic) 50%, var(--plastic-dark));
  border-radius: 4px 0 0 4px;
  padding: 3px 2px;
}

.spine-insert {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--c2), var(--c1) 55%, var(--c2));
  filter: brightness(.8);
}

.spine-insert i:first-child {
  flex: none;
  width: 100%;
  height: 25px;
  background: #fff;
}

.spine-insert span {
  flex: 1;
  min-height: 0;
  writing-mode: vertical-rl;
  font-family: Bungee, Impact, sans-serif;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spine-insert .na-mark {
  width: 15px;
  height: 15px;
  margin-bottom: 7px;
  border-radius: 0;
  background: url(icons/apple-touch-icon.png) center / contain no-repeat;
  box-shadow: none;
}

.spine-insert .na-mark::after { content: none; }

/* ---------- Top edge ---------- */
.top {
  left: 0;
  top: calc(var(--d) * -1);
  width: 100%;
  height: var(--d);
  transform-origin: bottom center;
  transform: translateZ(calc(var(--d) / 2)) rotateX(90deg);
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .10) 0,
      rgba(255, 255, 255, 0) 3px,
      rgba(0, 20, 80, .15) 6px,
      rgba(255, 255, 255, 0) 9px,
      rgba(255, 255, 255, .10) 12px),
    var(--plastic);
  border-radius: 4px 9px 0 0;
}

.play {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  transition: background .2s, color .2s, box-shadow .2s;
}

.game:hover .play,
.game:focus-visible .play {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 6, 13, .7);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--neon); }

/* ---------- Impressum ---------- */
.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
}

.legal h1 { font-size: clamp(34px, 7vw, 56px); margin-bottom: 28px; }

.legal h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  color: var(--neon);
}

.legal h3 { margin: 24px 0 8px; font-size: 16px; }

.legal p, .legal li, .legal address { color: #d8d4f0; overflow-wrap: anywhere; }
.legal address { font-style: normal; margin: 0 0 1em; }

.legal a { color: var(--neon); }

.legal .card h2:first-child { margin-top: 0; }

.legal .card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

@media (max-width: 480px) {
  :root { --w: 210px; --h: 295px; --d: 22px; }
  .banner { gap: 5px; padding: 0 7px; }
  .banner-text { letter-spacing: .1em; }
  .banner-badge { letter-spacing: .04em; }
  .na-logo { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
