
:root{
  --bg:#03070d;--panel:rgba(6,15,26,.66);--panel2:rgba(255,255,255,.052);--line:rgba(175,222,255,.16);
  --ink:#f3f9ff;--muted:#a9bccc;--blue:#7be7ff;--blue2:#1d7db1;--gold:#e5c477;--shadow:0 35px 95px rgba(0,0,0,.58);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 18% 9%,rgba(123,231,255,.15),transparent 34rem),radial-gradient(circle at 88% 2%,rgba(229,196,119,.12),transparent 30rem),linear-gradient(180deg,#03070d 0%,#071321 52%,#03070d 100%);z-index:-5}
#snow{position:fixed;inset:0;z-index:5;pointer-events:none;opacity:.42}.aurora{position:fixed;top:-11rem;left:12%;width:80vw;height:25rem;background:linear-gradient(90deg,transparent,rgba(73,205,255,.25),rgba(229,196,119,.08),transparent);filter:blur(45px);z-index:-1;animation:aurora 13s ease-in-out infinite alternate}@keyframes aurora{to{transform:translateX(7rem) rotate(-4deg)}}
.preloader{position:fixed;inset:0;z-index:999;display:grid;place-items:center;background:#02050a;transition:opacity .8s ease,visibility .8s ease}.preloader.done{opacity:0;visibility:hidden}.preloader p{margin-top:8rem;color:var(--muted);letter-spacing:.18em;text-transform:uppercase;font-size:.76rem}
.cold-flame{position:relative;width:58px;height:82px;filter:drop-shadow(0 0 18px rgba(123,231,255,.55));}.cold-flame.large{transform:scale(1.25)}
.cold-flame span,.cold-flame i,.cold-flame b{position:absolute;left:50%;bottom:0;display:block;border-radius:60% 40% 55% 45%;transform-origin:bottom center;mix-blend-mode:screen}
.cold-flame span{width:44px;height:72px;margin-left:-22px;background:radial-gradient(circle at 48% 68%,#eaffff 0 13%,#8df0ff 18%,#2190d0 47%,transparent 72%);animation:flame 1.9s ease-in-out infinite}
.cold-flame i{width:30px;height:54px;margin-left:-15px;background:radial-gradient(circle at 50% 72%,#fff 0 16%,#bdffff 32%,transparent 68%);animation:flame 1.35s ease-in-out infinite reverse}
.cold-flame b{width:52px;height:16px;margin-left:-26px;background:radial-gradient(ellipse,#8df0ff,transparent 68%);filter:blur(2px);animation:pulse 2s ease-in-out infinite}
@keyframes flame{0%,100%{transform:scaleX(.95) translateY(0) rotate(-3deg)}50%{transform:scaleX(1.1) translateY(-6px) rotate(4deg)}}@keyframes pulse{50%{opacity:.45;transform:scaleX(1.25)}}
.topbar{position:fixed;z-index:80;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:15px clamp(18px,4vw,62px);background:rgba(3,8,14,.7);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.brand{display:flex;gap:.75rem;align-items:center;text-decoration:none;color:var(--ink)}.brand-mark{width:42px;height:42px;border:1px solid rgba(229,196,119,.5);border-radius:14px;display:grid;place-items:center;color:var(--gold);font-weight:950;background:rgba(255,255,255,.06)}.brand strong{display:block}.brand em{display:block;font-style:normal;color:var(--muted);font-size:.75rem}.nav{display:flex;gap:.25rem}.nav a{color:var(--muted);text-decoration:none;padding:.65rem .85rem;border-radius:999px}.nav a:hover{color:var(--ink);background:rgba(255,255,255,.08)}
.audio-panel{display:flex;align-items:center;gap:.45rem;border:1px solid var(--line);border-radius:999px;padding:.35rem;background:rgba(0,0,0,.25)}.audio-panel button{border:0;border-radius:999px;padding:.62rem .85rem;font-weight:850;cursor:pointer}.audio-panel button:first-child{background:linear-gradient(135deg,var(--blue),#f2fdff);color:#04101a}.audio-panel button:nth-child(2){background:rgba(255,255,255,.08);color:var(--ink);border:1px solid var(--line)}.audio-panel input{width:90px;accent-color:var(--gold)}
.hero{min-height:100vh;position:relative;display:grid;align-items:center;padding:120px clamp(18px,6vw,90px) 80px;overflow:hidden}.hero-bg{position:absolute;inset:0;z-index:-4}.hero-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(.68) contrast(1.08) saturate(.95);transform:scale(1.04);animation:heroDrift 18s ease-in-out infinite alternate}.hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,7,13,.96) 0%,rgba(3,7,13,.68) 38%,rgba(3,7,13,.25) 67%,rgba(3,7,13,.72) 100%),linear-gradient(0deg,#03070d 0%,transparent 35%,rgba(3,7,13,.38) 100%)}@keyframes heroDrift{to{transform:scale(1.1) translate(-1.3rem,-.6rem)}}.hero-content{max-width:780px}.eyebrow{color:var(--gold);letter-spacing:.22em;text-transform:uppercase;font-weight:950;font-size:.76rem}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(3.2rem,8vw,8rem);letter-spacing:-.08em;line-height:.9;margin:.75rem 0 1.2rem}h2{font-size:clamp(2.2rem,5.4vw,5.2rem);letter-spacing:-.065em;line-height:.96;margin-bottom:1rem}.hero-copy,.sub{max-width:780px;color:#d2e3ef;line-height:1.72;font-size:clamp(1.05rem,1.7vw,1.28rem)}.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}.btn{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;min-height:48px;border-radius:999px;padding:.85rem 1.15rem;font-weight:950;transition:transform .25s ease,box-shadow .25s ease}.btn:hover{transform:translateY(-3px)}.btn.primary{background:linear-gradient(135deg,var(--blue),#fff);color:#04101a;box-shadow:0 24px 70px rgba(123,231,255,.25)}.btn.ghost{color:var(--ink);border:1px solid var(--line);background:rgba(255,255,255,.065);backdrop-filter:blur(12px)}
.section{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:105px 0}.identity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.glass,.step,.section-card{border:1px solid var(--line);border-radius:26px;background:linear-gradient(145deg,rgba(8,20,34,.7),rgba(255,255,255,.045));box-shadow:var(--shadow);backdrop-filter:blur(14px);padding:1.35rem}.glass p,.step p,.sub{color:var(--muted);line-height:1.65}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1.1rem}.stats{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.stats span{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.055);padding:.7rem .85rem;color:var(--muted)}.stats strong{color:var(--ink)}
.mod-controls{display:grid;grid-template-columns:1.2fr .8fr;gap:.8rem;margin-bottom:.85rem}.mod-controls label{display:grid;gap:.4rem;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.13em;font-weight:900}.mod-controls input,.mod-controls select{width:100%;border:1px solid var(--line);border-radius:18px;background:rgba(0,0,0,.32);color:var(--ink);padding:1rem;outline:none}.mod-controls input:focus,.mod-controls select:focus{border-color:rgba(123,231,255,.75);box-shadow:0 0 0 4px rgba(123,231,255,.1)}
.section-nav{display:flex;gap:.45rem;overflow-x:auto;padding:.25rem 0 1rem;margin-bottom:.4rem;scrollbar-width:thin}.nav-chip{white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.045);color:var(--muted);padding:.58rem .8rem;font-size:.86rem;text-decoration:none;transition:.2s ease}.nav-chip:hover{color:#04101a;background:linear-gradient(135deg,var(--gold),#fff1be)}
.mod-sections{display:grid;gap:1rem}.mod-section{border:1px solid var(--line);border-radius:28px;background:rgba(2,8,15,.67);box-shadow:var(--shadow);overflow:hidden}.mod-section-header{position:sticky;top:74px;z-index:20;display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.1rem;background:linear-gradient(135deg,rgba(7,21,36,.96),rgba(16,31,45,.93));border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.mod-section-header h3{margin:0;font-size:1.1rem}.mod-section-header span{color:var(--muted);font-size:.9rem}.mod-list{display:grid}.mod-row{display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:1rem;padding:.78rem 1.05rem;border-bottom:1px solid rgba(175,222,255,.095);transition:background .22s ease,transform .22s ease}.mod-row:last-child{border-bottom:0}.mod-row:hover{background:rgba(123,231,255,.055);transform:translateX(3px)}.priority{color:var(--gold);font-weight:950}.mod-main a{color:var(--ink);font-weight:900;text-decoration:none}.mod-main a:hover{color:var(--blue)}.meta{color:var(--muted);font-size:.86rem;margin-top:.25rem}.badge{white-space:nowrap;border:1px solid rgba(80,255,165,.28);color:#b8ffd7;background:rgba(80,255,165,.075);font-size:.72rem;font-weight:950;border-radius:999px;padding:.28rem .52rem}.badge.local{color:#ffe2a0;border-color:rgba(229,196,119,.34);background:rgba(229,196,119,.08)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.step span{display:inline-grid;place-items:center;color:var(--gold);border:1px solid rgba(229,196,119,.34);border-radius:14px;width:42px;height:42px;margin-bottom:1rem}
footer{display:flex;justify-content:space-between;gap:1rem;padding:34px clamp(18px,4vw,62px);border-top:1px solid var(--line);color:var(--muted);background:rgba(0,0,0,.22)}footer strong{color:var(--ink)}
.reveal{opacity:0;transform:translateY(26px);filter:blur(6px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1),filter .75s ease}.reveal.in{opacity:1;transform:none;filter:none}.delay-1{transition-delay:.08s}.delay-2{transition-delay:.16s}.delay-3{transition-delay:.24s}
@media(max-width:980px){.nav{display:none}.topbar{position:sticky}.audio-panel input{width:68px}.identity-grid,.mod-controls,.steps{grid-template-columns:1fr}.section-head{display:block}.mod-row{grid-template-columns:64px 1fr}.mod-row .badge{grid-column:2}.mod-section-header{top:0}.hero{padding-top:80px}footer{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none;filter:none}.hero-bg img{transform:none}}


/* v7 Premium refinements */
body {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}

main {
  view-transition-name: frost-page;
}

.hero:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 18% 35%, rgba(123,231,255,.20), transparent 25rem),
    linear-gradient(120deg, rgba(123,231,255,.08), transparent 36%, rgba(229,196,119,.06));
  pointer-events:none;
  animation: heroLightSweep 9s ease-in-out infinite alternate;
}

@keyframes heroLightSweep {
  from { opacity:.38; transform:translateX(-2rem); }
  to { opacity:.78; transform:translateX(2rem); }
}

.cold-flame {
  width: 70px;
  height: 94px;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 18px rgba(123,231,255,.62)) drop-shadow(0 0 42px rgba(32,105,255,.28));
  animation: flameFloat 3.8s ease-in-out infinite;
}

.cold-flame.large {
  width: 105px;
  height: 140px;
}

.cold-flame img {
  width: 100%;
  height: 100%;
  display:block;
}

.cold-flame span,
.cold-flame i,
.cold-flame b {
  display:none !important;
}

@keyframes flameFloat {
  0%,100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 16px rgba(123,231,255,.55)) drop-shadow(0 0 36px rgba(32,105,255,.22)); }
  50% { transform: translateY(-8px) scale(1.035); filter: drop-shadow(0 0 24px rgba(165,245,255,.85)) drop-shadow(0 0 58px rgba(32,105,255,.36)); }
}

.mod-section {
  transform-origin: top center;
  animation: sectionRise .55s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes sectionRise {
  from { opacity:0; transform: translateY(18px) scale(.992); }
  to { opacity:1; transform:none; }
}

.mod-section-header {
  cursor:pointer;
}

.mod-section-header:after {
  content:"Open";
  color:var(--gold);
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.8;
}

.mod-section.collapsed .mod-list {
  display:none;
}

.mod-section.collapsed .mod-section-header:after {
  content:"Closed";
}

.mod-row {
  min-height: 62px;
}

.mod-main a:before {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:.55rem;
  border-radius:50%;
  background:var(--blue);
  box-shadow:0 0 12px rgba(123,231,255,.85);
  vertical-align:middle;
  opacity:.7;
}

.badge {
  justify-self:end;
}

.nav-chip {
  font-size:.82rem;
}

.section-nav {
  mask-image: linear-gradient(90deg, transparent, black 20px, black calc(100% - 20px), transparent);
}

.page-transition-flash {
  position:fixed;
  inset:0;
  z-index:120;
  pointer-events:none;
  background:radial-gradient(circle at 50% 50%, rgba(123,231,255,.24), transparent 30rem);
  opacity:0;
  transition:opacity .35s ease;
}

.page-transition-flash.active {
  opacity:1;
}

.search-count {
  color: var(--muted);
  margin: .5rem 0 1rem;
  font-size: .9rem;
}

@media(max-width:980px){
  .cold-flame { width:56px;height:76px; }
  .mod-section-header:after { display:none; }
}


/* v8 visibility and elegance fixes */
.mod-section {
  overflow: visible;
  border-radius: 24px;
}

.mod-section-header {
  position: relative !important;
  top: auto !important;
  z-index: 2;
  min-height: 64px;
  padding: 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 30, 48, .96), rgba(8, 19, 32, .96));
}

.mod-section-header h3,
.mod-section-header span {
  position: relative;
  z-index: 3;
}

.mod-list {
  position: relative;
  z-index: 1;
  background: rgba(1, 7, 13, .86);
}

.mod-row {
  position: relative;
  z-index: 1;
  grid-template-columns: 72px minmax(0, 1fr) 128px;
  padding: .92rem 1.05rem;
  background: rgba(1, 7, 13, .42);
}

.mod-row:first-child {
  border-top: 1px solid rgba(175,222,255,.10);
}

.mod-row:hover {
  background: rgba(123,231,255,.075);
}

.mod-main {
  min-width: 0;
}

.mod-main a,
.mod-main span {
  display: inline;
  line-height: 1.35;
}

.priority {
  position: relative;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

.badge {
  align-self: center;
  justify-self: end;
  text-align: center;
}

.section-nav {
  max-width: 100%;
  padding-bottom: .7rem;
}

.nav-chip {
  flex: 0 0 auto;
}

@media(max-width:980px){
  .mod-section-header {
    grid-template-columns: 1fr auto;
  }

  .mod-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .75rem;
  }

  .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: .35rem;
  }
}


/* v9 actual install page rebuild */
.install-page{width:min(1220px,calc(100% - 36px));margin:0 auto;padding:100px 0 120px}
.install-hero{position:relative;min-height:360px;border:1px solid var(--line);border-radius:32px;overflow:hidden;box-shadow:var(--shadow);display:grid;align-items:center;margin-bottom:2rem;background:#050b12}
.install-hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,7,13,.95),rgba(3,7,13,.42),rgba(3,7,13,.85)),url("assets/frost-arcana-cover.png") center/cover no-repeat;filter:saturate(.9) brightness(.68);transform:scale(1.04);animation:installPan 16s ease-in-out infinite alternate}
@keyframes installPan{to{transform:scale(1.1) translateX(-18px)}}
.install-hero-content{position:relative;max-width:760px;padding:clamp(2rem,5vw,4rem)}
.install-hero-content p{color:#d4e4ee;line-height:1.75;font-size:1.1rem}.install-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.5rem}
.installer-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.2rem;align-items:start}
.installer-sidebar{position:sticky;top:96px;border:1px solid var(--line);border-radius:24px;background:rgba(4,11,19,.74);backdrop-filter:blur(16px);padding:1rem;box-shadow:var(--shadow)}
.installer-sidebar strong{display:block;color:var(--gold);margin-bottom:.75rem;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}
.installer-sidebar a{display:block;color:var(--muted);text-decoration:none;padding:.8rem .75rem;border-radius:14px;transition:.22s ease}
.installer-sidebar a:hover{color:var(--ink);background:rgba(123,231,255,.08);transform:translateX(4px)}
.installer-content{display:grid;gap:1rem}.guide-card{position:relative;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,rgba(8,20,34,.76),rgba(255,255,255,.04));box-shadow:var(--shadow);padding:clamp(1.25rem,3vw,2rem);overflow:hidden}
.guide-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 0%,rgba(123,231,255,.12),transparent 24rem);pointer-events:none}
.guide-number{display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid rgba(229,196,119,.4);border-radius:14px;color:var(--gold);background:rgba(229,196,119,.08);font-weight:950;margin-bottom:.9rem}
.guide-card p,.guide-card li{color:var(--muted);line-height:1.7}.requirements-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:1rem}
.requirements-grid div,.oneclick-box{border:1px solid rgba(175,222,255,.12);border-radius:18px;background:rgba(0,0,0,.22);padding:1rem}
.requirements-grid b,.oneclick-box b{display:block;color:var(--ink);margin-bottom:.3rem}.requirements-grid span,.oneclick-box span{color:var(--muted)}
.inline-download{display:inline-flex;margin-top:.7rem;color:#07101a;background:linear-gradient(135deg,var(--blue),#fff);border-radius:999px;padding:.75rem 1rem;text-decoration:none;font-weight:900}
.install-timeline{list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:.7rem}.install-timeline li{display:grid;grid-template-columns:190px 1fr;gap:1rem;align-items:start;padding:.9rem;border:1px solid rgba(175,222,255,.12);border-radius:18px;background:rgba(0,0,0,.20)}
.install-timeline b{color:var(--gold)}.output-pills{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.output-pills span{border:1px solid rgba(123,231,255,.28);border-radius:999px;color:#dff9ff;background:rgba(123,231,255,.075);padding:.55rem .8rem;font-weight:850}
.oneclick-box{display:grid;gap:.45rem;margin-top:1rem}.clean-list{margin-bottom:0}
@media(max-width:980px){.installer-layout{grid-template-columns:1fr}.installer-sidebar{position:relative;top:auto}.requirements-grid,.install-timeline li{grid-template-columns:1fr}}


/* v10 coming soon installer treatment */
.coming-soon-card {
  border-color: rgba(229,196,119,.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(123,231,255,.14), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(229,196,119,.12), transparent 22rem),
    linear-gradient(145deg, rgba(8,20,34,.80), rgba(255,255,255,.045));
}

.soon-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), #fff1c6);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .74rem;
  margin-left: .65rem;
  vertical-align: top;
}

.soon-label:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #07101a;
  box-shadow: 0 0 14px rgba(123,231,255,.9);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.roadmap-grid div {
  border: 1px solid rgba(175,222,255,.13);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  padding: 1rem;
}

.roadmap-grid b {
  display: block;
  color: var(--gold);
  margin-bottom: .45rem;
}

.roadmap-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.small-note {
  margin-top: 1rem;
  font-size: .94rem;
}

@media(max-width: 980px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}


/* v11 category-integrity polish */
.mod-section-header h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .65rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(229,196,119,.65);
  vertical-align: middle;
}

