:root {
  --ink: #090710;
  --ink-soft: #100b17;
  --panel: #151020;
  --panel-2: #20122d;
  --plum: #2a103f;
  --violet: #8d35d5;
  --violet-soft: #b165e8;
  --magenta: #d63ae8;
  --lavender: #e9d8f5;
  --muted: #9b94a5;
  --green: #7dffb2;
  --line: rgba(211, 159, 237, 0.2);
  --line-strong: rgba(211, 159, 237, 0.38);
  --serif: Georgia, "Times New Roman", serif;
  --we-bg: #090710;
  --we-surface: #151020;
  --we-surface-alt: #20122d;
  --we-text: #e9d8f5;
  --we-muted: #9b94a5;
  --we-accent: #b165e8;
  --we-accent-strong: #d63ae8;
  --we-border: rgba(211, 159, 237, 0.2);
  --we-success: #7dffb2;
  --we-danger: #ff6b81;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(95, 36, 159, 0.08), transparent 35%),
    var(--ink);
  color: var(--lavender);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

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

button,
summary {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--magenta);
  color: #090710;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 108px;
  grid-template-columns: minmax(230px, 0.7fr) auto minmax(230px, 0.7fr);
  align-items: center;
  gap: 32px;
  padding: 0 clamp(28px, 5vw, 82px);
  border-bottom: 1px solid rgba(228, 187, 247, 0.1);
  background: linear-gradient(180deg, rgba(7, 5, 13, 0.9), rgba(7, 5, 13, 0.4));
  backdrop-filter: blur(12px);
}

.site-header::after {
  position: absolute;
  right: 5%;
  bottom: -1px;
  left: 5%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(205, 113, 240, 0.25), transparent);
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  position: relative;
  color: #f5eefa;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -5px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(203, 70, 255, 0.4);
}

.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid #d36bf5;
  background: #5c1b78;
  content: "";
  transform: rotate(45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.24em;
}

.brand-copy small {
  color: #887c91;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.6vw, 44px);
}

.desktop-nav a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #a99ead;
  font-size: 13px;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  box-shadow: 0 0 14px rgba(214, 58, 232, 0.8);
  transition: right 180ms ease, left 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.active {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after {
  right: 0;
  left: 0;
}

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

.login-link {
  color: #b8adb9;
  font-size: 12px;
  transition: color 180ms ease;
}

.login-link:hover {
  color: #fff;
}

.mini-button {
  padding: 12px 18px;
  border: 1px solid rgba(211, 133, 247, 0.35);
  background: rgba(63, 21, 82, 0.32);
  color: #ead9f3;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mini-button:hover {
  border-color: rgba(226, 139, 255, 0.7);
  background: rgba(100, 33, 130, 0.48);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 900px;
  align-items: center;
  overflow: hidden;
  padding: 130px clamp(28px, 5vw, 82px) 190px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("../img/hero-template-1.webp");
  background-position: center top;
  background-size: cover;
  content: "";
  transform: scale(1.015);
  transform-origin: center top;
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 14, 0.97) 0%, rgba(8, 7, 16, 0.88) 27%, rgba(8, 7, 16, 0.28) 59%, rgba(8, 6, 14, 0.12) 100%),
    linear-gradient(180deg, transparent 48%, rgba(8, 6, 14, 0.92) 100%);
  content: "";
}

.hero-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 68% 47%, rgba(131, 42, 188, 0.12), transparent 28%),
    radial-gradient(circle at 50% 70%, transparent 30%, rgba(4, 3, 8, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 52vw);
  margin-top: -20px;
  animation: reveal-up 700ms ease both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: #d17ce9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #dc74f3;
  background: rgba(159, 48, 193, 0.4);
  box-shadow: 0 0 10px rgba(214, 58, 232, 0.65);
  transform: rotate(45deg);
}

