/* Markbound – Holz-Oberfläche aus Block-Texturen (tools/wood_gfx.py), alles 3-fach skaliert und pixelig. */

@font-face { font-family: "Pixelify"; src: url(/fonts/pixelify-latin.woff2) format("woff2"); font-weight: 400 700; 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: "Pixelify"; src: url(/fonts/pixelify-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin-ext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --px: 3px;                       /* ein Texturpixel */
  --nav-h: calc(19 * var(--px));
  --stone-h: calc(11 * var(--px));
  --ink: #180f08;
  --cream: #f6ead2;
  --text: #f3ece0;
  --muted: #d7c7aa;
  --lime: #9be24f;
  --gold: #ffcf4a;
  --r-common: #ffffff; --r-uncommon: #55ff55; --r-rare: #5555ff; --r-epic: #aa00aa; --r-legendary: #ffaa00; --r-mythic: #ff55ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; color: var(--text); font: 17px/1.55 "Nunito", system-ui, sans-serif;
  background: #1b120b url(/img/ui/bg.png) repeat; background-size: calc(16 * 4px);
  image-rendering: pixelated; -webkit-font-smoothing: antialiased;
}
img { image-rendering: auto; }
img[src*="/ui/"], img[src*="/items/"], img[src*="/game/"] { image-rendering: pixelated; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* --- Holzknopf (9-Slice) -------------------------------------------------------------------------------- */
.wbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px 7px;
  border: solid transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) calc(5 * var(--px));
  border-image: url(/img/ui/btn.png) 4 4 5 fill / calc(4 * var(--px)) calc(4 * var(--px)) calc(5 * var(--px)) stretch;
  image-rendering: pixelated; background: none; text-decoration: none; white-space: nowrap;
  font: 600 16px/1 "Pixelify", monospace; color: #3a2512; text-shadow: 0 1px 0 rgba(255, 240, 210, .45);
  transition: transform .08s, filter .15s;
}
.wbtn img { width: 18px; height: 18px; margin: -3px 0 -3px -2px; }
.wbtn:hover { filter: brightness(1.12); }
.wbtn:active { transform: translateY(2px); }
.wbtn-gold { border-image-source: url(/img/ui/btn_gold.png); color: #4a3000; }
.wbtn-green { border-image-source: url(/img/ui/btn_green.png); color: #fff; text-shadow: 0 2px 0 #1c4a10; }
.wbtn-teal { border-image-source: url(/img/ui/btn_teal.png); color: #fff; text-shadow: 0 2px 0 #0d3c40; }
.wbtn-dark { border-image-source: url(/img/ui/btn_dark.png); color: var(--cream); text-shadow: 0 2px 0 #000; }
.wbtn.big { font-size: 19px; padding: 8px 22px 10px; }
.wbtn[aria-current="true"], .wbtn[aria-selected="true"] { border-image-source: url(/img/ui/btn_gold.png); color: #4a3000; }

/* --- Navi ---------------------------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 10px; padding: 0 12px calc(3 * var(--px));
  background: url(/img/ui/navbar.png) repeat-x; background-size: auto var(--nav-h);
}
.nav-logo { display: block; margin-right: auto; padding-top: 3px; }
.nav-logo img { display: block; width: auto; height: calc(var(--nav-h) - 9px); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); transition: transform .12s; }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-tabs { display: flex; gap: 4px; }
.nav-tabs .wbtn { font-size: 15px; padding: 3px 10px 6px; }
.nav-menu { display: none; }
.mobilnav { position: fixed; z-index: 49; top: var(--nav-h); right: 10px; display: grid; padding: 18px 22px;
  border: solid transparent; border-width: 30px; border-image: url(/img/ui/panel.png) 10 fill / 30px stretch; }
.mobilnav a { font: 600 18px/2.1 "Pixelify", monospace; text-decoration: none; color: var(--cream); }
.mobilnav[hidden] { display: none; }

/* --- Hängendes Schild ----------------------------------------------------------------------------------- */
.sign {
  position: fixed; z-index: 45; top: calc(var(--nav-h) - 6px); left: 50%; transform: translateX(-50%);
  padding: 22px 0 0; border: 0; background: none; transform-origin: 50% 0;
}
.sign:hover { animation: swing 1.1s ease-in-out; }
@keyframes swing { 0% { transform: translateX(-50%) rotate(0) } 25% { transform: translateX(-50%) rotate(3deg) } 60% { transform: translateX(-50%) rotate(-2deg) } 100% { transform: translateX(-50%) rotate(0) } }
.sign-chain { position: absolute; top: 0; width: calc(5 * var(--px)); height: 26px; background: url(/img/ui/chain.png) repeat-y; background-size: 100% auto; }
.sign-chain.l { left: 22%; } .sign-chain.r { right: 22%; }
.sign-board {
  display: flex; flex-direction: column; align-items: center; padding: 2px 18px 4px; min-width: 230px;
  border: solid transparent; border-width: calc(5 * var(--px)); border-image: url(/img/ui/sign.png) 5 fill / calc(5 * var(--px)) stretch;
  font: 600 17px/1.15 "Pixelify", monospace; color: #fff3da; text-shadow: 0 2px 0 #2a1608;
}
.sign-hint { font-size: 11px; color: #e8cfa2; letter-spacing: 1px; text-transform: uppercase; }

/* --- Navigator rechts ----------------------------------------------------------------------------------- */
.rail {
  position: fixed; z-index: 40; right: 10px; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; padding: 8px;
  border: solid transparent; border-width: calc(8 * var(--px)); border-image: url(/img/ui/panel.png) 10 fill / calc(8 * var(--px)) stretch;
}
.rail a { display: grid; place-items: center; width: 42px; height: 40px; border: solid transparent; border-width: 9px 9px 12px;
  border-image: url(/img/ui/btn_dark.png) 4 4 5 fill / 9px 9px 12px stretch; image-rendering: pixelated; }
.rail a img { width: 24px; height: 24px; }
.rail a[aria-current="true"] { border-image-source: url(/img/ui/btn_gold.png); }
.rail a:hover { filter: brightness(1.15); }

/* --- Abschnitte (Vollbild wie eine Szene) --------------------------------------------------------------- */
.sec {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; overflow: hidden;
  display: flex; align-items: center; padding: calc(var(--nav-h) + 70px) 140px calc(var(--stone-h) + 40px) 56px;
  background: #120c07 var(--bg) center / cover no-repeat;
}
.sec::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 9, 5, .82) 0%, rgba(14, 9, 5, .55) 38%, rgba(14, 9, 5, 0) 62%); }
.sec:has(.wrap.right)::before { background: linear-gradient(270deg, rgba(14, 9, 5, .82) 0%, rgba(14, 9, 5, .55) 38%, rgba(14, 9, 5, 0) 62%); }
.sec.hero::before { background: radial-gradient(ellipse 46% 52% at 50% 52%, rgba(12, 8, 4, .62), rgba(12, 8, 4, .34) 55%, rgba(12, 8, 4, 0) 100%),
  linear-gradient(180deg, rgba(10, 8, 4, .1), rgba(10, 8, 4, 0) 40%, rgba(14, 9, 5, .5)); }
.sec.join::before { background: radial-gradient(ellipse at 50% 55%, rgba(14, 9, 5, .72), rgba(14, 9, 5, .25) 70%); }
.sec::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 6, 3, .7), transparent); }

