/*
 * Gielinor Companion. Colours and type are the desktop app's own
 * (assets/css/app.css in the Phoenix app): stone, gold, parchment.
 */
:root {
  --stone-900: #1b1711;
  --stone-800: #221d16;
  --stone-700: #2b251d;
  --stone-600: #3a3127;
  --rule: #4a3f32;
  --text: #ede3cf;
  --text-soft: #c9bda6;
  --text-muted: #9c8f78;
  --gold: #e3b341;
  --gold-deep: #c9962a;
  --gold-ink: #2b1d05;
  --rune: #6fa8dc;
  --success: #5fb35a;
  --error: #d0453a;
  --parchment: #e4d8bd;
  --parchment-edge: #cbb993;
  --ink: #3a2a18;
  --ink-soft: #6b5337;

  --serif: "Alegreya", ui-serif, Georgia, serif;
  --sans: "Alegreya Sans", ui-sans-serif, system-ui, sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;

  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgb(227 179 65 / 0.09), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgb(111 168 220 / 0.06), transparent 60%),
    var(--stone-800);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0;
}

a {
  color: var(--rune);
}

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

.wrap {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(34 29 22 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}

.nav-links a:not(.button) {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.nav-links a:not(.button):hover {
  color: var(--text);
}

@media (max-width: 40rem) {
  .nav-links a[href^="/#"] {
    display: none;
  }

  .brand span {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(180deg, #ecc15a, var(--gold));
  color: var(--gold-ink);
  font: 700 1.05rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 6px 18px rgb(227 179 65 / 0.18);
  transition:
    transform 150ms var(--ease),
    box-shadow 150ms var(--ease),
    background 150ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 10px 26px rgb(227 179 65 / 0.28);
}

.button:active {
  transform: translateY(0);
}

.button-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.95rem;
}

.button-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--text);
  box-shadow: none;
}

.button-ghost:hover {
  border-color: var(--text-muted);
  background: rgb(255 255 255 / 0.03);
  box-shadow: none;
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 56rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--pixel);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--rune);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gold {
  color: var(--gold);
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.25rem;
  color: var(--text-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The chat preview: the app's chat, mid-answer */

.chat {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(227 179 65 / 0.08),
    0 30px 60px rgb(0 0 0 / 0.45),
    0 0 80px rgb(227 179 65 / 0.08);
  transition: transform 400ms var(--ease);
}

.chat:hover {
  transform: translateY(-4px);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--stone-800);
}

.chat-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--stone-600);
}

.chat-bar p {
  margin: 0 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
}

.chat-player {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgb(227 179 65 / 0.7);
}

.chat-tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.chat-tools li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgb(34 29 22 / 0.7);
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 0.85rem;
}

.chat-tools svg {
  flex: none;
  color: var(--success);
}

.chat-answer p {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  color: var(--text-soft);
}

.chat-answer p:last-child {
  margin-bottom: 0;
}

.chat-answer strong {
  color: var(--text);
}

.chat-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chat-sources li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--stone-600);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.chat-sources li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--rune);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--stone-900);
  border-block: 1px solid var(--rule);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  max-width: 30rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgb(227 179 65 / 0.5);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgb(227 179 65 / 0.12);
  color: var(--gold);
  font-size: 1.25rem;
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--pixel);
}

.steps h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

.cta p {
  margin: 0.75rem 0 1.75rem;
  color: var(--text-soft);
}

/* Sign in, sign up, account */

.auth {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.auth-card {
  width: min(28rem, 100%);
  padding: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.35);
}

.auth-card-centered {
  text-align: center;
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
}

.auth-lede {
  margin: 0.6rem 0 1.5rem;
  color: var(--text-soft);
}

.auth-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgb(227 179 65 / 0.12);
  color: var(--gold);
  font-size: 1.6rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 1rem;
  color: var(--text-soft);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--stone-800);
  color: var(--text);
  font: 400 1.05rem var(--sans);
  transition: border-color 150ms var(--ease);
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-form input:focus {
  border-color: var(--gold);
}

.auth-form .button {
  margin-top: 0.25rem;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(208 69 58 / 0.5);
  border-radius: 10px;
  background: rgb(208 69 58 / 0.12);
  color: #f0b0a9;
  font-size: 1rem;
}

.auth-welcome {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(95 179 90 / 0.5);
  border-radius: 10px;
  background: rgb(95 179 90 / 0.12);
  color: #b6e2b3;
  font-size: 1rem;
}

.auth-switch,
.auth-hint {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.account-details {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.account-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.account-details dt {
  color: var(--text-muted);
}

.account-details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.auth-card form:last-child {
  margin-top: 1.5rem;
}

/* The device code. Monospace rather than the pixel font, which draws B and G
   near-identically, and both are in the code alphabet. */
.auth-form input.device-code {
  font: 600 1.6rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.auth-form input.device-code::placeholder {
  letter-spacing: 0.18em;
}

.device-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
}

.brand-quiet {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text-soft);
}

.disclaimer {
  margin: 0;
  max-width: 44rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}

.actions-center {
  justify-content: center;
}

/* Pricing */

.pricing-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 44rem;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
}

.pricing-hero .lede {
  margin-inline: auto;
}

.pricing-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
}