.mod-section[data-section="Core Foundation"] .mod-section-header h3::before,
.mod-section[data-section="Community Shaders"] .mod-section-header h3::before {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(123,231,255,.75);
}

.integrity-note {
  color: var(--muted);
  font-size: .92rem;
  margin: .25rem 0 1rem;
}

.mod-section-header span {
  white-space: nowrap;
}


/* v12 cinematic standalone homepage */
.home-splash {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #02060b;
}

.home-cover {
  position: absolute;
  inset: 0;
  z-index: -5;
}

.home-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.62) contrast(1.06) saturate(.92);
  transform: scale(1.055);
  animation: coverBreath 20s ease-in-out infinite alternate;
}

@keyframes coverBreath {
  to { transform: scale(1.11) translate3d(-1.4rem, -.6rem, 0); }
}

.home-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 38%, rgba(115,226,255,.18), transparent 22rem),
    radial-gradient(circle at 50% 54%, rgba(229,196,119,.08), transparent 28rem),
    linear-gradient(90deg, rgba(2,6,11,.88), rgba(2,6,11,.38), rgba(2,6,11,.88)),
    linear-gradient(0deg, #02060b 0%, rgba(2,6,11,.45) 42%, rgba(2,6,11,.72) 100%);
}

.home-stage {
  width: min(980px, calc(100% - 36px));
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 2;
}

