:root {
  --forest-950: #071b17;
  --forest-900: #0b2721;
  --forest-800: #123a30;
  --forest-700: #285c48;
  --sage: #8fae79;
  --sage-light: #c8d9a7;
  --paper: #f5eedb;
  --paper-bright: #fffaf0;
  --gold: #d7a24a;
  --gold-light: #f5d99d;
  --ember: #d7733f;
  --ink: #24362e;
  --muted: #66776d;
  --line: rgba(118, 100, 67, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #fff;
  background: var(--forest-700);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-900);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(calc(100% - 32px), 1240px);
  height: 72px;
  box-sizing: border-box;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 245, 220, 0.18);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(6, 27, 22, 0.9), rgba(11, 44, 35, 0.8));
  box-shadow: 0 16px 38px rgba(1, 12, 9, 0.26);
  grid-template-columns: 1fr auto 1fr;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.site-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: #fff5df;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 19px;
  text-decoration: none;
}

.site-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.74);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff5df;
  background: rgba(244, 205, 130, 0.07);
}

.site-nav a[aria-current="location"] {
  border-color: rgba(244, 205, 130, 0.3);
  color: #ffe7b3;
  background: rgba(244, 205, 130, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 221, 0.04),
    0 0 18px rgba(230, 178, 83, 0.09);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.mobile-topic-nav,
.portal-link-short {
  display: none;
}

.header-portal-link {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid rgba(245, 217, 157, 0.38);
  border-radius: 8px;
  color: #fff4d8;
  background: rgba(9, 34, 28, 0.42);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease;
}

.header-portal-link:hover {
  border-color: rgba(245, 217, 157, 0.72);
  background: rgba(25, 66, 52, 0.72);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(940px, 100vh);
  overflow: hidden;
  align-items: center;
  padding: 130px max(24px, calc((100vw - 1240px) / 2)) 128px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 24, 20, 0.98) 0%, rgba(7, 28, 23, 0.9) 37%, rgba(7, 28, 23, 0.36) 67%, rgba(5, 22, 18, 0.56) 100%),
    linear-gradient(0deg, rgba(4, 20, 16, 0.84) 0%, transparent 38%),
    url("/assets/cozy-gielinor-background.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 130px;
  content: "";
  background: linear-gradient(transparent, rgba(7, 27, 22, 0.72));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 18%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(206, 145, 61, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  align-items: center;
  gap: clamp(45px, 8vw, 130px);
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
}

.hero-copy {
  max-width: 690px;
  animation: hero-rise 700ms ease-out both;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 10px;
  color: #b5813c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-heading-light .eyebrow,
.join-card .eyebrow {
  color: var(--gold-light);
}

.eyebrow span {
  width: 27px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff8e8;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: clamp(45px, 5.4vw, 78px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero blockquote {
  margin: 25px 0 0;
  color: #f3c875;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.4;
}

.hero-intro {
  max-width: 650px;
  margin: 19px 0 0;
  color: rgba(239, 244, 229, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-discord {
  border-color: #7c8dcc;
  color: #fff;
  background: linear-gradient(135deg, #6678bd, #5264a5);
  box-shadow: 0 14px 30px rgba(32, 40, 78, 0.34), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button-discord:hover {
  filter: brightness(1.09);
}

.discord-button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 19px;
  fill: currentColor;
}

.button-ghost {
  border-color: rgba(255, 242, 213, 0.28);
  color: #fff6e1;
  background: rgba(8, 32, 26, 0.38);
  backdrop-filter: blur(9px);
}

.button-ghost:hover {
  border-color: rgba(255, 242, 213, 0.58);
  background: rgba(29, 69, 54, 0.6);
}

.hero-note {
  display: flex;
  margin: 20px 0 0;
  align-items: center;
  gap: 8px;
  color: rgba(231, 238, 218, 0.57);
  font-size: 10px;
}

.hero-note span {
  color: var(--gold);
}

.hero-note strong {
  color: rgba(255, 244, 218, 0.82);
}

.hero-note i {
  color: rgba(255, 255, 255, 0.22);
  font-style: normal;
}

.hero-emblem {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  animation: emblem-enter 900ms 120ms ease-out both;
}

.hero-emblem::before,
.hero-emblem::after {
  position: absolute;
  border: 1px solid rgba(246, 216, 157, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-emblem::before {
  width: min(30vw, 390px);
  height: min(30vw, 390px);
  box-shadow: inset 0 0 70px rgba(224, 168, 75, 0.08), 0 0 100px rgba(0, 0, 0, 0.2);
}

.hero-emblem::after {
  width: min(35vw, 460px);
  height: min(35vw, 460px);
  border-style: dashed;
  opacity: 0.6;
}

.hero-emblem img {
  position: relative;
  z-index: 1;
  width: min(28vw, 350px);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}

.hero-emblem p {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(245, 217, 157, 0.24);
  border-radius: 99px;
  color: rgba(255, 248, 230, 0.7);
  background: rgba(5, 25, 20, 0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.emblem-orbit {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 8%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 22px 5px rgba(244, 202, 113, 0.5);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  left: max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  min-height: 92px;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border: 1px solid rgba(247, 220, 164, 0.2);
  border-radius: 15px;
  background: rgba(8, 31, 25, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  grid-template-columns: repeat(3, minmax(0, 1fr) 1px) minmax(120px, 0.55fr);
  backdrop-filter: blur(18px);
}

.hero-stats > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-stats strong {
  color: #ffe3a8;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}

.hero-stats span {
  max-width: 120px;
  color: rgba(239, 244, 229, 0.64);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-stats i {
  width: 1px;
  height: 36px;
  background: rgba(255, 243, 213, 0.15);
}

.hero-stats small {
  justify-self: end;
  color: rgba(239, 244, 229, 0.42);
  font-size: 9px;
  text-align: right;
}

.welcome-section,
.live-section,
.join-section {
  padding: clamp(76px, 9vw, 126px) max(24px, calc((100vw - 1160px) / 2));
}

.portal-section {
  padding: clamp(80px, 9vw, 126px) max(24px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(circle at 0 10%, rgba(215, 162, 74, 0.12), transparent 28%),
    #edf1e7;
}

.portal-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.portal-intro .section-heading {
  margin-bottom: 42px;
}

.portal-button {
  margin-bottom: 47px;
  flex: 0 0 auto;
  border-color: #345d4c;
  color: #fff;
  background: linear-gradient(135deg, #315d4b, #183f34);
  box-shadow: 0 12px 25px rgba(24, 63, 52, 0.18);
}

.portal-layout {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: minmax(310px, 0.72fr) minmax(440px, 1.28fr);
}

.access-cards {
  display: grid;
  gap: 12px;
}

.access-cards article {
  padding: 25px 27px;
  border: 1px solid #d3ddcf;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 13px 28px rgba(54, 73, 59, 0.06);
}

.access-cards .member-access-card {
  border-color: rgba(196, 149, 67, 0.4);
  background: linear-gradient(145deg, #fffbef, #f3ead4);
}

.access-label {
  margin: 0 0 7px;
  color: #a06d2f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.access-cards h3 {
  margin: 0;
  color: #314a3d;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.access-cards ul {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  color: #68796e;
  font-size: 11px;
  list-style: none;
}

.access-cards li {
  position: relative;
  padding-left: 17px;
}

.access-cards li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #9c7941;
  content: "✦";
  font-size: 8px;
}

.portal-preview {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(237, 214, 166, 0.24);
  border-radius: 17px;
  background: #0d2c24;
  box-shadow: 0 28px 60px rgba(23, 50, 39, 0.22);
}

.preview-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #09231d;
}

.preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(235, 202, 137, 0.33);
}

.preview-bar span {
  margin-left: 10px;
  color: rgba(241, 237, 217, 0.34);
  font-size: 8px;
}

.preview-body {
  display: grid;
  min-height: 378px;
  grid-template-columns: 120px 1fr;
}

.preview-body aside {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 24, 19, 0.53);
}

.preview-body aside img {
  width: 50px;
  margin: 0 auto 20px;
}

.preview-line {
  display: block;
  width: 55%;
  height: 5px;
  border-radius: 99px;
  background: rgba(223, 232, 210, 0.13);
}

.preview-line.long {
  width: 86%;
}

.preview-line.medium {
  width: 72%;
}

.preview-line.active {
  width: 92%;
  height: 23px;
  margin: -8px 0;
  border: 1px solid rgba(224, 179, 93, 0.22);
  background: rgba(225, 184, 103, 0.12);
}

.preview-content {
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0, rgba(192, 215, 164, 0.24), transparent 36%),
    #edf2e8;
}

.preview-content small {
  display: block;
  color: #a87231;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.preview-content > strong {
  display: block;
  margin-top: 8px;
  color: #2b4437;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.preview-cards {
  display: grid;
  gap: 9px;
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.preview-cards i,
.preview-panel {
  display: block;
  border: 1px solid #d8e1d4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 8px 17px rgba(51, 76, 59, 0.06);
}

.preview-cards i {
  height: 77px;
}

.preview-cards i:nth-child(2) {
  background: linear-gradient(145deg, #fff8e5, #f8f3e4);
}

.preview-panel {
  height: 115px;
  margin-top: 10px;
}

.portal-privacy-note {
  display: flex;
  margin: 21px 0 0;
  align-items: center;
  gap: 8px;
  color: #7a8a80;
  font-size: 9px;
}

.portal-privacy-note span {
  color: #b97b34;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.live-panel h2,
.join-card h2 {
  margin: 0;
  color: #294235;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading > p:last-child,
.live-panel > div > p,
.join-card > div > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.welcome-grid {
  display: grid;
  align-items: stretch;
  gap: 20px;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.7fr);
}

.welcome-story,
.welcome-quote {
  border: 1px solid rgba(112, 107, 76, 0.2);
  border-radius: 18px;
  background: rgba(255, 251, 241, 0.75);
  box-shadow: 0 18px 45px rgba(53, 68, 54, 0.08);
}

.welcome-story {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.15fr);
}

.story-image {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  place-content: end;
  padding: 32px;
  background:
    linear-gradient(0deg, rgba(5, 24, 20, 0.94), rgba(6, 25, 21, 0.08) 72%),
    url("/assets/cozy-gielinor-background.png") 76% center / cover no-repeat;
}

.story-image::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 232, 183, 0.23);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.story-image img {
  position: absolute;
  top: 28px;
  right: 26px;
  width: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.35));
}

.story-image p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #efe6d2;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 23px;
  line-height: 1.35;
}

.story-image strong {
  color: #f5cf83;
  font-weight: 400;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
}

.story-copy > p {
  margin: 0;
  color: #52655a;
  font-size: 14px;
  line-height: 1.8;
}

.story-copy ul {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.story-copy li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: #3e5548;
  font-size: 12px;
  font-weight: 700;
}

.story-copy li span {
  flex: 0 0 19px;
  color: #b47a32;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}

.welcome-quote {
  position: relative;
  display: flex;
  min-height: 300px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  color: #f6efdd;
  background:
    linear-gradient(155deg, rgba(20, 58, 47, 0.92), rgba(7, 29, 24, 0.98)),
    url("/assets/cozy-gielinor-background.png") center / cover;
}

.welcome-quote::after {
  position: absolute;
  right: -54px;
  bottom: -78px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(240, 204, 134, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 26px rgba(240, 204, 134, 0.04), 0 0 0 52px rgba(240, 204, 134, 0.025);
}

.welcome-quote > span {
  position: absolute;
  top: 20px;
  left: 29px;
  color: rgba(236, 190, 102, 0.24);
  font-family: Georgia, serif;
  font-size: 116px;
  line-height: 1;
}

.welcome-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 24px;
  line-height: 1.48;
}

.welcome-quote small {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: rgba(240, 235, 217, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-section {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 125px) max(24px, calc((100vw - 1160px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 28, 23, 0.94), rgba(8, 33, 27, 0.79)),
    linear-gradient(0deg, rgba(5, 23, 19, 0.84), transparent 58%),
    url("/assets/cozy-gielinor-community-events.png") center / cover fixed;
}

.experience-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle at 17% 22%, rgba(224, 175, 86, 0.11), transparent 24%), linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 100% 54px;
  pointer-events: none;
}

.experience-section > * {
  position: relative;
}

.section-heading-light h2 {
  color: #fff4df;
}

.section-heading-light > p:last-child {
  color: rgba(231, 238, 219, 0.62);
}

.experience-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-grid article {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 31px;
  border: 1px solid rgba(244, 215, 157, 0.17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 249, 231, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.experience-grid article:hover {
  border-color: rgba(244, 215, 157, 0.42);
  background: linear-gradient(145deg, rgba(255, 249, 231, 0.13), rgba(255, 255, 255, 0.05));
  transform: translateY(-4px);
}

.feature-number {
  position: absolute;
  top: 29px;
  right: 30px;
  color: rgba(244, 216, 159, 0.3);
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 14px;
}

.feature-icon {
  display: grid;
  width: 67px;
  height: 67px;
  margin-bottom: 55px;
  place-items: center;
  border: 1px solid rgba(241, 207, 141, 0.28);
  border-radius: 15px;
  background: rgba(6, 25, 20, 0.36);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.18);
}

.feature-icon img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.26));
}

.feature-kicker {
  margin: 0 0 10px;
  color: #dcad5b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.experience-grid h3 {
  margin: 0;
  color: #fff4df;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.24;
}

.experience-grid article > p:last-child {
  margin: 16px 0 0;
  color: rgba(229, 237, 218, 0.57);
  font-size: 12px;
  line-height: 1.75;
}

.live-section {
  background:
    radial-gradient(circle at 100% 30%, rgba(217, 162, 74, 0.12), transparent 27%),
    linear-gradient(180deg, #f5eedb, #f8f3e7);
}

.live-panel {
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
  padding: clamp(38px, 6vw, 70px);
  border: 1px solid rgba(105, 94, 67, 0.2);
  border-radius: 20px;
  background: rgba(255, 252, 243, 0.75);
  box-shadow: 0 24px 65px rgba(62, 67, 51, 0.1);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
}

.live-panel > div > a {
  display: inline-flex;
  margin-top: 25px;
  align-items: center;
  gap: 8px;
  color: #536f4d;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.live-panel > div > a:hover {
  color: #a26728;
}

.live-event-stack {
  display: grid;
  gap: 11px;
}

.live-event-stack article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid #dfe4d7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.live-event-stack .winner-card {
  position: relative;
  align-items: flex-start;
  overflow: hidden;
  border-color: rgba(194, 143, 58, 0.42);
  background:
    radial-gradient(circle at 100% 0, rgba(226, 182, 94, 0.2), transparent 46%),
    linear-gradient(145deg, #fffaf0, #f2e7ce);
}

.winner-card::after {
  position: absolute;
  top: -32px;
  right: -28px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(185, 124, 51, 0.16);
  border-radius: 50%;
  content: "";
}

.winner-trophy {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 124, 51, 0.28);
  border-radius: 11px;
  color: #a96c28;
  background: rgba(255, 250, 234, 0.8);
  font-family: Georgia, serif;
  font-size: 20px;
}

.winner-card div {
  min-width: 0;
}

.winner-card p {
  margin: 5px 0 0;
  color: #78837a;
  font-size: 9px;
  line-height: 1.45;
}

.event-dot {
  width: 12px;
  height: 44px;
  border-radius: 99px;
}

.event-dot.community {
  background: linear-gradient(#8fad79, #637f59);
}

.event-dot.clan {
  background: linear-gradient(#e2b65e, #b37632);
}

.live-event-stack small,
.live-event-stack strong {
  display: block;
}

.live-event-stack small {
  margin-bottom: 4px;
  color: #8a978e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-event-stack strong {
  color: #33493c;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.live-event-stack > p {
  margin: 3px 2px 0;
  color: #929d96;
  font-size: 9px;
}

.join-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 26, 21, 0.96), rgba(7, 29, 24, 0.72)),
    url("/assets/cozy-gielinor-background.png") center 72% / cover no-repeat;
}

.join-section::after {
  position: absolute;
  top: -150px;
  right: 5%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(245, 217, 157, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 50px rgba(245, 217, 157, 0.025), 0 0 0 100px rgba(245, 217, 157, 0.015);
}

.join-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 35px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.join-card > img {
  width: 142px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
}

.join-card h2 {
  color: #fff4df;
}

.join-card > div > p:last-child {
  color: rgba(231, 238, 219, 0.62);
}

.join-actions {
  display: grid;
  justify-items: center;
  gap: 15px;
}

.portal-text-link {
  color: rgba(243, 239, 221, 0.55);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.portal-text-link:hover {
  color: #fff4df;
}

.site-footer {
  display: grid;
  align-items: center;
  gap: 22px;
  padding: 45px max(24px, calc((100vw - 1160px) / 2));
  color: rgba(234, 240, 222, 0.58);
  background: #061a16;
  grid-template-columns: 1fr auto auto;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-brand {
  font-size: 16px;
}

.site-footer > p {
  margin: 0;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 13px;
}

.site-footer > div {
  display: flex;
  gap: 18px;
}

.site-footer > div a {
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer > div a:hover {
  color: #f6d99d;
}

.site-footer > small {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(234, 240, 222, 0.3);
  font-size: 8px;
  grid-column: 1 / -1;
}

.login-toast {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  max-width: 390px;
  padding: 14px 16px;
  border: 1px solid rgba(237, 194, 119, 0.45);
  border-radius: 10px;
  color: #f9efdc;
  background: rgba(10, 35, 29, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  font-size: 11px;
  line-height: 1.5;
}

.login-toast a {
  color: #f4cc80;
  font-weight: 700;
}

a:focus-visible {
  outline: 2px solid #f2c96f;
  outline-offset: 4px;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes emblem-enter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes topic-change {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 0;
    transform: translateY(-5px);
  }
  55% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    column-gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-nav {
    display: none;
  }

  .mobile-topic-nav {
    position: relative;
    display: block;
    min-width: 0;
    max-width: min(42vw, 250px);
    justify-self: start;
  }

  .mobile-topic-toggle {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 9px 4px;
    border: 0;
    color: #fff4d8;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease;
  }

  .mobile-topic-toggle:hover,
  .mobile-topic-toggle:focus-visible,
  .mobile-topic-nav.is-open .mobile-topic-toggle {
    color: #f4cd82;
  }

  .mobile-topic-label {
    overflow: hidden;
    color: #fff5df;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-topic-label.is-changing {
    animation: topic-change 260ms ease;
  }

  .mobile-topic-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 1.5px solid #f4cd82;
    border-bottom: 1.5px solid #f4cd82;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-topic-nav.is-open .mobile-topic-chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .mobile-topic-menu {
    position: fixed;
    top: 84px;
    left: 50%;
    display: grid;
    width: min(340px, calc(100vw - 20px));
    box-sizing: border-box;
    gap: 3px;
    padding: 10px;
    border: 1px solid rgba(245, 217, 157, 0.28);
    border-radius: 15px;
    visibility: hidden;
    background:
      linear-gradient(135deg, rgba(18, 55, 44, 0.97), rgba(5, 25, 20, 0.98)),
      rgba(6, 27, 22, 0.98);
    box-shadow: 0 24px 55px rgba(1, 12, 9, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -9px) scale(0.97);
    transform-origin: top center;
    transition:
      opacity 180ms ease,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 260ms;
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
  }

  .mobile-topic-menu::before {
    position: absolute;
    top: -5px;
    left: clamp(88px, 28vw, 116px);
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(245, 217, 157, 0.28);
    border-left: 1px solid rgba(245, 217, 157, 0.28);
    content: "";
    background: #12372c;
    transform: translateX(-50%) rotate(45deg);
  }

  .mobile-topic-nav.is-open .mobile-topic-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
  }

  .mobile-topic-menu a {
    position: relative;
    padding: 12px 14px 12px 31px;
    border-radius: 9px;
    color: rgba(255, 248, 231, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-5px);
    transition:
      color 160ms ease,
      background 160ms ease,
      opacity 160ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-topic-menu a::before {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(244, 205, 130, 0.7);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
    transition: background 160ms ease, box-shadow 160ms ease;
  }

  .mobile-topic-menu a:hover,
  .mobile-topic-menu a:focus-visible,
  .mobile-topic-menu a[aria-current="location"] {
    color: #fff5df;
    background: rgba(244, 205, 130, 0.1);
  }

  .mobile-topic-menu a[aria-current="location"]::before {
    background: #f4cd82;
    box-shadow: 0 0 0 4px rgba(244, 205, 130, 0.12);
  }

  .mobile-topic-nav.is-open .mobile-topic-menu a {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-topic-nav.is-open .mobile-topic-menu a:nth-child(2) {
    transition-delay: 35ms;
  }

  .mobile-topic-nav.is-open .mobile-topic-menu a:nth-child(3) {
    transition-delay: 70ms;
  }

  .mobile-topic-nav.is-open .mobile-topic-menu a:nth-child(4) {
    transition-delay: 105ms;
  }

  .mobile-topic-nav.is-open .mobile-topic-menu a:nth-child(5) {
    transition-delay: 140ms;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 170px;
  }

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

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

  .hero-emblem {
    position: absolute;
    top: 10%;
    right: -60px;
    min-height: 260px;
    opacity: 0.2;
    pointer-events: none;
  }

  .hero-emblem img {
    width: 280px;
  }

  .hero-emblem::before {
    width: 310px;
    height: 310px;
  }

  .hero-emblem::after,
  .hero-emblem p,
  .emblem-orbit {
    display: none;
  }

  .hero-stats {
    gap: 15px;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats i,
  .hero-stats small {
    display: none;
  }

  .hero-stats > div {
    display: grid;
    gap: 3px;
  }

  .hero-stats span {
    max-width: none;
  }

  .welcome-grid,
  .live-panel,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-intro {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }

  .portal-button {
    margin: -18px 0 38px;
  }

  .welcome-quote {
    min-height: 300px;
  }

  .join-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .join-card > img {
    width: 105px;
  }

  .join-actions {
    justify-items: start;
    grid-column: 2;
  }
}

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

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 64px;
    padding: 0 12px;
    border-radius: 14px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-brand span {
    display: none;
  }

  .site-brand img {
    width: 38px;
    height: 38px;
  }

  .header-portal-link {
    padding: 9px 11px;
    font-size: 10px;
  }

  .mobile-topic-nav {
    max-width: min(39vw, 190px);
  }

  .hero {
    padding: 112px 20px 226px;
    background-position: 58% center;
  }

  .hero-content {
    gap: 22px;
  }

  .hero-copy {
    grid-row: 2;
  }

  .hero h1 {
    font-size: clamp(41px, 12vw, 59px);
  }

  .hero blockquote {
    font-size: 19px;
  }

  .hero-intro {
    font-size: 13px;
  }

  .hero-emblem {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 190px;
    grid-row: 1;
    opacity: 1;
  }

  .hero-emblem img {
    width: min(54vw, 220px);
    max-width: 100%;
    height: auto;
  }

  .hero-emblem::before,
  .hero-emblem::after {
    display: none;
  }

  .hero-stats {
    right: 20px;
    bottom: 22px;
    left: 20px;
    min-height: 165px;
    gap: 0;
    padding: 18px 20px;
    grid-template-columns: 1fr;
  }

  .hero-stats > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 243, 213, 0.1);
  }

  .hero-stats > div:last-of-type {
    border-bottom: 0;
  }

  .hero-stats strong {
    font-size: 23px;
  }

  .hero-stats span {
    max-width: 165px;
    text-align: right;
  }

  .welcome-section,
  .live-section,
  .join-section,
  .experience-section,
  .portal-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .welcome-story {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 310px;
  }

  .experience-section {
    background-attachment: scroll;
  }

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

  .experience-grid article {
    min-height: auto;
  }

  .feature-icon {
    margin-bottom: 40px;
  }

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

  .portal-preview {
    min-height: 340px;
  }

  .preview-body {
    min-height: 298px;
    grid-template-columns: 78px 1fr;
  }

  .preview-body aside {
    padding: 17px 12px;
  }

  .preview-body aside img {
    width: 42px;
  }

  .preview-content {
    padding: 30px 20px;
  }

  .preview-cards {
    grid-template-columns: 1fr 1fr;
  }

  .preview-cards i:last-child {
    display: none;
  }

  .join-card > img {
    width: 130px;
    margin: 0 auto;
  }

  .join-card .eyebrow {
    justify-content: center;
  }

  .join-actions {
    justify-items: center;
    grid-column: auto;
  }

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

  .site-footer > small {
    grid-column: auto;
  }

  .login-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 440px) {
  .portal-link-label {
    display: inline;
  }

  .portal-link-short {
    display: none;
  }

  .mobile-topic-nav {
    max-width: 36vw;
  }

  .mobile-topic-toggle {
    padding-right: 3px;
    padding-left: 3px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .story-copy,
  .welcome-quote,
  .live-panel {
    padding: 28px;
  }
}

@media (max-width: 350px) {
  .site-header {
    column-gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .mobile-topic-nav {
    max-width: 31vw;
  }

  .mobile-topic-toggle {
    padding-right: 2px;
    padding-left: 2px;
  }

  .mobile-topic-label {
    font-size: 10px;
  }

  .header-portal-link {
    padding: 8px 7px;
    font-size: 9px;
  }
}

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

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