:root {
  color-scheme: dark;
  --bg: #080806;
  --bg-2: #10110d;
  --surface: rgba(20, 23, 18, 0.78);
  --surface-2: rgba(31, 34, 27, 0.86);
  --glass: rgba(17, 20, 16, 0.64);
  --glass-strong: rgba(17, 19, 15, 0.86);
  --line: rgba(246, 230, 197, 0.17);
  --line-strong: rgba(255, 151, 58, 0.42);
  --text: #f7edd9;
  --text-strong: #fff8e7;
  --muted: #b8aa92;
  --muted-2: #d1c4aa;
  --scum-orange: #ff7a1a;
  --scum-amber: #ffb347;
  --acid: #93c85d;
  --acid-bright: #c8ff6a;
  --danger: #db3d2f;
  --discord: #5865f2;
  --ok: #9ee85e;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 122, 26, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(147, 200, 93, 0.14), transparent 25rem),
    linear-gradient(180deg, #050604 0%, var(--bg) 48%, #050604 100%);
  font-family: Urbanist, "Trebuchet MS", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 179, 71, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 179, 71, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

body::after {
  z-index: -1;
  opacity: 0.24;
  background: url("/assets/noise.webp"), radial-gradient(circle at 50% 0, transparent, black 75%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.font-display,
.hero-title,
.section-title {
  font-family: "Archivo Black", Impact, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h3,
.brand,
.btn,
.metric,
.card-label,
.mini-title {
  font-family: "Saira Condensed", Impact, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 179, 71, 0.18);
  background: rgba(4, 5, 4, 0.76);
  backdrop-filter: blur(18px);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.cta-row,
.footer-links,
.footer-grid,
.panel-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #160d06;
  background: linear-gradient(135deg, var(--scum-orange), var(--scum-amber));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.34);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.nav-links {
  gap: 9px;
}

.nav-links a,
.mobile-menu a {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-2);
  border: 1px solid transparent;
  font-family: "Saira Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
}

.mobile-menu {
  padding-bottom: 14px;
}

.mobile-menu-inner {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 179, 71, 0.2);
  isolation: isolate;
}

.hero-bg-layer,
.hero-fog,
.hero-gridline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-layer {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.93) 0%, rgba(5, 5, 4, 0.73) 38%, rgba(5, 5, 4, 0.32) 70%, rgba(5, 5, 4, 0.68) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.98) 0%, transparent 28%, rgba(5, 5, 4, 0.15) 72%),
    url("/assets/hero-isla-mortal.webp") center / cover no-repeat;
  transform: scale(1.04);
}

.hero-fog {
  z-index: -3;
  opacity: 0.72;
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 122, 26, 0.2), transparent 20rem),
    radial-gradient(circle at 62% 60%, rgba(147, 200, 93, 0.12), transparent 23rem),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 122, 26, 0.11) 44%, transparent 46% 100%);
  filter: blur(0.4px);
}

.hero-gridline {
  z-index: -2;
  opacity: 0.24;
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.05) 11px),
    linear-gradient(rgba(255, 179, 71, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 179, 71, 0.1) 1px, transparent 1px);
  background-size: auto, 90px 90px, 90px 90px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.hero-grid {
  min-height: calc(100vh - 170px);
  padding: 72px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 22px;
  perspective: 1100px;
}

.hero-copy-block {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--acid-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 22px;
  color: var(--text-strong);
  font-size: clamp(58px, 10vw, 136px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow:
    0 8px 0 rgba(0, 0, 0, 0.35),
    0 0 36px rgba(255, 122, 26, 0.22);
}

.hero-title span {
  display: block;
  animation: titleMask 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title span + span {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 248, 231, 0.92);
  animation-delay: 120ms;
}

.hero-copy {
  max-width: 660px;
  color: #eadfc9;
  font-size: clamp(18px, 2.05vw, 24px);
  line-height: 1.5;
}

.cta-row {
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.22);
}

.btn-primary {
  color: #170e06;
  background: linear-gradient(135deg, var(--scum-orange), var(--scum-amber));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 45px rgba(255, 122, 26, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
}

.btn-discord {
  color: white !important;
  background: linear-gradient(135deg, var(--discord), #7b86ff) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.opening-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.opening-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.opening-popup[hidden] {
  display: none;
}

.opening-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 122, 26, 0.18), transparent 24rem),
    rgba(3, 5, 4, 0.78);
  backdrop-filter: blur(14px);
}