.plan-featured {
  border-color: rgb(227 179 65 / 0.6);
  background:
    radial-gradient(420px 220px at 100% 0%, rgb(227 179 65 / 0.12), transparent 70%),
    var(--stone-700);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(227 179 65 / 0.15);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.plan-badge {
  padding: 0.2rem 0.7rem;
  border: 1px solid rgb(111 168 220 / 0.5);
  border-radius: 999px;
  background: rgb(111 168 220 / 0.12);
  color: var(--rune);
  font-family: var(--pixel);
  font-size: 0.8rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.plan-amount {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.plan-cadence {
  color: var(--text-muted);
}

.plan-summary {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.plan-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.75rem;
  flex: 1;
  align-content: start;
}

.plan-features li {
  display: flex;
  gap: 0.6rem;
  font-size: 1.02rem;
}

.plan-features svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--gold);
}

/* FAQ */

.faq {
  max-width: 46rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.plan-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px dashed rgb(227 179 65 / 0.5);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 1rem;
  text-align: center;
}

.faq-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
  transition: border-color 150ms var(--ease);
}

.faq-item[open] {
  border-color: rgb(227 179 65 / 0.45);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus, drawn rather than typed. */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat;
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary::after {
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat;
}

.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--text-soft);
}

/* See it work */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.showcase .section-title {
  margin-bottom: 0.5rem;
}

.showcase-row.is-flipped .showcase-copy {
  order: 2;
}

@media (max-width: 56rem) {
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.is-flipped .showcase-copy {
    order: 0;
  }
}

.showcase-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

.showcase-copy > p {
  margin: 0.75rem 0 1.25rem;
  color: var(--text-soft);
  font-size: 1.15rem;
}

.showcase-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.showcase-copy li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-soft);
}

.showcase-copy li svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--gold);
}

.demo {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.35);
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-muted {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Gear: the in-game equipment tab and inventory */

.gear-grids {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.equipment,
.inventory {
  display: grid;
  gap: 0.3rem;
  padding: 0.6rem;
  border: 2px solid #1a1510;
  border-radius: 10px;
  background: #3a3127;
  box-shadow: inset 0 0 0 1px #5a4a36;
}

.equipment {
  grid-template-columns: repeat(3, 3.3rem);
  grid-template-rows: repeat(5, 3.3rem);
}

.inventory {
  grid-template-columns: repeat(4, 2.4rem);
  grid-auto-rows: 2.4rem;
}

.tile {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #2a241c;
  border-radius: 5px;
  background: #2b251d;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.45);
  transition: transform 150ms var(--ease);
}

.tile:hover {
  transform: scale(1.06);
  z-index: 1;
}

.tile img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  image-rendering: pixelated;
}

.equipment .tile.is-equipped {
  border-color: rgb(95 179 90 / 0.6);
}

/* In the inventory only what's missing is marked: twenty gold borders on
   twenty sharks drown out the one potion you still need. */
.equipment .tile.is-bank {
  border-color: rgb(227 179 65 / 0.55);
}

.tile.is-missing {
  border-color: rgb(208 69 58 / 0.7);
  background: rgb(208 69 58 / 0.14);
}

.tile.is-missing img {
  opacity: 0.55;
}

.tile-quantity {
  position: absolute;
  left: 3px;
  top: 1px;
  color: #ffff00;
  font-family: var(--pixel);
  font-size: 0.65rem;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
}

.gear-missing {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: #f0b0a9;
}

/* Plan: phases, steps and a question */

.plan-phase {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--pixel);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--rune);
}

.plan-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plan-step {
  display: flex;
  gap: 0.75rem;
}

.plan-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
}

.plan-step.is-done .plan-mark {
  border-color: var(--success);
  background: var(--success);
  color: #0c1f0b;
}

.plan-step.is-active .plan-mark {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 45%, transparent 50%);
}

.plan-step.is-blocked {
  opacity: 0.55;
}

.plan-step-body {
  flex: 1;
  min-width: 0;
}

.plan-step-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.plan-step.is-done .plan-step-title {
  color: var(--text-soft);
}

.plan-step-detail {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.xp-bar {
  height: 0.4rem;
  margin: 0.35rem 0;
  border-radius: 999px;
  background: var(--stone-600);
  overflow: hidden;
}

.xp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.plan-question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(111 168 220 / 0.45);
  border-radius: 10px;
  background: rgb(111 168 220 / 0.08);
}

.plan-question p {
  margin: 0;
}

.plan-question div {
  display: flex;
  gap: 0.4rem;
}

.chip {
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--stone-800);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Game updates: a cited passage carrying its change note */

.update-demo {
  display: grid;
  gap: 0.9rem;
}

.tool-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgb(34 29 22 / 0.7);
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 0.85rem;
}

.tool-line svg {
  flex: none;
  color: var(--success);
}

.passage {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--rune);
  border-radius: 0 10px 10px 0;
  background: var(--stone-800);
}

.passage-source {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--rune);
}

.passage-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.passage-change {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(227 154 65 / 0.5);
  border-radius: 8px;
  background: rgb(227 154 65 / 0.1);
  font-size: 0.95rem;
  color: #f1cf9f;
}

/* The body font, not the pixel one: in Pixelify Sans "19" reads as "18",
   and a date is the one thing here that has to be read exactly. */
.change-date {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e39a41;
}

/* The desktop download and beta opt-in on the account page. */
.download-card {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-700);
}

.download-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-heading h2 {
  margin: 0;
  font: 700 1.25rem var(--serif);
}

.download-badge {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--rune);
  border-radius: 999px;
  color: var(--rune);
  font-size: 0.85rem;
}

.download-meta {
  margin: 0.4rem 0 1rem;
  color: var(--text-muted);
}

.download-card p:last-child {
  margin-bottom: 0;
}

.beta-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.beta-title {
  margin: 0;
  font-weight: 600;
}

.beta-hint {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 3rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--stone-600);
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.switch:hover {
  border-color: var(--text-muted);
}

.switch:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.switch-thumb {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--text-soft);
  transform: translateY(-50%);
  transition: left 160ms var(--ease), background 160ms var(--ease);
}

.switch-on {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
}

.switch-on .switch-thumb {
  left: calc(100% - 1.4rem);
  background: var(--gold-ink);
}
