#newman-gate-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 10px 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
}

#newman-gate-input {
  width: 60vw;
  max-width: 400px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  margin-right: 8px;
  font-size: 1rem;
}

#newman-gate-btn {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--green,#8cff95);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

@media (max-width: 520px) {
  #newman-gate-bar {
    flex-direction: column;
    padding: 10px 0 8px 0;
    gap: 8px;
  }
  #newman-gate-input {
    width: 80vw;
    max-width: 98vw;
    margin-right: 0;
    margin-bottom: 6px;
    font-size: 1.1rem;
  }
  #newman-gate-btn {
    width: 80vw;
    max-width: 98vw;
    font-size: 1.1rem;
  }
  body {
    padding-bottom: 70px !important;
  }
}
*{box-sizing:border-box;margin:0;padding:0;}

:root{
  --green:#8cff95;
}

body{
  background:#000;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--green);
  text-align:center;
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
  max-width:100vw;
}
}

/* background: generated tall descent backdrop plus the repeating noodle layer */
body::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    url("../assets/descent/journey-bg-generated.jpg"),
    url("../assets/naimean_noods.png");
  background-position:center top, center top;
  background-repeat:no-repeat, repeat-y;
  background-size:min(100%, 1600px) auto, 100% auto;
  filter:brightness(.9);
  transform:translateZ(0);
  z-index:0;
}

body::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.12) 0%,
    rgba(0,0,0,.18) 22%,
    rgba(0,0,0,.30) 58%,
    rgba(0,0,0,.50) 100%
  );
  z-index:0;
}

.page{
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100vw;
  max-width:100vw;
  overflow-x:hidden;
  padding:0 0 120px;
}

@media (max-width: 520px) {
  .page {
    width:100vw;
    max-width:100vw;
    overflow-x:hidden;
  }
  html, body {
    width:100vw;
    max-width:100vw;
    overflow-x:hidden;
  }
}
}

.scroll-section{
  position:relative;
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(36px, 8vw, 88px) 12px;
}

.section-shell{
  width:min(980px, 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
}

.section-shell-wide{
  width:min(1120px, 100%);
}

.section-hero{
  min-height:115vh;
}

.section-discord{
  min-height:112vh;
}

.section-descent-image{
  min-height:120vh;
}

.section-descent{
  min-height:120vh;
}

body[data-active-section="hero"] .section-hero{
  z-index:4;
}

body[data-active-section="discord"] .section-discord{
  z-index:4;
}

body[data-active-section="rift"] .section-descent-rift{
  z-index:4;
}

body[data-active-section="conduit"] .section-descent-conduit{
  z-index:4;
}

body[data-active-section="core"] .section-descent-core{
  z-index:4;
}

body[data-active-section="tunnel"] .section-descent-tunnel{
  z-index:4;
}

body[data-active-section="descent"] .section-descent{
  z-index:4;
}

.btn{
  margin-top:10px;
  padding:14px 24px;
  width:220px;
  border:3px solid #67f06f;
  background:#000;
  color:#67f06f;
  font-size:20px;
  border-radius:14px;
  cursor:pointer;
}

/* ── Meatball-gradient "Join Discord" variant ── */
.btn-discord{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:
    radial-gradient(ellipse at 38% 35%,
      #d4744a 0%,
      #b05030 22%,
      #8b3818 48%,
      #6a2408 72%,
      #3e1004 100%);
  color:#fff;
  border-color:#c06030;
  box-shadow:
    0 3px 14px rgba(0,0,0,.70),
    inset 0 2px 4px rgba(255,160,80,.18);
}

.btn-discord:hover{
  background:
    radial-gradient(ellipse at 38% 35%,
      #e48460 0%,
      #c06040 22%,
      #9b4828 48%,
      #7a3418 72%,
      #4e1a08 100%);
}

.discord-icon{
  width:22px;
  height:22px;
  fill:#fff;
  flex-shrink:0;
}

.journey-section{
  width:min(980px, 94vw);
  min-height:90vh;
  padding:clamp(24px, 4vw, 44px);
  border:1px solid rgba(140,255,149,.26);
  border-radius:28px;
  background:
    linear-gradient(180deg,
      rgba(8,18,8,.70) 0%,
      rgba(16,8,4,.78) 52%,
      rgba(30,10,2,.90) 100%),
    radial-gradient(circle at top,
      rgba(57,255,20,.08) 0%,
      rgba(255,110,0,.10) 42%,
      transparent 74%);
  box-shadow:
    0 28px 80px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.03);
}

.descent-panel{
  position:relative;
  width:min(1120px, 96vw);
  min-height:105vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(255,220,170,.14);
  background-color:#120a06;
  background-position:center top;
  background-repeat:no-repeat;
  background-size:cover;
  box-shadow:
    0 36px 80px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.descent-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(8,6,5,.10) 0%,
    rgba(14,8,4,.18) 18%,
    rgba(20,10,5,.14) 44%,
    rgba(8,6,5,.54) 100%
  );
}

.descent-panel::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow:
    inset 0 30px 70px rgba(0,0,0,.20),
    inset 0 -70px 110px rgba(0,0,0,.36);
}