.hero h1 {
  margin: 0;
  color: #f0e8f4;
  font-family: var(--serif);
  font-size: clamp(64px, 6.25vw, 100px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  display: block;
  color: #ddc7eb;
}

.season {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
  color: #bfacc7;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.season i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

.hero-description {
  max-width: 540px;
  margin: 0;
  color: #9d92a4;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  position: relative;
  display: inline-flex;
  min-width: 216px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(10, 7, 16, 0.72);
  color: #f7effb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button::before,
.button::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(235, 177, 255, 0.72);
  content: "";
}

.button::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.button::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(235, 158, 255, 0.72);
  box-shadow: 0 12px 36px rgba(113, 30, 143, 0.25);
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(223, 122, 255, 0.65);
  background:
    linear-gradient(110deg, rgba(71, 19, 91, 0.95), rgba(135, 31, 158, 0.9), rgba(77, 18, 95, 0.95));
  box-shadow: inset 0 0 24px rgba(229, 114, 255, 0.12), 0 0 20px rgba(139, 43, 166, 0.16);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 9px 16px;
  border: 1px solid rgba(125, 255, 178, 0.2);
  border-radius: 999px;
  background: rgba(8, 18, 16, 0.42);
  color: #a7e7bf;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.online-pill strong {
  color: #c0ffd7;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(125, 255, 178, 0.06), 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero-events {
  position: absolute;
  z-index: 3;
  bottom: 38px;
  left: clamp(28px, 5vw, 82px);
  display: grid;
  width: min(650px, 52vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  animation: reveal-up 700ms 160ms ease both;
}

.event-card {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(212, 157, 238, 0.28);
  background-color: #130d1a;
  background-position: center;
  background-size: cover;
  transition: transform 180ms ease, border-color 180ms ease;
  isolation: isolate;
}

.event-card::before,
.event-card::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(229, 180, 249, 0.52);
  content: "";
}

.event-card::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.event-card::after {
  right: 6px;
  bottom: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.event-guardian {
  background-image: url("../img/guardian-template-1.webp");
}

.event-wings {
  background-image: url("../img/wings-template-1.webp");
}

.event-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 5, 13, 0.95) 100%);
}

.event-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-copy small {
  color: #cf84e8;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.event-copy strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.event-arrow {
  margin: 0 0 2px auto;
  color: #cf84e8;
  font-size: 22px;
  transition: transform 180ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  border-color: rgba(226, 139, 255, 0.68);
  transform: translateY(-5px) scale(1.01);
}

.event-card:hover .event-arrow {
  transform: translate(3px, -3px);
}

.scroll-hint {
  position: absolute;
  right: 38px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #776f7e;
  font-size: 8px;
  letter-spacing: 0.22em;
  transform: rotate(90deg);
  transform-origin: right center;
}

.scroll-hint i {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, #7e477f, transparent);
}

.status-bar {
  display: grid;
  min-height: 138px;
  grid-template-columns: minmax(220px, 0.75fr) 2fr auto;
  align-items: center;
  gap: 44px;
  padding: 24px clamp(28px, 5vw, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(55, 18, 73, 0.32), rgba(15, 10, 22, 0.95) 28%, rgba(15, 10, 22, 0.95));
}

.status-intro {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-orb {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(218, 144, 247, 0.32);
  transform: rotate(45deg);
}

.status-orb::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(218, 144, 247, 0.2);
  content: "";
}

.status-orb i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.status-intro small,
.status-bar dt {
  color: #817888;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-intro strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.status-bar dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  margin: 0;
}

.status-bar dl > div {
  padding: 2px 28px;
  border-left: 1px solid rgba(211, 159, 237, 0.13);
}

.status-bar dd {
  margin: 7px 0 0;
  color: #f0e6f4;
  font-family: var(--serif);
  font-size: 20px;
}

.status-bar dd span {
  margin-left: 4px;
  color: #807887;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 10px;
}

.status-bar > a,
.text-link,
.table-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #b8aabf;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.status-bar > a span,
.text-link span,
.table-link span {
  color: #d56eee;
  font-size: 18px;
  transition: transform 180ms ease;
}

.status-bar > a:hover,
.text-link:hover,
.table-link:hover {
  color: #fff;
}

.status-bar > a:hover span,
.text-link:hover span,
.table-link:hover span {
  transform: translateX(4px);
}

