/* lowpolygame collection – dark cinematic portal. --acc / --acc-rgb follow the selected game. */
:root {
  color-scheme: dark;
  --acc: #e0201a; --acc-rgb: 224, 32, 26;
  --ink: #f4ede6; --ink-2: #c9bdb3; --ink-3: #8f837b;
  --line: rgba(255,255,255,.12);
  --ui: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --card-width: clamp(280px, 27vw, 470px);
  --card-height: clamp(360px, 52vh, 640px);
  transition: --acc .6s;
}
@property --acc-rgb { syntax: '*'; inherits: true; initial-value: 224, 32, 26; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: clip; }
body { position: fixed; inset: 0; background: #070505; color: var(--ink); font: 600 16px var(--ui); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; }
a { color: inherit; }
[hidden] { display: none !important; }

#collection { position: fixed; inset: 0; overflow: clip; isolation: isolate; transition: opacity .55s, filter .7s, transform 1s; }

/* ---------------------------------------------------------------- ambient backdrop */
.backdrop { position: absolute; inset: -40px; z-index: -3; }
.bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(34px) saturate(1.25) brightness(.55); transform: scale(1.12); opacity: 0; transition: opacity 1.1s ease, transform 6s ease-out; }
.bg-layer.on { opacity: 1; transform: scale(1.04); }
.bg-shade { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, rgba(var(--acc-rgb), .20), transparent 70%),
    radial-gradient(ellipse at center, rgba(7,5,5,.25) 0%, rgba(7,5,5,.75) 62%, #070505 100%),
    linear-gradient(180deg, rgba(7,5,5,.7), transparent 30%, transparent 70%, rgba(7,5,5,.92));
  transition: background .8s; }
#collection::after { /* film grain + scanlines */
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.ghost-title { position: absolute; left: 0; right: 0; top: 30%; z-index: -1; text-align: center; pointer-events: none; overflow: hidden; }
.ghost-title span { display: inline-block; font-family: var(--display); font-size: clamp(120px, 24vw, 420px); line-height: 1; letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--acc-rgb), .28); text-shadow: 0 0 80px rgba(var(--acc-rgb), .12); will-change: transform; }

