/* Change the complete palette here. */
:root {
  color-scheme: dark; /* page is already dark: stops browser auto dark mode from re-darkening it */
  --bg: #0a0612; --bg-raised: #120a22; --primary: #8b5cf6;
  --bright: #a855f7; --glow: #c084fc; --deep: #4c1d95;
  --text: #f4efff; --muted: #a79bb9;
  --panel: rgba(29,16,48,.62); --border: rgba(164,111,238,.22);
  --shadow: rgba(139,92,246,.19); --nav: rgba(10,6,18,.82);
  --transparent: transparent;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--text); font-family: Inter,system-ui,sans-serif; line-height: 1.7; animation: page-in .6s ease; }
::selection { background: var(--deep); color: var(--text); }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--glow); outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: min(1180px,calc(100% - 80px)); margin-inline: auto; }
h1,h2,h3,p { margin-top: 0; }
p { color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 20px; background: var(--deep); }
.skip-link:focus { top: 12px; }

/* Slow ambient movement behind the page. */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; width: 650px; height: 650px; border-radius: 50%; filter: blur(100px); opacity: .14; animation: drift 24s ease-in-out infinite alternate; }
.blob-one { top: -240px; right: -100px; background: var(--bright); }
.blob-two { top: 55%; left: -350px; background: var(--deep); animation-delay: -12s; }
#stars { width: 100%; height: 100%; opacity: .5; }
.hero { padding-block: 95px 100px; text-align: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(90px,12vw,150px); font-weight: 900; line-height: 1; letter-spacing: -.07em; background: linear-gradient(120deg,var(--text) 25%,var(--glow)); background-clip: text; color: var(--transparent); }
.hero h1 span { color: var(--bright); }
.hero h2 { font-size: clamp(28px,3.7vw,45px); line-height: 1.3; letter-spacing: -.04em; margin-bottom: 22px; }
.hero p { font-size: 14px; margin-bottom: 30px; }
.hero > * { animation: rise .7s both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .2s; }
.shimmer { background: linear-gradient(100deg,var(--primary),var(--glow),var(--text),var(--bright),var(--primary)); background-size: 300% 100%; background-clip: text; color: var(--transparent); animation: shimmer 8s linear infinite; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 23px; min-height: 46px; border: 1px solid var(--primary); border-radius: 8px; background: linear-gradient(120deg,var(--primary),var(--deep)); background-color: var(--primary); background-size: 180% 180%; font-size: 12px; font-weight: 600; transition: transform .25s,border-color .25s,box-shadow .25s; }
.button:hover { transform: translateY(-2px); border-color: var(--glow); box-shadow: 0 0 28px var(--shadow); background-position: 100% 50%; }
.hero .pulse { animation: rise .7s .3s both,pulse 4s 1s ease-in-out infinite; }

/* Download list: one row per mod. */
.mods-section { padding-bottom: 85px; }
.mods-section > h2 { width: min(900px,100%); margin-inline: auto; font-size: clamp(28px,3.5vw,40px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 30px; background: linear-gradient(110deg,var(--text),var(--glow),var(--bright)); background-clip: text; color: var(--transparent); }
.mods-list { display: flex; flex-direction: column; gap: 12px; width: min(900px,100%); margin: 0 auto; padding: 0; list-style: none; }
.mod-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); transition: transform .25s,border-color .25s,box-shadow .25s; }
/* Hidden until scrolled into view, then fade up with a per-row stagger (--delay). */
.mod-row.reveal:not(.visible) { opacity: 0; }
.mod-row.visible { animation: rise .6s var(--delay,0s) backwards; }
.mod-row:hover,.mod-row:focus-within { transform: translate(4px,-2px); border-color: var(--primary); box-shadow: 0 10px 35px var(--shadow); }
.mod-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: rgba(139,92,246,.14); color: var(--glow); }
.mod-info { min-width: 0; flex: 1; }
.mod-info h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.mod-meta { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-link { display: inline-block; margin-top: 2px; font-size: 12px; color: var(--glow); }
.preview-link:hover { text-decoration: underline; }
.split-note { margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.split-note a { color: var(--glow); text-decoration: underline; }
.mod-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.mod-actions .button { min-height: 40px; padding: 9px 15px; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.btn-icon { display: inline-flex; }
.empty-state { width: min(900px,100%); margin-inline: auto; padding: 60px 20px; text-align: center; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-top: 1px solid var(--border); font-size: 11px; }
footer p { margin: 0; }
footer a { color: var(--glow); }
footer a:hover { text-decoration: underline; }

/* Keep the native pointer for clear link affordances. */
.cursor-dot,.cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 5px; height: 5px; background: var(--glow); }
.cursor-ring { width: 29px; height: 29px; border: 1px solid var(--primary); box-shadow: 0 0 15px var(--shadow); }
/* One-screen layout: everything fits in the window on desktop, sizes scale with window height. */
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero { padding-block: clamp(20px,5vh,60px) clamp(16px,3.5vh,36px); }
.hero h1 { margin-bottom: clamp(8px,1.6vh,16px); font-size: clamp(60px,15vh,130px); }
.hero h2 { margin-bottom: clamp(8px,1.6vh,14px); font-size: clamp(22px,4.6vh,40px); }
.hero p { margin-bottom: 0; }
.mods-section { padding-bottom: clamp(16px,3vh,32px); }
.mods-section > h2 { text-align: center; margin-bottom: clamp(12px,2.4vh,22px); font-size: clamp(22px,3.6vh,34px); }
footer { justify-content: center; text-align: center; }

@keyframes drift { to { transform: translate(100px,100px) scale(1.15); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 32px var(--shadow),0 0 12px var(--shadow); } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-block: 36px 24px; }
  .hero p { max-width: 290px; margin-inline: auto; font-size: 13px; }
  .mods-section { padding-bottom: 55px; }
  footer { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 640px) {
  .mod-row { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 16px; }
  .mod-info { flex: 1 1 calc(100% - 64px); }
  .mod-meta { white-space: normal; overflow-wrap: anywhere; }
  .mod-actions { flex: 1 1 100%; flex-wrap: wrap; }
  .mod-actions .button { flex: 1 1 0; min-width: 120px; }
}
@media (hover: none),(pointer: coarse) { .cursor-dot,.cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mod-row:hover,.mod-row:focus-within,.button:hover { transform: none; }
  .mod-row.reveal:not(.visible) { opacity: 1; }
  .cursor-dot,.cursor-ring,#stars { display: none !important; }
}
