@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/outfit-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/press-start-2p-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --ink: #15191b;
  --ink-soft: #23292c;
  --paper: #f1f0e9;
  --paper-deep: #e6e5dd;
  --white: #fff;
  --muted: #b8bec0;
  --line-dark: #3b4346;
  --line-light: #c4c7c3;
  --blue: #8fb8d0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--ink); }

.skip-link { position: absolute; z-index: 30; left: 1rem; top: -4rem; padding: .8rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.section-shell { padding-left: clamp(1.25rem, 5vw, 5.5rem); padding-right: clamp(1.25rem, 5vw, 5.5rem); }
.site-header { min-height: 5.5rem; padding: 0 clamp(1.25rem, 5vw, 5.5rem); display: flex; align-items: center; gap: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .9rem; text-decoration: none; font-family: "Press Start 2P", monospace; font-size: .84rem; white-space: nowrap; letter-spacing: -.06em; }
.brand img, .site-footer img { display: block; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.7rem); margin-left: auto; }
.main-nav a, .nav-discord { font-weight: 600; font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .nav-discord:hover, .text-link:hover, .inline-discord:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-discord { padding: .7rem 0 .7rem 1.75rem; border-left: 1px solid var(--line-dark); white-space: nowrap; }
.main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }

.vote-page { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.vote-heading { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 2px solid var(--paper); }
.vote-heading h1 { font-size: clamp(1.55rem, 3.8vw, 3.8rem); }
.vote-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.vote-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 13rem; padding: 3.75rem 1.5rem 1.5rem; background: var(--ink-soft); border: 1px solid var(--line-dark); }
.vote-point { position: absolute; top: 1rem; right: 1rem; color: var(--blue); font-family: "Press Start 2P", monospace; font-size: .85rem; }
.vote-card h2 { margin: 0; font-size: clamp(.8rem, 1.1vw, 1rem); line-height: 1.8; letter-spacing: -.04em; }
.vote-card .button { width: 100%; border-color: var(--blue); color: var(--blue); }
.vote-card .button:hover { background: var(--blue); color: var(--ink); }
@media (max-width: 980px) { .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vote-grid { grid-template-columns: minmax(0, 1fr); } .vote-card { min-height: 11rem; } }

