@font-face { font-family: "Jersey 10"; src: url("assets/Jersey10.woff2") format("woff2"); font-display: swap; }
:root { --read: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --title: "Jersey 10", system-ui, sans-serif; --wood: #6e3f1c; --wood-dark: #3a2210; --ground: #241307; --ink: #2b1a0e; --gold: #ffd43a; --parch: #fff1c2; --text: #fff6dc; --muted: #eed9a8; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--text); font-family: var(--read); font-weight: 500; font-size: 17px; line-height: 1.35; }
/* Readable text everywhere (15.11.2026): plain sans face; Jersey 10 only for the gold titles. */
.logo, .shelf-head h2, .tile .name, .world h3, .doc h1, .doc h2, .chronik h2, .chronik h3, .chronik .tot b { font-family: var(--title); font-weight: 400; }
a { color: var(--gold); } a:hover { color: var(--parch); }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-direction: column; gap: 16px; flex: 1 0 auto; }
.ink { text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 3px 4px 0 var(--ink); }
header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.logo { margin: 0; font-weight: 400; font-size: 72px; line-height: .9; letter-spacing: 2px; color: var(--gold); text-decoration: none;
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 5px 7px 0 var(--ink); }
.sub { font-size: 22px; font-weight: 600; color: var(--parch); letter-spacing: 1px; }
.tag { font-size: 15px; color: var(--muted); }
.lang { display: flex; gap: 8px; }
.lang button { font: inherit; font-size: 16px; font-weight: 700; min-width: 52px; min-height: 44px; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 10px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); background: #ead6a4; color: #5a4120; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.panel { background: var(--wood); border: 12px solid transparent; border-image: url("assets/panel.png") 36 fill / 36px round; border-radius: 14px; }
/* One list of all games, most played first, every tile the same size (19.11.2026). */
.shelves { display: flex; flex-direction: column; gap: 28px; }
.shelf { display: flex; flex-direction: column; gap: 12px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.shelf-head h2 { margin: 0; font-weight: 400; font-size: 44px; line-height: 1; color: var(--gold); }
.shelf-head p { margin: 0; color: var(--parch); font-size: 16px; }
.tile .txt { color: #fffaea; text-shadow: 0 1px 0 rgba(0,0,0,.55); }
.live { font-size: 15px; font-weight: 600; color: #9fd36a; align-self: center; }
.live[hidden] { display: none; }
.series { font-size: 15px; color: var(--muted); }
.genre { font-size: 14px; font-weight: 600; color: var(--ink); background: #ead6a4; border: 2px solid #5a4120; border-radius: 8px; padding: 0 8px; }
.players { color: var(--parch); font-size: 15px; font-weight: 600; text-shadow: 0 1px 0 rgba(0,0,0,.55); }
/* Tiles: picture, name, kind, a short text and who plays; the whole tile is the link. Equal rows, so all tiles share one size. */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
@media (max-width: 1200px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 3px 3px 14px; text-decoration: none; color: var(--text); box-shadow: 0 6px 0 rgba(0,0,0,.3); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--gold), 0 10px 0 rgba(0,0,0,.35); color: var(--text); }
.tile > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); border-radius: 10px; display: block; background: var(--wood-dark); }
.tile .name { font-size: 28px; line-height: 1; color: var(--gold); padding: 0 4px; overflow-wrap: anywhere; hyphens: auto; }
.tile .genre { align-self: flex-start; font-size: 13px; line-height: 1.4; margin: 0 6px; }
.tile .txt { font-size: 16px; line-height: 1.4; padding: 0 8px; flex-grow: 1; }
.tile .players, .tile .now { font-size: 14px; line-height: 1.3; padding: 0 8px; }
@media (max-width: 760px) {
  .shelf-head h2 { font-size: 38px; }
  .tile .name { font-size: 24px; }
  .tile .genre { font-size: 13px; }
  .tile .txt { font-size: 15px; line-height: 1.4; }
  .tile .players, .tile .now { font-size: 13px; }
}
/* Live counter (live.js): visitors and players right now. */
.now { font-size: 15px; font-weight: 600; color: #9fd36a; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #7bc043; box-shadow: 0 0 0 2px var(--ink); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .45; } }
.now[hidden] { display: none; }
.btn { display: block; text-align: center; text-decoration: none; margin-top: 4px; padding: 9px 14px; font-size: 19px; font-weight: 700; color: var(--ink); background: linear-gradient(#ffb64a, #ec8c22); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.45); transition: transform .1s ease, filter .1s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.world { padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--wood-dark); }
.faces { display: flex; gap: 6px; flex-wrap: wrap; }
.faces img { width: 56px; height: 56px; image-rendering: pixelated; border: 3px solid var(--ink); border-radius: 10px; background: #2a1a10; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
@media (min-width: 572px) { .world { flex-direction: row; align-items: center; gap: 20px; } .faces { flex-wrap: nowrap; } }
.world .txt { display: flex; flex-direction: column; gap: 4px; }
.world h3 { margin: 0; font-weight: 400; font-size: 30px; color: var(--gold); }
.world p { margin: 0; }
.meadow { position: relative; width: 100%; height: 200px; margin-top: 16px; overflow: hidden; border-top: 3px solid var(--ink); background: #4f8a2a; }
.meadow .scene { position: absolute; left: 0; top: 0; display: block; image-rendering: pixelated; }
.puddle, .chest, .sign { position: absolute; }
.puddle { left: 38%; top: 100px; width: 168px; height: 68px; border-radius: 50%; }
.meadow:not(.live) .puddle { background: #5b7fa6; box-shadow: inset 0 -6px 0 #3e5f86, 0 0 0 3px var(--ink); }
.sign { cursor: help; }
footer { width: 100%; background: var(--wood-dark); border-top: 3px solid var(--ink); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
footer span { color: var(--muted); }
/* Tap targets of at least 44px (footer, small text links). */
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.doc { padding: 20px 24px; max-width: 900px; }
.doc h1 { margin: 0 0 12px; font-weight: 400; font-size: clamp(34px, 10vw, 48px); color: var(--gold); overflow-wrap: anywhere; hyphens: auto; }
.doc h2 { margin: 18px 0 6px; font-weight: 400; font-size: clamp(24px, 7.5vw, 30px); color: var(--gold); overflow-wrap: anywhere; hyphens: auto; }
.doc p, .doc li { font-size: 17px; line-height: 1.5; }
.doc .todo { background: #8a1c12; color: #fff; padding: 2px 6px; border-radius: 6px; }
[data-lang="en"] .de, [data-lang="de"] .en { display: none; }
/* Chronicle easter egg (chronik.js). */
.puddle { cursor: default; }
.puddle.splash { animation: splash .25s ease-out; }
@keyframes splash { 50% { transform: scale(1.06, .9); } }
.chronik { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 12px 22px; color: var(--text); }
.chronik::backdrop { background: rgba(20,10,4,.7); }
.chronik h2 { margin: 0 0 6px; font-weight: 400; font-size: 40px; color: var(--gold); text-align: center; }
.chronik h3 { margin: 14px 0 6px; font-weight: 400; font-size: 28px; color: var(--gold); }
.chronik .x { position: absolute; top: 10px; right: 12px; font: inherit; font-size: 18px; font-weight: 700; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 10px; background: #ead6a4; color: #5a4120; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.chronik .tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.chronik .tot div, .chronik .g { background: var(--wood-dark); border: 3px solid var(--ink); border-radius: 10px; padding: 8px; }
.chronik .tot b { display: block; font-size: 38px; font-weight: 400; color: var(--gold); }
.chronik .games3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.chronik .g h3 { margin: 0 0 4px; font-size: 26px; }
.chronik .g p { margin: 0; color: var(--muted); }
.chronik .note { text-align: center; color: var(--muted); }
.chronik .top { margin-top: 10px; background: var(--wood-dark); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 12px 8px; }
.chronik .top h3 { margin: 0 0 4px; font-size: 24px; }
.chronik .top table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.chronik .top td { padding: 0 6px; white-space: nowrap; }
.chronik .top td:first-child { width: 2.2em; text-align: right; }
.chronik .top td:nth-child(2) { width: 36%; color: var(--gold); }
.chronik .top td:nth-child(3) { text-align: right; }
.chronik .top td:last-child { color: var(--muted); }
.chronik .fine { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin: 8px 0 0; font-size: 14px; }
@media (max-width: 400px) { .logo { font-size: 70px; } }
/* Smallest phones (320-360 px): two tile columns still fit without the logo or text running out. */
@media (max-width: 360px) { .logo { font-size: 60px; } .tiles { gap: 8px; } .tile .name { font-size: 22px; } .tile .txt { font-size: 14px; } }
@media (max-width: 560px) { .faces { gap: 6px; } .faces img { width: 44px; height: 44px; } }
@media (max-width: 560px) { .chronik .tot { grid-template-columns: 1fr; } }


/* Offline play (20.11.2026, offline.js): saved games get a mark; without a network the others fade. */
.tile { position: relative; }
.off-badge { position: absolute; top: 10px; left: 10px; font-size: 13px; line-height: 1; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #9be07a; color: var(--ink); font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.35); white-space: nowrap; }
.off-badge.off-no { background: var(--wood-dark); color: #fffaea; }
.is-offline .tile:not(.off-saved) { opacity: .5; filter: grayscale(.6); }
.is-offline .tile:not(.off-saved) > img { filter: grayscale(.4); }
.is-offline .tile.off-saved { order: -1; }
