/* =========================================================
   DOOFUS CREST: CABANA CHAOS
   Charcoal, driftwood, parchment and aged gold.
========================================================= */

:root {
  color-scheme: dark;
  /* Neutral surfaces */
  --deep: #161416;
  --surface: #242223;
  --card: #1c1a1b;
  --wood: #35302b;
  --world: #1c1b1d;
  --panel: #292625;
  --community: #35302c;
  --footer: #121113;
  /* Doofus Crest accents and type */
  --gold: #d7b378;
  --gold-light: #f1d7a7;
  --cream: #f7eddb;
  --paper: #efe5d2;
  --muted: #c5bdb1;
  --coastal: #80a8ae;
  --line: #d7b37840;
  /* Text on parchment and secondary surfaces */
  --paper-ink: #3e362d;
  --paper-muted: #655c50;
  --footer-muted: #afa69a;
  --heading: "Bree Serif", Georgia, serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 15px/1.75 var(--body);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, summary {
  cursor: pointer;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p {
  margin: 0;
}

h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 3.3vw, 44px);
}

p + p {
  margin-top: 16px;
}

::selection {
  background: var(--gold);
  color: var(--deep);
}

:focus-visible {
  outline: 3px solid var(--coastal);
  outline-offset: 5px;
}

.wrap {
  width: min(1260px, calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: 76px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.kicker {
  color: var(--gold);
  font: 700 14px/1.5 var(--label);
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.text-link, .read-more {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  font: 700 15px/1.5 var(--label);
  letter-spacing: .07em;
}

.text-link:hover, .read-more:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Brass-edged wood buttons. The existing .button-teal hook now uses driftwood. */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 13px 25px;
  border: 1px solid #f7d8a0;
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, #67390c00 0 10px, #67390c0c 10px 11px), linear-gradient(#e6c58d, #c89d5b);
  color: #302617;
  box-shadow: inset 0 0 0 3px #72532135, 0 3px 0 #735630;
  font: 800 17px/1.2 var(--label);
  letter-spacing: .045em;
  text-align: center;
  transition: transform .18s, filter .18s;
}

.button::before, .button::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #775732;
  box-shadow: 0 1px 0 #fff5;
}

.button::before {
  left: 7px;
}

.button::after {
  right: 7px;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.09);
}

.button:active {
  transform: translateY(1px);
}

.button-teal {
  background: repeating-linear-gradient(0deg, #0000 0 10px, #16141618 10px 11px), linear-gradient(#474442, #302c2b);
  color: var(--cream);
  border-color: #b49a73;
  box-shadow: inset 0 0 0 3px #17141660, 0 3px 0 var(--footer);
}

.button-teal::before, .button-teal::after {
  background: var(--gold);
}

/* Two-level masthead: publisher utilities, then the game navigation. */

.publisher-bar {
  background: var(--footer);
  border-bottom: 1px solid #ffffff0c;
}

.publisher-inner {
  min-height: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font: 600 10px/1.5 var(--body);
  letter-spacing: .05em;
  color: var(--footer-muted);
}

.publisher-inner > a {
  font-weight: 700;
  color: #e0d2ae;
}

.publisher-inner > a span {
  color: #a59a8d;
  font-weight: 400;
  margin-left: 6px;
}

.publisher-inner > div {
  display: flex;
  gap: 25px;
}

.development-label {
  color: #c5a66f;
}

.publisher-inner a:hover {
  color: var(--cream);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 2px solid #b5915866;
  box-shadow: 0 4px 12px #0004;
}

.nav-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 96px;
}

.brand {
  display: grid;
  justify-items: center;
  flex-shrink: 0;
  width: 184px;
  padding: 5px 0 8px;
}

.brand img {
  width: 180px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #0006);
}

.brand > span, .footer-brand > span {
  color: #e8d1a4;
  font: 700 10px/1.2 var(--label);
  letter-spacing: .29em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 43px);
}

.site-nav > a:not(.button), .nav-dropdown > summary {
  position: relative;
  padding: 35px 0;
  font: 700 17px/1.4 var(--label);
  letter-spacing: .07em;
  white-space: nowrap;
}

.site-nav > a:not(.button):hover, .nav-dropdown > summary:hover, .site-nav > a[aria-current="location"] {
  color: var(--gold);
}

.site-nav > a[aria-current="location"]::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 25px;
  left: 0;
  right: 0;
  background: var(--gold);
}

.nav-cta {
  min-height: 45px;
  font-size: 16px;
  padding-inline: 24px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: flex;
  gap: 9px;
  align-items: center;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] summary {
  color: var(--gold);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -25px;
  width: 335px;
  padding: 22px;
  border: 1px solid #b3925c;
  background: var(--surface);
  box-shadow: 0 16px 30px #0007;
}