.descent-panel-copy{
  position:relative;
  z-index:2;
  width:min(520px, 100%);
  margin:0 0 clamp(22px, 4vw, 38px) clamp(22px, 4vw, 38px);
  padding:22px 24px;
  text-align:left;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(18,10,5,.78) 0%, rgba(8,8,8,.60) 100%);
  border:1px solid rgba(255,220,170,.16);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.descent-panel-kicker{
  margin-bottom:10px;
  color:#f4a85c;
  font-size:12px;
  letter-spacing:.36em;
  text-transform:uppercase;
}

.descent-panel-title{
  margin-bottom:12px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:.95;
  color:#fff4de;
  text-transform:uppercase;
}

.descent-panel-text{
  font-size:clamp(15px, 1.8vw, 18px);
  line-height:1.6;
  color:rgba(255,240,220,.84);
}

.descent-panel-rift{
  background-image:
    linear-gradient(180deg, rgba(26,12,6,.20), rgba(12,8,6,.10)),
    url("../assets/descent/16.jpg");
}

.descent-panel-conduit{
  background-image:
    linear-gradient(180deg, rgba(26,12,6,.14), rgba(10,8,12,.16)),
    url("../assets/descent/15.jpg");
}

.descent-panel-core{
  background-image:
    linear-gradient(180deg, rgba(28,14,8,.20), rgba(8,8,12,.18)),
    url("../assets/descent/11.jpg");
}

.descent-panel-tunnel{
  background-image:
    linear-gradient(180deg, rgba(24,12,8,.16), rgba(8,8,8,.18)),
    url("../assets/descent/19.jpg");
}

.journey-kicker{
  font-size:12px;
  letter-spacing:.42em;
  text-transform:uppercase;
  color:#f59a52;
  margin-bottom:16px;
}

.journey-title{
  max-width:11ch;
  margin:0 auto;
  font-size:clamp(40px, 8vw, 84px);
  line-height:.94;
  color:#ebffd8;
  text-transform:uppercase;
  text-shadow:
    0 0 12px rgba(57,255,20,.24),
    0 0 24px rgba(255,110,0,.18);
}

.journey-copy{
  width:min(720px, 100%);
  margin:22px auto 0;
  font-size:clamp(16px, 2.1vw, 21px);
  line-height:1.6;
  color:rgba(235,255,216,.88);
}

.journey-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:44px;
}

.journey-card{
  min-height:220px;
  padding:22px;
  text-align:left;
  border:1px solid rgba(192,96,48,.40);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(20,12,5,.82) 0%, rgba(10,8,6,.72) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.journey-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:34px;
  margin-bottom:18px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(140,255,149,.28);
  color:#8cff95;
  background:rgba(0,0,0,.35);
  font-size:12px;
  letter-spacing:.2em;
}

