/* littlearth.online -- dark leather, gold leaf, and a teal button to press. */

:root {
  --ink: #120d09;
  --ink-2: #1b140e;
  --panel: rgba(22, 16, 11, 0.9);
  --edge: #6b4c24;
  --edge-bright: #a97a36;
  --gold: #e2b458;
  --gold-bright: #f6d98f;
  --gold-dark: #9c6b22;
  --text: #eadfc8;
  --muted: #a9987c;
  --teal: #1d6b64;
  --teal-bright: #2e978c;
  --steel: #1e2c43;
  --steel-bright: #2e4466;
  --danger: #d9785f;
  --ember: #ff6a2b;
  --ember-bright: #ffb347;
  --blood: #b3261e;
  --blood-dark: #5c0f0a;
  --human: #2e5fc2;
  --human-dark: #142a5e;
  --radius: 6px;
  --display: "Cinzel", "Times New Roman", serif;
  --decorative: "Cinzel Decorative", "Cinzel", serif;
  --body: "Crimson Pro", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(160, 60, 20, 0.28), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0c0605 100%);
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
}

main { flex: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- the bar across the top ---------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.97), rgba(20, 14, 9, 0.93));
  border-bottom: 1px solid rgba(169, 122, 54, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { display: block; border-radius: 10px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--decorative);
  font-size: 25px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-online {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.55em;
  color: var(--gold);
  margin-top: 4px;
  text-align: center;
}

.nav { flex: 1; display: flex; align-items: center; gap: 26px; }
.nav > a {
  font-family: var(--display);
  font-size: 16px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav > a:hover { color: var(--gold-bright); }
.nav > a.current { color: var(--gold-bright); border-bottom-color: var(--gold); }
.nav-actions { margin-left: auto; display: flex; gap: 12px; }

.menu-toggle, .menu-button { display: none; }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: 4px;
  border: 1px solid var(--edge-bright);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }

.btn-gold {
  color: var(--gold-bright);
  background: linear-gradient(180deg, #5a3a1a, #3a2410);
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.25), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.btn-ghost {
  color: var(--gold-bright);
  background: linear-gradient(180deg, #2a1c11, #1e140c);
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12);
}
.btn-play {
  font-size: 28px;
  padding: 16px 64px;
  color: #f7ecd0;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--teal-bright), var(--teal) 55%, #134944);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 0 0 4px rgba(20, 14, 9, 0.8),
              0 0 0 5px rgba(226, 180, 88, 0.5), 0 12px 30px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}
.btn-play:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 0 0 4px rgba(20, 14, 9, 0.8),
                              0 0 0 5px rgba(246, 217, 143, 0.8), 0 0 36px rgba(46, 151, 140, 0.45); }
.btn-steel {
  color: #dfe7f5;
  border-color: #50678c;
  background: linear-gradient(180deg, var(--steel-bright), var(--steel));
  min-width: 150px;
}
.btn-provider {
  width: 100%;
  margin-top: 14px;
  color: var(--text);
  border-color: rgba(234, 223, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
}
.btn.disabled { opacity: 0.5; cursor: default; filter: none; }
/* A button that is there but cannot be pressed yet: Buy before a thing is
   on sale. Greyed and dead to the pointer, so it says "not yet", not "gone". */
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; filter: grayscale(0.7); }
/* The button style sets its own display, which beat the hidden attribute. */
.btn[hidden] { display: none; }

button.link {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- the hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(10, 7, 5, 0.65) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.1) 60%, var(--ink) 100%);
}

.hero-copy { text-align: center; padding: 60px 20px 170px; max-width: 900px; }
.hero-emblem { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); margin-bottom: 8px; }

.title {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.08;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff1c4 0%, var(--gold-bright) 30%, var(--gold) 65%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px rgba(0, 0, 0, 0.5));
}

.lede {
  font-size: clamp(19px, 2.2vw, 24px);
  color: #f3e7cc;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  margin: 18px auto 34px;
  max-width: 720px;
  line-height: 1.5;
}

