:root {
  --black: #030303;
  --ink: #070403;
  --deck: #120805;
  --wood: #2c1509;
  --wood-soft: #43220f;
  --gold: #d6a43a;
  --gold-bright: #ffe28c;
  --gold-deep: #7e4b05;
  --parchment: #f2dfb2;
  --muted: #bda77d;
  --sea: #0b4650;
  --sea-bright: #27a8ad;
  --blood: #982a1d;
  --violet: #5651dd;
  --line: rgba(240, 199, 107, .32);
  --line-strong: rgba(240, 199, 107, .58);
  --panel: rgba(7, 5, 4, .78);
  --shadow: 0 28px 80px rgba(0, 0, 0, .52);
  --display: "Pirata One", Georgia, serif;
  --heading: "Cinzel", Georgia, serif;
  --body: "Crimson Pro", Georgia, serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .38), rgba(0, 0, 0, .94)),
    url("assets/hero-bg.png") center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 18% 18%, rgba(152, 42, 29, .18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(39, 168, 173, .16), transparent 28%),
    linear-gradient(180deg, rgba(36, 12, 4, .5), rgba(3, 3, 3, .96) 58%, #030303);
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.grain,
.storm-rain,
.sea-fog {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: -1;
  opacity: .52;
  background:
    repeating-linear-gradient(0deg, rgba(255, 230, 170, .032) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 230, 170, .026) 0 1px, transparent 1px 44px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
}

.storm-rain {
  z-index: -2;
  opacity: .26;
  background-image:
    linear-gradient(112deg, transparent 0 64%, rgba(220, 245, 255, .34) 65%, transparent 67%),
    linear-gradient(112deg, transparent 0 75%, rgba(220, 245, 255, .18) 76%, transparent 78%);
  background-size: 120px 180px, 220px 260px;
  animation: rainDrift 11s linear infinite;
}

.sea-fog {
  z-index: -1;
  overflow: hidden;
}

.sea-fog span {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 140px;
  border-radius: 50%;
  filter: blur(26px);
  background: linear-gradient(90deg, transparent, rgba(196, 221, 206, .16), transparent);
  animation: fogSail 28s ease-in-out infinite;
}

.sea-fog span:nth-child(1) {
  top: 18%;
}

.sea-fog span:nth-child(2) {
  top: 48%;
  animation-delay: -9s;
  opacity: .7;
}

.sea-fog span:nth-child(3) {
  bottom: 8%;
  animation-delay: -17s;
  opacity: .55;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(42, 18, 7, .95), rgba(7, 4, 3, .94)),
    repeating-linear-gradient(90deg, rgba(255, 226, 140, .04) 0 1px, transparent 1px 34px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-nav.is-scrolled {
  background:
    linear-gradient(180deg, rgba(22, 9, 4, .98), rgba(4, 3, 2, .98)),
    repeating-linear-gradient(90deg, rgba(255, 226, 140, .035) 0 1px, transparent 1px 34px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .68);
}

.nav-inner {
  width: min(100%, 1500px);
  min-height: 78px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff4cb;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 140, .58);
  border-radius: 50%;
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 226, 140, .2), transparent 40%),
    linear-gradient(145deg, rgba(152, 42, 29, .74), rgba(37, 18, 8, .94));
  font-family: var(--display);
  font-size: 24px;
  box-shadow: inset 0 0 18px rgba(255, 226, 140, .1), 0 0 22px rgba(214, 164, 58, .14);
}

