/* SiteSense minigames – én enkel stilfil, ingen eksterne fonter eller skript (ingen sporing).
   Stil: et nikk til C64/Amiga – lilla-blå bakgrunn, regnbuestriper og monospace-overskrifter. */

:root {
  --bg: #241a5c;
  --bg-2: #352879;
  --panel: #2e2470;
  --edge: #6c5eb5;
  --text: #eeeaff;
  --dim: #b9b2e6;
  --accent: #ffd34d;
  --link: #9fe3ff;
  --soon: #5b4fa3;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% -10%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a { color: var(--link); }
a:hover { color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* regnbuestriper (Atari/Apple II-aktig) */
.stripes { height: 10px; display: flex; }
.stripes span { flex: 1; }
.stripes span:nth-child(1) { background: #e8412e; }
.stripes span:nth-child(2) { background: #f5892b; }
.stripes span:nth-child(3) { background: #f7d038; }
.stripes span:nth-child(4) { background: #5cc95e; }
.stripes span:nth-child(5) { background: #3a8fe0; }
.stripes span:nth-child(6) { background: #8e5bd6; }

header.hero { padding: 48px 0 24px; }
header.hero .wrap { position: relative; }

/* Språkvelger øverst til høyre (to vanlige lenker, ingen JavaScript). */
.lang { position: absolute; top: -32px; right: 16px; display: flex; gap: 6px; }
.lang a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 2px solid var(--edge); border-radius: 999px;
  font: 600 13px/1.2 var(--sans); color: var(--dim); text-decoration: none; background: var(--panel);
}
.lang a:hover { color: var(--text); border-color: var(--link); }
.lang a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.lang svg { width: 20px; height: 14px; border-radius: 2px; flex: none; }

/* Engelsk tilleggsnavn bak spilltittelen, som i butikken: «Stim (School of Fish)». */
h3 .aka { font-weight: 400; font-size: 0.7em; color: var(--dim); }

.logo {
  font: 700 clamp(30px, 6vw, 54px)/1.1 var(--mono);
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 3px 3px 0 #000, 0 0 24px rgba(159, 227, 255, 0.35);
}
.logo .sub { color: var(--accent); }

.ready {
  font: 15px/1.4 var(--mono);
  color: var(--dim);
  margin: 10px 0 0;
}
.ready .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--dim);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ready .cursor { animation: none; } }

.intro {
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0 8px;
  max-width: 820px;
}
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.facts li {
  font: 14px/1 var(--mono);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--dim);
}

h2.section {
  font: 700 22px/1.2 var(--mono);
  margin: 40px 0 16px;
  color: var(--accent);
}

/* spillkort */
.game {
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.game.landscape { grid-template-columns: minmax(0, 1fr); }

.game-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.game-head img { width: 72px; height: 72px; border-radius: 16px; flex: none; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.game h3 { font: 700 26px/1.1 var(--mono); margin: 0; }
.tagline { color: var(--accent); margin: 4px 0 0; font-size: 15px; }
.game p.desc { margin: 0 0 12px; }

.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; background: rgba(255, 255, 255, 0.08); border-radius: 6px; padding: 3px 8px; color: var(--dim); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: #000;
  color: #fff;
  border: 1px solid #555;
}
.store.soon {
  background: var(--soon);
  border-color: var(--edge);
  color: var(--dim);
  cursor: default;
}
.store small { display: block; font-weight: 400; font-size: 12px; opacity: 0.85; }
.store svg { width: 20px; height: 20px; flex: none; }

.shots { display: flex; gap: 12px; }
.shots img {
  display: block;
  border-radius: 12px;
  border: 2px solid #000;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  background: #000;
}
.game:not(.landscape) .shots img { width: 170px; height: auto; aspect-ratio: 9 / 16; }
.game.landscape .shots img { width: calc(50% - 6px); height: auto; aspect-ratio: 16 / 9; }
.shots img { object-fit: cover; object-position: top; }  /* høyere telefonbilder (f.eks. iPhone) beskjæres nederst */

/* appkort (ikke et spill): lysere ramme, så det skiller seg litt fra spillene */
.game.app { border-style: dashed; }
.game.app .game-head img { background: #fbf7f0; object-fit: contain; }
.store:not(.soon):hover { background: #222; }
.store.web { background: transparent; border-color: var(--edge); color: var(--text); }
.store.web:hover { background: rgba(255, 255, 255, 0.08); }

footer {
  margin-top: 48px;
  padding: 24px 0 40px;
  color: var(--dim);
  font-size: 14px;
}
footer a { color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* personvernsiden */
.doc { max-width: 760px; }
.doc h1 { font: 700 clamp(26px, 5vw, 38px)/1.15 var(--mono); margin: 0 0 6px; }
.doc h2 { font: 700 20px/1.3 var(--mono); color: var(--accent); margin: 32px 0 8px; }
.doc .meta { color: var(--dim); font-size: 14px; margin: 0 0 20px; }
.doc .summary { background: var(--panel); border: 2px solid var(--edge); border-radius: 14px; padding: 16px 20px; }
.doc li { margin-bottom: 6px; }
.back { display: inline-block; margin: 24px 0 0; font: 15px var(--mono); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .game { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .shots { overflow-x: auto; }
  .game:not(.landscape) .shots img { width: calc(50% - 6px); }
  .game.landscape .shots { flex-direction: column; }
  .game.landscape .shots img { width: 100%; }
}