.home-title {
  font-size: clamp(4.5rem, 12vw, 12rem);
  letter-spacing: .02em;
  line-height: .86;
  margin: .15rem 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  color: #f7fbff;
  text-shadow:
    0 0 28px rgba(123,231,255,.35),
    0 0 80px rgba(0,0,0,.88);
}

.home-subtitle {
  max-width: 780px;
  margin: 0 auto;
  color: #d7e7f0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.frost-artifact {
  position: relative;
  width: 168px;
  height: 210px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  animation: artifactFloat 5.5s ease-in-out infinite;
}

@keyframes artifactFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.artifact-flame {
  position: relative;
  width: 126px;
  height: 168px;
  z-index: 3;
  border-radius: 42% 48% 46% 44%;
  overflow: hidden;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 14px rgba(123,231,255,.86))
    drop-shadow(0 0 44px rgba(32,105,255,.46))
    drop-shadow(0 0 74px rgba(123,231,255,.28));
}

.artifact-flame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
  filter: hue-rotate(6deg) saturate(1.28) brightness(1.2) contrast(1.08);
}

.artifact-aura {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(233,255,255,.55) 0 5%, rgba(123,231,255,.28) 18%, rgba(33,108,255,.18) 42%, transparent 70%);
  filter: blur(10px);
  animation: auraPulse 2.8s ease-in-out infinite;
}

@keyframes auraPulse {
  50% { transform: scale(1.22); opacity: .58; }
}

.artifact-ring {
  position: absolute;
  width: 155px;
  height: 58px;
  bottom: 22px;
  border: 1px solid rgba(123,231,255,.34);
  border-radius: 999px;
  transform: rotateX(72deg);
  box-shadow:
    0 0 16px rgba(123,231,255,.38),
    inset 0 0 18px rgba(123,231,255,.14);
  animation: ringSpin 4.2s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotateX(72deg) rotateZ(360deg); }
}

.snowfall.premium {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowfall.premium i {
  position: absolute;
  top: -12vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(238,250,255,.95);
  box-shadow: 0 0 12px rgba(123,231,255,.75);
  animation: premiumSnow linear infinite;
  opacity: .72;
}

.snowfall.premium i:nth-child(1){left:4%;animation-duration:15s;animation-delay:-2s}
.snowfall.premium i:nth-child(2){left:9%;animation-duration:19s;animation-delay:-8s;width:2px;height:2px}
.snowfall.premium i:nth-child(3){left:15%;animation-duration:13s;animation-delay:-5s}
.snowfall.premium i:nth-child(4){left:21%;animation-duration:21s;animation-delay:-10s;width:4px;height:4px}
.snowfall.premium i:nth-child(5){left:28%;animation-duration:17s;animation-delay:-4s}
.snowfall.premium i:nth-child(6){left:34%;animation-duration:23s;animation-delay:-13s;width:2px;height:2px}
.snowfall.premium i:nth-child(7){left:40%;animation-duration:14s;animation-delay:-7s}
.snowfall.premium i:nth-child(8){left:46%;animation-duration:18s;animation-delay:-3s}
.snowfall.premium i:nth-child(9){left:52%;animation-duration:22s;animation-delay:-12s;width:4px;height:4px}
.snowfall.premium i:nth-child(10){left:58%;animation-duration:16s;animation-delay:-6s}
.snowfall.premium i:nth-child(11){left:63%;animation-duration:20s;animation-delay:-9s}
.snowfall.premium i:nth-child(12){left:68%;animation-duration:13s;animation-delay:-4s;width:2px;height:2px}
.snowfall.premium i:nth-child(13){left:73%;animation-duration:21s;animation-delay:-15s}
.snowfall.premium i:nth-child(14){left:79%;animation-duration:17s;animation-delay:-11s;width:4px;height:4px}
.snowfall.premium i:nth-child(15){left:84%;animation-duration:15s;animation-delay:-8s}
.snowfall.premium i:nth-child(16){left:90%;animation-duration:24s;animation-delay:-16s;width:2px;height:2px}
.snowfall.premium i:nth-child(17){left:96%;animation-duration:18s;animation-delay:-5s}
.snowfall.premium i:nth-child(18){left:12%;animation-duration:26s;animation-delay:-19s;width:2px;height:2px}
.snowfall.premium i:nth-child(19){left:31%;animation-duration:25s;animation-delay:-21s}
.snowfall.premium i:nth-child(20){left:49%;animation-duration:28s;animation-delay:-18s;width:2px;height:2px}
.snowfall.premium i:nth-child(21){left:66%;animation-duration:24s;animation-delay:-17s}
.snowfall.premium i:nth-child(22){left:77%;animation-duration:29s;animation-delay:-22s;width:2px;height:2px}
.snowfall.premium i:nth-child(23){left:88%;animation-duration:26s;animation-delay:-20s}
.snowfall.premium i:nth-child(24){left:98%;animation-duration:30s;animation-delay:-23s;width:2px;height:2px}

@keyframes premiumSnow {
  0% { transform: translate3d(0, -10vh, 0) scale(.75); opacity: 0; }
  10% { opacity: .75; }
  70% { opacity: .72; }
  100% { transform: translate3d(-90px, 116vh, 0) scale(1.18); opacity: 0; }
}

.home-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 34px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  display: grid;
  justify-items: center;
  padding-top: 10px;
  transform: translateX(-50%);
}