.fireflies span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe4a1;
  box-shadow: 0 0 8px 3px rgba(255, 200, 110, 0.55);
  opacity: 0;
  animation: drift 9s ease-in-out infinite;
}
.fireflies span:nth-child(3n)   { animation-duration: 12s; }
.fireflies span:nth-child(3n+1) { animation-duration: 7s; }
.fireflies span:nth-child(1)  { left: 8%;  top: 62%; animation-delay: 0s; }
.fireflies span:nth-child(2)  { left: 16%; top: 48%; animation-delay: 2s; }
.fireflies span:nth-child(3)  { left: 24%; top: 70%; animation-delay: 4s; }
.fireflies span:nth-child(4)  { left: 31%; top: 40%; animation-delay: 1s; }
.fireflies span:nth-child(5)  { left: 39%; top: 64%; animation-delay: 5s; }
.fireflies span:nth-child(6)  { left: 45%; top: 30%; animation-delay: 3s; }
.fireflies span:nth-child(7)  { left: 53%; top: 74%; animation-delay: 6s; }
.fireflies span:nth-child(8)  { left: 59%; top: 44%; animation-delay: 2.5s; }
.fireflies span:nth-child(9)  { left: 66%; top: 58%; animation-delay: 0.5s; }
.fireflies span:nth-child(10) { left: 72%; top: 36%; animation-delay: 4.5s; }
.fireflies span:nth-child(11) { left: 78%; top: 52%; animation-delay: 1.5s; }
.fireflies span:nth-child(12) { left: 84%; top: 42%; animation-delay: 3.5s; }
.fireflies span:nth-child(13) { left: 90%; top: 60%; animation-delay: 5.5s; }
.fireflies span:nth-child(14) { left: 94%; top: 34%; animation-delay: 2.2s; }
.fireflies span:nth-child(15) { left: 12%; top: 30%; animation-delay: 6.5s; }
.fireflies span:nth-child(16) { left: 62%; top: 26%; animation-delay: 7s; }
.fireflies span:nth-child(17) { left: 36%; top: 80%; animation-delay: 3.2s; }
.fireflies span:nth-child(18) { left: 81%; top: 72%; animation-delay: 4.8s; }

@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 0); }
  20%  { opacity: 0.9; }
  50%  { transform: translate(18px, -26px); }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-10px, -52px); }
}

@media (prefers-reduced-motion: reduce) {
  .fireflies span { animation: none; opacity: 0.6; }
  html { scroll-behavior: auto; }
}

/* ---- framed panels ---------------------------------------------------------- */

.panel, .card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(58, 40, 22, 0.35), rgba(0, 0, 0, 0) 40%),
    var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(12, 8, 5, 0.9), 0 0 0 5px rgba(169, 122, 54, 0.35),
              0 20px 50px rgba(0, 0, 0, 0.55);
  padding: 30px 32px 28px;
}

/* A gold corner on each side, like the frame of a page. */
.panel::before, .panel::after, .card::before, .card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold-dark);
  pointer-events: none;
}
.panel::before, .card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.panel::after, .card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.panel-title, .card-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  color: var(--gold-bright);
}
.panel-title::after, .card-title::after {
  content: "";
  display: block;
  width: 70%;
  margin: 12px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-bright), transparent);
}
.card-subtitle {
  margin: 30px 0 14px;
  text-align: center;
  font-size: 20px;
  color: var(--gold);
}

.panels {
  max-width: 1240px;
  margin: -110px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 2fr;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.welcome-name {
  font-family: var(--display);
  font-size: 30px;
  color: var(--gold-bright);
  text-align: center;
  margin: 0 0 8px;
}

.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.stack.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }

/* ---- forms ------------------------------------------------------------------ */

.form label, .auth label {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--text);
  margin: 12px 0 6px;
}

.form input:not([type=checkbox]), .auth input:not([type=checkbox]):not([type=hidden]), .auth select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: #0f0b08;
  border: 1px solid #5a4020;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}
.form input:focus, .auth input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(226, 180, 88, 0.2);
}

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
/* Deleting an account: a narrow form under a long explanation, and what was typed wrong said in red. */
.delete-account-form { max-width: 460px; margin: 0 auto; }
.delete-account-form .form-row { flex-wrap: wrap; justify-content: center; }
.form-error { color: var(--danger); }
label.check { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--body); font-size: 17px; }
input[type=checkbox] { accent-color: var(--gold); width: 17px; height: 17px; }
.small-link { display: inline-block; margin-top: 10px; font-size: 16px; color: #7fc7bd; }

.auth form p { margin: 0; }
.auth form > button, .auth form .btn { margin-top: 20px; width: 100%; }
.auth .helptext, .auth span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.auth ul.errorlist { list-style: none; padding: 0; margin: 10px 0 0; color: var(--danger); font-size: 16px; }
.auth h1 { text-align: center; color: var(--gold-bright); margin: 6px 0 14px; font-size: 28px; }
.auth h2 { text-align: center; color: var(--gold); font-size: 18px; margin: 24px 0 6px; }
.auth hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--edge), transparent); margin: 24px 0 0; }
.auth > p { text-align: center; color: var(--muted); }
.providers .btn-provider { margin-top: 12px; }

/* ---- the shop ------------------------------------------------------------- */

.shop-tagline {
  text-align: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
  margin: -4px 0 18px;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
/* Every card the same height, its price and Buy pinned to its foot, so a name
   that runs to two lines does not push one card's button below the rest. */
.shop-items { align-items: stretch; }
.shop-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%; }
.shop-picture {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--ink);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shop-picture:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shop-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-item:hover .shop-picture { transform: translateY(-3px); border-color: var(--gold); }
.shop-name { font-family: var(--display); font-size: 17px; color: var(--text); min-height: 2.4em; display: flex; align-items: center; }
.shop-price { font-size: 16px; color: var(--gold); }
/* What a skin brings besides its looks, in the colour of frost. */
/* Why something on the shelf cannot be bought yet, where Buy would be: a
   word about when, not a greyed-out button, so it reads as planned. */