.opening-popup-card {
  width: min(680px, 100%);
  padding: clamp(26px, 5vw, 44px);
  isolation: isolate;
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.opening-popup.is-open .opening-popup-card {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.popup-mascot {
  position: absolute;
  right: clamp(8px, 4vw, 30px);
  bottom: clamp(8px, 4vw, 26px);
  width: clamp(110px, 24vw, 190px);
  opacity: 0.34;
  z-index: -1;
}

.hero-stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.glass,
.glass-strong,
.card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-strong {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 122, 26, 0.12), transparent 18rem),
    radial-gradient(circle at 90% 10%, rgba(147, 200, 93, 0.12), transparent 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--glass-strong);
}

.card {
  padding: 21px;
  border-radius: var(--radius);
  overflow: hidden;
}

.tilt-card {
  transform-style: preserve-3d;
  --glare-x: 50%;
  --glare-y: 50%;
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.tilt-card:hover {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 207, 120, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.025)),
    var(--glass);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 179, 71, 0.14),
    0 0 34px rgba(255, 122, 26, 0.2);
}

.tilt-card > * {
  position: relative;
  z-index: 1;
}

.tilt-card::before,
.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tilt-card::before {
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 32%, rgba(255, 179, 71, 0.22) 50%, transparent 68%, transparent 100%);
  transform: translateX(-62%) skewX(-12deg);
  transition: opacity 220ms ease, transform 620ms ease;
}

.tilt-card::after {
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(147, 200, 93, 0.18), transparent 28%, rgba(255, 122, 26, 0.22));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  transition: opacity 220ms ease;
}

.tilt-card:hover::before {
  opacity: 1;
  transform: translateX(62%) skewX(-12deg);
}

.tilt-card:hover::after {
  opacity: 1;
}

.card-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric {
  color: var(--text-strong);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.metric-ok {
  color: var(--ok);
}

.muted {
  color: var(--muted);
  line-height: 1.62;
}

.hero-stage {
  min-height: 610px;
  display: grid;
  place-items: center;
}

.mascot-orbit {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: heroMascotIntro 1100ms cubic-bezier(0.18, 0.8, 0.2, 1) both, mascotFloat 6s ease-in-out 1200ms infinite;
}

.mascot {
  position: relative;
  z-index: 3;
  width: min(520px, 92%);
  height: auto;
  filter: drop-shadow(0 36px 54px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 28px rgba(255, 122, 26, 0.18));
  transform: translateZ(76px);
}

.mascot-shadow {
  position: absolute;
  z-index: 1;
  width: min(550px, 96%);
  opacity: 0.62;
  transform: translate3d(12px, 50px, 0) scale(0.98);
  filter: blur(4px);
}

.mascot-light {
  position: absolute;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
}

.light-green {
  left: 6%;
  top: 22%;
  background: rgba(147, 200, 93, 0.42);
}

.light-orange {
  right: 6%;
  bottom: 22%;
  background: rgba(255, 122, 26, 0.45);
}

.guide-bubble {
  position: absolute;
  z-index: 4;
  max-width: 190px;
  padding: 12px 14px;
  color: var(--text-strong);
  background: rgba(10, 12, 10, 0.78);
  border: 1px solid rgba(255, 179, 71, 0.34);
  font-family: "Saira Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  animation: bubbleFloat 4.6s ease-in-out infinite;
}

.bubble-left {
  left: 0;
  bottom: 19%;
}

.bubble-right {
  right: 0;
  top: 19%;
  animation-delay: 700ms;
}

.live-panel-wrap {
  padding-bottom: 54px;
}

.live-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mini-title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.live-chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101507;
  background: var(--ok);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  color: var(--ok);
  box-shadow: 0 0 18px currentColor;
  animation: statusPulse 1.8s ease-in-out infinite;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.65fr 0.65fr 1fr;
  gap: 12px;
}

.panel-value {
  color: var(--muted-2);
  font-weight: 800;
  line-height: 1.4;
}

.section {
  padding: 96px 0;
}

.page-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.76) 42%, rgba(5, 5, 4, 0.32) 76%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, transparent 38%),
    url("/assets/hero-isla-mortal.webp") center / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.055) 10px),
    linear-gradient(rgba(255, 179, 71, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 179, 71, 0.09) 1px, transparent 1px);
  background-size: auto, 88px 88px, 88px 88px;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 28px;
}

