/* Silka – landing page. Colours follow the "Morgentau" world of the game. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-SemiBoldItalic.woff") format("woff"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-ExtraBoldItalic.woff") format("woff"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --sky-0: #0b2c33;
  --sky-1: #174a4b;
  --sky-2: #3f7a66;
  --sky-3: #e9ad84;
  --glow: #ffc48c;
  --ink: #fff7ee;
  --ink-soft: rgba(255, 247, 238, 0.72);
  --ink-faint: rgba(255, 247, 238, 0.5);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(14, 26, 30, 0.56);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --peach: #ffb38a;
  --peach-deep: #d9774f;
  --gold: #ffd36e;
  --violet: #6b4bd8;
  --autumn: #ffc15e;
  --night: #a9d8ff;
  --pond: #7fe3c5;
  --radius: 22px;
  --page: min(1120px, calc(100vw - 32px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky-0);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--peach); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Language switching: every text exists in both languages. */
html[data-lang="de"] [lang="en"]:not(html),
html[data-lang="en"] [lang="de"]:not(html) { display: none !important; }

/* ---------------------------------------------------------------- sky */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vmax 45vmax at 84% -6%, rgba(255, 196, 140, 0.42), transparent 62%),
    radial-gradient(50vmax 40vmax at 8% 110%, rgba(233, 173, 132, 0.22), transparent 70%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 46%, #2c5f55 78%, #4f7e63 100%);
}
.bokeh { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 196, 0.55), rgba(255, 230, 196, 0) 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bokeh i:nth-child(1) { width: 140px; height: 140px; left: 6%; top: 18%; }
.bokeh i:nth-child(2) { width: 70px; height: 70px; left: 78%; top: 34%; animation-duration: 17s; background: radial-gradient(circle, rgba(190, 255, 220, 0.5), transparent 70%); }
.bokeh i:nth-child(3) { width: 220px; height: 220px; left: 60%; top: 72%; animation-duration: 28s; opacity: 0.5; }
.bokeh i:nth-child(4) { width: 46px; height: 46px; left: 24%; top: 64%; animation-duration: 14s; }
.bokeh i:nth-child(5) { width: 90px; height: 90px; left: 88%; top: 8%; animation-duration: 19s; background: radial-gradient(circle, rgba(255, 250, 235, 0.5), transparent 70%); }
.bokeh i:nth-child(6) { width: 30px; height: 30px; left: 44%; top: 12%; animation-duration: 12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -40px, 0) scale(1.15); }
}

/* --------------------------------------------------------------- frame */

.wrap { width: var(--page); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(11, 44, 51, 0.82), rgba(11, 44, 51, 0.5));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.brand span { font: 900 24px/1 "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a.link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a.link:hover { color: var(--ink); background: var(--glass-hi); }
@media (max-width: 640px) { .nav-links a.link { display: none; } }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 900 13px/1 "Nunito", sans-serif;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #3b1709; }

/* ------------------------------------------------------------- type */

.eyebrow {
  font: 900 12.5px/1 "Nunito", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach);
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 900; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(42px, 7.4vw, 82px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; }
h3 { font-size: 23px; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 800; color: var(--peach); }
.lead { font-size: clamp(18px, 2vw, 20.5px); color: var(--ink-soft); max-width: 34em; }
.whisper { font: italic 600 17px/1.45 "Fraunces", Georgia, serif; color: var(--ink-soft); }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 900 16.5px/1 "Nunito", sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-silk {
  color: #3b1709;
  background: linear-gradient(180deg, #ffd2b4, var(--peach) 55%, #f39c70);
  box-shadow: 0 10px 26px rgba(217, 119, 79, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-silk:hover { color: #3b1709; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217, 119, 79, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-glass { color: var(--ink); background: var(--glass-hi); border-color: var(--line); }
.btn-glass:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); }
.btn svg { flex: none; }
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  line-height: 1.1;
}
.store-soon small { display: block; font-size: 11px; font-weight: 700; opacity: 0.78; }
.store-soon b { font: 800 17px/1.1 "Nunito", sans-serif; }

/* -------------------------------------------------------------- hero */

.hero { padding: 54px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
.hero-copy > * + * { margin-top: 22px; }
.hero h1 { margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin-bottom: 0; list-style: none; color: var(--ink-soft); font-weight: 800; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #d6f3ff 45%, #9fd2e8);
  box-shadow: 0 0 10px rgba(214, 243, 255, 0.8);
}

.phone-stage { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #24363a, #0d1416 55%, #1c2a2d);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 0 60px rgba(255, 196, 140, 0.18);
  transform: rotate(3deg);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--sky-0); }
.phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .island { position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 2; }
.hud {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(14, 26, 30, 0.6);
  border: 1px solid var(--line);
  font: 900 14px/1 "Nunito", sans-serif;
  white-space: nowrap;
}
.hud .bar { width: 64px; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.hud .bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--peach), var(--gold)); transition: width 0.5s cubic-bezier(.2,.9,.3,1.2); }
.toast {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.6);
  font: italic 800 28px/1 "Fraunces", Georgia, serif;
  color: var(--ink);
  text-shadow: 0 3px 0 var(--peach-deep), 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { animation: pop 1.3s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6) rotate(-6deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(-3deg); }
  70% { opacity: 1; transform: translate(-50%, -60%) scale(1) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.96) rotate(-3deg); }
}
.hang {
  position: absolute;
  top: -40px;
  right: max(-10px, calc(50% - 250px));
  width: 120px;
  transform-origin: 50% 0;
  animation: sway 5.5s ease-in-out infinite;
  pointer-events: none;
}
.hang::before { content: ""; display: block; width: 1.5px; height: 70px; margin: 0 auto; background: linear-gradient(rgba(255, 248, 238, 0), rgba(255, 248, 238, 0.9)); }
.hang img { width: 120px; margin-top: -24px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4)); }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(6px); } }

