:root {
  color-scheme: dark;
  --bg: #070b09;
  --ink: #f6ead2;
  --muted: #b7ad99;
  --panel: #09110d;
  --panel-2: #121b15;
  --edge: #5d4820;
  --gold: #d8a949;
  --gold-soft: #f4d68c;
  --mint: #6ee7b7;
  --red: #ef6767;
  --blue: #6cb5ff;
  --app-height: 100dvh;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Legends of Loxley identity ------------------------------------------------ */
:root {
  --bg: #050906;
  --ink: #f2e8d0;
  --muted: #aaa28f;
  --panel: #08100b;
  --panel-2: #101a12;
  --edge: #6d4b27;
  --gold: #b88a45;
  --gold-soft: #ead29a;
  --mint: #b7f34a;
  --loxley-lime: #b7f34a;
  --loxley-pine: #102b1c;
  --loxley-moss: #456437;
  --loxley-parchment: #e9dcc1;
  --loxley-leather: #5b3820;
  --loxley-iron: #3c433e;
}

body {
  background: #030604;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.onboarding #game {
  filter: saturate(.8) brightness(.34) contrast(1.18);
}

.site-overlay {
  gap: 0;
  padding: 0;
  scroll-behavior: smooth;
  background:
    linear-gradient(90deg, rgba(3, 7, 4, .96) 0%, rgba(3, 7, 4, .84) 40%, rgba(3, 7, 4, .22) 72%, rgba(3, 7, 4, .5) 100%),
    linear-gradient(180deg, transparent 0 760px, #050906 1020px),
    url("assets/brand/loxley-hero.png") top center / min(178vh, 1900px) auto no-repeat,
    #050906;
  box-shadow: inset 0 0 0 1px rgba(184, 138, 69, .2);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  padding: 11px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(234, 210, 154, .14);
  background: linear-gradient(180deg, rgba(4, 9, 6, .97), rgba(4, 9, 6, .82));
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.site-nav .brand-lockup,
.site-footer .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.2vw, 38px);
  font-variant: small-caps;
  letter-spacing: .08em;
  line-height: .78;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}

.site-nav .brand-lockup img,
.site-footer .brand-lockup img {
  width: 57px;
  height: 57px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}

.site-nav .brand-lockup span,
.site-footer .brand-lockup span {
  display: grid;
}

.brand-lockup small {
  color: #c5ad76;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .34em;
  font-weight: 600;
  letter-spacing: .31em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-nav div {
  gap: clamp(12px, 2vw, 32px);
}

.site-nav a:not(.brand-lockup) {
  color: #d7ccb4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--loxley-lime);
}

.site-nav a.active::after {
  bottom: -16px;
  background: var(--loxley-lime);
}

.site-nav button,
.primary-cta {
  border-color: rgba(183, 243, 74, .82);
  background: var(--loxley-lime);
  color: #0a130a;
  font-weight: 850;
  box-shadow: 0 0 28px rgba(183, 243, 74, .12);
}

.site-nav button:hover,
.primary-cta:hover {
  border-color: #e7ffbd;
  background: #cdfb7d;
  color: #071007;
}

.site-grid {
  width: 100%;
  min-height: max(740px, calc(100vh - 82px));
  padding: clamp(70px, 10vh, 130px) clamp(22px, 5vw, 76px) 90px;
  grid-template-columns: minmax(440px, 1.2fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(38px, 6vw, 110px);
}

.hero-copy {
  align-self: center;
  max-width: 740px;
}

.kicker {
  color: var(--loxley-lime);
  font: 750 11px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.map-copy h2,
.settlement-section h2,
.site-footer p {
  margin: 11px 0 18px;
  color: #f3ead5;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(56px, 6.4vw, 104px);
  line-height: .93;
  text-shadow: 0 5px 34px #000;
}

.hero-copy h1 em {
  color: var(--gold-soft);
  font-weight: 400;
}

.hero-copy > p:not(.kicker):not(.wallet-optional) {
  max-width: 665px;
  color: #d2c8b1;
  font: 400 clamp(16px, 1.4vw, 20px)/1.75 Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero-actions {
  margin-top: 30px;
}

.hero-actions button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .13em;
}

.ghost-cta {
  border-color: rgba(234, 210, 154, .48);
  background: rgba(7, 14, 9, .66);
  backdrop-filter: blur(12px);
}

.wallet-optional {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 17px 0 24px;
  color: #a9a18e;
  font-size: 12px;
}

.wallet-optional span {
  color: var(--loxley-lime);
}

.online-board {
  max-width: 650px;
  border: 1px solid rgba(234, 210, 154, .18);
  border-radius: 4px;
  background: rgba(5, 11, 7, .58);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.online-board div {
  padding: 12px 16px;
}

.online-board span,
.realm-strip span {
  color: #9f9a89;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.online-board strong {
  color: #eaddc1;
}

.entry-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(205, 170, 96, .38);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 36%),
    rgba(7, 13, 9, .88);
  backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .58), inset 0 0 0 3px rgba(45, 56, 42, .36);
}

.entry-panel::before,
.entry-panel::after {
  content: "❦";
  position: absolute;
  color: rgba(205, 170, 96, .38);
  font-family: Georgia, serif;
  font-size: 26px;
}

.entry-panel::before {
  top: 4px;
  left: 8px;
}

.entry-panel::after {
  right: 8px;
  bottom: 4px;
  transform: rotate(180deg);
}

.profile-head,
.character-card,
.profile-form {
  position: relative;
  z-index: 1;
}

.profile-head {
  border-bottom-color: rgba(234, 210, 154, .16);
}

.profile-head .label,
.character-card .label {
  color: var(--loxley-lime);
}

.character-card {
  grid-template-columns: 112px 1fr;
  background: linear-gradient(180deg, rgba(23, 47, 29, .68), rgba(8, 15, 10, .76));
}

.profile-hero-canvas {
  border-color: rgba(205, 170, 96, .35);
  background: radial-gradient(circle at 50% 35%, #24462d, #08110b 68%);
}

.loadout-grid span {
  border-color: rgba(183, 243, 74, .2);
  color: #ddd0b3;
}

.profile-form input,
.profile-form select {
  border-radius: 3px;
  background: rgba(4, 10, 6, .88);
}

.profile-form > button {
  border-radius: 3px;
  border-color: var(--loxley-lime);
  background: var(--loxley-lime);
  color: #081008;
  font-weight: 850;
}

.realm-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid rgba(234, 210, 154, .15);
  background: #08100b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.realm-strip div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 17px;
  border-right: 1px solid rgba(234, 210, 154, .11);
}

.realm-strip div:last-child {
  border-right: 0;
}

.realm-strip strong {
  color: var(--gold-soft);
  font: 600 17px/1.2 Georgia, serif;
}

.world-section,
.map-section,
.settlement-section,
.coop-section,
.commons-section,
.roadmap-section {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.map-copy h2,
.settlement-section h2 {
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.03;
}

.section-heading p,
.map-copy p,
.settlement-section p {
  color: #a9a18e;
  font-size: 16px;
  line-height: 1.75;
}

.site-cards.playstyle-grid {
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  gap: 14px;
}

.site-cards.playstyle-grid article {
  min-height: 330px;
  padding: 28px 24px;
  border-radius: 2px;
  border-color: rgba(234, 210, 154, .16);
  background:
    linear-gradient(180deg, rgba(29, 49, 31, .74), rgba(8, 15, 10, .96)),
    #08100b;
  transition: transform .25s ease, border-color .25s ease;
}

.site-cards.playstyle-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(183, 243, 74, .44);
}

.site-cards.playstyle-grid article small {
  display: block;
  margin-top: 24px;
  color: var(--loxley-lime);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-cards.playstyle-grid article h3 {
  margin: 8px 0 12px;
  color: #f0e4ca;
  font: 500 25px/1.15 Georgia, serif;
}

.site-cards.playstyle-grid article p {
  color: #aaa18f;
  line-height: 1.65;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, .65fr) minmax(600px, 1.35fr);
  gap: 70px;
  align-items: center;
}

.realm-map {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(130, 96, 50, .65);
  background:
    radial-gradient(circle at 35% 60%, rgba(70, 98, 53, .28), transparent 18%),
    radial-gradient(circle at 70% 34%, rgba(75, 105, 56, .25), transparent 22%),
    repeating-linear-gradient(20deg, rgba(89, 62, 31, .045) 0 1px, transparent 1px 7px),
    #cdbd95;
  box-shadow: inset 0 0 90px rgba(68, 40, 18, .6), 0 28px 70px rgba(0, 0, 0, .35);
  color: #2b2115;
  transform: rotate(-.3deg);
}

.realm-map::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(72, 45, 19, .45);
  pointer-events: none;
}

.realm-map::after {
  content: "THE REALM OF LOXLEY";
  position: absolute;
  left: 24px;
  bottom: 17px;
  font: 700 13px Georgia, serif;
  letter-spacing: .24em;
  opacity: .58;
}

.map-route {
  position: absolute;
  inset: 22% 12% 20% 11%;
  border-top: 3px dashed rgba(80, 50, 21, .48);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.realm-map article {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  max-width: 170px;
  transform: translate(-50%, -50%);
}

.realm-map article i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border: 1px solid #533a1d;
  border-radius: 50%;
  background: #27452d;
  color: #e8d69d;
  font: 700 11px Inter, sans-serif;
  box-shadow: 0 4px 8px rgba(73, 42, 16, .28);
}

.realm-map article strong {
  font: 700 17px Georgia, serif;
}

.realm-map article small {
  margin-top: 3px;
  color: #57462f;
  line-height: 1.3;
}

.settlement-section {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 80px;
  align-items: center;
}

.settlement-art {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(234, 210, 154, .2);
  background:
    radial-gradient(circle at 50% 42%, transparent 0 70px, rgba(183, 243, 74, .08) 72px, transparent 74px),
    linear-gradient(140deg, transparent 47%, rgba(218, 190, 126, .12) 48% 49%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, #24402a, #0a150e 62%, #050906 63%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .65);
}

.settlement-art::before {
  content: "OUTLAW CAMP";
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 210, 154, .18);
  color: rgba(234, 210, 154, .22);
  font: 700 44px Georgia, serif;
  letter-spacing: .12em;
}

.wax-seal {
  position: absolute;
  right: 50%;
  bottom: 52px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 8px double rgba(255, 214, 154, .3);
  border-radius: 50%;
  background: #6f1f22;
  color: #e7b9a3;
  font: 700 42px Georgia, serif;
  transform: translateX(50%) rotate(-8deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .48);
}

.settlement-section ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.settlement-section li {
  padding-left: 24px;
  color: #c2b9a4;
  line-height: 1.55;
}

.settlement-section li::before {
  content: "➳";
  float: left;
  margin-left: -24px;
  color: var(--loxley-lime);
}

.coop-section {
  border-top: 1px solid rgba(234, 210, 154, .11);
  border-bottom: 1px solid rgba(234, 210, 154, .11);
}

.coop-grid,
.economy-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.coop-grid article,
.economy-layers article {
  padding: 28px;
  border: 1px solid rgba(234, 210, 154, .15);
  background: #08100b;
}

.coop-grid strong,
.economy-layers strong {
  color: #eadbbd;
  font: 500 24px Georgia, serif;
}

.coop-grid p,
.economy-layers p {
  color: #9f9887;
  line-height: 1.65;
}

.economy-layers {
  grid-template-columns: repeat(4, 1fr);
}

.economy-layers article span {
  display: block;
  margin-bottom: 10px;
  color: var(--loxley-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.chain-note {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border-left: 3px solid var(--loxley-lime);
  background: rgba(183, 243, 74, .055);
}

.chain-note img {
  width: 74px;
}

.chain-note strong {
  color: #ecdfc1;
  font-family: Georgia, serif;
  font-size: 21px;
}

.chain-note p {
  margin: 7px 0 0;
  color: #9f9887;
  line-height: 1.55;
}

.roadmap-section ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: road;
}

.roadmap-section li {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border-top: 1px solid rgba(183, 243, 74, .42);
  counter-increment: road;
}

.roadmap-section li::before {
  content: "0" counter(road);
  position: absolute;
  top: -15px;
  right: 22px;
  padding: 4px 8px;
  background: #050906;
  color: var(--loxley-lime);
  font-size: 10px;
}

.roadmap-section li span {
  color: #9d937f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.roadmap-section li strong {
  display: block;
  margin: 14px 0 10px;
  color: #ecdfc1;
  font: 500 24px Georgia, serif;
}

.roadmap-section li p {
  color: #9f9887;
  line-height: 1.65;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 65px 22px 80px;
  border-top: 1px solid rgba(234, 210, 154, .12);
  background: #030704;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #c9b47f;
  font-size: 23px;
  font-style: italic;
}

.site-footer > small {
  max-width: 720px;
  color: #767265;
  line-height: 1.5;
}

.panel {
  border-left-color: rgba(184, 138, 69, .58);
  background:
    linear-gradient(90deg, rgba(43, 55, 42, .14) 1px, transparent 1px) 0 0 / 6px 6px,
    linear-gradient(180deg, #111913, #080d09);
}

.menu-section,
.daily-pool-panel,
.wallet,
.stats-grid > div {
  border-color: rgba(184, 138, 69, .28);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--loxley-lime);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-nav a:not(.brand-lockup) {
    display: none;
  }

  .site-grid {
    grid-template-columns: 1fr minmax(320px, 390px);
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 7vw, 76px);
  }

  .realm-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .realm-strip div:nth-child(4) {
    border-right: 0;
  }

  .site-cards.playstyle-grid,
  .economy-layers {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-overlay {
    background:
      linear-gradient(180deg, rgba(3, 7, 4, .56), rgba(3, 7, 4, .9) 530px, #050906 840px),
      url("assets/brand/loxley-hero.png") 66% top / auto 610px no-repeat,
      #050906;
  }

  .site-nav {
    min-height: 68px;
    padding: 8px 14px;
  }

  .site-nav .brand-lockup {
    font-size: 23px;
  }

  .site-nav .brand-lockup img {
    width: 48px;
    height: 48px;
  }

  .site-nav button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }

  .site-grid {
    min-height: auto;
    padding: 90px 16px 52px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

  .hero-copy > p:not(.kicker):not(.wallet-optional) {
    font-size: 16px;
  }

  .online-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .online-board div {
    min-width: 0;
    padding: 10px 8px;
  }

  .online-board span {
    font-size: 7px;
  }

  .realm-strip {
    width: calc(100% - 30px);
    grid-template-columns: repeat(2, 1fr);
  }

  .realm-strip div,
  .realm-strip div:nth-child(4) {
    border-right: 1px solid rgba(234, 210, 154, .11);
  }

  .realm-strip div:nth-child(even) {
    border-right: 0;
  }

  .world-section,
  .map-section,
  .settlement-section,
  .coop-section,
  .commons-section,
  .roadmap-section {
    width: calc(100% - 30px);
    padding: 78px 0;
  }

  .site-cards.playstyle-grid,
  .coop-grid,
  .economy-layers,
  .roadmap-section ol,
  .settlement-section {
    grid-template-columns: 1fr;
  }

  .site-cards.playstyle-grid article {
    min-height: 250px;
  }

  .realm-map {
    min-height: 520px;
  }

  .realm-map article {
    max-width: 135px;
  }

  .realm-map article strong {
    font-size: 14px;
  }

  .settlement-section {
    gap: 40px;
  }

  .settlement-art {
    min-height: 330px;
  }

  .settlement-art::before {
    font-size: 28px;
  }

  .chain-note {
    grid-template-columns: 50px 1fr;
  }

  .chain-note img {
    width: 50px;
  }
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100vw;
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
  background: #050706;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  touch-action: manipulation;
}

body.onboarding .toast {
  display: none;
}

button {
  border: 1px solid rgba(216, 169, 73, 0.55);
  background: linear-gradient(180deg, rgba(30, 39, 27, 0.96), rgba(12, 17, 13, 0.96));
  color: var(--ink);
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(216, 169, 73, 0.4);
  border-radius: 8px;
  background: #070c09;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

a {
  color: var(--ink);
  text-decoration: none;
}

button:hover {
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(36, 82, 42, 0.96), rgba(17, 45, 25, 0.96));
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  border: 1px solid #596254;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #111512;
  color: #fff7db;
  text-align: center;
  font-size: 0.86em;
}

.shell {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: var(--app-height);
  margin: 0;
  padding: 0;
}

.game-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07100a;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #142016;
  image-rendering: pixelated;
  box-shadow: none;
  touch-action: none;
}

body.onboarding #game {
  filter: saturate(1.18) brightness(0.86) contrast(1.12);
}

.site-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 34px 30px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(2, 6, 4, 0.72) 0%, rgba(3, 7, 5, 0.28) 42%, rgba(3, 7, 5, 0.78) 100%),
    radial-gradient(circle at 58% 42%, transparent 0 24%, rgba(3, 7, 5, 0.22) 64%, rgba(3, 7, 5, 0.8) 100%);
  box-shadow: inset 0 0 0 1px rgba(216, 169, 73, 0.22), inset 0 0 86px rgba(0, 0, 0, 0.34);
}