.home-scroll span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(229,196,119,.75);
  animation: scrollPulse 1.7s ease-in-out infinite;
}

@keyframes scrollPulse {
  50% { transform: translateY(18px); opacity: .35; }
}

/* remove old hero display if cached sections still exist */
.hero {
  display: none;
}

@media(max-width: 980px) {
  .home-title {
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

  .frost-artifact {
    width: 132px;
    height: 168px;
  }

  .artifact-flame {
    width: 104px;
    height: 138px;
  }
}


/* v13 true page routing + cinematic homepage */
html, body {
  min-height: 100%;
}

.single-home footer {
  display: none;
}

.true-home {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #02060b;
}

.true-home-cover {
  position: absolute;
  inset: 0;
  z-index: -5;
}

.true-home-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.72) contrast(1.06) saturate(.96);
  transform: scale(1.018);
  animation: coverPrestige 26s ease-in-out infinite alternate;
}

@keyframes coverPrestige {
  to { transform: scale(1.065) translate3d(-14px, -7px, 0); }
}

.true-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 32%, rgba(123,231,255,.18), transparent 18rem),
    radial-gradient(circle at 50% 68%, rgba(0,0,0,.15), transparent 28rem),
    linear-gradient(90deg, rgba(2,6,11,.50), rgba(2,6,11,.08), rgba(2,6,11,.50)),
    linear-gradient(0deg, rgba(2,6,11,.72), rgba(2,6,11,.18) 48%, rgba(2,6,11,.62));
}

.true-home-flame {
  position: absolute;
  top: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(92px, 8vw, 138px);
  height: clamp(124px, 10vw, 184px);
  z-index: 4;
  display: grid;
  place-items: center;
  animation: cinematicFlameFloat 4.8s ease-in-out infinite;
}

.true-home-flame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.33);
  border-radius: 46%;
  mix-blend-mode: screen;
  filter:
    hue-rotate(8deg)
    saturate(1.35)
    brightness(1.23)
    contrast(1.12)
    drop-shadow(0 0 18px rgba(132,238,255,.95))
    drop-shadow(0 0 58px rgba(36,114,255,.62));
}

.flame-field {
  position: absolute;
  inset: -48px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(230,255,255,.45) 0 7%, rgba(123,231,255,.25) 20%, rgba(26,105,240,.13) 48%, transparent 72%);
  filter: blur(13px);
  animation: flameFieldPulse 2.9s ease-in-out infinite;
}

@keyframes cinematicFlameFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-12px) scale(1.035); }
}

@keyframes flameFieldPulse {
  0%, 100% { transform: scale(.92); opacity: .62; }
  50% { transform: scale(1.24); opacity: .95; }
}

.home-entry-card {
  position: absolute;
  left: 50%;
  bottom: 9.5%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 36px));
  text-align: center;
  z-index: 5;
  padding: 1rem;
}

.home-statement {
  color: #e0edf6;
  line-height: 1.7;
  max-width: 720px;
  margin: .5rem auto 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.true-home-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.true-home-snow i {
  position: absolute;
  top: -10vh;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(240,252,255,.96);
  box-shadow: 0 0 12px rgba(123,231,255,.8);
  opacity: .75;
  animation: homeSnow linear infinite;
}

.true-home-snow i:nth-child(1){left:4%;animation-duration:14s;animation-delay:-2s}
.true-home-snow i:nth-child(2){left:8%;animation-duration:20s;animation-delay:-10s;width:2px;height:2px}
.true-home-snow i:nth-child(3){left:13%;animation-duration:16s;animation-delay:-4s}
.true-home-snow i:nth-child(4){left:18%;animation-duration:24s;animation-delay:-15s}
.true-home-snow i:nth-child(5){left:25%;animation-duration:19s;animation-delay:-8s;width:2px;height:2px}
.true-home-snow i:nth-child(6){left:31%;animation-duration:15s;animation-delay:-5s}
.true-home-snow i:nth-child(7){left:37%;animation-duration:22s;animation-delay:-14s}
.true-home-snow i:nth-child(8){left:43%;animation-duration:17s;animation-delay:-9s;width:4px;height:4px}
.true-home-snow i:nth-child(9){left:49%;animation-duration:25s;animation-delay:-16s}
.true-home-snow i:nth-child(10){left:55%;animation-duration:18s;animation-delay:-6s}
.true-home-snow i:nth-child(11){left:61%;animation-duration:23s;animation-delay:-13s;width:2px;height:2px}
.true-home-snow i:nth-child(12){left:67%;animation-duration:15s;animation-delay:-3s}
.true-home-snow i:nth-child(13){left:72%;animation-duration:21s;animation-delay:-11s}
.true-home-snow i:nth-child(14){left:78%;animation-duration:26s;animation-delay:-17s;width:2px;height:2px}
.true-home-snow i:nth-child(15){left:84%;animation-duration:19s;animation-delay:-7s}
.true-home-snow i:nth-child(16){left:90%;animation-duration:27s;animation-delay:-19s}
.true-home-snow i:nth-child(17){left:96%;animation-duration:16s;animation-delay:-6s;width:2px;height:2px}
.true-home-snow i:nth-child(18){left:11%;animation-duration:29s;animation-delay:-21s}
.true-home-snow i:nth-child(19){left:29%;animation-duration:28s;animation-delay:-20s;width:2px;height:2px}
.true-home-snow i:nth-child(20){left:46%;animation-duration:30s;animation-delay:-23s}
.true-home-snow i:nth-child(21){left:64%;animation-duration:27s;animation-delay:-18s;width:2px;height:2px}
.true-home-snow i:nth-child(22){left:75%;animation-duration:31s;animation-delay:-22s}
.true-home-snow i:nth-child(23){left:86%;animation-duration:25s;animation-delay:-17s}
.true-home-snow i:nth-child(24){left:99%;animation-duration:33s;animation-delay:-25s;width:2px;height:2px}

@keyframes homeSnow {
  0% { transform: translate3d(0, -12vh, 0) scale(.72); opacity: 0; }
  12% { opacity: .72; }
  78% { opacity: .7; }
  100% { transform: translate3d(-100px, 116vh, 0) scale(1.2); opacity: 0; }
}

/* Separate page spacing */
.page-shell {
  padding-top: 72px;
}

.identity-page .section,
.modlist-page .section,
.install-page-route .install-page {
  padding-top: 120px;
}

.home-splash {
  display: none !important;
}

/* No cheap duplicate title on homepage; cover art carries the lettering */
.true-home .home-title {
  display: none;
}

@media(max-width:980px) {
  .true-home-flame {
    top: 14%;
    width: 86px;
    height: 116px;
  }

  .home-entry-card {
    bottom: 7%;
  }
}


/* v14: premium flame placement, visible snow, real route transition loader */

/* Homepage should be a true full-screen first impression */
.true-home {
  height: 100vh;
  min-height: 760px;
}

.true-home-cover img {
  object-fit: cover;
  filter: brightness(.82) contrast(1.08) saturate(.98);
}

.true-home::after {
  background:
    radial-gradient(circle at 50% 35%, rgba(123,231,255,.12), transparent 20rem),
    linear-gradient(90deg, rgba(2,6,11,.42), rgba(2,6,11,.08), rgba(2,6,11,.42)),
    linear-gradient(0deg, rgba(2,6,11,.56), rgba(2,6,11,.06) 50%, rgba(2,6,11,.48));
}

/* Position the animated flame over the O/compass area of the supplied cover art */
.true-home-flame {
  top: 28.6%;
  left: 50.2%;
  width: clamp(88px, 7vw, 132px);
  height: clamp(120px, 9vw, 178px);
  z-index: 6;
  pointer-events: none;
  animation: cinematicFlameFloat 3.6s ease-in-out infinite;
}

.true-home-flame img {
  transform: scale(1.55);
  border-radius: 50%;
  opacity: .96;
  animation: flameMicroMotion 1.65s ease-in-out infinite alternate;
}

@keyframes flameMicroMotion {
  from {
    filter:
      hue-rotate(4deg)
      saturate(1.45)
      brightness(1.18)
      contrast(1.12)
      drop-shadow(0 0 18px rgba(132,238,255,.95))
      drop-shadow(0 0 58px rgba(36,114,255,.62));
  }
  to {
    filter:
      hue-rotate(14deg)
      saturate(1.75)
      brightness(1.36)
      contrast(1.22)
      drop-shadow(0 0 28px rgba(175,250,255,1))
      drop-shadow(0 0 82px rgba(36,114,255,.82));
  }
}

.flame-field {
  inset: -66px;
  background:
    radial-gradient(circle, rgba(238,255,255,.52) 0 7%, rgba(123,231,255,.28) 20%, rgba(26,105,240,.16) 46%, transparent 72%);
  animation: flameFieldPulse 2.15s ease-in-out infinite;
}

/* Text now sits lower and lets the cover lettering carry the brand */
.home-entry-card {
  bottom: 8.8%;
  width: min(620px, calc(100% - 36px));
  background: rgba(2, 7, 12, .18);
  border: 1px solid rgba(175,222,255,.08);
  border-radius: 24px;
  backdrop-filter: blur(4px);
}

.home-statement {
  font-size: clamp(.95rem, 1.22vw, 1.08rem);
}

.true-home-snow {
  z-index: 4;
  opacity: 1;
}

.true-home-snow i {
  width: 4px;
  height: 4px;
  opacity: .9;
  background: rgba(246,253,255,1);
  box-shadow:
    0 0 10px rgba(255,255,255,.85),
    0 0 22px rgba(123,231,255,.75);
}

/* Add bigger foreground snow particles for premium visibility */
.true-home-snow::before,
.true-home-snow::after {
  content: "";
  position: absolute;
  top: -20vh;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 20px rgba(123,231,255,.75);
  animation: heroBigSnow 11s linear infinite;
}

.true-home-snow::before { left: 16%; animation-delay: -3s; }
.true-home-snow::after { left: 76%; animation-delay: -7s; }

@keyframes heroBigSnow {
  to { transform: translate3d(-130px, 130vh, 0); opacity: 0; }
}

/* Black page transition loader */
.route-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(12, 48, 78, .38), transparent 26rem),
    #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}

