@font-face { font-family: 'Grenze Gotisch'; src: url(fonts/GrenzeGotisch-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #08040e;
  --violet: #3a2363;
  --violet-hi: #6b46b8;
  --ghost: #8ff6ff;
  --gold-1: #ffe58a;
  --gold-2: #f3a92a;
  --blood: #e2334a;
  --paper: #e7e5e0;
  --paper-ink: #3d3a44;
  --folder: #1c2a44;
  --text: #f1ecff;
  --muted: #c9c3d6;
  --nav-h: 110px;
  --display: 'Grenze Gotisch', Georgia, serif;
  --sans: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.45; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.title-script, .ribbon, .ribbon-s { font-family: var(--display); font-weight: 700; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; padding: 0 26px;
  background: linear-gradient(to bottom, rgba(4, 2, 8, .85), rgba(4, 2, 8, 0));
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 74px; height: 74px; border-radius: 16px; border: 3px solid #f3e9d2; box-shadow: 0 0 0 2px #1a0d14, 0 6px 14px rgba(0, 0, 0, .5); }
.brand b { display: block; font-size: 19px; font-weight: 400; }
.brand small { display: block; font-size: 11px; font-weight: 700; }
.links { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 4.6vw, 76px); }
.links a { display: flex; align-items: center; gap: 12px; font-size: 17px; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.links a:hover, .links a.on { color: #fff; }
.links .ava {
  position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 35%, #3b2a5c, #120a20); border: 2px solid #1d1530; transition: border-color .2s, box-shadow .2s;
}
.links a.on .ava { border-color: var(--blood); box-shadow: 0 0 0 1px #000, 0 0 12px rgba(226, 51, 74, .5); }
.lang { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--muted); }
.lang:hover { color: #fff; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 2px solid #3a2a55; border-radius: 10px; }
.burger i, .burger i::before, .burger i::after { display: block; width: 20px; height: 2px; background: #fff; margin: auto; position: relative; content: ''; }
.burger i::before { position: absolute; top: -6px; } .burger i::after { position: absolute; top: 6px; }

/* ---------- pages ---------- */
.pages { height: 100vh; height: 100svh; overflow-y: auto; scroll-behavior: smooth; }
.page {
  position: relative; height: 100vh; height: 100svh; min-height: 680px; scroll-snap-align: start; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 10px) 24px 60px;
}
.bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.bg::after { content: ''; position: absolute; inset: 0; background: var(--shade, rgba(8, 4, 16, .6)); }
.page > :not(.bg) { position: relative; z-index: 1; }
.scroll-down { position: absolute !important; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4 !important; width: 44px; height: 44px; animation: bob 1.8s ease-in-out infinite; opacity: .85; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- sprites ---------- */
.sprite { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; animation: play var(--dur, 1s) steps(var(--n)) infinite; }
@keyframes play { from { background-position-x: 0; } to { background-position-x: calc(-1 * var(--sheet-w)); } }
.sprite.still { animation: none; }
.px { image-rendering: pixelated; }

/* ---------- home ---------- */
#home { display: block; padding: 0; }
#home .bg { background: var(--ink) url(brand/hero.jpg) 55% 100% / auto 88% no-repeat; --shade: linear-gradient(var(--ink) 4%, rgba(8, 4, 14, .25) 30%, transparent 55%, rgba(8, 4, 14, .55) 88%, var(--ink)); }
.logo { position: absolute !important; top: calc(var(--nav-h) - 6px); left: 50%; transform: translateX(-50%); z-index: 3 !important; margin: 0; line-height: 0; }
.logo img { width: clamp(260px, 27vw, 400px); height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .65)); }
.downloads {
  position: absolute !important; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 3 !important;
  display: grid; grid-template-columns: 230px 230px; grid-template-rows: 78px 54px; gap: 14px 14px; padding: 16px 20px 18px;
  background: rgba(14, 8, 20, .72); border-radius: 12px;
}
.store {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px;
  background: #050305; border: 1.5px solid #8b8390; border-radius: 6px; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.store:hover { border-color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .2); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 11px; color: #ddd; letter-spacing: .3px; }
.store b { display: block; font-size: 20px; font-weight: 400; line-height: 1.05; }
.store.plain b { font-size: 15px; letter-spacing: .4px; text-transform: uppercase; }
/* The main call to action: Steam, full width, in Steam blue. */
.store.main {
  grid-column: 1 / -1; gap: 16px; border: 0; border-radius: 8px; color: #fff;
  background: linear-gradient(180deg, #47bfff 0%, #1a6fd6 100%); box-shadow: 0 6px 0 #0d3f86, 0 12px 30px rgba(26, 111, 214, .45);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.store.main:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 0 #0d3f86, 0 16px 36px rgba(71, 191, 255, .55); border: 0; }
.store.main:active { transform: translateY(4px); box-shadow: 0 2px 0 #0d3f86, 0 6px 16px rgba(26, 111, 214, .45); }
.store.main svg { width: 42px; height: 42px; }
.store.main small { font-size: 13px; color: #e3f4ff; letter-spacing: 1.5px; text-transform: uppercase; }
.store.main b { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .5px; }

/* ---------- shared paper / folder / polaroid ---------- */
.folder { background: var(--folder); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(255, 255, 255, .04); position: relative; }
.folder::before { content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(170, 190, 220, .25); border-radius: 10px; pointer-events: none; }
.paper { background: var(--paper); color: var(--paper-ink); box-shadow: 0 2px 0 #b9b5ad, 0 14px 40px rgba(0, 0, 0, .4); background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 4px 4px; }
.polaroid { background: #f2f0eb; padding: 16px 16px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); position: relative; }
.clip { position: absolute; top: -26px; left: 30px; width: 30px; height: 70px; border: 4px solid #a2a9b3; border-radius: 15px; transform: rotate(-24deg); z-index: 3; }
.clip::after { content: ''; position: absolute; inset: 6px 4px 16px; border: 3px solid #cfd4da; border-radius: 10px; }
.clip-r { left: auto; right: 30px; transform: rotate(24deg); }
.title-script { font-weight: 900; color: #45506e; letter-spacing: 1px; }

/* ---------- content hub ---------- */
#hub { display: block; padding: 0; }
#hub .bg { background-image: url(assets/bg/hall_sparks.jpg); --shade: rgba(14, 20, 40, .74); }
.hub-title { position: absolute !important; top: calc(var(--nav-h) + 18px); left: 0; margin: 0; font-size: clamp(48px, 5.4vw, 78px); color: #c2c9dc; text-shadow: 0 4px 0 #0b0f1e; line-height: 1; padding-left: 4px; }
.cards { position: absolute !important; inset: 0; }
.card { position: absolute; width: clamp(250px, 30vw, 440px); transition: transform .25s; cursor: pointer; }
.card .photo { position: relative; aspect-ratio: .86; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #2f4877, #17264a 72%); }
.card:nth-child(1) { left: 1%; top: 33%; transform: rotate(-6deg); }
.card:nth-child(2) { left: 34%; top: 19%; transform: rotate(4deg); }
.card:nth-child(3) { right: 1%; top: 26%; transform: rotate(-4deg); }
.card:hover { z-index: 5; transform: rotate(0) translateY(-10px) scale(1.02); }
.card .ribbon {
  position: absolute; left: 12%; right: 10%; bottom: 13%; padding: 8px 0; text-align: center; background: rgba(12, 10, 18, .92); transform: rotate(-3deg);
  font-size: clamp(30px, 3vw, 44px); font-weight: 900; color: #e8e9f2; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.ribbon .go { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blood); display: grid; place-items: center; font-size: 22px; color: #fff; font-family: var(--sans); }

/* ---------- follow ---------- */
#follow .bg { background-image: url(assets/bg/gacha_hall.jpg); --shade: rgba(14, 22, 40, .78); }
.follow { width: min(1320px, 100%); min-height: 620px; display: grid; grid-template-columns: 1fr 390px; align-items: center; margin-top: -10px; padding: 50px 40px 50px 6px; }
.tiles { align-self: stretch; padding: 60px 48px; display: grid; grid-template-columns: repeat(4, 164px); gap: 36px 38px; align-content: start; margin: 0 -30px 0 0; }
.tile { background: #f6f4ef; padding: 7px 7px 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); text-align: center; transition: transform .15s; position: relative; }
.tile:nth-child(4n+1) { transform: rotate(-.6deg); } .tile:nth-child(4n+3) { transform: rotate(-.4deg); } .tile:nth-child(4n) { transform: rotate(-1.4deg); }
.tile:hover { transform: translateY(-4px); }
.tile .ic { aspect-ratio: 1.15; display: grid; place-items: center; background: linear-gradient(#5d7594, #8fa3bc); }
.tile .ic svg { width: 54%; height: 54%; fill: #fff; }
.tile span { display: block; margin-top: 8px; font-size: 17px; color: #2b2433; }
.mascot { transform: rotate(3deg); padding: 16px; }
.mascot .binder { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); width: 92px; height: 50px; background: linear-gradient(#3f5a7d, #263d5c); border-radius: 8px 8px 4px 4px; box-shadow: 0 4px 0 #1a2a42; z-index: 3; }
.mascot .binder::before { content: ''; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 28px; border: 5px solid #3f5a7d; border-bottom: 0; border-radius: 18px 18px 0 0; }
.mascot .photo { position: relative; aspect-ratio: .64; background: radial-gradient(circle at 50% 62%, #3a5277, #16223c 75%); display: grid; place-items: end center; overflow: hidden; }
.mascot h3 { position: absolute; top: 14%; left: 0; right: 0; margin: 0; text-align: center; font-size: clamp(38px, 3.6vw, 54px); color: #e8ecf5; text-shadow: 0 4px 0 #0d1427; }
.footer { position: absolute !important; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; line-height: 1.4; color: #fff; }
.footer button, .footer a { text-decoration: underline; font-size: 13px; }

/* ---------- store dock ---------- */
.dock { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: center; transition: transform .3s, opacity .3s; }
.dock.hide { opacity: 0; pointer-events: none; transform: translate(40px, -50%); }
.dock .tab { width: 20px; height: 46px; background: #2e2c33; border-radius: 4px 0 0 4px; display: grid; place-items: center; }
.dock .box { background: #c8c4bd; padding: 26px 8px 26px 16px; display: grid; gap: 14px; border-radius: 6px 0 0 6px; box-shadow: -4px 6px 16px rgba(0, 0, 0, .4); }
.dock .box a { display: flex; align-items: center; gap: 8px; width: 104px; height: 36px; padding: 0 8px; border-radius: 5px; font-size: 11px; line-height: 1.05; color: #fff; background: #2c2a30; border: 1px solid #6c6870; }
.dock .box a.main { background: linear-gradient(180deg, #47bfff, #1a6fd6); border-color: #8fd6ff; height: 44px; }
.dock .box a svg { width: 18px; height: 18px; flex: none; }
.dock.shut .box { display: none; }
.dock.shut .tab svg { transform: scaleX(-1); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 10px; background: rgba(20, 12, 34, .95); border: 2px solid var(--violet-hi); color: #fff;
  font-family: var(--display); font-size: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .links a span.t { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 70px; }
  .nav { padding: 0 14px; }
  .brand img { width: 48px; height: 48px; border-radius: 10px; }
  .brand small { font-size: 10px; }
  .burger { display: block; }
  .links {
    position: fixed; top: var(--nav-h); right: 12px; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(12, 7, 22, .97); border: 2px solid #2f2048; border-radius: 12px; padding: 10px; display: none;
  }
  .links.open { display: flex; }
  .links a span.t { display: inline; }
  .links a { padding: 6px 14px 6px 6px; }
  .lang { padding: 8px 6px; }
  .pages { scroll-snap-type: none; }
  .page { height: auto; min-height: 100svh; flex-direction: column; padding: calc(var(--nav-h) + 16px) 14px 70px; }
  #home { height: 100svh; }
  .logo { top: calc(var(--nav-h) + 6px); }
  .downloads { width: calc(100% - 28px); bottom: 80px; grid-template-columns: 1fr 1fr; grid-template-rows: 64px 50px; gap: 10px 8px; padding: 10px 10px 14px; }
  .store.main b { font-size: 26px; } .store.main svg { width: 32px; height: 32px; }
  .store { padding: 0 8px; gap: 8px; }
  .store b { font-size: 16px; } .store.plain b { font-size: 12px; } .store svg { width: 24px; height: 24px; }
  .follow { grid-template-columns: 1fr; gap: 70px; padding: 30px 16px; min-height: 0; }
  #hub { height: auto; display: flex; }
  .hub-title { position: static !important; padding: 0; }
  .cards { position: static !important; display: grid; gap: 40px; justify-items: center; margin: 30px 0 10px; }
  .card { position: relative; width: min(300px, 82vw); left: auto !important; right: auto !important; top: auto !important; }
  .tiles { padding: 26px 18px; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
  .mascot { margin: 20px auto 0; width: min(320px, 86vw); }
  .dock { display: none; }
  .footer { position: static !important; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .sprite, .scroll-down { animation: none !important; }
  .pages { scroll-behavior: auto; }
}

.dock .box a small { display: block; font-size: 7px; }
.dock .box a b { display: block; font-size: 11px; font-weight: 400; }
@media (max-width: 860px) {
  #hub { padding: calc(var(--nav-h) + 16px) 14px 70px; }
}

/* ---------- page flip (desktop) ---------- */
@media (min-width: 861px) {
  .pages { overflow: hidden; scroll-behavior: auto; }
  .track { transition: transform .9s cubic-bezier(.7, 0, .25, 1); will-change: transform; }
  .anim { transition: translate .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease; transition-delay: var(--d, .35s); }
  .page:not(.active) .anim { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
  .page:not(.active) .anim-l { translate: -120px 0; }
  .page:not(.active) .anim-r { translate: 120px 0; }
  .page:not(.active) .anim-u { translate: 0 90px; }
  .page:not(.active) .anim-d { translate: 0 -60px; }
}

/* ---------- content hub detail ---------- */
#hub .detail { display: none; }
#hub:not([data-view="cards"]) .cards { display: none; }
#hub:not([data-view="cards"]) .detail { display: block; }
#hub:not([data-view="cards"]) .scroll-down { display: none; }
.card { padding: 16px 16px 18px; text-align: left; font: inherit; }
.detail { position: absolute !important; inset: 0; animation: detail-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes detail-in { from { opacity: 0; translate: 0 30px; } }
.detail .big { position: absolute; left: 15%; top: 13.5%; width: 30%; transform: rotate(-2deg); padding: 18px 18px 26px; z-index: 2; }
.detail .big .clip { left: 22px; top: -24px; }
.detail .big .photo { aspect-ratio: .78; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 48%, #2f4877, #17264a 72%); }
.sheet { position: absolute; left: 43.5%; top: 16%; width: 40.5%; height: 58%; padding: 4.5% 4% 3% 5%; transform: rotate(-.6deg); display: flex; flex-direction: column; }
.sheet .close { position: absolute; top: 14px; right: 26px; width: 40px; height: 40px; }
.sheet .tag {
  align-self: center; margin-bottom: 26px; padding: 6px 48px; font-size: clamp(22px, 2vw, 30px); color: #222;
  background: #dcdad5; clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 92%); box-shadow: 0 2px 0 rgba(0, 0, 0, .1);
}
.ribbon-s {
  align-self: flex-start; margin: 4px 0 8px -10px; padding: 4px 26px 6px; font-family: var(--display); font-size: 19px; letter-spacing: .5px;
  color: #e9eef6; background: #33445e; clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%); transform: rotate(-2deg);
}
.ruled { margin: 4px 0 22px; font-size: 17px; line-height: 28px; color: #2e2d33; text-indent: 30px; background: repeating-linear-gradient(transparent 0 27px, #cfccc6 27px 28px); }
.ruled b { color: #33445e; }
.attrs { display: grid; gap: 10px; align-content: start; }
.attr { display: grid; grid-template-columns: 26px 92px auto; align-items: center; gap: 8px; padding: 6px 14px; width: max-content; background: #dad8d3; font-size: 17px; color: #333; }
.attr svg { width: 20px; height: 20px; fill: #3a3a3a; }
.attr .marks { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid #b5b2ac; }
.attr .marks i { width: 16px; height: 16px; border: 2px solid #3a3a3a; border-radius: 3px; transform: skewX(-8deg); opacity: .25; }
.attr .marks i.on { opacity: 1; background: linear-gradient(135deg, transparent 45%, #3a3a3a 45% 60%, transparent 60%); }
.loot-row { display: flex; flex-wrap: wrap; gap: 6px; }
.loot-row span { background-color: #cfcdc8; border-radius: 4px; }
.sheet .count { margin-top: auto; align-self: flex-end; font-size: 24px; color: #333; }
.sheet .count em { font-style: normal; color: #c4242f; }
.strip { position: absolute; left: 0; right: 0; bottom: 7%; height: 130px; display: flex; align-items: center; gap: 18px; padding: 0 2.4%; background: linear-gradient(rgba(10, 14, 26, .55), rgba(10, 14, 26, .75)); }
.thumbs { flex: 1; display: flex; gap: 2.4%; overflow: hidden; scroll-behavior: smooth; }
.thumb { flex: none; width: 104px; height: 104px; position: relative; overflow: hidden; border: 3px solid #3b4a66; background: radial-gradient(circle at 50% 45%, #3a5480, #1b2a4b 75%); }
.thumb.on { border-color: #e9cf8a; box-shadow: 0 0 0 2px #2a1e08; }
.thumb:hover { border-color: #8aa0c4; }
.arrow { width: 48px; height: 80px; flex: none; }
.arrow::before { content: ''; display: block; width: 34px; height: 34px; margin: auto; border: solid #c9cfdb; border-width: 0 6px 6px 0; transform: rotate(135deg); }
.arrow.next::before { transform: rotate(-45deg); }
.arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 860px) {
  #hub:not([data-view="cards"]) { min-height: 100svh; }
  .detail { position: relative !important; inset: auto; display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 24px; width: 100%; }
  #hub:not([data-view="cards"]) .hub-title { right: auto; font-size: 44px; }
  .sheet { transform: none; }
  .attr { width: auto; }
  #hub[data-view="cards"] .detail { display: none !important; }
  .detail .big, .sheet { position: relative; left: auto; top: auto; width: 100%; height: auto; }
  .detail .big { width: min(300px, 80vw); justify-self: center; }
  .sheet { padding: 40px 18px 18px; }
  .attr { grid-template-columns: 22px 80px auto; }
  .strip { position: relative; bottom: auto; height: 96px; padding: 0 4px; gap: 6px; }
  .thumb { width: 72px; height: 72px; }
  .arrow { width: 28px; }
  .arrow::before { width: 18px; height: 18px; border-width: 0 4px 4px 0; }
}
@media (min-width: 861px) {
  /* Like the reference: the category title hangs off the left edge instead of running under the photo. */
  #hub:not([data-view="cards"]) .hub-title { left: auto; right: 86%; text-align: right; white-space: nowrap; font-size: clamp(44px, 4.6vw, 66px); }
}

/* ---------- content hub: art cards ---------- */
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(6, 10, 24, .75); pointer-events: none; }
.card .ribbon {
  left: -6%; right: 18%; bottom: 13%; padding: 10px 0 12px; gap: 12px; background: rgba(14, 14, 20, .86); color: #f1efe8;
  font-size: 40px; text-shadow: 0 2px 0 #000; transform: rotate(-4deg);
  clip-path: polygon(0 12%, 4% 0, 30% 6%, 62% 0, 100% 8%, 97% 50%, 100% 92%, 70% 100%, 38% 94%, 6% 100%, 2% 60%);
}
.card:nth-child(2) .ribbon { left: 16%; right: -6%; transform: rotate(-2deg); }
.card:nth-child(3) .ribbon { left: 20%; right: -8%; transform: rotate(3deg); }
.ribbon .go { width: 30px; height: 30px; border: 2px solid #d84a55; font-size: 20px; line-height: 1; }

/* ---------- content hub: fixed stage (desktop) ---------- */
@media (min-width: 861px) {
  .hub-stage { position: absolute !important; left: 50%; top: 0; width: 1500px; height: 900px; transform: translateX(-50%) scale(var(--fit, 1)); transform-origin: 50% 0; }
  .hub-title { top: 120px; left: 60px; font-size: 76px; }
  #hub:not([data-view="cards"]) .hub-title { left: auto; right: calc(100% - 180px); font-size: 66px; top: 130px; }
  .card { width: 440px; }
  .card:nth-child(1) { left: 30px; top: 300px; }
  .card:nth-child(2) { left: 520px; top: 180px; }
  .card:nth-child(3) { left: 1010px; right: auto; top: 240px; }
  .detail .big { left: 220px; top: 120px; width: 460px; }
  .detail .big .photo { aspect-ratio: auto; height: 520px; }
  .sheet { left: 650px; top: 155px; width: 610px; height: 540px; padding: 48px 46px 30px 62px; }
  .strip { left: -400px; right: -400px; top: 745px; bottom: auto; height: 140px; justify-content: center; padding: 0; gap: 30px; }
  .thumbs { flex: none; width: 1230px; gap: 30px; }
  .thumb { width: 110px; height: 110px; }
}

/* ---------- hero full art ---------- */
.hero-shot { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-shot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(8, 12, 30, .6); }
.hero-shot img { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); max-width: 94%; max-height: 90%; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); z-index: 1; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }

/* ---------- drawn paper (tools/draw_paper.py) ---------- */
/* The texture and the paper under it are pseudo-elements at negative z, so the sheet's own content stays on top. */
.paper { background: none; box-shadow: none; position: relative; }
.paper::after, .paper::before { content: ''; position: absolute; pointer-events: none; background-size: 100% 100%; background-repeat: no-repeat; }
.paper::after { inset: 0; z-index: -1; background-image: url(paper/board.webp); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
.sheet::after { background-image: url(paper/sheet.webp); }
.sheet::before { inset: 14px -16px -14px 10px; z-index: -2; background-image: url(paper/sheet-back.webp); transform: rotate(1.4deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.sheet .tag { background: url(paper/tag.webp) center / 100% 100% no-repeat; clip-path: none; box-shadow: none; padding: 10px 56px; transform: rotate(-1.5deg); }

/* ---------- drawn polaroids (tools/draw_paper.py frame*.webp) ---------- */
.polaroid { background: none; box-shadow: none; isolation: isolate; }
.paper { isolation: isolate; }
.polaroid::after, .polaroid::before { content: ''; position: absolute; pointer-events: none; background-size: 100% 100%; background-repeat: no-repeat; }
.polaroid::after { inset: 0; z-index: -1; background-image: url(paper/frame.webp); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.polaroid::before { inset: 9px -9px -13px 7px; z-index: -2; background-image: url(paper/frame-back.webp); transform: rotate(2.6deg); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.polaroid .photo, .polaroid .shot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 40px rgba(0, 0, 0, .35); }
.card .photo { box-shadow: none; }
/* Printed photos curl a little: a slight 3D tilt on top of each card's rotation, like the reference. */
@media (min-width: 861px) {
  .card:nth-child(1) { transform: perspective(1100px) rotateY(9deg) rotateX(3deg) rotate(-5deg); }
  .card:nth-child(2) { transform: perspective(1100px) rotateY(-5deg) rotateX(-2deg) rotate(3deg); }
  .card:nth-child(3) { transform: perspective(1100px) rotateY(-9deg) rotateX(2deg) rotate(-3deg); }
  .card:nth-child(n):hover { transform: perspective(1100px) rotate(0) translateY(-10px) scale(1.02); }
}