body:not(.onboarding) .site-overlay {
  display: none;
}

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

.site-nav strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-soft);
  font-size: 34px;
  line-height: 0.82;
  text-shadow: 0 2px 0 #261405, 0 0 24px rgba(230, 164, 67, 0.25);
}

.brand-lockup {
  flex: 0 0 auto;
}

.brand-lockup img {
  display: block;
  width: clamp(96px, 7.6vw, 142px);
  max-height: 126px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.sigil {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold-soft);
  background: linear-gradient(180deg, #113d26, #0a1d14);
  color: var(--mint);
  font-size: 20px;
  box-shadow: inset 0 0 0 3px #1d5c3b, 0 0 18px rgba(216, 169, 73, 0.24);
}

.site-nav div,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a.active,
.site-nav a:hover {
  color: #8df5a5;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: #55d36f;
  box-shadow: 0 0 10px rgba(85, 211, 111, 0.7);
}

.site-grid {
  display: grid;
  grid-template-columns: minmax(520px, 760px) minmax(360px, 430px);
  column-gap: 34px;
  row-gap: 16px;
  align-items: start;
  justify-content: space-between;
  min-height: calc(100vh - 150px);
  margin-top: 0;
  padding-bottom: 42px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  z-index: 3;
  padding: 26px 30px 30px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(2, 6, 4, 0.88), rgba(3, 7, 5, 0.38));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 10px 0 20px;
  color: #fbf2df;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.93;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #211306, 0 0 22px rgba(216, 169, 73, 0.16);
}

