/* AsgardMC. Flat night sky; gold for the name; the Bifröst colours only ever appear as outlines. */
@font-face {
  font-family: "Monocraft";
  src: url("/assets/fonts/monocraft.woff2") format("woff2");
  font-display: swap;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #070a17;
  --bg-2: #0c1129;
  --panel: rgba(16, 21, 46, 0.72);
  --line: rgba(170, 185, 255, 0.11);
  --line-2: rgba(170, 185, 255, 0.2);
  --text: #eceeff;
  --muted: #9aa2c6;
  --dim: #636b91;
  --gold: #f5c451;
  --gold-hi: #ffe39a;
  --ice: #7ae7ff;
  --violet: #a77bff;
  --ember: #ff8a52;
  --life: #6cf0a0;
  --bifrost: conic-gradient(from var(--a), #7ae7ff, #a77bff, #ffcf5a, #7ae7ff);
  --wrap: 1180px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 "Sora", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(167, 123, 255, 0.4); }
h2 { margin: 0 0 22px; font: 900 clamp(1.9rem, 3.6vw, 2.7rem)/1.1 "Cinzel", serif; letter-spacing: 0.02em; }
h3 { margin: 0 0 6px; font: 600 18px/1.3 "Sora", sans-serif; }
.mc { font-family: "Monocraft", monospace; }

/* ---------- sky ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.glow { position: absolute; z-index: -1; pointer-events: none; left: 40%; top: -20vh; width: 70vw; height: 80vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 120, 255, 0.16), rgba(80, 220, 200, 0.06) 60%, transparent);
  filter: blur(30px); animation: glow 18s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-12vw, 6vh) scale(1.1); } }

/* ---------- animated Bifröst outline (shared) ---------- */
.btn-bifrost, .ip-card, .store, .game { position: relative; isolation: isolate; }
.btn-bifrost::before, .ip-card::before, .store::before, .game::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: var(--bifrost);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --a: 360deg; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 30px;
  padding: 16px max(24px, calc((100vw - var(--wrap)) / 2)); border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s; }