@media (max-width: 860px) {
  .hero { padding-top: 30px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .phone { width: min(270px, 70vw); }
  .hang { right: 4px; width: 92px; top: -28px; }
  .hang img { width: 92px; }
}

/* ---------------------------------------------------------- sections */

section { padding: 72px 0; }
@media (max-width: 620px) { section { padding: 52px 0; } }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head > * + * { margin-top: 12px; }

.thread-divider { height: 40px; width: var(--page); margin: 0 auto; opacity: 0.55; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.step { counter-increment: step; }
.step .art { height: 128px; margin: -6px -6px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.2); display: grid; place-items: center; overflow: hidden; }
.step .art svg { width: 100%; height: 100%; }
.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #3b1709;
  font: 900 15px/1 "Nunito", sans-serif;
  vertical-align: 3px;
}
.step p { margin: 10px 0 0; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world { text-align: center; margin: 0; min-width: 0; }
.world .pic {
  position: relative;
  aspect-ratio: 5 / 8;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2);
  background: #000;
}
.world:nth-child(1) { --tilt: -3deg; }
.world:nth-child(2) { --tilt: 2deg; }
.world:nth-child(3) { --tilt: -1.5deg; }
.world:nth-child(4) { --tilt: 3deg; }
.world:hover .pic { transform: rotate(0deg) translateY(-6px); }
.world .pic img { width: 100%; height: 100%; object-fit: cover; }
.world .silk {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 22, 26, 0.72);
  background-image:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 17px, rgba(255, 248, 238, 0.55) 17px 18.2px),
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 14deg, rgba(255, 248, 238, 0.4) 14deg 15deg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  clip-path: circle(110% at 50% 50%);
  transition: clip-path 1.4s cubic-bezier(.6,.05,.25,1);
}
.world.revealed .silk { clip-path: circle(0% at 50% 50%); }
.world h3 { margin-top: 2px; font-size: 21px; }
.world p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.world .tag { display: inline-block; margin-top: 18px; font: 900 11px/1 "Nunito", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
@media (max-width: 960px) { .worlds { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.feature .ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.feature h3 { font-size: 19px; }
.feature p { margin: 5px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* promise */
.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 179, 138, 0.2), transparent 55%),
    var(--glass);
  border: 1px solid var(--line);
}
.promise img { width: 120px; }
.promise ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.promise li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); font-weight: 800; font-size: 15px; }
@media (max-width: 620px) { .promise { grid-template-columns: 1fr; text-align: left; padding: 24px; } .promise img { width: 88px; } }

/* beta */
.beta { text-align: center; }
.beta .card { padding: 44px 24px; max-width: 760px; margin: 0 auto; }
.beta .card > * + * { margin-top: 16px; }
.beta .cta-row { justify-content: center; }
.beta .lead { margin-left: auto; margin-right: auto; }

/* footer */
footer { padding: 40px 0 56px; color: var(--ink-faint); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--ink-soft); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--ink); }
footer .right { margin-left: auto; }
@media (max-width: 620px) { footer .right { margin-left: 0; } }

/* ------------------------------------------------------------- pages */

.page { padding: 48px 0 30px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(38px, 6vw, 60px); margin-top: 10px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 620px) { .prose h2 { font-size: 22px; } }
.page .intro { margin-top: 14px; }
.prose { margin-top: 34px; }
.prose h2 { font-size: 27px; margin: 40px 0 10px; }
.prose h3 { font-size: 20px; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }
.prose address { font-style: normal; color: var(--ink); }
.note {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 211, 110, 0.1);
  border: 1px solid rgba(255, 211, 110, 0.35);
  color: var(--ink);
}

.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  position: relative;
  font: 800 18px/1.3 "Nunito", sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--peach);
  border-bottom: 2.5px solid var(--peach);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: 10px; }

.contact-card { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.contact-card h2 { font-size: 26px; }
.contact-card p { margin: 6px 0 0; color: var(--ink-soft); }

.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: var(--ink-soft); margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* entrance */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.9,.3,1); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}