.dropdown-panel > p {
  color: #c2a46e;
  font: 700 12px/1.4 var(--label);
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.dropdown-panel > a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font: 700 20px/1.4 var(--label);
}

.dropdown-panel > a:last-child {
  border: 0;
  padding-bottom: 0;
}

.dropdown-panel > a span {
  display: block;
  color: var(--muted);
  font: 400 12px/1.7 var(--body);
}

.dropdown-panel > a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

/* Full-width world artwork with a compact title treatment at its base. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 46vw, 740px);
  overflow: hidden;
  background: var(--wood);
}

.hero-picture, .hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.hero-vignette {
  z-index: -1;
  background: linear-gradient(0deg, #161416fa 0%, #161416c2 12%, #16141610 48%, #16141600 73%, #16141633 100%);
}

.hero-topline {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #fff4cf;
  font: 700 11px/1.5 var(--label);
  letter-spacing: .24em;
  text-shadow: 0 1px 4px #000;
}

.hero-topline span {
  width: 45px;
  height: 1px;
  background: #edcf9155;
}

.hero-content {
  text-align: center;
  padding: 290px 0 47px;
}

.hero-content h1 {
  color: #f5d5a0;
  font: 700 17px/1.5 var(--label);
  letter-spacing: .18em;
  text-shadow: 0 2px 7px var(--deep);
}

.hero-tagline {
  font: 400 clamp(28px, 3.2vw, 44px)/1.2 var(--heading);
  color: #fff4d9;
  margin-top: 9px;
  text-wrap: balance;
  text-shadow: 0 3px 8px var(--footer);
}

.hero-description {
  margin-top: 12px;
  font-size: 14px;
  color: #f2ebd9;
  text-shadow: 0 2px 5px var(--footer);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 23px;
}

.hero-actions .button {
  min-width: 218px;
  min-height: 52px;
  font-size: 18px;
}

.art-caption {
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: #c2b9ac;
  font: 600 9px/1 var(--label);
  letter-spacing: .15em;
}

/* Development notice on a narrow, weathered sign band. */

.build-ribbon {
  border-top: 1px solid #b3946059;
  border-bottom: 3px double #b3946066;
  background: repeating-linear-gradient(0deg, #0000 0 19px, #1614160f 19px 20px), var(--wood);
}

.build-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding-block: 15px;
}

.build-mark {
  color: #ddbe83;
  font-size: 32px;
  padding-right: 18px;
  border-right: 1px solid #b3946070;
  line-height: 1;
}

.build-inner p {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.build-inner strong {
  color: var(--gold);
  font: 700 17px/1.5 var(--label);
  letter-spacing: .06em;
}

.build-inner p > span {
  color: var(--muted);
  font-size: 12px;
}

.build-inner > a {
  color: #ead6b2;
  font: 700 14px/1.4 var(--label);
  letter-spacing: .08em;
  white-space: nowrap;
}

.build-inner > a:hover {
  color: #fff1d7;
}

/* Editorial news, not generic feature cards. */

.dispatch-section {
  background: var(--surface);
  border-bottom: 1px solid #e6c79125;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.section-title-row .kicker {
  margin-bottom: 8px;
}

.section-title-row h2 {
  font-size: clamp(30px, 3vw, 40px);
}

.section-title-row .text-link {
  flex-shrink: 0;
  padding-bottom: 4px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #c6b18336;
  background: var(--card);
}

.news-image {
  position: relative;
  display: block;
  aspect-ratio: 1.85;
  overflow: hidden;
  border-bottom: 2px solid #927447;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.news-card:hover .news-image img {
  transform: scale(1.035);
}

.image-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 6px 13px;
  color: #f7e3b8;
  background: #242223f2;
  border-top: 1px solid #c6a96999;
  border-right: 1px solid #c6a96999;
  font: 700 12px/1.4 var(--label);
  letter-spacing: .08em;
}

.news-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 23px;
}

.news-copy time, .article-label {
  color: #c0ae8b;
  font: 600 11px/1.5 var(--label);
  letter-spacing: .12em;
}

.news-copy h3 {
  font-size: 25px;
  margin: 10px 0 14px;
}

.news-copy h3 a:hover {
  color: var(--gold);
}

.news-copy p {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}

.read-more {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
  font-size: 13px;
  justify-content: space-between;
}

/* Island showcase: useful, accessible tabs with tangible framing. */

.world-section {
  background: var(--world);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 35px;
  text-align: center;
}

