/* dontspillgame.com - one stylesheet, no external requests (no web fonts, no trackers). */
:root {
  --bg: #14100d;
  --bg-raised: #1e1814;
  --bg-raised-2: #28201a;
  --line: rgba(246, 238, 226, 0.12);
  --line-strong: rgba(246, 238, 226, 0.22);
  --text: #f6eee2;
  --text-dim: rgba(246, 238, 226, 0.7);
  --teal: #2f7377;
  --teal-bright: #6cc3c1;
  --caramel: #e8ad55;
  --caramel-deep: #c9852f;
  --coffee: #7a4a2e;
  --radius: 20px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  /* Translations: long words (German compounds) break instead of pushing the layout wider. */
  overflow-wrap: break-word;
}

p, li, dd, td { hyphens: auto; -webkit-hyphens: auto; }

a { color: var(--teal-bright); }
a:hover { color: var(--text); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { letter-spacing: -0.015em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--caramel); color: #23160c; box-shadow: 0 10px 30px rgba(232, 173, 85, 0.28); }
.btn-primary:hover { background: #f2bf6c; color: #23160c; }
.btn-ghost { background: rgba(246, 238, 226, 0.06); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(246, 238, 226, 0.12); color: var(--text); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; background: var(--teal); color: var(--text); }
.btn-small:hover { background: #3a878b; color: var(--text); }
.btn:focus-visible, .demo:focus-visible, .site-nav a:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 16, 13, 0.78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta { color: #23160c; background: var(--caramel); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.site-nav .nav-cta:hover { color: #23160c; background: #f2bf6c; }
@media (max-width: 640px) {
  .site-nav { gap: 10px; }
  .site-nav a:not(.nav-cta) { display: none; }
  /* (translations: the call to action stays one line, cut with "…" if it is long) */
  .site-nav .nav-cta { font-size: 14px; padding: 7px 12px; white-space: nowrap; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; }
  .lang-menu summary { padding: 6px 9px; }
}
@media (max-width: 420px) {
  .brand { font-size: 0; gap: 0; }
}

/* Language menu (generated by Scripts/web_i18n.py once a translation is released) */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); font-size: 14px; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); background: rgba(246, 238, 226, 0.08); }
.lang-menu summary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.lang-menu svg { width: 16px; height: 16px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; max-height: 70vh; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--bg-raised); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang-menu li a:hover { background: rgba(246, 238, 226, 0.08); color: var(--text); }
.lang-menu li a[aria-current] { color: var(--caramel); font-weight: 700; }
.page .translation-note { border: 1px solid var(--line-strong); background: var(--bg-raised); border-radius: 12px; padding: 10px 14px; }

/* Shared section bits */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; margin: 0 0 12px; }
section .sub { color: var(--text-dim); margin: 0 0 28px; max-width: 40em; font-size: 18px; }
.kicker { margin: 0 0 10px; color: var(--caramel); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Hero */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(232, 173, 85, 0.20), transparent 55%),
    linear-gradient(90deg, rgba(20, 16, 13, 0.97) 0%, rgba(20, 16, 13, 0.86) 42%, rgba(20, 16, 13, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20, 16, 13, 0) 30%),
    url("/assets/img/hero.jpg") center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; background: rgba(246, 238, 226, 0.08); border: 1px solid var(--line);
  font-size: 14px; color: var(--text-dim);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(108, 195, 193, 0.2); }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); line-height: 1.02; margin: 0 0 20px; font-weight: 850; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--caramel); }
.hero .lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--text-dim); margin: 0 0 30px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 30px; line-height: 1.1; font-weight: 800; }
.stats span { color: var(--text-dim); font-size: 14px; }