.shop-waiting { display: block; max-width: 24ch; margin: 0 auto; font-size: 13px; line-height: 1.35; font-style: italic; color: var(--danger); text-align: center; }
.shop-waiting::before { content: "\26A0\FE0E  "; font-style: normal; }
.shop-view-text .shop-waiting { max-width: none; margin: 8px 0 0; font-size: 15px; text-align: left; }
.shop-section {
  font-family: var(--display); font-size: 17px; color: var(--gold); letter-spacing: 0.06em;
  margin: 18px 0 8px; display: flex; align-items: center; gap: 12px;
}
.shop-section::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(169, 122, 54, 0.5), transparent); }

/* The home page's row of skins: three at a time, sliding sideways -- by
   swiping, by scrolling, or by its arrows -- and stopping on a whole card. */
.shop-slider { position: relative; }
.shop-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 8px;
}
.shop-track::-webkit-scrollbar { display: none; }
.shop-track > .shop-item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; height: auto; }
.slider-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge-bright);
  background: rgba(18, 13, 9, 0.88); color: var(--gold); font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.slider-arrow:hover { border-color: var(--gold); color: var(--gold-bright); }
.slider-arrow[disabled] { opacity: 0; pointer-events: none; }
.slider-prev { left: -14px; }
.slider-next { right: -14px; }
.shop-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* A product up close. */
.shop-view {
  width: min(880px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--edge-bright);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}
.shop-view::backdrop { background: rgba(5, 3, 2, 0.78); backdrop-filter: blur(3px); }
.shop-view-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.shop-view-picture { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: #0a0d15; }
.shop-view-text { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.shop-view-name { font-family: var(--display); color: var(--gold-bright); font-size: 28px; margin: 0; }
.shop-view-for { margin: 0; text-transform: none; }
.shop-view-description { margin: 0; line-height: 1.45; }
.shop-view-text .btn { align-self: flex-start; padding: 10px 34px; }
.shop-view-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: var(--muted); font-size: 32px; line-height: 1; cursor: pointer;
}
.shop-view-close:hover { color: var(--gold-bright); }
@media (max-width: 700px) {
  .shop-view-body { grid-template-columns: 1fr; }
  .shop-view-text { padding: 18px; }
}

/* ---- sections ------------------------------------------------------------- */

.features, .community {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 20px;
  text-align: center;
}
.section-title { font-size: 34px; color: var(--gold-bright); margin: 0 0 30px; }
.section-title.small { font-size: 26px; margin-bottom: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.feature {
  padding: 22px 24px;
  border-top: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, rgba(58, 40, 22, 0.25), transparent);
}
.feature h3 { margin: 0 0 8px; color: var(--gold); font-size: 21px; }
.feature p { margin: 0; color: #d8ccb2; }
.community { margin-bottom: 70px; }

/* The road through the world, three steps to the front. */
.features-lede { max-width: 760px; margin: -12px auto 34px; color: var(--muted); font-size: 20px; }
.journey { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 30px; max-width: 1120px; }
/* One step a row, the picture and the words side by side: the picture on the
   right, then the left, then the right, its edge towards the words feathered
   away into the card. */
.journey-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch;
  text-align: left; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--edge); border-top: 3px solid var(--teal-bright);
}
.journey-split { border-top-color: var(--human); }
.journey-smorc { border-top-color: var(--blood); }
.journey-war { border-top-color: var(--ember); }
.journey-shot {
  display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, #000 62%, transparent 100%);
}
.journey-step:nth-child(odd) .journey-shot {
  order: 2;
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 100%);
  mask-image: linear-gradient(to left, #000 62%, transparent 100%);
}
.journey-step:nth-child(odd) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.journey-text { padding: 30px 36px; display: flex; flex-direction: column; justify-content: center; }
.journey-step h3 { margin: 6px 0 10px; color: var(--gold-bright); font-size: 26px; }
.journey-step p { margin: 0; line-height: 1.6; }
/* A word beside a place's name: what kind of place it is. */
.journey-aside { font-size: 0.6em; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; vertical-align: middle; }
.journey-levels { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Pictures from the game. */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--edge); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); }
.shot figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); font-style: italic; }

.features-heading { margin: 56px 0 22px; color: var(--gold-bright); font-size: 26px; }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.class-card { padding: 0 0 18px; border-radius: var(--radius); border: 1px solid var(--edge); background: var(--panel); overflow: hidden; }
.class-shot { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.class-card h4, .class-card p { padding: 0 14px; }
.class-card h4 { font-family: var(--display); color: var(--gold-bright); font-size: 20px; margin: 10px 0 4px; }
.class-card p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.45; }
/* The classes: a picture and a name, nothing said about them. */
.class-names .class-card { padding-bottom: 12px; }
.class-names .class-card h4 { margin: 12px 0 0; text-align: center; }

