/*
 * Angelwahn-Website - Aussehen wie Minecraft. Schrift, Knöpfe, Reiter, Slots, Leisten und Toast sind die Bausteine
 * aus dem Spiel (tools/make_webui.py -> fonts/, img/mc/); Karten sehen aus wie Item-Tooltips, die Suche
 * wie ein Inventar. Ein Minecraft-Pixel = 2 CSS-Pixel (--px); Schriftgrößen in Vielfachen von 8px bleiben scharf.
 * Texte mit Schatten wie im Spiel (1 Schriftpixel versetzt, Farbe auf ein Viertel abgedunkelt). Nachts am See:
 * Hintergrund Tiefenschiefer in Nachtblau, Seltenheitsfarben wie im Spiel (de.angelwahn.item.Rarity). Bewegung
 * sparsam und bei "weniger Bewegung" ganz aus.
 */

@font-face {
  font-family: "Angelwahn Pixel";
  src: url("fonts/pixel.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Angelwahn Pixel";
  src: url("fonts/pixel-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --px: 2px;
  --bg: #0A111C;
  --text: #FFFFFF;
  --gray: #AAAAAA;       /* §7 */
  --dark: #555555;       /* §8 */
  --yellow: #FFFF55;     /* §e */
  --gold: #FFAA00;       /* §6 */
  --aqua: #55FFFF;       /* §b */
  --green: #55FF55;      /* §a */
  --red: #FF5555;        /* §c */
  --xp: #80FF20;
  --inv: #C6C6C6;
  --inv-text: #404040;
  --tip: rgba(16, 0, 16, .94);
  --c-COMMON: #E6EAF0;
  --c-UNCOMMON: #5BE36B;
  --c-RARE: #4FA3FF;
  --c-EPIC: #B871FF;
  --c-LEGENDARY: #FFB627;
  --c-MYTHIC: #D466F0;
  --c-UNIQUE: #FF4D5E;
  --g-MYTHIC: linear-gradient(90deg, #FF5FD2, #8A6BFF);
  --g-UNIQUE: linear-gradient(90deg, #FF2D55, #FFC94E);
  --font: "Angelwahn Pixel", ui-monospace, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
/* Textschatten wie im Spiel: je Element, damit er mit der Schriftgröße und Farbe mitgeht */
* { text-shadow: .125em .125em 0 color-mix(in srgb, currentColor 25%, #000); }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; image-rendering: pixelated; }
/* Unter Wasser: oben Mondlicht von der Oberfläche (Lichtstrahlen), nach unten immer tiefer bis zum Seegrund unter
 * der Fußzeile; Schwebeteilchen steigen langsam auf. Bilder aus tools/make_website.py (img/szene/). */
body {
  margin: 0;
  background: linear-gradient(180deg, #0F2236 0, #0B1A2C 800px, #081524 55%, #06101C 100%) no-repeat #06101C;
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}
body::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1600px; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 5%, rgba(120, 190, 255, .07) 8%, transparent 12%),
    linear-gradient(110deg, transparent 22%, rgba(120, 190, 255, .05) 27%, transparent 33%),
    linear-gradient(101deg, transparent 50%, rgba(120, 190, 255, .05) 53%, transparent 57%),
    linear-gradient(107deg, transparent 72%, rgba(120, 190, 255, .07) 76%, transparent 82%),
    linear-gradient(103deg, transparent 89%, rgba(120, 190, 255, .05) 92%, transparent 96%);
  -webkit-mask-image: linear-gradient(#000 20%, transparent);
  mask-image: linear-gradient(#000 20%, transparent);
}
body::after {
  content: ""; position: fixed; z-index: -1; inset: 0 0 -640px; pointer-events: none;
  background: url("img/szene/teilchen.png") 0 0 / 320px 640px;
  animation: teilchen 150s linear infinite;
  will-change: transform;
}
@keyframes teilchen { to { transform: translateY(-640px); } }
/* Seegrund: in der Mitte flach (dort steht die Fußzeile), Kelp an den Seiten; Luftblasen aus dem Spiel steigen neben
 * dem Inhalt (breiter als --max) auf */
.seabed {
  position: relative; height: 224px; margin-top: -120px; pointer-events: none; overflow-x: clip;
  background: url("img/szene/seegrund.png") 50% 100% / 2560px 224px repeat-x;
}
.seabed i {
  position: absolute; bottom: 72px; width: 16px; height: 16px; opacity: 0;
  background: url("img/szene/blase.png") 0 0 / 100% 100%;
  animation: blase 9s linear infinite;
}
.seabed i:nth-child(1) { left: calc(50% - 712px); bottom: 104px; animation-delay: -2s; }
.seabed i:nth-child(2) { left: calc(50% - 650px); bottom: 104px; animation-delay: -6.5s; animation-duration: 11s; }
.seabed i:nth-child(3) { left: calc(50% + 616px); bottom: 104px; animation-delay: -4s; animation-duration: 10s; }
.seabed i:nth-child(4) { left: calc(50% + 660px); bottom: 136px; animation-delay: -8s; }
.seabed i:nth-child(5) { left: calc(50% + 704px); bottom: 136px; animation-delay: -1s; animation-duration: 12s; }
@keyframes blase {
  0% { opacity: 0; transform: translate(0, 0); }
  8% { opacity: .75; }
  25% { transform: translate(4px, -70px); }
  50% { transform: translate(-3px, -140px); }
  75% { opacity: .55; transform: translate(4px, -210px); }
  100% { opacity: 0; transform: translate(0, -280px); }
}
h1, h2, h3 { font-weight: 400; }
b, strong { font-weight: 700; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
::selection { background: #0000FF; color: #fff; }
:focus-visible { outline: var(--px) solid #fff; outline-offset: var(--px); }
.muted { color: var(--gray); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

main, .top, .foot { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ------------------------------------------------------------------ Bausteine */

/* Item-Tooltip: fast schwarz-violett, lila Rahmen (oben heller), Ecken um einen Pixel eingerückt. Der Rahmen sind
 * vier Hintergrund-Streifen statt border-image: Chrome malt Verlaufs-border-image bei krummen Größen (Windows-Skalierung
 * 125 %) oben und unten oft viel zu dick, über den Text. Wer den Hintergrund ändert, nur background-color setzen. */
.tipbox {
  --top: rgba(80, 0, 255, .31);
  --bottom: rgba(40, 0, 127, .31);
  border: var(--px) solid transparent;
  background-color: var(--tip);
  background-image:
    linear-gradient(var(--top), var(--bottom)), linear-gradient(var(--top), var(--bottom)),
    linear-gradient(var(--top), var(--top)), linear-gradient(var(--bottom), var(--bottom));
  background-size: var(--px) 100%, var(--px) 100%, calc(100% - 2 * var(--px)) var(--px), calc(100% - 2 * var(--px)) var(--px);
  background-position: left top, right top, center top, center bottom;
  background-repeat: no-repeat;
  background-origin: border-box;
  box-shadow: 0 calc(-1 * var(--px)) var(--tip), 0 var(--px) var(--tip), calc(-1 * var(--px)) 0 var(--tip), var(--px) 0 var(--tip);
}

/* Inventar: hellgrau mit heller Kante oben links, dunkler unten rechts, schwarzer Rand mit eingerückten Ecken */
.inv {
  background: var(--inv);
  color: var(--inv-text);
  box-shadow:
    inset calc(2 * var(--px)) calc(2 * var(--px)) 0 #fff, inset calc(-2 * var(--px)) calc(-2 * var(--px)) 0 #555,
    0 calc(-1 * var(--px)) #000, 0 var(--px) #000, calc(-1 * var(--px)) 0 #000, var(--px) 0 #000;
}
.inv, .inv * { text-shadow: none; }

/* Slot aus dem Inventar (18 Pixel, Gegenstand 16) - hier 4-fach: 72px, Bild 64px */
.slot {
  --s: 72px;
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--s); height: var(--s);
  background: url("img/mc/slot.png") 0 0 / 100% 100%;
}
.slot img { width: calc(var(--s) * 8 / 9); height: calc(var(--s) * 8 / 9); }

/* Knopf aus dem Spiel (Steinmuster, beim Zeigen weißer Rand und gelbliche Schrift wie früher) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 40px; padding: 0 18px; cursor: pointer; white-space: nowrap;
  border: 6px solid transparent;
  border-image: url("img/mc/knopf.png") 3 fill / 6px repeat;
  background: none; color: #fff; line-height: 1;
}
.btn:hover, .btn:focus-visible { border-image-source: url("img/mc/knopf_hell.png"); color: #FFFFA0; text-decoration: none; outline: none; }
.btn-sm { height: 32px; padding: 0 12px; }
.btn-wide { padding: 0 24px; }
.btn-discord { gap: 10px; }
.btn-discord img { width: 78px; height: 18px; }

/* ------------------------------------------------------------------ Kopfzeile */
.top {
  position: sticky; top: 12px; z-index: 20;
  display: flex; gap: 16px; align-items: stretch; justify-content: space-between;
  margin-top: 14px;
}
.nav, .ip-pill { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); font-weight: 700; margin-right: 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 6px 10px; color: var(--gray); white-space: nowrap; }
.nav-links a:not(.btn):hover { color: #fff; text-decoration: none; }
.ip-pill { padding: 6px; gap: 4px; }
.ip-copy { border: 0; background: transparent; cursor: pointer; padding: 6px 10px; color: #fff; }
.ip-copy:hover { color: #FFFFA0; }
.online { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: #fff; white-space: nowrap;
  border: 0; background: transparent; font: inherit; cursor: pointer; }
.online:hover, .online[aria-expanded="true"] { color: #FFFFA0; }
.online img { width: 20px; height: 16px; }

/* Tab-Liste: wer gerade online ist - Tooltip-Kasten unter der Anzeige, rechtsbündig */
.ip-pill { position: relative; }
.online-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 520px); overflow-y: auto; padding: 10px 6px 8px;
}
.online-list[hidden] { display: none; }
.ol-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 8px 8px;
  color: var(--yellow); }
.ol-rows { list-style: none; margin: 0; padding: 0; }
.ol-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: #fff; }
.ol-row:hover, .ol-row:focus-visible { background: rgba(255, 255, 255, .08); text-decoration: none; outline: none; }
.ol-row .head { width: 24px; height: 24px; flex: none; image-rendering: pixelated; font-size: 13px; }
.ol-rank { height: 18px; width: auto; flex: none; image-rendering: pixelated; }
.ol-rank-spielermodus { height: 18px; }
.ol-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-level { flex: none; color: var(--xp); }
.ol-empty { padding: 8px; }
.ol-foot { margin: 8px 8px 0; font-size: 14px; }
@media (max-width: 560px) {
  .ol-row { gap: 6px; padding-inline: 6px; }
  .ol-rank, .ol-rank-spielermodus { height: 14px; }
  .ol-lv { display: none; }                          /* Zahl in der Levelfarbe = Level, wie in der Tab-Liste */
}

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; min-height: 500px;
  margin: 28px 0; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, #08121F 0%, #0C1C30 60%, #0E2238 100%);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(2 * var(--px)) rgba(255, 255, 255, .14);
}
.hero-text { position: relative; z-index: 2; max-width: 560px; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 18, 31, .96) 0%, rgba(8, 18, 31, .82) 36%, rgba(8, 18, 31, 0) 54%);
}
.sz-stars rect { animation: twinkle 3.5s ease-in-out infinite; }
.sz-stars rect:nth-child(2n) { animation-delay: -1.7s; }
.sz-stars rect:nth-child(3n) { animation-delay: -2.6s; }
@keyframes twinkle { 50% { opacity: .25; } }
.sz-front { animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-30px); } }

.eyebrow { margin: 0 0 12px; color: var(--gray); }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.2; color: #fff; }
/* wie der gelbe Spruch im Titelbild */
.splash {
  display: inline-block; margin: 22px 0 0 12px; color: #FFFF00; font-size: 24px;
  transform: rotate(-3deg); animation: splash 1.6s ease-in-out infinite;
}
@keyframes splash { 50% { transform: rotate(-3deg) scale(1.05); } }
.lead { color: var(--gray); max-width: 40ch; margin: 22px 0 28px; }
.lead b, .lead em { font-style: normal; color: #fff; }
.lead .COMMON { color: var(--c-COMMON); }
.r-UNIQUE { background: var(--g-UNIQUE); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none; filter: drop-shadow(var(--px) var(--px) 0 #3A0A14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ Laufband (wie Chatzeilen) */
.ticker {
  display: flex; align-items: center; gap: 14px; margin: -4px 0 28px;
  padding: 6px 12px; background: rgba(0, 0, 0, .5);
}
.ticker-label { flex: none; color: var(--gold); }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; width: max-content; animation: scroll 45s linear infinite; }
.ticker:hover ul { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.ticker li { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--gray); }
.ticker li img { width: 32px; height: 32px; }
.ticker li b { color: #fff; font-weight: 400; }

/* Leiste unter den Gesamt-Kacheln (wie das Laufband): oeffnet "Alle Server-Statistiken" */
.more-bar {
  display: block; margin-top: 20px; padding: 6px 12px; text-align: center;
  background: rgba(0, 0, 0, .5); color: var(--gray);
}
.more-bar:hover, .more-bar:focus-visible { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------------ Fenster "Alle Server-Statistiken" */
.more {
  width: min(1040px, 100% - 2 * var(--gutter)); max-height: min(88vh, 1000px); margin: auto; padding: 0;
  color: var(--text); overflow: hidden;
}
.more[open] { display: flex; flex-direction: column; }
.more::backdrop { background: rgba(4, 8, 14, .72); backdrop-filter: blur(3px); }
body:has(.more[open]) { overflow: hidden; }
.more-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px;
  border-bottom: var(--px) solid rgba(80, 0, 255, .31);
}
.more-head h2 { margin: 0; font-size: 24px; }
.more-close { width: 40px; padding: 0; font-size: 24px; }
.more-body { overflow-y: auto; padding: 0 22px 26px; overscroll-behavior: contain; }
.more .divider { margin: 26px 0 16px; font-size: 16px; color: var(--gray); }
.more .tiles { gap: 14px; }
.more .tiles-4 { grid-template-columns: repeat(4, 1fr); }
.more .tile { padding: 16px 10px 14px; background-color: rgba(0, 0, 0, .35); }
.more .tile .slot { --s: 48px; margin-bottom: 8px; }
.more .num { font-size: 24px; }
.more .num.txt { font-size: 16px; line-height: 1.8; }
.more .note { color: var(--dark); }

/* ------------------------------------------------------------------ Kacheln */
.tiles { display: grid; gap: 20px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-5 { grid-template-columns: repeat(5, 1fr); }
.tiles-6 { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 24px 14px 20px;
}
.tile .slot { margin-bottom: 12px; }
.num { font-size: 32px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tiles-big .num { font-size: 40px; }
.lbl { color: var(--gray); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 14px; width: 100%; max-width: 196px; }
.spark i { flex: 1; min-height: 4px; background: var(--aqua); box-shadow: inset 0 calc(-1 * var(--px)) 0 rgba(0, 0, 0, .35); }
.spark i:last-child { background: var(--yellow); }
.spark-days { display: flex; justify-content: space-between; width: 100%; max-width: 196px; color: var(--gray); }

/* ------------------------------------------------------------------ Überschriften mit Trennlinie */
.divider { display: flex; align-items: center; gap: 22px; margin: 64px 0 28px; font-size: 24px; color: #fff; }
.divider::before, .divider::after {
  content: ""; flex: 1; height: calc(2 * var(--px));
  background: url("img/mc/trenner.png") 0 0 / 64px 100% repeat-x;
}
.divider span { text-align: center; }

/* ------------------------------------------------------------------ Karten */
.card { padding: 20px 22px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 24px; }
.rarity-card { margin-top: 20px; }

.rarity-bar { display: flex; gap: var(--px); height: 20px; padding: var(--px); background: #000; }
.rarity-bar i { display: block; min-width: 4px; box-shadow: inset 0 var(--px) 0 rgba(255, 255, 255, .35), inset 0 calc(-1 * var(--px)) 0 rgba(0, 0, 0, .3); }
.rarity-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 0 32px; }
.rarity-list li { display: grid; grid-template-columns: 16px 1fr auto 100px; align-items: center; gap: 12px; padding: 6px 0; }
.rarity-list .sw { width: 16px; height: 16px; box-shadow: 0 0 0 var(--px) #000; }
.rarity-list .cnt { font-variant-numeric: tabular-nums; }
.rarity-list .pct { color: var(--gray); text-align: right; }

/* ------------------------------------------------------------------ Rekorde */
/* je Gebiet ein Reiter wie bei den Bestenlisten, darin kompakte Karten */
.records-box .boards-body { padding: 24px 22px 22px; }
/* Reiter mit den Symbolen aus dem Gebiete-Menü (16x16, etwa 2-fach in ganzen Bildschirmpixeln: --icon16, app.js
 * initPixelSize), der Name im Tooltip (Zin_ 13.11.2026); nicht gewählte etwas blasser wie sonst die grauen Namen */
.records-box .tabs button { display: grid; place-items: center; padding: 0 16px; }
.records-box .tabs img { display: block; width: var(--icon16, 32px); height: var(--icon16, 32px); opacity: .75; }
.records-box .tabs button:hover img, .records-box .tabs button[aria-selected="true"] img { opacity: 1; }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.rec { --c: var(--c-COMMON); display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; }
.rec > div { min-width: 0; }
.rec .slot { --s: 54px; }
.rec .fn { color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .kg { font-size: 20px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.rec .kg small { font-size: 14px; font-weight: 400; color: var(--gray); }
.rec .by { color: var(--gray); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .by b { color: #fff; font-weight: 400; }
.records-note { margin: 16px 0 0; text-align: center; }
.COMMON { --c: var(--c-COMMON); } .UNCOMMON { --c: var(--c-UNCOMMON); } .RARE { --c: var(--c-RARE); }
.EPIC { --c: var(--c-EPIC); } .LEGENDARY { --c: var(--c-LEGENDARY); } .MYTHIC { --c: var(--c-MYTHIC); } .UNIQUE { --c: var(--c-UNIQUE); }
/* Namen im Farbverlauf: Schatten als Filter, sonst läge er über dem Verlauf */
.MYTHIC .fn, .UNIQUE .fn, .fn.MYTHIC, .fn.UNIQUE {
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(var(--px) var(--px) 0 #2A0F2A);
}
.MYTHIC .fn, .fn.MYTHIC { background-image: var(--g-MYTHIC); }
.UNIQUE .fn, .fn.UNIQUE { background-image: var(--g-UNIQUE); }
/* Im Laufband ohne Verlauf: der bewegte Streifen verliert den Zuschnitt auf die Buchstaben manchmal, dann stand
   ein Farbkasten hinter dem Namen. Die Stufenfarbe setzt app.js, der Schatten ist der wie überall. */
.ticker .fn { background: none; filter: none; text-shadow: .125em .125em 0 color-mix(in srgb, currentColor 25%, #000); }

/* ------------------------------------------------------------------ Bestenlisten */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.tabs button {
  height: 48px; padding: 0 18px; cursor: pointer; color: var(--gray); background: none;
  border-style: solid; border-color: transparent; border-width: 4px 4px 0;
  border-image: url("img/mc/reiter.png") 2 2 0 2 fill / 4px 4px 0 repeat;
}
.tabs button:hover { border-image-source: url("img/mc/reiter_hell.png"); color: #fff; }
.tabs button[aria-selected="true"] { border-image-source: url("img/mc/reiter_aktiv.png"); color: #fff; }
.tabs button[aria-selected="true"]:hover { border-image-source: url("img/mc/reiter_aktiv_hell.png"); }
.boards-body { padding: 32px 22px 22px; background: rgba(0, 0, 0, .44); position: relative; }
.boards-body::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(2 * var(--px)); background: url("img/mc/trenner.png") 0 0 / 64px 100% repeat-x; }

/* Treppchen aus Blöcken: Eisen - Gold - Kupfer, ein Block = 32px */
.podium { display: grid; grid-template-columns: 192px 224px 192px; justify-content: center; align-items: end; gap: 16px; margin: 0 auto 28px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border: 0; background: none; padding: 0; color: #fff; min-width: 0; }
.pod .head { width: 64px; height: 64px; }
.pod:nth-child(2) .head { width: 80px; height: 80px; }
.pod .pn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pv { color: var(--gray); font-variant-numeric: tabular-nums; }
.pod .step {
  width: 100%; display: grid; place-items: center; font-size: 32px; font-weight: 700; color: #fff;
  background: 50% 100% / 32px 32px; box-shadow: inset 0 0 0 var(--px) rgba(0, 0, 0, .45);
}
.pod:nth-child(1) .step { height: 96px; background-image: url("img/mc/eisen.png"); }
.pod:nth-child(2) .step { height: 128px; background-image: url("img/mc/gold.png"); }
.pod:nth-child(3) .step { height: 64px; background-image: url("img/mc/kupfer.png"); }
.pod .step { text-shadow: .125em .125em 0 #000; }
.pod:hover .pn, .pod:focus-visible .pn { color: #FFFFA0; }

/* weitere Plätze wie die Serverliste: beim Zeigen weißer Rahmen um schwarz */
.board { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.board button {
  width: 100%; display: grid; grid-template-columns: 36px 32px 1fr auto; align-items: center; gap: 14px;
  padding: 6px 12px; border: var(--px) solid transparent; background: transparent; cursor: pointer; text-align: left;
}
.board button::before { content: attr(data-platz) "."; color: var(--gray); text-align: right; font-variant-numeric: tabular-nums; }
.board button:hover, .board button:focus-visible { border-color: #fff; background: rgba(0, 0, 0, .6); outline: none; }
.board .head { width: 32px; height: 32px; }
.board .bv { color: var(--gray); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pet-max { color: var(--gold); }

.head { display: block; background: #222; }
.head-fallback { display: grid; place-items: center; font-weight: 700; color: #fff; background: #3C8527; }

/* ------------------------------------------------------------------ Suche (Kreativinventar) */
.search {
  display: grid; grid-template-columns: auto 1fr minmax(320px, 460px); align-items: center; gap: 28px;
  margin: 72px 0 28px; padding: 24px clamp(20px, 3vw, 36px);
}
.search-art { width: 96px; height: 96px; display: grid; place-items: center; }
.search-art img { width: 96px; height: 96px; transform: rotate(-18deg); animation: bob 3s ease-in-out infinite; }
/* wie ein Gegenstand auf dem Boden: schwebt sanft auf und ab */
@keyframes bob { 50% { transform: rotate(-18deg) translateY(-8px); } }
.search h2 { margin: 0; font-size: 32px; color: var(--inv-text); }
.search-text p { margin: 6px 0 0; color: #555; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
/* Textfeld aus dem Spiel: schwarz, grauer Rand, im Fokus weiß */
.search-form input {
  min-width: 0; height: 40px; padding: 0 10px; border: var(--px) solid #A0A0A0; background: #000;
  color: #E0E0E0; caret-color: #E0E0E0;
}
.search-form input, .search-form .btn { text-shadow: .125em .125em 0 color-mix(in srgb, currentColor 25%, #000); }
.search-form input::placeholder { color: #707070; }
.search-form input:focus { outline: none; border-color: #fff; }
.search-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; color: #AA0000; }
.search-try { grid-column: 1 / -1; margin: -6px 0 0; color: #555; }
.search-try a { color: #0000AA; }

/* ------------------------------------------------------------------ Profil */
.profile { margin-bottom: 40px; animation: rise .4s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 24px; margin-bottom: 20px; }
.head-wrap { position: relative; }
.head-wrap .head { width: 112px; height: 112px; font-size: 48px; }
.head-wrap.on::after {
  content: "online"; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: #000; color: var(--green); padding: 0 6px; border: var(--px) solid #555;
}
.profile-id h2 { margin: 0; font-size: 32px; font-weight: 700; overflow-wrap: anywhere; }
.profile-id p { margin: 2px 0 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.badges li { display: flex; padding: 4px; background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 var(--px) #000; cursor: help; }
.badges li:hover, .badges li:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.badges img { width: 32px; height: 32px; }
.badges .none { color: var(--gray); padding: 4px 12px; cursor: default; }

/* Level wie im Spiel: grüne Zahl mit schwarzem Rand über der Erfahrungsleiste (182 x 5 Pixel) */
.level { display: grid; justify-items: center; gap: 6px; width: 364px; }
.level-num {
  color: var(--xp); font-size: 32px; line-height: 1;
  text-shadow: 4px 0 #000, -4px 0 #000, 0 4px #000, 0 -4px #000;
}
.xpbar { position: relative; width: 100%; height: 10px; background: url("img/mc/xp_leer.png") 0 0 / 100% 100%; }
.xpbar i {
  position: absolute; inset: 0; background: url("img/mc/xp_voll.png") 0 0 / 100% 100%;
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); transition: clip-path 1.2s cubic-bezier(.2, .8, .2, 1);
}
.xp-text { margin: 0; color: var(--gray); text-align: center; }
.rank-chip { color: var(--aqua); font-size: 16px; }
.rank-chip:empty { display: none; }

.profile .tiles-4 { margin-bottom: 28px; }

/* ------------------------------------------------------------------ Profil: Kopf, Kacheln, Reiter (profil.js) */
.profile-head { grid-template-rows: auto auto; }
.profile-head .head-wrap { grid-row: span 2; }
.profile-head .level { grid-row: span 2; }
.p-title { margin: 2px 0 0; color: var(--gold); width: fit-content; cursor: help; }
.p-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.p-actions .btn[aria-pressed="true"] { color: var(--yellow); }

.p-highlights { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.p-highlights .tile { padding: 18px 8px 16px; }
.p-highlights .tile .slot { --s: 56px; margin-bottom: 8px; }
.profile .p-highlights .tile .num { font-size: 24px; }

.p-tabs { justify-content: flex-start; }
.p-body { position: relative; padding: 28px 22px 24px; background: rgba(0, 0, 0, .44); }
.p-body::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(2 * var(--px)); background: url("img/mc/trenner.png") 0 0 / 64px 100% repeat-x; }
.p-panel > .pcard + .pcard { margin-top: 20px; }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#p-sammlung { margin-top: 28px; }
.pcard { padding: 18px 20px; min-width: 0; }
.pcard.wide { grid-column: 1 / -1; }
.p-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.pcard .card-head { margin-bottom: 12px; }
.pcard .card-head h3 { font-size: 16px; color: var(--yellow); }

/* Zeilen: Bild, Bezeichnung, Wert (klein darunter ein Zusatz) */
/* Bezeichnung mindestens ~7 Zeichen breit, der Wert bricht um (Zin_ 11.11.2026: auf dem Handy drueckte ein langer
   Wert wie "Goliath-Zackenbarsch · CatchmeNow" die Bezeichnung auf einen Buchstaben je Zeile zusammen) */
.kv {
  display: grid; grid-template-columns: 32px minmax(min(7.5em, 40%), 1fr) minmax(0, auto); align-items: center;
  gap: 4px 12px; padding: 5px 0;
}
.kv-ico { width: 32px; height: 32px; object-fit: contain; }
.kv-l { color: var(--gray); min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.kv-v { color: #fff; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: break-word; }
.kv-v small { display: block; color: var(--gray); font-size: 14px; }
.kv.sub .kv-l { color: #fff; }
/* Schmale Karte (Handy): Werte mit Zusatzzeile ("Goliath-Zackenbarsch · CatchmeNow") unter die Bezeichnung statt
   daneben - sonst brachen sie mitten im Wort um. Die Karte selbst ist der Massstab, nicht das Fenster. */
.pcard { container-type: inline-size; }
@container (max-width: 420px) {
  .kv:has(.kv-v small) .kv-ico { grid-row: span 2; }
  .kv:has(.kv-v small) .kv-v { grid-column: 2 / -1; text-align: left; }
}
.goal .pbar { grid-column: 2 / 4; }
.place-no { color: #fff; font-weight: 400; text-align: right; white-space: nowrap; }
.place-no small { display: block; color: var(--aqua); font-size: 14px; }
.place-no.place-1 { color: #FFD25A; }
.place-no.place-2 { color: #E0E0E0; }
.place-no.place-3 { color: #E8A16A; }
.big-line { margin: 0 0 8px; font-size: 24px; color: #fff; }
.small { margin: 10px 0 0; font-size: 14px; }

/* Leiste wie im Spiel: schwarz umrandet, Füllung mit heller Oberkante */
.pbar { height: 10px; padding: var(--px); background: #000; }
.pbar i {
  display: block; height: 100%; background: var(--aqua);
  box-shadow: inset 0 var(--px) 0 rgba(255, 255, 255, .35), inset 0 calc(-1 * var(--px)) 0 rgba(0, 0, 0, .3);
}
.pbar.xp i { background: var(--xp); }
.pbar.gold i { background: #FFD25A; }
.pbar.green i { background: var(--green); }
.pbar.red i { background: #E05050; }
.pbar.purple i { background: #B871FF; }
.pbar.me i { background: var(--yellow); }
.pbar.gray i { background: #8A8A8A; }

/* Letzte seltene Fänge */
.rare-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 6px 24px; }
.rare { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px; }
.rare .slot { --s: 48px; grid-row: span 2; }
.rare .fn { color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rare-ago { grid-row: span 2; font-size: 14px; }


/* Kampf & Welt: gleich hohe Karten, die kleinen Kästchen unten bündig */
.p-grid-even { align-items: stretch; }
.p-grid-even .pcard { display: flex; flex-direction: column; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 14px; }
.mini { display: grid; gap: 2px; padding: 10px 8px; text-align: center; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .06); }
.mini b { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }
.mini span { color: var(--gray); font-size: 14px; line-height: 1.3; }
.feature { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; }
.feature .big-line { display: block; margin: 0 0 2px; }
.unrest-row { margin-top: 18px; cursor: help; }
.unrest-row .unrest-top { margin-bottom: 6px; }
.feature-pic, .crea-pic { display: grid; place-items: center; width: 64px; height: 64px; }
.feature-pic { background: radial-gradient(closest-side, rgba(255, 120, 40, .3), transparent); }
.feature-pic img, .crea-pic img { width: 56px; height: 56px; }

/* Kacheln (Kreaturen, Fischlexikon, Angel-Aussehen, Rezepte): Rand und Leuchten in der Seltenheitsfarbe */
.crea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.crea {
  position: relative;                                  /* Farbe --c kommt von der Seltenheitsklasse (.RARE ...) */
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px;
  background: rgba(0, 0, 0, .35); border-left: calc(2 * var(--px)) solid var(--c);
  box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .06);
}
.crea:hover { box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .5); }
.crea-pic { background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); }
.crea-text { display: grid; gap: 2px; min-width: 0; }
.crea .fn { color: var(--c); overflow-wrap: break-word; hyphens: auto; }
.crea-rarity { color: var(--gray); font-size: 14px; }
.crea-count { color: #fff; font-weight: 400; margin-top: 4px; }
.crea-text small { font-size: 14px; }
.crea.unknown { border-left-color: #444; }
.crea.unknown .crea-name { color: var(--gray); }
.crea.unknown .crea-pic { background: none; }
.crea.unknown .crea-pic img { opacity: .6; }
.crea.shadow .crea-pic img { filter: brightness(0); opacity: .5; }
.crea-fav { position: absolute; top: 4px; right: 8px; color: var(--yellow); }
/* Sammelalbum: vollständige Karte mit Silberrand, Gold-Karte mit Goldrand (wie im Spiel) */
.crea.alb-silver { box-shadow: inset 0 0 0 var(--px) #c8d4e0; }
.crea.alb-gold-card { box-shadow: inset 0 0 0 var(--px) var(--yellow); }
.crea .alb8 { margin-top: 4px; }

/* Sammelalbum als Überblick (profil.js albumCard, Zin_ 21.11.2026 Vorschlag C) wie der Inhalt der Tafel: links Prozent,
 * Zahlen und Gebiete (je Seltenheit ein Punkt, gefüllt = Abschnitt vollständig), rechts Goldkarten und "Als Nächstes";
 * alle Karten auf Klick darunter */
.alb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; }
.alb-pct { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.alb-pct b { font-size: 48px; line-height: 1; color: #FFD25A; font-weight: 400; font-variant-numeric: tabular-nums; }
.alb-nums { margin: 14px 0 16px; padding: 0; }
.alb-area {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto 80px 56px; align-items: center; gap: 10px;
  width: 100%; padding: 5px 4px; border: 0; border-top: var(--px) solid rgba(255, 255, 255, .06);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.alb-area:hover, .alb-area:focus-visible { background: rgba(255, 255, 255, .04); outline: none; }
.alb-ico { display: block; width: var(--icon16s, 24px); height: var(--icon16s, 24px); }
.alb-name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-dots { display: flex; gap: 3px; }
.alb-dots i { width: 6px; height: 8px; box-shadow: inset 0 0 0 1px var(--c); }
.alb-dots i.on { background: var(--c); }
.alb-dots i.none { box-shadow: inset 0 0 0 1px #333; }
.alb-cnt { text-align: right; color: var(--gray); font-variant-numeric: tabular-nums; }
.alb-cnt.ok { color: #C8D4E0; }
.alb-cnt.gold { color: var(--yellow); }
.alb-side h4 { margin: 0 0 8px; font-size: 16px; font-weight: 400; color: #fff; }
.alb-side h4 small { margin-left: 8px; color: var(--gray); font-size: 14px; }
.alb-none { margin: 0 0 20px; }
.alb-gold { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.alb-gc {
  display: grid; place-items: center; min-width: calc(var(--fish15, 48px) + 8px); padding: 4px; border: 0;
  color: var(--yellow); font: inherit; background: radial-gradient(closest-side, rgba(255, 210, 90, .25), rgba(0, 0, 0, .35));
  box-shadow: inset 0 0 0 var(--px) #FFD25A, inset 0 calc(2 * var(--px)) 0 rgba(255, 240, 180, .35);
}
.alb-gc img { width: var(--fish15, 48px); height: var(--fish15, 48px); }
.alb-more { cursor: pointer; }
.alb-more:hover, .alb-more:focus-visible { color: #fff; outline: none; }
.alb-next {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 6px 8px;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .06);
}
.alb-next + .alb-next { margin-top: 6px; }
.alb-next img { display: block; width: var(--fish1, 32px); height: var(--fish1, 32px); }
.alb-next .fn { color: var(--c); }
.alb-next small { display: block; color: var(--gray); font-size: 14px; }
.alb-next small em { font-style: normal; color: #fff; }
/* die 8 Felder klein: oben Rogner (rosa), unten Milchner (blau), rechts Riesig (gold) */
.alb8 { display: grid; grid-template-columns: repeat(4, 8px); gap: 2px; }
.alb8 i { width: 8px; height: 8px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .16); }
.alb8 i.r { box-shadow: inset 0 0 0 var(--px) rgba(255, 210, 90, .5); }
.alb8 i.f.on { background: #E07AA8; box-shadow: none; }
.alb8 i.m.on { background: #4F9BEF; box-shadow: none; }
.alb8 i.r.on { background: #FFD25A; }
.alb-toggle { margin-top: 18px; }
.alb-all { margin-top: 20px; padding-top: 18px; border-top: var(--px) solid rgba(255, 255, 255, .08); }
@media (max-width: 900px) { .alb-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .alb-area { grid-template-columns: auto minmax(0, 1fr) auto 48px; }
  .alb-area .pbar { display: none; }
}

/* Farbwunder als Vitrine (profil.js wondersCard): je Art ein Schaustück wie ein Fangschein, Rand und Schein in seiner
 * Färbung (--fc), Erstentdeckungen golden mit Stempel; die Schrift oben in den Farben von "FARBWUNDER!" im Spiel */
.fw-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(236px, 100%), 1fr)); gap: 14px; }
.fw-piece {
  --fc: #FFD25A; position: relative; display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 0 14px 14px; text-align: center; background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 var(--px) color-mix(in srgb, var(--fc) 45%, transparent);
}
.fw-band {
  justify-self: stretch; margin: 0 -14px 6px; padding: 6px 0 5px; font-size: 14px; letter-spacing: 1px;
  background: color-mix(in srgb, var(--fc) 16%, transparent);
  box-shadow: inset 0 calc(-1 * var(--px)) 0 color-mix(in srgb, var(--fc) 40%, transparent);
}
.fw-rainbow {
  background: linear-gradient(90deg, #FF6F91, #FFAA4A, #FFE45A, #6FE07A, #5FC8FF, #9C8CFF, #F27AFF);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
}
.fw-pic {
  display: grid; place-items: center; width: calc(var(--fish4, 128px) + 24px); height: calc(var(--fish4, 128px) + 8px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fc) 38%, transparent), transparent);
}
.fw-pic img { width: var(--fish4, 128px); height: var(--fish4, 128px); }
.fw-name { font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--c); }
.fw-tint { color: var(--fc); }
.fw-facts { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0 14px; margin: 8px 0 6px; font-size: 14px; text-align: left; }
.fw-facts dt { color: var(--gray); }
.fw-facts dd { margin: 0; color: #fff; }
.fw-foot { justify-self: stretch; margin: 4px 0 0; padding-top: 8px; border-top: var(--px) solid rgba(255, 255, 255, .08); color: var(--gray); font-size: 14px; }
.fw-foot b { color: #fff; font-weight: 400; }
.fw-piece.erst { box-shadow: inset 0 0 0 var(--px) var(--yellow), 0 0 0 var(--px) rgba(255, 255, 85, .25); }
.fw-stamp {
  position: absolute; top: 36px; right: -6px; padding: 2px 8px; color: var(--yellow); font-size: 12px; transform: rotate(7deg);
  background: rgba(40, 30, 0, .8); box-shadow: inset 0 0 0 var(--px) var(--yellow);
}
.fw-count { position: absolute; top: 40px; left: 10px; color: #fff; font-size: 14px; }
.fw-piece.next { color: var(--gray); box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .1); }
.fw-piece.next .fw-band { color: var(--dark); background: rgba(255, 255, 255, .03); box-shadow: inset 0 calc(-1 * var(--px)) 0 rgba(255, 255, 255, .08); }
.fw-piece.next .fw-pic { background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent); }
.fw-piece.next img { opacity: .55; }
.fw-piece.next .fw-name { color: var(--gray); }
.fw-piece.next p { margin: 0; font-size: 14px; }
.fw-all { margin-top: 14px; }
.fw-more { margin: 14px 0 0; }
.crea.fw .crea-pic { background: radial-gradient(closest-side, rgba(255, 210, 90, .28), transparent); }
.ticker li.fw .fw-tag { color: var(--yellow); }
/* Profilkopf: Rahmen nach vollständigen Seiten im Sammelalbum (1 Bronze, 3 Silber, alle Gold) */
.head-wrap[data-rahmen="bronze"] .head { box-shadow: 0 0 0 calc(var(--px) * 2) #D08A4A; }
.head-wrap[data-rahmen="silber"] .head { box-shadow: 0 0 0 calc(var(--px) * 2) #C8D4E0; }
.head-wrap[data-rahmen="gold"] .head { box-shadow: 0 0 0 calc(var(--px) * 2) var(--yellow); }
/* Startseite: neueste Farbwunder als Zeilen wie die seltenen Fänge im Profil; Galerie im Fenster */
.wonders .rare-list a.rare { color: inherit; text-decoration: none; }
#galerie .area-pick { margin-top: 12px; }
#fw-fill { filter: hue-rotate(250deg) saturate(1.4); }
/* kompakt: kleineres Bild, engere Abstände (viele Einträge) */
.sm-grid { grid-template-columns: repeat(auto-fill, minmax(min(196px, 100%), 1fr)); gap: 8px; }
.crea.sm { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 8px 10px; }
.crea.sm .crea-pic { width: 48px; height: 48px; }
.crea.sm .crea-pic img { width: 48px; height: 48px; }
.crea.sm .crea-count { margin-top: 0; }
.crea.sm .crea-text { gap: 0; }
/* Begleiter: Kachel wie die Kreaturen, darunter Entwicklungen und Fähigkeiten (wie im Tooltip) über die volle Breite */
.pet-grid { grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); }
.pet { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.pet .pbar { margin: 6px 0 2px; }
.pet-more { display: grid; gap: 6px; align-content: start; padding-left: 14px; border-left: var(--px) solid rgba(255, 255, 255, .08); }
@media (max-width: 760px) {
  .pet { grid-template-columns: 64px minmax(0, 1fr); }
  .pet-more { grid-column: 1 / -1; padding: 10px 0 0; border-left: 0; border-top: var(--px) solid rgba(255, 255, 255, .08); }
}
.pet-evo { margin: 0; color: var(--gray); font-size: 14px; }
.pet-evo-on { color: #E2B98A; }
.pet-skills { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.pet-skills .on { color: #E2B98A; }
.pet-skills .on span { color: var(--gray); }
.pet-skills .off { color: #6A6A6A; }
.lex-progress { margin: -4px 0 14px; }
/* Fischlexikon: Gebiet wählen - je Gebiet ein Feld mit Symbol (wie die Reiter der Rekordtafel), darunter gefundene
 * Arten und Balken; das gewählte weiß umrandet wie die Bestenliste beim Zeigen. Der Name steht darunter über den Arten */
.area-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.area-pick button {
  display: grid; justify-items: center; gap: 4px; width: 88px; padding: 8px 8px 10px; cursor: pointer; color: var(--gray);
  border: var(--px) solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .35);
}
.area-pick button:hover, .area-pick button:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .5); outline: none; }
.area-pick button[aria-pressed="true"] { color: #fff; border-color: #fff; background: rgba(0, 0, 0, .6); }
.area-pick img { display: block; width: var(--icon16, 32px); height: var(--icon16, 32px); opacity: .75; }
.area-pick button:hover img, .area-pick button[aria-pressed="true"] img { opacity: 1; }
.area-count { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-pick .full .area-count { color: var(--yellow); }
.area-pick .pbar { width: 100%; box-shadow: 0 0 0 var(--px) #3A3A3A; }
.area-title { margin: 0 0 12px; }

/* Kehrwasser: die Schattenseite von Ricks Club (app.js darkSide), links neben ihm - auf der Rekordtafel ein Reiter, im
 * Fischlexikon des Profils ein Feld. Sein Symbol ist dunkel: rot hinterleuchtet. Gewählt dunkelroter Grund, der Name
 * in Blutrot wie im Spiel */
.records-box .tabs button.kw img, .area-pick button.kw img {
  box-sizing: content-box; padding: 6px; margin: -6px;
  background: radial-gradient(closest-side, rgba(179, 20, 28, .85), transparent);
}
.records-box .tabs button.kw:hover img, .records-box .tabs button.kw[aria-selected="true"] img,
.area-pick button.kw:hover img, .area-pick button.kw[aria-pressed="true"] img {
  background-image: radial-gradient(closest-side, rgba(255, 60, 60, .95), transparent);
}
.records-box.kw-dark .boards-body { background: rgba(20, 2, 4, .75); }
.pcard.kw-dark { background-color: rgba(18, 2, 4, .96); }
.area-title.kw .area-title-name { color: #B3141C; }

/* Verlauf: Kalender (16 Wochen x 7 Tage) und Zeitleiste */
.act-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 14px; }
.cal-wrap { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cal-days { display: grid; grid-template-rows: repeat(7, 16px); gap: 4px; color: var(--gray); font-size: 14px; line-height: 16px; }
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 16px); grid-auto-columns: 16px; gap: 4px; }
.cal i, .cal-legend i { display: block; width: 16px; height: 16px; background: #262626; box-shadow: inset 0 0 0 var(--px) #000; }
.cal i.before { background: repeating-linear-gradient(45deg, #1A1A1A 0 3px, #222 3px 6px); }
.cal i.future { visibility: hidden; }
.cal i.l1, .cal-legend i.l1 { background: #2B4A20; }
.cal i.l2, .cal-legend i.l2 { background: #3E7A2A; }
.cal i.l3, .cal-legend i.l3 { background: #5BB436; }
.cal i.l4, .cal-legend i.l4 { background: var(--xp); }
.cal i:hover { outline: var(--px) solid #fff; }
.cal-legend { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; color: var(--gray); font-size: 14px; }
.cal-legend i { display: inline-block; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-month { margin: 14px 0 6px; color: var(--gold); }
.tl-month:first-child { margin-top: 0; }
.tl { display: grid; grid-template-columns: 72px 32px minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 0; }
.tl-date { color: var(--gray); text-align: right; font-size: 14px; }
.tl-text { color: #fff; }
.tl-text.fn { color: var(--c); }
.tl-more { margin-top: 12px; }

/* ------------------------------------------------------------------ Seeungeheuer (eigener Abschnitt) */
.monster { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px; }
.monster h3 { margin: 0 0 8px; font-size: 22px; color: #5FE0D0; }
.monster-head { display: flex; gap: 18px; align-items: flex-start; }
.monster-head .slot { --s: 64px; }
.monster-head p { margin: 0; line-height: 1.4; }
.unrest { margin: 24px 0 20px; }
.unrest-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px;
  color: var(--gray); }
.unrest-top b { color: #fff; font-weight: 400; }
#m-fill { filter: hue-rotate(75deg) saturate(.9); }              /* Erfahrungsleiste in Wasserfarbe */
.monster-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.monster-kv div { display: grid; gap: 4px; }
.monster-kv dt { color: var(--gray); }
.monster-kv dd { margin: 0; color: #fff; }
.monster-list { list-style: none; margin: 0; padding: 0; counter-reset: mrank; }
.monster-list li { counter-increment: mrank; }
.monster-list a {
  display: grid; grid-template-columns: 24px 32px 1fr auto; align-items: center; gap: 12px;
  padding: 6px 10px; border: var(--px) solid transparent; color: #fff;
}
.monster-list a::before { content: counter(mrank) "."; color: var(--gray); text-align: right; }
.monster-list li:first-child a::before { color: #FFD25A; }
.monster-list a:hover, .monster-list a:focus-visible { border-color: #fff; background: rgba(0, 0, 0, .6); text-decoration: none; outline: none; }
.monster-list .head { width: 32px; height: 32px; }
.monster-list .mn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monster-list .mv { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.monster-list .mv small { display: block; color: var(--gray); font-size: 14px; }
.monster-list .mv small.fn { color: var(--c); }

/* ------------------------------------------------------------------ Offenes Meer (Seekarte, app.js renderSea) */
.sea h3 { color: #7FD4FF; }
.sea-weather { display: inline-block; margin-top: 6px; padding: 2px 8px; background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .08); color: var(--c, #7CE36A); }
/* Fahrplan wie ein Aushang: Zeit links, Seegebiet rechts, heute hervorgehoben */
.sea-route { display: grid; gap: 4px; list-style: none; margin: 22px 0 0; padding: 0; }
.sea-route li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: 6px 10px; background: rgba(0, 0, 0, .35); }
.sea-route li.today { box-shadow: inset 0 0 0 var(--px) #7FD4FF; }
.sea-route li small { color: var(--gray); font-size: 14px; }
.sea-route li b { color: #fff; font-weight: 400; }
.sea-route li.today b { color: #7FD4FF; }
.sea-route .sea-fish { width: 24px; height: 24px; margin-right: 8px; vertical-align: middle; image-rendering: pixelated; }
#s-fill { filter: hue-rotate(105deg) saturate(.9); }             /* Erfahrungsleiste in Hochseeblau */
.sea .xpbar { overflow: visible; }
.sea-tick { position: absolute; top: -3px; bottom: -3px; width: var(--px, 2px); background: var(--c);
  transform: translateX(-50%); }
.sea-tiers { position: relative; height: 22px; margin-top: 6px; font-size: 14px; }
.sea-tiers span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--gray); }
.sea-tiers span:last-child { transform: translateX(-100%); }
.sea-tiers span.done { color: var(--c); }
.sea .monster-kv div { align-content: start; }                   /* Werte oben, auch wenn ein Titel umbricht */
.sea-special { margin-left: 4px; }
/* Auf hoher See als schmale Leiste (app.js renderSeaStrip, Zin_ 21.11.2026): das Endgame als Ziel - heute, wer draußen
 * ist, wer als Nächstes kommt; die ganze Seekarte im Fenster #seekarte */
.sea-strip {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 16px 28px;
  padding: 18px 24px;
}
.sea-strip-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.sea-strip-main .slot { --s: 64px; }
.sea-strip h3 { margin: 0 0 6px; font-size: 22px; color: #7FD4FF; }
.sea-strip h3 small { margin-left: 8px; font-size: 14px; color: var(--gray); white-space: nowrap; }
.sea-strip p { margin: 0; line-height: 1.4; }
.sea-strip-chronik { margin-top: 8px !important; font-size: 14px; color: var(--gray); cursor: help; }
.sea-strip-anchor { color: #7FD4FF; }
.sea-crew { display: grid; gap: 12px; align-content: center; min-width: 0; }
.sea-crew h4 { margin: 0 0 6px; font-size: 14px; font-weight: 400; color: var(--gray); }
.sea-heads { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sea-heads a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #fff; }
.sea-heads a:hover, .sea-heads a:focus-visible { color: #FFFFA0; text-decoration: none; }
.sea-heads .head { width: 32px; height: 32px; flex: none; }
.sea-heads small { color: var(--gray); font-size: 14px; white-space: nowrap; }
.sea-heads a.out small { color: #7FD4FF; }
.sea-first { margin: 0; }
@media (max-width: 900px) {
  .sea-strip { grid-template-columns: 1fr; padding: 16px; }
  .sea-strip-open { justify-self: start; }
}
@media (max-width: 560px) {
  .sea-strip-main { display: block; }
  .sea-strip-main .slot { --s: 48px; float: left; margin: 0 12px 4px 0; }
  .sea-strip h3 { font-size: 18px; }
}
/* die ganze Seekarte im Fenster: ohne eigenen Rahmen, der Rahmen ist das Fenster */
#seekarte .sea { padding: 22px 0 0; border: 0; background: none; box-shadow: none; }
.sea-route li.special b { color: #BFE8FF; }
.sea-route .sea-tag { color: #BFE8FF; font-size: 14px; }
/* Chronik der See: unter beiden Spalten, eine Kachel je Erstem - offene blass mit "noch offen" */
.sea-chronik-box { grid-column: 1 / -1; }
.sea-chronik { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; list-style: none;
  margin: 10px 0 0; padding: 0; }
.sea-chronik li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 6px 10px; background: rgba(0, 0, 0, .35); }
.sea-chronik li.done { box-shadow: inset 0 0 0 var(--px) rgba(127, 212, 255, .45); }
.sea-chronik li.open { opacity: .55; }
.sea-chronik b { display: block; color: #fff; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sea-chronik li.done b { color: #7FD4FF; }
.sea-chronik small { display: block; color: var(--gray); font-size: 14px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.sea-chronik-img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.sea-anchor { display: grid; place-items: center; color: #7FD4FF; font-size: 20px; }
.profile .tile .num { font-size: 32px; }

/* Tooltip, der der Maus folgt (Fischlexikon, Rekorde, Verläufe) */
.mc-tip {
  position: fixed; z-index: 50; left: 0; top: 0; max-width: 320px; padding: 6px 8px; pointer-events: none;
}
.mc-tip p { margin: 0; color: var(--gray); }
.mc-tip p:first-child { color: #fff; margin-bottom: 4px; }
.mc-tip p.fn { color: var(--c); }
.mc-tip p.gold { color: var(--gold); }

.empty { text-align: center; color: var(--gray); margin: 8px 0; grid-column: 1 / -1; }

/* ------------------------------------------------------------------ Angelclubs (club.js) */
/* Name wie im Spiel: Kürzel grün, Name gold; Club-Level gold */
.club-tag { color: #6ED6A8; }
.club-name, .club-lv { color: #FFD25A; }
.clubs-box .boards-body { padding: 28px 22px 18px; }
.club-board { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 4px; }
.club-row {
  display: grid; grid-template-columns: 40px 48px minmax(0, 1fr) 200px; align-items: center; gap: 14px;
  padding: 8px 12px; border: var(--px) solid transparent; background: rgba(0, 0, 0, .25); color: #fff;
}
.club-row:hover, .club-row:focus-visible { border-color: #fff; background: rgba(0, 0, 0, .6); text-decoration: none; outline: none; }
.cr-place { color: var(--gray); text-align: right; font-variant-numeric: tabular-nums; }
.club-row.top-1 .cr-place { color: #FFD25A; }
.club-row.top-2 .cr-place { color: #E0E0E0; }
.club-row.top-3 .cr-place { color: #E8A16A; }
.cr-crest { width: 48px; height: 48px; }
.cr-who { display: grid; gap: 2px; min-width: 0; }
.cr-who .club-label, .cr-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sub { color: var(--gray); font-size: 14px; }
.cr-val { display: grid; gap: 4px; text-align: right; }
.cr-val b { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }
.cr-val small { color: var(--gray); font-size: 14px; }
.cr-today { color: var(--green) !important; }
.clubs-note { margin: 16px 0 0; text-align: center; font-size: 14px; }

/* Club-Seite: Kopf wie das Spielerprofil, Wappen statt Kopf, Club-Level in Gold */
.crest-wrap .c-crest-img { display: block; width: 112px; height: 112px; }
.crest-wrap.on::after { content: attr(data-online); white-space: nowrap; }
.club-level .level-num { color: #FFD25A; }
.club-level .xpbar i { filter: hue-rotate(-55deg) saturate(1.4); }
.c-fest { margin: 0 0 12px; color: var(--gold); width: fit-content; cursor: help; }
.p-club { margin: 4px 0 2px; }
.p-club-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.p-club-link:hover, .p-club-link:focus-visible { text-decoration: none; }
.p-club-link:hover .club-name, .p-club-link:focus-visible .club-name { color: #FFFFA0; }
.p-club-ico { width: 24px; height: 24px; }
.p-club-amt { font-size: 14px; }

/* Mitglieder: Kopf, Name mit Amt, Level, Club-XP (heute), zuletzt da */
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cm-row {
  display: grid; grid-template-columns: 32px minmax(0, 1.6fr) minmax(0, .6fr) minmax(0, 1fr) minmax(0, .8fr);
  align-items: center; gap: 12px; padding: 5px 8px; border: var(--px) solid transparent; color: #fff;
}
a.cm-row:hover, a.cm-row:focus-visible { border-color: #fff; background: rgba(0, 0, 0, .6); text-decoration: none; outline: none; }
.cm-head { padding-block: 0 4px; color: var(--gray); font-size: 14px; }
.cm-row .head { width: 32px; height: 32px; }
.cm-who, .cm-xp { display: grid; min-width: 0; }
.cm-name, .cm-amt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-amt, .cm-xp small { font-size: 14px; }
.cm-lv, .cm-xp { font-variant-numeric: tabular-nums; }
.cm-when { color: var(--gray); font-size: 14px; text-align: right; }
.cm-on { color: var(--green); }

/* Diese Woche: Säulen je Tag, darunter die Tage */
.club-spark { max-width: none; height: 96px; margin-top: 4px; }
.club-spark-days { max-width: none; gap: 4px; margin: 6px 0 10px; font-size: 14px; }
.club-spark-days span { flex: 1; text-align: center; }

/* Spezialisierung: Vorteile wie die Fähigkeiten der Begleiter */
.club-pic { background: radial-gradient(closest-side, rgba(110, 214, 168, .3), transparent); }
.club-perks { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; }
.club-perks .on { color: #E2B98A; }
.club-perks .off { color: #6A6A6A; }

/* Upgrades: Symbol aus dem Club-Menü, grau ohne Level; ausgebaute mit goldenem Rand */
.club-ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; }
.club-up {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px;
  background: rgba(0, 0, 0, .35); border-left: calc(2 * var(--px)) solid #444;
  box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .06);
}
.club-up:hover { box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .5); }
.club-up.bought { border-left-color: #FFD25A; }
.club-up img { width: 48px; height: 48px; }
.club-up-text { display: grid; min-width: 0; }
.club-up-text small { font-size: 14px; }
.club-up.locked .club-up-name { color: var(--gray); }
.club-up-stage { color: #FFD25A; }
.club-up-dots { color: #555; font-size: 14px; }
.club-up-dots .on { color: #FFD25A; }

/* Upgrades als Skillbaum wie die Tafel im Spiel: Stamm oben, drei Zweige (Kernrichtung golden umrandet). Rahmen:
   gebaut gold, offen hell, gesperrt dunkel; Stufen-Punkte und Linien zu Gebautem in der Farbe des Zweigs */
.ct-label { margin: 0 0 8px; font-size: 14px; }
.ct-stamm { margin-bottom: 18px; }
.ct-stamm .ct-pips { margin-top: 4px; }
.ct-stamm .ct-pips i.on { background: #9FC0DA; }
.ct-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-branch { padding: 10px 8px 12px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 var(--px) rgba(255, 255, 255, .08); }
.ct-branch.core {
  background: linear-gradient(color-mix(in srgb, var(--spec) 10%, transparent), rgba(0, 0, 0, .35) 90px);
  box-shadow: inset 0 0 0 var(--px) #E8B51F;
}
.ct-head { display: grid; justify-items: center; text-align: center; margin-bottom: 16px; }
.ct-head b { font-weight: 400; }
.ct-head small { font-size: 14px; }
.ct-head .ct-core { color: #E8B51F; }
.ct-tree { position: relative; height: 330px; max-width: 220px; margin: 0 auto; }
.ct-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ct-lines path { fill: none; stroke-width: 4; stroke-linecap: square; }
.ct-lines .off { stroke: #40484C; }
.ct-lines .open { stroke: #969FA6; }
.ct-lines .bought { stroke: var(--spec); }
.ct-crest { position: absolute; left: 50%; width: 40px; height: 40px; transform: translateX(-50%); }
.ct-spot {
  --frame: #AAB0B4; position: absolute; display: grid; justify-items: center; gap: 4px; transform: translateX(-50%);
  outline: none;
}
.ct-spot.bought { --frame: #E8B51F; }
.ct-spot.locked { --frame: #404040; }
.ct-node { display: block; width: 52px; height: 52px; border: var(--px) solid var(--frame); background: #0E1416; }
.ct-node img { display: block; width: 48px; height: 48px; }
.ct-spot.crown .ct-node { outline: var(--px) solid var(--frame); outline-offset: var(--px); }
.ct-spot:hover .ct-node, .ct-spot:focus-visible .ct-node { box-shadow: 0 0 0 var(--px) #fff; }
.ct-pips { display: flex; gap: 2px; height: 4px; }
.ct-pips i { width: 8px; height: 4px; background: #505A5E; }
.ct-pips i.on { background: var(--spec, #9FC0DA); }
@container (max-width: 600px) {
  .ct-branches { grid-template-columns: minmax(0, 1fr); }
}
.mc-tip p.ok { color: var(--green); }
.mc-tip p.hi { color: #fff; }
.mc-tip p.dim { color: #6F7C82; }

.club-rules { display: grid; gap: 6px; margin: 0; padding-left: 28px; color: #fff; }
.club-rules li::marker { color: var(--gold); }

/* ------------------------------------------------------------------ Rechtliches (datenschutz.html) */
.legal { max-width: 900px; margin: 28px auto 0; padding: 28px 36px 20px; }
.legal h1 { margin: 0 0 16px; font-size: 32px; font-weight: 700; }
.legal p { margin: 0 0 12px; color: #E0E0E0; }
.legal b { color: var(--yellow); }
.legal .hint { padding: 10px 14px; border-left: calc(2 * var(--px)) solid var(--yellow); background: rgba(255, 255, 85, .06); }

/* ------------------------------------------------------------------ Fuß, Toast */
.foot { margin-top: 48px; padding: 22px 0 40px; color: var(--gray); text-align: center; position: relative; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(2 * var(--px)); background: url("img/mc/trenner.png") 0 0 / 64px 100% repeat-x; }
.foot p { margin: 4px 0; }
.foot a { color: #fff; }

/* Fortschritts-Toast oben rechts (160 x 32 Pixel) */
.toast {
  position: fixed; right: 16px; top: 16px; z-index: 60; width: 320px; height: 64px;
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-content: center; gap: 2px 12px;
  padding: 0 14px 0 16px; background: url("img/mc/toast.png") 0 0 / 100% 100%;
  transform: translateX(calc(100% + 24px)); transition: transform .35s ease; pointer-events: none;
}
.toast img { grid-row: span 2; width: 32px; height: 32px; }
.toast b { color: #FFFF00; font-weight: 400; line-height: 1.25; }
.toast span { color: #fff; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: none; }

/* ------------------------------------------------------------------ Schmale Bildschirme */
/* Kopfzeile (alle Links + Adresse: 1140px von 1200): die Links weichen nach und nach, damit nichts übersteht -
   zuerst die Sprungmarken (Diese Woche, Rekorde, Bestenlisten, Clubs), Discord zuletzt (data-weg in index.html); ab 820
   zweizeilig. Mit dem Link "Clubs" (nur, wenn es Clubs gibt) passt nicht alles: dann weicht jede Stufe früher. */
@media (max-width: 1240px) {
  .nav-links [data-weg="1"] { display: none; }
}
@media (max-width: 1100px) {
  .nav-links [data-weg="2"] { display: none; }
  .search { grid-template-columns: auto 1fr; }
  .search-form { grid-column: 1 / -1; }
  .profile-head { grid-template-columns: auto 1fr; }
  .level { grid-column: 1 / -1; justify-self: center; }
  .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles-5 { grid-template-columns: repeat(2, 1fr); }
  .tiles-5 .tile:last-child { grid-column: 1 / -1; }
  .p-highlights { grid-template-columns: repeat(3, 1fr); }
  .profile-head .level { grid-row: auto; }
  .p-actions { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 990px) {
  .nav-links [data-weg="3"] { display: none; }
}
@media (max-width: 900px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-links [data-weg="4"], .nav-links [data-weg="5"] { display: none; }
}
.nav-links:has(.nav-clubs:not([hidden])) [data-weg="1"] { display: none; }
@media (max-width: 1240px) {
  .nav-links:has(.nav-clubs:not([hidden])) [data-weg="2"] { display: none; }
}
@media (max-width: 1100px) {
  .nav-links:has(.nav-clubs:not([hidden])) [data-weg="3"] { display: none; }
}
@media (max-width: 990px) {
  .nav-links:has(.nav-clubs:not([hidden])) [data-weg="4"] { display: none; }
}
@media (max-width: 820px) {
  .top { flex-wrap: wrap; position: static; }
  .nav { flex: 1 1 100%; }
  .nav-links { margin-left: auto; }
  .nav-links li:not(:last-child) { display: none; }
  .ip-pill { flex: 1 1 100%; justify-content: space-between; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 250px; }
  .scene { height: 290px; inset: 0 0 auto 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 18, 31, 0) 0, rgba(8, 18, 31, 0) 200px, rgba(8, 18, 31, .95) 290px); }
  .hero h1 { font-size: 32px; }
  .tiles-3 { grid-template-columns: 1fr 1fr; }
  .tiles-3 .tile:first-child { grid-column: 1 / -1; }
  .tiles-6 { grid-template-columns: 1fr 1fr; }
  .monster { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px; }
  .more .tiles-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tiles-big .num, .num { font-size: 24px; }
  .podium { grid-template-columns: 96px 128px 96px; gap: 8px; }
  .search { grid-template-columns: 1fr; text-align: center; }
  .search-art { justify-self: center; width: 64px; height: 64px; }
  .search-art img { width: 64px; height: 64px; }
  .search-form { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .badges { justify-content: center; }
  .level { width: 100%; }
  .tile { padding: 18px 8px 16px; }
  .divider { font-size: 16px; gap: 12px; }
  .ip-suffix { display: none; }
  .tabs button { padding: 0 10px; }
  .p-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .p-tabs button { flex: none; height: 40px; padding: 0 10px; }
  .profile-id h2 { font-size: 24px; }
  .p-body { padding: 20px 10px 16px; }
  /* Kacheln als schmale Zeilen: Bild, Wert und Bezeichnung, Platz rechts */
  .p-highlights { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 20px; }
  .p-highlights .tile {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto;
    align-items: center; gap: 0 12px; padding: 8px 12px; text-align: left;
  }
  .p-highlights .tile .slot { --s: 40px; margin: 0; grid-row: span 2; }
  .profile .p-highlights .tile .num { font-size: 16px; }
  .p-highlights .lbl { grid-column: 2; }
  .p-highlights .rank-chip { grid-column: 3; grid-row: 1 / span 2; }
  /* Kacheln im Fischlexikon & Co.: zwei Spalten, Bild über dem Text */
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Gebiete: schmalere Felder, so viele je Reihe, wie passen (auf dem Handy meist vier) */
  .area-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .area-pick button { width: auto; padding: 6px 4px 8px; }
  .crea.sm { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 10px 6px; }
  .crea.sm .crea-pic { width: 40px; height: 40px; }
  .crea.sm .crea-pic img { width: 40px; height: 40px; }
  .crea.sm .crea-text small, .crea.sm .crea-rarity { font-size: 14px; }
  .mini { padding: 8px 4px; }
  .mini b, .mini span { font-size: 14px; }
  .pcard { padding: 14px 12px; }
  .act-stats { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: 56px 32px minmax(0, 1fr); gap: 8px; }
  .board button { gap: 10px; padding: 6px 4px; }
  .clubs-box .boards-body { padding: 20px 8px 14px; }
  .club-row { grid-template-columns: 24px 36px minmax(0, 1fr) 96px; gap: 8px; padding: 6px; }
  .cr-crest { width: 36px; height: 36px; }
  .cm-row { grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; padding-inline: 4px; }
  .cm-when { display: none; }
  .club-spark { height: 72px; }
  /* Rekorde: alle Gebietssymbole in einer Reihe, zwei Spalten, Bild über dem Text */
  .records-box .tabs button { padding: 0 6px; }
  .records-box .boards-body { padding: 16px 10px; }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rec { flex-direction: column; gap: 2px; padding: 6px; text-align: center; }
  .rec > div { width: 100%; }
  .rec .slot { --s: 36px; }
  .rec .kg { font-size: 16px; }
  .rarity-list li { grid-template-columns: 16px 1fr auto; gap: 10px; }
  .rarity-list .cnt { display: none; }
  .toast { left: 16px; right: auto; width: min(320px, 100% - 32px); }
  .legal { padding: 20px 16px 12px; }
  .legal h1 { font-size: 24px; }
  /* Fenster fuellt auf dem Handy den Bildschirm */
  .more { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; }
  .more-head { padding: 10px 12px; }
  .more-head h2 { font-size: 16px; }
  .more-body { padding: 0 10px 20px; }
  .more .num { font-size: 16px; }
}

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