.section-heading > p:not(.kicker) {
  max-width: 675px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--gold);
}

.ornament span {
  width: 87px;
  height: 1px;
  background: #c1a16866;
}

.world-showcase {
  border: 1px solid #9c8154;
  box-shadow: 0 0 0 4px var(--footer), 0 0 0 5px #9c815436;
}

.world-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: repeating-linear-gradient(0deg, #ffffff02 0 3px, #00000002 3px 4px), var(--wood);
  border-bottom: 1px solid #967b4b;
}

.world-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  position: relative;
  min-height: 86px;
  padding: 13px 20px;
  border: 0;
  border-right: 1px solid #ad91633d;
  background: transparent;
  text-align: left;
  color: #ded2bd;
}

.world-tabs button:last-child {
  border-right: 0;
}

.world-tabs button > img {
  width: 44px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #0006);
}

.world-tabs button > span {
  font: 700 19px/1.3 var(--label);
  letter-spacing: .055em;
}

.world-tabs small {
  display: block;
  font: 400 11px/1.6 var(--body);
  letter-spacing: 0;
  color: #bbb0a1;
}

.world-tabs button[aria-selected="true"] {
  background: #d7b37818;
  color: var(--gold-light);
  box-shadow: inset 0 -3px 0 #d8b779;
}

.world-tabs button:hover {
  background-color: #d7b37818;
}

.world-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 420px;
  background: var(--panel);
}

.world-panel + .world-panel {
  border-top: 1px solid var(--line);
}

.world-image {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.world-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.world-image > span {
  position: absolute;
  bottom: 12px;
  left: 15px;
  font: 600 10px/1 var(--label);
  letter-spacing: .1em;
  background: #242223d9;
  color: #eddec0;
  padding: 6px 8px;
}

.world-copy {
  align-self: center;
  padding: 34px 37px;
}

.chapter {
  color: var(--gold);
  font: 700 12px/1.4 var(--label);
  letter-spacing: .12em;
}

.world-copy h3 {
  font-size: clamp(26px, 2.8vw, 35px);
  margin: 14px 0 20px;
}

.world-copy > p {
  color: var(--muted);
  font-size: 13px;
}

.world-copy .island-aside {
  color: #e0c48c;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-family: var(--heading);
  font-size: 16px;
}

/* Open parchment feature strip. */

.gameplay-section {
  color-scheme: light;
  background: repeating-linear-gradient(90deg, #92682c03 0 2px, #0000 2px 4px), var(--paper);
  color: var(--paper-ink);
  border-block: 4px double #998455;
}

.gameplay-section .kicker {
  color: #785a31;
}

.gameplay-section .section-heading > p:not(.kicker) {
  color: var(--paper-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 45px;
}

.features article {
  padding: 0 26px;
  text-align: center;
  border-right: 1px solid #89735645;
}

.features article:first-child {
  padding-left: 0;
}

.features article:last-child {
  border: 0;
  padding-right: 0;
}

.features img {
  width: 80px;
  height: 83px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 5px 5px #51391f30);
  transition: transform .2s;
}

.features article:hover img {
  transform: rotate(-5deg) translateY(-3px);
}

.features h3 {
  font-size: 23px;
  margin-bottom: 15px;
}

.features p {
  font-size: 13px;
  color: var(--paper-muted);
}

.development-note {
  border-top: 1px solid #8973563d;
  padding-top: 24px;
  margin-top: 38px;
  color: var(--paper-muted);
  font-size: 11px;
  text-align: center;
}

/* Recruitment poster and support information. */

.community-section {
  padding-block: 80px;
  background: var(--community);
  border-bottom: 1px solid var(--line);
}

.community-layout {
  display: grid;
  grid-template-columns: .95fr 1fr;
  align-items: center;
  gap: 75px;
}

.community-poster {
  padding: 8px;
  background: #e1cca4;
  border: 1px solid #f5e2bd;
  box-shadow: 0 13px 24px #16141655;
  transform: rotate(-2deg);
}

.community-poster img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}

.community-poster > span {
  display: block;
  text-align: center;
  padding: 12px 0 7px;
  color: var(--paper-ink);
  font: 800 23px/1.4 var(--label);
  letter-spacing: .14em;
}

.community-copy h2 {
  margin-bottom: 22px;
}

.community-copy > p:not(.kicker) {
  color: var(--muted);
  font-size: 14px;
}

.community-copy .button {
  margin-top: 27px;
}

.community-copy p.community-note {
  font-family: var(--heading);
  color: #e6c993;
  margin-top: 21px;
  font-size: 16px;
}

.help-section {
  background: var(--surface);
}

.help-layout {
  display: grid;
  grid-template-columns: .85fr 1.2fr;
  gap: 85px;
}

.help-intro {
  color: var(--muted);
  margin-top: 20px;
  font-size: 14px;
  max-width: 320px;
}

.help-layout .text-link {
  margin-top: 27px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  font: 600 15px/1.5 var(--body);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 23px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--muted);
  padding-right: 25px;
  margin-top: 13px;
  font-size: 13px;
}

.faq a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--gold);
}