.route-loader.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.route-loader-stage {
  width: min(420px, 86vw);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
}

.route-flame {
  position: relative;
  width: 150px;
  height: 200px;
  display: grid;
  place-items: center;
  animation: routeFlameFloat 2.6s ease-in-out infinite;
}

.route-flame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.38);
  border-radius: 50%;
  mix-blend-mode: screen;
  filter:
    hue-rotate(8deg)
    saturate(1.7)
    brightness(1.35)
    contrast(1.18)
    drop-shadow(0 0 24px rgba(160,246,255,1))
    drop-shadow(0 0 90px rgba(35,110,255,.9));
  animation: routeFlameEnergy 1.2s ease-in-out infinite alternate;
}

.route-flame-aura {
  position: absolute;
  inset: -80px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(245,255,255,.58) 0 5%, rgba(123,231,255,.32) 18%, rgba(28,102,255,.18) 45%, transparent 70%);
  filter: blur(16px);
  animation: routeAuraPulse 1.8s ease-in-out infinite;
}

@keyframes routeFlameFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.04); }
}

@keyframes routeFlameEnergy {
  to {
    filter:
      hue-rotate(18deg)
      saturate(2)
      brightness(1.55)
      contrast(1.28)
      drop-shadow(0 0 34px rgba(205,255,255,1))
      drop-shadow(0 0 120px rgba(35,110,255,1));
  }
}

@keyframes routeAuraPulse {
  50% { transform: scale(1.22); opacity: .72; }
}

.route-loading-text {
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 950;
  font-size: .8rem;
}

.route-progress {
  width: min(320px, 75vw);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.13);
}

.route-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), #fff, var(--gold));
  transform: translateX(-100%);
  animation: routeProgress 5s linear forwards;
}

@keyframes routeProgress {
  to { transform: translateX(0); }
}

/* Make modlist page not disappear behind route shell */
.modlist-page .modlist {
  display: block !important;
}

@media(max-width:980px) {
  .true-home-flame {
    top: 25.5%;
    width: 78px;
    height: 106px;
  }

  .home-entry-card {
    bottom: 7%;
  }

  .route-flame {
    width: 118px;
    height: 160px;
  }
}


/* v15 final flame + modlist fixes */

/* ensure footer doesn't show on single cinematic home */
.single-home footer { display: none !important; }

/* Make home cover center and align flame to O/compass precisely */
.true-home-cover img {
  object-fit: cover;
  object-position: center center;
  filter: brightness(.88) contrast(1.08) saturate(1);
}

.true-home::after {
  background:
    radial-gradient(circle at 52% 37%, rgba(123,231,255,.08), transparent 18rem),
    linear-gradient(90deg, rgba(2,6,11,.34), rgba(2,6,11,.02), rgba(2,6,11,.34)),
    linear-gradient(0deg, rgba(2,6,11,.50), rgba(2,6,11,.00) 50%, rgba(2,6,11,.40));
}

/* The flame now lives visually inside the O, not as a static oval badge */
.true-home-flame {
  top: 30.2% !important;
  left: 52.25% !important;
  width: clamp(70px, 5.2vw, 100px) !important;
  height: clamp(92px, 6.8vw, 132px) !important;
  z-index: 8;
  transform: translate(-50%, -50%);
  animation: faFlameOrbit 3.2s ease-in-out infinite !important;
}

.true-home-flame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  clip-path: none !important;
  mix-blend-mode: screen;
  opacity: .94;
  transform: scale(1.34);
  filter:
    hue-rotate(8deg)
    saturate(1.85)
    brightness(1.45)
    contrast(1.2)
    drop-shadow(0 0 12px rgba(180,255,255,1))
    drop-shadow(0 0 42px rgba(34,120,255,.95))
    drop-shadow(0 0 70px rgba(34,120,255,.42));
  animation: faFlameEnergy 0.85s ease-in-out infinite alternate !important;
}

.flame-field {
  inset: -55px !important;
  background:
    radial-gradient(circle, rgba(245,255,255,.35) 0 5%, rgba(123,231,255,.20) 18%, rgba(31,105,255,.10) 42%, transparent 68%) !important;
  filter: blur(14px) !important;
  animation: faAuraLive 1.4s ease-in-out infinite alternate !important;
}

@keyframes faFlameOrbit {
  0%,100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  33% { transform: translate(-50%, -50%) translate(2px, -5px) scale(1.035); }
  66% { transform: translate(-50%, -50%) translate(-2px, 4px) scale(.985); }
}

@keyframes faFlameEnergy {
  from { opacity:.82; transform: scale(1.28) rotate(-1deg); }
  to { opacity:1; transform: scale(1.46) rotate(1.5deg); }
}

@keyframes faAuraLive {
  to { transform: scale(1.28); opacity:.85; }
}

/* Snow visibility: more depth, not hidden by overlays */
.true-home-snow {
  z-index: 9 !important;
  opacity: 1 !important;
}

.true-home-snow i {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 28px rgba(123,231,255,.9);
}

/* Place CTA card lower and centered; do not fight the cover logo */
.home-entry-card {
  left: 50% !important;
  bottom: 8.2% !important;
  transform: translateX(-50%) !important;
  width: min(660px, calc(100% - 36px));
  text-align: center;
  background: rgba(2,7,12,.30);
}

/* Modlist standalone page stability */
.modlist-page.page-shell {
  padding-top: 100px;
  min-height: 100vh;
}

.modlist-page .modlist {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#modSectionsV15 {
  display: grid;
  gap: 1rem;
}

#modSectionsV15 .mod-section {
  animation: sectionRise .45s cubic-bezier(.2,.8,.2,1) both;
  overflow: visible;
}

#modSectionsV15 .mod-list {
  display: grid;
}

#modSectionsV15 .mod-section.collapsed .mod-list {
  display: none;
}

#modSectionsV15 .mod-section-header {
  position: relative !important;
  top: auto !important;
  cursor: pointer;
}

#modSectionsV15 .mod-section-header::after {
  content: "Collapse";
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#modSectionsV15 .mod-section.collapsed .mod-section-header::after {
  content: "Expand";
}

@media(max-width:980px) {
  .true-home-flame {
    top: 28% !important;
    left: 52% !important;
    width: 58px !important;
    height: 78px !important;
  }
}


/* v16 hand-built Frost Arcana cold flame — no pasted GIF box */
.true-home-flame.fx-flame,
.route-flame.fx-flame {
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
}

.true-home-flame.fx-flame img,
.route-flame.fx-flame img {
  display: none !important;
}

.true-home-flame.fx-flame {
  top: 31.2% !important;
  left: 52.05% !important;
  width: clamp(82px, 6.1vw, 118px) !important;
  height: clamp(118px, 8.4vw, 166px) !important;
  transform: translate(-50%, -50%) !important;
  animation: frostArtifactHover 4.6s ease-in-out infinite !important;
  z-index: 12 !important;
}