/* The world bosses: three of the class cards, wider pictures, and where each rises. */
.boss-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boss-shot { aspect-ratio: 12 / 7; }
.boss-where { display: block; padding: 10px 14px 0; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.boss-where + h4 { margin-top: 2px; }

.items-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.items-shots.warchief-shot { grid-template-columns: 1fr; }

.items-guide { max-width: 1000px; margin: 40px auto 0; text-align: left; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(169, 122, 54, 0.4); background: rgba(14, 10, 7, 0.75); }
.items-guide h3 { margin: 0 0 10px; color: var(--gold); font-size: 21px; text-align: center; }
.items-guide ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.items-guide b { color: var(--text); font-weight: 600; }
.items-guide li { color: var(--muted); }
.community p { color: #d8ccb2; }

/* ---- pages with one card on them ------------------------------------------ */

.page { max-width: 1100px; margin: 0 auto; padding: 60px 20px 80px; display: flex; justify-content: center; }
.card { width: 100%; max-width: 460px; }
.card.wide { max-width: 760px; }
.card-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -2px auto 12px; }
.card-brand img { display: block; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }
.card-brand .brand-name { font-size: clamp(22px, 7vw, 32px); white-space: nowrap; }
.card-brand img { width: clamp(64px, 20vw, 91px); height: auto; }
.card-brand .brand-online { font-size: 13px; }
.card-emblem { display: block; margin: -4px auto 6px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }
.not-you { margin-top: 18px; }
.download-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 640px; margin: 14px auto 6px; }
.download-choice { text-align: center; flex: 1 1 240px; max-width: 309px; min-width: 0; }
.download-choice .btn-play { display: block; width: 100%; font-size: 20px; padding: 14px 18px; white-space: nowrap; }
.download-choice p { margin: 8px 0 0; }
.steps { margin: 0 auto; max-width: 520px; padding-left: 22px; }
.steps li { margin: 8px 0; }

/* ---- messages and the footer ---------------------------------------------- */

.messages { max-width: 760px; margin: 18px auto 0; padding: 0 20px; }
.message {
  margin: 0 0 8px;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(58, 40, 22, 0.5);
}
.message-error { border-left-color: var(--danger); }

.footer { border-top: 1px solid rgba(169, 122, 54, 0.3); background: rgba(10, 7, 5, 0.9); }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
}
.footer-links { display: flex; gap: 20px; }

/* ---- narrow screens ------------------------------------------------------- */

@media (max-width: 900px) {
  .panels { grid-template-columns: 1fr; margin-top: -80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .journey { gap: 22px; }
  .journey-step, .journey-step:nth-child(odd) { grid-template-columns: 1fr; }
  .journey-step .journey-shot, .journey-step:nth-child(odd) .journey-shot {
    order: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  }
  .journey-text { padding: 4px 20px 22px; }
  .class-grid { grid-template-columns: 1fr 1fr; }
  .items-shots { grid-template-columns: 1fr; }

  .menu-button {
    display: block;
    margin-left: auto;
    width: 40px;
    height: 34px;
    position: relative;
    cursor: pointer;
  }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--gold);
  }
  .menu-button span { top: 16px; }
  .menu-button span::before { top: -8px; left: 0; right: 0; }
  .menu-button span::after { top: 8px; left: 0; right: 0; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(14, 10, 7, 0.98);
    border-bottom: 1px solid var(--edge);
  }
  .nav > a { padding: 12px 0; border-bottom: 1px solid rgba(107, 76, 36, 0.4); }
  .nav-actions { margin: 14px 0 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .btn-play { font-size: 24px; padding: 14px 44px; }
  .hero { min-height: 70vh; }
}

