/* Stackle website -- same look as the game: deep violet night, gold highlights, round friendly shapes. */
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #170e3d;
  --bg-2: #241659;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-line: rgba(255, 255, 255, 0.14);
  --ink: #ffffff;
  --ink-dim: #c9bff2;
  --gold: #ffc23b;
  --gold-2: #ff9a1f;
  --violet: #7a5cf0;
  --pink: #ff6fae;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
/* Verlauf in einer festen Ebene (background-attachment: fixed ist auf iOS unzuverlässig) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(122, 92, 240, 0.45), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(255, 111, 174, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #ffe9a8;
}
.wrap {
  width: min(var(--max), 100% - 40px);
  margin: 0 auto;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.top .brand img {
  display: block;
  height: 44px;
  width: auto;
}
.top nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.top nav a {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-dim);
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  color: #fff;
  background: var(--panel);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0 56px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 0 rgba(20, 8, 70, 0.6);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 21px;
  color: var(--ink-dim);
}
.hero .art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero .art::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 194, 59, 0.38), rgba(255, 194, 59, 0) 70%);
}
.hero .art img {
  position: relative;
  width: min(380px, 80%);
  filter: drop-shadow(0 18px 24px rgba(8, 4, 40, 0.55));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .art img {
    animation: none;
  }
}

/* Store buttons (until the apps are live they say "soon") */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  background: #0b0626;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}
.store small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.1;
}
.store b {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.store[aria-disabled="true"] {
  opacity: 0.75;
  cursor: default;
}

/* Sections */
section {
  padding: 36px 0;
}
h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 3px 0 rgba(20, 8, 70, 0.6);
}
.sub {
  margin: 0 0 24px;
  color: var(--ink-dim);
  max-width: 40em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  padding: 20px 20px 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 2px solid var(--panel-line);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(8, 4, 40, 0.35);
}
.card img.ic {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 4px rgba(8, 4, 40, 0.5));
}
.card h3 {
  margin: 0 0 4px;
  font-size: 23px;
  line-height: 1.15;
}
.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.4;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 18px 18px 20px 72px;
  border-radius: 24px;
  background: var(--panel);
  border: 2px solid var(--panel-line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 20px;
  color: #3a2200;
  background: linear-gradient(180deg, #ffe58a, var(--gold-2));
  box-shadow: 0 3px 0 rgba(90, 40, 0, 0.5);
}
.step h3 {
  margin: 0 0 2px;
  font-size: 21px;
}
.step p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.4;
}
.band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(122, 92, 240, 0.35), rgba(255, 111, 174, 0.18));
  border: 2px solid var(--panel-line);
}
.band img {
  width: min(260px, 100%);
  justify-self: center;
  filter: drop-shadow(0 12px 16px rgba(8, 4, 40, 0.5));
}
.band h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}
.band p {
  margin: 8px 0 0;
  color: var(--ink-dim);
}

/* Text pages (privacy, terms, support, imprint) */
.page {
  padding: 8px 0 56px;
}
.page h1 {
  margin: 8px 0 4px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 3px 0 rgba(20, 8, 70, 0.6);
}
.page .meta {
  margin: 0 0 24px;
  color: var(--ink-dim);
  font-size: 16px;
}
.doc {
  padding: 8px 28px 28px;
  border-radius: 28px;
  background: var(--panel);
  border: 2px solid var(--panel-line);
}
.doc h2 {
  margin: 28px 0 6px;
  font-size: 26px;
  text-shadow: none;
  color: #ffe9a8;
}
.doc h3 {
  margin: 18px 0 2px;
  font-size: 20px;
}
.doc p,
.doc li {
  color: #ece7ff;
  font-size: 17px;
  line-height: 1.55;
}
.doc ul {
  padding-left: 22px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 16px;
}
.doc th,
.doc td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--panel-line);
  vertical-align: top;
}
.doc th {
  color: #ffe9a8;
}
details {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--panel-line);
}
details summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 19px;
}
details p {
  margin: 8px 0 0;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  color: #3a2200;
  background: linear-gradient(180deg, #ffe58a, var(--gold-2));
  box-shadow: 0 4px 0 #a85d00, 0 10px 18px rgba(8, 4, 40, 0.4);
}

footer {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 2px solid var(--panel-line);
  color: var(--ink-dim);
  font-size: 15.5px;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
footer a {
  color: var(--ink-dim);
}
.fine {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .hero,
  .band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    padding-top: 8px;
  }
  .hero .stores {
    justify-content: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .art {
    order: -1;
  }
  .top {
    flex-direction: column;
  }
  .doc {
    padding: 4px 18px 22px;
  }
}