.page-mascot {
  width: min(410px, 100%);
  justify-self: end;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.62));
}

.section-dark {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 122, 26, 0.08), transparent 24rem),
    rgba(255, 255, 255, 0.022);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}

.section-heading > p {
  max-width: 470px;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.section-title {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}

.feature-grid,
.loot-grid,
.rules-grid,
.faq-grid,
.highlighted-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.loot-grid,
.highlighted-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.rules-panel {
  overflow: visible;
  padding: clamp(18px, 3vw, 26px);
}

.rules-panel .rules-grid {
  position: relative;
  z-index: 1;
}

.rules-mascot {
  position: absolute;
  right: clamp(8px, 4vw, 38px);
  top: -92px;
  width: clamp(120px, 17vw, 230px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.loot-grid .card,
.rules-grid .card,
.faq-grid .card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.feature-card h3,
.loot-grid h3,
.rules-grid h3,
.faq-grid h3,
.mission-feature h3,
.catalog-head h3,
.validation-panel h3 {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.rules-grid .list {
  gap: 11px;
}

.divider {
  height: 1px;
  margin: auto 0 18px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.42), transparent);
}

.list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted-2);
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 19px;
  line-height: 1.46;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scum-orange);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.58);
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 34px;
}

.ops-copy {
  max-width: 540px;
}

.tech-bars {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.tech-bars span {
  width: var(--w);
  height: 8px;
  display: block;
  background: linear-gradient(90deg, var(--scum-orange), transparent);
  border: 1px solid rgba(255, 179, 71, 0.22);
}

.ops-panel {
  position: relative;
  min-height: 470px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.ops-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-right: 170px;
}

.mascot-mini {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 245px;
  opacity: 0.96;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.54));
}

.missions-section {
  position: relative;
}

.missions-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background: url("/assets/mascot-shadow.webp") right 8% top 12% / 420px auto no-repeat;
}

.mission-feature {
  overflow: hidden;
  padding: 0;
}

.mission-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}

.mission-feature div:not(.mission-meta) {
  padding: 20px;
}

.mission-feature p {
  color: var(--muted);
  line-height: 1.55;
}