/* ---------------------------------------------------------------- header */
.site-header { height: 96px; padding: 0 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 6; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.logo svg { width: 30px; height: 34px; fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .6)); transition: stroke .6s; }
.logo b { color: var(--acc); font-weight: 800; transition: color .6s; }
.logo small { font-size: 14px; color: var(--ink-3); margin-left: 3px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.edition { border: 1px solid var(--line); background: rgba(0,0,0,.35); backdrop-filter: blur(8px); padding: 10px 16px; font-size: 14px; font-weight: 800; letter-spacing: .14em; display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink-2); }
.edition i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line); background: rgba(0,0,0,.45); }
.lang-switch button { border: 0; background: none; font-weight: 800; font-size: 15px; letter-spacing: .12em; padding: 10px 13px; color: var(--ink-3); transition: background .2s, color .2s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.on { background: var(--acc); color: #120808; }

/* ---------------------------------------------------------------- intro */
.intro { text-align: center; padding: 6px 20px 0; position: relative; z-index: 6; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before, .eyebrow::after { content: ''; width: 34px; height: 2px; background: var(--acc); transition: background .6s; }
.cards-title { font: 400 clamp(48px, 6vw, 96px)/1 var(--display); letter-spacing: .02em; margin: 14px 0 0; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.cards-title span { color: var(--acc); text-shadow: 0 0 34px rgba(var(--acc-rgb), .55); transition: color .6s, text-shadow .6s; }

/* ---------------------------------------------------------------- stage & cards */
.stage { position: absolute; inset: 31% 0 150px; touch-action: pan-y; cursor: grab; user-select: none; perspective: 1500px; perspective-origin: 50% 40%; z-index: 4; }
.stage.dragging { cursor: grabbing; }
.orbit-ring { position: absolute; left: 50%; top: 50px; width: 2100px; height: 2100px; border: 1px solid rgba(var(--acc-rgb), .22); border-radius: 50%; transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 0 60px rgba(var(--acc-rgb), .08) inset; transition: border-color .6s; }
.game-card { position: absolute; left: 50%; top: 18px; width: var(--card-width); height: var(--card-height); padding: 0; border-radius: 6px; overflow: hidden;
  background: var(--game-dark, #120d0d); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  text-align: left; transform-origin: 50% 50%; will-change: transform, filter; display: block; text-decoration: none; outline-offset: 8px; transform-style: preserve-3d; }
.game-card.active { border-color: rgba(var(--card-rgb), .9); box-shadow: 0 0 0 1px rgba(var(--card-rgb), .5), 0 30px 90px rgba(var(--card-rgb), .35), 0 20px 50px rgba(0,0,0,.7); }
.card-art { position: absolute; inset: 0; overflow: hidden; background: var(--game-dark, #120d0d); }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px)); transition: transform .9s cubic-bezier(.2,.65,.25,1), filter .6s; filter: saturate(.55) brightness(.55); }
.game-card.active .card-art img { filter: none; }
.game-card.active:hover .card-art img { transform: scale(1.14) translate(var(--px, 0px), var(--py, 0px)); }
.card-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,5,5,.55) 0%, transparent 28%, transparent 45%, rgba(7,5,5,.92) 82%, #070505 100%); }
/* holographic sheen that follows the pointer on the active card */
.card-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.22), transparent 45%),
              linear-gradient(115deg, transparent 35%, rgba(var(--card-rgb), .25) 48%, transparent 60%); }
.game-card.active .card-sheen { opacity: 1; }
.card-genre { position: absolute; top: 18px; left: 18px; z-index: 3; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px;
  color: rgb(var(--card-rgb)); background: rgba(7,5,5,.72); border: 1px solid rgba(var(--card-rgb), .55); }
.card-online { position: absolute; left: 18px; top: 18px; z-index: 3; font-size: 14px; font-weight: 800; padding: 6px 9px; letter-spacing: .06em; }
.card-age { position: absolute; right: 18px; top: 18px; z-index: 3; font-size: 14px; font-weight: 800; padding: 6px 9px; color: #fff; background: #b3100f; letter-spacing: .06em; }
.card-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 22px 22px; }
.card-title { font: 400 clamp(40px, 3.6vw, 64px)/.95 var(--display); letter-spacing: .02em; color: var(--ink); text-shadow: 0 4px 20px rgba(0,0,0,.7); }
.card-title em { font-style: normal; color: rgb(var(--card-rgb)); text-shadow: 0 0 24px rgba(var(--card-rgb), .5); }
.card-line { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink-2); margin-top: 10px; max-width: 92%; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.card-input { font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.card-play { white-space: nowrap; font: 400 20px var(--display); letter-spacing: .12em; color: #120808; background: rgb(var(--card-rgb)); padding: 7px 18px 7px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s; }
.game-card.active .card-play { opacity: 1; transform: none; }
.card-number { position: absolute; z-index: 3; right: 20px; top: 56px; font: 400 44px var(--display); color: rgba(255,255,255,.18); }
/* glitch flash when a card becomes the selection */
.game-card.flash .card-title { animation: glitch .38s steps(2) 1; }
.game-card.flash::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(var(--card-rgb), .45) 45%, rgba(255,255,255,.35) 50%, transparent 70%); animation: sweep .7s ease-out 1 forwards; }
@keyframes glitch {
  0% { text-shadow: 3px 0 rgba(255,0,60,.9), -3px 0 rgba(0,220,255,.9); transform: translateX(2px); }
  30% { text-shadow: -4px 0 rgba(255,0,60,.9), 4px 0 rgba(0,220,255,.9); transform: translateX(-3px) skewX(-6deg); clip-path: inset(10% 0 40% 0); }
  60% { text-shadow: 2px 0 rgba(255,0,60,.8), -2px 0 rgba(0,220,255,.8); transform: translateX(1px); clip-path: inset(50% 0 5% 0); }
  100% { text-shadow: 0 4px 20px rgba(0,0,0,.7); transform: none; clip-path: none; }
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- selection & controls */
.selection { position: absolute; bottom: 104px; width: 100%; text-align: center; font-size: 17px; font-weight: 700; color: var(--ink-2); pointer-events: none; line-height: 1.65; padding: 0 20px; z-index: 6; letter-spacing: .04em; }
.selection .count { font: 400 22px var(--display); color: var(--acc); margin-right: 14px; letter-spacing: .08em; transition: color .6s; }
.selection .divider { margin-right: 14px; color: var(--ink-3); }
.selection .age { color: #ff4a3a; }
.controls { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 22px; z-index: 6; }
.arrow { border: 1px solid var(--line); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); width: 50px; height: 50px; font-size: 22px; transition: background .2s, border-color .2s, transform .2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.arrow:hover { background: var(--acc); border-color: var(--acc); color: #120808; transform: scale(1.06); }
.arrow:active { transform: scale(.94); }
.dots { display: flex; gap: 4px; }
.dot { border: 0; width: 22px; height: 34px; padding: 0; background: transparent; position: relative; }
.dot::after { content: ''; position: absolute; width: 8px; height: 4px; top: 15px; left: 7px; background: rgba(255,255,255,.3); transition: width .3s, left .3s, background .3s, box-shadow .3s; }
.dot:hover::after { background: rgba(255,255,255,.7); }
.dot.active::after { background: var(--acc); width: 20px; left: 1px; box-shadow: 0 0 10px var(--acc); }
.hint, .foot { position: absolute; bottom: 48px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; z-index: 6; }
.hint { left: 4.5%; }
.foot { right: 4.5%; }

/* ---------------------------------------------------------------- game host & transition */
.game-host { position: fixed; inset: 0; z-index: 200; background: #070505; opacity: 0; transition: opacity .7s; }
.game-host.visible { opacity: 1; }
#game-mount, #game-mount iframe { width: 100%; height: 100%; border: 0; display: block; }
.return-button { position: absolute; right: 18px; bottom: 18px; z-index: 3; padding: 11px 16px; border: 1px solid rgba(255,255,255,.22); color: var(--ink); background: rgba(10,7,7,.8); backdrop-filter: blur(14px);
  font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, opacity .25s; }
.return-button:hover { background: var(--acc); color: #120808; }
.return-button span { font-size: 17px; margin-right: 6px; }
.return-button b { font-weight: 800; }
.game-host .return-button { opacity: 0; pointer-events: none; transition: opacity .2s; }
.game-host .return-button { display: none; }
.transition { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.transition-wash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(var(--acc-rgb), .35), var(--transition-dark, #111) 60%, #050303); }
.portal-card { left: 0; top: 0; margin: 0; z-index: 1; filter: none !important; pointer-events: none; transform-origin: 50% 50%; will-change: transform; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.portal-card .card-art img { transform: none !important; }
.portal-card .card-caption, .portal-card .card-genre, .portal-card .card-age, .portal-card .card-online, .portal-card .card-number { transition: opacity .4s; opacity: 0; }
.transition-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; color: #fff; text-shadow: 0 3px 40px rgba(0,0,0,.8); opacity: 0; gap: 14px; }
.transition-copy strong { font: 400 clamp(64px, 11vw, 170px)/1 var(--display); letter-spacing: .03em; text-shadow: 0 0 60px rgba(var(--acc-rgb), .6), 0 4px 30px #000; }
.transition-kicker { font-size: 18px; font-weight: 800; letter-spacing: .3em; color: var(--acc); text-transform: uppercase; }
.transition-status { font-size: 15px; font-weight: 800; letter-spacing: .25em; opacity: .8; margin-top: 12px; text-transform: uppercase; }
.transition-bar { display: block; width: min(320px, 60vw); height: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.transition-bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--acc); box-shadow: 0 0 12px var(--acc); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.launching #collection { transform: scale(.96); filter: blur(8px); opacity: 0; }
.load-error { position: fixed; inset: 0; z-index: 400; background: rgba(7,5,5,.85); backdrop-filter: blur(20px); display: grid; place-items: center; padding: 25px; }
.load-error > div { width: min(520px, 100%); padding: 34px; background: #120d0d; border: 1px solid var(--line); border-top: 3px solid var(--acc); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.load-error .eyebrow::after { display: none; }
.load-error h2 { font: 400 40px/1.05 var(--display); margin: 14px 0; letter-spacing: .02em; }
.load-error p { line-height: 1.6; font-size: 17px; color: var(--ink-2); }
.load-error button { padding: 12px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.06); margin: 15px 8px 0 0; font-weight: 800; letter-spacing: .08em; }
.load-error button:first-of-type { background: var(--acc); color: #120808; border-color: var(--acc); }
.noscript { position: fixed; inset: 40% 15%; padding: 35px; background: #120d0d; text-align: center; font-size: 18px; }


/* ---------------------------------------------------------------- settings */
.settings-btn { border: 1px solid var(--line); background: rgba(0,0,0,.45); padding: 10px 14px; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .2s, border-color .2s; }
.settings-btn:hover { color: #fff; border-color: var(--acc); }
.settings-btn span { color: var(--acc); margin-right: 4px; }
.settings { position: fixed; inset: 0; z-index: 450; background: rgba(7,5,5,.8); backdrop-filter: blur(16px); display: grid; place-items: center; padding: 25px; }
.settings > div { width: min(480px, 100%); padding: 32px; background: #120d0d; border: 1px solid var(--line); border-top: 3px solid var(--acc); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.settings .eyebrow::after { display: none; }
.settings h2 { font: 400 46px/1 var(--display); margin: 12px 0 18px; letter-spacing: .02em; }
.settings label { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; letter-spacing: .06em; margin: 20px 0 10px; color: var(--ink); }
.settings output { color: var(--acc); }
.settings input[type=range] { width: 100%; accent-color: var(--acc); cursor: pointer; }
.settings select { width: 100%; padding: 12px; background: #1b1414; color: var(--ink); border: 1px solid var(--line); font: 600 16px var(--ui); }
.settings .qdesc { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink-2); margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--acc); min-height: 3em; }
.settings .qdesc b { color: var(--ink); }
.settings .note { font-size: 15px; color: var(--ink-3); margin: 18px 0 6px; }
.settings #settings-close { margin-top: 14px; padding: 12px 26px; border: 0; background: var(--acc); color: #120808; font: 400 22px var(--display); letter-spacing: .1em; clip-path: polygon(0 0,100% 0,calc(100% - 9px) 100%,0 100%); }
@media (max-width: 700px) { .settings-btn b { display: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-height: 900px) {
  .site-header { height: 78px; }
  .cards-title { font-size: clamp(44px, 5vw, 72px); margin-top: 10px; }
  .stage { top: 28%; }
  :root { --card-width: clamp(260px, 25vw, 400px); --card-height: 49vh; }
  .selection { bottom: 84px; }
  .controls { bottom: 22px; }
  .hint, .foot { bottom: 36px; }
  .card-line { font-size: 16px; }
}
@media (max-height: 680px) {
  .site-header { height: 62px; }
  .eyebrow { font-size: 13px; }
  .cards-title { font-size: 42px; margin-top: 6px; }
  .stage { top: 27%; bottom: 120px; }
  :root { --card-height: 52vh; --card-width: 250px; }
  .card-title { font-size: 36px; }
  .card-line { font-size: 14px; }
  .selection { bottom: 66px; font-size: 14px; }
  .controls { bottom: 12px; }
  .arrow { width: 42px; height: 42px; }
  .hint, .foot { bottom: 24px; font-size: 12px; }
}
@media (max-width: 1250px) { .hint, .foot { display: none; } }
@media (max-width: 900px) {
  .edition { display: none; }
  .controls { gap: 12px; }
  .site-header { padding: 0 22px; }
}
@media (max-width: 600px) {
  :root { --card-width: min(76vw, 360px); --card-height: min(50vh, 500px); }
  .logo { font-size: 21px; gap: 7px; }
  .logo svg { width: 26px; }
  .intro { padding: 10px 12px 0; }
  .eyebrow { font-size: 12px; letter-spacing: .2em; }
  .cards-title { font-size: clamp(38px, 11vw, 56px); }
  .stage { top: 29%; bottom: 125px; }
  .card-title { font-size: 40px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================================================
   3D WORLD START PAGE (html[data-mode="world"]) — fullscreen island canvas + minimal glass HUD (world/ui.js)
   ===================================================================================================== */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.76,0,.24,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --glass: rgba(14,10,10,.5);
  --glass-line: rgba(255,255,255,.11);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1); }
}
/* which page parts belong to which mode */
html[data-mode="world"] .backdrop, html[data-mode="world"] #embers, html[data-mode="world"] .ghost-title,
html[data-mode="world"] .cards-main, html[data-mode="world"] .cards-footer { display: none; }
html[data-mode="cards"] .world, html[data-mode="cards"] .loader { display: none; }
html[data-mode="world"] #collection::after { opacity: .16; }
html[data-mode="world"] body { background: #0b0a10; }
body.reloading #collection { opacity: 0; filter: blur(6px); transition: opacity .4s, filter .4s; }

/* ---------------------------------------------------------------- header in world mode: glassy, rounded */
html[data-mode="world"] .site-header { position: absolute; left: 0; right: 0; top: 0; z-index: 8; transition: transform .8s var(--ease-out), opacity .6s; }
html[data-mode="world"] .lang-switch, html[data-mode="world"] .settings-btn, html[data-mode="world"] .view-switch, html[data-mode="world"] .edition {
  border-radius: 12px; background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
html[data-mode="world"] .lang-switch { padding: 3px; gap: 2px; }
html[data-mode="world"] .lang-switch button { border-radius: 9px; padding: 8px 11px; }
html[data-mode="world"] .settings-btn { padding: 11px 14px; }
html[data-mode="world"] .settings-btn span { display: inline-block; transition: transform .7s var(--spring); }
html[data-mode="world"] .settings-btn:hover span { transform: rotate(90deg); }
.logo svg { transition: stroke .6s, transform .8s var(--spring); }
.logo:hover svg { transform: rotate(-30deg) scale(1.08); }

/* view switch (3D world / cards) */
.view-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: rgba(0,0,0,.45); padding: 3px; isolation: isolate; }
.view-switch button { position: relative; z-index: 1; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px;
  font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .3s; white-space: nowrap; border-radius: 9px; }
.view-switch button:hover:not(.on):not(:disabled) { color: #fff; }
.view-switch button.on { color: #120808; }
.view-switch button:disabled { opacity: .4; cursor: not-allowed; }
.view-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.view-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--acc); box-shadow: 0 4px 18px rgba(var(--acc-rgb), .45);
  transition: transform .6s var(--spring), background .6s; }
html[data-mode="world"] .view-thumb { border-radius: 9px; }
html[data-mode="cards"] .view-thumb { transform: translateX(100%); }

/* ---------------------------------------------------------------- canvas + shading */
.world { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.world-stage { position: absolute; inset: 0; }
.world-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; opacity: 0; transition: opacity 1.4s ease; }
.world.ready .world-stage canvas { opacity: 1; }
.world-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 130% 95% at 50% 46%, transparent 58%, rgba(4,3,6,.55) 100%),
    linear-gradient(180deg, rgba(6,5,8,.62) 0, rgba(6,5,8,.2) 16%, transparent 30%, transparent 72%, rgba(6,5,8,.55) 100%); }

/* ---------------------------------------------------------------- hero title */
.hero { position: absolute; left: max(4.5%, 24px); top: 116px; z-index: 3; pointer-events: none; max-width: min(640px, 48vw); transition: opacity .6s, transform .8s var(--ease-out); }
.hero::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * max(4.5vw, 24px)); top: -140px; width: calc(100% + 26vw); height: calc(100% + 260px); pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 30% 50%, rgba(8,6,10,.62), rgba(8,6,10,.32) 55%, transparent 78%); transition: opacity .8s; }
.world:not(.revealed) .hero::before { opacity: 0; }
.hero-eyebrow { font-size: 14px; letter-spacing: .32em; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-eyebrow::after { display: none; }
.hero-eyebrow::before { transform-origin: left; transition: transform 1s var(--ease-out) .1s; }
.hero-title { font: 400 clamp(54px, 6.6vw, 118px)/.9 var(--display); text-transform: uppercase; letter-spacing: .012em; margin: 14px 0 0; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.hero-line { display: block; overflow: hidden; padding: .17em .06em .04em 0; margin: -.17em 0 -.04em; }   /* room for umlaut dots (WÄHLE) inside the reveal mask */
.hero-accent { color: var(--acc); text-shadow: 0 0 46px rgba(var(--acc-rgb), .55), 0 8px 40px rgba(0,0,0,.4); transition: color .6s, text-shadow .6s; }
.hero-line .ch { display: inline-block; white-space: pre; }
.hero-legend { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 10px; margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-2); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero-legend .lg-on, .hero-legend .lg-age { justify-self: start; font: 800 11px/1 var(--ui); letter-spacing: .06em; padding: 4px 7px 3px; border-radius: 4px; }
.hero-legend .lg-age { background: #b3100f; color: #fff; }
.hero-sub { margin: 18px 0 0; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink-2); max-width: 30ch; text-shadow: 0 2px 14px rgba(0,0,0,.8); }

/* ---------------------------------------------------------------- floating labels over the dioramas */
.world-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; transition: opacity .6s .3s; }
.site-label { position: absolute; left: 0; top: 0; pointer-events: none; text-decoration: none; color: var(--ink); will-change: transform; transition: opacity .35s; }
.site-label.off { opacity: 0; }
.site-label.off .sl-box { pointer-events: none; }
.sl-inner { position: absolute; left: 0; top: 0; transition: transform .7s var(--spring), opacity .4s; }
.sl-pin { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--rgb)); box-shadow: 0 0 0 3px rgba(var(--rgb), .25), 0 0 16px rgb(var(--rgb)); }
.sl-pin::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgb(var(--rgb)); animation: sl-ping 2.4s var(--ease-out) infinite; animation-delay: var(--delay, 0s); }
@keyframes sl-ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.sl-stem { position: absolute; left: -.5px; bottom: 6px; width: 1px; height: calc(30px + var(--lift, 0px)); background: linear-gradient(to top, rgba(var(--rgb), .95), rgba(var(--rgb), .1)); transition: height .5s var(--spring); }
.sl-box { position: absolute; left: 0; bottom: calc(36px + var(--lift, 0px)); transform: translateX(calc(-50% + var(--dx, 0px))) scale(var(--ls, 1)); transform-origin: 50% 100%; pointer-events: auto; cursor: pointer; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; padding: 6px 13px 7px; border-radius: 11px;
  background: rgba(10,8,10,.6); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .55s var(--spring), bottom .5s var(--spring), background .3s, border-color .3s, box-shadow .3s; }
.sl-name { display: flex; align-items: baseline; gap: 7px; font: 400 18px/1.05 var(--display); letter-spacing: .07em; }
.sl-name i { font-style: normal; font-size: 12px; color: rgb(var(--rgb)); letter-spacing: .1em; transition: color .3s; }
.sl-name b { font-weight: 400; }
.sl-name em { font-style: normal; font: 800 10px/1 var(--ui); letter-spacing: .06em; padding: 3px 4px 2px; border-radius: 4px; background: #b3100f; color: #fff; align-self: center; }
.sl-name em.on, .place-online, .card-online, .dock-online, .lg-on { background: #12a150; color: #fff; }
.sl-name em.on::before, .place-online::before, .card-online::before, .dock-online::before, .lg-on::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 0; border-radius: 50%; background: #b6ffcf; box-shadow: 0 0 6px #6dff9e; vertical-align: middle; animation: onPulse 1.8s ease-in-out infinite; }
@keyframes onPulse { 50% { opacity: .35; } }
.sl-sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease-out), opacity .3s, margin .45s var(--ease-out); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sl-sub > span { overflow: hidden; display: flex; gap: 8px; align-items: center; }
.sl-sub b { font-weight: 800; }
.site-label.hot { z-index: 9999 !important; }
.site-label.far:not(.hot) .sl-name em { display: none; }
.site-label.hot .sl-box { bottom: calc(44px + var(--lift, 0px)); transform: translateX(calc(-50% + var(--dx, 0px))) scale(calc(var(--ls, 1) * 1.1)); background: rgba(var(--rgb), .94); border-color: rgba(255,255,255,.4); color: #140a0a;
  box-shadow: 0 12px 40px rgba(var(--rgb), .5), 0 0 0 4px rgba(var(--rgb), .18); }
.site-label.hot .sl-name i { color: rgba(20,10,10,.65); }
.site-label.hot .sl-sub { grid-template-rows: 1fr; opacity: 1; margin-top: 3px; }
.site-label.hot .sl-stem { height: calc(38px + var(--lift, 0px)); }
.world-labels.has-hot .site-label:not(.hot) .sl-inner { opacity: .5; }

/* ---------------------------------------------------------------- info card for the hovered / selected place */
.place { position: absolute; right: max(4.5%, 24px); top: 50%; z-index: 4; width: 350px; transform: translateY(-46%); transition: opacity .55s, transform .8s var(--spring), visibility 0s; }
.place[data-empty="1"] { opacity: 0; transform: translateY(-46%) translateX(40px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .5s var(--ease-out), visibility 0s .5s; }
.place-inner { position: relative; overflow: hidden; border-radius: 20px; background: rgba(14,10,12,.56); border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 34px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07), 0 0 60px rgba(var(--acc-rgb), .12); transition: box-shadow .6s; }
.place-inner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, transparent, var(--acc) 30%, var(--acc) 70%, transparent); box-shadow: 0 0 18px var(--acc); }
.place-media { position: relative; height: 158px; overflow: hidden; background: #120d0d; }
.place-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 6s ease-out; }
.place:hover .place-media img { transform: scale(1.14); }
.place-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,10,.05) 30%, rgba(14,10,12,.96) 100%); }
.place-num { position: absolute; z-index: 1; right: 16px; top: 6px; font: 400 64px/1 var(--display); color: rgba(255,255,255,.14); letter-spacing: .02em; }
.place-body { padding: 4px 22px 22px; position: relative; }
.place-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -8px; }
.place-genre { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); transition: color .6s; }
.place-age { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 4px 7px 3px; border-radius: 5px; background: #b3100f; color: #fff; box-shadow: 0 0 18px rgba(179,16,15,.5); }
.place[data-age="0"] .place-age { display: none; }
.place-online { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 4px 7px 3px; border-radius: 5px; box-shadow: 0 0 18px rgba(18,161,80,.45); }
.place[data-online="0"] .place-online, .place:not([data-online]) .place-online { display: none; }
.place-title { font: 400 54px/.95 var(--display); letter-spacing: .02em; margin: 8px 0 0; color: var(--ink); text-shadow: 0 4px 24px rgba(0,0,0,.5); white-space: nowrap; }
.place-title em { font-style: normal; color: var(--acc); text-shadow: 0 0 30px rgba(var(--acc-rgb), .55); transition: color .6s; }
.place-title .ch { display: inline-block; }
.place-line { margin: 10px 0 0; font-size: 18px; font-weight: 600; line-height: 1.38; color: var(--ink-2); min-height: 2.76em; }
.place-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.place-input { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); min-width: 0; }
.place-input svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.place-play { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 11px 22px; border-radius: 12px;
  background: var(--acc); color: #120808; text-decoration: none; font: 400 22px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(var(--acc-rgb), .45), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .5s var(--spring), box-shadow .3s; will-change: transform; }
.place-play svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring); }
.place-play::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.place-play:hover { box-shadow: 0 16px 44px rgba(var(--acc-rgb), .7), inset 0 1px 0 rgba(255,255,255,.35); }
.place-play:hover::before { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.place-play:hover svg { transform: translate(3px,-3px); }
.place-play:active { transition-duration: .12s; }
.place-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------------------------------------------------------------- dock */
.dock { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 8px; padding: 9px;
  transform: translateX(-50%); border-radius: 20px; background: rgba(12,9,11,.46); border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); transition: transform .9s var(--ease-out), opacity .6s; }
.dock-item { position: relative; display: flex; flex-direction: column; width: 108px; padding: 5px 5px 9px; border-radius: 14px; text-decoration: none; color: var(--ink-2);
  transition: transform .55s var(--spring), background .3s, opacity .5s; outline-offset: 2px; -webkit-user-drag: none; }
.dock-online { position: absolute; left: 4px; top: 4px; z-index: 2; font: 800 9px/1 var(--ui); letter-spacing: .06em; padding: 3px 5px 2px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.dock-online::before { width: 5px; height: 5px; margin-right: 3px; }
.dock-thumb { position: relative; display: block; height: 58px; border-radius: 10px; overflow: hidden; background: #120d0d; box-shadow: 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .35s; }
.dock-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.55) brightness(.62); transform: scale(1.08); transition: filter .4s, transform .8s var(--ease-out); pointer-events: none; }
.dock-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); }
.dock-text { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; padding: 0 4px; min-width: 0; }
.dock-num { font: 400 12px var(--display); letter-spacing: .1em; color: rgb(var(--rgb)); flex: none; }
.dock-name { font: 400 13px/1 var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.dock-item::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 0; height: 3px; border-radius: 3px; transform: translateX(-50%); background: rgb(var(--rgb)); box-shadow: 0 0 12px rgb(var(--rgb)); transition: width .5s var(--spring); }
.dock-item:hover, .dock-item.hot { transform: translateY(-9px) scale(1.05); background: rgba(var(--rgb), .13); }
.dock-item.hot .dock-thumb, .dock-item:hover .dock-thumb { box-shadow: 0 0 0 2px rgb(var(--rgb)), 0 12px 32px rgba(var(--rgb), .45); }
.dock-item.hot .dock-thumb img, .dock-item:hover .dock-thumb img { filter: none; transform: scale(1.16); }
.dock-item.hot .dock-thumb::after { transform: translateX(130%); transition: transform .9s var(--ease-out); }
.dock-item.hot .dock-name, .dock-item:hover .dock-name { color: #fff; }
.dock-item.hot::after { width: 30px; }
.dock-item:active { transform: translateY(-4px) scale(.97); transition-duration: .12s; }
.dock-item:focus-visible { outline: 2px solid rgb(var(--rgb)); }
.dock.has-hot .dock-item:not(.hot):not(:hover) { opacity: .72; }

/* ---------------------------------------------------------------- hint */
.world-hint { position: absolute; left: max(4.5%, 24px); bottom: 34px; z-index: 3; margin: 0; display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,237,230,.55); text-shadow: 0 1px 8px rgba(0,0,0,.8); transition: opacity .6s, transform .8s var(--ease-out); }
.world-hint i { display: none; }

/* ---------------------------------------------------------------- loading screen (split curtain) */
.loader { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; overflow: hidden; }
.loader-panel { position: absolute; left: 0; right: 0; height: 50.2%; background: #070507; transition: transform 1.25s var(--ease-io); }
.loader-top { top: 0; background: radial-gradient(ellipse 60% 120% at 50% 100%, rgba(var(--acc-rgb), .1), transparent 60%), #070507; }
.loader-bottom { bottom: 0; background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(var(--acc-rgb), .1), transparent 60%), #070507; }
.loader-top::after, .loader-bottom::before { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .7), transparent); opacity: 0; transition: opacity .4s; }
.loader-top::after { bottom: 0; } .loader-bottom::before { top: 0; }
.loader.out .loader-top::after, .loader.out .loader-bottom::before { opacity: 1; }
.loader-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: opacity .45s, transform .6s var(--ease-out), filter .45s; }
.loader-mark { width: 92px; height: 92px; overflow: visible; filter: drop-shadow(0 0 18px rgba(var(--acc-rgb), .55)); animation: lm-float 3.2s ease-in-out infinite; }
.lm-ghost { fill: none; stroke: rgba(var(--acc-rgb), .16); stroke-width: 1.6; stroke-linejoin: round; }
.lm-outer, .lm-inner { fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: lm-draw 2.6s var(--ease-io) infinite; }
.lm-inner { stroke-width: 1.8; animation-delay: .25s; opacity: .8; }
.lm-facet { fill: rgba(var(--acc-rgb), 0); animation: lm-facet 2.6s ease-in-out infinite; }
@keyframes lm-draw { 0% { stroke-dashoffset: 340; } 45%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -340; } }
@keyframes lm-facet { 0%, 30% { fill: rgba(var(--acc-rgb), 0); } 50% { fill: rgba(var(--acc-rgb), .35); } 80%, 100% { fill: rgba(var(--acc-rgb), 0); } }
@keyframes lm-float { 50% { transform: translateY(-6px) rotate(3deg); } }
.loader-word { margin: 4px 0 0; font: 700 30px var(--ui); letter-spacing: .01em; color: var(--ink); }
.loader-word b { color: var(--acc); font-weight: 800; }
.loader-bar { width: min(300px, 62vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,.09); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 3px; background: linear-gradient(90deg, rgba(var(--acc-rgb), .35), var(--acc)); box-shadow: 0 0 14px var(--acc); transition: transform .45s var(--ease-out); }
.loader-status { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); min-height: 1.6em; }
.loader-pct { font: 400 20px var(--display); letter-spacing: .06em; color: var(--ink); min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.loader-pct::after { content: '%'; font-size: 13px; margin-left: 2px; color: var(--ink-3); }
.loader-msg { display: inline-block; transition: opacity .3s, transform .3s; }
.loader-msg.swap { opacity: 0; transform: translateY(6px); }
.loader.out .loader-top { transform: translateY(-101%); }
.loader.out .loader-bottom { transform: translateY(101%); }
.loader.out .loader-core { opacity: 0; transform: scale(.94); filter: blur(4px); }
.loader.out { pointer-events: none; }
.loader.gone { display: none; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; top: 92px; z-index: 470; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; border-radius: 14px; background: rgba(18,13,15,.9); border: 1px solid var(--glass-line); border-left: 3px solid var(--acc);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.5); font-size: 16px; font-weight: 600; color: var(--ink);
  transform: translate(-50%, -16px); opacity: 0; }
