@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black-regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/ibm-plex-sans-regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Font Awesome Brands";
  src: url("/assets/fa-brands-subset.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

:root {
  color: #edf4f1;
  background: #000605;
  font-family: "IBM Plex Sans", sans-serif;
  font-synthesis: none;
  --background: #000605;
  --surface: #09100f;
  --border: #293b37;
  --green: #10b981;
  --green-pale: #8fd19e;
  --text: #edf4f1;
  --muted: #a9b8b4;
  --quiet: #76847f;
  --hostile: #c74540;
}

.account-delete-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px 20px;
  background:
    repeating-linear-gradient(to bottom, rgb(87 189 122 / 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 10%, rgb(18 201 130 / 0.08), transparent 34rem),
    var(--background);
}

.account-delete-page [hidden] {
  display: none !important;
}

.account-delete-shell {
  width: min(640px, 100%);
}

.account-delete-shell > .brand {
  margin-bottom: 22px;
}

.account-panel {
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  background: rgb(9 16 15 / 0.97);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.35);
}

.account-panel[hidden] {
  display: none;
}

.account-panel h1 {
  margin: 0 0 10px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-panel p,
.account-panel label {
  color: var(--muted);
  line-height: 1.55;
}

.destructive-button {
  min-height: 48px;
  border-radius: 4px;
  font: 500 0.95rem "IBM Plex Sans", sans-serif;
  cursor: pointer;
}

.account-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  background: #030908;
  color: var(--text);
  padding: 0 14px;
  font: 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.account-panel input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.destructive-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.account-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--green-pale);
}

.account-status--error {
  color: #ffaaa4;
}

.destructive-button {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--hostile);
  background: rgb(82 22 20 / 0.86);
  color: #ffd6d2;
}

.destructive-button:hover:not(:disabled) {
  background: rgb(112 29 25 / 0.94);
}

#confirm-apple-container {
  display: grid;
  justify-items: center;
  margin-top: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* The public homepage is a static rendering of the empty game world. The map
   remains decorative; all meaningful content stays in ordinary HTML. */
.landing-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.landing-page::before,
.landing-page::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

.landing-page::before {
  z-index: 2;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgb(87 189 122 / 0.045) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      to right,
      rgb(87 189 122 / 0.015) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: screen;
}

.landing-page::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(0 6 5 / 0.84) 0%, rgb(0 6 5 / 0.54) 48%, rgb(0 6 5 / 0.18) 82%),
    radial-gradient(ellipse at center, transparent 30%, rgb(0 0 0 / 0.82) 100%);
}

.world-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 50%, rgb(18 201 130 / 0.12), transparent 50%),
    #000605;
}

.world-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.66;
  filter: brightness(0.62) contrast(1.18) saturate(0.72) sepia(0.08);
}

.crt-sweep {
  position: fixed;
  top: -16vh;
  right: 0;
  left: 0;
  z-index: 2;
  height: 16vh;
  background: linear-gradient(to bottom, transparent, rgb(143 209 158 / 0.035), transparent);
  pointer-events: none;
  animation: crt-sweep 13s linear infinite;
}

@keyframes crt-sweep {
  to {
    transform: translateY(132vh);
  }
}

.landing-shell {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  border-bottom: 1px solid rgb(143 209 158 / 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.86rem;
  font-synthesis: weight;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-name {
  margin: 0;
  font: inherit;
}

.hero {
  display: flex;
  max-width: 760px;
  align-self: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 54px 0 64px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green-pale);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-transform: uppercase;
}

.hero-title > span {
  display: block;
}

.period {
  color: var(--green);
}

.hero-summary {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-synthesis: weight;
  line-height: 1.65;
}

.hero-summary strong {
  color: var(--text);
  font-weight: 700;
}

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

.cta-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.play-button {
  border: 1px solid rgb(18 201 130 / 0.76);
  background: rgb(7 37 27 / 0.88);
  color: #c7f5d7;
}

.play-button:hover {
  border-color: var(--green);
  background: rgb(12 59 43 / 0.94);
}

.discord-button {
  gap: 12px;
  border: 1px solid rgb(108 119 238 / 0.68);
  background: rgb(28 33 65 / 0.9);
  color: #d9dcff;
}

.discord-button:hover {
  border-color: rgb(129 139 249 / 0.88);
  background: rgb(38 44 82 / 0.96);
  color: #f1f2ff;
}

.discord-icon {
  font-family: "Font Awesome Brands", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.site-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgb(143 209 158 / 0.2);
  color: var(--quiet);
  font-size: 0.78rem;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Privacy, terms, and error pages deliberately trade atmosphere for reading
   comfort while retaining the same type and restrained green accents. */
.document-page {
  background:
    radial-gradient(circle at 70% 0%, rgb(18 201 130 / 0.07), transparent 36rem),
    var(--background);
}

.document-shell {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
}

.document-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.document-header nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-header nav a {
  text-decoration: none;
}

.document-main {
  padding: 76px 0 96px;
}

.document-main > header {
  padding-bottom: 42px;
}

.document-main h1,
.error-page h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.document-updated {
  margin: 18px 0 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
}

.document-intro {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.document-section {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.document-section h2 {
  margin: 0 0 14px;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.document-section p,
.document-section ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.document-section ul {
  padding-left: 1.2rem;
}

.document-section li + li {
  margin-top: 8px;
}

.document-section a {
  color: var(--green-pale);
}

.error-page {
  display: grid;
  width: min(620px, calc(100% - 40px));
  min-height: 100svh;
  align-content: center;
  justify-items: start;
  margin: 0 auto;
}

.error-page > p:not(.eyebrow) {
  margin: 22px 0 30px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .landing-shell,
  .document-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header,
  .document-header {
    min-height: 74px;
  }

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

  .brand {
    font-size: 0.8rem;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .hero-summary {
    margin-top: 26px;
    font-size: 0.96rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
  }

  .document-header nav a:not(:first-child) {
    display: none;
  }

  .document-main {
    padding: 58px 0 76px;
  }

  .world-backdrop img {
    width: 100vw;
    height: auto;
    object-fit: fill;
    opacity: 0.56;
  }

  .landing-page::after {
    background:
      linear-gradient(to bottom, rgb(0 6 5 / 0.4), rgb(0 6 5 / 0.76) 72%),
      radial-gradient(ellipse at center, transparent 20%, rgb(0 0 0 / 0.78) 100%);
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .hero-actions {
    width: 100%;
  }

  .cta-button {
    flex: 1 1 136px;
    padding-inline: 14px;
  }

  .discord-button {
    gap: 10px;
  }

  .site-footer nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .site-header {
    min-height: 70px;
  }

  .hero {
    padding: 34px 0 40px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 8vh, 4.8rem);
  }

  .hero-summary {
    margin-top: 24px;
  }

  .site-footer {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt-sweep {
    display: none;
  }

  .cta-button {
    transition: none;
  }
}