.section {
  padding: 112px clamp(28px, 7vw, 110px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: 1380px;
  margin: 0 auto 42px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading .eyebrow,
.download-section .eyebrow,
.community-section .eyebrow {
  margin-bottom: 12px;
  font-size: 9px;
}

.section-heading h2,
.download-section h2,
.community-section h2 {
  margin: 0;
  color: #eadcf0;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.news-section {
  background:
    radial-gradient(circle at 12% 40%, rgba(98, 31, 123, 0.08), transparent 32%),
    linear-gradient(180deg, #0b0810, #100b16);
}

.news-grid {
  display: grid;
  max-width: 1380px;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  margin: 0 auto;
}

.news-card {
  border: 1px solid rgba(211, 159, 237, 0.16);
  background: #120d19;
  transition: border-color 180ms ease, transform 180ms ease;
}

.news-card:hover {
  border-color: rgba(211, 128, 243, 0.45);
  transform: translateY(-5px);
}

.news-visual {
  position: relative;
  display: flex;
  min-height: 185px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent, rgba(204, 75, 238, 0.16)),
    radial-gradient(circle at 50% 50%, #35114a, #100b17 65%);
}

.news-card-2 .news-visual {
  background:
    linear-gradient(25deg, rgba(0, 0, 0, 0.48), transparent),
    radial-gradient(circle at 50% 45%, #58206d, #130c1b 66%);
}

.news-card-3 .news-visual {
  background:
    linear-gradient(160deg, transparent, rgba(199, 77, 235, 0.12)),
    radial-gradient(circle at 30% 60%, #29193d, #0c0911 70%);
}

.news-rune {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(221, 140, 250, 0.24);
  color: #e58afa;
  font-size: 28px;
  box-shadow: inset 0 0 24px rgba(196, 67, 232, 0.12), 0 0 32px rgba(196, 67, 232, 0.08);
  transform: rotate(45deg);
}

.news-rune::first-letter {
  transform: rotate(-45deg);
}

.news-date {
  position: absolute;
  top: 15px;
  left: 16px;
  padding: 7px 9px;
  border: 1px solid rgba(224, 166, 248, 0.18);
  background: rgba(6, 4, 9, 0.56);
  color: #c5b4cc;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.news-body {
  padding: 25px 25px 27px;
}

.news-body small,
.guide-card > small,
.castle-card > p,
.castle-card > small {
  color: #c963df;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.news-body h3,
.guide-card h3 {
  margin: 10px 0 10px;
  color: #e3d6e8;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}

.news-body p,
.guide-card p {
  margin: 0;
  color: #827a87;
  font-size: 12px;
  line-height: 1.75;
}

.news-body a {
  display: inline-flex;
  gap: 12px;
  margin-top: 20px;
  color: #bcb0c2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body a span {
  color: #cf68e9;
}

.ranking-section {
  background:
    radial-gradient(circle at 80% 40%, rgba(103, 25, 137, 0.1), transparent 26%),
    #09070e;
}

.ranking-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(211, 159, 237, 0.15);
  background: rgba(22, 14, 29, 0.75);
}

.ranking-tabs button {
  min-width: 86px;
  padding: 9px 15px;
  border: 0;
  background: transparent;
  color: #7f7585;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
}

.ranking-tabs button.selected,
.ranking-tabs button:hover {
  background: rgba(111, 36, 138, 0.34);
  color: #eadff0;
}

.ranking-layout {
  display: grid;
  max-width: 1380px;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.65fr);
  gap: 20px;
  margin: 0 auto;
}

.ranking-table-wrap,
.castle-card {
  border: 1px solid rgba(211, 159, 237, 0.16);
  background: rgba(18, 12, 25, 0.82);
}

.table-head,
.ranking-table li {
  display: grid;
  grid-template-columns: 0.55fr 1.5fr 1.25fr 0.65fr 0.6fr;
  align-items: center;
}

.table-head {
  min-height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(211, 159, 237, 0.12);
  color: #716878;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ranking-table {
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.ranking-table li {
  min-height: 72px;
  border-bottom: 1px solid rgba(211, 159, 237, 0.09);
  color: #857c8b;
  font-size: 11px;
}

.rank-position {
  color: #c574db;
  font-family: var(--serif);
  font-size: 18px;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(204, 125, 233, 0.24);
  border-radius: 50%;
  background: #25122e;
  color: #d493e5;
  font-family: var(--serif);
  font-style: normal;
}

.player strong {
  color: #d9ccde;
  font-weight: 500;
}

.resets {
  color: #d190e3;
}

.table-link {
  margin: 22px;
}

.castle-card {
  display: flex;
  min-height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(78, 23, 102, 0.14), transparent),
    rgba(18, 12, 25, 0.9);
}

.castle-emblem {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(218, 140, 245, 0.34);
  color: #d993eb;
  font-family: var(--serif);
  font-size: 36px;
  box-shadow: inset 0 0 32px rgba(186, 58, 219, 0.12);
  transform: rotate(45deg);
}

.castle-card > p {
  margin: 0;
}

.castle-card h3 {
  margin: 9px 0 13px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.castle-divider {
  display: flex;
  width: 110px;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}

.castle-divider::before,
.castle-divider::after {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 101, 236, 0.42));
  content: "";
}

.castle-divider::after {
  transform: scaleX(-1);
}

.castle-card dl {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 28px;
}

.castle-card dl > div {
  border-right: 1px solid rgba(211, 159, 237, 0.1);
}

.castle-card dl > div:last-child {
  border: 0;
}

.castle-card dt {
  color: #716878;
  font-size: 8px;
}

.castle-card dd {
  margin: 6px 0 0;
  color: #d2c3d7;
  font-family: var(--serif);
}

.countdown {
  margin-top: 9px;
  color: #d7c3df;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.download-section {
  position: relative;
  display: flex;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  padding: 80px clamp(28px, 10vw, 160px);
  border-top: 1px solid rgba(211, 159, 237, 0.12);
  border-bottom: 1px solid rgba(211, 159, 237, 0.12);
  background:
    linear-gradient(90deg, rgba(8, 5, 12, 0.98), rgba(12, 7, 17, 0.82) 52%, rgba(26, 9, 39, 0.72)),
    url("../img/hero-template-1.webp") center 58% / cover;
}

.download-glow {
  position: absolute;
  right: 18%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(141, 53, 213, 0.14);
  filter: blur(75px);
}

.download-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.download-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 24px 0 0;
  color: #958a9c;
  font-size: 13px;
  line-height: 1.8;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.download-actions span {
  color: #77707d;
  font-size: 10px;
}

.download-seal {
  position: absolute;
  right: 12%;
  display: grid;
  width: 230px;
  height: 230px;
  place-content: center;
  border: 1px solid rgba(220, 147, 248, 0.18);
  background: rgba(17, 9, 23, 0.2);
  text-align: center;
  transform: rotate(45deg);
}

.download-seal::before,
.download-seal::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(220, 147, 248, 0.1);
  content: "";
}

.download-seal::after {
  inset: 34px;
}

.download-seal span,
.download-seal small {
  transform: rotate(-45deg);
}

.download-seal span {
  color: rgba(235, 214, 243, 0.62);
  font-family: var(--serif);
  font-size: 60px;
}

.download-seal small {
  margin-top: -18px;
  color: rgba(211, 128, 241, 0.5);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.guides-section {
  background: #0c0911;
}

.guides-grid {
  display: grid;
  max-width: 1380px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.guide-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: 38px 34px;
  border: 1px solid rgba(211, 159, 237, 0.14);
  background:
    linear-gradient(145deg, rgba(74, 24, 97, 0.12), transparent 42%),
    #120d18;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.guide-card::after {
  position: absolute;
  right: -30px;
  bottom: -55px;
  color: rgba(213, 139, 242, 0.035);
  content: "✦";
  font-size: 180px;
}

.guide-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgba(226, 199, 237, 0.16);
  font-family: var(--serif);
  font-size: 40px;
}

.guide-card h3 {
  margin-top: 42px;
  font-size: 30px;
}

.guide-card p {
  max-width: 330px;
}

.guide-arrow {
  position: absolute;
  bottom: 30px;
  left: 34px;
  color: #d26be9;
  font-size: 24px;
  transition: transform 180ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(214, 118, 241, 0.4);
  background-color: #17101e;
  transform: translateY(-4px);
}

.guide-card:hover .guide-arrow {
  transform: translateX(5px);
}

.community-section {
  display: flex;
  min-height: 500px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px;
  border-top: 1px solid rgba(211, 159, 237, 0.1);
  background:
    linear-gradient(rgba(8, 5, 12, 0.86), rgba(8, 5, 12, 0.94)),
    radial-gradient(circle at center, #4c165e, #0b0710 64%);
  text-align: center;
}

.community-section > p:not(.eyebrow) {
  max-width: 590px;
  margin: 20px 0 30px;
  color: #8e8494;
  font-size: 13px;
  line-height: 1.8;
}

.community-section > div {
  display: flex;
  gap: 14px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 35px;
  padding: 48px clamp(28px, 5vw, 82px);
  border-top: 1px solid rgba(211, 159, 237, 0.13);
  background: #07050a;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
}

.footer-brand p,
.legal {
  margin: 6px 0 0;
  color: #655e69;
  font-size: 9px;
}

.footer-links {
  display: flex;
  gap: 25px;
  color: #837986;
  font-size: 10px;
}

.footer-links a:hover {
  color: #d6c7db;
}

.legal {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid rgba(211, 159, 237, 0.08);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.8); }
}

@keyframes hero-breathe {
  from { transform: scale(1.015); }
  to { transform: scale(1.04); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .desktop-nav {
    order: 3;
    position: absolute;
    top: 107px;
    left: 0;
    width: 100%;
    height: 48px;
    border-bottom: 1px solid rgba(211, 159, 237, 0.08);
    background: rgba(8, 6, 13, 0.68);
    backdrop-filter: blur(12px);
  }

  .desktop-nav a {
    font-size: 11px;
  }

  .hero {
    padding-top: 180px;
  }

  .status-bar {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .status-bar dl {
    width: 100%;
  }

  .status-bar dl > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

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

  .castle-card {
    min-height: 380px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    height: 82px;
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .desktop-nav,
  .account-actions {
    display: none;
  }

  .brand-mark {
    font-size: 30px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(211, 159, 237, 0.2);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 17px;
    height: 1px;
    background: #d8c7df;
  }

  .mobile-menu nav {
    position: absolute;
    top: 51px;
    right: 0;
    display: flex;
    width: min(280px, calc(100vw - 44px));
    flex-direction: column;
    padding: 13px;
    border: 1px solid rgba(211, 159, 237, 0.24);
    background: rgba(11, 7, 16, 0.97);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
  }

  .mobile-menu nav a {
    padding: 14px;
    border-bottom: 1px solid rgba(211, 159, 237, 0.08);
    color: #b9aebe;
    font-size: 12px;
  }

  .hero {
    min-height: 920px;
    align-items: flex-start;
    padding: 160px 24px 260px;
  }

  .hero::before {
    background-position: 64% top;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(7, 6, 14, 0.96), rgba(8, 7, 16, 0.5)),
      linear-gradient(180deg, rgba(8, 6, 14, 0.05) 40%, rgba(8, 6, 14, 0.96) 78%);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    max-width: 630px;
    font-size: clamp(50px, 12vw, 76px);
  }

  .hero-description {
    max-width: 460px;
  }

  .hero-events {
    right: 24px;
    bottom: 32px;
    left: 24px;
    width: auto;
  }

  .scroll-hint {
    display: none;
  }

  .news-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    gap: 14px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
  }

  .news-visual {
    min-height: 100%;
  }

  .download-seal {
    right: -100px;
    opacity: 0.45;
  }

  .download-copy {
    max-width: 620px;
  }

  .section-heading.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 960px;
    padding-top: 128px;
  }

  .eyebrow {
    gap: 10px;
    letter-spacing: 0.22em;
  }

  .hero h1 {
    font-size: 52px;
  }

  .season {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

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

  .event-card {
    min-height: 112px;
  }

  .event-copy strong {
    font-size: 18px;
  }

  .status-bar dl {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .status-bar dl > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .news-card {
    display: block;
  }

  .news-visual {
    min-height: 160px;
  }

  .ranking-tabs {
    width: 100%;
  }

  .ranking-tabs button {
    min-width: 0;
    flex: 1;
  }

  .table-head {
    display: none;
  }

  .ranking-table {
    padding: 0 14px;
  }

  .ranking-table li {
    grid-template-columns: 42px 1fr 44px;
    gap: 8px;
  }

  .ranking-table li > span:nth-child(3),
  .ranking-table li > span:nth-child(4) {
    display: none;
  }

  .download-section {
    min-height: 560px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .download-copy br {
    display: none;
  }

  .download-actions,
  .community-section > div {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions .button,
  .community-section .button {
    width: 100%;
  }

  .download-seal {
    display: none;
  }

  .castle-card {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* WebEngine adapter structure */
.innerHero {
  background-image: url("../img/hero-template-1.webp");
}

.footer-brand {
  display: block;
}

.footer .brand {
  display: grid;
  grid-template-columns: 48px auto;
  grid-template-rows: auto auto;
  gap: 0 14px;
}

.footer .brand-mark {
  grid-row: 1 / 3;
}

.footer .brand strong,
.footer .brand small {
  grid-column: 2;
}

.footer-legal {
  grid-column: 1 / -1;
  justify-items: start;
}

@media (max-width: 820px) {
  .status-bar {
    width: 100%;
  }
}