.hero-visual { position: relative; padding: 24px 8px; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--text-dim);
  background: rgba(30, 24, 20, 0.88); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: bob 5s ease-in-out infinite;
}
.float-chip strong { color: var(--text); font-size: 16px; }
.chip-a { left: -4px; bottom: -6px; }
.chip-b { right: 0; top: -2px; animation-delay: -2.5s; }
.chip-icon { font-size: 18px; }
.stars-mini { color: var(--caramel); letter-spacing: 1px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Phone frame (landscape, like the game) */
.phone {
  position: relative; border-radius: 34px; padding: 11px 14px; background: linear-gradient(145deg, #2b2724, #0d0c0b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #000;
}
.phone::before { /* camera island on the short side */
  content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 46px; transform: translateY(-50%);
  border-radius: 4px; background: #000;
}
.phone img { border-radius: 24px; width: 100%; }
.phone-tilt { transform-origin: 50% 60%; animation: tilt 7s ease-in-out infinite; }
@keyframes tilt {
  0%, 100% { transform: perspective(1200px) rotateY(-10deg) rotateZ(-3deg); }
  50% { transform: perspective(1200px) rotateY(-4deg) rotateZ(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-tilt { animation: none; transform: perspective(1200px) rotateY(-6deg); }
  .float-chip { animation: none; }
}

/* Demo */
.try { background: linear-gradient(180deg, var(--bg) 0%, #1b1511 50%, var(--bg) 100%); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 960px) { .try-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(108, 195, 193, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%236cc3c1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.try-note { color: var(--text-dim); font-size: 15px; margin: 0; }

.demo {
  position: relative; aspect-ratio: 4 / 3.1; width: 100%; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(232, 173, 85, 0.20), transparent 60%),
    linear-gradient(180deg, #2c221b 0%, #1d1713 62%, #3a2a1d 62.2%, #2a1f16 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  user-select: none; -webkit-user-select: none;
}
@media (max-width: 520px) { .demo { aspect-ratio: 3 / 3.4; } }
.demo.playing { touch-action: none; cursor: ew-resize; }
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 14px 14px auto 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud-coffee, .hud-time {
  background: rgba(40, 36, 32, 0.78); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hud-coffee { display: grid; grid-template-columns: auto; padding: 8px 14px 10px; min-width: 140px; }
.hud-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.hud-pct { font-size: 26px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hud-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); margin-top: 6px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 100%; background: var(--caramel); border-radius: 4px; transition: width .15s linear; }
.hud-coffee.low .hud-bar span { background: #e0664b; }
.hud-time { padding: 6px 14px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 999px; }

.demo-overlay {
  position: absolute; inset: 0; display: grid; place-items: end center; padding: 16px;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0) 30%, rgba(20, 16, 13, 0.55) 100%);
}
.demo-overlay[hidden] { display: none; }
.overlay-card {
  text-align: center; max-width: 340px; padding: 24px 24px 18px; border-radius: 22px;
  background: rgba(30, 24, 20, 0.9); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.overlay-card h3 { margin: 0 0 6px; font-size: 24px; }
.overlay-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 16px; }
.overlay-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.overlay-card .overlay-hint { margin: 14px 0 0; font-size: 13px; }
.overlay-stars { font-size: 34px; letter-spacing: 6px; color: rgba(246, 238, 226, 0.2); line-height: 1; margin-bottom: 8px; }
.overlay-stars .on { color: var(--caramel); text-shadow: 0 0 18px rgba(232, 173, 85, 0.55); }
@media (max-width: 520px) {
  .overlay-card { padding: 16px 16px 12px; }
  .overlay-card h3 { font-size: 20px; }
  .overlay-card p { font-size: 15px; margin-bottom: 12px; }
  .overlay-stars { font-size: 28px; }
  .overlay-card .btn { min-height: 44px; padding: 10px 18px; }
}

/* How it plays */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; padding: 0; margin: 28px 0 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(108, 195, 193, 0.12); color: var(--teal-bright);
}
.step-icon svg { width: 34px; height: 34px; }
.steps h3 { margin: 0 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--text-dim); font-size: 16px; }

/* Worlds */
.worlds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world.big { grid-column: span 2; grid-row: span 2; }
}
.world {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--bg-raised); border: 1px solid var(--line);
}
.world.big { aspect-ratio: auto; min-height: 260px; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 40%, rgba(10, 8, 6, 0.88) 100%);
}
.world:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .world img { transition: none; } .world:hover img { transform: none; } }
.world-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; }
.world-no {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(20, 16, 13, 0.6); border: 1px solid var(--line-strong);
  color: var(--text); margin-bottom: 6px;
}
.world h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.world.big h3 { font-size: clamp(26px, 3vw, 36px); }
.world p { margin: 2px 0 0; color: rgba(246, 238, 226, 0.8); font-size: 15px; }
.world-cta {
  background: radial-gradient(ellipse at 30% 20%, rgba(232, 173, 85, 0.35), transparent 60%), linear-gradient(160deg, #3a2a1d, #1e1814);
}
.world-cta::after { display: none; }
.world-cta .world-text { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.world-cta .big-num { font-size: 52px; font-weight: 850; line-height: 1; color: var(--caramel); }
.world-cta p { color: var(--text-dim); margin: 4px 0 12px; }

/* Features */
.features .wrap { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
  .feature.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .feature.reverse .feature-copy { order: 2; }
}
.feature .sub { margin-bottom: 0; }
.phone-flat { transform: none; }

/* Fair to play */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; list-style: none; padding: 0; margin: 24px 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.facts li > div { min-width: 0; }
.facts strong { color: var(--text); font-size: 18px; }
.facts p { margin: 2px 0 0; color: var(--text-dim); }
.fact-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 173, 85, 0.14); color: var(--caramel); }
.fact-icon svg { width: 24px; height: 24px; }

/* Final call to action */
.get { padding-bottom: 80px; }
.get-card {
  position: relative; overflow: hidden; text-align: center; padding: 56px 24px; border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 173, 85, 0.32), transparent 60%),
    linear-gradient(160deg, #2f6f73 0%, #1f4a4d 55%, #1e1814 100%);
  border: 1px solid var(--line-strong);
}
.get-icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.get-card h2 { margin: 0 auto 10px; max-width: 16em; }
.get-card > p { color: rgba(246, 238, 226, 0.82); margin: 0 auto 26px; max-width: 32em; font-size: 18px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 22px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-align: left;
  min-width: 210px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #0d0b09; border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700; font-size: 18px; line-height: 1.15; color: var(--text);
}
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-weight: 500; font-size: 12px; color: var(--text-dim); }
.get-card .notify { margin: 0; font-size: 15px; color: rgba(246, 238, 226, 0.75); }
.get-card .notify a { color: var(--text); }

/* Text pages (privacy, imprint, support) */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.page .meta { color: var(--text-dim); margin: 0 0 28px; font-size: 15px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page h3 { font-size: 18px; margin: 24px 0 6px; }
.page p, .page li { color: rgba(246, 238, 226, 0.86); }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.page th { background: var(--bg-raised); }
.table-scroll { overflow-x: auto; }
.address { font-style: normal; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.legal-details { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raised); }
.legal-details > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 4px 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.legal-details > div:first-child { border-top: 0; }
.legal-details dt { color: var(--text-dim); }
.legal-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .legal-details > div { grid-template-columns: minmax(0, 1fr); } }

/* A note that is removed before publishing: full thin frame, no side stripe. */
.draft-note {
  border: 1px solid #d9a441; background: rgba(217, 164, 65, 0.12); color: #f1d49a;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; font-size: 15px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
