/* Download & Play – same gold look as the home page: a short hero with the platform buttons, then three steps. */
:root {
  --bg: #07080d; --fg: #f4efe4; --muted: #9a958a; --line: rgba(255, 214, 120, .12);
  --card: #0f1017; --accent: #f6c453; --accent-fg: #1a1203; --head-bg: rgba(7, 8, 13, .72);
  --hover: rgba(246, 196, 83, .08);
}
::selection { background: rgba(246, 196, 83, .35); }
@keyframes spin { to { rotate: 360deg; } }

/* hero */
.dl-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 150px 16px 80px; text-align: center; }
.dl-bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(246, 180, 52, .16), transparent 70%); }
.dl-bg .circle { position: absolute; left: 50%; top: 42%; width: min(820px, 150vw); max-width: none; translate: calc(-50% + var(--mx, 0) * -24px) calc(-50% + var(--my, 0) * -24px); opacity: .14; filter: drop-shadow(0 0 12px rgba(255, 200, 90, .5)); animation: spin 150s linear infinite; transition: translate .6s ease-out; }
.dl-hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; background: linear-gradient(180deg, #fff6dc 20%, #f2b134); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { font: 400 clamp(17px, 2vw, 21px)/1.4 'Outfit', sans-serif; color: #e0d6c2; }
.ver { font-size: 13px; color: var(--muted); }
.ver b { color: var(--fg); font-weight: 600; }

/* platform buttons (same as on the home page) */
.platforms { display: grid; grid-template-columns: repeat(2, 260px); gap: 12px; margin-top: 8px; }
.pf { position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 18px 0 10px; border-radius: 18px; border: 1px solid rgba(246, 196, 83, .3); background: rgba(20, 18, 14, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pf:hover { transform: translateY(-2px); border-color: rgba(246, 196, 83, .7); box-shadow: 0 14px 34px -12px rgba(246, 180, 52, .45); }
.pf-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.pf-ico .brand { width: 26px; height: 26px; fill: currentColor; }
.pf-modrinth .pf-ico { background: rgba(0, 175, 92, .14); color: #1bd96a; }
.pf-curseforge .pf-ico { background: rgba(241, 100, 54, .14); color: #f16436; }
.pf-txt { display: grid; line-height: 1.15; }
.pf-txt small { font-size: 12px; color: var(--muted); }
.pf-txt b { font: 600 19px 'Outfit', sans-serif; }
.pf em { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(246, 196, 83, .14); color: var(--accent); font: 600 11px 'Inter', sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.pf.live em { display: none; }
.pf.live.pf-modrinth { border-color: rgba(27, 217, 106, .4); }
.pf.live.pf-curseforge { border-color: rgba(241, 100, 54, .4); }

/* the first screen fills the window, like the home page */
.dl-hero { min-height: 100svh; justify-content: center; padding: 100px 16px 110px; }
.dl-hero h1 { font-size: clamp(48px, 9vw, 112px); }
.scroll { position: absolute; bottom: 26px; left: 50%; translate: -50%; width: 26px; height: 42px; border: 1.5px solid rgba(246, 196, 83, .4); border-radius: 14px; }
.scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* both screens snap like the home page; the footer sits at the end of the second one */
html:has(body.snap) { scroll-snap-type: y mandatory; }
@media (max-height: 640px) { html:has(body.snap) { scroll-snap-type: none; } }
.dl-hero, .dl-slide { scroll-snap-align: start; }
.dl-slide { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; }
.dl-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 45% at 50% 45%, rgba(246, 180, 52, .08), transparent 70%); }
.dl-slide .ft { width: 100%; }

/* steps: three equal cards, one action each */
.dl-steps { flex: 1; width: min(1160px, 100% - 32px); margin: 0 auto; padding: 110px 0 70px; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.steps-title { text-align: center; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 30px 30px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%), var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.step:hover { border-color: rgba(246, 196, 83, .35); transform: translateY(-4px); }
.step .n { position: absolute; top: 14px; right: 22px; font: 800 88px/1 'Outfit', sans-serif; letter-spacing: -.04em; color: rgba(246, 196, 83, .07); pointer-events: none; user-select: none; }
.step-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(246, 196, 83, .1); border: 1px solid rgba(246, 196, 83, .25); color: var(--accent); }
.step-ico .i { width: 26px; height: 26px; stroke-width: 1.6; }
.step h3 { margin-top: 6px; font-size: 24px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }
.step-act { margin-top: auto; padding-top: 10px; width: 100%; }
.tag-opt { display: inline-block; margin-left: 8px; vertical-align: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(246, 196, 83, .14); color: var(--accent); font: 600 11px 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.step-server { border-color: rgba(246, 196, 83, .35); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(246, 180, 52, .14), transparent 70%), var(--card); box-shadow: 0 30px 60px -30px rgba(246, 180, 52, .35); }
.step-server .step-ico { background: linear-gradient(180deg, #ffe08a, #f2b134); color: var(--accent-fg); border: 0; }

.soon { padding: 10px 14px; border-radius: 12px; background: rgba(246, 196, 83, .08); color: #e8d8b0 !important; font-size: 14px; }
.more, .online a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.more .i, .online .i { width: 16px; height: 16px; transition: transform .2s; }
.more:hover .i, .online a:hover .i { transform: translateX(3px); }
.ip { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid rgba(246, 196, 83, .35); background: rgba(20, 18, 14, .6); font-weight: 600; font-size: 17px; transition: border-color .2s; }
.ip:hover { border-color: rgba(246, 196, 83, .7); }
.ip .dot { margin-right: -4px; }
.ip-addr { margin-right: auto; }
.ip-hint { height: 42px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #f2b134); color: var(--accent-fg); font-size: 14px; }
.ip.copied .ip-hint { background: #3ddc84; color: #04140b; }
.online { margin-top: 10px; font-size: 13px; color: var(--muted); }
.online b { color: var(--fg); }

.extras { display: grid; gap: 14px; }
.discord { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 22px; background: linear-gradient(135deg, rgba(88, 101, 242, .16), var(--card) 70%); border: 1px solid rgba(88, 101, 242, .3); transition: transform .2s, border-color .2s; }
.discord[hidden] { display: none; }
.discord:hover { transform: translateY(-2px); border-color: rgba(88, 101, 242, .6); }
.discord-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(88, 101, 242, .2); color: #a5b0ff; flex: none; }
.discord > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.discord b { font: 600 19px 'Outfit', sans-serif; }
.discord small { color: var(--muted); font-size: 14px; }
.discord > .i { color: #a5b0ff; }
.notes { padding: 22px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.notes[hidden] { display: none; }
.notes a { color: var(--accent); }
.notes h2, .notes h3 { color: var(--fg); margin: 0 0 8px; font-size: 18px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; }
  .dl-steps { gap: 28px; padding-top: 96px; }
}
@media (max-width: 640px) {
  .dl-hero { padding-top: 90px; }
  .platforms { grid-template-columns: 1fr; width: 100%; max-width: 340px; }
  .step { padding: 26px 22px 24px; }
  .step .n { font-size: 70px; }
}
.extras:not(:has(> :not([hidden]))) { display: none; }

/* two ways: 01 install for everyone, then 02 splits into singleplayer or our server */
.path { width: 100%; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.step-install { width: 100%; flex-direction: row; align-items: center; gap: 22px; padding: 26px 30px; }
.step-install .step-main { display: grid; gap: 6px; flex: 1; padding-right: 90px; }
.step-install h3 { margin: 0; }
.step-install .more { flex: none; position: relative; }
.step-install .n { top: 50%; translate: 0 -50%; right: 26px; }
.step-install:hover { transform: none; }
.step-install .more { order: 3; margin-right: 100px; }
/* the line from 01 that splits into the two ways */
.fork { position: relative; width: 50%; height: 56px; }
.fork::before { content: ''; position: absolute; left: 50%; top: 0; height: 28px; width: 1px; background: rgba(246, 196, 83, .5); }
.fork span { position: absolute; left: 0; right: 0; top: 28px; height: 28px; border: 1px solid rgba(246, 196, 83, .5); border-bottom: 0; border-radius: 14px 14px 0 0; }
.choose { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; font: 600 15px 'Outfit', sans-serif; color: var(--muted); letter-spacing: .02em; }
.n-small { padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(246, 196, 83, .45); color: var(--accent); font-size: 13px; }
.ways { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; }
.way { padding-top: 30px; }
.or { align-self: center; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid rgba(246, 196, 83, .4); font: 600 13px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) {
  .step-install { flex-direction: column; align-items: flex-start; }
  .step-install .step-main { padding-right: 0; }
  .step-install .more { margin-right: 0; order: 0; }
  .step-install .n { top: 14px; translate: none; }
  .fork { width: 1px; height: 32px; }
  .fork::before { height: 32px; }
  .fork span { display: none; }
  .ways { grid-template-columns: 1fr; max-width: 560px; justify-items: stretch; }
  .or { justify-self: center; margin: -4px 0; }
}
/* stem from 01 to the label, then the fork lands on the middle of each way */
.dl-steps { gap: 26px; padding: 92px 0 36px; }
.steps-title { font-size: clamp(30px, 4vw, 46px); }
.stem { width: 1px; height: 22px; background: rgba(246, 196, 83, .5); }
.choose { margin: 8px 0; }
.fork { width: calc(50% + 31px); height: 22px; border: 1px solid rgba(246, 196, 83, .5); border-bottom: 0; border-radius: 12px 12px 0 0; }
.fork::before, .fork span { display: none; }
.way { padding: 26px 28px; }
.step h3 { margin-top: 2px; }
@media (max-width: 860px) {
  .fork { width: 1px; height: 22px; border: 0; border-radius: 0; background: rgba(246, 196, 83, .5); }
}
/* Modrinth / CurseForge in the install card */
.mini-pf { order: 3; display: flex; gap: 10px; margin-right: 100px; flex: none; }
.mpf { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s, transform .2s; }
.mpf .brand { width: 20px; height: 20px; fill: currentColor; }
.mpf-modrinth .brand { color: #1bd96a; }
.mpf-curseforge .brand { color: #f16436; }
.mpf-modrinth:hover { border-color: rgba(27, 217, 106, .5); background: rgba(27, 217, 106, .06); transform: translateY(-2px); }
.mpf-curseforge:hover { border-color: rgba(241, 100, 54, .5); background: rgba(241, 100, 54, .06); transform: translateY(-2px); }
.step-install .step-main { padding-right: 0; }
@media (max-width: 860px) { .mini-pf { margin-right: 0; order: 0; flex-wrap: wrap; } }

/* 03: both ways meet again – help on Discord */
.merge { width: calc(50% + 31px); height: 22px; border: 1px solid rgba(246, 196, 83, .5); border-top: 0; border-radius: 0 0 12px 12px; }
.path > .stem:nth-of-type(2) { }
.step-help { width: 100%; flex-direction: row; align-items: center; gap: 22px; padding: 24px 30px; background: linear-gradient(135deg, rgba(88, 101, 242, .12), transparent 60%), var(--card); }
.step-help:hover { transform: none; border-color: rgba(88, 101, 242, .45); }
.step-help .step-main { display: grid; gap: 6px; flex: 1; }
.step-help h3 { margin: 0; }
.step-help .n { top: 50%; translate: 0 -50%; right: 26px; }
.help-ico { background: rgba(88, 101, 242, .16); border-color: rgba(88, 101, 242, .35); color: #a5b0ff; }
.help-ico .brand { width: 26px; height: 26px; fill: currentColor; }
.dc-btn { order: 3; margin-right: 100px; flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 600; font-size: 14px; transition: transform .2s, background .2s; }
.dc-btn .brand { width: 20px; height: 20px; fill: currentColor; }
.dc-btn:hover { transform: translateY(-2px); background: #6974f5; }
@media (max-width: 860px) {
  .merge { width: 1px; height: 22px; border: 0; border-radius: 0; background: rgba(246, 196, 83, .5); }
  .step-help { flex-direction: column; align-items: flex-start; }
  .step-help .n { top: 14px; translate: none; }
  .dc-btn { margin-right: 0; order: 0; }
}
/* tighter, so 01–03 and the footer fit on one desktop screen */
.dl-steps { gap: 18px; padding: 84px 0 24px; }
.steps-title { font-size: clamp(28px, 3.4vw, 40px); }
.step { gap: 10px; }
.step-ico { width: 48px; height: 48px; border-radius: 14px; }
.step-ico .i, .help-ico .brand { width: 22px; height: 22px; }
.step-install, .step-help { padding: 20px 26px; }
.way { padding: 22px 26px; }
.step h3 { font-size: 22px; }
.stem, .fork, .merge { height: 16px; }
.choose { margin: 6px 0; }
.ip { height: 50px; }
.ip-hint { height: 38px; }
.step .n { font-size: 72px; }
.dl-slide .ft { padding: 24px 0 28px; }