/* Full publisher-style footer. */

.site-footer {
  background: var(--footer);
}

.footer-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  padding: 22px 24px;
  border-top: 3px double #b2925666;
  border-bottom: 1px solid #b292563b;
  background: repeating-linear-gradient(0deg, #0000 0 7px, #16141618 7px 8px), var(--wood);
}

.footer-banner p {
  color: #e6ca92;
  font: 700 23px/1.4 var(--label);
  letter-spacing: .15em;
}

.footer-banner a {
  border-left: 1px solid var(--line);
  padding-left: 35px;
  color: var(--footer-muted);
  font: 700 12px/1.4 var(--label);
  letter-spacing: .1em;
}

.footer-banner a:hover {
  color: var(--gold-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1.2fr;
  gap: 40px;
  padding-block: 52px 40px;
}

.footer-brand img {
  width: 175px;
  margin-top: -8px;
}

.footer-brand > span {
  display: block;
  width: 175px;
  text-align: center;
  margin-top: 3px;
}

.footer-brand p {
  color: var(--footer-muted);
  font-size: 11px;
  margin-top: 20px;
}

.site-footer h2 {
  font: 700 15px/1.4 var(--label);
  letter-spacing: .1em;
  margin-bottom: 17px;
  color: #dfca9f;
}

.footer-grid nav a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}

.footer-grid nav a:hover {
  color: var(--gold);
}

.footer-play > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.footer-play .button {
  font-size: 15px;
  min-height: 44px;
}

.footer-play small {
  display: block;
  margin-top: 16px;
  color: var(--footer-muted);
  font-size: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-block: 24px;
  border-top: 1px solid #d7b37824;
  font-size: 10px;
  color: var(--footer-muted);
}

.footer-bottom p {
  margin: 0;
}

.asset-warning {
  position: fixed;
  z-index: 80;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 750px;
  margin-inline: auto;
  border: 1px solid #e1be84;
  background: #2f2615;
  color: #ffefc9;
  padding: 13px 18px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 24px;
  }

  .nav-layout {
    gap: 24px;
  }

  .brand {
    width: 160px;
  }

  .brand img {
    width: 157px;
  }

  .site-nav > a:not(.button), .nav-dropdown > summary {
    font-size: 15px;
  }

  .nav-cta {
    font-size: 14px;
    padding-inline: 18px;
    gap: 10px;
  }

  .build-inner p {
    display: block;
  }

  .build-inner p > span {
    display: block;
  }

  .world-copy {
    padding: 28px;
  }

  .community-layout {
    gap: 45px;
  }

  .help-layout {
    gap: 45px;
  }

  .footer-grid {
    gap: 27px;
  }
}

