:root {
  color-scheme: light;
  --ink: #173540;
  --navy: #12323d;
  --muted: #53696b;
  --paper: #faf8f1;
  --line: #dedbcf;
  --red: #e4003a;
  --gold: #f0bd73;
  --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
body.playing { padding-bottom: 6.1rem; }
body:has(dialog[open]) { overflow: hidden; }
button, input, audio { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; vertical-align: middle; flex: none; }
:focus-visible { outline: 3px solid #087f85; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; inset: 0 auto auto 0; padding: .8rem; background: white; z-index: 99; }
.topbar { position: relative; z-index: 5; background: white; border: 1px solid #e4003a36; border-top: 0; border-radius: 0 0 15px 15px; box-shadow: 0 2px 8px #272d3d09; }
.nav-inner, main, .footer { width: min(1240px, calc(100% - clamp(2rem, 7vw, 7rem))); margin-inline: auto; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1.8rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { display: block; width: auto; height: 38px; }
.brand-name { padding-left: .9rem; border-left: 1px solid #d9dfe1; color: #374756; font-weight: 740; font-size: .84rem; letter-spacing: -.02em; line-height: 1.12; }
#navigation { display: flex; gap: clamp(.9rem, 3vw, 2.8rem); min-height: 4rem; }
#navigation a { display: flex; align-items: center; gap: .5rem; border-bottom: 2px solid transparent; padding: .15rem .12rem 0; font-size: .93rem; font-weight: 600; color: #495866; text-decoration: none; }
#navigation a:is(:hover,[aria-current="page"]) { color: var(--red); }
#navigation a[aria-current="page"] { border-color: var(--red); }
#navigation svg { width: 1.05rem; height: 1.05rem; }
.menu-button { display: none; }
main { padding-top: clamp(1.2rem, 2.5vw, 2.25rem); min-height: 66vh; }
main:focus { outline: none; }
h1,h2,h3,p { margin: 0; }
.poster { isolation: isolate; position: relative; overflow: hidden; border-radius: 9px; background: #112f3a; color: #fff6e5; }
.hero { display: flex; align-items: center; min-height: clamp(240px, 23.5vw, 328px); padding: clamp(1.7rem, 4vw, 3.35rem); }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 13%; background: url("/assets/winterhafen.webp") center 56% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#102e39 1%,#102e39fa 26%,#102e39d9 39%,#102e3982 50%,#102e3900 69%); }
.hero-text { max-width: 36rem; }
.dateline { display: flex; align-items: center; gap: .7rem; margin-bottom: .71rem; color: #ffd397; font-size: .76rem; font-weight: 720; letter-spacing: .15em; text-transform: uppercase; }
.dateline::before { content: ""; width: 1.7rem; height: 1px; background: currentColor; }
h1,h2,.ep-track-number,.rank-place { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3.35rem, 6.45vw, 6.15rem); line-height: 1.02; letter-spacing: -.069em; }
.hero-text p { max-width: 31rem; margin-top: .9rem; color: #f5ede0; font-size: clamp(.99rem, 1.4vw, 1.09rem); line-height: 1.55; text-wrap: pretty; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .9rem 1.5rem; margin: clamp(1.45rem, 2.7vw, 2.2rem) 0 .87rem; }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.055em; }
.summary { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; line-height: 1.5; font-weight: 560; }
.progress-track { width: 60px; height: 5px; border-radius: 5px; background: #dfded1; overflow: hidden; }
.progress-track i { display: block; width: var(--done,0%); height: 100%; background: #357166; }
.calendar-board { position: relative; isolation: isolate; border: 5px solid #153a43; border-radius: 9px; overflow: hidden; background: #1b4450 url("/assets/winterhafen.webp") center 63% / cover; box-shadow: 0 3px 7px #18334015; }
.calendar-board::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(130deg,#12353cbc,#18374066 50%,#1837408f); }
.grid { padding: clamp(.7rem, 1.45vw, 1.25rem); display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.5rem, 1.1vw, 1rem); }
.door { --panel: #234d57b3; --ornament: #e3bd83; border: 0; padding: 0; background: transparent; border-radius: 3px; position: relative; isolation: isolate; color: #fff1d6; aspect-ratio: 1.53; min-width: 0; perspective: 600px; text-align: left; box-shadow: 0 2px 4px #0c202d60; }
.door:nth-child(6n+2),.door:nth-child(6n+6) { --panel: #663b3ab5; --ornament: #f5c88e; }
.door:nth-child(6n+3),.door:nth-child(6n+5) { --panel: #244e43ad; }
.door:nth-child(10n) { --panel: #543849b0; }
.door:focus-visible { outline-color: #ffde8c; z-index: 2; }
.door > span { display: block; position: absolute; inset: 0; border-radius: inherit; }
.door .inside { overflow: hidden; background: #0c2530; display: grid; place-content: center; }
.door:not(.opened) .inside { visibility: hidden; }
.door .inside:has(img) { background: #193940; }
.door .inside img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.door .front { z-index: 1; background-color: var(--panel); border: 1px solid #f8dea557; transition: transform .5s cubic-bezier(.2,.65,.24,1), filter .18s; transform-origin: 0 50%; backface-visibility: hidden; }
.door .front::before { content: ""; position: absolute; inset: 5px; border: 1px dashed #ffdfab86; border-radius: 1px; }
.door .front::after { content: ""; position: absolute; width: 8px; height: 18px; right: -1px; top: calc(50% - 9px); border: 1px solid #f5d5a985; border-right: 0; border-radius: 11px 0 0 11px; background: #17353c60; }
.door .panel-num { position: absolute; font: italic 500 clamp(2.55rem, 4.5vw, 4.5rem)/.86 var(--serif); left: 13%; bottom: 17%; letter-spacing: -.085em; text-shadow: 1px 2px 0 #14293280; }
.door .status-icon { position: absolute; top: 13%; right: 10%; color: #f5dfb8; width: clamp(.68rem, 1vw, .86rem); height: auto; opacity: .87; }
.door .ornament { position: absolute; right: 11%; bottom: 14%; width: clamp(1.1rem, 2.2vw, 2.1rem); height: auto; color: var(--ornament); opacity: .8; stroke-width: 1.1; transform: rotate(-7deg); }
.door:hover .front { filter: brightness(1.12); }
.door.available .front { border: 2px solid #f3c573; background-color: #266456db; }
.door.available .status-icon { color: #ffe293; opacity: 1; }
.door.available:hover:not(.opened) .front { transform: rotateY(-13deg); }
.door.opened .front { transform: rotateY(-104deg); pointer-events: none; }
.open-number { position: absolute; bottom: 5px; left: 5px; z-index: 1; border-radius: 3px; padding: .14rem .35rem; background: #132d38; color: white; font-size: .78rem; font-weight: 700; }
.board-note { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); margin-top: .9rem; font-size: .91rem; line-height: 1.5; min-height: 1.5rem; }
.board-note svg { width: 1rem; height: 1rem; }
.door-toast { position: fixed; z-index: 7; bottom: 1rem; left: 50%; width: max-content; max-width: calc(100% - 2rem); transform: translateX(-50%); color: #fff8eb; background: #183c43; border: 1px solid #779088; border-radius: 6px; box-shadow: 0 3px 14px #10293233; padding: .68rem .9rem; font-size: .89rem; text-align: center; pointer-events: none; }
.playing .door-toast { bottom: 6rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1.2rem 0 1.7rem; margin-top: clamp(1.8rem,4vw,3.5rem); color: var(--muted); font-size: .84rem; }
.footer span:first-child { font-weight: 650; }
.status-box,.empty { border: 1px solid var(--line); border-radius: 7px; padding: clamp(1.3rem,3vw,2.3rem); color: var(--muted); line-height: 1.55; }
.empty { display: flex; align-items: center; gap: 1.1rem; background: #f3f1e8; }
.empty > svg { color: #40695f; width: 2rem; height: 2rem; }
.empty strong { display: block; color: var(--ink); font-size: 1.07rem; }
.status-box button,.quiet-button { background: white; border: 1px solid #9fadaa; border-radius: 5px; padding: .45rem .8rem; font-weight: 600; }
.status-box button { margin-top: .6rem; }
.subhead { padding: clamp(1.8rem,4vw,3.2rem); }
.subhead p { max-width: 37rem; margin-top: .8rem; line-height: 1.55; }
.subhead .dateline { margin-bottom: .6rem; }
.subhead h1 { font-size: clamp(2.8rem,6.2vw,5.6rem); }
.ep-head { display: grid; grid-template-columns: minmax(130px,225px) 1fr; align-items: center; gap: clamp(1.1rem,4vw,3.7rem); background: linear-gradient(110deg,#10323b,#203c4c 75%,#3a3347); }
.ep-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 4px 5px 16px #071c285c; }
.rank-table { width: 100%; border-collapse: collapse; text-align: left; }
.rank-table th { font-size: .85rem; color: var(--muted); font-weight: 620; }
.rank-table :is(th,td) { padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.rank-table :is(th,td):first-child { padding-left: 0; }
.rank-place { font-size: 1.6rem; }
.rank-title { display: flex; align-items: center; gap: .75rem; }
.rank-title img { width: 42px; height: 42px; border-radius: 3px; }
.rank-title strong,.rank-title small,.player-info span,.player-info small { display: block; }
.rank-title small,.ep-track-number,.player-info small { color: var(--muted); }
.rank-score { white-space: nowrap; font-weight: 680; }
.rank-score svg { color: #a46913; fill: #c78c2c; stroke: #895912; width: 1rem; height: 1rem; }
.ep-tracks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ep-tracks li { border-bottom: 1px solid var(--line); }
.ep-track { width: 100%; display: flex; align-items: center; gap: 1rem; padding: .8rem .6rem; text-align: left; border: 0; background: transparent; }
.ep-track:hover { background: #eaece3; }
.ep-track-number { width: 2rem; font-size: 1.3rem; }
.ep-track .round-play { margin-left: auto; }
.platforms { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.platform { text-decoration: none; border: 1px solid var(--line); background: #fffdf8; border-radius: 7px; padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.platform small { color: var(--muted); }
.platform[href]:hover { border-color: #49706c; }
.platform img { width: min(110px,100%); aspect-ratio: 1; background: white; }
.platform span { display: flex; gap: .4rem; align-items: center; font-weight: 650; }
.platform svg { width: .85em; }
dialog { width: min(560px, calc(100% - 1.6rem)); border: 1px solid #c8cfc5; border-radius: 12px; background: var(--paper); padding: 0; color: var(--ink); overflow-y: auto; max-height: 90vh; max-height: 90dvh; overscroll-behavior: contain; box-shadow: 0 16px 70px #0b243d5c; }
dialog::backdrop { background: #0a222bd9; }
.dialog-heading { display: flex; align-items: center; gap: clamp(.9rem,3vw,1.5rem); min-height: 137px; position: relative; color: #fff3df; background: #153640; padding: clamp(1.1rem,3vw,1.55rem); padding-right: 3.2rem; }
.dialog-heading img { width: clamp(66px, 17vw, 96px); border-radius: 3px; }
.dialog-heading h2 { font-size: clamp(1.9rem,5.4vw,2.65rem); }
.dialog-heading .dateline { font-size: .72rem; margin-bottom: .42rem; }
.dialog-heading .dateline::before { display: none; }
.icon-button,.menu-button { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid #a8b9b3; border-radius: 6px; }
.icon-button:hover { background: #547b6a16; }
.dialog-heading .icon-button { position: absolute; right: .7rem; top: .7rem; color: #fdf2e0; border-color: #829a99; }
.dialog-variants { padding: .3rem clamp(1.1rem,3vw,1.55rem) 1.1rem; }
.variant { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.variant:last-of-type { border-bottom: 0; }
.track-button { border: 0; background: transparent; text-align: left; padding: 0; display: flex; align-items: center; gap: .65rem; }
.track-button small { color: var(--muted); display: block; font-size: .8rem; }
.round-play { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; background: var(--navy); color: white; border-radius: 50%; }
.track-button:disabled .round-play { background: #d8dfd8; color: #5e716b; }
.track-button:not(:disabled):hover .round-play,.ep-track:hover .round-play { background: #2c675b; }
.rating { text-align: right; }
.stars { display: flex; }
.stars button { display: grid; place-items: center; background: transparent; border: 0; padding: .2rem; width: clamp(25px,6.7vw,35px); height: 34px; color: #7e8279; }
.stars button svg { width: 1.32rem; height: 1.32rem; }
.stars button.picked svg,.stars:has(button:enabled:hover) button:has(~ button:hover) svg,.stars button:enabled:hover svg { fill: #eaae49; color: #996117; }
.rating small { font-size: .78rem; color: var(--muted); }
.dialog-notice { font-size: .86rem; color: var(--muted); line-height: 1.5; }
#player { display: flex; gap: .9rem; align-items: center; color: var(--ink); background: #fffcf5; padding: .65rem 1rem; }
#player-home > #player { position: fixed; bottom: max(.65rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(750px,calc(100% - 1.5rem)); z-index: 6; border: 1px solid #bec8bf; border-radius: 9px; box-shadow: 0 3px 35px #11333833; }
#dialog-player > #player { border-top: 1px solid var(--line); flex-wrap: wrap; }
#ep-player > #player { border: 1px solid var(--line); border-radius: 7px; margin-bottom: .8rem; }
#ep-player #player audio { width: min(58%,510px); }
#dialog-player audio { flex-basis: 100%; order: 3; width: 100%; }
.player-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; }
.player-info img { border-radius: 4px; object-fit: cover; }
.player-info div { min-width: 0; }
.player-info span { font-weight: 650; font-size: .91rem; }
.player-info small { font-size: .78rem; }
#player audio { display: block; min-width: 0; width: min(40%,295px); height: 36px; }
#player .icon-button { width: 2.4rem; height: 2.4rem; }
#player-error { color: #8f2841; font-size: .84rem; }
.menu-button { display: none; }
@media(max-width:820px) {
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .door .panel-num { font-size: clamp(2.55rem,6.8vw,4.35rem); }
  .door .ornament { width: clamp(1.3rem,3.1vw,2rem); }
  .hero::after { background: linear-gradient(90deg,#102e39fc 0%,#102e39ed 28%,#102e3992 57%,#102e3922 83%); }
  .platforms { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .nav-inner,main,.footer { width: calc(100% - 1.6rem); }
  .nav-inner { flex-wrap: wrap; gap: 0; min-height: 3.9rem; }
  .brand img { height: 33px; }
  .brand-name { font-size: .77rem; }
  .menu-button { display: grid; width: 2.5rem; height: 2.5rem; border-color: #e4003a55; }
  #navigation { display: none; width: 100%; }
  #navigation.open { display: grid; min-height: 0; gap: .15rem; padding: .4rem 0 .65rem; border-top: 1px solid #f0dce1; }
  #navigation a { border: 0; padding: .7rem; border-radius: 5px; }
  #navigation a[aria-current="page"] { background: #e4003a08; }
  .hero { min-height: 280px; align-items: end; padding: 1.35rem; }
  .hero::before { inset: 0; background-position: 56% 50%; }
  .hero::after { background: linear-gradient(0deg,#102e39 1%,#102e39e0 29%,#102e395c 65%,#102e3911 95%); }
  .hero-text p { max-width: 29rem; font-size: .96rem; margin-top: .55rem; }
  h1 { font-size: clamp(2.75rem,10vw,4rem); }
  .dateline { font-size: .71rem; gap: .4rem; margin-bottom: .4rem; }
  .dateline::before { width: 1rem; }
  .summary { font-size: .81rem; gap: .4rem; }
  .progress-track { width: 33px; }
  .section-heading { align-items: center; }
  .calendar-board { border-width: 3px; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem; padding: .4rem; }
  .door { aspect-ratio: 1.05; }
  .door .front::before { inset: 3px; }
  .door .panel-num { font-size: clamp(2rem,7.5vw,3rem); left: 10%; bottom: 17%; }
  .door .ornament { width: clamp(.82rem,3.4vw,1.25rem); right: 9%; bottom: 14%; }
  .door .status-icon { width: .62rem; }
  .door .front::after { width: 5px; height: 12px; top: calc(50% - 6px); }
  .board-note { font-size: .83rem; }
  .ep-head { grid-template-columns: minmax(95px,28%) 1fr; gap: .9rem; padding: 1rem; }
  .ep-head h1 { font-size: clamp(2.1rem,7.3vw,3rem); }
  .ep-head p { font-size: .87rem; margin-top: .4rem; }
  .rank-table :is(th,td) { padding: .65rem .25rem; }
  .rank-title { gap: .4rem; }
  .rank-title img { width: 31px; height: 31px; }
  .rank-title strong { font-size: .87rem; }
  .rank-title small { font-size: .75rem; }
  #player-home #player,#ep-player #player { flex-wrap: wrap; gap: .27rem .65rem; }
  #player-home audio,#ep-player #player audio { width: 100%; order: 3; }
  #player-home .player-info img { width: 32px; height: 32px; }
  body.playing { padding-bottom: 7.5rem; }
  .playing .door-toast { bottom: 7.5rem; }
}
@media(max-width:375px) {
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .door { aspect-ratio: 1.25; }
  .variant { align-items: flex-start; flex-wrap: wrap; }
  .rating { margin-left: auto; }
  .progress-track { display: none; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