@media (max-width: 520px) {
  body { font-size: 18px; }
  .shop-items { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shop-track { gap: 10px; }
  .items-guide { padding: 18px 16px; }
  .shop-track > .shop-item { flex-basis: calc((100% - 10px) / 2.2); }
  .slider-arrow { display: none; }
  .shop-name { font-size: 13px; }
  .shop-price { font-size: 13px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 40px 16px 120px; }
  .brand-name { font-size: 21px; }
  .panel, .card { padding: 26px 20px 24px; }
  .footer-inner { flex-direction: column; align-items: center; }
}

/* The password rules under the field: said, but quietly. */
.auth form ul:not(.errorlist) { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.auth form ul:not(.errorlist) li { margin: 2px 0; }

/* Reddit's own orange, darkened to sit with the rest. */
.btn-reddit {
  color: #fff1e8;
  border-color: #c2582e;
  background: linear-gradient(180deg, #b8471d, #7a2c10);
  min-width: 150px;
}

/* Buying one thing. */
.buy-picture { margin: 0 auto 10px; max-width: 200px; }
.price-big { font-family: var(--display); font-size: 30px; color: var(--gold-bright); margin: 6px 0; }
.small { font-size: 15px; }
.shop-item .btn { margin-top: 4px; padding: 6px 18px; }

/* ======================================================================
   War: the home page's hero, the emblem, and the two sides.
   ====================================================================== */

.overline {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember-bright);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.home .title {
  background: linear-gradient(180deg, #fff4cf 0%, #ffd37a 32%, #f0a13c 62%, #b8561c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(255, 106, 43, 0.35));
}

.hero-copy { padding-top: 56px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Who is playing, at the top of the side column, and where the server is:
   a small card, one line and a note, without the frame's corners. */
.panel-online { padding: 14px 20px; text-align: center; }
.panel-online::before, .panel-online::after { display: none; }
.online-line { margin: 0; font-size: 18px; color: var(--text); }
.online-line b { font-family: var(--display); font-size: 22px; color: var(--gold-bright); margin-right: 4px; }
.online-where { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.online-dot-off { background: #8a7d68; box-shadow: none; }
.online-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: #5fd36a; box-shadow: 0 0 8px #5fd36a; vertical-align: 3px; }

@keyframes breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.btn-war {
  font-size: 22px;
  padding: 16px 38px;
  color: #ffe9cf;
  border: 2px solid #e28a3c;
  background: linear-gradient(180deg, #c6331f, var(--blood) 55%, var(--blood-dark));
  box-shadow: inset 0 2px 0 rgba(255, 220, 180, 0.25), 0 0 0 4px rgba(20, 8, 5, 0.8),
              0 0 0 5px rgba(226, 138, 60, 0.45), 0 12px 30px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
}
.btn-war:hover { box-shadow: inset 0 2px 0 rgba(255, 220, 180, 0.3), 0 0 0 4px rgba(20, 8, 5, 0.8),
                             0 0 0 5px rgba(255, 179, 71, 0.8), 0 0 36px rgba(255, 106, 43, 0.5); }

/* Embers, rising off the fighting. */
.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffcf7a;
  box-shadow: 0 0 6px 2px rgba(255, 120, 40, 0.8);
  opacity: 0;
  animation: rise 8s linear infinite;
}
.embers span:nth-child(odd) { width: 3px; height: 3px; background: #ff9a45; }
.embers span:nth-child(3n) { animation-duration: 11s; }
.embers span:nth-child(4n) { animation-duration: 6.5s; width: 2px; height: 2px; }
.embers span:nth-child(1) { left: 4%; animation-delay: 0s; }
.embers span:nth-child(2) { left: 9%; animation-delay: 3.1s; }
.embers span:nth-child(3) { left: 13%; animation-delay: 5.4s; }
.embers span:nth-child(4) { left: 18%; animation-delay: 1.2s; }
.embers span:nth-child(5) { left: 22%; animation-delay: 6.8s; }
.embers span:nth-child(6) { left: 27%; animation-delay: 2.3s; }
.embers span:nth-child(7) { left: 31%; animation-delay: 4.4s; }
.embers span:nth-child(8) { left: 35%; animation-delay: 0.7s; }
.embers span:nth-child(9) { left: 39%; animation-delay: 7.5s; }
.embers span:nth-child(10) { left: 43%; animation-delay: 3.8s; }
.embers span:nth-child(11) { left: 47%; animation-delay: 1.9s; }
.embers span:nth-child(12) { left: 51%; animation-delay: 5.9s; }
.embers span:nth-child(13) { left: 55%; animation-delay: 2.8s; }
.embers span:nth-child(14) { left: 59%; animation-delay: 6.2s; }
.embers span:nth-child(15) { left: 63%; animation-delay: 0.4s; }
.embers span:nth-child(16) { left: 67%; animation-delay: 4.9s; }
.embers span:nth-child(17) { left: 71%; animation-delay: 2.1s; }
.embers span:nth-child(18) { left: 75%; animation-delay: 7.1s; }
.embers span:nth-child(19) { left: 79%; animation-delay: 3.4s; }
.embers span:nth-child(20) { left: 83%; animation-delay: 5.1s; }
.embers span:nth-child(21) { left: 87%; animation-delay: 1.4s; }
.embers span:nth-child(22) { left: 91%; animation-delay: 6.6s; }
.embers span:nth-child(23) { left: 95%; animation-delay: 2.6s; }
.embers span:nth-child(24) { left: 16%; animation-delay: 8.2s; }
.embers span:nth-child(25) { left: 45%; animation-delay: 9.1s; }
.embers span:nth-child(26) { left: 69%; animation-delay: 8.7s; }
.embers span:nth-child(27) { left: 86%; animation-delay: 9.6s; }
.embers span:nth-child(28) { left: 29%; animation-delay: 10.2s; }

@keyframes rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  10%  { opacity: 1; }
  40%  { transform: translate(24px, -34vh) scale(0.9); }
  70%  { opacity: 0.8; transform: translate(-18px, -58vh) scale(0.7); }
  100% { opacity: 0; transform: translate(12px, -82vh) scale(0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .embers span { animation: none; }
  .embers span { opacity: 0.5; bottom: 30%; }
}

/* ---- the two sides ------------------------------------------------------ */

.factions { margin-top: 90px; }

.section-title.war {
  font-size: clamp(34px, 5vw, 64px);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff4cf, #ffc766 45%, #e0762a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
}

.faction-grid {
  max-width: 1180px;
  margin: 90px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.versus { align-self: center; }

.faction {
  position: relative;
  padding: 88px 32px 30px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(180deg, rgba(24, 16, 11, 0.94), rgba(14, 9, 6, 0.96));
  box-shadow: 0 0 0 4px rgba(12, 8, 5, 0.9), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.faction::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--edge-color);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.faction-humans {
  --edge-color: linear-gradient(180deg, #7aa2ff, var(--human) 40%, #e2b458);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(46, 95, 194, 0.35), transparent 60%),
                    linear-gradient(180deg, rgba(24, 16, 11, 0.94), rgba(14, 9, 6, 0.96));
}
.faction-smorcs {
  --edge-color: linear-gradient(180deg, #ff8a5c, var(--blood) 40%, #e2b458);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(179, 38, 30, 0.38), transparent 60%),
                    linear-gradient(180deg, rgba(24, 16, 11, 0.94), rgba(14, 9, 6, 0.96));
}
.crest {
  position: absolute;
  top: -62px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s ease;
}
.faction:hover .crest { transform: translateX(-50%) translateY(-4px) scale(1.04); }

.faction-name {
  margin: 0;
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.faction-humans .faction-name { color: #b9cdff; text-shadow: 0 0 22px rgba(46, 95, 194, 0.6); }
.faction-smorcs .faction-name { color: #ffb8a0; text-shadow: 0 0 22px rgba(179, 38, 30, 0.7); }
.motto { font-style: italic; color: var(--gold); margin: 4px 0 14px; font-size: 20px; }
.faction > p { color: #ddd0b6; }

.capital {
  margin-top: 20px;
  padding: 18px 20px 14px;
  border-top: 1px solid rgba(169, 122, 54, 0.4);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.capital-label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.capital h4 {
  margin: 2px 0 6px;
  font-family: var(--decorative);
  font-size: 30px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.capital p { margin: 0 0 10px; color: #cfc2a6; font-size: 18px; }
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.facts li {
  font-size: 15px;
  padding: 3px 12px;
  border: 1px solid rgba(169, 122, 54, 0.45);
  border-radius: 999px;
  color: var(--gold-bright);
}

/* The medallion between them. */
.versus span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-family: var(--decorative);
  font-size: 30px;
  color: #fff1d0;
  background: radial-gradient(circle at 40% 35%, #ffb347, var(--ember) 45%, #7a1a0c 100%);
  box-shadow: 0 0 0 4px #1a0c07, 0 0 0 6px var(--gold-dark), 0 0 40px rgba(255, 106, 43, 0.65);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
  animation: breathe 3.5s ease-in-out infinite;
}

.realms {
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.realm {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 4px rgba(12, 8, 5, 0.9), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.realm-city {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(226, 180, 88, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(30, 21, 13, 0.96), rgba(16, 11, 7, 0.97));
}
.realm-war {
  border-color: #a2451c;
  background-image:
    linear-gradient(180deg, rgba(20, 8, 5, 0.78), rgba(14, 6, 4, 0.92)),
    url("../img/leo-art-battlefield.d1ce3402d975.jpg");
  background-size: auto, cover;
  background-position: center, 50% 40%;
}
.realm-icon {
  flex: none;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
.realm-kind {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.realm-war .realm-kind { color: var(--ember-bright); }
.realm h4 { margin: 2px 0 8px; font-family: var(--decorative); font-size: 28px; color: var(--gold-bright); }
.realm p { margin: 0 0 12px; color: #ddd0b6; }
.realm .facts { justify-content: flex-start; }
.realm-war .facts li { border-color: rgba(255, 106, 43, 0.55); color: #ffd1a8; }

/* The sign-in and the shop, further down now that the game comes first. */
.panels-late { margin: 80px auto 0; }
.factions { margin-top: 10px; }

@media (max-width: 900px) {
  .faction-grid { grid-template-columns: 1fr; gap: 90px; margin-top: 70px; }
  .versus { justify-self: center; margin: -60px 0 -10px; }


  .realms { grid-template-columns: 1fr; }
  .realm { flex-direction: column; align-items: center; text-align: center; }
  .realm .facts { justify-content: center; }
  .panels-late { margin-top: 60px; }
  .btn-war { font-size: 20px; padding: 14px 30px; }
}

/* ---- the painting ------------------------------------------------------- */

/* Behind the hero: dark enough in the middle for the gold to read, dark at
   the top for the menu, and fading into the page at the bottom. */
.home .hero-art { object-position: 50% 40%; }
.home .hero-scene::after {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10, 6, 4, 0.78) 0%, rgba(10, 6, 4, 0.5) 45%, rgba(10, 6, 4, 0.12) 80%, transparent 100%),
    linear-gradient(180deg, rgba(10, 6, 4, 0.6) 0%, rgba(10, 6, 4, 0.08) 22%, rgba(10, 6, 4, 0.1) 70%, var(--ink) 100%);
}

.factions-head { text-align: center; padding: 0 16px; margin-bottom: 20px; }

/* Each side's card over its own half of the painting. */
.faction-humans {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(46, 95, 194, 0.4), transparent 60%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.72), rgba(12, 8, 6, 0.94) 55%),
    url("../img/leo-art-humans.66d4a5cb01bc.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, 30% 40%;
}
.faction-smorcs {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(179, 38, 30, 0.42), transparent 60%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.72), rgba(12, 8, 6, 0.94) 55%),
    url("../img/leo-art-smorcs.b117427fecc3.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, 70% 40%;
}

/* A phone sees mostly bright sky behind the words: veil it more. */
@media (max-width: 700px) {
  .home .hero-scene::after {
    background:
      linear-gradient(180deg, rgba(10, 6, 4, 0.72) 0%, rgba(10, 6, 4, 0.58) 45%, rgba(10, 6, 4, 0.45) 75%, var(--ink) 100%);
  }
}

/* A dialog on a page: the password one on the account page. */
.site-dialog {
  width: min(460px, 94vw);
  padding: 30px 28px 26px;
  border: 1px solid var(--edge-bright);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}
.site-dialog::backdrop { background: rgba(5, 3, 2, 0.78); backdrop-filter: blur(3px); }
.dialog-form { display: flex; flex-direction: column; gap: 12px; }
.dialog-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }
.dialog-form input {
  padding: 9px 11px; border-radius: 6px; border: 1px solid var(--edge); background: var(--ink); color: var(--text); font: inherit;
}
.dialog-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.password-rules { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.dialog-form .btn { align-self: flex-start; }

/* ---- the backoffice ------------------------------------------------------- */

.bo { max-width: 1280px; margin: 0 auto; padding: 30px 20px 70px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; }
.bo-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; align-self: start; }
.bo-nav a { padding: 6px 10px; border-radius: var(--radius); color: var(--text); font-family: var(--display); font-size: 16px; }
.bo-nav a:hover { background: rgba(226, 180, 88, 0.08); }
.bo-nav a.current { background: rgba(226, 180, 88, 0.15); color: var(--gold-bright); }
.bo-nav-title { font-family: var(--display); color: var(--gold); margin: 0 0 8px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.bo-confirmed { margin-top: 18px; font-size: 14px; color: var(--muted); border-left: 3px solid var(--edge); padding-left: 8px; }
.bo-confirmed.bo-ok { border-left-color: var(--teal-bright); color: #9fd8cf; }
.bo-main { min-width: 0; font-size: 17px; }
.bo-title { color: var(--gold-bright); margin: 0 0 16px; font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bo-heading { color: var(--gold); font-size: 19px; margin: 30px 0 10px; border-bottom: 1px solid rgba(169, 122, 54, 0.3); padding-bottom: 4px; }

.bo-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bo-stat { display: flex; flex-direction: column; padding: 12px 14px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); color: var(--text); }
.bo-stat b { font-family: var(--display); font-size: 24px; color: var(--gold-bright); }
.bo-stat span { color: var(--muted); font-size: 14px; }
a.bo-stat:hover { border-color: var(--edge-bright); color: var(--text); }
.bo-stat.bo-warn b { color: var(--danger); }

.bo-scroll { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bo-table th, .bo-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(169, 122, 54, 0.18); vertical-align: top; }
.bo-table th { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
.bo-table tbody tr:hover { background: rgba(226, 180, 88, 0.04); }
.bo-table code, .bo-main code { font-size: 13px; color: #cdbf9f; word-break: break-all; }
.bo-nowrap { white-space: nowrap; }
.bo-agent { max-width: 320px; font-size: 13px; color: var(--muted); }
.bo-changes { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--muted); }

.bo-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-family: var(--body); letter-spacing: 0.02em; border: 1px solid var(--edge); color: var(--muted); vertical-align: middle; }
.bo-tag-ok { border-color: var(--teal-bright); color: #9fd8cf; }
.bo-tag-bad { border-color: var(--danger); color: var(--danger); }

.bo-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.bo-facts dt { color: var(--muted); }
.bo-facts dd { margin: 0; }

.bo-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bo-filter input, .bo-filter select, .bo-form input, .bo-form select, .bo-form textarea,
.bo-action input, .bo-action textarea, .bo-action select {
  background: #0d0906; color: var(--text); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 7px 10px; font: inherit; font-size: 16px;
}
.bo-filter input[type=search] { flex: 1; min-width: 220px; }
.bo-small-btn { padding: 5px 12px; font-size: 14px; }
.bo-inline { display: inline-block; margin: 0 6px 0 0; }
.bo-btn-danger { background: var(--blood); color: #fff; border: 1px solid #e0574d; }
.bo-btn-danger:hover { background: #cf2f25; color: #fff; }
.bo-btn-on { background: var(--teal); color: #fff; border: 1px solid var(--teal-bright); }

.bo-action { margin: 10px 0; }
.bo-action summary { cursor: pointer; color: var(--gold); font-size: 15px; }
.bo-action form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 520px; padding: 12px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel); }
.bo-action label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.bo-danger summary { color: var(--danger); }

.bo-form { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin-top: 16px; }
.bo-field { display: flex; flex-direction: column; gap: 4px; }
.bo-field label { color: var(--muted); font-size: 15px; }
.bo-field input[type=checkbox] { align-self: flex-start; }
.bo-field-bad input, .bo-field-bad textarea, .bo-field-bad select { border-color: var(--danger); }
.bo-error, .bo-errors { color: var(--danger); font-size: 14px; }
.bo-form .btn { align-self: flex-start; }

.bo-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.bo-picture { max-width: 260px; border-radius: var(--radius); border: 1px solid var(--edge); display: block; }
.bo-pages { display: flex; gap: 18px; align-items: center; margin-top: 14px; }

@media (max-width: 800px) {
  .bo { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 60px; gap: 16px; }
  .bo-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .bo-nav-title, .bo-confirmed { width: 100%; }
}

/* ---- news ------------------------------------------------------------------
   Written on the forum and copied here (news/): a small column on the home
   page, a list, and each post on a page of its own. */
.panel-column { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.news-item { display: block; padding: 12px 0; border-bottom: 1px solid rgba(169, 122, 54, 0.25); color: var(--text); text-decoration: none; }
.news-item:last-of-type { border-bottom: 0; }
.news-item:hover .news-title { color: var(--gold-bright); }
.news-date { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.news-title { display: block; margin: 2px 0 4px; font-family: var(--display); font-size: 17px; color: var(--gold); line-height: 1.3; }
.news-excerpt { display: block; font-size: 14px; line-height: 1.5; color: var(--text); opacity: 0.85; }
.panel-news .news-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-all { display: inline-block; margin-top: 8px; }
.news-list .news-item { padding: 18px 0; }
.news-back { margin: 0 0 4px; }
.news-post .news-date { margin-top: -6px; }
.news-body { max-width: 72ch; margin: 18px auto 0; font-size: 17px; line-height: 1.65; }
.news-body img { max-width: 100%; height: auto; border-radius: 4px; }
.news-body img.emoji { width: 1.2em; height: 1.2em; vertical-align: -0.2em; border-radius: 0; }
.news-body video { display: block; width: 100%; margin: 16px 0; border-radius: 4px; background: #000; }
.news-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 16px 0; border: 0; border-radius: 4px; }
.news-body a { color: var(--gold); }
.news-body blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--edge); color: var(--muted); }
.news-discuss { margin-top: 28px; }

/* ---- the home page under the hero: two columns, one to two ------------------
   The account, the news and the shop in the narrow one; the world, its
   classes and its gear in the wide one. One column on a phone, the world
   first. */
.home-layout {
  max-width: 1320px; margin: 60px auto 70px; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 34px; align-items: start;
}
.home-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.home-main { min-width: 0; }
.home-main .features, .home-main .community { max-width: none; margin: 0; padding: 0; }
.home-main .community { margin-top: 60px; }
.home-main .section-title { margin-top: 0; }
.home-main .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-main .boss-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-main .journey-text { padding: 26px 28px; }
/* Two of a kind to a view in the narrow column, not three slivers. */
.home-side .shop-track > .shop-item { flex-basis: calc((100% - 20px) / 2); }

/* A capital's banner, hung from the top edge of its words. */
.journey-text { position: relative; }
.journey-banner {
  position: absolute; top: 0; right: 26px; width: 64px; height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; margin-top: 40px; }
  .home-side { order: 2; }
  .home-main .journey-text { padding: 4px 20px 22px; }
  .journey-banner { width: 48px; right: 18px; }
}

/* The world bosses one above another on a phone. */
@media (max-width: 700px) {
  .boss-grid, .home-main .boss-grid { grid-template-columns: 1fr; }
}

/* A legal page: running text, read left to right, not a card's centred lines. */
.legal { text-align: left; }
.legal h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

/* A word over a product's picture -- New, -20%, Launch offer -- as a small
   plaque in its top corner: gold for something new, ember for an offer.
   Sized by its words, so whatever is written fits. */
.shop-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  max-width: calc(100% - 16px);
  padding: 3px 9px 2px;
  border-radius: 3px;
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.shop-badge-gold { background: linear-gradient(180deg, #f6d98f, #e2b458 55%, #9c6b22); color: #2a1a08; }
.shop-badge-ember { background: linear-gradient(180deg, #f5a48c, #ec8068 55%, #a8432f); color: #2a0d06; }
.shop-view-frame { position: relative; }
.shop-view-frame .shop-badge { top: 14px; left: 14px; font-size: 14px; padding: 4px 12px 3px; }