.journey-card h3{
  margin-bottom:10px;
  font-size:24px;
  color:#fff5e8;
}

.journey-card p{
  line-height:1.6;
  color:rgba(255,245,232,.76);
}

.counter-label{margin-top:20px;font-size:24px;}
.counter{font-size:48px;}

.discord-wrap{
  position:relative;
  width:min(430px, 96vw);
  height:calc(min(430px, 96vw) * 1.395);
  align-self:center;
}

.discord-danglers{
  position:absolute;
  top:42px;
  right:0;
  bottom:-18px;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:visible;
}

.discord-danglers-back{
  z-index:1;
}

.discord-danglers-front{
  z-index:5;
}

.discord-dangler{
  opacity:.9;
  transform-box: fill-box;
  transform-origin: 50% 0%;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.18));
  will-change:transform;
}

.discord-dangler-main{ stroke-width:8.5; }
.discord-dangler-mid{ stroke-width:5.5; opacity:.8; }
.discord-dangler-right{ stroke-width:6.5; opacity:.82; }
.discord-dangler-front-right{ stroke-width:6; opacity:.86; }

.discord-frame-art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:4;
  pointer-events:none;
  overflow:visible;
}

.frame-noodle{
  opacity:.96;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.frame-noodle-top{
  stroke-width:10.5;
  opacity:.95;
}

.frame-noodle-top-mid{
  stroke-width:9.5;
}

.frame-noodle-top-dense{
  stroke-width:11.5;
  opacity:.97;
}

.frame-noodle-soft{
  stroke-width:7.5;
  opacity:.84;
}

.frame-noodle-cream-main{
  stroke-width:13.5;
  opacity:.94;
}

.frame-noodle-top-fill{
  stroke-width:8.5;
  opacity:.9;
}

.frame-noodle-accent{
  stroke-width:3.2;
  opacity:.8;
}

.frame-noodle-side-left,
.frame-noodle-side-right{
  stroke-width:7;
  opacity:.88;
}

.frame-noodle-side-inner{
  stroke-width:5.5;
  opacity:.76;
}

.discord-frame-art .strand{
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.18));
}

.discord-frame-art .sa{ animation: frameSwayA 8s ease-in-out infinite; }
.discord-frame-art .sc{ animation: frameSwayB 9s ease-in-out infinite; }
.discord-frame-art .sf{ animation: frameSwayC 7s ease-in-out infinite; }
.discord-frame-art .sb{ animation: frameSwayB 10s ease-in-out infinite; }
.discord-frame-art .sd{ animation: frameSwayD 11s ease-in-out infinite; }
.discord-frame-art .se{ animation: frameSwayE 9s ease-in-out infinite; }
.discord-frame-art .sg{ animation: frameSwayB 12s ease-in-out infinite; }

@keyframes frameSwayA {
  0%, 100% { transform:translateX(0); }
  50% { transform:translateX(4px); }
}

@keyframes frameSwayB {
  0%, 100% { transform:translateX(0); }
  50% { transform:translateX(-3px); }
}

@keyframes frameSwayC {
  0%, 100% { transform:translateY(0); }
  50% { transform:translateY(3px); }
}

@keyframes frameSwayD {
  0%, 100% { transform:translateX(0) translateY(0); }
  50% { transform:translateX(-3px) translateY(4px); }
}

@keyframes frameSwayE {
  0%, 100% { transform:translateX(0) translateY(0); }
  50% { transform:translateX(3px) translateY(4px); }
}

.frame-meatballs circle{
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.28));
}

.discord{
  position:absolute;
  left:50%;
  top:50%;
  width:calc(min(430px, 96vw) * .744);
  height:calc(min(430px, 96vw) * 1.02);
  transform:translate(-50%, -44%);
  z-index:2;
}