.eyebrow { margin: 0 0 1.3rem; font-size: .79rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: "Press Start 2P", monospace; font-weight: 400; letter-spacing: -.085em; }
h1 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 6.5rem); line-height: 1.32; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 3.3rem); line-height: 1.48; }
h3, p { overflow-wrap: break-word; }
.hero { min-height: min(46rem, 88vh); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr); gap: clamp(3rem, 6vw, 7rem); align-items: end; padding-top: 6.5rem; padding-bottom: 6rem; }
.hero h1 span { color: var(--blue); }
.hero-lede { max-width: 38rem; margin: 2.3rem 0 0; font-size: clamp(1.14rem, 1.4vw, 1.35rem); line-height: 1.5; color: #d4d8d8; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.3rem; flex-wrap: wrap; }
.button { min-height: 3.15rem; padding: .75rem 1.15rem; border: 1px solid currentColor; border-radius: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.75rem; font-weight: 700; text-align: left; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-light:hover { background: var(--blue); border-color: var(--blue); }
.button-outline { color: var(--white); background: transparent; }
.button-outline:hover { color: var(--ink); background: var(--white); }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover:not(:disabled) { color: var(--ink); background: var(--paper); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero-side { padding-bottom: .2rem; }
.server-ticket { background: var(--ink-soft); border: 1px solid #5a656a; min-height: 11rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.2rem; }
.ticket-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .69rem; letter-spacing: .1em; font-weight: 700; }
.ticket-top { color: var(--blue); }
.server-ip { font-size: clamp(1.55rem, 2.7vw, 2.6rem); font-weight: 700; letter-spacing: -.05em; margin: 1.8rem 0; white-space: nowrap; }
.side-note { max-width: 26rem; margin: 1.3rem 0 0; color: var(--muted); line-height: 1.6; }

.kingdoms { padding-top: 5.6rem; padding-bottom: 5.6rem; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); gap: 3rem 6vw; }
.section-heading > p:last-child { max-width: 19rem; font-size: 1.1rem; line-height: 1.55; }
.kingdom-list { align-self: start; border-top: 2px solid var(--ink); }
.kingdom-row { min-height: 6.15rem; border-bottom: 1px solid #aab0ad; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 7.5rem; gap: 1rem; align-items: center; }
.kingdom-index { align-self: start; padding-top: 1.1rem; font-size: .77rem; font-weight: 700; }
.kingdom-row h3 { margin: 0; font-size: clamp(1.6rem, 2.7vw, 2.65rem); font-weight: 600; letter-spacing: -.05em; }
.kingdom-terrain { text-align: right; font-size: .88rem; font-weight: 600; color: #4d585b; }
.kingdom-footnote { grid-column: 2; font-size: .87rem; color: #4d585b; margin: -.8rem 0 0; }

.how { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.25fr); gap: 5vw; padding-top: 7rem; padding-bottom: 7rem; }
.how-intro > p:not(.eyebrow) { max-width: 22rem; margin: 1.6rem 0 1.8rem; color: #c9cece; font-size: 1.13rem; line-height: 1.6; }
.inline-discord { font-weight: 700; text-decoration: none; }
.how-steps { border-top: 2px solid var(--paper); }
.step { border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.2rem; padding: 1.85rem 0 2.15rem; }
.step > span { padding-top: .3rem; font-size: .75rem; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.step h3 { margin: 0 0 .55rem; font-size: 1.7rem; font-weight: 600; letter-spacing: -.04em; }
.step p { max-width: 31rem; margin: 0; color: var(--muted); line-height: 1.58; }

.join-band { min-height: 18rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; background: #283238; border-top: 1px solid #59646a; border-bottom: 1px solid #59646a; }
.join-band h2 { font-size: clamp(1.3rem, 2.25vw, 2.45rem); }
.join-band-action { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; min-width: 18rem; }
.join-band-action code { font-family: "Outfit", sans-serif; font-size: 1.35rem; font-weight: 700; white-space: nowrap; }

.store { background: var(--paper); color: var(--ink); padding-top: 6.2rem; padding-bottom: 5.5rem; }
.store-intro { margin-bottom: 2.5rem; }
.store-intro h2 { font-size: clamp(1.8rem, 3.3vw, 3.3rem); }
.store-list { border-top: 2px solid var(--ink); }
.product { display: grid; grid-template-columns: minmax(8rem, .33fr) minmax(17rem, 1fr) minmax(13rem, .42fr); gap: 1.7rem; padding: 2rem 0; border-bottom: 1px solid var(--line-light); }
.product-index { padding-top: .32rem; font-size: .76rem; font-weight: 700; letter-spacing: .07em; }
.product-main h3 { margin: 0 0 .55rem; font-size: clamp(1.5rem, 2vw, 2.2rem); font-weight: 600; letter-spacing: -.05em; }
.product-main p { margin: 0; max-width: 37rem; line-height: 1.6; color: #485054; }
.loot-list { max-width: 39rem; margin: 0; padding-left: 1.2rem; color: #485054; line-height: 1.55; }
.loot-list li + li { margin-top: .25rem; }
.product-action { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
.store-note { margin: 1.2rem 0 0; font-weight: 600; }

.site-footer { min-height: 15rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; align-items: start; padding-top: 3.2rem; padding-bottom: 2rem; }
.site-footer > div { display: flex; align-items: center; gap: .8rem; font-family: "Press Start 2P", monospace; font-size: .7rem; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer nav { display: flex; justify-content: flex-end; gap: 1.5rem; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer small { grid-column: 1 / -1; align-self: end; color: var(--muted); }

.checkout-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); margin: auto; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.checkout-dialog::backdrop { background: rgba(8, 12, 14, .78); }
.dialog-close-row { display: flex; justify-content: flex-end; margin: 0; }
.dialog-close { min-width: 3rem; min-height: 3rem; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; }
.checkout-content { padding: .4rem 2rem 2.2rem; }
.checkout-content h2 { font-size: 1.35rem; line-height: 1.5; }
.checkout-content > p:not(.eyebrow) { line-height: 1.55; }
#checkout-form { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.4rem; }
#checkout-form label { font-weight: 700; }
#checkout-form input { min-height: 3.25rem; padding: .6rem .8rem; color: var(--ink); background: var(--white); border: 1px solid #7a8486; border-radius: 0; }
#checkout-form .button { margin-top: .4rem; }
#checkout-message { min-height: 1.5rem; margin-bottom: 0; font-weight: 600; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 3.4rem; min-height: auto; padding-top: 5rem; }
  .hero-copy, .hero-side { min-width: 0; }
  .hero-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .7fr); gap: 1.5rem; align-items: end; }
  .side-note { margin: 0; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: .7rem 1.2rem; padding-top: 1rem; padding-bottom: 1rem; }
  .brand { flex: 1; }
  .brand span { font-size: .73rem; }
  .nav-discord { border-left: 0; padding: .3rem 0; }
  .main-nav { flex-basis: 100%; order: 3; margin-left: 0; justify-content: space-between; border-top: 1px solid var(--line-dark); padding-top: .8rem; }
  .main-nav a { font-size: .87rem; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(2rem, 7.6vw, 4rem); }
  .hero-side { display: block; }
  .server-ticket { min-height: 12rem; }
  .side-note { margin-top: 1rem; }
  .kingdoms, .how { display: block; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-heading, .how-intro { margin-bottom: 2.5rem; }
  .kingdom-footnote { margin: 1.1rem 0 0; }
  .join-band { display: block; }
  .join-band-action { margin-top: 2rem; min-width: 0; align-items: flex-start; }
  .join-band-action .button { min-width: 14rem; }
  .store { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .store-intro { display: block; }
  .store-intro > p:last-child { max-width: 23rem; }
  .product { grid-template-columns: 1fr; gap: .8rem; }
  .product-action { align-items: flex-start; margin-top: .8rem; }
  .product-action .button { min-width: 14rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: clamp(1.65rem, 7.15vw, 2.6rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .server-ip { font-size: 1.6rem; }
  .kingdom-row { grid-template-columns: 2.3rem minmax(0, 1fr); gap: .5rem; min-height: 5.2rem; }
  .kingdom-row h3 { font-size: 1.58rem; }
  .kingdom-terrain { display: none; }
  .step { grid-template-columns: 1fr; gap: .45rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: 1; }
  .checkout-content { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } .button { transition: none; } }