.brand-text {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #cdb98d;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff5cc;
  background: rgba(214, 164, 58, .12);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-actions select,
.auth-form input {
  border: 1px solid rgba(255, 226, 140, .52);
  border-radius: 4px;
  outline: none;
  background: linear-gradient(180deg, #fff3ca, #d9bc78);
  color: #241105;
  font-weight: 700;
  box-shadow: inset 0 2px 6px rgba(50, 20, 2, .28);
}

.nav-actions select {
  min-height: 38px;
  padding: 0 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(5, 5, 5, .45);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-bright);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.gold-action,
.ghost-action,
.discord-link,
.green-action,
.blue-action {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gold-action,
.ghost-action,
.discord-link {
  padding: 0 14px;
}

.gold-action {
  border: 1px solid rgba(255, 226, 140, .85);
  color: #fff7d8;
  background: linear-gradient(180deg, #ffe28c, #bc7812 56%, #442306);
  text-shadow: 0 3px 7px rgba(0, 0, 0, .72);
}

.ghost-action {
  border: 1px solid var(--line-strong);
  color: #f4dda6;
  background: linear-gradient(180deg, rgba(38, 33, 27, .95), rgba(4, 4, 3, .95));
}

.discord-link {
  border: 1px solid rgba(202, 203, 255, .38);
  color: #fff;
  background: linear-gradient(180deg, #6d68ff, var(--violet));
}

.green-action,
.blue-action {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
}

.green-action {
  border: 1px solid rgba(188, 224, 67, .7);
  background: linear-gradient(180deg, #6b8a27, #223907);
}

.blue-action {
  border: 1px solid rgba(86, 190, 255, .72);
  background: linear-gradient(180deg, #1882b8, #052f57);
}

.gold-action--large,
.ghost-action--large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 14px;
}

.gold-action--wide {
  width: 100%;
  min-height: 50px;
}

.discord-link--large {
  min-height: 52px;
  padding: 0 26px;
}

.gold-action::after,
.ghost-action::after,
.discord-link::after,
.green-action::after,
.blue-action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .24) 48%, transparent 60% 100%);
  transform: translateX(-130%);
  transition: transform .48s ease;
}

.gold-action:hover,
.ghost-action:hover,
.discord-link:hover,
.green-action:hover,
.blue-action:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), 0 0 24px rgba(214, 164, 58, .16);
}

.gold-action:hover::after,
.ghost-action:hover::after,
.discord-link:hover::after,
.green-action:hover::after,
.blue-action:hover::after {
  transform: translateX(130%);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 42px;
  padding: 54px max(28px, calc((100vw - var(--container)) / 2)) 48px;
  border-bottom: 1px solid var(--line);
}

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

.hero-bg {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18) 54%, rgba(0, 0, 0, .88)),
    linear-gradient(180deg, transparent 50%, rgba(3, 3, 3, .92)),
    url("assets/hero-bg.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: slowStorm 18s ease-in-out infinite alternate;
}

.hero-vignette {
  background:
    radial-gradient(circle at 50% 44%, transparent 0 24%, rgba(0, 0, 0, .42) 58%, rgba(0, 0, 0, .86)),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 92px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--blood), var(--gold), var(--sea-bright));
  opacity: .72;
}

.hero-content,
.route-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow,
.section-kicker,
.panel-kicker,
.download-card span {
  color: var(--sea-bright);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-grid;
  grid-template-columns: 54px auto 54px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff1bc;
}

.hero-eyebrow span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-logo {
  width: min(255px, 62vw);
  display: block;
  margin: 0 0 12px;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .72));
  animation: emblemFloat 5.5s ease-in-out infinite;
}

.hero h1 {
  color: #fff7df;
  font-family: var(--display);
  font-size: clamp(58px, 8.2vw, 100px);
  font-weight: 400;
  line-height: .82;
  text-transform: uppercase;
  text-shadow: 0 12px 24px rgba(0, 0, 0, .9);
}

.hero h1 span {
  display: block;
  color: var(--gold-bright);
  font-size: .7em;
}

.hero-lead {
  max-width: 620px;
  margin: 14px 0 22px;
  color: #f1ddb0;
  font-size: 22px;
  line-height: 1.42;
  text-shadow: 0 4px 12px #000;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-status {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.hero-status article,
.route-panel,
.news-card,
.stat-card,
.system-panel,
.download-card,
.ranking-board,
.shop-tile,
.community-cta,
.auth-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(12, 18, 20, .88), rgba(5, 5, 5, .96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-status article {
  position: relative;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 15px;
  overflow: hidden;
}

.hero-status article::before,
.stat-card::before,
.shop-tile::before,
.system-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 199, 107, .16);
  pointer-events: none;
}

.hero-status small {
  color: var(--muted);
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-status strong {
  color: #fff4c7;
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  background: #77f07e;
  box-shadow: 0 0 16px rgba(119, 240, 126, .8);
}

.route-panel {
  align-self: center;
  padding: 28px;
  backdrop-filter: blur(8px);
  animation: panelSway 6s ease-in-out infinite;
}

.route-panel h2,
.system-panel h3,
.download-card h3,
.news-card h3,
.community-cta h2,
.auth-form h2 {
  color: var(--gold);
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 4px 10px #000;
}

.route-panel h2 {
  margin: 7px 0 18px;
  font-size: 26px;
}

.route-panel ol {
  display: grid;
  gap: 13px;
  list-style: none;
}

.route-panel li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: #dac7a2;
}

.route-panel li strong {
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 140, .38);
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(152, 42, 29, .55), rgba(0, 0, 0, .65));
  font-family: var(--heading);
  font-size: 12px;
}

.section {
  position: relative;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 92px 0;
  border-bottom: 1px solid rgba(240, 199, 107, .18);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-header h2,
.trailer-layout h2 {
  margin: 8px 0 9px;
  color: var(--gold);
  font-family: var(--heading);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 5px 14px #000;
}

.section-header p {
  color: #dcc7a0;
  font-size: 20px;
}

.news-grid,
.system-grid,
.download-grid,
.shop-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}

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