.hero-copy h1::first-line {
  color: #fff9ee;
}

.hero-copy p {
  max-width: 570px;
  color: #fff0d2;
  font-size: 20px;
  line-height: 1.36;
  text-shadow: 0 2px 8px #000;
}

.online-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
  margin-top: 18px;
}

.economy-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 710px;
  margin-top: 10px;
}

.online-board div,
.economy-board div {
  min-width: 0;
  border: 1px solid rgba(141, 245, 165, 0.38);
  border-radius: 8px;
  background: rgba(6, 12, 9, 0.82);
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.62);
}

.online-board span,
.economy-board span {
  display: block;
  color: #d8cba9;
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.online-board strong,
.economy-board strong {
  display: block;
  margin-top: 5px;
  color: #8df5a5;
  font-family: "Silkscreen", "Tiny5", "Pixelify Sans", "Press Start 2P", "VT323", monospace;
  font-size: 21px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.economy-board strong {
  color: #d7b157;
  font-size: 18px;
}

.hero-copy .multiplayer-summary {
  max-width: 640px;
  margin-top: 14px;
  color: #e7dcc8;
  font-size: 15px;
  line-height: 1.45;
}

.hud-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.hud-strip span {
  border: 1px solid rgba(216, 169, 73, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 9, 0.76);
  padding: 10px 14px;
  color: #e7dcc8;
  font-size: 14px;
}

.hero-actions {
  margin-top: 26px;
}

.token-panel {
  display: grid;
  gap: 7px;
  max-width: 620px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(159, 122, 49, 0.7);
  border-radius: 8px;
  background: rgba(3, 13, 8, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.05), 0 12px 32px rgba(0, 0, 0, 0.24);
}

.token-panel span,
.token-panel a {
  color: #4ee07a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-panel code {
  color: #fff6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 #000;
}

.primary-cta {
  min-width: 195px;
  min-height: 52px;
  border-color: #77e28b;
  background: linear-gradient(180deg, #287f3d, #124c27);
  color: #fffbe9;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 0 28px rgba(85,211,111,0.25);
}

.ghost-cta {
  min-width: 210px;
  min-height: 52px;
  background: rgba(8, 10, 8, 0.82);
}

.world-showcase {
  display: none;
}

.entry-column {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 12px;
  align-content: start;
  z-index: 4;
}

.entry-panel,
.character-card,
.lore-board article,
.news-panel,
.site-cards article {
  position: relative;
  border: 1px solid rgba(216, 169, 73, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 21, 17, 0.96), rgba(5, 10, 8, 0.96)),
    #07100b;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.72), 0 18px 60px rgba(0, 0, 0, 0.35);
}

.entry-panel::before,
.lore-board article::before,
.news-panel::before,
.site-cards article::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216, 169, 73, 0.12);
  border-radius: 10px;
  pointer-events: none;
}

.character-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: rgba(0,0,0,0.24);
}

