/* Petaria – Website. Look wie die Oberfläche im Spiel: Pergament, Holz, Gold, Waldgrün.
   Schriften wie im Spiel (SIL OFL): Berkshire Swash für Titel, Nunito für Text, Cinzel für große Zahlen. */

@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Berkshire Swash"; src: url("/assets/fonts/berkshire-swash.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f7f0e1;
  --paper-2: #efe3c9;
  --paper-3: #e6d5b2;
  --card: #fffaf0;
  --ink: #3a2a1c;
  --ink-soft: #6e5843;
  --line: #d8c399;
  --gold: #c08a22;
  --gold-hi: #f0c75e;
  --leaf: #4f7d3a;
  --leaf-dark: #2c4524;
  --forest: #1c2a1d;
  --forest-2: #253726;
  --night: #16202e;
  --berry: #b84a3a;
  --sky: #5d9bcf;
  --steam: #1b2838;
  --steam-2: #2a475e;
  --q-poor: #8a8a8a;
  --q-common: #3a2a1c;
  --q-uncommon: #2f9a3a;
  --q-rare: #2a6fd0;
  --q-epic: #8a3ccf;
  --radius: 18px;
  --shadow: 0 10px 30px #3a2a1c22, 0 2px 6px #3a2a1c1a;
  --wrap: 1180px;
  --title: "Berkshire Swash", "Georgia", serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-dark); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h2 em { font-style: normal; color: var(--gold); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; }