.news-card,
.download-card,
.shop-tile,
.system-panel,
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.news-card:hover,
.download-card:hover,
.shop-tile:hover,
.system-panel:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .56), 0 0 26px rgba(214, 164, 58, .12);
}

.news-art {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("assets/hero-bg.png") center / cover no-repeat;
}

.news-art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 226, 140, .28);
}

.news-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(0, 0, 0, .5)),
    linear-gradient(135deg, rgba(152, 42, 29, .58), rgba(0, 0, 0, .18));
}

.news-art span {
  position: relative;
  z-index: 1;
  color: #fff4c7;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 8px 18px #000;
}

.news-art--kraken {
  background-image: url("assets/ranking-bg.png");
}

.news-art--kraken::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(0, 0, 0, .5)),
    linear-gradient(135deg, rgba(11, 70, 80, .68), rgba(0, 0, 0, .22));
}

.news-art--guild {
  background-image: url("assets/trailer-cover.jpg");
}

.news-art--guild::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(0, 0, 0, .5)),
    linear-gradient(135deg, rgba(214, 164, 58, .48), rgba(0, 0, 0, .3));
}

.news-body {
  padding: 22px;
}

.news-body small {
  color: var(--sea-bright);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.news-body h3 {
  margin: 7px 0 8px;
  font-size: 22px;
}

.news-body p,
.system-panel p,
.download-card p {
  color: var(--muted);
}

.section-server {
  width: min(100% - 48px, 1280px);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.stat-card {
  min-height: 146px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 26px 18px;
}

.stat-card strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 58px;
  line-height: .9;
  font-weight: 400;
  text-shadow: 0 8px 18px #000;
}

.stat-card span {
  color: #e0c797;
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.system-panel {
  padding: 28px;
}

.system-panel h3 {
  margin: 8px 0 10px;
  font-size: 23px;
}

.system-panel ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
}

.system-panel li {
  position: relative;
  padding-left: 18px;
  color: #ead6ad;
}

.system-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--blood);
  transform: rotate(45deg);
}

.section-trailer {
  width: min(100% - 48px, 1280px);
}

.trailer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.trailer-layout .section-header {
  margin: 0;
  text-align: left;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 7px solid #080403;
  outline: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 20px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(152, 42, 29, .35), transparent, rgba(39, 168, 173, .24));
}

.video-frame::before {
  top: 0;
}

.video-frame::after {
  bottom: 0;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.download-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.download-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(240, 199, 107, .2);
  background: rgba(255, 255, 255, .05);
}

.download-card h3 {
  margin: 4px 0 6px;
  font-size: 25px;
}

.download-card p {
  margin-bottom: 16px;
}

.section-ranking {
  width: min(100% - 48px, 1280px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .6)),
    url("assets/ranking-bg.png") center 44% / cover no-repeat;
  padding: 86px 28px;
  border: 1px solid var(--line);
}

.ranking-board {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px;
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, .9fr) minmax(100px, .7fr);
  align-items: center;
  gap: 12px;
}

.ranking-head {
  min-height: 42px;
  padding: 0 16px;
  color: var(--sea-bright);
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-row {
  min-height: 62px;
  margin-top: 8px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(240, 199, 107, .22);
  background: linear-gradient(90deg, rgba(6, 6, 5, .86), rgba(30, 16, 9, .52));
}

.ranking-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 140, .42);
  background: linear-gradient(180deg, rgba(152, 42, 29, .7), rgba(0, 0, 0, .68));
  color: var(--gold-bright);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.ranking-row strong {
  color: #fff2c5;
  font-family: var(--heading);
  font-size: 18px;
  text-transform: uppercase;
}

.ranking-row em {
  color: var(--muted);
  font-style: normal;
}

.ranking-row b {
  color: var(--gold);
  text-align: right;
}

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

.shop-tile {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-decoration: none;
  background:
    radial-gradient(circle at top, rgba(86, 81, 221, .16), transparent 42%),
    linear-gradient(145deg, rgba(28, 12, 38, .86), rgba(5, 5, 10, .96));
}

.shop-tile img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .58));
  transition: transform .22s ease;
}

.shop-tile:hover img {
  transform: scale(1.035);
}

.shop-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 140, .38);
  background: rgba(5, 5, 5, .78);
  color: #fff4c7;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.community-cta {
  width: min(100% - 48px, var(--container));
  min-height: 240px;
  margin: 0 auto 76px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, .88), rgba(3, 3, 3, .42)),
    url("assets/hero-bg.png") center 62% / cover no-repeat;
}

.community-cta h2 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 46px);
}

.community-cta p {
  color: #dcc7a0;
  font-size: 20px;
}