.fx-flame {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.fx-flame-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 86%;
  filter:
    drop-shadow(0 0 11px rgba(218, 255, 255, .95))
    drop-shadow(0 0 34px rgba(84, 214, 255, .82))
    drop-shadow(0 0 72px rgba(25, 96, 255, .46));
  animation: coldFlameSway 2.15s ease-in-out infinite;
}

.flame-lobe {
  position: absolute;
  left: 50%;
  bottom: 3%;
  display: block;
  transform-origin: 50% 90%;
  border-radius: 57% 43% 58% 42% / 68% 50% 50% 32%;
  mix-blend-mode: screen;
}

.flame-lobe.outer {
  width: 78%;
  height: 92%;
  margin-left: -39%;
  background:
    radial-gradient(circle at 52% 78%, rgba(255,255,255,.95) 0 8%, rgba(172,252,255,.88) 12%, rgba(67,205,255,.78) 24%, rgba(24,96,255,.45) 48%, rgba(7,20,64,0) 76%),
    linear-gradient(180deg, rgba(92,227,255,.72), rgba(17,71,255,.2) 58%, transparent 86%);
  clip-path: path("M 50 1 C 81 32 91 62 72 91 C 63 105 56 116 62 138 C 45 128 24 107 21 78 C 18 47 35 24 50 1 Z");
  animation: outerFlicker 1.55s ease-in-out infinite alternate;
}

.flame-lobe.mid {
  width: 52%;
  height: 73%;
  margin-left: -26%;
  background:
    radial-gradient(circle at 50% 78%, rgba(255,255,255,1) 0 14%, rgba(180,255,255,.95) 24%, rgba(46,214,255,.78) 46%, transparent 78%);
  clip-path: path("M 50 3 C 70 31 72 55 61 80 C 54 96 50 111 54 132 C 38 116 31 94 34 72 C 37 43 43 24 50 3 Z");
  animation: midFlicker 1.05s ease-in-out infinite alternate-reverse;
}

.flame-lobe.core {
  width: 32%;
  height: 50%;
  margin-left: -16%;
  background:
    radial-gradient(circle at 50% 72%, rgba(255,255,255,1) 0 26%, rgba(220,255,255,1) 40%, rgba(105,238,255,.78) 58%, transparent 82%);
  clip-path: path("M 50 4 C 64 29 63 51 55 71 C 50 85 50 98 50 113 C 39 99 36 81 39 62 C 42 39 45 22 50 4 Z");
  animation: coreFlicker .72s ease-in-out infinite alternate;
}

.flame-lobe.whitecore {
  width: 18%;
  height: 28%;
  margin-left: -9%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(215,255,255,.92) 46%, transparent 73%);
  filter: blur(.8px);
  animation: whitePulse .58s ease-in-out infinite alternate;
}

.fx-flame-aura {
  position: absolute;
  inset: -62%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 52%, rgba(237,255,255,.48) 0 4%, rgba(120,231,255,.28) 18%, rgba(34,114,255,.18) 42%, rgba(34,114,255,0) 70%);
  filter: blur(14px);
  animation: frostAuraBreath 1.7s ease-in-out infinite alternate;
}

.fx-flame-ring {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 120%;
  height: 36%;
  border: 1px solid rgba(143,238,255,.34);
  border-radius: 999px;
  transform: translateX(-50%) rotateX(72deg);
  box-shadow:
    0 0 18px rgba(99,219,255,.42),
    inset 0 0 16px rgba(143,238,255,.14);
}

.fx-flame-ring.ring-one { animation: frostRingSpin 5.8s linear infinite; }
.fx-flame-ring.ring-two {
  width: 88%;
  height: 25%;
  bottom: 19%;
  opacity: .62;
  animation: frostRingSpinReverse 4.2s linear infinite;
}

.flame-spark,
.flame-ember {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(224, 255, 255, .96);
  box-shadow:
    0 0 8px rgba(255,255,255,.95),
    0 0 18px rgba(99,219,255,.9);
  animation: sparkRise 2.2s ease-in-out infinite;
  opacity: 0;
}

.flame-spark { width: 4px; height: 4px; }
.flame-ember { width: 2px; height: 2px; background: rgba(115,228,255,.85); }

.s1{left:47%;bottom:28%;animation-delay:-.1s}.s2{left:58%;bottom:36%;animation-delay:-.45s}.s3{left:38%;bottom:31%;animation-delay:-.9s}
.s4{left:52%;bottom:44%;animation-delay:-1.25s}.s5{left:44%;bottom:51%;animation-delay:-1.55s}.s6{left:61%;bottom:23%;animation-delay:-1.8s}
.s7{left:34%;bottom:39%;animation-delay:-2.05s}.s8{left:55%;bottom:58%;animation-delay:-2.25s}.s9{left:49%;bottom:66%;animation-delay:-2.45s}.s10{left:67%;bottom:48%;animation-delay:-2.6s}
.e1{left:42%;bottom:18%;animation-delay:-.7s}.e2{left:60%;bottom:19%;animation-delay:-1.4s}.e3{left:50%;bottom:25%;animation-delay:-2.1s}

@keyframes frostArtifactHover {
  0%,100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-8px) scale(1.025); }
}

@keyframes coldFlameSway {
  0%,100% { transform: rotate(-1.5deg) scaleX(.98); }
  50% { transform: rotate(2deg) scaleX(1.05); }
}

@keyframes outerFlicker {
  from { transform: translateX(-50%) scaleX(.94) scaleY(.98) rotate(-2deg); opacity: .78; filter: blur(.2px); }
  to { transform: translateX(-50%) scaleX(1.08) scaleY(1.05) rotate(2.5deg); opacity: .96; filter: blur(.7px); }
}

@keyframes midFlicker {
  from { transform: translateX(-50%) scaleX(1.08) scaleY(.97) rotate(2deg); opacity: .88; }
  to { transform: translateX(-50%) scaleX(.92) scaleY(1.08) rotate(-2deg); opacity: 1; }
}

@keyframes coreFlicker {
  from { transform: translateX(-50%) translateY(1px) scale(.92); opacity: .72; }
  to { transform: translateX(-50%) translateY(-3px) scale(1.15); opacity: 1; }
}

@keyframes whitePulse {
  from { transform: translateX(-50%) scale(.75); opacity: .62; }
  to { transform: translateX(-50%) scale(1.25); opacity: 1; }
}

@keyframes frostAuraBreath {
  from { transform: scale(.92); opacity: .42; }
  to { transform: scale(1.26); opacity: .88; }
}

@keyframes frostRingSpin {
  to { transform: translateX(-50%) rotateX(72deg) rotateZ(360deg); }
}

@keyframes frostRingSpinReverse {
  to { transform: translateX(-50%) rotateX(72deg) rotateZ(-360deg); }
}

@keyframes sparkRise {
  0% { transform: translate3d(0, 0, 0) scale(.4); opacity: 0; }
  18% { opacity: 1; }
  74% { opacity: .8; }
  100% { transform: translate3d(var(--spark-x, 10px), -86px, 0) scale(0); opacity: 0; }
}

.s1,.s5,.s8 { --spark-x: -12px; }
.s2,.s6,.s10 { --spark-x: 14px; }
.s3,.s7 { --spark-x: -20px; }
.s4,.s9 { --spark-x: 6px; }

/* Loader flame uses the same handcrafted effect at larger scale */
.route-flame.fx-flame.loader-fx {
  position: relative;
  width: 150px;
  height: 205px;
  animation: frostArtifactHover 3s ease-in-out infinite !important;
}

.route-flame.fx-flame.loader-fx .fx-flame-aura {
  inset: -72%;
}

.route-flame.fx-flame.loader-fx .fx-flame-body {
  transform: scale(1.12);
}

/* Override old route image flame sizing */
.route-flame img {
  display: none !important;
}

/* Remove the ugly square remnants completely */
.artifact-flame,
.artifact-flame img {
  display: none !important;
}

@media(max-width:980px) {
  .true-home-flame.fx-flame {
    width: 68px !important;
    height: 98px !important;
  }
}


/* v17 clean cinematic homepage: no flame, no gimmick */
.true-home {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.true-home-cover img {
  object-fit: cover;
  object-position: center center;
  filter: brightness(.96) contrast(1.04) saturate(.98);
  transform: scale(1.005);
  animation: homeImageBreathClean 28s ease-in-out infinite alternate;
}

@keyframes homeImageBreathClean {
  to { transform: scale(1.035); }
}

.true-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 37%, rgba(150,235,255,.10), transparent 16rem),
    linear-gradient(90deg, rgba(2,6,11,.18), rgba(2,6,11,.02), rgba(2,6,11,.18)),
    linear-gradient(0deg, rgba(2,6,11,.28), transparent 42%, rgba(2,6,11,.22));
  pointer-events: none;
}