code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
kbd {
  display: inline-block; min-width: 1.9em; padding: 2px 7px; text-align: center;
  background: linear-gradient(#fffaf0, #eadbbb); border: 1px solid #b89d6a; border-bottom-width: 3px;
  border-radius: 7px; color: var(--ink); font-weight: 700; line-height: 1.3;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

/* ── Knöpfe ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font: 800 16px/1.1 var(--text); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: linear-gradient(#f6d47a, #d9a334); color: #3a2410; border-color: #a8771c; box-shadow: 0 6px 18px #c08a2255, inset 0 1px 0 #fff6; }
.btn.gold:hover { color: #3a2410; box-shadow: 0 10px 24px #c08a2277, inset 0 1px 0 #fff6; }
.btn.ghost { background: #ffffff1a; color: #fff; border-color: #ffffff66; backdrop-filter: blur(4px); }
.btn.ghost:hover { background: #ffffff2e; color: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Steam: „Coming soon“ – ohne Store-Seite ein Abzeichen, mit STEAM_URL (app.js) ein Link. */
.steam {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--steam), var(--steam-2)); color: #fff; text-decoration: none;
  border: 1px solid #66c0f455; box-shadow: 0 8px 24px #0b141f55; font-family: var(--text); line-height: 1.15;
}
.steam svg { width: 34px; height: 34px; fill: #fff; flex: none; }
.steam small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #66c0f4; }
.steam b { display: block; font-size: 18px; font-weight: 900; }
a.steam[href]:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.steam.small { padding: 6px 12px 6px 9px; border-radius: 10px; gap: 8px; }
.steam.small svg { width: 22px; height: 22px; }
.steam.small small { font-size: 9px; }
.steam.small b { font-size: 13px; }
.steam.big { padding: 16px 28px 16px 20px; border-radius: 16px; }
.steam.big svg { width: 48px; height: 48px; }
.steam.big b { font-size: 26px; }
.steam.big small { font-size: 13px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.nav.solid { background: #2a1f15ee; backdrop-filter: blur(8px); box-shadow: 0 4px 20px #0005; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 28px/1 var(--title); text-shadow: 0 2px 8px #0008; }
.brand:hover { color: var(--gold-hi); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; text-shadow: 0 1px 6px #0009; opacity: .92; }
.nav-links a:hover { color: var(--gold-hi); opacity: 1; }
.lang { display: inline-flex; border: 1px solid #ffffff55; border-radius: 999px; overflow: hidden; }
.lang a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; padding: 4px 10px; }
.lang a.active { background: #ffffff33; }
footer .lang { border-color: var(--line); }
footer .lang a { color: var(--ink-soft); }
footer .lang a.active { background: var(--paper-3); color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0d140c88 0%, #0d140c00 30%, #0d140c22 55%, #1c140cdd 100%); }
.hero .eyebrow { color: var(--gold-hi); }
.hero h1 { font-size: clamp(64px, 11vw, 140px); margin: 0; color: #fff8e6; text-shadow: 0 4px 30px #000a, 0 2px 0 #7a4a12; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); max-width: 640px; text-shadow: 0 2px 12px #000c; font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.hero .meta { width: 100%; font-size: 14px; opacity: .85; text-shadow: 0 1px 6px #000; }
.eyebrow { display: inline-block; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px 2px #ffd05a88; opacity: 0; animation: rise linear infinite; }
.clock {
  position: absolute; right: 24px; top: 88px; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: #1c140caa; border: 1px solid #f0c75e55; border-radius: 14px; backdrop-filter: blur(6px); font-size: 14px; line-height: 1.35;
}
.clock b { font-variant-numeric: tabular-nums; font-size: 16px; }
.orb { width: 28px; height: 28px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #fff6c8, #ffc94a 55%, #e08a1e); box-shadow: 0 0 18px #ffc94a99; }
.dusk .orb { background: radial-gradient(circle at 35% 35%, #ffe0b8, #f08a4a 55%, #a8402a); box-shadow: 0 0 18px #f08a4a99; }
.night .orb { background: radial-gradient(circle at 35% 35%, #ffffff, #d6def0 55%, #8a96b8); box-shadow: 0 0 18px #c8d4ff88; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--dx, 30px), -85vh); opacity: 0; } }

/* ── Zahlenleiste ────────────────────────────────────────────────────────── */
.facts { background: linear-gradient(#3a2a1c, #2a1f15); color: #f7ecd2; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.facts .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 22px 0; text-align: center; }
.facts b { display: block; font: 800 clamp(28px, 3.4vw, 40px)/1 "Cinzel", Georgia, serif; color: var(--gold-hi); }
.facts span { font-size: 14px; font-weight: 700; opacity: .9; }

/* ── Abschnitte ──────────────────────────────────────────────────────────── */
section { padding: 100px 0; position: relative; }
section.alt { background: var(--paper-2); }
section.dark { background: radial-gradient(1200px 600px at 20% 0%, var(--forest-2), var(--forest)); color: #efe6cf; }
section.dark h2 em { color: var(--gold-hi); }
section.dark .eyebrow { color: var(--gold-hi); }
section.dark a { color: var(--gold-hi); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 19px; color: var(--ink-soft); }
section.dark .section-head p { color: #d8ccb0; }
.subhead { font: 400 26px/1.2 var(--title); margin: 56px 0 18px; text-align: center; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.pillar img { width: 56px; height: 56px; margin-bottom: 12px; }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--ink-soft); font-size: 16px; }
.pillar a { font-weight: 800; text-decoration: none; }
.pillar a::after { content: " →"; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip > .media { order: 2; }
.copy p { font-size: 18px; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points img { width: 40px; height: 40px; flex: none; padding: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
section.alt .points img { background: var(--card); }
section.dark .points img { background: #ffffff12; border-color: #ffffff22; }
.points b { display: block; font-size: 17px; }
.points span { color: var(--ink-soft); font-size: 15.5px; }
section.dark .points span { color: #cfc3a6; }

/* Bilder mit Rahmen (öffnen die Galerie) */
.media { position: relative; }
.frame {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative; background: #000;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 4px #fffaf0, 0 0 0 6px var(--gold), var(--shadow);
}
section.dark .frame { box-shadow: 0 0 0 4px #2b3a2b, 0 0 0 6px var(--gold), 0 20px 40px #0008; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.frame:hover img { transform: scale(1.03); }
.frame .cap {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 700;
  background: #1c140ccc; color: #fff4dc; backdrop-filter: blur(4px); text-align: left;
}
.media.has-inset { padding-bottom: 60px; }
.inset { position: absolute; right: -18px; bottom: 0; width: 46%; }
.inset .frame { box-shadow: 0 0 0 4px #fffaf0, 0 0 0 6px var(--gold), 0 16px 40px #0006; }

/* ── Tierbuch ────────────────────────────────────────────────────────────── */
.zoo { margin-top: 70px; }
.zoo-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.zoo-head h3 { font-size: 32px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 800 14px/1 var(--text); padding: 9px 14px; border-radius: 999px; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
}
.filters button[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf-dark); color: #fff; }
.zoo-body { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.pet {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; font: 800 14px/1.2 var(--text);
  color: var(--ink); text-align: center; hyphens: auto; overflow-wrap: anywhere; transition: transform .15s ease, box-shadow .15s ease;
}
.pet img { width: 76px; height: 76px; }
.pet:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pet[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-hi); }
.pet .tags { display: flex; gap: 4px; min-height: 18px; }
.pet .tags img { width: 18px; height: 18px; }
.pet[hidden] { display: none; }
.pet-more { display: none; }
.pet-card {
  position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); min-height: 300px;
}
.pet-card .top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pet-card .top img { width: 96px; height: 96px; }
.pet-card h4 { font: 400 28px/1.1 var(--title); margin: 0; }
.pet-card .rare { color: var(--q-epic); font-weight: 800; font-size: 14px; }
.pet-card dl { margin: 0; display: grid; gap: 10px; }
.pet-card dt { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pet-card dd { margin: 0; font-size: 15.5px; }
.pet-card .foods { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-card .foods span, .pet-card .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; background: var(--paper-2); border-radius: 999px; font-weight: 700; font-size: 14px; }
.pet-card .foods img, .pet-card .chip img { width: 24px; height: 24px; }
.pet-card .hint { color: var(--ink-soft); font-size: 15px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--paper-3); color: var(--ink); }
.badge.canyon { background: #f1c9a6; color: #7a2f12; }
.badge.coast { background: #bfe0f2; color: #144e72; }
.badge.vale { background: #cfe5bf; color: #2c4524; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.role { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.role img { width: 36px; height: 36px; flex: none; }
.role b { display: block; }
.role span { font-size: 14.5px; color: var(--ink-soft); }

/* ── Welten ──────────────────────────────────────────────────────────────── */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.world { background: #ffffff0d; border: 1px solid #ffffff22; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.world .frame { border-radius: 0; box-shadow: none; }
.world .body { padding: 22px 22px 24px; }
.world h3 { font-size: 30px; color: #fff3d6; margin-bottom: 4px; }
.world .lvl { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .08em; color: var(--forest); background: var(--gold-hi); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.world p { color: #ddd1b4; font-size: 16px; }
.world ul { margin: 0; padding-left: 18px; color: #cfc3a6; font-size: 15px; }
.world ul li { margin: 3px 0; }
.travel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; margin-top: 90px; }
.soon-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.soon-world { border: 2px dashed #ffffff33; border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; }
.soon-world .ico { font-size: 40px; line-height: 1; }
.soon-world h3 { color: #fff3d6; margin: 0 0 2px; font-size: 24px; }
.soon-world p { margin: 0; color: #cfc3a6; font-size: 15px; }

/* ── Kacheln (Leben im Tal, Gemeinsam) ───────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 14px #3a2a1c12; }
section.alt .tile { background: var(--card); }
.tile img.ico { width: 44px; height: 44px; margin-bottom: 10px; }
.tile h3 { font-size: 22px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ── Tag und Nacht ───────────────────────────────────────────────────────── */
.daynight { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.dn-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 4px #fffaf0, 0 0 0 6px var(--gold), var(--shadow); }
.dn-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.dn-stage img.on { opacity: 1; }
.dn-tabs { display: flex; gap: 8px; margin: 18px 0; }
.dn-tabs button { font: 800 15px/1 var(--text); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.dn-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.now { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 15.5px; margin: 0; }

/* ── Abenteuer ───────────────────────────────────────────────────────────── */
.bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.boss { display: flex; gap: 12px; align-items: center; background: #ffffff0f; border: 1px solid #f0c75e55; border-radius: 16px; padding: 12px; }
.boss img { width: 64px; height: 64px; flex: none; }
.boss b { display: block; color: #fff3d6; line-height: 1.2; }
.boss span { font-size: 13.5px; color: #cfc3a6; }
.boss .lvl { color: var(--gold-hi); font-weight: 900; }
.foes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.foe { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 999px; font-size: 14px; color: #e8dcc0; }
.foe img { width: 30px; height: 30px; }
.foe i { font-style: normal; color: var(--gold-hi); font-weight: 800; }
.loot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.loot span { padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: 14px; background: #120d08; border: 1px solid #ffffff22; }
.q-poor { color: #9d9d9d; } .q-common { color: #ffffff; } .q-uncommon { color: #1eff00; } .q-rare { color: #3fa0ff; } .q-epic { color: #c56cff; }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 40px; }
.skill { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 14px; padding: 12px; }
.skill img { grid-row: span 2; width: 40px; height: 40px; }
.skill b { color: #fff3d6; font-size: 15.5px; }
.skill span { font-size: 13.5px; color: #cfc3a6; }

/* ── Bilder ──────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .frame { box-shadow: 0 0 0 3px #fffaf0, 0 0 0 5px var(--gold), 0 8px 20px #3a2a1c33; border-radius: 14px; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }

/* ── Spielen ─────────────────────────────────────────────────────────────── */
.play-steam { text-align: center; background: linear-gradient(135deg, #1b2838, #2a475e); color: #fff; border-radius: 24px; padding: 44px 24px; box-shadow: 0 20px 50px #1b283855; margin-bottom: 50px; position: relative; overflow: hidden; }
.play-steam::before { content: ""; position: absolute; inset: 0; background: url("/assets/shots/hero.jpg") center / cover; opacity: .14; }
.play-steam > * { position: relative; }
.play-steam h3 { font-size: clamp(30px, 4vw, 42px); color: #fff; margin-bottom: 8px; }
.play-steam p { color: #c7d5e0; max-width: 620px; margin: 0 auto 22px; font-size: 18px; }
.join { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.join h3 { font-size: 28px; }
.steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 18px 0; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 900; display: grid; place-items: center; }
.note { font-size: 15px; color: var(--ink-soft); background: var(--paper-2); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.downloads { display: grid; gap: 12px; }
.dl {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease;
}
.dl:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.dl svg { width: 30px; height: 30px; fill: var(--ink); flex: none; }
.dl div { flex: 1; }
.dl strong { display: block; font-size: 17px; }
.dl span { font-size: 14px; color: var(--ink-soft); }
.dl .go { font-size: 14px; color: var(--leaf); }
.dl.recommended { border: 2px solid var(--gold); box-shadow: 0 0 0 4px #f0c75e44; }
.dl.missing { opacity: .55; pointer-events: none; }
.install { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 11px; font: 800 14px/1 var(--text); background: var(--paper-2); border: 0; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
.tabpanel { padding: 16px 18px 4px; font-size: 15.5px; }

/* ── Steuerung ───────────────────────────────────────────────────────────── */
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.keys { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.keys h3 { font-size: 24px; }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0; align-items: center; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; font-size: 15px; color: var(--ink-soft); }
.mouse { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--line); font-weight: 800; font-size: 13.5px; }
.chat-hint { text-align: center; margin-top: 26px; color: var(--ink-soft); }

/* ── Demnächst ───────────────────────────────────────────────────────────── */
.soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.soon article { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.soon article img { width: 46px; height: 46px; flex: none; }
.soon h3 { font-size: 22px; margin: 6px 0 4px; }
.soon p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.soon .badge { background: #f6d47a; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: #2a1f15; color: #d8ccb0; padding: 50px 0; border-top: 3px solid var(--gold); }
footer .wrap { display: flex; gap: 30px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
footer .brand { margin-bottom: 10px; }
footer p { max-width: 680px; font-size: 14.5px; }
footer a { color: var(--gold-hi); }
footer .side { display: grid; gap: 14px; justify-items: end; }

/* ── Galerie-Dialog ──────────────────────────────────────────────────────── */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #120d08f2; }
.lightbox figure { margin: 0; padding: 0 64px; }
.lightbox img { max-width: calc(100vw - 128px); max-height: 84vh; border-radius: 12px; box-shadow: 0 0 0 3px var(--gold), 0 30px 80px #000; }
.lightbox figcaption { text-align: center; color: #efe3c9; margin: 14px 0 0; font-weight: 700; }
.lightbox button { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: #2a1f15; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: #3a2a1c; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { top: 50%; left: 10px; margin-top: -23px; }
.lightbox .next { top: 50%; right: 10px; margin-top: -23px; }

/* ── Einblenden ──────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .motes i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Schmal ──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .lang { margin-left: auto; }
  .pillars, .roles, .bosses { grid-template-columns: repeat(2, 1fr); }
  .worlds, .tiles, .soon { grid-template-columns: 1fr 1fr; }
  .zoo-body { grid-template-columns: 1fr; }
  .pet-card { position: static; min-height: 0; }
}
@media (max-width: 820px) {
  section { padding: 70px 0; }
  .feature, .daynight, .travel, .join { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip > .media { order: 0; }
  .feature + .feature { margin-top: 70px; }
  .inset { right: 8px; width: 44%; }
  .worlds, .tiles, .soon, .controls, .soon-worlds { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .clock { left: 16px; right: auto; top: 80px; }
  .nav .steam { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .pillars, .roles, .bosses { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .pets { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .pet img { width: 60px; height: 60px; }
  .lightbox figure { padding: 0 8px; }
  .lightbox img { max-width: calc(100vw - 16px); }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 16px; margin-top: 0; }
  .hero .cta .btn, .hero .cta .steam { width: 100%; justify-content: center; }
}