.wrap { position: relative; z-index: 3; max-width: 560px; }
.wrap.right { margin-left: auto; }
.wrap.center { margin: 0 auto; text-align: center; max-width: 640px; }
h2 {
  margin: 0 0 10px; font: 700 clamp(34px, 4.4vw, 54px)/1.05 "Pixelify", monospace; color: var(--lime);
  text-shadow: 3px 3px 0 #1d3a0c, 0 6px 14px rgba(0, 0, 0, .55);
}
.lead { margin: 0 0 22px; font-size: 19px; color: var(--text); text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
h3 { margin: 0 0 6px; font: 700 22px/1.2 "Pixelify", monospace; color: var(--gold); text-shadow: 0 2px 0 #000; }


/* Start */
.hero { justify-content: center; text-align: center; padding-right: 48px; }
.hero-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; margin-top: 7vh; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(640px, 88vw); height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.foot-logo { flex: none; width: 170px; height: auto; }
.hero-title { margin: 14px 0 8px; font: 700 clamp(28px, 3.4vw, 44px)/1.1 "Pixelify", monospace; color: #fff;
  text-shadow: 3px 3px 0 var(--ink), 0 6px 18px rgba(0, 0, 0, .6); }
.hero-sub { margin: 0 0 22px; max-width: 560px; font-size: 19px; line-height: 1.5; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 0 2px #000; }
.hero-status { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font: 600 15px "Pixelify", monospace; color: #eadcc0;
  text-shadow: 0 2px 0 var(--ink), 0 0 8px rgba(0, 0, 0, .8); }
.new { margin: 0 8px 0 -2px; padding: 2px 5px 3px; background: var(--gold); color: var(--ink); font: 700 11px/1 "Pixelify", monospace;
  text-shadow: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.ip-copy { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; color: #fff; }
.ip-copy img { width: 18px; height: 18px; }
.ip-copy:hover span { text-decoration: underline; }
.ip-copy.inline { display: inline; font: 700 17px "Pixelify", monospace; color: var(--gold); }
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: #9a8f80; box-shadow: 0 0 0 2px var(--ink); }
.status.on::before { background: #55ff55; } .status.off::before { background: #ff5555; } .status.maint::before { background: #ffaa00; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Panel (Holzrahmen mit dunkler Füllung) */
.panel { padding: 6px 10px; border: solid transparent; border-width: calc(8 * var(--px));
  border-image: url(/img/ui/panel.png) 10 fill / calc(8 * var(--px)) stretch; }

/* Völker */
.races { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.races .wbtn { font-size: 15px; padding: 3px 10px 6px; }
.race-panel { min-height: 196px; }
.race-panel p { margin: 0 0 8px; }
.perk { color: #8dff8d; font-weight: 700; }
.ability { color: var(--muted); }
.ab-name { display: block; font: 700 16px "Pixelify", monospace; color: var(--gold); }
.wrap.volk-wrap { max-width: none; width: 100%; display: flex; align-items: flex-end; gap: 28px; }
.volk-text { flex: 0 1 560px; }
.volk-fig { flex: none; width: auto; height: min(64vh, 600px); margin: 0 7vw -12px auto; transition: opacity .18s, transform .18s;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .55)); }
.volk-fig.swap { opacity: 0; transform: translateY(10px); }
.volk-fig[hidden] { display: none; }

/* Tal / Quests: Liste mit Item-Icons */
.feat { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat li { position: relative; padding-left: 44px; text-shadow: 0 2px 6px rgba(0, 0, 0, .85); }
.feat li img { position: absolute; left: 0; top: 2px; width: 32px; height: 32px; padding: 2px; background: url(/img/ui/slot.png) 0 0 / 100% 100%; }
.feat b { color: #fff; }

/* Spielbild im Holzrahmen */
.tal-body { display: flex; gap: 22px; align-items: flex-start; }
.tal-body .feat { flex: 1; margin: 0; }
.wrap.right:has(.tal-body) { max-width: 720px; }
.shot { display: inline-block; margin: 0; padding: 0; border: solid transparent; border-width: calc(8 * var(--px));
  border-image: url(/img/ui/frame.png) 10 / calc(8 * var(--px)) stretch; background: #2a1d12; }
.shot img { display: block; width: 176px; height: auto; }
.shot figcaption { padding: 5px 6px 2px; font: 600 13px "Pixelify", monospace; color: var(--muted); text-align: center; background: #1d140c; }

/* Broms Quest-Dialog im Dialogfenster aus dem Spiel (Rahmen 300×86, Positionen in Prozent davon) */
.talk { max-width: 600px; margin: 0 0 18px; }
.dlg { position: relative; width: 100%; aspect-ratio: 300 / 86; container: dlg / inline-size; cursor: pointer; user-select: none; }
.dlg:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dlg-frame { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.dlg-portrait { position: absolute; left: 2.334%; top: 12.79%; width: 19.33%; height: 74.42%; image-rendering: pixelated; }
.dlg-name { position: absolute; left: 25.67%; top: 6.98%; width: 35.67%; height: 13.95%; display: grid; place-items: center;
  font: 700 clamp(11px, 2.6cqw, 17px)/1 "Pixelify", monospace; color: #fff3da; text-shadow: 0 1px 0 #2a1608; }
.dlg-text { position: absolute; left: 24.3%; top: 24.5%; width: 72.5%; height: 52%; margin: 0; overflow: hidden;
  font: 500 clamp(10px, 2.5cqw, 15px)/1.42 "Pixelify", monospace; color: #f6ead2; }
.dlg-text .done { color: var(--gold); }
.dlg-progress { position: absolute; left: 37.67%; top: 82.4%; width: 49%; height: 1.4%; background: rgba(0, 0, 0, .35); }
.dlg-progress i { display: block; height: 100%; width: 0; background: #6fdc4a; box-shadow: 0 0 4px #6fdc4a; }
.dlg-key { position: absolute; left: 42.6%; top: 84.5%; width: 8.4%; height: 10%; display: grid; place-items: center;
  background: #c8322f; box-shadow: inset 0 -2px 0 #7d1513, inset 0 1px 0 #f0706a; color: #fff;
  font: 700 clamp(7px, 1.75cqw, 11px)/1 "Pixelify", monospace; letter-spacing: .3px; }
.dlg.tap .dlg-key { transform: translateY(1px); filter: brightness(1.25); }
.dlg-step { position: absolute; left: 76%; top: 84.5%; width: 9%; height: 10%; display: grid; place-items: center;
  font: 600 clamp(7px, 1.7cqw, 11px)/1 "Pixelify", monospace; color: #c9b089; }
.dlg-start { position: absolute; left: 24.3%; top: 24.5%; width: 72.5%; height: 52%; display: grid; place-items: center;
  font: 700 clamp(11px, 2.7cqw, 17px)/1.2 "Pixelify", monospace; color: var(--gold); text-shadow: 0 2px 0 #2a1608;
  animation: pulse 1.4s ease-in-out infinite; }
.dlg-start[hidden] { display: none; }
@keyframes pulse { 50% { opacity: .55; } }
.talk-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-shadow: 0 1px 4px #000; }
.talk-hint b { font: 700 13px "Pixelify", monospace; color: #fff; background: #c8322f; padding: 1px 5px 2px; box-shadow: inset 0 -2px 0 #7d1513; }
.talk-mute { margin-left: 8px; border: 0; background: none; padding: 0; color: var(--gold); font: 600 13px "Pixelify", monospace; text-decoration: underline; }

/* Kreaturen */
.bestiary ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.bestiary li { display: grid; grid-template-columns: 72px 1fr; column-gap: 10px; font-weight: 700; color: #fff; }
.bestiary li i { grid-column: 2; font-style: normal; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: -3px; }
.lv { grid-row: span 2; align-self: start; font: 700 14px/1 "Pixelify", monospace; padding: 5px 0 6px; text-align: center; color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 0 0 0 2px var(--ink); }
.lv1 { background: #6fdc5a; } .lv3 { background: #d9e04a; } .lv5 { background: #f0a43a; } .lv6 { background: #ee6b3a; } .lv9 { background: #b05cf0; color: #fff; }

/* Alle 10 Höhlenspinnen mit Namensschild wie im Spiel (Mobs.render: ⚔ Name Lv.X, darunter ❤ + Lebensleiste) */
.spiders { position: absolute; z-index: 2; left: 56px; bottom: calc(var(--stone-h) + var(--nav-h) + 28px); width: min(46vw, 820px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 12px; }
.spider { margin: 0; display: flex; flex-direction: column; align-items: center; cursor: help; outline: none; }
.spider:focus-visible .tag { outline: 2px solid var(--gold); }
.tag { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 6px 4px; background: rgba(0, 0, 0, .3);
  font: 700 clamp(9px, .78vw, 12px)/1.1 "Pixelify", monospace; color: #3CC8B4; text-shadow: 1px 1px 0 #0f322d; white-space: nowrap; }
.tag-name { display: flex; align-items: center; gap: .35em; }
.tag-name img { width: 1em; height: 1em; image-rendering: pixelated; }
.tag-name b { margin-left: .45em; text-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.tag-bar { display: flex; align-items: center; gap: .3em; }
.tag-bar img { height: 1em; width: auto; image-rendering: pixelated; }
.tag-bar img.bar { height: 1.05em; }
.tag-bar em { font-style: normal; color: #ff6b6b; font-size: .92em; text-shadow: 1px 1px 0 #3a0d0d; }
.spider-img { display: block; width: 100%; height: auto; margin-top: 6px; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .65));
  animation: crawl 3.6s ease-in-out infinite; animation-delay: var(--d); transform-origin: 50% 100%; }
.spider:hover .spider-img { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .65)) brightness(1.15); }
@keyframes crawl { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-4px) scaleY(.97); } }

/* Beute: Inventar-Fächer + Tooltip wie im Spiel */
.slots { display: grid; grid-template-columns: repeat(9, 54px); gap: 0; margin-bottom: 18px; width: max-content; padding: 6px;
  background: #c6c6c6; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 0 0 0 3px var(--ink); }
.slot { width: 54px; height: 54px; padding: 6px; border: 0; background: url(/img/ui/slot.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.slot img { width: 100%; height: 100%; }
.slot:hover, .slot:focus-visible { background: url(/img/ui/slot.png) 0 0 / 100% 100%, rgba(255, 255, 255, .5); background-blend-mode: screen; outline: none; }
.tip { position: fixed; z-index: 60; pointer-events: none; padding: 7px 10px 8px; max-width: 260px; font: 500 15px/1.35 "Pixelify", monospace;
  background: rgba(16, 0, 16, .94); border: 3px solid #25015b; outline: 3px solid rgba(16, 0, 16, .94); color: #aaa; }
.tip .t-name { display: block; font-weight: 700; margin-bottom: 4px; }
.tip .t-rar { display: block; margin-top: 6px; font-weight: 700; letter-spacing: .5px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); text-shadow: 0 2px 6px #000; }
.skills b { color: var(--gold); font: 700 16px "Pixelify", monospace; margin-right: 6px; }
.soon { margin: 0; font-size: 15px; color: #ffd98a; text-shadow: 0 2px 6px #000; }
.soon::before { content: "SOON "; font: 700 12px "Pixelify", monospace; color: var(--ink); background: var(--gold); padding: 2px 5px; margin-right: 6px; }

/* Spielen */
.steps { text-align: left; margin: 0 auto 18px; max-width: 520px; }
.steps ol { margin: 0; padding-left: 26px; display: grid; gap: 8px; }
.steps li::marker { font: 700 18px "Pixelify", monospace; color: var(--gold); }
.status-line { margin: 12px 0 0; font: 600 15px "Pixelify", monospace; color: var(--muted); }

/* Fuß + Steinkante */
.foot { position: relative; z-index: 3; padding: 34px 24px calc(var(--stone-h) + 30px); background: #1a110a url(/img/ui/bg.png) repeat; background-size: 48px;
  border-top: 3px solid var(--ink); }
.foot-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.stone { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--stone-h); background: url(/img/ui/stone_strip.png) repeat-x; background-size: auto 100%; image-rendering: pixelated; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--stone-h) + 24px); transform: translateX(-50%); padding: 6px 16px 8px;
  border: solid transparent; border-width: calc(5 * var(--px)); border-image: url(/img/ui/sign.png) 5 fill / calc(5 * var(--px)) stretch;
  font: 700 16px "Pixelify", monospace; color: #fff3da; text-shadow: 0 2px 0 #2a1608; }

/* --- Schmalere Bildschirme ------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-tabs .wbtn img { display: none; }
  .nav-tabs .wbtn { padding: 3px 7px 6px; font-size: 14px; }
}
@media (max-width: 1280px) {
  #creatures { flex-direction: column; align-items: stretch; }
  #creatures .wrap.right { margin-left: auto; }
  .spiders { position: relative; left: auto; bottom: auto; width: 100%; max-width: 820px; margin: 34px 0 0; order: 2; }
}
@media (max-width: 980px) {
  :root { --px: 2px; }
  .nav-tabs { display: none; }
  .nav-menu { display: inline-flex; }
  .rail { display: none; }
  .sec { padding: calc(var(--nav-h) + 76px) 16px calc(var(--stone-h) + 40px); background-image: var(--bg-m); align-items: flex-start; }
  .sec::before, .sec:has(.wrap.right)::before { background: linear-gradient(180deg, rgba(14, 9, 5, .55), rgba(14, 9, 5, .82) 60%, rgba(14, 9, 5, .9)); }
  .sec.hero::before { background: linear-gradient(180deg, rgba(14, 9, 5, .2), rgba(14, 9, 5, .6)); }
  .wrap, .wrap.right { margin: 0; max-width: none; }
  .slots { grid-template-columns: repeat(5, 48px); }
  .slot { width: 48px; height: 48px; }
  .shot img { width: 176px; }
  .tal-body { flex-direction: column; }
  #creatures .wrap.right { margin-left: 0; }
  .spiders { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .tag { font-size: 11px; }
  .wrap.volk-wrap { flex-direction: column; align-items: center; }
  .volk-fig { height: 320px; margin: 4px auto 0; }
  .foot-inner { flex-direction: column; text-align: center; }
  .sign-board { min-width: 200px; font-size: 15px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .hero-sub { font-size: 17px; }
  .hero-status { flex-direction: column; gap: 2px; }
  .hero-status .dot { display: none; }
  .wbtn.big { font-size: 16px; padding: 6px 14px 8px; }
  .skills { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sign:hover, .spider-img { animation: none; }
}
