@font-face { font-family: Pixelify; src: url(/fonts/PixelifySans-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/Outfit-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/Outfit-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

/* Colours: change these to re-theme the whole website */
:root {
  --black: #0b0b0d;
  --coal: #141417;
  --slate: #1d1d22;
  --line: #303038;
  --orange: #ff8a1f;
  --gold: #ffc247;
  --ice: #5fe0f5;
  --text: #f5f0e8;
  --muted: #b4aea6;
  --display: Pixelify, 'Courier New', monospace;
  --body: Outfit, system-ui, sans-serif;
  /* stepped "pixel" corners */
  --notch: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { background: var(--black); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: #1a0d00; padding: 10px 16px; }
.skip:focus { top: 12px; }
.px-icon { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; font-weight: 700; text-decoration: none; text-align: center; clip-path: var(--notch); transition: transform .18s, filter .18s, background-color .18s; }
.btn:hover { transform: translateY(-3px); filter: brightness(1.12); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: -6px; outline-color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--orange)); color: #1f0f00; box-shadow: inset 0 -5px 0 #b35300; }
.btn-ghost { background: #2a2a31; box-shadow: inset 0 -4px 0 #17171b; }
.btn-ice { background: var(--ice); color: #04262d; box-shadow: inset 0 -5px 0 #239bb0; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: inset 0 -5px 0 #3a45b8; }
.btn-youtube { background: #e32620; color: #fff; box-shadow: inset 0 -5px 0 #9b1511; }
.is-soon { cursor: help; }
.btn.is-copied { background: var(--ice); color: #04262d; box-shadow: none; }

/* ---------- Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .25s, box-shadow .25s; }
.nav.solid, .nav.open { background: rgba(11, 11, 13, .96); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; width: min(1240px, 100% - 32px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.5rem var(--display); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn), .menu-store { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; font-size: .96rem; font-weight: 700; text-decoration: none; color: #ded8cf; text-shadow: 0 1px 8px #000; transition: color .2s; }
.menu .px-icon, .menu-store svg { width: 15px; height: 15px; fill: currentColor; }
.menu a:not(.btn):hover, .menu-store:hover, .menu a.active:not(.btn) { color: var(--gold); }
.menu .btn { margin-left: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; place-content: center; gap: 5px; }
.menu-toggle i { display: block; width: 26px; height: 4px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav.open .menu-toggle i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.open .menu-toggle i:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero */
.hero { position: relative; min-height: max(720px, 100svh); display: grid; align-items: center; padding: 100px 0 150px; text-align: center; overflow: hidden; isolation: isolate; background: linear-gradient(#0b0b0d 0, #1c1020 28%, #53202a 55%, #b24a22 76%, #ee8a2c 90%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--black)); z-index: -1; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; }
.hero-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hero-logo { position: relative; width: clamp(220px, 28vw, 340px); animation: float 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 38px rgba(255, 138, 31, .5)); animation: glow 5s ease-in-out infinite; }
/* light sweep, clipped to the shape of the logo */
.shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%) no-repeat; background-size: 280% 100%; background-position: 130% 0; -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 45% { background-position: 130% 0; } 75%, 100% { background-position: -30% 0; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 56px rgba(255, 170, 60, .68)); } }
.spark { position: absolute; width: 18px; height: 18px; background: #fff; clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); opacity: 0; animation: spark 5s infinite; }
.s1 { top: 8%; left: 18%; animation-delay: 2.5s; }
.s2 { top: 34%; right: 8%; animation-delay: 3.1s; }
.s3 { bottom: 14%; left: 6%; animation-delay: 3.6s; }
@keyframes spark { 0%, 20%, 100% { opacity: 0; transform: scale(.3); } 8% { opacity: 1; transform: scale(1); } }
@keyframes float { 50% { transform: translateY(-12px); } }
.portal { display: flex; align-items: center; gap: 16px; text-decoration: none; text-align: left; text-shadow: 0 2px 10px #000; line-height: 1.3; }
.portal strong { display: block; font: 500 1.4rem var(--display); color: var(--gold); }
.portal small { display: block; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.portal-left { justify-self: end; flex-direction: row-reverse; text-align: right; }
.portal-right { justify-self: start; }
.portal-icon { display: grid; place-items: center; width: 66px; height: 66px; flex: none; background: linear-gradient(180deg, var(--gold), var(--orange)); color: #231000; clip-path: var(--notch); transition: transform .2s; }
.portal-icon svg { width: 30px; height: 30px; fill: currentColor; }
.portal:hover .portal-icon { transform: scale(1.1); }
.portal.is-copied .portal-icon { background: var(--ice); }
.hero h1 { margin: 22px auto 14px; max-width: 20ch; font-size: clamp(2.2rem, 5.2vw, 4rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .55); }
.hero-text { max-width: 58ch; margin: 0 auto 28px; font-size: 1.15rem; text-shadow: 0 2px 8px #000; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Shared sections */
.section { padding: clamp(72px, 9vw, 118px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); }
.card { background: var(--coal); border: 1px solid var(--line); border-radius: 4px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: var(--orange); transform: translateY(-5px); box-shadow: 0 14px 40px -14px rgba(255, 138, 31, .4); }
.card p { color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- About */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about p { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.highlights li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 2px dashed var(--line); }
.highlights li:last-child { border-bottom: 0; }
.highlights .px-icon { width: 44px; height: 44px; color: var(--orange); }
.highlights p { margin-top: 4px; }

/* ---------- Features (inventory slots) */
.features { background: var(--coal); }
.features::before, .join::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(90deg, var(--orange) 0 40px, #111 40px 56px, var(--gold) 56px 72px, #111 72px 96px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; }
.slot { padding: 26px 22px; background: var(--slate); border: 3px solid; border-color: #0a0a0c #3b3b44 #3b3b44 #0a0a0c; }
.slot.wide { grid-column: span 2; }
.slot.wide:nth-child(-n+2) { background: radial-gradient(120% 130% at 100% 0, rgba(255, 138, 31, .22), transparent 65%), var(--slate); }
.slot-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; background: #101013; color: var(--gold); transition: color .2s, box-shadow .2s, transform .2s; }
.slot-icon .px-icon { width: 34px; height: 34px; }
.slot:hover { border-color: var(--orange); }
.slot:hover .slot-icon { color: var(--orange); box-shadow: 0 0 24px rgba(255, 138, 31, .45); transform: translateY(-4px) rotate(-6deg); }
.slot p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* ---------- Join */
.join { background: radial-gradient(70% 55% at 50% 0, rgba(255, 138, 31, .2), transparent), var(--black); }
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edition { --accent: var(--orange); padding: clamp(22px, 3.5vw, 38px); background: var(--coal); border: 2px solid var(--line); border-top: 6px solid var(--accent); min-width: 0; }
.edition.bedrock { --accent: var(--ice); }
.edition h3 { font-size: 2rem; color: var(--accent); }
.edition > p { color: var(--muted); margin-bottom: 20px; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 10px 10px 10px 16px; background: #08080a; border: 1px solid var(--line); }
.field > div { min-width: 0; }
.field-label { display: block; font-size: .85rem; color: var(--muted); }
.field code { font: 700 clamp(1.15rem, 2.6vw, 1.5rem)/1.4 var(--body); letter-spacing: .02em; overflow-wrap: anywhere; }
.btn-copy { background: var(--accent); color: #101013; min-height: 44px; min-width: 96px; padding: 8px 14px; flex: none; }
.btn-copy.is-copied { background: var(--text); }
.edition ol { margin: 24px 0 0; list-style: none; counter-reset: step; }
.edition li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-bottom: 14px; }
.edition li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; background: var(--slate); color: var(--accent); font-weight: 700; }
.edition li b { overflow-wrap: anywhere; }
.edition .btn-ice { margin-top: 10px; }
.edition .note { margin: 12px 0 0; font-size: .9rem; }

/* ---------- Community */
.community { background: var(--coal); }
.discord { padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: linear-gradient(145deg, rgba(88, 101, 242, .18), transparent 55%), var(--slate); }
.discord .btn { margin-top: auto; }
.brand-badge { display: grid; place-items: center; width: 62px; height: 62px; flex: none; color: #fff; background: #5865f2; clip-path: var(--notch); }
.brand-badge svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 8px 18px; background: var(--slate); border: 2px solid var(--line); font-weight: 700; font-size: .95rem; transition: border-color .2s; }
.filters button:hover { border-color: var(--orange); }
.filters button[aria-pressed='true'] { background: var(--orange); border-color: var(--orange); color: #1f0f00; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; }
.shots li[hidden] { display: none; }
.shots a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--slate); }
.shots img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s, filter .3s; }
.shots a::after { content: ''; position: absolute; inset: 0; border: 0 solid var(--orange); transition: border-width .15s; pointer-events: none; }
.shots a:hover::after, .shots a:focus-visible::after { border-width: 4px; }
.shots a:hover img { transform: scale(1.07); filter: brightness(1.1); }
.shots span { position: absolute; inset: auto 0 0; padding: 38px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); font: 500 1.25rem var(--display); }
.shots.all li:first-child { grid-column: span 2; grid-row: span 2; }

.lightbox { margin: auto; width: min(1100px, 94vw); max-height: 94vh; background: var(--coal); color: var(--text); border: 3px solid var(--orange); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
.lightbox-bar p { flex: 1; text-align: center; min-width: 100px; }

/* ---------- News */
.news { background: #101012; }
.post { margin-bottom: 14px; background: var(--slate); border: 1px solid var(--line); }
.post summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.post summary::-webkit-details-marker { display: none; }
.post summary > span { flex: 1; min-width: 0; }
.post summary::after { content: '+'; font: 500 2rem var(--display); color: var(--orange); }
.post[open] summary::after { content: '\2212'; }
.post[open] summary { border-bottom: 1px solid var(--line); }
.post strong { display: block; font: 500 1.35rem/1.25 var(--display); color: var(--gold); }
.post small { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; }
.post em { font-style: normal; }
.post-body { padding: 22px; color: var(--muted); }
.post-body p + p { margin-top: 12px; }

/* ---------- Owner */
.owner { background: linear-gradient(115deg, #2a1606, var(--coal) 55%); }
.owner-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.owner-photo { display: grid; place-items: center; aspect-ratio: 1; padding: 30px; background: radial-gradient(circle, rgba(255, 138, 31, .35), transparent 68%), #0d0d0f; border: 4px solid var(--orange); box-shadow: 14px 14px 0 #08080a, 0 0 60px rgba(255, 138, 31, .2); }
.owner-photo img { width: 100%; height: 100%; object-fit: contain; }
.owner p { margin-top: 16px; color: var(--muted); max-width: 62ch; }
.owner .role { color: var(--gold); font-weight: 700; font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 6px 14px; background: var(--slate); border-left: 4px solid var(--orange); font-size: .95rem; }
.owner-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.social-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #0c0c0e; border: 1px solid var(--line); text-decoration: none; text-align: left; font-weight: 700; transition: border-color .2s, transform .2s; }
.social-link:hover { border-color: var(--orange); transform: translateX(4px); }
.social-link svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.social-link.yt svg { color: #ff3b34; }
.social-link.ig svg { color: #ff5fa2; fill: none; }

/* ---------- Socials */
.channel { overflow: hidden; display: flex; flex-direction: column; }
.thumb { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.channel:hover .thumb img { transform: scale(1.06); }
.thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.thumb svg { width: 78px; height: 78px; fill: #ff2a23; filter: drop-shadow(0 4px 12px #000); }
.channel-body { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.channel-body .btn { margin-top: auto; }
.insta-row { margin-top: 22px; }
.insta { display: flex; gap: 22px; padding: 26px; }
.insta .brand-badge { background: linear-gradient(45deg, #f9a13a, #e1306c 55%, #7b3ad1); }
.insta .brand-badge svg { fill: none; }
.insta p { margin: 6px 0 16px; }

/* ---------- Footer */
.footer { padding: 70px 0 30px; background: #111114; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 44px; }
.footer h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 1.8rem; }
.footer h2::after { content: ''; width: 24px; height: 8px; background: var(--orange); box-shadow: 0 0 16px var(--orange); }
.footer p { color: var(--muted); margin-bottom: 20px; max-width: 34ch; }
.footer ul a { display: inline-block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: var(--gold); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }
.legal p { margin: 0; max-width: none; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: max-content; max-width: calc(100% - 32px); padding: 13px 22px; background: var(--text); color: #121214; font-weight: 700; text-align: center; border-bottom: 5px solid var(--orange); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: .25s; overflow-wrap: anywhere; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.lost h1 { font-size: 2.4rem; }

/* Scroll reveal (only when JavaScript is running) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s, translate .6s, transform .25s, border-color .25s, box-shadow .25s; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Winter and Christmas theme (switch it off in the admin panel) */
#snow { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; pointer-events: none; }
.greeting { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 20px; background: #b3202c; color: #fff; font: 500 1.2rem var(--display); clip-path: var(--notch); box-shadow: inset 0 -4px 0 #7c121b; }
.greeting + h1 { margin-top: 14px; }
.winter { --black: #080d17; --coal: #0f1626; --slate: #172136; --line: #2b3a57; --muted: #b6c1d4; }
.winter .hero { background: linear-gradient(#060a14 0, #0d1a36 35%, #1c3a66 65%, #4a79a8 90%); }
.winter .nav.solid, .winter .nav.open { background: rgba(8, 13, 23, .96); }
.winter .menu { background-color: transparent; }
.winter .news, .winter .footer { background: #0b111f; }
.winter .owner { background: linear-gradient(115deg, #3a111a, var(--coal) 55%); }
.winter .join { background: radial-gradient(70% 55% at 50% 0, rgba(215, 40, 55, .22), transparent), var(--black); }
.winter .btn-ghost { background: #24324f; box-shadow: inset 0 -4px 0 #131c30; }
.winter .btn-ghost.is-copied, .winter .btn.is-copied { background: var(--ice); color: #04262d; }
.winter .field, .winter .slot-icon, .winter .social-link { background: #070b14; }
.winter .slot { border-color: #060a12 #34476a #34476a #060a12; }
.winter .slot:hover { border-color: var(--orange); }
.winter .owner-photo { background: radial-gradient(circle, rgba(255, 138, 31, .35), transparent 68%), #080d17; }
/* snow resting on top of cards */
.winter :is(.slot, .discord, .edition, .insta, .post) { position: relative; }
.winter :is(.slot, .discord, .edition, .insta, .post)::after { content: ''; position: absolute; top: -5px; left: -3px; right: -3px; height: 15px; pointer-events: none; background: #eaf6ff; clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 70%, 94% 45%, 82% 45%, 82% 100%, 76% 100%, 76% 55%, 61% 55%, 61% 35%, 48% 35%, 48% 80%, 41% 80%, 41% 45%, 27% 45%, 27% 65%, 18% 65%, 18% 35%, 7% 35%, 7% 90%, 0 90%); }
.winter .features::before, .winter .join::before { height: 10px; background: repeating-linear-gradient(135deg, #d3202f 0 14px, #f4f8ff 14px 28px); }
/* Christmas lights hanging under the navigation */
.lights { position: absolute; top: 76px; left: -10px; right: -10px; height: 26px; display: flex; justify-content: space-between; overflow: hidden; z-index: 1; }
.lights b { position: relative; flex: 0 0 36px; border-top: 2px solid #31523d; }
.lights b::after { content: ''; position: absolute; left: 13px; top: 3px; width: 9px; height: 13px; background: var(--bulb); box-shadow: 0 0 14px 3px var(--bulb); animation: twinkle 2.4s steps(2, jump-none) infinite; }
.lights b:nth-child(4n+1) { --bulb: #ff3b47; }
.lights b:nth-child(4n+2) { --bulb: #ffc247; }
.lights b:nth-child(4n+3) { --bulb: #3ddc6d; }
.lights b:nth-child(4n) { --bulb: #5fe0f5; }
.lights b:nth-child(even)::after { animation-delay: -1.2s; top: 8px; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: none; } }
@media (min-width: 961px) { .winter .hero { padding-top: 112px; padding-bottom: 180px; } }
@media (min-width: 961px) and (max-height: 860px) {
  .winter .hero { padding-bottom: 150px; }
  .winter .hero-logo { width: min(230px, 31svh); }
}
.winter .hero { padding-bottom: 180px; }

/* ---------- Tablet and mobile */
@media (max-width: 1120px) {
  .menu-toggle { display: grid; }
  .menu { position: absolute; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; max-height: calc(100svh - 76px); overflow-y: auto; padding: 12px 20px 24px; background: #0b0b0d; border-bottom: 4px solid var(--orange); }
  .nav.open .menu { display: flex; }
  .menu a:not(.btn), .menu-store { padding: 13px 4px; font-size: 1.1rem; }
  .menu .btn { margin: 10px 0 0; }
}
@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .portal-left { flex-direction: row; text-align: left; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split, .owner-inner, .editions { grid-template-columns: 1fr; }
  .owner-photo { width: min(420px, 100% - 14px); }
  .shots { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 90px 0 110px; }
  .hero-stage { grid-template-columns: 1fr; }
  .hero-logo { width: min(230px, 64vw); }
  .portal-left, .portal-right { justify-self: center; width: min(300px, 100%); }
  .portal-icon { width: 52px; height: 52px; }
  .duo, .shots, .footer-grid, .owner-links { grid-template-columns: 1fr; }
  .shots.all li:first-child { grid-column: auto; grid-row: auto; }
  .slot { padding: 18px 14px; }
  .discord { padding: 26px; }
  .insta { flex-direction: column; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .slot.wide { grid-column: auto; }
  .field { flex-wrap: wrap; }
  .btn-copy { width: 100%; }
}
@media (min-width: 961px) and (max-height: 860px) {
  .hero { min-height: max(640px, 100svh); padding: 84px 0 56px; }
  .hero-logo { width: min(250px, 34svh); }
  .greeting { margin-top: 8px; }
  .hero h1 { max-width: none; font-size: 2.7rem; margin: 14px auto 10px; }
  .hero-text { max-width: 72ch; margin-bottom: 20px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