.discord-crop{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(8,7,9,.96) 0%, rgba(22,17,13,.94) 100%);
  isolation:isolate;
  box-shadow:
    0 22px 40px rgba(0,0,0,.46),
    inset 0 0 0 2px rgba(90,30,14,.38),
    inset 0 0 0 9px rgba(255,225,170,.07),
    inset 0 0 0 12px rgba(68,22,10,.22);
}

.discord-crop .discord-join-wide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 20px 20px 0 0;
  min-width: unset;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.32), 0 1.5px 0 #fff2 inset;
  border-width: 4px 4px 2px 4px;
  font-size: 1.25rem;
  pointer-events: auto;
  justify-content: center;
  z-index: 10;
}

.discord-crop iframe {
  position: relative;
  z-index: 1;
}

.discord-crop::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  border:2px solid rgba(122,42,18,.46);
  box-shadow:
    inset 0 1px 0 rgba(255,236,184,.18),
    inset 0 0 0 6px rgba(241,212,135,.08),
    inset 0 0 18px rgba(0,0,0,.16);
  pointer-events:none;
  z-index:3;
}

.discord-crop::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:12px;
  border:1px solid rgba(255,236,184,.10);
  pointer-events:none;
  z-index:3;
}

.discord iframe{
  position:absolute;
  left:0;
  top:-72px;
  width:100%;
  height:calc(100% + 156px);
  border:0;
}

@media (max-width: 520px) {
  .scroll-section{
    min-height:auto;
    padding:36px 12px 56px;
  }

  .section-hero,
  .section-discord,
  .section-descent-image,
  .section-descent{
    min-height:auto;
  }

  .discord{
    height:calc(min(430px, 96vw) * 1.08);
    transform:translate(-50%, -43%);
  }

  .discord iframe{
    top:-60px;
    height:calc(100% + 136px);
  }

  .discord-danglers{
    top:34px;
    bottom:-14px;
  }

  .discord-dangler-main{ stroke-width:7; }
  .discord-dangler-mid{ stroke-width:4.8; }
  .discord-dangler-right{ stroke-width:5.6; }
  .discord-dangler-front-right{ stroke-width:5.2; }

  .frame-noodle-top{
    stroke-width:8;
  }

  .frame-noodle-top-mid,
  .frame-noodle-top-dense,
  .frame-noodle-soft,
  .frame-noodle-side-left,
  .frame-noodle-side-right,
  .frame-noodle-cream-main,
  .frame-noodle-top-fill{
    stroke-width:6.5;
  }

  .descent-panel{
    min-height:82vh;
    border-radius:26px;
  }

  .descent-panel-copy{
    width:calc(100% - 26px);
    margin:0 13px 13px;
    padding:18px 18px 20px;
  }
}

#vid{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:none;
  object-fit:cover;
  z-index:999;
}

/* ── Meatball scrollbar (PC) ── */
::-webkit-scrollbar {
  width: 45px;
}

::-webkit-scrollbar-track {
  background: radial-gradient(ellipse at center, #3a1200 0%, #1a0800 100%);
}

::-webkit-scrollbar-thumb {
  min-height: 120px;
  background:
    radial-gradient(ellipse at 38% 35%,
      #d4744a 0%,
      #b05030 22%,
      #8b3818 48%,
      #6a2408 72%,
      #3e1004 100%);
  border-radius: 10px;
  border: 3px solid #2a0a00;
  box-shadow: inset 0 2px 4px rgba(255,160,80,.18);
}

::-webkit-scrollbar-thumb:hover {
  background:
    radial-gradient(ellipse at 38% 35%,
      #e48460 0%,
      #c06040 22%,
      #9b4828 48%,
      #7a3418 72%,
      #4e1a08 100%);
}

/* Firefox */
* {
  scrollbar-width: thick;
  scrollbar-color: #b05030 #1a0800;
}

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