.mission-feature strong {
  color: var(--scum-amber);
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.mission-meta span,
.reward-cell span,
.validation-grid span {
  padding: 5px 8px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.mission-console {
  position: relative;
  margin-top: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.mascot-badge {
  position: absolute;
  right: 24px;
  top: -96px;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.mascot-badge img {
  width: 170px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.mascot-badge span {
  max-width: 160px;
  margin-top: -12px;
  padding: 8px 10px;
  color: var(--text-strong);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--line);
  font-family: "Saira Condensed", Impact, sans-serif;
  font-weight: 800;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 230px auto;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box,
.select-box {
  min-height: 54px;
  padding: 8px 12px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
}

.search-box span,
.select-box span {
  color: var(--acid-bright);
  font-family: "Saira Condensed", Impact, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input,
.select-box select {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.select-box select {
  color: var(--text);
}

.select-box option {
  color: #111;
}

.tier-tabs {
  min-height: 54px;
  display: flex;
  border: 1px solid var(--line);
}

.tier-tabs button {
  min-width: 72px;
  padding: 0 12px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-right: 1px solid var(--line);
  font-family: "Saira Condensed", Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-tabs button:last-child {
  border-right: 0;
}

.tier-tabs button.active {
  color: #160d06;
  background: linear-gradient(135deg, var(--scum-orange), var(--scum-amber));
}

.catalog-head {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.catalog-head h3 {
  margin-bottom: 0;
}

.mission-list {
  display: grid;
  gap: 10px;
  max-height: 740px;
  overflow: auto;
  padding-right: 6px;
}

.mission-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1.2fr) 165px 82px 188px;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mission-row:hover {
  background: rgba(255, 122, 26, 0.08);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.tier-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "Saira Condensed", Impact, sans-serif;
  font-weight: 900;
}

.tier-1 { color: var(--acid); }
.tier-2 { color: var(--scum-amber); }
.tier-3 { color: var(--danger); }

.mission-title strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-strong);
  font-weight: 900;
}

.mission-title span,
.npc-cell,
.time-cell {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.mission-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mission-title .delivery-line,
.delivery-note {
  margin-top: 9px;
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(147, 200, 93, 0.18);
  border-left: 3px solid var(--ok);
  background: rgba(147, 200, 93, 0.075);
  color: #e7f3cf;
  -webkit-line-clamp: unset;
}

.mission-title .delivery-line strong,
.delivery-note strong {
  color: var(--scum-amber);
}

.reward-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.empty-state {
  padding: 40px 0 10px;
  color: var(--muted);
  text-align: center;
}

.mission-full-link {
  width: fit-content;
  margin-top: 20px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-strip strong {
  display: block;
  color: var(--scum-orange);
  font-family: "Saira Condensed", Impact, sans-serif;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 0.9;
}

.stat-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.validation-panel {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.watermark-mascot {
  position: absolute;
  right: 12px;
  bottom: -36px;
  width: 250px;
  opacity: 0.28;
}

.validation-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.copy-box {
  width: min(620px, 100%);
  margin: 24px 0 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
}

.server-ip {
  flex: 1;
  padding-left: 10px;
  color: var(--acid-bright);
  font-family: Consolas, "Courier New", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--acid-bright);
  font-weight: 800;
}

.connect-side {
  position: relative;
  min-height: 290px;
  display: grid;
  align-content: end;
}

.mascot-connect {
  position: absolute;
  right: 0;
  top: -80px;
  width: 270px;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.54));
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 3, 0.82);
}

.footer-grid {
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.legal {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.footer-links a {
  color: var(--muted-2);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--scum-orange);
}

.mascot-fly {
  animation: mascotFly 5.8s ease-in-out infinite;
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.js .reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.18, 0.8, 0.2, 1);
}

@keyframes heroMascotIntro {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, -120px) rotateY(-8deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0) scale(1);
  }
}

@keyframes mascotFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(-1.5deg); }
  50% { transform: translate3d(0, -14px, 0) rotateY(1.5deg); }
}

@keyframes mascotFly {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  35% { transform: translate3d(7px, -12px, 0) rotate(1.5deg); }
  70% { transform: translate3d(-5px, -5px, 0) rotate(-0.5deg); }
}

@keyframes bubbleFloat {
  0%, 100% { transform: translate3d(0, 0, 42px); }
  50% { transform: translate3d(0, -10px, 42px); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(0.82); }
}

@keyframes titleMask {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-grid,
  .ops-grid,
  .page-hero-grid,
  .connect-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 58px;
  }

  .hero-stage {
    min-height: 470px;
  }

  .live-panel-wrap {
    padding-bottom: 40px;
  }

  .status-grid,
  .ops-status,
  .feature-grid,
  .loot-grid,
  .highlighted-grid,
  .faq-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    grid-template-columns: 1fr 230px;
  }

  .tier-tabs {
    grid-column: 1 / -1;
  }

  .mission-row {
    grid-template-columns: 50px minmax(0, 1fr) 150px;
  }

  .time-cell,
  .reward-cell {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 48px 0 18px;
  }

  .hero-title {
    font-size: clamp(54px, 18vw, 84px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .opening-popup {
    padding: 14px;
  }

  .opening-popup-card {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .hero-stage {
    min-height: 360px;
  }

  .page-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .page-mascot {
    width: min(260px, 70%);
    justify-self: start;
    opacity: 0.82;
  }

  .mascot {
    width: min(360px, 96%);
  }

  .guide-bubble {
    display: none;
  }

  .hero-stats,
  .status-grid,
  .ops-status,
  .feature-grid,
  .loot-grid,
  .rules-grid,
  .highlighted-grid,
  .faq-grid,
  .stat-strip,
  .controls {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .section-title {
    font-size: clamp(40px, 12vw, 58px);
  }

  .ops-panel {
    padding-bottom: 210px;
  }

  .ops-status {
    padding-right: 0;
  }

  .mascot-mini {
    width: 210px;
  }

  .rules-panel {
    padding-top: 86px;
  }

  .rules-mascot {
    top: -44px;
    right: 16px;
    width: 150px;
  }

  .mascot-badge {
    position: static;
    margin-bottom: 14px;
    pointer-events: auto;
  }

  .mission-row {
    grid-template-columns: 44px 1fr;
  }

  .npc-cell,
  .time-cell,
  .reward-cell {
    grid-column: 2;
  }

  .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .copy-box {
    align-items: stretch;
    flex-direction: column;
  }

  .server-ip {
    padding: 6px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .connect-side {
    min-height: 230px;
  }

  .mascot-connect {
    width: 210px;
    top: -54px;
  }

  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