/* Subtle cinematic O glow only */
.o-glow {
  position: absolute;
  top: 35.2%;
  left: 50.4%;
  width: clamp(96px, 7.3vw, 150px);
  height: clamp(96px, 7.3vw, 150px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(230,255,255,.36) 0 6%, rgba(126,225,255,.18) 18%, rgba(43,125,255,.08) 42%, transparent 70%);
  filter: blur(5px);
  mix-blend-mode: screen;
  animation: oGlowBreath 5.2s ease-in-out infinite;
}

@keyframes oGlowBreath {
  0%,100% { opacity: .42; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: .72; transform: translate(-50%, -50%) scale(1.08); }
}

/* Kill all prior flame systems */
.true-home-flame,
.fx-flame,
.frost-artifact,
.artifact-flame,
.artifact-aura,
.artifact-ring,
.route-flame,
.route-flame-aura,
.fx-flame-body,
.flame-lobe,
.flame-spark,
.flame-ember,
.fx-flame-ring {
  display: none !important;
}

/* Keep transition loader, but use simple elegant brand text instead of flame */
.route-loader-stage::before {
  content: "FROST ARCANA";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: #f4fbff;
  letter-spacing: .12em;
  text-shadow: 0 0 24px rgba(123,231,255,.35);
  margin-bottom: 1rem;
}

.route-loader-stage {
  gap: .85rem;
}

/* Recenter and simplify CTA card */
.home-entry-card {
  left: 50% !important;
  bottom: 7.5% !important;
  transform: translateX(-50%) !important;
  width: min(620px, calc(100% - 36px));
  padding: 1.1rem 1.25rem;
  background: rgba(2,7,12,.22);
  border: 1px solid rgba(220,235,255,.10);
  border-radius: 24px;
  backdrop-filter: blur(7px);
  box-shadow: 0 24px 90px rgba(0,0,0,.36);
}

.home-statement {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #eef6ff;
  font-size: clamp(.95rem, 1.12vw, 1.06rem);
  line-height: 1.68;
}

.home-actions {
  margin-top: 1.1rem;
}

/* More visible but refined snow */
.true-home-snow {
  z-index: 4 !important;
}

.true-home-snow i {
  opacity: .7;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 18px rgba(123,231,255,.45);
}

/* Remove any old duplicate home splash */
.home-splash,
.hero {
  display: none !important;
}

@media(max-width:980px) {
  .o-glow {
    top: 34.5%;
    left: 50.5%;
    width: 88px;
    height: 88px;
  }

  .home-entry-card {
    bottom: 6%;
  }
}


/* v18 centered home CTA + premium modlist sidebar */
.home-entry-card {
  left: 50% !important;
  right: auto !important;
  bottom: 7.8% !important;
  transform: translateX(-50%) !important;
  width: min(620px, calc(100% - 36px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: grid;
  justify-items: center;
}

.home-actions {
  justify-content: center !important;
  width: 100%;
}

/* Premium modlist page background */
.premium-modlist-page {
  position: relative;
  min-height: 100vh;
  padding-top: 90px;
  isolation: isolate;
  background: #03070d;
}

.premium-mod-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
}

.premium-mod-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.24) contrast(1.08) saturate(.92);
  transform: scale(1.05);
}

.premium-modlist-page::before {
  content:"";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 28% 18%, rgba(123,231,255,.11), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(229,196,119,.08), transparent 24rem),
    linear-gradient(90deg, rgba(2,6,11,.92), rgba(2,6,11,.70), rgba(2,6,11,.92));
  pointer-events: none;
}

.premium-mod-snow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.premium-mod-snow i {
  position: absolute;
  top: -12vh;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 10px rgba(123,231,255,.58);
  animation: modSnow linear infinite;
  opacity: .58;
}

.premium-mod-snow i:nth-child(1){left:4%;animation-duration:18s;animation-delay:-2s}
.premium-mod-snow i:nth-child(2){left:9%;animation-duration:24s;animation-delay:-8s}
.premium-mod-snow i:nth-child(3){left:14%;animation-duration:15s;animation-delay:-5s}
.premium-mod-snow i:nth-child(4){left:21%;animation-duration:28s;animation-delay:-13s}
.premium-mod-snow i:nth-child(5){left:27%;animation-duration:19s;animation-delay:-7s}
.premium-mod-snow i:nth-child(6){left:35%;animation-duration:25s;animation-delay:-11s}
.premium-mod-snow i:nth-child(7){left:41%;animation-duration:16s;animation-delay:-4s}
.premium-mod-snow i:nth-child(8){left:48%;animation-duration:29s;animation-delay:-16s}
.premium-mod-snow i:nth-child(9){left:55%;animation-duration:21s;animation-delay:-9s}
.premium-mod-snow i:nth-child(10){left:61%;animation-duration:17s;animation-delay:-6s}
.premium-mod-snow i:nth-child(11){left:68%;animation-duration:27s;animation-delay:-15s}
.premium-mod-snow i:nth-child(12){left:73%;animation-duration:20s;animation-delay:-3s}
.premium-mod-snow i:nth-child(13){left:79%;animation-duration:26s;animation-delay:-12s}
.premium-mod-snow i:nth-child(14){left:84%;animation-duration:18s;animation-delay:-5s}
.premium-mod-snow i:nth-child(15){left:90%;animation-duration:30s;animation-delay:-18s}
.premium-mod-snow i:nth-child(16){left:96%;animation-duration:22s;animation-delay:-10s}
.premium-mod-snow i:nth-child(n+17){animation-duration:32s;opacity:.36}

@keyframes modSnow {
  0% { transform: translate3d(0,-10vh,0); opacity:0; }
  15% { opacity:.55; }
  100% { transform: translate3d(-80px,115vh,0); opacity:0; }
}

.premium-mod-layout {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 110px;
}

.mod-category-sidebar {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 126px);
  overflow: auto;
  border: 1px solid rgba(175,222,255,.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8,20,34,.78), rgba(255,255,255,.035));
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  padding: 1rem;
}

.sidebar-brand {
  padding: .85rem .8rem 1rem;
  border-bottom: 1px solid rgba(175,222,255,.12);
  margin-bottom: .65rem;
}

.sidebar-brand span {
  display:block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 950;
  font-size: .72rem;
}

.sidebar-brand strong {
  display:block;
  color: var(--ink);
  font-size: 1.2rem;
  margin-top: .25rem;
}

.sidebar-category-list {
  display: grid;
  gap: .35rem;
}

.side-cat {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  text-decoration: none;
  padding: .72rem .75rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: .22s ease;
}

.side-cat span {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 950;
}

.side-cat b {
  font-size: .9rem;
}

.side-cat em {
  font-style: normal;
  font-size: .75rem;
  color: #d7e8f2;
  border: 1px solid rgba(175,222,255,.14);
  border-radius: 999px;
  padding: .18rem .42rem;
}

.side-cat:hover,
.side-cat.active {
  color: var(--ink);
  background: rgba(123,231,255,.08);
  border-color: rgba(123,231,255,.24);
  transform: translateX(3px);
}

.side-cat.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.premium-mod-content {
  min-width: 0;
}

.premium-mod-header {
  padding: 1.2rem 0 1.3rem;
}

.premium-mod-header h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -.07em;
  margin: .1rem 0 .6rem;
}