.toast.in { transform: translate(-50%, 0); opacity: 1; transition: transform .7s var(--spring), opacity .3s; }
.toast.out { transform: translate(-50%, -16px); opacity: 0; transition: transform .35s ease-in, opacity .3s; }
.toast-action { border: 0; border-radius: 9px; padding: 8px 12px; background: var(--acc); color: #120808; font-weight: 800; letter-spacing: .06em; white-space: nowrap; transition: transform .4s var(--spring); }
.toast-action:hover { transform: scale(1.05); }
.toast-close { border: 0; background: none; color: var(--ink-3); font-size: 24px; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.toast-close:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------------------------------------------------------------- intro choreography: .world gets .revealed once the curtain opens */
.world:not(.revealed) .hero-line .ch { transform: translateY(105%) rotate(4deg); }
.world .hero-line .ch { transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 32ms); }
.world:not(.revealed) .hero-eyebrow::before { transform: scaleX(0); }
.world:not(.revealed) .hero-eyebrow, .world:not(.revealed) .hero-sub, .world:not(.revealed) .hero-legend { opacity: 0; transform: translateY(14px); }
.hero-eyebrow, .hero-sub, .hero-legend { transition: opacity .9s, transform 1.1s var(--ease-out); }
.world.revealed .hero-eyebrow { transition-delay: .15s; }
.world.revealed .hero-sub { transition-delay: 1.05s; }
.world:not(.revealed) .dock { transform: translateX(-50%) translateY(140%); opacity: 0; }
.world.revealed .dock { transition-delay: .7s; }
.world:not(.revealed) .dock-item { transform: translateY(26px) scale(.9); opacity: 0; }
.world.revealed .dock-item { transition: transform .8s var(--spring), background .3s, opacity .5s; transition-delay: calc(.95s + var(--i, 0) * 70ms); }
.world.revealed.settled .dock-item { transition: transform .55s var(--spring), background .3s, opacity .5s; transition-delay: 0s; }
.world:not(.revealed) .sl-inner { transform: scale(0); opacity: 0; }
.world.revealed .sl-inner { transition-delay: calc(var(--label-delay, 1.4s) + var(--i, 0) * 110ms); }
.world.revealed.settled .sl-inner { transition-delay: 0s; }
.world:not(.revealed) .world-hint { opacity: 0; transform: translateY(10px); }
.world.revealed .world-hint { transition-delay: 1.6s; }
html[data-mode="world"] .site-header.pre { transform: translateY(-110%); opacity: 0; }

/* HUD steps aside while a game launches / runs / returns */
html[data-mode="world"] body:not([data-state="collection"]) .hero { opacity: 0; transform: translateX(-40px); }
html[data-mode="world"] body:not([data-state="collection"]) .world .dock { transform: translateX(-50%) translateY(150%); opacity: 0; transition-delay: 0s; }
html[data-mode="world"] body:not([data-state="collection"]) .place { opacity: 0; transform: translateY(-46%) translateX(60px); transition: opacity .4s, transform .6s var(--ease-out); }
html[data-mode="world"] body:not([data-state="collection"]) .world-labels { opacity: 0; transition: opacity .35s; }
html[data-mode="world"] body:not([data-state="collection"]) .world-hint { opacity: 0; transition-delay: 0s; }
html[data-mode="world"] body:not([data-state="collection"]) .site-header { transform: translateY(-110%); opacity: 0; }

/* game launch from the world: zoom the frozen island toward the place while the iris opens */
html[data-mode="world"] #collection { transition: transform 1.1s var(--ease-out), filter .9s, opacity .55s; }
html[data-mode="world"] .launching #collection { opacity: 1; transform: scale(1.22); filter: blur(3px) brightness(.75); transition: transform 1.2s var(--ease-io), filter 1s; }
.transition-iris { display: none; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%,-50%) scale(0); will-change: transform;
  background: radial-gradient(circle closest-side, rgba(var(--acc-rgb), .3) 0, var(--transition-dark, #111) 46%, #060404 78%, rgba(var(--acc-rgb), .95) 90%, rgba(var(--acc-rgb), 0) 100%); }
.transition.iris-mode .transition-iris { display: block; }
.transition.iris-mode .transition-wash { display: none; }

/* ---------------------------------------------------------------- world responsive */
@media (max-width: 1500px) { html[data-mode="world"] .edition { display: none; } }
@media (max-width: 1280px) { .world-hint { display: none; } }
/* twelve games in the dock: slimmer tiles on mid-size screens */
@media (max-width: 1440px) and (min-width: 1241px) {
  .dock { gap: 4px; padding: 8px; }
  .dock-item { width: 96px; padding: 4px 4px 8px; }
  .dock-thumb { height: 52px; }
  .dock-name { font-size: 12px; letter-spacing: 0; }
  .dock-num { font-size: 11px; }
  .dock-text { gap: 4px; padding: 0 2px; }
}
@media (max-width: 1180px) {
  .view-switch button span { display: none; }
  .view-switch button { padding: 8px 11px; }
  .hero { max-width: 60vw; }
  .place { top: auto; bottom: 140px; right: 50%; width: min(600px, calc(100vw - 32px)); transform: translateX(50%); }
  .place[data-empty="1"] { transform: translateX(50%) translateY(30px); }
  html[data-mode="world"] body:not([data-state="collection"]) .place { transform: translateX(50%) translateY(40px); }
  .place-inner { display: grid; grid-template-columns: 170px 1fr; }
  .place-media { height: auto; min-height: 100%; }
  .place-media::after { background: linear-gradient(90deg, rgba(14,10,12,0) 40%, rgba(14,10,12,.9) 100%); }
  .place-num { font-size: 46px; top: 4px; right: 10px; }
  .place-body { padding: 16px 18px 16px; }
  .place-meta { margin-top: 0; }
  .place-title { font-size: 40px; }
  .place-line { font-size: 16px; min-height: 0; margin-top: 6px; }
  .place-foot { margin-top: 12px; }
  .dock { gap: 4px; padding: 8px; }
  .dock-item { width: 100px; padding: 4px 4px 8px; }
  .dock-thumb { height: 54px; }
  .dock-name { font-size: 12.5px; letter-spacing: .02em; }
  .dock-num { font-size: 11px; }
  .dock-text { gap: 4px; padding: 0 2px; }
}
@media (max-width: 1240px) {
  /* twelve tiles no longer fit: the dock scrolls sideways (the hot game is scrolled into view by ui.js) */
  .dock { left: 10px; right: 10px; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; padding: 14px 6px 6px; border-radius: 18px; }
  .dock::-webkit-scrollbar { display: none; }
  .world:not(.revealed) .dock, html[data-mode="world"] body:not([data-state="collection"]) .world .dock { transform: translateY(150%); }
  .dock-item { flex: none; width: 104px; scroll-snap-align: center; }
}
@media (max-width: 820px) {
  .dock-thumb { height: 52px; }
  .place { bottom: 124px; }
  .hero { top: 92px; }
  .hero-sub { display: none; }
}
@media (max-width: 640px) {
  html[data-mode="world"] .site-header { padding: 0 14px; height: 64px; }
  html[data-mode="world"] .header-right { gap: 8px; }
  html[data-mode="world"] .logo span { display: none; }
  .hero { left: 16px; top: 72px; max-width: calc(100vw - 32px); }
  .hero-eyebrow { font-size: 11px; letter-spacing: .24em; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); margin-top: 8px; }
  .dock { left: 10px; right: 10px; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 6px 6px; }
  .dock::-webkit-scrollbar { display: none; }
  .world:not(.revealed) .dock, html[data-mode="world"] body:not([data-state="collection"]) .world .dock { transform: translateY(150%); }
  .dock-item { flex: none; width: 84px; scroll-snap-align: center; }
  .dock-item:hover, .dock-item.hot { transform: translateY(-6px) scale(1.03); }
  .dock-thumb { height: 46px; }
  .place { bottom: 128px; }
  .dock-name { font-size: 12.5px; letter-spacing: .02em; }
  .place-inner { grid-template-columns: 1fr; }
  .place-media { display: none; }
  .place-title { font-size: 34px; }
  .place-line { font-size: 15px; }
  .place-play { font-size: 19px; padding: 10px 14px 9px 16px; }
  .sl-name { font-size: 15px; }
  .sl-box { padding: 5px 10px 6px; }
  .toast { top: 74px; }
}
@media (max-height: 760px) and (min-width: 1181px) {
  .hero { top: 96px; }
  .hero-title { font-size: clamp(48px, 5.4vw, 88px); }
  .place-media { height: 120px; }
  .place-title { font-size: 46px; }
  .place-line { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .world .hero-line .ch, .world .dock-item, .world .sl-inner { transform: none !important; opacity: 1 !important; }
}
@media (max-width: 520px) {
  .site-header { padding: 0 14px; gap: 10px; }
  .header-right { gap: 8px; }
  .logo span { display: none; }
  .view-switch button { padding: 8px 10px; }
  .lang-switch button { padding: 9px 10px; }
}

/* ---------------------------------------------------------------- explore mode */
.explore-start { margin-top: 22px; display: inline-grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 12px 22px 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; cursor: pointer; pointer-events: auto;
  background: linear-gradient(135deg, rgba(var(--acc-rgb, 224,32,26), .9), rgba(var(--acc-rgb, 224,32,26), .55)); color: #fff;
  box-shadow: 0 10px 30px rgba(var(--acc-rgb, 224,32,26), .35), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .25s cubic-bezier(.2,1.6,.4,1), box-shadow .25s; }
.explore-start svg { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.explore-start span { font: 400 22px/1 var(--display, 'Anton', sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.explore-start small { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.explore-start:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(var(--acc-rgb, 224,32,26), .5), inset 0 1px 0 rgba(255,255,255,.3); }
.explore-ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; z-index: 6; }
.exploring .explore-ui { opacity: 1; }
.exploring .hero, .exploring .place, .exploring .dock, .exploring .world-hint, .exploring .world-labels { opacity: 0 !important; pointer-events: none !important; transition: opacity .45s; }
.explore-prompt { position: absolute; left: 50%; bottom: 120px; transform: translate(-50%, 20px) scale(.9); opacity: 0; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 14px; background: rgba(10,10,16,.72); backdrop-filter: blur(10px); border: 1px solid rgba(var(--rgb), .7);
  box-shadow: 0 0 30px rgba(var(--rgb), .35); color: #fff; font: 400 26px/1 var(--display, 'Anton', sans-serif); letter-spacing: .05em; text-transform: uppercase;
  transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
.explore-prompt.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.explore-prompt kbd, .explore-keys kbd, .explore-exit kbd { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px;
  background: rgba(var(--rgb, 255,255,255), .95); color: #111; font: 800 16px/1 var(--ui, sans-serif); box-shadow: 0 3px 0 rgba(0,0,0,.4); animation: kbdPulse 1.4s ease-in-out infinite; }
.explore-keys kbd, .explore-exit kbd { min-width: 26px; height: 24px; font-size: 12px; background: rgba(255,255,255,.9); animation: none; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
@keyframes kbdPulse { 50% { transform: translateY(-2px); } }
.explore-keys { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 0;
  padding: 10px 18px; border-radius: 12px; background: rgba(10,10,16,.55); backdrop-filter: blur(8px); color: rgba(255,255,255,.85);
  font: 700 13px/1 var(--ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.explore-keys span { display: inline-flex; align-items: center; gap: 4px; }
.explore-keys em { font-style: normal; margin-left: 4px; }
.explore-exit { position: absolute; left: 28px; top: 92px; pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(10,10,16,.6); color: #fff;
  font: 800 13px/1 var(--ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.explore-exit:hover { border-color: rgba(var(--acc-rgb, 224,32,26), .9); }
.explore-start { position: relative; }
.explore-beta { position: absolute; top: -13px; right: -16px; padding: 6px 10px 5px; border-radius: 7px; transform: rotate(8deg);
  background: #ffd23f; color: #111; border: 2px solid #111; box-shadow: 0 4px 0 #111, 0 6px 18px rgba(0,0,0,.35);
  font: 900 14px/1 var(--ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; animation: betaWobble 2.6s ease-in-out infinite; }
@keyframes betaWobble { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(3deg) scale(1.08); } }
@media (pointer: coarse) { .explore-start { display: none; } }

/* ---------------------------------------------------------------- trophies */
.trophies-btn { border: 1px solid var(--line); background: rgba(0,0,0,.45); padding: 10px 14px; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .2s, border-color .2s; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.trophies-btn:hover { color: #fff; border-color: #ffd23f; }
.trophies-btn .tro-count { font-style: normal; font-size: 12px; padding: 3px 7px; border-radius: 99px; background: rgba(255,210,63,.16); color: #ffd23f; letter-spacing: .04em; }
.trophies { position: fixed; inset: 0; z-index: 460; background: rgba(7,5,5,.82); backdrop-filter: blur(16px); display: grid; place-items: center; padding: 22px; }
.trophies[hidden] { display: none; }
.tro-panel { width: min(1080px, 100%); max-height: calc(100vh - 44px); display: flex; flex-direction: column; background: #110d0e; border: 1px solid var(--line); border-top: 3px solid #ffd23f; box-shadow: 0 30px 100px rgba(0,0,0,.6); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s, transform .45s cubic-bezier(.2,1.3,.4,1); }
.trophies.on .tro-panel { opacity: 1; transform: none; }
.tro-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 30px 6px; }
.tro-head .eyebrow::after { display: none; }
.tro-head h2 { font: 400 50px/1 var(--display); margin: 10px 0 0; letter-spacing: .02em; }
.tro-close { width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 18px; cursor: pointer; }
.tro-close:hover { color: #fff; border-color: #ffd23f; }
#trophies-body { overflow-y: auto; padding: 8px 30px 26px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.tro-top { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 14px 30px; align-items: end; margin: 10px 0 18px; }
.tro-name small, .tro-stats small, .tro-records small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tro-name input { width: 100%; margin-top: 6px; padding: 10px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #fff; font: 400 24px var(--display); letter-spacing: .04em; outline: none; }
.tro-name input:focus { border-color: #ffd23f; }
.tro-stats { display: flex; gap: 34px; justify-content: flex-end; }
.tro-stats b { display: block; font: 400 34px/1 var(--display); color: #fff; }
.tro-stats b i { font-style: normal; font-size: 20px; color: var(--ink-3); }
.tro-bar { grid-column: 1 / -1; height: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.tro-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ffd23f); box-shadow: 0 0 16px rgba(255,210,63,.6); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tro-chips button { padding: 7px 12px; border: 1px solid rgba(var(--g), .35); background: rgba(var(--g), .06); color: var(--ink-2); font: 800 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.tro-chips button:hover { color: #fff; border-color: rgba(var(--g), .8); }
.tro-chips button[aria-pressed="true"] { background: rgba(var(--g), .9); border-color: rgb(var(--g)); color: #111; }
.tro-sec { margin-bottom: 26px; }
.tro-sec > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(var(--g), .35); padding-bottom: 8px; margin-bottom: 12px; }
.tro-sec h3 { margin: 0; font: 400 28px/1 var(--display); letter-spacing: .04em; color: rgb(var(--g)); }
.tro-sec > header > span { font-weight: 800; color: var(--ink-2); letter-spacing: .08em; }
.tro-meta { margin: 0 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.tro-records { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; }
.tro-records li { padding: 9px 14px; background: rgba(var(--g), .08); border-left: 3px solid rgb(var(--g)); }
.tro-records b { font: 400 24px/1.1 var(--display); color: #fff; letter-spacing: .03em; }
.tro-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; }
.tro-badge { display: flex; align-items: center; gap: 12px; padding: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); position: relative; transition: transform .2s, border-color .2s; }
.tro-badge:hover { transform: translateY(-2px); border-color: rgba(var(--g), .5); }
.tro-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; font-size: 24px; background: rgba(255,255,255,.06); filter: grayscale(1) brightness(.6); opacity: .7; }
.tro-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tro-text b { font-size: 15px; letter-spacing: .03em; color: var(--ink-2); }
.tro-text small { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.tro-text em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--g)); }
.tro-state { margin-left: auto; align-self: flex-start; font-size: 12px; opacity: .45; }
.tro-badge.got { background: linear-gradient(135deg, rgba(var(--g), .16), rgba(255,255,255,.02) 70%); border-color: rgba(var(--g), .4); }
.tro-badge.got .tro-icon { filter: none; opacity: 1; background: linear-gradient(135deg, rgba(var(--g), .9), rgba(var(--g), .45)); box-shadow: 0 0 18px rgba(var(--g), .35); }
.tro-badge.got .tro-text b { color: #fff; }
.tro-badge.got .tro-state { color: rgb(var(--g)); opacity: 1; font-weight: 900; font-size: 15px; }
.tro-badge.secret .tro-icon { font: 400 24px var(--display); color: var(--ink-3); }
.tro-soon, .tro-note { color: var(--ink-3); font-size: 14px; }
.tro-note { margin: 4px 0 0; text-align: center; letter-spacing: .04em; }
@media (max-width: 760px) {
  .tro-top { grid-template-columns: 1fr; } .tro-stats { justify-content: flex-start; gap: 22px; }
  .tro-head h2 { font-size: 38px; } .trophies-btn b { display: none; }
}
.spin-btn { margin-top: 22px; pointer-events: auto; border: 1px solid var(--line); background: rgba(0,0,0,.45); padding: 10px 16px; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: color .2s, border-color .2s; }
.spin-btn:hover { color: #fff; border-color: #ffd23f; }
.world:not(.revealed) .spin-btn { opacity: 0; }