.nav.scrolled { background: rgba(7, 10, 23, 0.82); backdrop-filter: blur(14px); border-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 21px/1 "Cinzel", serif; letter-spacing: 0.08em; }
.brand img { transition: transform 0.6s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand em, .foot-brand em { font-style: normal; color: var(--gold); margin-left: 2px; }
.links { display: flex; gap: 26px; margin-right: auto; font-weight: 500; font-size: 15px; color: var(--muted); }
.links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.links a:hover::after, .links a[aria-current]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.ip-chip { display: flex; align-items: center; gap: 9px; font: 13px/1 "Monocraft", monospace;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color 0.2s, transform 0.2s; }
.ip-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.burger i:nth-child(1) { top: 13px; } .burger i:nth-child(2) { top: 19px; } .burger i:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; border: 0;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform 0.18s, box-shadow 0.25s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-gold { color: #2a1700; background: var(--gold); box-shadow: inset 0 -4px 0 #b9781f, 0 10px 26px -12px rgba(245, 196, 81, 0.8); padding: 12px 22px 14px; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:active { box-shadow: inset 0 -1px 0 #b9781f; padding: 13px 22px; }
.btn-bifrost { background: var(--bg-2); color: var(--text); }
.btn-bifrost:hover { box-shadow: 0 0 28px -6px rgba(167, 123, 255, 0.65); }
.btn-bifrost:hover::before { animation-duration: 1.6s; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--gold); }
.btn-discord { background: #5865f2; color: #fff; padding: 10px 16px; font-size: 14px; }
.btn-discord:hover { box-shadow: 0 10px 28px -8px rgba(88, 101, 242, 0.8); }

/* ---------- status dot ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; position: relative; }
.dot.on { background: var(--life); box-shadow: 0 0 10px var(--life); }
.dot.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--life); animation: ping 1.8s ease-out infinite; }
.dot.off { background: #ffb547; }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- intro (page-load stagger) ---------- */
.intro { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 40px; min-height: min(calc(100vh - 70px), 760px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.eyebrow { margin: 0 0 4px; font: 13px/1 "Monocraft", monospace; color: var(--ice); }
.wordmark { margin: 0 0 6px; font: 900 clamp(3.4rem, 8.4vw, 7.4rem)/1 "Cinzel", serif; letter-spacing: 0.04em; color: var(--gold); white-space: nowrap;
  text-shadow: 0 1px 0 #e3aa3c, 0 2px 0 #d29a33, 0 3px 0 #bf882b, 0 4px 0 #ab7724, 0 5px 0 #94661e, 0 6px 0 #7a5418, 0 7px 0 #5f4113,
    0 18px 30px rgba(0, 0, 0, 0.55); }
.wordmark span { display: inline-block; opacity: 0; transform: translateY(-60px) rotate(-10deg);
  animation: drop 0.9s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(var(--i) * 70ms + 250ms); }
@keyframes drop { 70% { opacity: 1; } to { opacity: 1; transform: none; } }
.wordmark.ready:hover span { animation: bob 0.5s ease forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes bob { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-10px); opacity: 1; } 100% { transform: none; opacity: 1; } }
.sub { margin: 10px 0 28px; font-size: clamp(18px, 1.6vw, 21px); color: #c9cdea; line-height: 1.5; }
.ip-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 470px;
  padding: 15px 15px 15px 22px; border-radius: 16px; background: var(--panel); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.ip-card::before { opacity: 0.75; animation-duration: 10s; }
.ip-label { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px; }
.ip-big { font: clamp(15px, 1.8vw, 19px)/1.25 "Monocraft", monospace; color: var(--text); }
.status { display: flex; align-items: center; gap: 10px; margin: 14px 0 24px 4px; color: var(--muted); font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-art { position: relative; perspective: 1200px; }
.tilt { transition: transform 0.5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.halo { position: absolute; inset: 10% 6% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 196, 81, 0.22), transparent 75%);
  filter: blur(12px); animation: breathe 7s ease-in-out infinite; }
.island { position: relative; width: 100%; height: auto; filter: brightness(1.12) saturate(1.1) drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite; will-change: transform; }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes breathe { 50% { transform: scale(1.07); opacity: 0.75; } }
.motes { position: absolute; inset: 0; pointer-events: none; }
.motes span { position: absolute; background: var(--gold-hi); box-shadow: 0 0 8px var(--gold); opacity: 0; animation: mote linear infinite; }
@keyframes mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(-150px); opacity: 0; } }

/* ---------- server list replica ---------- */
.serverlist { max-width: 760px; margin: 10px auto 0; padding: 0 24px; }
.sl-caption { margin: 0 0 10px; text-align: center; font-size: 13px; color: var(--dim); }
.sl-entry { display: flex; gap: 12px; padding: 12px; border: 2px solid #fff; outline: 2px solid #000; outline-offset: -4px;
  background: url("/assets/img/mc-bg.png") 0 0 / 32px 32px; image-rendering: pixelated; box-shadow: var(--shadow); }
.sl-icon { width: 64px; height: 64px; flex: none; background: #0b1026; }
.sl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 16px; line-height: 20px; }
.sl-row { display: flex; align-items: center; gap: 12px; }
.sl-row > .mc:first-child { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-right: auto; }
.sl-count { color: #aaa; text-shadow: 2px 2px 0 #2a2a2a; }
.sl-motd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-motd .c6 { color: #ffaa00; text-shadow: 2px 2px 0 #3f2a00; }
.sl-motd .c8 { color: #555; text-shadow: 2px 2px 0 #151515; }
.sl-motd .cf { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.sl-motd .cb { color: #55ffff; text-shadow: 2px 2px 0 #153f3f; }
.sl-motd .c7 { color: #aaa; text-shadow: 2px 2px 0 #2a2a2a; }
.sl-motd .ce { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.sl-motd .ca { color: #55ff55; text-shadow: 2px 2px 0 #153f15; }
.sl-motd .b { font-weight: 700; letter-spacing: 1px; }
.sl-ping { display: flex; align-items: flex-end; gap: 1px; height: 16px; }
.sl-ping i { width: 3px; background: #333; box-shadow: 1px 1px 0 #111; }
.sl-ping i:nth-child(1) { height: 4px; } .sl-ping i:nth-child(2) { height: 7px; } .sl-ping i:nth-child(3) { height: 10px; }
.sl-ping i:nth-child(4) { height: 13px; } .sl-ping i:nth-child(5) { height: 16px; }
.sl-ping.scan i { animation: scan 0.9s steps(1) infinite; }
.sl-ping.scan i:nth-child(2) { animation-delay: 0.15s; } .sl-ping.scan i:nth-child(3) { animation-delay: 0.3s; }
.sl-ping.scan i:nth-child(4) { animation-delay: 0.45s; } .sl-ping.scan i:nth-child(5) { animation-delay: 0.6s; }
@keyframes scan { 0%, 30% { background: #55ff55; } 31%, 100% { background: #333; } }
.sl-ping.good i { background: #55ff55; }
.sl-ping.bad i:nth-child(1) { background: #ff5555; }

/* ---------- games ---------- */
[hidden] { display: none !important; }
.games { max-width: var(--wrap); margin: 110px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s; }
.game::before { opacity: 0; transition: opacity 0.35s; }
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game:hover::before { opacity: 1; }
.game-art { aspect-ratio: 16 / 8.5; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.game:hover .game-art img { transform: scale(1.14) translate(-2%, -2%); }
.game-body { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h2 { margin: 2px 0 0; font-size: 32px; }
.game-bw h2 { color: #ffb08a; } .game-sw h2 { color: #b8f2ff; } .game-bb h2 { color: #ffd08a; }
.game-body p { margin: 0; color: var(--muted); }
.game-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; font: 13px/1 "Monocraft", monospace; color: var(--dim); }
.game-meta b { font-weight: 400; color: var(--text); transition: transform 0.25s, color 0.25s; }
.game:hover .game-meta b { color: var(--gold); transform: translateX(4px); }
.badge { align-self: flex-start; font: 12px/1 "Monocraft", monospace; padding: 6px 9px; border-radius: 6px; }
.badge.live { color: #062b17; background: var(--life); }
.badge.live::before { content: "● "; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.badge.soon { color: #001f29; background: var(--ice); }
.later { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------- world ---------- */
.world { position: relative; max-width: var(--wrap); margin: 110px auto 0; height: clamp(380px, 46vw, 560px);
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.world-img { position: absolute; inset: -12% 0; }
.world-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 10, 23, 0.88) 0%, rgba(7, 10, 23, 0.4) 45%, transparent 70%); }
.world-text { position: absolute; z-index: 1; left: 0; bottom: 0; top: 0; display: flex; flex-direction: column; justify-content: center;
  max-width: 440px; padding: 40px 44px; }
.world-text p { margin: 0 0 18px; color: #c9cdea; }
.world-text h2 { margin-bottom: 12px; }
.world-tag { align-self: flex-start; margin-bottom: 10px; font-size: 12px; color: var(--gold); border: 1px solid rgba(245,196,81,0.4); padding: 5px 8px; border-radius: 6px; }
.link { color: var(--gold); font-weight: 600; display: inline-block; transition: transform 0.2s; }
.link:hover { transform: translateX(4px); }

/* ---------- in-game screenshots ---------- */
.screens { max-width: var(--wrap); margin: 110px auto 0; padding: 0 24px; }
.screens-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.screens-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.screen { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.screen img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s, border-color 0.3s; }
.screen:hover img { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow); border-color: var(--line-2); }
.screen:nth-child(2):hover img { transform: translateY(-5px) rotate(0.6deg); }
.screen span { font-size: 13px; color: var(--dim); transition: color 0.2s; }
.screen:hover span { color: var(--gold); }
.screens-row .screen:nth-child(2) { transition-delay: 0.1s; } .screens-row .screen:nth-child(3) { transition-delay: 0.2s; }

/* ---------- join ---------- */
.join { max-width: var(--wrap); margin: 110px auto 0; padding: 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; right: 23px; top: 23px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.6,0,.2,1) 0.2s; opacity: 0.6; }
.steps.in::before { transform: scaleX(1); }
.steps li { position: relative; opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.steps.in li { opacity: 1; transform: none; }
.steps.in li:nth-child(2) { transition-delay: 0.45s; } .steps.in li:nth-child(3) { transition-delay: 0.9s; }
.steps p { margin: 0; color: var(--muted); }
.num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; font-size: 20px; color: #2a1700;
  background: var(--gold); box-shadow: inset 0 -4px 0 #b9781f, 0 0 0 6px var(--bg); position: relative; }
.inline-ip { margin-top: 6px; font-size: 14px; padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--gold-hi); transition: border-color 0.2s; }
.inline-ip:hover { border-color: var(--gold); }

/* ---------- updates ---------- */
.updates { max-width: 860px; margin: 110px auto 0; padding: 0 24px; }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 6px 24px; padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding 0.25s; }
.log li:hover { background: rgba(255, 255, 255, 0.025); padding-left: 12px; }
.log time { font: 13px/1.6 "Monocraft", monospace; color: var(--dim); }
.log h3 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log .tag { font: 11px/1 "Monocraft", monospace; padding: 4px 7px; border-radius: 5px; color: #0b0f24; background: var(--tag); }
.log p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- store ---------- */
.store { max-width: calc(var(--wrap) - 48px); margin: 110px auto 0; padding: 38px 44px; border-radius: 22px; background: var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.store::before { opacity: 0.8; animation-duration: 12s; }
.store h2 { margin-bottom: 6px; }
.store p { margin: 0; color: var(--muted); }
.store p b { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */
.footer { max-width: var(--wrap); margin: 110px auto 0; padding: 34px 24px 44px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { display: block; font: 900 19px/1 "Cinzel", serif; letter-spacing: 0.08em; }
.foot-brand span { font-size: 12px; color: var(--dim); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: flex-end; color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--gold); }
.legal { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12.5px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 10px; background: #11183d; border: 1px solid var(--gold); font-size: 14px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.8); transition: 0.35s cubic-bezier(.2,.8,.2,1); }
.toast b { font: 400 14px "Monocraft", monospace; color: var(--gold-hi); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- gallery page ---------- */
.gallery-page { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 0; }
.gallery-head { margin-bottom: 34px; }
.gallery-head h1 { margin: 0; font: 900 clamp(2.6rem, 6vw, 4.2rem)/1 "Cinzel", serif; color: var(--gold);
  text-shadow: 0 1px 0 #d29a33, 0 2px 0 #ab7724, 0 3px 0 #7a5418, 0 4px 0 #5f4113, 0 14px 24px rgba(0,0,0,0.5); }
.gallery-head p { margin: 14px 0 24px; color: var(--muted); }
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.filters button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color 0.2s; }
.filters button[aria-selected="true"] { color: #2a1700; }
.filters .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--gold); transition: left 0.35s cubic-bezier(.3,1.3,.5,1), width 0.35s cubic-bezier(.3,1.3,.5,1); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.shot { position: relative; margin: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3; animation: pop 0.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 50ms); }
.shot.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: scale(1.06); }
.shot.wide img { object-position: 50% 22%; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px;
  background: linear-gradient(to top, rgba(5,8,20,0.9), transparent); }
.shot figcaption b { font: 700 19px/1.1 "Cinzel", serif; }
.shot figcaption span { font: 12px/1 "Monocraft", monospace; color: var(--dim); white-space: nowrap; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  background: rgba(4, 6, 15, 0.94); backdrop-filter: blur(6px); animation: fade 0.25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 12px; box-shadow: var(--shadow); animation: zoomin 0.35s cubic-bezier(.2,.8,.2,1); }
@keyframes zoomin { from { opacity: 0; transform: scale(0.96); } }
.lightbox figcaption { text-align: center; }
.lightbox figcaption b { display: block; font: 900 24px/1.2 "Cinzel", serif; color: var(--gold); }
.lightbox figcaption span { color: var(--muted); font-size: 15px; }
.lb-nav, .lb-close { border: 0; background: none; color: var(--muted); font-size: 46px; line-height: 1; transition: color 0.2s, transform 0.2s; }
.lb-nav:hover, .lb-close:hover { color: var(--gold); transform: scale(1.1); }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 10px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-art { max-width: 520px; margin: 0 auto; grid-row: 1; width: 100%; }
  .ip-card { width: 100%; text-align: left; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: 1fr 1fr; }
  .game-bb { grid-column: 1 / -1; flex-direction: row; }
  .game-bb .game-art { flex: 1 1 52%; aspect-ratio: auto; }
  .game-bb .game-body { flex: 1 1 48%; }
}
@media (max-width: 820px) {
  .links { position: fixed; inset: 62px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 24px 18px; background: rgba(7,10,23,0.97);
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.3s; }
  .links.open { transform: none; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .burger { display: block; }
  .ip-chip { display: none; }
  .games, .steps, .screens-row { grid-template-columns: 1fr; }
  .game-bb { grid-column: auto; flex-direction: column; }
  .game-bb .game-art { flex: none; aspect-ratio: 16 / 8.5; }
  .steps::before { left: 23px; right: auto; top: 23px; bottom: 23px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); transform: scaleY(0); transform-origin: top; }
  .steps.in::before { transform: scaleY(1); }
  .steps li { padding-left: 70px; }
  .num { position: absolute; left: 0; top: 0; }
  .world { margin-inline: 16px; height: 520px; }
  .world::after { background: linear-gradient(0deg, rgba(7,10,23,0.95) 0%, rgba(7,10,23,0.5) 50%, transparent 75%); }
  .world-text { top: auto; padding: 26px; }
  .store { flex-direction: column; align-items: flex-start; margin-inline: 16px; padding: 30px 26px; }
  .log li { grid-template-columns: 1fr; }
  .log p { grid-column: 1; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 480px) {
  .btn-discord span { display: none; }
  .ip-card { flex-direction: column; align-items: stretch; }
  .sl-text { font-size: 13px; line-height: 17px; }
  .sl-icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .intro, .wordmark span, .steps li { opacity: 1 !important; transform: none !important; }
}
