:root {
  --bg: #08060d;
  --surface: #100b19;
  --surface-2: #171022;
  --line: rgba(225, 211, 255, .14);
  --text: #f1f0e8;
  --muted: #a19aaa;
  --accent: #9b5cff;
  --accent-light: #c49aff;
  --green: #aaef7b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", sans-serif; overflow-x: hidden; position: relative; }
body:before, body:after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body:before {
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(155,92,255,.08) 36%, transparent 50% 100%),
    linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 160% 160%, 54px 54px, 54px 54px;
  opacity: .58;
  animation: backgroundDrift 14s ease-in-out infinite alternate;
}
body:after {
  background:
    radial-gradient(ellipse at 18% 16%, rgba(155,92,255,.16), transparent 34%),
    radial-gradient(ellipse at 84% 42%, rgba(196,154,255,.09), transparent 32%),
    linear-gradient(180deg, transparent, rgba(8,6,13,.82));
  opacity: .9;
  animation: ambientShift 10s ease-in-out infinite alternate;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.grain { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.site-header { height: 86px; width: 100%; margin: 0; padding: 0 clamp(28px, 5.2vw, 96px); display: grid; grid-template-columns: minmax(160px,1fr) auto minmax(240px,1fr); align-items: center; gap: 22px; position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--line); background: rgba(8,6,13,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; font: 800 22px/1 "Unbounded", sans-serif; letter-spacing: -.055em; text-transform: none; }
.brand > span > span { color: var(--accent); }
nav { display: flex; justify-content: center; gap: clamp(18px, 2.5vw, 36px); font-size: 13px; font-weight: 700; color: #c7ccc2; white-space: nowrap; }
nav a { transition: color .2s; }
nav a:hover { color: var(--accent-light); }
.header-cta { padding: 12px 18px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; transition: .2s; }
.header-cta span { color: var(--accent); margin-left: 8px; }
.header-cta:hover { border-color: var(--accent); background: rgba(155,92,255,.09); }
.header-actions-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.rules-button { padding: 12px 17px; background: var(--accent); border: 1px solid var(--accent); color: #10091b; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; transition: .2s; }
.rules-button:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); }

.hero { min-height: 720px; width: 100%; margin: 0; padding: 90px clamp(28px, 5.2vw, 96px) 75px; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,13,1) 0%, rgba(8,6,13,.74) 48%, rgba(8,6,13,.05) 80%), linear-gradient(0deg, var(--bg), transparent 22%); z-index: 2; pointer-events: none; }
.hero-copy { width: 58%; position: relative; z-index: 4; animation: heroReveal .52s ease both; }
.eyebrow, .section-kicker { color: var(--muted); letter-spacing: .2em; font-size: 10px; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow span { width: 34px; height: 1px; background: var(--accent); }
h1, h2 { font-family: "Unbounded", sans-serif; text-transform: uppercase; margin: 0; letter-spacing: -.055em; line-height: .98; }
h1 { font-size: clamp(54px, 6.2vw, 92px); }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 590px; color: #b8beb4; font-size: 16px; line-height: 1.75; margin: 28px 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 32px; }
.primary-button { border: 0; cursor: pointer; background: var(--accent); color: #10091b; display: flex; align-items: center; gap: 38px; padding: 17px 20px 17px 25px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; box-shadow: 0 10px 40px rgba(155,92,255,.2); transition: .2s; }
.primary-button:hover { background: var(--accent-light); transform: translateY(-2px); }
.primary-button svg, .icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-link { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.text-link span { color: var(--accent); padding-left: 9px; }

.hero-art { position: absolute; right: 0; top: 0; width: 61%; height: 100%; overflow: hidden; background: radial-gradient(circle at 68% 44%, #351d57 0, #1a1224 27%, #0c0911 64%); }
.hero-art:before { content: ""; position: absolute; inset: -12%; background: linear-gradient(115deg, transparent 0 36%, rgba(196,154,255,.12) 44%, transparent 52% 100%); animation: heroLightSweep 9s ease-in-out infinite; opacity: .55; }
.hero-art:after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.16) 0 1px, transparent 1.5px); background-size: 82px 82px; opacity: .11; animation: starsDrift 16s linear infinite; }
.sun { position: absolute; width: 290px; height: 290px; border-radius: 50%; right: 17%; top: 17%; background: radial-gradient(circle at 45% 42%, #eadcff 0, #aa6dff 34%, #56249b 65%, transparent 70%); filter: blur(1px); box-shadow: 0 0 90px #8e50e755; animation: sunFloat 5.5s ease-in-out infinite alternate; }
.world { position: absolute; inset: 0; filter: drop-shadow(0 -20px 40px rgba(0,0,0,.4)); }
.terrain { position: absolute; background-color: #1b1424; clip-path: polygon(0 68%,8% 64%,12% 48%,17% 48%,20% 58%,27% 57%,31% 42%,38% 43%,40% 54%,50% 56%,55% 44%,63% 46%,66% 38%,71% 40%,74% 57%,81% 55%,84% 47%,91% 49%,94% 59%,100% 56%,100% 100%,0 100%); }
.terrain-back { inset: 13% -5% 0 4%; opacity: .6; background: #2b2435; }
.terrain-mid { inset: 27% -5% 0 -4%; background: #1c1426; transform: scale(1.12); }
.terrain-front { inset: 46% -5% 0 -4%; background-color: #0c0911; background-image: repeating-linear-gradient(0deg, transparent 0 16px, rgba(255,255,255,.015) 16px 17px), repeating-linear-gradient(90deg, transparent 0 16px, rgba(255,255,255,.012) 16px 17px); }
.tower { position: absolute; bottom: 33%; width: 54px; height: 150px; background: #15101d; box-shadow: inset 5px 0 #282032, 12px 12px 30px #0008; }
.tower:before { content: ""; position: absolute; left: -8px; right: -8px; top: -18px; height: 32px; background: #1a1322; clip-path: polygon(0 0,20% 0,20% 45%,40% 45%,40% 0,60% 0,60% 45%,80% 45%,80% 0,100% 0,100% 100%,0 100%); }
.tower i { position: absolute; width: 9px; height: 28px; left: 22px; top: 40px; background: #9b5cff; box-shadow: 0 0 17px #bb86ff; animation: torchPulse 2.6s ease-in-out infinite; }
.tower-left { left: 47%; }
.tower-right { right: 8%; bottom: 37%; transform: scale(.82); opacity: .8; }
.portal { position: absolute; width: 116px; height: 178px; left: 64%; bottom: 21%; border: 18px solid #211a29; box-shadow: inset 0 0 0 3px #69429b, 0 18px 50px #000; background: radial-gradient(ellipse, #d5b6ff 0, #9d5dec 35%, #552a86 65%, #211529 72%); }
.portal:before { content: ""; position: absolute; inset: -22px; border: 3px solid #18111f; }
.portal span { position: absolute; inset: 0; box-shadow: inset 0 0 32px #ead8ff; animation: pulse 2.3s ease-in-out infinite; }
.player { position: absolute; left: 59%; bottom: 17%; width: 27px; height: 65px; background: #090b09; z-index: 2; }
.player:before { content: ""; position: absolute; width: 31px; height: 27px; left: -2px; top: -25px; background: #0a0c0a; }
.player i, .player b { position: absolute; height: 30px; width: 8px; bottom: -27px; background: #080a08; }
.player i { left: 2px; transform: rotate(6deg); }.player b { right: 2px; transform: rotate(-5deg); }
@keyframes pulse { 50% { box-shadow: inset 0 0 50px #f1e5ff; opacity: .72; } }
@keyframes backgroundDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 45% 20%, 28px 28px, 28px 28px; }
}
@keyframes ambientShift {
  from { transform: translate3d(0,0,0) scale(1); opacity: .62; }
  to { transform: translate3d(-2%,1.5%,0) scale(1.04); opacity: .82; }
}
@keyframes heroLightSweep {
  0%, 100% { transform: translateX(-18%); opacity: .22; }
  50% { transform: translateX(18%); opacity: .58; }
}
@keyframes starsDrift {
  to { background-position: 82px 82px; }
}
@keyframes sunFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-14px,10px,0) scale(1.04); }
}
@keyframes torchPulse {
  50% { opacity: .68; box-shadow: 0 0 28px #d8b4ff; }
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.live-card { position: absolute; right: clamp(28px, 5.2vw, 96px); bottom: 54px; width: 360px; padding: 18px 20px; display: flex; align-items: center; background: rgba(14,9,20,.9); backdrop-filter: blur(15px); border: 1px solid var(--line); z-index: 5; box-shadow: 0 20px 50px #0006; animation: cardHoverFloat 5s ease-in-out infinite alternate; }
.status-icon { width: 37px; height: 37px; border: 1px solid #59416e; display: grid; place-items: center; margin-right: 13px; }
.status-icon span, .meta-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 10px currentColor; }
.live-card.online .status-icon span, .online .meta-dot { background: var(--green); color: var(--green); }
.live-card.offline .status-icon span, .offline .meta-dot { background: #de6d54; color: #de6d54; }
.live-card small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .16em; font-weight: 800; margin-bottom: 5px; }
.live-card strong { font-size: 13px; }
.online-count { margin-left: auto; padding-left: 22px; border-left: 1px solid var(--line); text-align: right; }
.online-count strong { font: 700 24px/1 "Unbounded"; color: var(--accent-light); }
.online-count small { margin: 5px 0 0; font-size: 7px; }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0a14; overflow: hidden; white-space: nowrap; }
.marquee-track { width: max-content; padding: 18px 0; display: flex; gap: 42px; align-items: center; animation: marquee 22s linear infinite; will-change: transform; }
.marquee span { font: 600 11px "Unbounded"; letter-spacing: .14em; color: #7f877c; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes cardHoverFloat {
  from { transform: translateY(0); box-shadow: 0 20px 50px #0006; }
  to { transform: translateY(-8px); box-shadow: 0 28px 70px rgba(82,42,135,.28); }
}

.section { width: 100%; margin: 0; padding: 110px clamp(32px, 7vw, 128px); }
.js-enabled .reveal { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity .42s ease, transform .42s ease, filter .42s ease; }
.js-enabled .reveal.reveal-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.js-enabled .features article.reveal { transition-delay: calc(var(--reveal-order, 0) * 45ms); }
.section-kicker { color: var(--accent); margin-bottom: 38px; }
.about-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 12vw; align-items: end; }
h2 { font-size: clamp(38px, 4.6vw, 68px); }
.about-copy { border-left: 1px solid var(--line); padding-left: 30px; color: #b3b9af; line-height: 1.75; font-size: 14px; }
.about-copy p:first-child { color: var(--text); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 80px; border: 1px solid var(--line); }
.features article { min-height: 260px; padding: 25px 30px 30px; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 55%); transition: .25s; }
.features article:before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent, rgba(155,92,255,.09), transparent); transform: translateX(-120%); transition: transform .7s ease; }
.features article:last-child { border-right: 0; }
.features article:hover { background: rgba(155,92,255,.06); transform: translateY(-4px); }
.features article:hover:before { transform: translateX(120%); }
.features article > span { position: absolute; right: 18px; top: 17px; color: #565e54; font: 700 10px "Unbounded"; }
.features h3 { font: 700 17px "Unbounded"; text-transform: uppercase; margin: 32px 0 13px; }
.features p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 240px; }
.feature-icon { height: 60px; width: 60px; margin-top: 20px; color: var(--accent); display: grid; place-items: center; font-size: 28px; }
.compass { border: 1px solid #684d8d; border-radius: 50%; position: relative; transform: rotate(20deg); }
.compass:before { content: ""; width: 15px; height: 38px; background: linear-gradient(var(--accent) 50%, #352942 50%); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.people { font-size: 32px; text-shadow: 18px 8px #62408d, -16px 9px #3f3350; }
.shield { border: 2px solid #75519f; clip-path: polygon(50% 0,92% 16%,85% 70%,50% 100%,15% 70%,8% 16%); }
.shield:before { content: "✦"; color: var(--accent); }

.lore { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(420px,1.3fr); gap: clamp(44px, 6vw, 92px); align-items: center; border-top: 1px solid var(--line); }
.lore-heading { min-width: 0; overflow: hidden; }
.lore-heading h2 { max-width: 520px; font-size: clamp(34px, 3.8vw, 56px); overflow-wrap: anywhere; word-break: normal; }
.lore-heading p { max-width: 480px; color: var(--muted); font-size: 14px; line-height: 1.75; margin: 28px 0; }
.lore-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); color: var(--text); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.lore-link span { color: var(--accent-light); font-size: 18px; }
.video-shell { position: relative; min-width: 0; aspect-ratio: 16 / 9; padding: 8px; border: 1px solid #51356f; background: #0c0812; box-shadow: 0 30px 80px rgba(77,31,132,.3); animation: videoGlow 4.5s ease-in-out infinite alternate; }
.video-shell:before, .video-shell:after { content: ""; position: absolute; width: 32px; height: 32px; z-index: 2; pointer-events: none; }
.video-shell:before { left: -1px; top: -1px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.video-shell:after { right: -1px; bottom: -1px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.video-shell iframe { display: block; width: 100%; height: 100%; border: 0; background: #050307; }
.video-corner { position: absolute; z-index: 3; left: 22px; top: 22px; padding: 7px 10px; background: rgba(8,6,13,.82); border-left: 2px solid var(--accent); color: #d8c8eb; font-size: 8px; font-weight: 800; letter-spacing: .15em; pointer-events: none; }
.video-preview { position: relative; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #09060d; color: var(--text); }
.video-preview:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,4,10,.86), transparent 58%), linear-gradient(90deg, rgba(53,23,84,.24), transparent); transition: .25s; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.82) contrast(1.08); transition: transform .55s, filter .3s; }
.video-preview:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.08); }
.video-preview:hover:after { background-color: rgba(89,38,140,.1); }
.video-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 10px rgba(155,92,255,.16), 0 16px 40px #0008; transition: .25s; }
.video-preview:hover .video-play { transform: translate(-50%,-50%) scale(1.08); background: var(--accent-light); }
.video-play i { width: 0; height: 0; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #140b20; }
.video-preview strong { position: absolute; z-index: 2; left: 24px; bottom: 22px; font: 600 13px "Unbounded"; text-transform: uppercase; letter-spacing: -.03em; }
.video-fallback { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #0d0912; color: var(--accent-light); font-weight: 800; }
@keyframes videoGlow {
  from { box-shadow: 0 30px 80px rgba(77,31,132,.22); }
  to { box-shadow: 0 34px 95px rgba(155,92,255,.34); }
}

.connect { max-width: none; padding-left: clamp(32px, 7vw, 128px); padding-right: clamp(32px, 7vw, 128px); background: #100b19; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.connect-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 8vw; align-items: center; }
.connect-grid > div:first-child p, .community-copy p { max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.75; margin-top: 27px; }
.join-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.join-option { position: relative; overflow: hidden; min-width: 0; padding: 28px; background: #0a0710; border: 1px solid #392b4b; box-shadow: 0 30px 60px #0005; }
.join-option:before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(155,92,255,.08), transparent); transform: translateX(-120%); transition: transform .7s ease; }
.join-option:hover:before { transform: translateX(120%); }
.join-option > * { position: relative; z-index: 1; }
.join-option h3 { margin: 22px 0 12px; font: 700 18px "Unbounded"; text-transform: uppercase; letter-spacing: -.04em; }
.join-option p { margin: 0; color: #a9a1b0; font-size: 13px; line-height: 1.65; }
.launcher-option { background: radial-gradient(circle at 80% 0, rgba(155,92,255,.2), transparent 36%), #0a0710; border-color: #604184; }
.launcher-benefits { display: grid; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.launcher-benefits li { color: #d4cddd; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.launcher-benefits li:before { content: "✦"; color: var(--accent); margin-right: 9px; }
.download-launcher { width: 100%; justify-content: space-between; }
.address-panel { padding: 32px; background: #0a0710; border: 1px solid #392b4b; box-shadow: 0 30px 60px #0005; }
.join-option.address-panel { padding: 28px; }
.address-label { color: var(--accent); font: 800 9px "Manrope"; letter-spacing: .18em; display: flex; align-items: center; gap: 9px; }
.address-label span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 9px var(--green); }
.address-label.muted { color: #6f776c; }
.address-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; min-width: 0; }
.address-row code { min-width: 0; overflow-wrap: anywhere; font: 700 clamp(19px,2.2vw,31px) "Unbounded"; letter-spacing: -.06em; }
.address-row.secondary code { font-size: clamp(14px,1.4vw,20px); color: #aab0a6; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; background: var(--accent); color: #10091b; border: 0; cursor: pointer; }
.mini-copy { border: 1px solid var(--line); color: #aab0a6; padding: 8px 12px; background: transparent; font-size: 9px; text-transform: uppercase; cursor: pointer; }
.divider { height: 1px; background: var(--line); margin: 27px 0; }
.server-meta { display: flex; gap: 25px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; color: #788075; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.server-meta span { display: flex; align-items: center; gap: 7px; }

.community { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10vw; align-items: center; }
.social-list { border-top: 1px solid var(--line); }
.social-list a { display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 21px; border-bottom: 1px solid var(--line); padding: 25px 8px; transition: .2s; }
.social-list a:hover { padding-left: 18px; background: rgba(255,255,255,.018); }
.social-icon { width: 55px; height: 55px; display: grid; place-items: center; background: #181021; border-radius: 50%; overflow: hidden; }
.social-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-list small { display: block; color: #697168; font-size: 8px; font-weight: 800; letter-spacing: .15em; margin-bottom: 7px; }
.social-list strong { overflow-wrap: anywhere; font: 600 16px "Unbounded"; }
.social-list > a > b { color: var(--accent); font-size: 20px; }

footer { width: 100%; margin: 0; border-top: 1px solid var(--line); min-height: 120px; padding: 0 clamp(28px, 5.2vw, 96px); display: flex; align-items: center; justify-content: space-between; }
footer p { color: #697067; font-size: 10px; }
.to-top { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 30px); opacity: 0; padding: 13px 17px; background: #f2f1e8; color: #10130f; box-shadow: 0 12px 40px #0009; font-size: 12px; font-weight: 800; transition: .25s; pointer-events: none; }
.toast span { color: #4e872f; padding-left: 8px; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

/* Rules */
.rules-page { background: radial-gradient(circle at 80% 4%, #211036 0, transparent 30%), var(--bg); }
.rules-header { max-width: none; padding-left: max(5.2vw, calc((100vw - 1440px)/2 + 5.2vw)); padding-right: max(5.2vw, calc((100vw - 1440px)/2 + 5.2vw)); }
.back-home { display: flex; align-items: center; gap: 10px; color: #c5bdcc; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.back-home span { color: var(--accent); font-size: 18px; transition: transform .2s; }
.back-home:hover span { transform: translateX(-4px); }
.rules-main { max-width: 1240px; margin: auto; padding: 0 5.2vw 120px; }
.rules-hero { padding: 105px 0 95px; position: relative; border-bottom: 1px solid var(--line); }
.rules-hero:after { content: "LASTERA"; position: absolute; z-index: -1; right: 0; bottom: 28px; color: rgba(155,92,255,.035); font: 800 clamp(80px,13vw,180px)/1 "Unbounded"; letter-spacing: -.08em; }
.rules-hero h1 { font-size: clamp(55px,8vw,108px); }
.rules-hero > p { max-width: 670px; margin: 30px 0; color: #b8afc0; font-size: 15px; line-height: 1.8; }
.rules-note { width: fit-content; padding: 13px 18px; border: 1px solid #4b3464; background: rgba(155,92,255,.07); color: #d7cce1; font-size: 11px; font-weight: 700; }
.rules-note span { margin-right: 8px; }
.rules-layout { display: grid; grid-template-columns: 220px 1fr; gap: 8vw; padding-top: 80px; align-items: start; }
.rules-nav { position: sticky; top: 35px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.rules-nav small { color: var(--accent); padding: 0 0 18px 18px; font-size: 8px; letter-spacing: .17em; font-weight: 800; }
.rules-nav a { display: grid; grid-template-columns: 28px 1fr; padding: 12px 0 12px 18px; color: #817989; font-size: 10px; font-weight: 700; transition: .2s; }
.rules-nav a span { color: #554962; font: 700 8px "Unbounded"; }
.rules-nav a:hover { color: var(--text); border-left: 2px solid var(--accent); margin-left: -1px; background: linear-gradient(90deg, rgba(155,92,255,.08), transparent); }
.rule-section { scroll-margin-top: 35px; position: relative; padding: 0 0 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.rule-number { position: absolute; right: 0; top: -20px; color: rgba(155,92,255,.14); font: 800 72px "Unbounded"; }
.rule-section > h2 { position: relative; z-index: 1; margin-bottom: 45px; font-size: clamp(29px,3.4vw,48px); text-transform: none; }
.rule-section article { padding: 26px 30px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(255,255,255,.025), transparent); border: 1px solid var(--line); border-left: 2px solid #52376e; }
.rule-section h3 { margin: 0 0 13px; font: 700 15px "Unbounded"; }
.rule-section p, .rule-section li { color: #aaa2b1; font-size: 13px; line-height: 1.75; }
.rule-section p { margin: 8px 0; }
.rule-section ul { margin: 8px 0 0; padding-left: 20px; }
.rule-section li { padding-left: 4px; margin: 3px 0; }
.rule-section strong { color: #e2dce8; }
.allowed-box, .forbidden-box { margin-top: 18px; padding: 18px 20px; background: rgba(104,177,85,.06); border: 1px solid rgba(144,211,109,.17); }
.forbidden-box { background: rgba(222,78,91,.06); border-color: rgba(222,78,91,.19); }
.allowed-box strong, .forbidden-box strong { font-size: 11px; }
.moderation { padding: 42px; background: linear-gradient(135deg, rgba(155,92,255,.11), rgba(155,92,255,.02)); border: 1px solid #4b3363; }
.moderation > h2 { margin-bottom: 25px; }
.moderation > p { max-width: 760px; color: #c7becf; font-size: 14px; }
.rules-finale { text-align: center; padding: 80px 20px 20px; }
.rules-finale > span { display: block; font-size: 35px; margin-bottom: 24px; }
.rules-finale h2 { font-size: clamp(34px,4.6vw,62px); }
.rules-finale p { color: var(--accent-light); margin: 22px 0 32px; }
.rules-finale .primary-button { width: fit-content; margin: auto; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 18px; }
  nav { gap: 20px; font-size: 12px; }
  .header-cta, .rules-button { padding-inline: 14px; }
  .join-options { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto 1fr; }
  nav { display: none; }
  .header-actions-nav { justify-self: end; }
}

@media (max-width: 900px) {
  .hero { min-height: 760px; padding-top: 70px; align-items: flex-start; }
  .hero-copy { width: 100%; }
  .hero-art { width: 100%; opacity: .58; }
  .hero:before { background: linear-gradient(90deg, rgba(8,6,13,.96), rgba(8,6,13,.42)), linear-gradient(0deg, var(--bg), transparent 35%); }
  .live-card { left: 5.2vw; right: auto; bottom: 40px; width: min(360px,89.6vw); }
  .about-grid, .lore, .connect-grid, .community { grid-template-columns: 1fr; gap: 55px; }
  .features { grid-template-columns: 1fr; }
  .features article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .features article:last-child { border-bottom: 0; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { display: none; }
}

@media (max-width: 560px) {
  .site-header { height: auto; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 20px; }
  .header-actions-nav { gap: 8px; }
  .header-cta { display: none; }
  .rules-button { padding: 10px 12px; font-size: 9px; }
  .hero { min-height: 700px; padding-top: 60px; }
  h1 { font-size: clamp(42px, 13.5vw, 62px); }
  .hero-lead { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .primary-button { width: 100%; justify-content: space-between; }
  .hero-art { left: 5%; width: 120%; }
  .sun { width: 210px; height: 210px; right: 9%; top: 30%; }
  .live-card { bottom: 22px; }
  .section { padding: 82px 5.2vw; }
  h2 { font-size: clamp(32px, 10vw, 47px); }
  .about-copy { padding-left: 20px; }
  .features { margin-top: 55px; }
  .address-panel { padding: 23px 18px; }
  .address-row { align-items: flex-start; gap: 10px; }
  .address-row.secondary { flex-direction: column; align-items: stretch; }
  .address-row.secondary .mini-copy { width: fit-content; }
  .server-meta { gap: 12px; flex-wrap: wrap; }
  .social-list a { grid-template-columns: 48px 1fr auto; gap: 14px; }
  .social-icon { width: 48px; height: 48px; }
  .social-list strong { font-size: 12px; }
  footer { padding: 35px 5.2vw; align-items: flex-start; gap: 25px; flex-wrap: wrap; }
  footer p { width: 65%; order: 3; }
  .video-play { width: 60px; height: 60px; }
  .video-preview strong { display: none; }
  .rules-main { padding: 0 5.2vw 80px; }
  .rules-hero { padding: 75px 0 65px; }
  .rules-hero > p { font-size: 13px; }
  .rules-note { line-height: 1.5; }
  .rules-layout { padding-top: 60px; }
  .rule-section { padding-bottom: 52px; margin-bottom: 52px; }
  .rule-section article { padding: 22px 18px; }
  .rule-number { font-size: 52px; }
  .moderation { padding: 28px 20px; }
  .rules-finale { padding-top: 55px; }
}

@media (max-width: 390px) {
  .site-header { grid-template-columns: 1fr; justify-items: start; }
  .header-actions-nav { justify-self: stretch; width: 100%; }
  .rules-button { width: 100%; text-align: center; }
  .live-card { flex-wrap: wrap; gap: 12px; }
  .online-count { width: 100%; margin-left: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .js-enabled .reveal { transition-duration: .18s; filter: none; }
  body:before { animation: backgroundDrift 24s ease-in-out infinite alternate !important; }
  body:after { animation: ambientShift 20s ease-in-out infinite alternate !important; }
  .marquee-track { animation: marquee 22s linear infinite !important; }
}