@media (max-width: 940px) {
  html {
    scroll-padding-top: 100px;
  }

  .nav-layout {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 4px;
  }

  .brand {
    width: 155px;
  }

  .brand img {
    height: 59px;
    width: 148px;
  }

  .menu-toggle {
    display: none;
    min-height: 42px;
    padding: 10px 15px;
    background: var(--wood);
    border: 1px solid #b1966570;
    font: 700 16px/1.3 var(--label);
    letter-spacing: .07em;
  }

  .menu-toggle span {
    margin-left: 12px;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 20px;
  }

  .js .site-nav {
    display: none;
  }

  .js .masthead[data-open="true"] .site-nav {
    display: flex;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }

  .site-nav > a:not(.button), .nav-dropdown > summary {
    display: flex;
    padding: 15px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a[aria-current="location"]::after {
    display: none;
  }

  .nav-cta {
    margin-top: 17px;
    font-size: 17px;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--gold);
    background: var(--card);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 325px;
  }

  .hero-tagline {
    font-size: 35px;
  }

  .news-grid {
    gap: 18px;
  }

  .news-copy {
    padding: 19px;
  }

  .news-copy h3 {
    font-size: 23px;
  }

  .world-panel {
    grid-template-columns: 1.08fr 1fr;
  }

  .world-image {
    min-height: 410px;
  }

  .world-copy h3 {
    font-size: 30px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 0;
  }

  .features article {
    padding: 0 30px;
  }

  .features article:first-child {
    padding-left: 30px;
  }

  .features article:nth-child(2) {
    border-right: 0;
  }

  .features article:last-child {
    padding-right: 30px;
  }

  .community-layout {
    gap: 35px;
  }

  .community-poster > span {
    font-size: 19px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .section {
    padding-block: 55px;
  }

  .publisher-inner {
    font-size: 9px;
    min-height: 29px;
  }

  .publisher-inner > a span, .publisher-inner > div > a {
    display: none;
  }

  .publisher-inner > div {
    gap: 0;
  }

  .hero {
    min-height: 630px;
    background: var(--deep);
  }

  .hero-picture {
    height: min(460px, 118vw);
    bottom: auto;
    mask-image: linear-gradient(#000 75%, transparent);
  }

  .hero-picture img {
    object-position: center 38%;
  }

  .hero-vignette {
    background: linear-gradient(0deg, var(--deep) 0%, #161416e8 15%, #16141660 42%, #16141600 66%);
  }

  .hero-topline {
    font-size: 9px;
    letter-spacing: .16em;
    gap: 10px;
    top: 16px;
  }

  .hero-topline span {
    width: 25px;
  }

  .hero-content {
    padding: 320px 0 43px;
  }

  .hero-content h1 {
    font-size: 14px;
    letter-spacing: .1em;
  }

  .hero-tagline {
    font-size: 33px;
    line-height: 1.1;
    max-width: 440px;
    margin-inline: auto;
  }

  .hero-description {
    font-size: 12px;
    max-width: 350px;
    margin-inline: auto;
  }

  .hero-actions {
    gap: 11px;
    margin-top: 20px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 47px;
    font-size: 15px;
    padding-inline: 19px;
    gap: 12px;
  }

  .art-caption {
    font-size: 8px;
    bottom: 10px;
    right: 10px;
  }

  .build-inner {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding-block: 20px;
  }

  .build-mark {
    font-size: 28px;
    padding-right: 12px;
  }

  .build-inner p {
    flex: initial;
  }

  .build-inner strong {
    font-size: 16px;
  }

  .build-inner p > span {
    font-size: 10px;
  }

  .build-inner > a {
    flex-basis: 100%;
    font-size: 12px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-title-row h2 {
    font-size: 32px;
  }

  .kicker {
    font-size: 12px;
  }

  .section-title-row .text-link {
    font-size: 13px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .news-image {
    aspect-ratio: 1.9;
  }

  .news-copy {
    padding: 22px;
  }

  .news-copy h3 {
    font-size: 27px;
  }

  .news-copy p {
    font-size: 13px;
  }

  .section-heading > p:not(.kicker) {
    font-size: 13px;
  }

  .world-tabs button {
    padding: 12px 5px;
    gap: 6px;
    flex-direction: column;
    text-align: center;
    min-height: 92px;
  }

  .world-tabs button > span {
    font-size: 16px;
  }

  .world-tabs button > img {
    width: 31px;
    height: 33px;
  }

  .world-tabs small {
    display: none;
  }

  .world-panel {
    grid-template-columns: 1fr;
  }

  .world-image {
    min-height: 0;
    aspect-ratio: 1.6;
  }

  .world-copy {
    padding: 27px 25px 30px;
  }

  .world-copy h3 {
    font-size: 31px;
  }

  .world-copy > p {
    font-size: 13px;
  }

  .features article, .features article:first-child, .features article:last-child {
    padding-inline: 14px;
  }

  .features h3 {
    font-size: 22px;
  }

  .features p {
    font-size: 12px;
  }

  .development-note {
    font-size: 11px;
  }

  .community-section {
    padding-block: 58px;
  }

  .community-layout {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .community-poster {
    width: calc(100% - 12px);
    margin-inline: auto;
  }

  .community-copy h2 {
    font-size: 36px;
  }

  .community-copy .button {
    margin-top: 23px;
  }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .help-intro {
    max-width: 100%;
    margin-top: 16px;
  }

  .faq summary {
    font-size: 14px;
  }

  .footer-banner {
    flex-direction: column;
    gap: 10px;
  }

  .footer-banner p {
    font-size: 22px;
  }

  .footer-banner a {
    border: 0;
    padding: 0;
  }

  .footer-grid {
    gap: 30px 20px;
    padding-block: 35px;
  }

  .footer-brand, .footer-play {
    grid-column: 1 / -1;
  }

  .footer-brand {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer-brand img {
    width: 175px;
  }

  .footer-play {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 665px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .button {
    width: 255px;
  }

  .hero-tagline {
    font-size: 31px;
  }

  .build-mark {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features article {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