.footer {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 4, 3, .96), #030303),
    repeating-linear-gradient(90deg, rgba(255, 226, 140, .025) 0 1px, transparent 1px 30px);
  color: #9f8f70;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer nav a {
  color: #c7b18b;
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.footer p {
  font-size: 15px;
  text-align: right;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(214, 164, 58, .14), transparent 46%),
    rgba(3, 3, 3, .82);
  backdrop-filter: blur(8px);
}

.auth-panel {
  position: relative;
  width: min(100%, 460px);
  padding: 30px;
  animation: modalIn .32s cubic-bezier(.2, 1.2, .3, 1) both;
}

.auth-panel::before,
.auth-panel::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.auth-panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.auth-panel::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}

.auth-close:hover {
  color: var(--gold-bright);
  transform: rotate(90deg);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 24px;
  border-bottom: 1px solid rgba(240, 199, 107, .22);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease;
}

.auth-tab:hover,
.auth-tab.is-active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form h2 {
  text-align: center;
  font-size: 28px;
}

.auth-form p {
  margin-bottom: 8px;
  color: var(--muted);
  text-align: center;
}

.auth-form label:not(.checkline) {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
}

.auth-form input:focus {
  border-color: var(--sea-bright);
  box-shadow: 0 0 0 3px rgba(39, 168, 173, .18), inset 0 2px 6px rgba(50, 20, 2, .2);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d9c59f;
  font-size: 15px;
  line-height: 1.35;
}

.checkline input {
  margin-top: 5px;
  accent-color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rainDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: -360px 720px, -520px 900px; }
}

@keyframes fogSail {
  0%, 100% { transform: translateX(-4%) scale(1); opacity: .45; }
  50% { transform: translateX(8%) scale(1.08); opacity: .78; }
}

@keyframes slowStorm {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
}

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

@keyframes panelSway {
  0%, 100% { transform: translateY(0) rotate(-.2deg); }
  50% { transform: translateY(-6px) rotate(.2deg); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

@media (max-width: 1180px) {
  .nav-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-menu,
  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }

  .nav-menu.is-open,
  .nav-actions.is-open {
    display: flex;
  }

  .nav-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 0 10px;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 82px;
  }

  .route-panel {
    max-width: 620px;
  }

  .trailer-layout {
    grid-template-columns: 1fr;
  }

  .trailer-layout .section-header {
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .hero-status,
  .stats-grid,
  .news-grid,
  .system-grid,
  .download-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-status {
    max-width: 520px;
  }

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

  .ranking-head,
  .ranking-row {
    grid-template-columns: 52px minmax(0, 1fr) minmax(95px, auto);
  }

  .ranking-head span:nth-child(3),
  .ranking-row em {
    display: none;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer p {
    text-align: center;
  }

  .community-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    font-size: 17px;
  }

  .nav-inner {
    min-height: 70px;
    padding: 0 14px;
    gap: 12px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .nav-menu a {
    justify-content: center;
    padding: 0 13px;
    font-size: 12px;
  }

  .nav-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .nav-menu.is-open a {
    border: 1px solid rgba(240, 199, 107, .18);
    background: rgba(5, 5, 5, .24);
  }

  .nav-actions > * {
    flex: 1 1 130px;
  }

  .hero {
    padding: 58px 18px 42px;
    gap: 26px;
  }

  .hero-logo {
    width: min(250px, 78vw);
    margin-inline: auto;
  }

  .hero-eyebrow {
    grid-template-columns: 28px auto 28px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 72px);
    text-align: center;
  }

  .hero-lead {
    font-size: 20px;
    text-align: center;
  }

  .hero-cta {
    display: grid;
  }

  .hero-status {
    grid-template-columns: 1fr 1fr;
  }

  .route-panel {
    padding: 22px;
  }

  .section,
  .section-server,
  .section-trailer,
  .section-ranking,
  .community-cta {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .section-ranking {
    padding: 70px 14px;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .section-header p {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-card img {
    margin: 0 auto;
  }

  .ranking-head {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ranking-row b {
    grid-column: 2;
    text-align: left;
  }

  .shop-tile {
    min-height: 250px;
  }

  .shop-tile img {
    max-height: 230px;
  }

  .community-cta {
    padding: 26px 18px;
    margin-bottom: 52px;
  }

  .auth-panel {
    padding: 26px 20px;
/* FACEBOOK */

.facebook-link{

    width:42px;
    height:42px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:8px;

    background:
    linear-gradient(
        180deg,
        #1877F2,
        #0E5CC4
    );

    border:1px solid rgba(255,255,255,.15);

    transition:.2s ease;
}

.facebook-link:hover{

    transform:translateY(-2px);

    box-shadow:
    0 0 18px rgba(24,119,242,.55);
}

.facebook-link img{

    width:22px;
    height:22px;

    object-fit:contain;
  }
}