.premium-mod-header p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.premium-mod-stats {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.premium-mod-stats span {
  border: 1px solid rgba(175,222,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  padding: .65rem .85rem;
}

.premium-mod-stats b {
  color: var(--ink);
}

.premium-search-panel {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr);
  gap: .8rem;
  border: 1px solid rgba(175,222,255,.14);
  border-radius: 24px;
  background: rgba(2,7,12,.48);
  backdrop-filter: blur(16px);
  padding: .9rem;
  margin-bottom: 1rem;
}

.premium-search-panel label {
  display: grid;
  gap: .45rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 950;
}

.premium-search-panel input,
.premium-search-panel select {
  width:100%;
  border:1px solid rgba(175,222,255,.14);
  border-radius:16px;
  background: rgba(0,0,0,.32);
  color: var(--ink);
  padding: .95rem 1rem;
}

.premium-list {
  display: grid;
  gap: 1rem;
}

.premium-section {
  border-radius: 26px;
  background: rgba(2,8,15,.72);
  backdrop-filter: blur(14px);
}

.premium-section .mod-section-header {
  background:
    linear-gradient(135deg, rgba(11,31,50,.96), rgba(7,17,29,.95));
}

@media(max-width: 1050px) {
  .premium-mod-layout {
    grid-template-columns: 1fr;
  }

  .mod-category-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .sidebar-category-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .premium-search-panel {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 680px) {
  .sidebar-category-list {
    grid-template-columns: 1fr;
  }
}


/* v19 cinematic refinements */
.home-entry-card {
  bottom: 13.5% !important;
}

.hero-logo-wrap {
  position: relative;
}

.hero-logo-wrap::after {
  content:"";
  position:absolute;
  left:50%;
  top:34%;
  width:180px;
  height:180px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  pointer-events:none;
  background:
    radial-gradient(circle, rgba(173,228,255,.14) 0%, rgba(173,228,255,.08) 26%, transparent 68%);
  filter: blur(12px);
  animation: frostPulse 8s ease-in-out infinite;
}

.hero-logo-wrap::before {
  content:"";
  position:absolute;
  left:50%;
  top:34%;
  width:140px;
  height:140px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 55%, rgba(255,255,255,.24), transparent 58%);
  opacity:.55;
  animation:
    frostWind 14s linear infinite,
    frostPulse 7s ease-in-out infinite;
}

@keyframes frostPulse {
  0%,100% {
    opacity:.32;
    transform:translate(-50%,-50%) scale(1);
  }
  50% {
    opacity:.6;
    transform:translate(-50%,-50%) scale(1.08);
  }
}

@keyframes frostWind {
  0% { filter: blur(10px); }
  25% { transform:translate(calc(-50% - 4px), calc(-50% + 2px)) scale(1.02); }
  50% { transform:translate(calc(-50% + 5px), calc(-50% - 3px)) scale(1.05); }
  75% { transform:translate(calc(-50% - 3px), calc(-50% + 4px)) scale(1.01); }
  100% { transform:translate(-50%,-50%) scale(1); }
}

/* stronger visible modlist snowfall */
.premium-mod-snow i {
  width: 4px !important;
  height: 4px !important;
  opacity: .85 !important;
  box-shadow:
    0 0 12px rgba(170,233,255,.9),
    0 0 22px rgba(170,233,255,.45) !important;
}

/* Enter Frost Arcana page */
.portal-live-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 110px;
  background: #03070d;
}

.portal-live-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
}

.portal-live-bg img {
  width:100%;
  height:100%;
  object-fit:cover;
  filter: brightness(.18) contrast(1.06) saturate(.92);
  transform: scale(1.04);
}

.portal-live-page::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-4;
  background:
    radial-gradient(circle at 30% 12%, rgba(120,220,255,.14), transparent 24rem),
    linear-gradient(180deg, rgba(2,7,12,.46), rgba(2,7,12,.92));
}

.portal-live-shell {
  width:min(1380px, calc(100% - 40px));
  margin:0 auto;
  display:grid;
  gap:1.5rem;
}

.portal-live-header {
  border:1px solid rgba(175,222,255,.14);
  border-radius:34px;
  background:rgba(3,10,18,.58);
  backdrop-filter: blur(20px);
  padding:2.4rem;
  text-align:center;
  box-shadow:0 40px 100px rgba(0,0,0,.45);
}

.portal-live-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom:.7rem;
  letter-spacing:-.06em;
}

.portal-live-header p {
  max-width:860px;
  margin:0 auto;
  color:var(--muted);
  line-height:1.7;
}

.live-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1.3rem;
  padding-bottom:100px;
}

.live-card {
  position:relative;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(175,222,255,.14);
  background:rgba(3,9,16,.65);
  backdrop-filter:blur(16px);
  box-shadow:0 30px 80px rgba(0,0,0,.42);
  transition:.28s ease;
}

.live-card:hover {
  transform: translateY(-6px);
  border-color: rgba(170,233,255,.28);
}

.live-card iframe {
  width:100%;
  aspect-ratio:16/9;
  border:none;
  display:block;
}

.live-meta {
  padding:1rem 1.15rem 1.2rem;
}

.live-meta h3 {
  margin-bottom:.35rem;
}

.live-meta p {
  color:var(--muted);
  line-height:1.6;
}

@media(max-width: 960px){
  .live-grid {
    grid-template-columns:1fr;
  }
}


/* v20 global navigation + audio polish */
.global-nav {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  background: rgba(2, 7, 12, .82) !important;
  border-bottom: 1px solid rgba(175,222,255,.15) !important;
  backdrop-filter: blur(18px);
}

.global-nav .nav {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: .6rem;
}

.global-nav .nav a {
  color: #c9d8e5;
  text-decoration: none;
  font-size: clamp(.95rem, 1.05vw, 1.15rem);
  letter-spacing: .02em;
  padding: .72rem .95rem;
  border-radius: 999px;
  transition: .22s ease;
}

.global-nav .nav a:hover {
  color: #f4fbff;
  background: rgba(123,231,255,.09);
  box-shadow: inset 0 0 0 1px rgba(123,231,255,.14);
}

.global-nav .audio-panel {
  display: flex !important;
  align-items: center;
  gap: .42rem;
  white-space: nowrap;
}

.global-nav .audio-panel button {
  font-size: .78rem;
}

.global-nav .audio-panel input {
  width: 74px;
}

.page-shell,
.premium-modlist-page,
.install-page-route,
.portal-live-page {
  padding-top: 96px !important;
}

/* homepage must account for fixed nav */
.true-home {
  padding-top: 72px;
}

@media(max-width: 900px) {
  .global-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: .8rem 1rem;
    position: sticky;
  }

  .global-nav .brand {
    justify-self: center;
  }

  .global-nav .nav {
    order: 2;
    flex-wrap: wrap;
  }

  .global-nav .audio-panel {
    order: 3;
  }

  .page-shell,
  .premium-modlist-page,
  .install-page-route,
  .portal-live-page {
    padding-top: 24px !important;
  }
}


/* v21 polish */
body{
-webkit-font-smoothing:antialiased;
text-rendering:optimizeLegibility;
}

.hero-copy,
.social-copy{
line-height:1.8;
}

.global-credit-footer{
padding:1.2rem;
text-align:center;
font-size:.86rem;
color:rgba(220,230,240,.7);
border-top:1px solid rgba(150,190,255,.08);
background:rgba(0,0,0,.4);
}

.social-page-shell{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:7rem 1.5rem 3rem;
background:
radial-gradient(circle at top, rgba(86,130,184,.12), transparent 30%),
linear-gradient(to bottom,#02060a,#071018 45%,#04080c);
}

.social-card{
width:min(860px,95%);
padding:3rem;
border-radius:32px;
background:rgba(5,11,18,.72);
border:1px solid rgba(170,210,255,.12);
backdrop-filter:blur(22px);
box-shadow:0 30px 80px rgba(0,0,0,.55);
text-align:center;
}

.social-card h1{
font-size:clamp(2.8rem,5vw,5rem);
color:#f5fbff;
margin-bottom:1rem;
}

.eyebrow{
letter-spacing:.24em;
font-size:.8rem;
color:#d0a96a;
margin-bottom:1rem;
}

.social-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:1rem;
margin-top:2rem;
}

.social-link{
padding:1.5rem;
border-radius:22px;
background:rgba(255,255,255,.03);
border:1px solid rgba(170,210,255,.08);
text-decoration:none;
color:#eef6ff;
transition:.25s ease;
}

.social-link:hover{
transform:translateY(-4px);
background:rgba(117,190,255,.08);
}

.social-link span{
display:block;
font-size:1.2rem;
font-weight:700;
margin-bottom:.4rem;
}

.tip-container{
margin-top:2rem;
}

.tip-button{
display:inline-flex;
padding:1rem 2rem;
border-radius:999px;
background:linear-gradient(135deg,#9be9ff,#effbff);
color:#061018;
font-weight:800;
text-decoration:none;
box-shadow:0 10px 40px rgba(128,215,255,.25);
}

.tip-button:hover{
transform:translateY(-2px) scale(1.02);
}

.credits-notice{
margin-top:2rem;
font-size:.92rem;
color:rgba(220,230,240,.72);
line-height:1.7;
}

/* subtle cinematic O glow */
.compass-glow,
.hero-o-glow{
animation:pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow{
0%,100%{
filter:drop-shadow(0 0 8px rgba(214,235,255,.12));
}
50%{
filter:drop-shadow(0 0 18px rgba(214,235,255,.28));
}
}