.profile-hero-canvas {
  width: 118px;
  height: 168px;
  border: 1px solid rgba(141, 245, 165, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 25%, rgba(216, 169, 73, 0.14), transparent 24%),
    linear-gradient(180deg, #142419, #08100b);
  image-rendering: pixelated;
}

.pixel-diorama {
  position: relative;
  height: 168px;
  border: 1px solid rgba(216, 169, 73, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, rgba(216, 169, 73, 0.18), transparent 18%),
    linear-gradient(135deg, #163821 0 25%, #1f5630 25% 50%, #17452a 50% 75%, #101c14 75%),
    #101a13;
  image-rendering: pixelated;
  overflow: hidden;
}

.pixel-diorama::before {
  content: "";
  position: absolute;
  inset: 82px 0 0;
  background: repeating-linear-gradient(90deg, #8d7650 0 10px, #b4a169 10px 19px);
  opacity: 0.76;
}

.pixel-shadow {
  position: absolute;
  left: 44px;
  top: 101px;
  width: 48px;
  height: 10px;
  background: rgba(0,0,0,0.34);
}

.pixel-hero {
  position: absolute;
  left: 50px;
  top: 39px;
  width: 38px;
  height: 70px;
}

.pixel-hero span,
.pixel-slime,
.pixel-rune {
  position: absolute;
  display: block;
}

.pixel-hero .hair {
  left: 9px;
  top: 0;
  width: 20px;
  height: 10px;
  background: #6c492d;
}

.pixel-hero .face {
  left: 10px;
  top: 8px;
  width: 18px;
  height: 17px;
  background: #f0c796;
}

.pixel-hero .body {
  left: 7px;
  top: 25px;
  width: 24px;
  height: 26px;
  background: var(--preview-body, #55d36f);
  box-shadow: inset 6px 0 rgba(255,255,255,0.16);
}

.pixel-hero .shield {
  left: 0;
  top: 29px;
  width: 10px;
  height: 16px;
  background: var(--preview-accent, #4a7bb5);
  border: 2px solid #d7e8ef;
}

.pixel-hero .sword {
  left: 30px;
  top: 18px;
  width: 4px;
  height: 36px;
  background: #d7e8ef;
  box-shadow: 0 26px 0 #6b4328;
}

.pixel-hero .bow {
  display: none;
  left: 29px;
  top: 17px;
  width: 14px;
  height: 38px;
  border: 3px solid #b97938;
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: inset -2px 0 #f4d27c;
}

.pixel-hero .bow::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 1px;
  height: 28px;
  background: #d7eefc;
}

.pixel-hero .staff {
  display: none;
  left: 31px;
  top: 10px;
  width: 4px;
  height: 42px;
  background: #d7eefc;
  box-shadow: 0 30px 0 #6b4328;
}

.pixel-hero .staff::before {
  content: "S";
  position: absolute;
  left: -5px;
  top: -9px;
  width: 14px;
  height: 14px;
  background: #123c2f;
  border: 2px solid #f8df94;
  color: #6ee7b7;
  font: 700 12px Georgia, serif;
  text-align: center;
  box-shadow: 0 0 15px rgba(110, 231, 183, 0.7);
}

.character-card[data-weapon="bow"] .pixel-hero .sword,
.character-card[data-weapon="magicStaff"] .pixel-hero .sword {
  display: none;
}

.character-card[data-weapon="bow"] .pixel-hero .bow,
.character-card[data-weapon="magicStaff"] .pixel-hero .staff {
  display: block;
}

.pixel-hero .boots {
  left: 9px;
  top: 51px;
  width: 22px;
  height: 10px;
  background: #25231e;
}

.pixel-slime {
  right: 18px;
  top: 80px;
  width: 22px;
  height: 17px;
  background: #68459a;
  box-shadow: inset 5px -3px #3e2d67;
}

.pixel-rune {
  left: 14px;
  top: 18px;
  width: 28px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--preview-accent, #7fa177);
  background: #123c2f;
  color: #28e6a0;
  font: 700 24px Georgia, serif;
  box-shadow: 0 0 16px rgba(40,230,160,0.34);
}

.entry-panel strong {
  display: block;
  margin: 5px 0 8px;
  overflow-wrap: anywhere;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(216, 169, 73, 0.24);
}

.profile-head strong {
  margin: 3px 0 0;
  color: #8df5a5;
  font-size: 16px;
}

.profile-head > span {
  align-self: end;
  color: #9ee6a8;
  font-size: 14px;
}

.profile-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.profile-meters span,
.loadout-grid span {
  border: 1px solid rgba(216, 169, 73, 0.24);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  padding: 8px;
  color: #eadcc3;
  font-size: 13px;
  white-space: nowrap;
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.entry-panel p,
.site-cards p,
.news-panel p,
.lore-board p {
  color: var(--muted);
  line-height: 1.45;
}

.profile-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: #f8df94;
  font-size: 13px;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weapon-field select {
  display: none;
}

.weapon-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weapon-choice-row button {
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  border-color: rgba(216, 169, 73, 0.38);
  background: rgba(7, 12, 9, 0.82);
  font-size: 12px;
}

.weapon-choice-row button.active {
  border-color: #77e28b;
  background: linear-gradient(180deg, rgba(40, 127, 61, 0.96), rgba(18, 76, 39, 0.96));
  color: #fffbe9;
}

.lore-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100vw - 470px));
}

.lore-board article {
  min-height: 148px;
  box-shadow: none;
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
  margin-left: 0;
  width: 100%;
  max-width: 1320px;
  z-index: 5;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 169, 73, 0.26);
}

.site-cards article {
  min-width: 0;
  min-height: 156px;
  padding: 20px 20px 18px 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 50%, rgba(85, 211, 111, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(11, 18, 14, 0.98), rgba(3, 8, 6, 0.98)),
    #07100b;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.8), 0 18px 50px rgba(0, 0, 0, 0.38);
}

.site-cards h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-cards p {
  margin: 0;
  color: #e5dac4;
  font-size: 14px;
  line-height: 1.42;
}

.card-link {
  display: inline-block;
  margin-top: 9px;
  margin-right: 12px;
  color: #8df5a5;
  font-size: 12px;
  text-transform: uppercase;
}

.feature-icon {
  position: absolute;
  left: 15px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(141, 245, 165, 0.5);
  border-radius: 7px;
  background: radial-gradient(circle at 40% 25%, rgba(141,245,165,0.22), transparent 35%), #0b3323;
  color: #8df5a5;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(85, 211, 111, 0.18);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.sword-icon::before {
  width: 5px;
  height: 29px;
  background: linear-gradient(180deg, #f7fbff, #9fb0ba);
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px #3a4a4e;
}

.sword-icon::after {
  width: 19px;
  height: 5px;
  background: #d8a949;
  transform: rotate(45deg);
  bottom: 8px;
  right: 6px;
}

.lamp-icon::before {
  left: 12px;
  top: 9px;
  width: 11px;
  height: 18px;
  border: 2px solid #d8a949;
  background: rgba(255, 220, 117, 0.24);
  box-shadow: 0 0 16px rgba(255, 204, 83, 0.55);
}

.lamp-icon::after {
  left: 16px;
  top: 4px;
  width: 5px;
  height: 7px;
  background: #f4d68c;
}

.home-icon::before {
  left: 8px;
  top: 18px;
  width: 21px;
  height: 14px;
  background: #7d5b34;
  box-shadow: inset 0 -6px #3c281c;
}

.home-icon::after {
  left: 6px;
  top: 9px;
  width: 25px;
  height: 15px;
  background: #2f7f43;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.scroll-icon::before {
  left: 8px;
  top: 10px;
  width: 22px;
  height: 18px;
  border: 2px solid #d8a949;
  background: #eadcc3;
}

.scroll-icon::after {
  left: 13px;
  top: 15px;
  width: 13px;
  height: 2px;
  background: #31503c;
  box-shadow: 0 6px 0 #31503c;
}

.coin-icon::before {
  left: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border: 3px solid #f4d68c;
  border-radius: 50%;
  background: #d8a949;
  box-shadow: inset -4px -4px 0 rgba(102, 71, 16, 0.28), 0 0 16px rgba(216, 169, 73, 0.48);
}

.coin-icon::after {
  left: 18px;
  top: 13px;
  width: 4px;
  height: 13px;
  background: #5d4820;
  box-shadow: -4px 3px 0 -1px #5d4820, 4px -3px 0 -1px #5d4820;
}

.news-panel {
  display: grid;
  gap: 12px;
}

.news-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-panel a {
  color: #8df5a5;
  font-size: 12px;
  text-transform: uppercase;
}

.news-panel article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.news-panel article span {
  display: block;
  width: 72px;
  height: 58px;
  border: 1px solid rgba(216, 169, 73, 0.36);
  border-radius: 7px;
  background:
    radial-gradient(circle at 45% 34%, rgba(141,245,165,0.68), transparent 10%),
    linear-gradient(135deg, #132719, #2c4426 45%, #111916);
}

.news-panel article:nth-of-type(2) span {
  background:
    radial-gradient(circle at 60% 28%, rgba(216,169,73,0.68), transparent 12%),
    linear-gradient(135deg, #1b1b28, #573d24 50%, #0b100e);
}

.news-panel strong {
  display: block;
  color: #f6ead2;
  margin-bottom: 3px;
}

.toast {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: min(620px, calc(100% - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(12, 15, 13, 0.88);
  color: #fff9e8;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

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

.quickbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(248, 223, 148, 0.28);
  border-radius: 8px;
  background: rgba(9, 12, 10, 0.58);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.music-volume {
  width: 86px;
  accent-color: #4ee07a;
}

body.onboarding .quickbar {
  top: 96px;
  right: 32px;
  z-index: 13;
  border-color: rgba(159, 122, 49, 0.72);
  border-radius: 8px;
  background: rgba(3, 13, 8, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.06), 0 0 0 2px rgba(0,0,0,0.42), 0 16px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

body.onboarding .quickbar .icon-btn {
  border-color: rgba(159, 122, 49, 0.72);
  background: rgba(1, 7, 4, 0.84);
}

.chat-panel {
  position: absolute;
  right: 330px;
  bottom: 18px;
  z-index: 8;
  width: min(380px, calc(100vw - 36px));
  border: 1px solid rgba(248, 223, 148, 0.28);
  border-radius: 8px;
  background: rgba(7, 10, 8, 0.78);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

body.wallet-modal-open .wallet-modal {
  display: grid;
}

.claim-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

body.claim-modal-open #claimModal,
body.pet-modal-open #petModal {
  display: grid;
}

.build-modal {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

body.build-modal-open .build-modal {
  display: grid;
}

.wallet-modal-card {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #9f7a31;
  border-radius: 10px;
  background: rgba(3, 13, 8, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.06), 0 0 0 2px rgba(0,0,0,0.56), 0 24px 72px rgba(0, 0, 0, 0.54);
  padding: 16px;
}

.claim-modal-card {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #9f7a31;
  border-radius: 8px;
  background: rgba(3, 13, 8, 0.97);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.06), 0 0 0 2px rgba(0,0,0,0.56), 0 24px 72px rgba(0, 0, 0, 0.58);
  padding: 16px;
}

.build-modal-card {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #9f7a31;
  border-radius: 8px;
  background: rgba(3, 13, 8, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.06), 0 0 0 2px rgba(0,0,0,0.68), 0 24px 72px rgba(0, 0, 0, 0.62);
  padding: 16px;
  color: #fff6df;
}

.wallet-modal-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(159, 122, 49, 0.38);
  background: rgba(3, 13, 8, 0.98);
}

.wallet-modal-head strong {
  color: #fff6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  text-transform: uppercase;
}

.wallet-modal-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.claim-modal-copy,
.claim-url-label {
  display: block;
  margin: 12px 0 8px;
  color: #c9c0a3;
  font-size: 13px;
  line-height: 1.35;
}

.claim-post-text,
.claim-url-input {
  width: 100%;
  border: 1px solid rgba(159, 122, 49, 0.72);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.86);
  color: #fff6df;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(78, 224, 122, 0.08);
}

.claim-post-text {
  min-height: 112px;
  resize: vertical;
  padding: 10px;
}

.claim-url-input {
  min-height: 42px;
  padding: 0 10px;
}

.claim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.claim-modal-card .menu-action.primary {
  width: 100%;
  margin-top: 12px;
}

.pet-modal-card {
  width: min(680px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.pet-modal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.pet-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(216, 169, 73, 0.55);
  border-radius: 6px;
  background: rgba(8, 12, 9, 0.84);
}

.pet-card.active {
  border-color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.26);
}

.pet-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 169, 73, 0.45);
  background: rgba(0, 0, 0, 0.28);
  position: relative;
  image-rendering: pixelated;
}

.pet-avatar i,
.pet-avatar::before,
.pet-avatar::after {
  content: "";
  position: absolute;
  background: var(--pet-accent, #f8df94);
}

.pet-avatar i {
  left: 10px;
  top: 13px;
  width: 18px;
  height: 15px;
  background: var(--pet-color, #67d88f);
}

.pet-avatar::before {
  left: 7px;
  top: 9px;
  width: 8px;
  height: 8px;
}

.pet-avatar::after {
  right: 7px;
  top: 9px;
  width: 8px;
  height: 8px;
}

.pet-wolf .pet-avatar i {
  left: 9px;
  top: 17px;
  width: 21px;
  height: 10px;
}

.pet-wolf .pet-avatar::before,
.pet-wolf .pet-avatar::after {
  top: 10px;
  width: 7px;
  height: 9px;
}

.pet-dragon .pet-avatar i {
  left: 13px;
  top: 12px;
  width: 13px;
  height: 17px;
}

.pet-dragon .pet-avatar::before {
  left: 4px;
  top: 13px;
  width: 11px;
  height: 9px;
}

.pet-dragon .pet-avatar::after {
  right: 4px;
  top: 13px;
  width: 11px;
  height: 9px;
}

.pet-sprite .pet-avatar {
  box-shadow: inset 0 0 0 1px rgba(103, 216, 143, 0.35), 0 0 12px rgba(103, 216, 143, 0.22);
}

.pet-sprite .pet-avatar i {
  left: 13px;
  top: 10px;
  width: 12px;
  height: 18px;
}

.pet-sprite .pet-avatar::before {
  left: 8px;
  top: 16px;
  width: 8px;
  height: 8px;
}

.pet-sprite .pet-avatar::after {
  right: 8px;
  top: 16px;
  width: 8px;
  height: 8px;
}

.pet-raven .pet-avatar i {
  left: 15px;
  top: 10px;
  width: 9px;
  height: 18px;
}

.pet-raven .pet-avatar::before {
  left: 4px;
  top: 16px;
  width: 13px;
  height: 5px;
}

.pet-raven .pet-avatar::after {
  right: 4px;
  top: 16px;
  width: 13px;
  height: 5px;
}

.pet-turtle .pet-avatar i {
  left: 9px;
  top: 14px;
  width: 20px;
  height: 15px;
}

.pet-turtle .pet-avatar::before {
  left: 15px;
  top: 8px;
  width: 9px;
  height: 7px;
}

.pet-turtle .pet-avatar::after {
  right: 5px;
  top: 19px;
  width: 5px;
  height: 5px;
}

.pet-cat .pet-avatar i {
  left: 11px;
  top: 14px;
  width: 16px;
  height: 14px;
}

.pet-cat .pet-avatar::before {
  left: 9px;
  top: 8px;
  width: 7px;
  height: 8px;
}

.pet-cat .pet-avatar::after {
  right: 5px;
  top: 19px;
  width: 9px;
  height: 4px;
}

.pet-card h3 {
  margin: 0;
  color: #f8df94;
  font-size: 15px;
}

.pet-card p {
  margin: 4px 0 8px;
  color: #c9c0a3;
  font-size: 12px;
  line-height: 1.25;
}

.pet-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pet-card-footer span {
  color: #6ee7b7;
  font-size: 11px;
  text-transform: uppercase;
}

.pet-card button {
  padding: 7px 10px;
  min-height: 30px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .wallet-modal,
  .claim-modal,
  .build-modal {
    align-items: stretch;
    padding: calc(var(--safe-top) + 8px) 8px calc(var(--safe-bottom) + 8px);
  }

  .wallet-modal-card,
  .claim-modal-card,
  .build-modal-card {
    width: 100%;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 16px);
    padding: 12px;
  }

  .pet-modal-card {
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 16px);
  }

  .pet-modal-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pet-card {
    grid-template-columns: 38px 1fr;
    padding: 8px;
  }

  .pet-card p {
    margin-bottom: 6px;
  }

  .pet-card-footer {
    align-items: stretch;
  }

  .pet-card-footer button {
    min-width: 86px;
  }
}

.build-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.build-style-option {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 118px;
  padding: 10px 8px;
  border: 1px solid rgba(159, 122, 49, 0.7);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.72);
  cursor: pointer;
}

.build-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.build-style-option:has(input:checked) {
  border-color: #4ee07a;
  box-shadow: inset 0 0 0 1px rgba(78, 224, 122, 0.24), 0 0 14px rgba(78, 224, 122, 0.15);
}

.build-style-option strong {
  color: #d7b157;
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.build-preview {
  position: relative;
  width: 82px;
  height: 58px;
  image-rendering: pixelated;
}

.build-preview::before,
.build-preview::after,
.build-preview i {
  content: "";
  position: absolute;
  display: block;
}

.build-preview::before {
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 28px;
  background: #a87645;
  border: 3px solid #392515;
  box-shadow: inset 0 -7px 0 rgba(0,0,0,0.18);
}

.build-preview::after {
  left: 5px;
  right: 5px;
  bottom: 33px;
  height: 18px;
  background: #d49a44;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-bottom: 3px solid #392515;
}

.build-preview i {
  left: 36px;
  bottom: 8px;
  width: 11px;
  height: 18px;
  background: #031006;
  border: 2px solid #392515;
}

.build-preview-tower::before {
  left: 24px;
  right: 24px;
  height: 42px;
  background: #7b846e;
}

.build-preview-tower::after {
  left: 20px;
  right: 20px;
  bottom: 45px;
  height: 10px;
  background: #6d55a8;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.build-preview-hall::before {
  left: 4px;
  right: 4px;
  height: 30px;
  background: #8f6236;
}

.build-preview-hall::after {
  left: 0;
  right: 0;
  background: #b84d37;
}

.build-preview-shop::before {
  background: #b88a54;
}

.build-preview-shop::after {
  height: 14px;
  background: repeating-linear-gradient(90deg, #ba3040 0 12px, #f1d47a 12px 24px);
  clip-path: none;
  border: 3px solid #392515;
}

.build-preview-townhouse::before {
  left: 4px;
  right: 4px;
  height: 34px;
  background: #9f7045;
}

.build-preview-townhouse::after {
  background: #4f89a8;
}

.build-preview-manor::before {
  left: 0;
  right: 0;
  height: 34px;
  background: #a87645;
}

.build-preview-manor::after {
  left: -2px;
  right: -2px;
  background: #7c65b6;
}

.build-preview-bakery::before {
  background: #b88a54;
}

.build-preview-bakery::after {
  height: 14px;
  background: repeating-linear-gradient(90deg, #fff0b8 0 12px, #d65f45 12px 24px);
  clip-path: none;
  border: 3px solid #392515;
}

.build-preview-tavern::before {
  left: 2px;
  right: 2px;
  background: #8c5d36;
}

.build-preview-tavern::after {
  background: #9b4a3e;
}

.build-preview-workshop::before {
  background: #73634d;
}

.build-preview-workshop::after {
  background: #b86938;
}

.build-preview-greenhouse::before {
  background: rgba(126, 226, 190, 0.48);
  border-color: #6ee7b7;
}

.build-preview-greenhouse::after {
  background: rgba(126, 226, 190, 0.3);
  border-bottom-color: #6ee7b7;
}

.build-utility,
.build-cost-summary {
  margin: 0 0 12px;
  border: 1px solid rgba(159, 122, 49, 0.55);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.58);
  color: #f8f3d2;
  padding: 9px 10px;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.build-cost-summary {
  margin: 12px 0 0;
  color: #6ee7b7;
}

.build-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.build-form-grid label {
  display: grid;
  gap: 6px;
  color: #d7b157;
  font: 11px/1.1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.build-form-grid input,
.build-form-grid select,
.build-form-grid textarea {
  min-height: 42px;
  border: 1px solid rgba(159, 122, 49, 0.78);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.88);
  color: #fff6df;
  padding: 8px 10px;
  font: 13px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(78, 224, 122, 0.08);
}

.build-form-grid input[type="color"] {
  padding: 4px;
}

.build-form-grid textarea {
  min-height: 76px;
  resize: vertical;
}

.build-wide {
  grid-column: 1 / -1;
}

.build-landscape-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.build-landscape-tools button {
  min-height: 38px;
  border: 1px solid rgba(159, 122, 49, 0.78);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.88);
  color: #fff6df;
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.build-landscape-tools button.active {
  border-color: #6ee7b7;
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.28);
}

.build-landscape-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(159, 122, 49, 0.55);
  border-radius: 6px;
  background: rgba(1, 7, 4, 0.58);
}

.build-landscape-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(159, 122, 49, 0.45);
  border-radius: 4px;
  background: rgba(42, 96, 54, 0.35);
  color: #f8f3d2;
  display: grid;
  place-items: center;
  font: 16px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  cursor: pointer;
  touch-action: manipulation;
}

.build-landscape-cell[data-item="lake"] { background: rgba(31, 116, 150, 0.75); color: #d9f6ff; }
.build-landscape-cell[data-item="tree"] { background: rgba(29, 105, 54, 0.75); color: #9bf0a8; }
.build-landscape-cell[data-item="fence"] { background: rgba(117, 78, 43, 0.75); color: #f0c16b; }
.build-landscape-cell[data-item="flower"] { background: rgba(105, 55, 112, 0.75); color: #ffd6f8; }

.build-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .build-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-form-grid,
  .build-actions {
    grid-template-columns: 1fr;
  }

  .build-landscape-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .build-landscape-tools button {
    min-height: 42px;
    font-size: 10px;
  }

  .build-landscape-board {
    gap: 3px;
    padding: 6px;
  }

  .build-landscape-cell {
    min-height: 34px;
  }
}

.wallet-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border-color: rgba(159, 122, 49, 0.72);
  border-radius: 8px;
  background: rgba(1, 7, 4, 0.84);
  text-align: left;
}

.wallet-option:hover {
  border-color: #4ee07a;
}

.wallet-option span,
.wallet-option strong,
.wallet-option small,
.wallet-option em {
  display: block;
}

.wallet-option strong {
  color: #fff6df;
  font-size: 15px;
  line-height: 1.2;
}

.wallet-option small {
  margin-top: 4px;
  color: #c9c0a3;
  font-size: 12px;
  text-transform: none;
}

.wallet-option em {
  color: #4ee07a;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
}

.wallet-option.missing em {
  color: #d9b45d;
}

body.onboarding .chat-panel {
  display: none;
}

.chat-head,
.chat-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

.chat-head {
  border-bottom: 1px solid rgba(216, 169, 73, 0.2);
  color: #f8df94;
  font-size: 12px;
}

.chat-head span {
  color: #9ee6a8;
  text-align: right;
}

.chat-minimize {
  min-height: 28px;
  width: 30px;
  padding: 0;
  border-color: rgba(248, 223, 148, 0.42);
  font-size: 13px;
  line-height: 1;
}

body.chat-minimized .chat-panel {
  width: 188px;
}

body.chat-minimized .chat-messages,
body.chat-minimized .chat-form {
  display: none;
}

body.chat-minimized .chat-head {
  grid-template-columns: 1fr auto;
  padding: 7px 8px;
}

body.chat-minimized .chat-head span {
  display: none;
}

@media (max-width: 900px) {
  .chat-panel {
    right: 18px;
    bottom: 224px;
  }
}

.chat-messages {
  display: grid;
  align-content: end;
  gap: 4px;
  height: 92px;
  overflow: hidden;
  padding: 8px;
  color: #e7dcc8;
  font: 12px "Silkscreen", "Tiny5", "Pixelify Sans", "Press Start 2P", "VT323", monospace;
}

.chat-messages p {
  margin: 0;
  overflow-wrap: anywhere;
}

.chat-messages b {
  color: #8df5a5;
}

.chat-form {
  grid-template-columns: 92px 1fr 72px;
  border-top: 1px solid rgba(216, 169, 73, 0.2);
}

.chat-form input,
.chat-form select,
.chat-form button {
  min-height: 34px;
  font-size: 12px;
}

.touch-controls {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 9;
  display: none;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  touch-action: none;
}

.touch-move-pad {
  position: relative;
  width: min(42vw, 210px);
  height: min(42vw, 210px);
  max-width: 210px;
  max-height: 210px;
  min-width: 138px;
  min-height: 138px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.touch-move-ring,
.touch-move-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.touch-move-ring {
  width: 94px;
  height: 94px;
  border: 2px solid rgba(248, 223, 148, 0.46);
  background: radial-gradient(circle, rgba(8, 14, 10, 0.28), rgba(8, 14, 10, 0.08) 58%, transparent 60%);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35), inset 0 0 24px rgba(78,224,122,0.08);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.touch-move-thumb {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(78,224,122,0.75);
  background: rgba(10, 42, 24, 0.72);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45), 0 0 18px rgba(78,224,122,0.18);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.touch-move-pad.active .touch-move-ring,
.touch-move-pad.active .touch-move-thumb {
  opacity: 1;
}

.touch-controls button {
  min-width: 56px;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(8, 14, 10, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 28px rgba(0,0,0,0.32);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.touch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 8px;
  width: min(190px, 44vw);
}

.touch-actions .touch-primary {
  grid-column: 1 / -1;
  border-color: #77e28b;
  background: linear-gradient(180deg, rgba(40, 127, 61, 0.9), rgba(18, 76, 39, 0.9));
}

.land-purchase-panel {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 28;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #9f7a31;
  border-radius: 8px;
  background: rgba(3, 13, 8, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.08), 0 0 24px rgba(0, 0, 0, 0.45);
  color: #fff6df;
  transform: translateX(-50%);
}

.land-purchase-panel strong {
  color: #4ee07a;
  font-family: "Silkscreen", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.land-purchase-panel span {
  color: #c9c0a3;
  font-size: 13px;
}

.land-purchase-panel div {
  display: flex;
  gap: 8px;
}

.land-purchase-panel button {
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid #9f7a31;
  border-radius: 7px;
  background: rgba(10, 14, 10, 0.92);
  color: #fff6df;
  font-family: "Silkscreen", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.land-purchase-panel > div:last-child button:first-child {
  border-color: #4ee07a;
  background: rgba(13, 125, 88, 0.82);
}

.landscape-panel {
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  width: min(860px, calc(100vw - 32px));
}

.landscape-tool-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 6px;
}

.landscape-tool-row button.active {
  border-color: #6ee7b7;
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.25);
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 12;
  width: min(390px, calc(100vw - 24px));
  height: 100vh;
  min-width: 0;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--edge);
  border-radius: 0;
  background: rgba(20, 25, 22, 0.96);
  padding: 16px;
  transform: translateX(100%);
  transition: transform 180ms ease;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45);
}

body.menu-open .panel {
  transform: translateX(0);
}

.menu-shade {
  position: fixed;
  inset: 0;
  z-index: 11;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.menu-open .menu-shade {
  opacity: 1;
  pointer-events: auto;
}

.panel header,
.wallet,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.character-menu {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: rgba(10, 16, 12, 0.72);
}

.character-menu strong {
  display: block;
  margin-top: 3px;
  color: #fff6df;
  font-size: 17px;
}

.rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rename-form input,
.rename-form button {
  min-width: 0;
  min-height: 40px;
}

.rename-form button {
  padding-inline: 12px;
}

.kicker,
.label {
  margin: 0;
  color: var(--mint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #f8df94;
}

.menu-section {
  margin-top: 12px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: rgba(10, 16, 12, 0.72);
  overflow: hidden;
}

.menu-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #f8df94;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  list-style: none;
}

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

.menu-section summary::after {
  content: "+";
  color: var(--mint);
  font-size: 16px;
}

.menu-section[open] summary::after {
  content: "-";
}

.menu-section > :not(summary) {
  margin: 0;
  padding: 0 10px 10px;
}

.icon-btn {
  width: 38px;
  padding: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.wallet {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel-2);
}

.wallet strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stats-grid > div,
.inventory span,
.quest-log li {
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: #171c19;
}

.stats-grid > div {
  padding: 10px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stats-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.daily-pool-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(99, 232, 169, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 43, 32, 0.94), rgba(5, 13, 12, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.08), 0 0 22px rgba(99, 232, 169, 0.16);
}

.daily-pool-head,
.daily-pool-weight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-pool-head strong {
  display: block;
  color: #fff6df;
  font-size: 18px;
}

.daily-pool-head em {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(216, 169, 73, 0.64);
  border-radius: 6px;
  color: #f8df94;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.daily-pool-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.daily-pool-stats div,
.daily-task-card,
.daily-pool-weight {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 246, 223, 0.14);
  border-radius: 7px;
  background: rgba(1, 7, 4, 0.58);
}

.daily-pool-stats span,
.daily-task-card span,
.daily-pool-weight span,
.daily-pool-period {
  color: #bfe8c6;
  font-size: 11px;
  text-transform: uppercase;
}

.daily-pool-stats strong,
.daily-task-card strong,
.daily-pool-weight strong {
  display: block;
  color: #fff6df;
  font-size: 15px;
  line-height: 1.2;
}

.daily-pool-period {
  margin: 0;
  color: #63e8a9;
}

.daily-task-track {
  height: 8px;
  margin: 8px 0 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 223, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.daily-task-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #63e8a9, #f8df94);
}

.daily-task-card small {
  color: #f8df94;
  font-size: 12px;
}

.actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.actions button {
  min-width: 0;
}

.quest-log {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quest-log li {
  padding: 10px;
  color: #e9e4d5;
  font-size: 13px;
  line-height: 1.35;
}

.quest-log li.done {
  color: var(--muted);
  text-decoration: line-through;
}

.inventory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inventory span,
.mmo-status span {
  padding: 7px 9px;
  font-size: 13px;
}

.inventory span.equipped {
  border-color: var(--gold);
  background: #252514;
  color: #fff4c2;
}

.inventory span {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 42px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.inventory span em {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-style: normal;
}

.inventory span em strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.1;
}

.inventory span em small {
  color: #6ee7b7;
  font-family: "Tiny5", "Pixelify Sans", monospace;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.inventory span b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(216, 169, 73, 0.32);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #f8df94;
  overflow: hidden;
}

.inventory span b img {
  display: block;
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.inventory span.resource {
  border-color: rgba(110, 231, 183, 0.42);
  background: #102018;
}

.mmo-status {
  display: grid;
  gap: 8px;
}

.mmo-status span {
  display: block;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: #171c19;
  line-height: 1.3;
}

.controls p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .site-grid {
    grid-template-columns: minmax(320px, 1fr);
  }

  .world-showcase {
    grid-column: 1 / -1;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .entry-column {
    grid-column: 1 / -1;
    grid-template-columns: minmax(320px, 430px) minmax(280px, 1fr);
  }

  .site-cards,
  .lore-board {
    width: 100%;
  }

  .site-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }
}

@media (max-width: 1500px) {
  .site-cards {
    width: 100%;
  }

  .site-cards article {
    padding-left: 72px;
  }

  .feature-icon {
    left: 16px;
  }

  .site-cards h2 {
    font-size: 14px;
  }

  .site-cards p {
    font-size: 13px;
    line-height: 1.36;
  }
}

@media (max-width: 700px) {
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .panel {
    width: 100vw;
  }

  .site-overlay {
    padding: 14px;
    gap: 12px;
  }

  .site-nav,
  .site-grid {
    display: block;
  }

  .site-grid {
    min-height: 0;
    margin-top: 14px;
    padding-bottom: 0;
  }

  .site-nav div {
    margin-top: 12px;
    gap: 8px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy {
    min-height: 360px;
    padding: 18px 16px;
  }

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

  .online-board,
  .economy-board {
    grid-template-columns: 1fr;
  }

  .online-board strong,
  .economy-board strong {
    font-size: 18px;
  }

  .hero-copy .multiplayer-summary {
    font-size: 14px;
  }

  .entry-column {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .world-showcase {
    min-height: 360px;
    margin-top: 18px;
  }

  .character-card,
  .lore-board {
    grid-template-columns: 1fr;
  }

  .entry-column {
    grid-template-columns: 1fr;
  }

  .site-cards {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-top: 18px;
    width: 100%;
  }

  .site-cards article {
    min-height: 132px;
  }
}

@media (max-width: 460px) {
  .site-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px), (pointer: coarse) {
  body:not(.onboarding) .quickbar {
    top: 10px;
    right: 10px;
    gap: 5px;
    padding: 5px;
  }

  body:not(.onboarding) .music-volume {
    width: 64px;
  }

  body:not(.onboarding) .touch-controls {
    display: flex;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(var(--safe-bottom) + 8px);
    gap: 8px;
    align-items: flex-end;
  }

  body:not(.onboarding) .toast {
    bottom: 162px;
  }

  .land-purchase-panel {
    bottom: calc(var(--safe-bottom) + 164px);
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    width: min(420px, calc(100vw - 16px));
    padding: 10px;
  }

  .land-purchase-panel div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .land-purchase-panel button {
    min-width: 0;
  }

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

  body:not(.onboarding) .chat-panel {
    display: none;
  }

  .menu-section.controls {
    display: none;
  }
}

@media (max-width: 520px) {
  .chat-form {
    grid-template-columns: 78px 1fr;
  }

  .chat-form button {
    grid-column: 1 / -1;
  }

  .touch-controls {
    inset: auto 8px calc(var(--safe-bottom) + 8px) 8px;
    gap: 8px;
  }

  .touch-move-pad {
    flex: 1 1 auto;
    min-width: 132px;
    min-height: 132px;
    width: auto;
    height: min(36vw, 150px);
  }

  .touch-controls button {
    min-width: 104px;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 11px;
  }

  .touch-actions {
    grid-template-columns: 1fr;
    width: 112px;
    gap: 6px;
  }

  .touch-actions .touch-primary {
    grid-column: auto;
    min-height: 46px;
  }

  .touch-actions [data-action="zoomIn"],
  .touch-actions [data-action="zoomOut"] {
    display: none;
  }
}

@media (min-width: 1051px) {
  .site-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* RPG overlay redesign: keeps the canvas/map untouched and only restyles overlay UI. */
body.onboarding #game {
  filter: none;
}

.site-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: block;
  min-height: 980px;
  padding: 0;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(0, 4, 3, 0.88) 0%, rgba(0, 5, 3, 0.5) 18%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 5, 3, 0.5) 78%, rgba(0, 4, 3, 0.9) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0 42%, rgba(0, 0, 0, 0.34) 100%);
  color: #fff6df;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  min-height: 92px;
  padding: 16px 32px 12px;
  border-bottom: 1px solid rgba(159, 122, 49, 0.22);
  background: linear-gradient(180deg, rgba(2, 9, 6, 0.78), rgba(2, 9, 6, 0.24));
  backdrop-filter: blur(2px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup img {
  width: 74px;
  max-height: 74px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 12px rgba(78, 224, 122, 0.22));
}

.brand-lockup span {
  display: block;
  color: #fff6df;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 #160d04, 0 0 18px rgba(78, 224, 122, 0.24);
}

.site-nav > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button,
.hero-actions button,
.weapon-choice-row button,
#saveProfileBtn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: #fff6df;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 2px 0 #0a0502;
}

.site-nav a.active,
.site-nav a:hover {
  color: #4ee07a;
}

.site-nav a.active::after {
  bottom: -10px;
  background: #4ee07a;
}

.site-nav button {
  width: auto;
  min-width: 150px;
  min-height: 40px;
  border: 1px solid #9f7a31;
  border-radius: 6px;
  background: rgba(3, 13, 8, 0.82);
  color: #fff6df;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.05), 0 0 16px rgba(0, 0, 0, 0.35);
}

.site-grid {
  display: contents;
}

.hero-copy {
  position: absolute;
  left: 48px;
  top: 130px;
  z-index: 4;
  width: 520px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kicker,
.label {
  color: #4ee07a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 12px 0 20px;
  color: #fff6df;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 #140b03, 0 0 28px rgba(255, 246, 223, 0.12);
}

.hero-copy p:not(.kicker) {
  max-width: 510px;
  color: #fff6df;
  font-size: 18px;
  line-height: 1.34;
  text-shadow: 0 2px 10px #000;
}

.online-board,
.economy-board {
  display: grid;
  gap: 10px;
  max-width: none;
}

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

.economy-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.online-board div,
.economy-board div {
  min-height: 70px;
  border: 1px solid rgba(159, 122, 49, 0.86);
  border-radius: 7px;
  background: rgba(3, 13, 8, 0.82);
  padding: 11px 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.05), 0 0 18px rgba(0, 0, 0, 0.34);
}

.online-board span,
.economy-board span {
  color: #c9c0a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 900;
}

.online-board strong,
.economy-board strong {
  color: #4ee07a;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(78, 224, 122, 0.28);
}

.economy-board strong {
  color: #d7b157;
  font-size: 19px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions button,
#saveProfileBtn {
  min-height: 54px;
  border-radius: 7px;
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,0.12), inset 0 -3px rgba(0,0,0,0.38), 0 0 18px rgba(0, 0, 0, 0.34);
}

.primary-cta {
  border-color: #4ee07a;
  background: linear-gradient(180deg, #1f8b47, #0e5b2d);
  color: #fff6df;
}

.ghost-cta,
#saveProfileBtn {
  border-color: #9f7a31;
  background: linear-gradient(180deg, rgba(30, 24, 12, 0.94), rgba(7, 9, 6, 0.96));
  color: #fff6df;
}

.entry-column {
  position: absolute;
  right: 32px;
  top: 115px;
  z-index: 5;
  display: grid;
  gap: 14px;
  width: 380px;
}

.entry-panel,
.news-panel,
.site-cards article,
.lore-board article {
  border: 1px solid #9f7a31;
  border-radius: 12px;
  background: rgba(3, 13, 8, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.06), 0 0 0 2px rgba(0,0,0,0.42), 0 20px 55px rgba(0, 0, 0, 0.42), 0 0 18px rgba(78, 224, 122, 0.08);
}

.entry-panel::before,
.news-panel::before,
.site-cards article::before,
.lore-board article::before {
  inset: 6px;
  border-color: rgba(159, 122, 49, 0.26);
  border-radius: 8px;
}

.entry-panel {
  padding: 18px;
}

.profile-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(159, 122, 49, 0.38);
}

.profile-head strong {
  color: #4ee07a;
  font-size: 17px;
}

.profile-head > span {
  color: #8eeaa8;
  font-size: 13px;
}

.profile-meters {
  gap: 7px;
  margin: 13px 0;
}

.profile-meters span,
.loadout-grid span {
  border-color: rgba(159, 122, 49, 0.55);
  background: rgba(1, 7, 4, 0.72);
  color: #fff6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.character-card {
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border-color: rgba(159, 122, 49, 0.75);
  border-radius: 10px;
  background: rgba(2, 9, 6, 0.7);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(78, 224, 122, 0.08);
}

.profile-hero-canvas {
  width: 112px;
  height: 154px;
  border-color: rgba(78, 224, 122, 0.52);
  border-radius: 7px;
}

.character-card .label {
  color: #4ee07a;
  text-align: left;
}

.character-card p,
.news-panel p,
.site-cards p,
.lore-board p {
  color: #c9c0a3;
}

.profile-form {
  gap: 10px;
  margin-top: 13px;
}

.profile-form label {
  color: #d9c27e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  border-color: rgba(159, 122, 49, 0.7);
  border-radius: 7px;
  background: rgba(1, 7, 4, 0.84);
  color: #fff6df;
}

input[type="color"] {
  padding: 4px;
}

.weapon-choice-row button {
  min-height: 40px;
  border-color: rgba(159, 122, 49, 0.72);
  border-radius: 7px;
  background: rgba(1, 7, 4, 0.84);
  color: #fff6df;
  font-weight: 900;
}

.weapon-choice-row button.active {
  border-color: #4ee07a;
  background: linear-gradient(180deg, #168642, #0b5429);
}

.news-panel {
  padding: 16px;
}

.news-panel > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-panel article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-top: 12px;
}

.news-panel article span {
  width: 70px;
  height: 56px;
  border: 1px solid rgba(159, 122, 49, 0.62);
  border-radius: 6px;
  background: radial-gradient(circle at 42% 35%, rgba(78,224,122,0.45), transparent 8%), linear-gradient(135deg, rgba(19,63,31,0.82), rgba(16,12,10,0.88));
}

.news-panel article:nth-of-type(2) span {
  background: radial-gradient(circle at 60% 38%, rgba(216,169,73,0.46), transparent 9%), linear-gradient(135deg, rgba(63,42,24,0.82), rgba(16,12,10,0.88));
}

.news-panel strong {
  display: block;
  color: #fff6df;
  font-size: 18px;
  line-height: 1.1;
}

.site-cards {
  position: absolute;
  left: 32px;
  right: 430px;
  bottom: 210px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
}

.site-cards article {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 14px;
  overflow: hidden;
}

.site-cards h2 {
  grid-column: 2;
  color: #d9b45d;
  font-size: 14px;
  margin-bottom: 5px;
}

.site-cards p {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.28;
}

.feature-icon {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100px;
  height: 100px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  box-shadow: 0 0 18px rgba(78, 224, 122, 0.16);
}

.site-cards .feature-icon::before,
.site-cards .feature-icon::after {
  display: none;
}

.combat-icon {
  background-image: url("assets/site-icons/combat.png");
}

.rewards-icon {
  background-image: url("assets/site-icons/rewards.png");
}

.world-icon {
  background-image: url("assets/site-icons/world.png");
}

.lore-icon {
  background-image: url("assets/site-icons/lore.png");
}

.market-icon {
  background-image: url("assets/site-icons/marketplace.png");
}

.multiplayer-icon {
  background-image: url("assets/site-icons/multiplayer.png");
}

.card-link {
  grid-column: 2;
  margin-top: 5px;
  font-size: 10px;
}

.lore-board {
  position: absolute;
  left: 32px;
  right: 430px;
  bottom: 32px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: auto;
}

.lore-board article {
  min-height: 138px;
  padding: 18px;
}

.lore-board h2 {
  color: #d9b45d;
  font-size: 19px;
  line-height: 1.1;
}

.lore-board p {
  font-size: 14px;
  line-height: 1.38;
}

@media (max-width: 1280px), (max-height: 900px) {
  .site-overlay {
    display: block;
    min-height: 0;
    padding: 112px 22px 32px;
  }

  .site-nav {
    position: fixed;
  }

  .hero-copy,
  .entry-column,
  .site-cards,
  .lore-board {
    position: static;
    width: auto;
    margin: 0;
  }

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

  .entry-column {
    max-width: 430px;
    margin-top: 24px;
  }

  .site-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
  }

  .lore-board {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .site-overlay {
    padding: 104px 14px 28px;
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 88px;
    padding: 10px 14px;
  }

  .brand-lockup img {
    width: 54px;
  }

  .brand-lockup span {
    font-size: 16px;
  }

  .site-nav > div {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p:not(.kicker) {
    font-size: 16px;
  }

  .online-board,
  .economy-board,
  .hero-actions,
  .site-cards,
  .lore-board {
    grid-template-columns: 1fr;
  }

  .site-cards article {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 110px;
    column-gap: 12px;
  }

  .feature-icon {
    width: 82px;
    height: 82px;
  }

  .entry-column {
    max-width: none;
  }

  .character-card {
    grid-template-columns: 1fr;
  }
}

/* Final landing layout override: keep the map fixed, make all onboarding panels flow and scroll. */
body.onboarding .site-overlay {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(340px, 380px);
  grid-template-rows: auto auto auto auto;
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
}

.site-overlay {
  min-height: 100%;
  padding: 0 32px 56px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.site-nav {
  position: sticky;
  top: 0;
  min-height: 86px;
  margin: 0 -32px;
  padding: 14px 32px 10px;
  grid-column: 1 / -1;
}

.site-grid {
  display: contents;
}

.hero-copy,
.entry-column,
.site-cards,
.lore-board {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  margin: 0;
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 620px;
  padding: 0;
}

.hero-copy h1 {
  font-size: clamp(48px, 5vw, 72px);
}

.entry-column {
  grid-column: 2;
  grid-row: 2 / span 3;
  justify-self: end;
  width: min(380px, 100%);
}

.site-cards {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
}

.site-cards article {
  min-height: 104px;
}

.site-cards article,
.lore-board article {
  scroll-margin-top: 112px;
}

.lore-board {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

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

  .entry-column,
  .hero-copy,
  .site-cards,
  .lore-board {
    grid-column: 1;
    grid-row: auto;
  }

  .entry-column,
  .hero-copy {
    justify-self: start;
    width: min(620px, 100%);
  }

  .site-cards,
  .lore-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-overlay {
    padding: 0 14px 36px;
  }

  .site-nav {
    margin: 0 -14px;
    padding: 10px 14px;
  }

  body.onboarding .quickbar {
    top: 94px;
    right: 14px;
  }

  .site-grid {
    margin-top: 18px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .online-board,
  .hero-actions,
  .site-cards,
  .lore-board {
    grid-template-columns: 1fr;
  }
}

/* Final cascade for the Loxley landing composition. */
html body .site-overlay {
  gap: 0;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 4, .96) 0%, rgba(3, 7, 4, .84) 40%, rgba(3, 7, 4, .22) 72%, rgba(3, 7, 4, .5) 100%),
    linear-gradient(180deg, transparent 0 760px, #050906 1020px),
    url("assets/brand/loxley-hero.png") top center / min(178vh, 1900px) auto no-repeat,
    #050906;
}

html body .site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  margin: 0;
  padding: 11px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(234, 210, 154, .14);
  background: linear-gradient(180deg, rgba(4, 9, 6, .97), rgba(4, 9, 6, .82));
  backdrop-filter: blur(18px) saturate(1.2);
}

html body .site-nav .brand-lockup,
html body .site-footer .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.2vw, 38px);
  font-variant: small-caps;
  letter-spacing: .08em;
  line-height: .78;
}

html body .site-nav .brand-lockup img,
html body .site-footer .brand-lockup img {
  width: 57px;
  height: 57px;
  max-height: none;
}

html body .site-grid {
  width: 100%;
  min-height: max(740px, calc(100vh - 82px));
  margin: 0;
  padding: clamp(70px, 10vh, 130px) clamp(22px, 5vw, 76px) 90px;
  grid-template-columns: minmax(440px, 1.2fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(38px, 6vw, 110px);
}

html body .hero-copy {
  align-self: center;
  max-width: 740px;
}

html body .hero-copy h1 {
  max-width: 760px;
  margin: 11px 0 18px;
  color: #f3ead5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.035em;
  text-shadow: 0 5px 34px #000;
}

html body .hero-copy > p:not(.kicker):not(.wallet-optional) {
  max-width: 665px;
  color: #d2c8b1;
  font: 400 clamp(16px, 1.4vw, 20px)/1.75 Inter, ui-sans-serif, system-ui, sans-serif;
}

html body .hero-actions {
  display: flex;
  margin-top: 30px;
}

html body .online-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 650px;
}

html body .entry-panel {
  padding: 22px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 36%),
    rgba(7, 13, 9, .88);
}

html body .site-cards.playstyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  gap: 14px;
}

@media (max-width: 1100px) {
  html body .site-grid {
    grid-template-columns: 1fr minmax(320px, 390px);
    gap: 30px;
  }

  html body .hero-copy h1 {
    font-size: clamp(48px, 7vw, 76px);
  }

  html body .site-cards.playstyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html body .site-overlay {
    padding: 0;
    background:
      linear-gradient(180deg, rgba(3, 7, 4, .56), rgba(3, 7, 4, .9) 530px, #050906 840px),
      url("assets/brand/loxley-hero.png") 66% top / auto 610px no-repeat,
      #050906;
  }

  html body .site-nav {
    min-height: 68px;
    margin: 0;
    padding: 8px 14px;
  }

  html body .site-nav .brand-lockup {
    font-size: 23px;
  }

  html body .site-nav .brand-lockup img {
    width: 48px;
    height: 48px;
  }

  html body .site-grid {
    min-height: auto;
    margin: 0;
    padding: 90px 16px 52px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  html body .hero-copy h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

  html body .hero-actions,
  html body .online-board {
    grid-template-columns: repeat(3, 1fr);
  }

  html body .hero-actions {
    display: flex;
  }

  html body .site-cards.playstyle-grid {
    grid-template-columns: 1fr;
  }
}

/* Stable document flow for the full rebrand landing page. */
html body.onboarding .site-overlay {
  display: block;
  width: 100%;
  max-width: 100vw;
}

html body .site-grid {
  display: grid;
}

html body .site-grid > *,
html body .hero-copy,
html body .entry-column,
html body .entry-panel,
html body .character-card {
  min-width: 0;
}

@media (max-width: 760px) {
  html body .site-nav {
    display: flex;
    width: 100%;
    gap: 10px;
  }

  html body .site-nav > div {
    width: auto;
    margin: 0 0 0 auto;
  }

  html body .site-nav a:not(.brand-lockup) {
    display: none;
  }

  html body .site-nav button {
    min-width: 132px;
  }

  html body .site-grid {
    width: 100%;
    padding: 88px 14px 46px;
    grid-template-columns: minmax(0, 1fr);
  }

  html body .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html body .online-board {
    grid-template-columns: 1fr;
  }

  html body .entry-column {
    width: 100%;
    max-width: none;
  }

  html body .quickbar {
    top: 76px;
    right: 8px;
  }

  html body .quickbar .music-volume {
    display: none;
  }
}
