@import url("assets/admin-palette-roots.css");

:root {
  color-scheme: dark;
  --bg: var(--roots-ink);
  --bg-2: var(--roots-charcoal);
  --paper: var(--roots-sage);
  --paper-dark: var(--roots-bark);
  --ink: var(--roots-soil-deep);
  --text: var(--roots-parchment);
  --muted: var(--roots-mist);
  --rust: var(--roots-bark);
  --blood: var(--roots-leaf);
  --thorn: var(--roots-leaf-deep);
  --gold: var(--roots-moss);
  --line: rgba(225, 219, 201, 0.16);
  --shadow: rgba(0, 0, 0, 0.44);
}

@font-face {
  font-family: "Mayonice";
  src:
    url("assets/Mayonice.ttf") format("truetype"),
    url("assets/Mayonice.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(54, 94, 63, 0.25), transparent 24rem),
    radial-gradient(circle at 82% 20%, rgba(73, 54, 41, 0.18), transparent 22rem),
    linear-gradient(180deg, var(--bg), #131713 46%, #090b09);
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(164, 179, 141, 0.72);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 15px clamp(10px, 1vw, 18px) 15px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(111, 135, 80, 0.22);
  background: rgba(19, 23, 19, 0.78);
  backdrop-filter: blur(16px);
}

.site-header nav {
  margin-left: 0;
  margin-right: 0;
}

.public-main-header {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) auto minmax(160px, 1fr);
  gap: 18px;
}

.public-main-header .header-left-nav {
  justify-self: start;
  margin-left: clamp(96px, 10vw, 190px);
}

.public-main-header .header-center-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 10px;
}

.brand {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--blood) 0 38%, transparent 40%);
  box-shadow: 0 0 0 4px rgba(54, 94, 63, 0.28);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

nav a,
nav button,
footer a {
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.site-header nav a,
.site-header nav button,
.site-header .header-center-nav button {
  min-width: max-content;
  padding: 6px 12px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(73, 54, 41, 0.68), rgba(54, 94, 63, 0.58));
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

nav a:hover,
nav button:hover,
footer a:hover {
  color: var(--gold);
}

.site-header nav a:hover,
.site-header nav button:hover,
.site-header .header-center-nav button:hover {
  border-color: rgba(164, 179, 141, 0.62);
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(104, 80, 61, 0.76), rgba(54, 94, 63, 0.76));
  color: #e1dbc9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.journal-top-nav button {
  font-family: "EB Garamond", Georgia, serif;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.header-utility {
  position: absolute;
  right: clamp(10px, 1vw, 18px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 6px;
  background: rgba(19, 23, 19, 0.58);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.session-logout-button {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(186, 55, 36, 0.34);
  border-radius: 50%;
  background: rgba(72, 16, 12, 0.58);
  color: #ff8b76;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0.76;
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.session-logout-button:hover,
.session-logout-button:focus-visible {
  opacity: 1;
  border-color: rgba(255, 139, 118, 0.78);
  transform: scale(1.08);
}

.header-session-indicator strong {
  color: #dceec0;
}

.header-action-link {
  min-width: max-content;
  padding: 6px 12px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(73, 54, 41, 0.68), rgba(54, 94, 63, 0.58));
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-action-link:hover {
  border-color: rgba(164, 179, 141, 0.62);
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(104, 80, 61, 0.76), rgba(54, 94, 63, 0.76));
  color: #e1dbc9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.broccoli-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.42);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease, background 160ms ease;
}

.broccoli-header-icon:hover {
  border-color: rgba(164, 179, 141, 0.62);
  background: rgba(54, 94, 63, 0.38);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.broccoli-header-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.admin-top-link,
.journal-top-link {
  min-width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(73, 54, 41, 0.68), rgba(54, 94, 63, 0.58));
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.journal-top-link {
  border-color: rgba(164, 179, 141, 0.44);
}

.admin-top-link:hover,
.journal-top-link:hover {
  border-color: rgba(164, 179, 141, 0.62);
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 179, 141, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(104, 80, 61, 0.76), rgba(54, 94, 63, 0.76));
  color: #e1dbc9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.music-player {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  padding: 5px 7px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.46);
}

.music-player button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 5px;
  background: rgba(225, 219, 201, 0.06);
  color: #e1dbc9;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.music-player button:hover {
  border-color: rgba(164, 179, 141, 0.5);
  background: rgba(111, 135, 80, 0.12);
  color: #e1dbc9;
}

.music-player input[type="range"] {
  width: 74px;
  min-height: 26px;
  padding: 0;
  accent-color: var(--gold);
}

.discord-logo-button {
  display: inline-grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 48px;
  padding: 0;
}

.discord-logo-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  transform-origin: center;
}

.discord-logo-button--hero svg {
  width: 75px;
  height: 75px;
  transform: scale(1.85);
}

.discord-logo-button--compact svg {
  transform: scale(1);
}

.journal-login-window {
  width: min(620px, 100%);
}

.journal-login-window label {
  margin-top: 18px;
}

.journal-login-window em {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.hero {
  position: relative;
  --hero-media-right: clamp(70px, 10vw, 220px);
  --hero-media-width: min(520px, 34vw);
  min-height: 100vh;
  display: grid;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -3;
  filter: saturate(0.72) sepia(0.22) contrast(1.1) brightness(0.78);
}

.hero-scrim {
  z-index: -2;
  background:
    radial-gradient(circle at 24% 24%, rgba(54, 94, 63, 0.34), transparent 28rem),
    linear-gradient(90deg, rgba(19, 23, 19, 0.96), rgba(19, 23, 19, 0.7) 45%, rgba(19, 23, 19, 0.34)),
    linear-gradient(0deg, var(--bg), rgba(19, 23, 19, 0.16) 42%, rgba(19, 23, 19, 0.42));
}

.thorn {
  position: absolute;
  z-index: -1;
  width: 34vw;
  max-width: 460px;
  height: 12px;
  border-top: 3px solid rgba(30, 36, 23, 0.88);
  filter: drop-shadow(0 6px 3px rgba(0, 0, 0, 0.45));
}

.thorn::before,
.thorn::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 70%;
  height: 30px;
  border-top: 2px solid rgba(30, 36, 23, 0.9);
  transform: rotate(-9deg);
}

.thorn-left {
  left: -5vw;
  bottom: 18vh;
  transform: rotate(-18deg);
}

.thorn-right {
  right: -6vw;
  top: 24vh;
  transform: rotate(20deg);
}

.hero-content {
  width: min(1040px, calc(100% - 36px));
  margin: 120px clamp(18px, 7vw, 96px) 8vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: clamp(3.7rem, 8.8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.52);
}

#hero-title {
  margin-bottom: clamp(32px, 4vh, 44px);
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.8vw, 4.1rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #e1dbc9;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.26rem);
  line-height: 1.36;
}

.hero-copy p {
  max-width: 840px;
  margin-bottom: 8px;
}

.hero-copy p.hero-copy-break {
  margin-bottom: 18px;
}

.hero-copy p.hero-copy-break-large {
  margin-bottom: 28px;
}

.hero-copy strong {
  color: #e1dbc9;
  font-weight: 800;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 7px 11px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 6px;
  background: rgba(19, 23, 19, 0.46);
  color: var(--text);
  font-size: 0.98rem;
}

.hero-actions,
.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.hero-actions {
  width: min(840px, 100%);
}

.partner-actions {
  display: grid;
  grid-template-columns: repeat(3, 154px);
  justify-content: center;
}

.partner-actions .button {
  width: 154px;
  padding-inline: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(111, 135, 80, 0.32);
  border-radius: 6px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  will-change: transform;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.button.primary {
  background: linear-gradient(180deg, var(--roots-leaf), var(--roots-leaf-deep));
  border-color: rgba(164, 179, 141, 0.38);
  color: white;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
}

.button.funding {
  grid-column: 3;
  background:
    radial-gradient(circle at 22% 18%, rgba(164, 179, 141, 0.18), transparent 36%),
    linear-gradient(180deg, var(--roots-bark), var(--roots-soil-deep));
  border-color: rgba(164, 179, 141, 0.36);
  color: #e1dbc9;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
}

.partner-actions .broccoli-partner-button {
  grid-column: 1 / span 2;
  width: 320px;
  white-space: nowrap;
}

.button.secondary {
  background: rgba(225, 219, 201, 0.07);
}

.button.teaser {
  position: relative;
  overflow: hidden;
  gap: 10px;
  background:
    radial-gradient(circle at 18% 30%, rgba(225, 219, 201, 0.14), transparent 28%),
    linear-gradient(180deg, var(--roots-leaf), var(--roots-leaf-deep) 62%, var(--roots-charcoal));
  border-color: rgba(164, 179, 141, 0.34);
  color: #e1dbc9;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
}

.button.teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

.button.teaser:hover::after {
  transform: translateX(100%);
}

.hero-whitelist-button {
  position: absolute;
  right: calc(var(--hero-media-right, clamp(70px, 10vw, 220px)) + ((var(--hero-media-width, min(520px, 34vw)) - 270px) / 2));
  top: clamp(770px, 86vh, 850px);
  z-index: 1;
  min-width: 270px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid rgba(164, 179, 141, 0.38);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--roots-leaf), var(--roots-leaf-deep));
  color: #e1dbc9;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.17);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.hero-video-card {
  position: absolute;
  right: var(--hero-media-right);
  top: clamp(420px, 49vh, 500px);
  z-index: 1;
  width: var(--hero-media-width);
  aspect-ratio: 16 / 9;
  padding: 8px;
  border: 1px solid rgba(111, 135, 80, 0.3);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

.hero-video-card iframe,
.hero-video-card video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 5px;
  background: #090b09;
}

.hero-video-card video {
  display: block;
  object-fit: cover;
}

.hero-whitelist-button:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 179, 141, 0.6);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #e1dbc9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(104, 80, 61, 0.46);
  border-block: 1px solid rgba(111, 135, 80, 0.28);
}

.intro-band div {
  min-height: 136px;
  padding: 30px clamp(18px, 4vw, 44px);
  background:
    linear-gradient(145deg, rgba(54, 94, 63, 0.16), transparent 64%),
    rgba(26, 32, 27, 0.96);
}

.intro-band div:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(104, 80, 61, 0.18), transparent 64%),
    rgba(26, 32, 27, 0.96);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  color: var(--roots-sage);
  font-size: 1.18rem;
}

.intro-band span {
  color: var(--roots-mist);
}

.section {
  padding: clamp(70px, 9vw, 112px) clamp(18px, 7vw, 96px);
}

.section > * {
  max-width: 1260px;
  margin-inline: auto;
}

.section-heading p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.15rem;
}

.map-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(73, 54, 41, 0.2), transparent 22rem),
    #131713;
}

.treasure-map {
  position: relative;
  margin: 36px auto 0;
  border: 1px solid rgba(111, 135, 80, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-dark);
  box-shadow: 0 34px 80px var(--shadow);
}

.treasure-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, transparent 0 40%, rgba(0, 0, 0, 0.18) 76%),
    linear-gradient(135deg, rgba(255, 222, 160, 0.08), rgba(54, 94, 63, 0.12));
}

.treasure-map img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lore,
.staff {
  background:
    linear-gradient(180deg, rgba(54, 94, 63, 0.12), transparent 22rem),
    var(--bg-2);
}

.lore-grid,
.stat-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.lore-main {
  grid-column: auto;
}

.lore-grid .lore-teaser {
  grid-column: 1 / -1;
  min-height: 76px;
  padding-block: 18px;
  display: flex;
  align-items: center;
}

.lore-grid article,
.stat-grid article,
.staff-grid article {
  min-width: 0;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.06), rgba(225, 219, 201, 0.025)),
    #1a201b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.lore-grid span,
.staff-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}

.lore-grid p,
.stat-grid p,
.staff-grid p,
.tech-notes p,
.partners p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lore-grid .lore-teaser p {
  margin: 0;
  color: #e1dbc9;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
}

.technique {
  background:
    radial-gradient(circle at 82% 10%, rgba(111, 135, 80, 0.14), transparent 20rem),
    #090b09;
}

.tech-number {
  display: block;
  margin-bottom: 24px;
  color: #ffd27a;
  font-size: clamp(3.3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.82;
}

.tech-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 20px auto 0;
  border: 1px solid rgba(111, 135, 80, 0.16);
  background: rgba(111, 135, 80, 0.14);
}

.tech-notes p {
  min-height: 110px;
  margin: 0;
  padding: 24px;
  background: #131713;
}

.staff-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.staff-grid article {
  min-height: 390px;
  padding: 22px;
}

.staff-grid span {
  margin-bottom: 18px;
}

.staff-grid h3 {
  min-height: 64px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.12;
}

.staff-grid p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(111, 135, 80, 0.18);
  background:
    linear-gradient(135deg, rgba(54, 94, 63, 0.28), transparent 44%),
    #131713;
}

.partners p {
  max-width: 780px;
  font-size: 1.12rem;
}

/* Index compact */
.home-page .hero {
  min-height: 870px;
}

.home-page .hero-content {
  width: min(820px, calc(52% - 36px));
  margin-top: 108px;
  margin-bottom: 48px;
}

.home-page #hero-title {
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.2vw, 6rem);
}

.home-page .hero-copy {
  max-width: 780px;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.3;
}

.home-page .hero-copy p {
  margin-bottom: 14px;
}

.home-page .hero-highlights {
  margin: 15px 0 10px;
}

.home-page .hero-actions {
  width: 100%;
  justify-content: flex-start;
  margin-top: 18px;
}

.hero-character-cta {
  position: absolute;
  top: 96px;
  right: 28px;
  left: 48%;
  width: auto;
  transform: none;
  z-index: 1;
  width: min(430px, 36vw);
  padding: 26px;
  border: 1px solid rgba(111, 135, 80, 0.34);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.86);
  text-align: center;
}

.hero-character-cta p {
  margin-bottom: 20px;
  color: var(--roots-parchment);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-character-cta-note {
  margin-top: -8px !important;
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.hero-character-cta button {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(164, 179, 141, 0.38);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--roots-leaf), var(--roots-leaf-deep));
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-character-cta button:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.64);
}

.hero-partner-banner {
  position: absolute;
  top: 96px;
  left: min(calc(48% + 455px), calc(100% - 360px));
  z-index: 1;
  display: block;
  width: min(320px, 18vw);
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.hero-partner-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.hero-partner-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-partner-banner-wide {
  position: absolute;
  top: 104px;
  right: 28px;
  left: 48%;
  z-index: 1;
  display: block;
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.hero-partner-banner-wide:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.hero-partner-banner-wide img {
  display: block;
  width: 100%;
  height: auto;
}

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

.hero-announcements {
  position: absolute;
  top: 298px;
  right: 28px;
  bottom: 18px;
  left: 48%;
  z-index: 1;
  min-height: 260px;
  padding: 8px 6px 8px 12px;
  border: 1px solid rgba(111, 135, 80, 0.34);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.78);
}

.hero-announcements h2 {
  margin: 8px 14px 4px 10px;
  color: #e1dbc9;
  font-size: 1.15rem;
  line-height: 1;
}

.hero-announcements-list {
  height: calc(100% - 34px);
  padding: 10px 14px 18px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--roots-moss) rgba(9, 11, 9, 0.5);
}

.hero-announcements-list::-webkit-scrollbar {
  width: 9px;
}

.hero-announcements-list::-webkit-scrollbar-track {
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.5);
}

.hero-announcements-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 11, 9, 0.5);
  border-radius: 8px;
  background: var(--roots-moss);
}

.hero-announcements-empty {
  margin: 0;
  color: var(--roots-mist);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.announcement-card {
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 7px;
  background: rgba(9, 11, 9, 0.68);
}

.announcement-card + .announcement-card {
  margin-top: 14px;
}

.announcement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.announcement-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(159, 184, 114, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(111, 135, 80, 0.36), rgba(55, 77, 44, 0.54));
  color: #f4f0dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-tags span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f4f0dc;
}

.announcement-card-header {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.announcement-card-header h3,
.announcement-card-header time {
  margin: 0;
}

.announcement-card-header time {
  flex: 0 0 auto;
  color: var(--roots-stone);
  font-size: 0.82rem;
}

.announcement-card-body {
  color: var(--roots-mist);
  font-size: 0.94rem;
  line-height: 1.4;
}

.announcement-card--square .announcement-card-body {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  gap: 18px;
}

.announcement-card--square img,
.announcement-card--wide img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.announcement-card--square img {
  aspect-ratio: 1;
}

.announcement-card--wide img {
  max-height: 270px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 7;
}

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

.announcement-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-page .section {
  padding-block: clamp(42px, 5vw, 66px);
}

.home-page .section-heading h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.map-tech-layout {
  display: grid;
  grid-template-columns: minmax(430px, 720px) minmax(460px, 520px);
  gap: 24px;
  align-items: start;
  justify-content: center;
  margin-top: 24px;
}

.home-page .treasure-map {
  width: min(100%, 720px);
  justify-self: center;
  margin: 0;
  box-shadow: none;
  background: rgba(7, 10, 7, 0.62);
}

.home-page .treasure-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.home-page .stat-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.home-page .stat-grid article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
}

.home-page .stat-value-card,
.home-page .stat-grid article p {
  min-height: 120px;
  margin: 0;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(36, 48, 28, 0.82), rgba(14, 17, 13, 0.88));
}

.home-page .stat-value-card {
  display: flex;
  padding: 16px 14px;
  flex-direction: column;
  justify-content: center;
}

.home-page .stat-grid article p {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-page .tech-number {
  margin-bottom: 6px;
  max-width: 100%;
  font-size: clamp(1.9rem, 2.25vw, 2.45rem);
  white-space: nowrap;
}

.home-page .stat-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.home-page .tech-notes {
  margin-top: 14px;
}

.home-page .tech-notes p {
  min-height: 72px;
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.28;
}

.home-page .staff-grid {
  gap: 10px;
  margin-top: 20px;
}

.home-page .staff-grid article {
  min-height: 0;
  padding: 16px;
  box-shadow: none;
}

.home-page .staff-grid span {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.home-page .staff-grid h3 {
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.home-page .staff-grid p {
  margin-bottom: 3px;
  font-size: 0.82rem;
  line-height: 1.08;
}

.home-page .partners {
  gap: 24px;
}

.home-page .partners h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.home-page .partners p {
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .home-page .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .home-page .hero-content {
    width: min(820px, calc(100% - 36px));
  }

  .hero-character-cta {
    position: static;
    width: min(620px, calc(100% - 36px));
    margin: 0 auto;
    transform: none;
  }

  .hero-partner-banner {
    position: static;
    width: min(320px, calc(100% - 36px));
    margin: 14px auto 0;
  }

  .hero-partner-banner-wide {
    position: static;
    width: min(820px, calc(100% - 36px));
    margin: 14px auto 0;
  }

  .hero-announcements {
    position: relative;
    inset: auto;
    width: min(820px, calc(100% - 36px));
    height: 420px;
    margin: 18px auto 0;
  }
}

@media (max-width: 760px) {
  .home-page .hero-content {
    margin-top: 178px;
  }

  .map-tech-layout,
  .home-page .tech-notes,
  .home-page .staff-grid,
  .home-page .partners {
    grid-template-columns: 1fr;
  }

  .home-page .treasure-map {
    width: 100%;
    margin-right: 0;
  }

  .home-page .stat-grid {
    grid-template-columns: 1fr;
  }

  .home-page .stat-grid article {
    grid-template-columns: 1fr;
  }

  .journal-passwords {
    grid-template-columns: 1fr;
  }

  .home-page .stat-grid h3 {
    font-size: 0.78rem;
  }

  .home-page .treasure-map img {
    height: auto;
  }

  .home-page .stat-value-card,
  .home-page .stat-grid article p {
    min-height: auto;
  }

  .hero-announcements {
    height: 340px;
  }

  .announcement-card--square .announcement-card-body {
    grid-template-columns: 1fr;
  }

  .mort-rp-shell {
    width: min(100% - 24px, 620px);
    padding-top: 104px;
  }

  .mort-rp-card-inner {
    grid-template-columns: 1fr;
  }

  .mort-rp-marius .survivor-frame {
    width: min(190px, 52vw);
  }

  .mort-rp-dialogue {
    min-height: auto;
  }

  .mort-rp-actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .mort-rp-actions .button {
    width: 100%;
  }
}

.vote-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.rules-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(54, 94, 63, 0.24), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(111, 135, 80, 0.1), transparent 26rem),
    linear-gradient(180deg, #131713, #1a201b 42%, #090b09);
}

.rules-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 124px 0 72px;
}

.rules-hero {
  max-width: 920px;
  margin-bottom: 28px;
}

.rules-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 6.4vw, 6.4rem);
}

.rules-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.18vw, 1.08rem);
  line-height: 1.34;
}

.rules-updated {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(225, 219, 201, 0.06);
}

.rules-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}

.rules-summary a {
  padding: 10px 13px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 6px;
  background: rgba(225, 219, 201, 0.055);
  color: #e1dbc9;
  font-weight: 800;
}

.rules-card {
  position: relative;
  margin-bottom: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 94, 63, 0.18), transparent 48%),
    rgba(19, 23, 19, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  scroll-margin-top: 90px;
}

.rules-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.9vw, 3rem);
}

.rules-card h3 {
  color: var(--gold);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
}

.rules-card p,
.rules-card li {
  max-width: 940px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  line-height: 1.34;
}

.rules-card strong {
  color: #e1dbc9;
}

.rules-card ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.rules-card blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  background: rgba(111, 135, 80, 0.09);
  color: #e1dbc9;
  font-weight: 800;
}

.rules-number {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.rules-intro {
  border-color: rgba(111, 135, 80, 0.34);
  background:
    radial-gradient(circle at 16% 10%, rgba(111, 135, 80, 0.12), transparent 28%),
    rgba(19, 23, 19, 0.78);
}

.rules-grid,
.rules-lexicon {
  display: grid;
  gap: 14px;
}

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

.rules-grid article,
.rules-lexicon article {
  padding: 15px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 7px;
  background: rgba(225, 219, 201, 0.045);
}

.rules-lexicon {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rules-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 15px;
}

.rules-limits span,
.rules-note {
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 6px;
  background: rgba(225, 219, 201, 0.055);
}

.rules-spirit {
  text-align: center;
  border-color: rgba(111, 135, 80, 0.34);
}

.rules-spirit .rules-number {
  display: flex;
  width: 100%;
  justify-content: center;
}

.rules-spirit h2 {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.rules-spirit p,
.rules-spirit blockquote {
  margin-inline: auto;
}

.vote-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  justify-items: center;
  padding: 76px clamp(18px, 7vw, 96px) 34px;
  isolation: isolate;
}

.vote-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.08), rgba(225, 219, 201, 0.025)),
    rgba(19, 23, 19, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.vote-main-card {
  width: min(690px, 100%);
  justify-self: center;
  padding: clamp(18px, 2.6vw, 28px);
}

.vote-main-card h1,
.vote-main-card h2,
.vote-month-card h2 {
  max-width: none;
  text-align: center;
}

.vote-main-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 0.96;
}

.vote-main-card h2,
.vote-month-card h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
}

.vote-cta {
  display: flex;
  width: min(210px, 100%);
  min-height: 42px;
  margin: 8px auto 18px;
  font-size: 1.05rem;
}

.vote-main-card hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: rgba(111, 135, 80, 0.24);
}

.vote-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  color: var(--muted);
}

.vote-table th,
.vote-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(111, 135, 80, 0.12);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.14;
}

.vote-table th {
  color: #e1dbc9;
  font-weight: 800;
}

.vote-table tbody tr:nth-child(1) {
  background: rgba(111, 135, 80, 0.13);
}

.vote-table tbody tr:nth-child(2) {
  background: rgba(214, 214, 214, 0.08);
}

.vote-table tbody tr:nth-child(3) {
  background: rgba(166, 101, 48, 0.1);
}

.vote-table td:first-child,
.vote-table th:first-child,
.vote-table td:last-child,
.vote-table th:last-child {
  text-align: center;
}

.vote-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: 800;
}

.rank-trophy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 240, 190, 0.36);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.rank-trophy::before {
  content: "";
  width: 12px;
  height: 9px;
  border: 2px solid rgba(42, 33, 27, 0.85);
  border-top-width: 4px;
  border-radius: 3px 3px 9px 9px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    -8px 2px 0 -5px rgba(42, 33, 27, 0.78),
    8px 2px 0 -5px rgba(42, 33, 27, 0.78);
}

.rank-trophy::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 12px;
  height: 5px;
  border-top: 4px solid rgba(42, 33, 27, 0.85);
  border-bottom: 2px solid rgba(42, 33, 27, 0.85);
  border-radius: 1px;
}

.rank-trophy.gold {
  background: linear-gradient(145deg, #fff1a6, #6f8750 48%, #8a5a12);
}

.rank-trophy.silver {
  background: linear-gradient(145deg, #ffffff, #c8c9c7 48%, #72756f);
}

.rank-trophy.bronze {
  background: linear-gradient(145deg, #ffd0a0, #b8753b 48%, #6d361b);
}

.vote-name,
.vote-count {
  font-weight: 800;
}

.vote-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

.vote-month-card {
  position: absolute;
  top: 50%;
  right: clamp(18px, 7vw, 96px);
  width: 280px;
  transform: translateY(-50%);
  padding: 20px;
}

.vote-winner {
  margin: 12px 0 6px;
  color: #e1dbc9;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.vote-month-card span {
  display: block;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.vote-partner-panel {
  position: absolute;
  top: 138px;
  left: clamp(18px, 5vw, 76px);
  z-index: 2;
  display: block;
  width: min(210px, 16vw);
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.vote-partner-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.vote-partner-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.lore-partner-panel {
  position: absolute;
  top: 138px;
  right: clamp(18px, 5vw, 76px);
  z-index: 2;
  display: block;
  width: min(210px, 16vw);
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.lore-partner-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.lore-partner-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.guestbook-partner-footer {
  display: flex;
  justify-content: center;
  width: min(1000px, calc(100% - 36px));
  margin: 34px auto 18px;
}

.guestbook-partner-footer a {
  display: block;
  width: 100%;
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.guestbook-partner-footer a:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.guestbook-partner-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.ticket-shell {
  max-width: 980px;
}

.ticket-page .rules-hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.4rem);
}

.ticket-page .rules-hero p {
  font-size: clamp(0.92rem, 1.08vw, 1.02rem);
  line-height: 1.32;
}

.ticket-card {
  max-width: 760px;
}

.ticket-card .admin-edit-form {
  gap: 13px;
}

.ticket-card label {
  font-size: 0.96rem;
}

.ticket-card input,
.ticket-card textarea {
  font-size: 0.98rem;
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.support-ticket-list,
.support-ticket-detail {
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.58);
}

.support-ticket-row {
  position: relative;
  display: grid;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 7px;
  background: rgba(225, 219, 201, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.menu-unread-badge,
.admin-nav-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(255, 210, 194, 0.72);
  border-radius: 999px;
  background: #9d2f22;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.button .menu-unread-badge,
.support-ticket-menu-button .menu-unread-badge {
  right: -8px;
}

.admin-page .admin-side-nav a .admin-nav-badge {
  top: -6px;
  right: -6px;
}

.mort-rp-request-summary {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(111, 135, 80, 0.07);
}

.mort-rp-request-summary p {
  margin: 0;
}

.mort-rp-state {
  justify-self: start;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(111, 135, 80, 0.34);
  border-radius: 999px;
  color: #cdddbc;
  font-size: 0.78rem;
  font-weight: 800;
}

.mort-rp-state.validated {
  color: #7ee08f;
}

.mort-rp-state.refused {
  color: #ffb4a8;
}

.mort-rp-validation-panel {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px auto;
  padding: 18px;
  border: 1px solid rgba(83, 151, 88, 0.32);
  border-radius: 8px;
  background: rgba(28, 60, 34, 0.18);
}

.mort-rp-validation-panel img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.mort-rp-validation-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #b8efb8;
  font-size: 1.3rem;
}

.mort-rp-validation-panel span {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mort-rp-admin-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.support-ticket-row.active,
.support-ticket-row:hover {
  border-color: rgba(164, 179, 141, 0.52);
  background: rgba(111, 135, 80, 0.14);
}

.admin-context-menu {
  position: fixed;
  z-index: 9999;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid rgba(164, 179, 141, 0.34);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.96);
  backdrop-filter: blur(10px);
}

.admin-context-menu button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e1dbc9;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-context-menu button:hover:not(:disabled) {
  background: rgba(111, 135, 80, 0.18);
}

.admin-context-menu button.danger {
  color: #ffb8a8;
}

.admin-context-menu button.danger:hover:not(:disabled) {
  background: rgba(157, 47, 34, 0.28);
}

.admin-context-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.archive-type-badge {
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(164, 179, 141, 0.38);
  border-radius: 999px;
  color: #b3cf80;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-thread {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.support-message {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.06);
}

.support-message.staff {
  justify-self: end;
  background: rgba(54, 94, 63, 0.22);
}

.support-message header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--gold);
}

.support-message time {
  color: var(--muted);
  font-size: 0.82rem;
}

.support-message p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.support-message img {
  max-width: min(420px, 100%);
  margin-top: 10px;
  border-radius: 6px;
}

.support-reply-form {
  margin-top: 18px;
}

footer,
.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px clamp(18px, 7vw, 96px);
  border-top: 1px solid rgba(111, 135, 80, 0.18);
  background: rgba(9, 11, 9, 0.58);
  color: var(--roots-mist);
  text-align: center;
}

footer p,
.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  font-weight: 800;
}

.site-footer strong {
  color: var(--gold);
}

.sheet-open {
  overflow: hidden;
}

.sheet-modal[aria-hidden="true"] {
  display: none;
}

.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  animation: modal-fade 170ms ease both;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 9, 0.78);
  backdrop-filter: blur(10px);
}

.sheet-window {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.08), rgba(225, 219, 201, 0.02)),
    #131713;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
  animation: modal-rise 210ms ease both;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(19, 23, 19, 0.72);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sheet-close:hover {
  border-color: rgba(164, 179, 141, 0.5);
  background: rgba(54, 94, 63, 0.64);
  transform: translateY(-1px);
}

.sheet-start > p,
.sheet-edit-login > p {
  max-width: 680px;
  color: var(--muted);
}

.sheet-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.sheet-choice {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sheet-choice strong,
.sheet-choice span {
  display: block;
}

.sheet-choice strong {
  margin-bottom: 10px;
  color: #e1dbc9;
  font-size: 1.25rem;
}

.sheet-choice span {
  color: var(--muted);
}

.sheet-progress {
  height: 7px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 219, 201, 0.12);
}

.sheet-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--roots-leaf), var(--roots-moss));
  transition: width 220ms ease;
}

.dialogue-stage {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  transition: transform 220ms ease, opacity 220ms ease;
}

.dialogue-stage.is-leaving-left {
  opacity: 0;
  transform: translateX(-56px);
}

.dialogue-stage.is-leaving-right {
  opacity: 0;
  transform: translateX(56px);
}

.dialogue-stage.is-entering-right {
  animation: mortSlideRight 240ms ease both;
}

.dialogue-stage.is-entering-left {
  animation: mortSlideLeft 240ms ease both;
}

.survivor-side {
  display: grid;
  gap: 12px;
}

.survivor-frame {
  width: 240px;
  aspect-ratio: 523 / 612;
  overflow: hidden;
  border: 1px solid rgba(111, 135, 80, 0.3);
  border-radius: 8px;
  background: #090b09;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.survivor-portrait {
  width: 100%;
  height: 100%;
  background-image: url("assets/survivor-neutral.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.survivor-frame[data-expression="neutral"] .survivor-portrait {
  background-image: url("assets/survivor-neutral.png");
}

.survivor-frame[data-expression="reassuring"] .survivor-portrait {
  background-image: url("assets/survivor-reassuring.png");
}

.survivor-frame[data-expression="concerned"] .survivor-portrait {
  background-image: url("assets/survivor-concerned.png");
}

.survivor-frame[data-expression="warning"] .survivor-portrait {
  background-image: url("assets/survivor-warning.png");
}

.dialogue-content {
  min-height: 360px;
  padding: 26px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.62);
}

.speaker {
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.dialogue-line {
  min-height: 88px;
  margin-bottom: 44px;
  color: #e1dbc9;
  font-size: clamp(1.05rem, 1.65vw, 1.42rem);
  font-weight: 700;
  line-height: 1.28;
}

.sheet-intro,
.sheet-complete {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.sheet-intro h2,
.sheet-complete h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.sheet-intro p,
.sheet-complete p {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.sheet-close.inline {
  position: absolute;
  top: 12px;
  right: 12px;
}

.survivor-help {
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.72);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.survivor-help p {
  margin: 0;
}

.trait-guide-help {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(111, 135, 80, 0.55);
  border-radius: 999px;
  background: rgba(34, 25, 18, 0.9);
  color: #e1dbc9;
  font-family: var(--display-font);
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
}

.trait-guide-help:hover {
  border-color: rgba(255, 199, 96, 0.9);
  color: #e1dbc9;
}

.mort-rp-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(9, 11, 9, 0.72), rgba(9, 11, 9, 0.84)),
    url("assets/journal-background.jpg") center / cover fixed,
    #090b09;
}

.mort-rp-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 116px 0 72px;
}

.mort-rp-hero {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.mort-rp-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.86;
}

.mort-rp-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.mort-rp-form-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 0%, rgba(54, 94, 63, 0.16), transparent 34%),
    rgba(9, 11, 9, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.mort-rp-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 38px;
  margin: 0 0 12px;
  padding: 7px 14px;
  border: 1px solid rgba(111, 135, 80, 0.32);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.72);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mort-rp-cancel:hover {
  border-color: rgba(164, 179, 141, 0.58);
  background: rgba(54, 94, 63, 0.22);
  transform: translateY(-1px);
}

.mort-rp-progress {
  height: 4px;
  background: rgba(225, 219, 201, 0.1);
}

.mort-rp-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--roots-leaf), var(--roots-moss));
  transition: width 220ms ease;
}

.mort-rp-card-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(22px, 4vw, 42px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.mort-rp-card-inner.is-leaving-left {
  opacity: 0;
  transform: translateX(-56px);
}

.mort-rp-card-inner.is-leaving-right {
  opacity: 0;
  transform: translateX(56px);
}

.mort-rp-card-inner.is-entering-right {
  animation: mortSlideRight 240ms ease both;
}

.mort-rp-card-inner.is-entering-left {
  animation: mortSlideLeft 240ms ease both;
}

@keyframes mortSlideRight {
  from {
    opacity: 0;
    transform: translateX(56px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mortSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-56px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mort-rp-marius {
  justify-items: center;
}

.mort-rp-dialogue {
  min-height: 420px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 10px;
  background: rgba(19, 23, 19, 0.7);
}

.mort-rp-dialogue h2 {
  max-width: 740px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.95;
}

.mort-rp-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.56;
}

.mort-rp-field {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 22px;
}

.mort-rp-field label {
  color: var(--text);
  font-weight: 800;
}

.mort-rp-field input,
.mort-rp-field textarea {
  width: 100%;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 8px;
  background: rgba(5, 7, 5, 0.84);
  color: var(--text);
  font: inherit;
}

.mort-rp-field input {
  min-height: 48px;
  padding: 10px 14px;
}

.mort-rp-field textarea {
  min-height: 190px;
  resize: vertical;
  padding: 12px 14px;
}

.mort-rp-suggestions {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
}

.mort-rp-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.05);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mort-rp-suggestions button:hover {
  border-color: rgba(164, 179, 141, 0.58);
  background: rgba(54, 94, 63, 0.18);
}

.mort-rp-suggestions button.is-selected {
  border-color: rgba(164, 179, 141, 0.78);
  background: rgba(54, 94, 63, 0.3);
}

.mort-rp-suggestions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mort-rp-suggestion-empty {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.mort-rp-missing {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(111, 135, 80, 0.3);
  border-radius: 999px;
  background: rgba(19, 23, 19, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.mort-rp-missing span {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(225, 219, 201, 0.62);
  border-radius: 50%;
}

.mort-rp-missing.is-active {
  border-color: rgba(164, 179, 141, 0.7);
  color: var(--text);
}

.mort-rp-missing.is-active span {
  background: var(--roots-moss);
  box-shadow: inset 0 0 0 3px rgba(9, 11, 9, 0.86);
}

.mort-rp-unknown-details {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.045);
}

.mort-rp-unknown-details[hidden] {
  display: none;
}

.mort-rp-unknown-details small {
  color: var(--muted);
  line-height: 1.45;
}

.mort-rp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.mort-rp-actions .button {
  min-width: 150px;
}

.mort-rp-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.field-zone label small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.optional-tag {
  color: var(--gold);
  font-size: 0.92em;
}

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

.guide-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(116, 30, 20, 0.24), transparent 34%),
    linear-gradient(180deg, #131713 0%, #090b09 100%);
}

.guide-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 72px;
}

.guide-shell h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
}

.guide-lead {
  max-width: 760px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.guide-section {
  margin-top: 34px;
}

.guide-section h2 {
  margin-bottom: 16px;
  color: #e1dbc9;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.guide-grid,
.guide-columns {
  display: grid;
  gap: 14px;
}

.guide-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.guide-columns {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.guide-grid article,
.guide-card {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(29, 21, 17, 0.7);
}

.guide-grid h3,
.guide-card h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.12rem;
}

.guide-grid p,
.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.72);
  color: var(--text);
  font: inherit;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 140px;
  padding: 12px 14px;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.sheet-status {
  margin: 14px 0 0;
  color: #e1dbc9;
  font-weight: 800;
}

@keyframes lrde-view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lrde-soft-pulse {
  0% {
    opacity: 0.46;
  }
  50% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.46;
  }
}

.view-fade-in,
.journal-board > *,
.admin-page .sheet-detail > *,
.admin-page .admin-list-panel > *,
.admin-page .support-ticket-row,
.admin-page .radio-signal-card,
.admin-page .announcement-card {
  animation: lrde-view-in 180ms ease both;
}

.lrde-loader-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.54);
}

.lrde-loader-line {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 135, 80, 0.18), rgba(225, 219, 201, 0.1), rgba(111, 135, 80, 0.18));
  animation: lrde-soft-pulse 1.15s ease-in-out infinite;
}

.lrde-loader-line.short {
  width: 56%;
}

.lrde-loader-line.medium {
  width: 78%;
}

@media (prefers-reduced-motion: reduce) {
  .view-fade-in,
  .journal-board > *,
  .admin-page .sheet-detail > *,
  .admin-page .admin-list-panel > *,
  .admin-page .support-ticket-row,
  .admin-page .radio-signal-card,
  .admin-page .announcement-card,
  .lrde-loader-line {
    animation: none;
  }
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 94, 63, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(111, 135, 80, 0.08), transparent 24rem),
    linear-gradient(180deg, #131713, #131713 48%, #090b09);
}

.admin-page.admin-auth-loading .admin-login,
.admin-page.admin-auth-loading .admin-panel {
  visibility: hidden;
}

.admin-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 72px;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 158px);
  place-items: center;
}

.admin-login-card {
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 10%, rgba(111, 135, 80, 0.12), transparent 34%),
    rgba(19, 23, 19, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.admin-login-intro {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.admin-login h1,
.admin-panel h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.96;
}

.admin-login form,
.admin-edit-form {
  display: grid;
  gap: 16px;
}

.admin-login label small,
.admin-edit-form label small {
  color: rgba(185, 189, 181, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.admin-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 24px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 6px;
  background: rgba(225, 219, 201, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-tabs button.active {
  background: rgba(111, 135, 80, 0.18);
  color: #e1dbc9;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-workspace-main {
  min-width: 0;
  font-size: 0.95rem;
}

.admin-side-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.68);
}

.admin-side-nav h2 {
  margin: 0;
  color: #e1dbc9;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.admin-side-nav hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(111, 135, 80, 0.18);
}

.admin-side-nav .admin-nav-divider {
  margin: 4px 0;
  border-top-color: rgba(111, 135, 80, 0.34);
}

.rcon-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.rcon-card {
  padding: 22px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.62);
}

.rcon-card h2,
.rcon-password-dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.rcon-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.6fr) minmax(220px, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.rcon-form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.rcon-command-actions,
.rcon-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rcon-list-heading,
.rcon-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rcon-list-heading strong {
  color: var(--gold);
  white-space: nowrap;
}

.rcon-player-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.rcon-player-row {
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 6px;
  background: rgba(225, 219, 201, 0.035);
}

.rcon-row-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.rcon-row-actions .button,
.rcon-command-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.rcon-empty {
  color: var(--muted);
}

.rcon-password-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.35);
  border-radius: 8px;
  background: #131713;
  color: var(--cream);
}

.rcon-password-dialog::backdrop {
  background: rgba(5, 3, 2, 0.76);
  backdrop-filter: blur(3px);
}

.access-settings-panel {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.7);
  backdrop-filter: blur(10px);
}

.access-settings-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
}

.access-settings-panel p {
  margin: 0;
  color: var(--muted);
}

.access-settings-grid {
  display: grid;
  gap: 12px;
}

.access-toggle-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(7, 11, 7, 0.42);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.access-toggle-card:hover {
  border-color: rgba(164, 179, 141, 0.42);
  background: rgba(111, 135, 80, 0.09);
}

.access-toggle-card input {
  width: 28px;
  height: 28px;
  accent-color: var(--roots-leaf);
}

.access-toggle-card span {
  display: grid;
  gap: 5px;
}

.access-toggle-card strong {
  color: var(--roots-parchment);
  font-size: 1.04rem;
}

.access-toggle-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.access-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.admin-profile {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 6px;
  background: rgba(111, 135, 80, 0.08);
}

.server-dashboard-shortcut {
  position: absolute;
  top: 0;
  right: calc(100% + 18px);
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 12px;
  background: rgba(9, 11, 9, 0.42);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.server-dashboard-shortcut:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.58);
  background: rgba(111, 135, 80, 0.16);
}

.server-dashboard-shortcut img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  display: block;
}

.admin-profile:empty {
  display: none;
}

.admin-profile p {
  margin: 0;
  color: #e1dbc9;
  font-weight: 800;
}

.admin-profile button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(225, 219, 201, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.admin-profile button:hover {
  color: #e1dbc9;
}

.admin-side-nav a {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-side-nav a.active,
.admin-side-nav a:hover {
  background: rgba(111, 135, 80, 0.14);
  color: #e1dbc9;
}

.admin-list-panel {
  display: grid;
  gap: 10px;
}

.admin-filter {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
  color: var(--gold);
  font-size: 0.92rem;
}

.admin-filter select {
  min-height: 38px;
  font-size: 0.95rem;
}

.locked-player-info {
  opacity: 0.78;
}

.locked-player-info input:disabled {
  color: rgba(225, 219, 201, 0.72);
  cursor: not-allowed;
}

.sheet-list,
.sheet-detail {
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.sheet-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.sheet-list button {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(111, 135, 80, 0.12);
  background: rgba(225, 219, 201, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sheet-list button.active,
.sheet-list button:hover {
  background: rgba(111, 135, 80, 0.14);
}

.sheet-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.sheet-valid-badge,
.sheet-whitelist-badge,
.sheet-sponsor-badge,
.sheet-status-badge {
  font-weight: 800;
}

.sheet-valid-badge {
  color: #70d580;
}

.sheet-whitelist-badge {
  color: #63a9ff;
}

.sheet-sponsor-badge {
  color: #c184ff;
}

.group-status-badge {
  font-weight: 800;
}

.group-status-badge.active {
  color: var(--muted);
}

.group-status-badge.validated {
  color: #70d580;
}

.group-status-badge.refused {
  color: #ff5a4a;
}

.sheet-status-badge.active {
  color: var(--muted);
}

.sheet-status-badge.banned {
  color: #ff5a4a;
}

.sheet-status-badge.dead {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(225, 219, 201, 0.72);
  color: #090b09;
}

.sheet-detail {
  padding: 22px;
}

.sheet-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 22vw, 250px);
  gap: 22px;
  align-items: start;
}

.sheet-detail-head p {
  color: var(--muted);
}

.sheet-detail h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
}

.sheet-detail h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.sheet-detail-portrait {
  justify-self: end;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.72);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.sheet-detail-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.server-whitelist-button {
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(179, 207, 128, 0.28);
  background: rgba(111, 135, 80, 0.12);
  color: #dceec0;
  font-size: 0.72rem;
}

.server-whitelist-button:hover {
  border-color: rgba(179, 207, 128, 0.52);
  background: rgba(111, 135, 80, 0.22);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 28px;
}

.admin-actions .button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 0.84rem;
}

.admin-actions-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
}

.button.danger {
  border-color: rgba(185, 63, 37, 0.5);
  color: #ffd1c5;
}

.button.validate {
  border-color: rgba(112, 213, 128, 0.55);
  background: linear-gradient(180deg, #268845, #145329);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.button.whitelist {
  border-color: rgba(99, 169, 255, 0.62);
  background: linear-gradient(180deg, #286aa8, #143c68);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.button.sponsor {
  border-color: rgba(193, 132, 255, 0.62);
  background: linear-gradient(180deg, #7843b8, #3f2268);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.button.validated,
.button.whitelisted,
.button.sponsored {
  border-color: rgba(112, 213, 128, 0.32);
  background: rgba(170, 170, 170, 0.16);
  color: #70d580;
  cursor: default;
}

.button.whitelisted {
  border-color: rgba(99, 169, 255, 0.32);
  color: #63a9ff;
}

.button.sponsored {
  border-color: rgba(193, 132, 255, 0.32);
  color: #c184ff;
}

.button.validated:hover,
.button.whitelisted:hover,
.button.sponsored:hover {
  transform: none;
}

.sheet-admin-section {
  padding: 18px 0;
  border-top: 1px solid rgba(111, 135, 80, 0.16);
}

.sheet-admin-section dl {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 12px;
}

.sheet-admin-section dt {
  color: var(--gold);
  font-weight: 800;
}

.sheet-admin-section dd {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.staff-sheet-create-form {
  display: grid;
  gap: 14px;
}

.staff-sheet-create-form .form-hint {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.staff-image-field {
  display: grid;
  gap: 8px;
}

.optional-label {
  color: rgba(225, 219, 201, 0.62);
  font-size: 0.84em;
  font-style: italic;
}

.staff-sheet-preview {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(111, 135, 80, 0.25);
  border-radius: 6px;
  object-fit: cover;
  background: rgba(9, 11, 9, 0.72);
}

.staff-create-actions {
  align-items: center;
  justify-content: center;
}

.player-list-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.player-list-card .form-hint {
  margin: 0;
  color: var(--muted);
}

.player-list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.14);
  border-radius: 7px;
  background: rgba(225, 219, 201, 0.035);
}

.player-list-tools strong {
  color: #e1dbc9;
}

.player-list-tools label {
  display: grid;
  gap: 5px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
}

.player-list-tools select {
  min-height: 32px;
  min-width: 150px;
  font-size: 0.88rem;
}

.player-search {
  margin: 0;
}

.player-admin-list {
  display: grid;
  gap: 8px;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.admin-pagination span {
  min-width: 190px;
  color: rgba(225, 219, 201, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.player-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 7px;
  background: rgba(225, 219, 201, 0.035);
}

.player-admin-row p {
  margin: 0;
  color: var(--muted);
}

.player-admin-row p strong {
  color: #e1dbc9;
}

.player-admin-row > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.button.tiny {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 0.78rem;
}

.button.subtle {
  opacity: 0.78;
  font-size: 0.9rem;
}

.button.subtle:hover {
  opacity: 1;
}

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

.staff-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  margin-top: 24px;
}

.announcements-admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 22px;
  margin-top: 24px;
}

.staff-role-editor,
.staff-current-list,
.guestbook-form-card,
.guestbook-list-section,
.announcement-admin-form,
.announcement-admin-preview {
  padding: 22px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.staff-role-editor,
.announcement-admin-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.staff-role-editor h2,
.staff-current-list h2,
.guestbook-form-card h2,
.guestbook-list-section h2,
.announcement-admin-form h2,
.announcement-admin-preview h2 {
  margin: 0 0 8px;
  color: #e1dbc9;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

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

.announcement-tag-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.035);
}

.announcement-tag-panel legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 900;
}

.announcement-tag-grid,
.announcement-custom-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.announcement-tag-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.32);
  color: #e1dbc9;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.announcement-tag-grid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--roots-sage);
}

.announcement-custom-tags label {
  gap: 6px;
}

.announcement-admin-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.announcement-admin-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.035);
}

.announcement-admin-card.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.announcement-admin-card + .announcement-admin-card {
  margin-top: 10px;
}

.announcement-admin-card img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.announcement-admin-card header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.announcement-admin-card h3,
.announcement-admin-card p {
  margin: 0;
}

.announcement-admin-card p {
  margin-top: 8px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.announcement-admin-card time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.staff-role-editor label {
  display: grid;
  gap: 6px;
}

.panel-access-manager {
  margin-top: 22px;
}

.panel-access-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.8fr);
  gap: 14px;
}

.staff-member-list {
  display: grid;
  gap: 10px;
}

.staff-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.staff-current-list > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-current-card {
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.04);
}

.staff-current-card.locked {
  opacity: 0.82;
}

.staff-current-card span {
  color: var(--gold);
  font-weight: 800;
}

.staff-current-card h3 {
  margin: 12px 0;
  font-size: 1.18rem;
}

.staff-current-card p {
  margin: 0 0 5px;
  color: var(--muted);
}

.guestbook-admin-layout {
  margin-top: 24px;
}

.guestbook-admin-comment {
  min-height: 180px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.14);
  border-radius: 8px;
  color: var(--muted);
  white-space: pre-wrap;
}

.guestbook-admin-form {
  max-width: 760px;
}

.sheet-detail-head.single {
  display: block;
}

.interview-heading img {
  width: clamp(92px, 10vw, 140px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.35));
}

.interview-sheet {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.055), rgba(225, 219, 201, 0.025)),
    rgba(19, 23, 19, 0.62);
  overflow: hidden;
}

.interview-sheet section {
  position: relative;
  z-index: 1;
  padding: 20px 22px 20px 78px;
  border: 1px solid rgba(111, 135, 80, 0.15);
  border-radius: 8px;
  background: rgba(10, 8, 7, 0.48);
}

.interview-sheet section > span {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 135, 80, 0.32);
  border-radius: 50%;
  background: rgba(111, 135, 80, 0.12);
  color: #e1dbc9;
  font-weight: 800;
}

.interview-sheet h2 {
  margin: 0 0 10px;
  color: #e1dbc9;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
}

.interview-sheet h3 {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: 1.18rem;
}

.interview-sheet p,
.interview-sheet li,
.interview-sheet dd {
  color: var(--muted);
}

.interview-sheet ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.interview-sheet li {
  margin-bottom: 6px;
}

.interview-sheet dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 12px 0 0;
}

.interview-sheet dt {
  color: var(--gold);
  font-weight: 800;
}

.interview-sheet dd {
  margin: 0;
}

.interview-sheet em {
  color: #e1dbc9;
}

.interview-note {
  margin-top: 12px;
  color: #e1dbc9 !important;
  font-weight: 700;
}

.interview-deco.large {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: clamp(190px, 28vw, 340px);
  opacity: 0.16;
  pointer-events: none;
}

.journal-shell {
  width: min(1540px, calc(100% - 36px));
}

.journal-partner-footer {
  display: flex;
  justify-content: center;
  width: min(760px, calc(100% - 36px));
  margin: 34px auto 18px;
}

.journal-partner-footer a {
  display: block;
  width: 100%;
  border: 1px solid rgba(111, 135, 80, 0.42);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 11, 9, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.journal-partner-footer a:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 179, 141, 0.68);
  filter: brightness(1.08);
}

.journal-partner-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.journal-shell .admin-heading {
  margin-bottom: 15px;
}

.journal-layout {
  display: grid;
  grid-template-columns: 230px 330px minmax(680px, 1fr);
  gap: 18px;
  align-items: start;
}

.journal-layout:has(.journal-server-reconnect[hidden]) {
  grid-template-columns: 330px minmax(680px, 1fr);
  justify-content: center;
}

.journal-server-reconnect,
.journal-menu,
.journal-board {
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.journal-server-reconnect {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 14px;
  margin-top: 190px;
}

.journal-server-reconnect[hidden] {
  display: none;
}

.journal-server-reconnect .button {
  min-height: 54px;
  padding-inline: 12px;
  font-size: 0.78rem;
  line-height: 1.16;
}

.journal-server-reconnect .sheet-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
}

.journal-menu {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
}

.journal-menu-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.journal-menu section {
  display: grid;
  gap: 10px;
}

.journal-menu section hr {
  width: 100%;
  margin: 8px 0 4px;
  border: 0;
  border-top: 1px solid rgba(111, 135, 80, 0.18);
}

.journal-menu h2 {
  margin-bottom: 4px;
  color: #e1dbc9;
  font-size: 1.2rem;
  line-height: 1.1;
}

.journal-menu .button {
  width: 100%;
  min-height: 40px;
  font-size: 0.95rem;
}

.journal-ticket-buttons {
  display: grid;
  gap: 10px;
}

.journal-passwords {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.journal-passwords .password-card {
  display: grid;
  grid-template-rows: auto auto minmax(54px, auto) 1fr;
  align-content: start;
  min-height: 360px;
}

.journal-passwords .password-card.disabled {
  opacity: 0.72;
}

.compact-password-form {
  margin-top: 0;
}

.compact-password-form .button {
  justify-self: start;
  min-width: 180px;
}

.journal-sheet-view {
  width: 100%;
}

.journal-board {
  justify-self: center;
  width: 100%;
  max-width: 920px;
  min-height: 720px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
}

.journal-pages {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.journal-reader {
  position: relative;
  width: min(780px, 100%);
  margin: 0 auto;
}

.journal-edit-page-button {
  position: absolute;
  top: 58px;
  right: 62px;
  z-index: 2;
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.journal-paper[hidden] {
  display: none;
}

.journal-paper:not([hidden]) {
  animation: journalPageIn 180ms ease;
}

@keyframes journalPageIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.journal-paper {
  position: relative;
  width: min(680px, 100%);
  min-height: 820px;
  padding: 250px 78px 80px 122px;
  background: url("assets/journal-paper.png") center / 118% 118% no-repeat;
  color: #2a211b;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.34));
}

.journal-paper time {
  position: absolute;
  right: 92px;
  bottom: 145px;
  color: #6b4a2c;
  font-size: 1rem;
  font-weight: 800;
}

.journal-paper h2 {
  margin-bottom: 12px;
  color: #2a211b;
  font-family: "Mayonice", "EB Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 0.96;
  text-shadow: none;
}

.journal-paper p {
  color: #2a211b;
  font-family: "Mayonice", "EB Garamond", Georgia, serif;
  font-size: 1.36rem;
  font-weight: 400;
  line-height: 1.24;
  white-space: pre-wrap;
}

.journal-page-arrow {
  position: absolute;
  z-index: 4;
  bottom: 145px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  opacity: 0.5;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.journal-page-arrow::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 7px solid rgba(190, 190, 190, 0.9);
  border-right: 7px solid rgba(190, 190, 190, 0.9);
}

.journal-page-arrow.prev {
  left: 0;
}

.journal-page-arrow.next {
  right: 0;
}

.journal-page-arrow.prev::before {
  transform: rotate(-135deg);
}

.journal-page-arrow.next::before {
  transform: rotate(45deg);
}

.journal-page-arrow:hover:not(:disabled) {
  opacity: 0.72;
  transform: translateY(-2px);
}

.journal-page-arrow:disabled {
  opacity: 0.16;
  cursor: default;
}

.radio-feed {
  display: grid;
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.radio-feed-head {
  text-align: center;
}

.radio-feed-head h2 {
  margin-inline: auto;
}

.radio-signal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 260px);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(54, 94, 63, 0.18), transparent 42%),
    repeating-linear-gradient(0deg, rgba(225, 219, 201, 0.035) 0 1px, transparent 1px 5px),
    rgba(10, 8, 7, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.radio-signal-card.compact {
  grid-template-columns: minmax(0, 1fr) 110px;
  padding: 14px;
}

.radio-signal-card h3 {
  margin-bottom: 8px;
  color: var(--gold);
}

.radio-signal-card p {
  margin-bottom: 12px;
  color: #e1dbc9;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.radio-signal-card time {
  color: rgba(185, 189, 181, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.radio-signal-card img {
  width: 100%;
  max-height: 190px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 7px;
  object-fit: cover;
}

.radio-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.radio-admin-form,
.radio-admin-preview {
  padding: 20px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.radio-admin-preview {
  display: grid;
  gap: 12px;
}

.journal-paper.editor {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 980px;
}

.journal-paper.editor label {
  color: #2a211b;
}

.journal-paper.editor input,
.journal-paper.editor textarea {
  border-color: rgba(80, 50, 28, 0.24);
  background: rgba(255, 252, 236, 0.46);
  color: #2a211b;
  font-family: "Mayonice", "EB Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.journal-paper.editor textarea {
  min-height: 300px;
  max-height: 390px;
}

.journal-form-status {
  width: min(680px, 100%);
  margin: 12px auto 0;
}

.journal-empty {
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.05);
  color: var(--muted);
}

.journal-profile-image {
  width: min(360px, 100%);
  max-height: 480px;
  margin: 0 auto 24px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.journal-edit-form {
  max-width: 980px;
}

.survivor-journals {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.public-journal-list {
  margin-top: 14px;
}

.public-journal-pages {
  min-width: 0;
}

.group-panel {
  display: grid;
  gap: 22px;
}

.group-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.group-panel-head,
.group-page-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.group-list {
  display: grid;
  gap: 12px;
}

.group-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.045);
}

.group-list-item div {
  display: grid;
  gap: 4px;
}

.group-list-item strong {
  color: #e1dbc9;
  font-size: 1.2rem;
}

.group-list-item span,
.group-help {
  color: var(--muted);
}

.group-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(111, 135, 80, 0.16);
}

.group-section h3 {
  margin: 0;
  color: #e1dbc9;
  font-size: 1.35rem;
}

.group-section p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

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

.group-members li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 135, 80, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
}

.group-members strong {
  color: #e1dbc9;
}

.group-members span {
  color: var(--muted);
}

.group-image {
  width: min(260px, 34vw);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(9, 11, 9, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.group-image.small {
  width: min(180px, 100%);
}

.group-form {
  max-width: 980px;
}

.group-form small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.radio-feed {
  display: grid;
  gap: 18px;
}

.radio-feed-head {
  display: grid;
  gap: 12px;
}

.radio-feed-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.radio-rp-notice,
.radio-post-form,
.radio-signal-card {
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.52);
}

.radio-rp-notice {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--muted);
}

.radio-rp-notice p {
  margin: 0;
  line-height: 1.42;
}

.radio-post-form {
  padding: 18px;
}

.radio-signal-list {
  display: grid;
  gap: 12px;
}

.radio-signal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 16px;
}

.radio-signal-meta,
.radio-signal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.radio-signal-meta {
  justify-content: space-between;
  color: var(--muted);
}

.radio-signal-meta strong,
.radio-signal-card h3 {
  color: #e1dbc9;
}

.radio-signal-card h3,
.radio-signal-card p {
  margin: 0;
}

.radio-static {
  color: var(--muted);
  line-height: 1.42;
  white-space: pre-wrap;
}

.radio-signal-actions {
  padding-top: 6px;
  border-top: 1px solid rgba(111, 135, 80, 0.12);
}

.radio-signal-actions span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.group-announcement-window {
  width: min(620px, 100%);
}

.announcement-help {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.055);
  color: var(--muted);
}

.announcement-help p {
  margin: 0;
  line-height: 1.45;
}

.group-role-grid,
.group-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.group-inline-form {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
}

.guestbook-shell {
  width: min(1180px, calc(100% - 36px));
  padding-top: 120px;
}

.guestbook-shell .admin-heading {
  margin-bottom: 28px;
}

.guestbook-shell h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.guestbook-intro {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.08rem;
}

.guestbook-form-card form {
  display: grid;
  gap: 16px;
}

.guestbook-current-user {
  margin: 0;
  color: #e1dbc9;
  font-weight: 800;
}

.guestbook-rating {
  display: flex;
  gap: 8px;
}

.guestbook-rating button {
  border: 0;
  background: transparent;
  color: rgba(225, 219, 201, 0.34);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
}

.guestbook-rating button.active,
.guestbook-rating button:hover {
  color: #f5bd3d;
}

.guestbook-rating button.locked {
  cursor: default;
  opacity: 0.78;
}

.guestbook-list-section {
  margin-top: 24px;
}

.guestbook-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.guestbook-list-heading .admin-filter {
  width: min(280px, 100%);
}

.guestbook-average {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

.guestbook-average span {
  color: #f5bd3d;
  letter-spacing: 1px;
}

.guestbook-entry-list {
  display: grid;
  gap: 14px;
}

.guestbook-entry {
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.055), rgba(225, 219, 201, 0.025)),
    rgba(19, 23, 19, 0.52);
}

.guestbook-entry h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 10px;
  color: #e1dbc9;
}

.guestbook-entry h3 span {
  color: #f5bd3d;
  font-size: 1rem;
}

.guestbook-entry p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.public-journal-pages > h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .public-main-header .header-left-nav {
    margin-left: 0;
  }

  .public-main-header .header-center-nav {
    justify-self: start;
  }

  .brand {
    position: static;
  }

  .header-utility {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 1120px;
  }

  .hero-content {
    margin-top: 170px;
    margin-bottom: 64px;
  }

  .hero-whitelist-button {
    position: static;
    width: min(420px, calc(100% - 36px));
    margin: 20px auto 34px;
  }

  .hero-video-card {
    position: static;
    width: min(560px, calc(100% - 36px));
    margin: 0 auto 0;
  }

  .rules-shell {
    padding-top: 190px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .lore-grid,
  .stat-grid,
  .tech-notes,
  .staff-grid,
  .partners {
    grid-template-columns: 1fr;
  }

  .lore-main,
  .staff-grid article,
  .staff-grid article:nth-child(4),
  .staff-grid article:nth-child(5) {
    grid-column: auto;
  }

  .partners {
    align-items: start;
  }

  .sheet-choice-grid,
  .dialogue-stage,
  .admin-workspace,
  .admin-layout,
  .support-admin-layout,
  .sheet-detail-head,
  .staff-admin-layout,
  .staff-current-list > div,
  .journal-layout,
  .survivor-journals,
  .vote-hero,
  .announcements-admin-layout,
  .radio-admin-layout,
  .radio-signal-card,
  .rcon-form-grid,
  .rcon-form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .rcon-list-heading,
  .rcon-player-row {
    align-items: stretch;
    flex-direction: column;
  }

  .rcon-row-actions {
    justify-content: flex-start;
  }

  .admin-side-nav {
    position: static;
  }

  .staff-grid article {
    max-height: none;
  }

  .vote-month-card {
    position: static;
    width: min(760px, 100%);
    justify-self: center;
    transform: none;
  }

  .vote-partner-panel,
  .lore-partner-panel {
    display: none;
  }

  .survivor-frame {
    width: min(240px, 100%);
  }

  .sheet-admin-section dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sheet-detail-portrait {
    justify-self: start;
    width: min(260px, 100%);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero {
    min-height: 1220px;
  }

  .hero-actions,
  .partner-actions {
    width: 100%;
  }

  .partner-actions {
    grid-template-columns: 1fr;
  }

  .button.funding {
    grid-column: auto;
  }

  .broccoli-partner-button {
    grid-column: auto;
  }

  .partner-actions .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .rcon-card {
    padding: 16px;
  }

  .journal-board {
    padding: 12px;
  }

  .journal-paper {
    min-height: 640px;
    padding: 200px 36px 60px 68px;
  }

  .journal-paper time {
    right: 42px;
    bottom: 200px;
    font-size: 0.9rem;
  }

  .journal-paper p {
    font-size: 1.22rem;
  }

  .treasure-map img {
    aspect-ratio: 4 / 5;
  }
}

/* Modern admin interface: visual-only layer, preserving the LRDE palette and typography. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

.admin-page {
  font-size: 16px;
}

body.admin-page:not(.journal-page) {
  min-height: 100vh;
  background-color: var(--roots-ink);
  background-image:
    linear-gradient(rgba(9, 11, 9, 0.56), rgba(9, 11, 9, 0.7)),
    url("assets/admin-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-y: scroll;
}

body.journal-page:not(.guestbook-page) {
  min-height: 100vh;
  background-color: var(--roots-ink);
  background-image:
    linear-gradient(rgba(9, 11, 9, 0.48), rgba(9, 11, 9, 0.66)),
    url("assets/journal-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.admin-page .admin-shell {
  width: min(1480px, calc(100% - 40px));
  padding: 44px 0 64px;
}

.admin-page .admin-workspace {
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 28px;
}

.admin-page .admin-workspace-main {
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 120ms ease, transform 120ms ease;
}

.admin-page.admin-page-leaving .admin-workspace-main {
  opacity: 0;
  transform: translateY(4px);
}

.admin-page .admin-heading {
  min-height: 78px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(111, 135, 80, 0.18);
}

.admin-page .admin-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 0.72rem;
}

.admin-page .admin-heading h1,
.admin-page .admin-panel h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.15rem, 3.2vw, 3.45rem);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.admin-page .admin-heading h2,
.admin-page .sheet-detail h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  line-height: 1.08;
}

.admin-page h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.admin-page p,
.admin-page li,
.admin-page dd {
  line-height: 1.48;
}

.admin-page .admin-side-nav {
  top: 18px;
  gap: 6px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-page .admin-nav-box {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.78);
  backdrop-filter: blur(12px);
}

.admin-page .admin-nav-box + .admin-nav-box {
  margin-top: 10px;
}

.admin-page .admin-side-nav h2 {
  padding: 4px 4px 2px;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.admin-page .admin-side-nav hr {
  margin: 5px 0;
}

.admin-page .admin-side-nav .admin-nav-divider {
  margin: 7px 3px;
}

.admin-page .admin-side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.15;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.admin-page .admin-nav-toggle {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e1dbc9;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.15;
}

.admin-page .admin-nav-toggle:hover {
  background: rgba(111, 135, 80, 0.14);
}

.admin-page .admin-nav-sublist {
  display: none;
  gap: 3px;
  padding-left: 0;
}

.admin-page .admin-nav-sublist.open {
  display: grid;
}

.admin-page .account-type-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
}

.admin-page .account-type-choice legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-page .admin-side-nav .admin-nav-separator {
  color: rgba(179, 207, 128, 0.58);
  font-size: 0.58rem;
  line-height: 1;
}

.admin-page .admin-side-nav .admin-nav-chevron {
  font-size: 0.88rem;
  font-weight: 900;
  color: rgba(179, 207, 128, 0.82);
}

.admin-page .admin-side-nav a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 150ms ease, transform 150ms ease;
}

.admin-page .admin-side-nav a:hover {
  transform: translateX(2px);
}

.admin-page .admin-side-nav a.active {
  border-color: rgba(111, 135, 80, 0.2);
  background: rgba(111, 135, 80, 0.12);
}

.admin-page .admin-side-nav a.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.admin-page .admin-side-nav a.server-dashboard-shortcut {
  position: absolute;
  top: 0;
  right: calc(100% + 18px);
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 124px;
  height: 124px;
  min-height: 124px;
  padding: 0;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 12px;
  background: rgba(9, 11, 9, 0.42);
  transform: none;
}

.admin-page .admin-side-nav a.server-dashboard-shortcut::before {
  display: none;
}

.admin-page .admin-side-nav a.server-dashboard-shortcut:hover {
  border-color: rgba(164, 179, 141, 0.58);
  background: rgba(111, 135, 80, 0.16);
  transform: translateY(-1px);
}

.admin-page .admin-side-nav a.server-dashboard-shortcut img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.admin-page .admin-profile {
  gap: 5px;
  padding: 12px;
  border-color: rgba(111, 135, 80, 0.24);
  background: rgba(111, 135, 80, 0.075);
}

.admin-page .admin-profile p {
  font-size: 0.95rem;
}

.admin-page .admin-profile button {
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-page .button,
.admin-page .admin-tabs button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.admin-page .button:hover:not(:disabled),
.admin-page .admin-tabs button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: none;
}

.admin-page .button:active:not(:disabled),
.admin-page .admin-tabs button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.admin-page .button.tiny {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.admin-page .admin-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 5px;
  gap: 4px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.36);
}

.admin-page .admin-tabs button {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
}

.admin-page .admin-tabs button.active {
  border-color: rgba(111, 135, 80, 0.2);
  background: rgba(111, 135, 80, 0.14);
  box-shadow: none;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  border-color: rgba(111, 135, 80, 0.22);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.66);
  font-size: 0.94rem;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-page input,
.admin-page select {
  min-height: 42px;
}

.admin-page input:hover,
.admin-page select:hover,
.admin-page textarea:hover {
  border-color: rgba(111, 135, 80, 0.34);
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: rgba(111, 135, 80, 0.56);
  background: rgba(9, 11, 9, 0.8);
  box-shadow: 0 0 0 3px rgba(111, 135, 80, 0.09);
}

.admin-page label {
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-page label small,
.admin-page .form-hint {
  color: rgba(185, 189, 181, 0.76);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.admin-page .admin-layout {
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 18px;
}

.admin-page .admin-filter,
.admin-page .sheet-list,
.admin-page .sheet-detail,
.admin-page .player-list-card,
.admin-page .staff-role-editor,
.admin-page .staff-current-list,
.admin-page .guestbook-form-card,
.admin-page .guestbook-list-section,
.admin-page .radio-admin-form,
.admin-page .radio-admin-preview,
.admin-page .announcement-admin-form,
.admin-page .announcement-admin-preview,
.admin-page .rcon-card,
.admin-page .interview-sheet {
  border-color: rgba(111, 135, 80, 0.19);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.64);
  box-shadow: none;
}

.admin-page .admin-filter {
  padding: 11px;
  font-size: 0.8rem;
}

.admin-page .sheet-list {
  gap: 0;
}

.admin-page .sheet-list button {
  position: relative;
  gap: 3px;
  min-height: 58px;
  padding: 11px 13px;
  border-left: 2px solid transparent;
  font-family: inherit;
  transition: background 140ms ease, border-color 140ms ease, padding 140ms ease;
}

.admin-page .sheet-list button:hover {
  padding-left: 16px;
  border-left-color: rgba(111, 135, 80, 0.5);
}

.admin-page .sheet-list button.active {
  padding-left: 16px;
  border-left-color: var(--gold);
  background: rgba(111, 135, 80, 0.13);
}

.admin-page .sheet-list button strong {
  font-size: 0.9rem;
}

.admin-page .sheet-list span {
  font-size: 0.8rem;
  line-height: 1.3;
}

.admin-page .sheet-detail {
  padding: clamp(18px, 2.4vw, 28px);
}

.admin-empty-state {
  display: grid;
  gap: 14px;
  min-height: 360px;
  align-content: center;
  text-align: center;
}

.admin-empty-state h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, 100%);
  margin: 10px auto 0;
}

.admin-home-card {
  min-height: 150px;
  align-content: center;
}

.admin-home-card span {
  color: rgba(225, 219, 201, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-page .sheet-detail-head {
  padding-bottom: 20px;
}

.admin-page .sheet-detail-head p {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.admin-page .sheet-detail-portrait {
  border-radius: 8px;
  box-shadow: none;
}

.admin-page .admin-actions {
  gap: 7px;
  margin: 12px 0 24px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(111, 135, 80, 0.13);
}

.admin-page .admin-actions .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.73rem;
}

.admin-page .action-icon-button {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
}

.admin-page .action-icon-button img {
  display: block;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: contain;
  pointer-events: none;
}

.admin-page .action-icon-button.validate,
.admin-page .action-icon-button.whitelist,
.admin-page .action-icon-button.sponsor,
.admin-page .action-icon-button.validated,
.admin-page .action-icon-button.whitelisted,
.admin-page .action-icon-button.sponsored,
.admin-page .action-icon-button:hover:not(:disabled),
.admin-page .action-icon-button:active:not(:disabled) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-page .action-icon-button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.04);
}

.admin-page .action-icon-button:disabled {
  opacity: 0.58;
}

.admin-page .action-icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 6px 9px;
  border: 1px solid rgba(111, 135, 80, 0.3);
  border-radius: 4px;
  background: #090b09;
  color: var(--cream);
  font-size: 0.74rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.admin-page .action-icon-button:hover::after,
.admin-page .action-icon-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-page .button.danger {
  border-color: rgba(221, 83, 58, 0.72);
  background: linear-gradient(180deg, #b83b27, #7d2118);
  color: #ffffff;
}

.admin-page .button.danger:hover:not(:disabled) {
  border-color: rgba(255, 129, 100, 0.9);
  background: linear-gradient(180deg, #c84932, #8f281d);
}

.admin-page .button.unban {
  border-color: rgba(112, 213, 128, 0.62);
  background: linear-gradient(180deg, #268845, #145329);
  color: #ffffff;
}

.admin-page .button.unban:hover:not(:disabled) {
  border-color: rgba(151, 234, 164, 0.86);
  background: linear-gradient(180deg, #319953, #1a6232);
}

.rcon-linked-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(111, 135, 80, 0.36);
  border-radius: 4px;
  background: rgba(54, 94, 63, 0.18);
  color: var(--roots-sage);
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.admin-page .sheet-admin-section {
  padding: 20px 0;
}

.admin-page .sheet-admin-section h3 {
  margin-bottom: 16px;
}

.admin-page .sheet-admin-section dl {
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 10px;
}

.admin-page .sheet-admin-section dt {
  font-size: 0.86rem;
}

.admin-page .sheet-admin-section dd {
  font-size: 0.92rem;
}

.admin-page .player-admin-row,
.admin-page .rcon-player-row,
.admin-page .staff-current-card,
.admin-page .guestbook-admin-comment,
.admin-page .radio-signal-card.compact,
.admin-page .announcement-admin-card {
  border-color: rgba(111, 135, 80, 0.15);
  border-radius: 7px;
  background: rgba(225, 219, 201, 0.035);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.admin-page .radio-signal-card,
.admin-page .group-image {
  box-shadow: none;
}

.admin-page .player-admin-row:hover,
.admin-page .rcon-player-row:hover,
.admin-page .staff-current-card:hover,
.admin-page .radio-signal-card.compact:hover,
.admin-page .announcement-admin-card:hover {
  border-color: rgba(111, 135, 80, 0.3);
  background: rgba(225, 219, 201, 0.055);
  transform: translateY(-1px);
}

.admin-page .staff-admin-layout,
.admin-page .radio-admin-layout,
.admin-page .announcements-admin-layout,
.admin-page .rcon-dashboard {
  margin-top: 0;
  gap: 18px;
}

.admin-page .staff-role-editor,
.admin-page .staff-current-list,
.admin-page .guestbook-form-card,
.admin-page .guestbook-list-section,
.admin-page .radio-admin-form,
.admin-page .radio-admin-preview,
.admin-page .announcement-admin-form,
.admin-page .announcement-admin-preview,
.admin-page .rcon-card {
  padding: 20px;
}

.admin-page .staff-role-editor h2,
.admin-page .staff-current-list h2,
.admin-page .guestbook-form-card h2,
.admin-page .guestbook-list-section h2,
.admin-page .radio-admin-preview h2,
.admin-page .announcement-admin-form h2,
.admin-page .announcement-admin-preview h2,
.admin-page .rcon-card h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.admin-page .admin-login {
  min-height: calc(100vh - 108px);
}

.admin-page .admin-login-card {
  width: min(500px, 100%);
  padding: clamp(25px, 4vw, 36px);
  border-radius: 8px;
  box-shadow: none;
  animation: admin-card-enter 260ms ease-out both;
}

.admin-page .admin-login-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.admin-page .admin-login-intro {
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.admin-page .sheet-status:not(:empty) {
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(111, 135, 80, 0.07);
  font-size: 0.86rem;
}

.admin-page .announcement-admin-form {
  gap: 9px;
  padding: 16px;
}

.admin-page .announcement-admin-form > label,
.admin-page .announcement-button-grid label,
.admin-page .announcement-custom-tags label {
  align-content: start;
  min-height: 0;
}

.admin-page .announcement-admin-form textarea {
  min-height: 118px;
  max-height: 210px;
}

.admin-page .announcement-admin-form input[type="file"] {
  min-height: 34px;
  padding: 6px 10px;
}

.admin-page .announcement-button-grid {
  align-items: start;
}

.admin-page .announcement-admin-form .sheet-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
}

.admin-page .announcement-admin-form .sheet-actions .button {
  min-width: 104px;
  min-height: 34px;
}

.admin-page .announcement-admin-preview [data-announcement-admin-list] {
  display: grid;
  gap: 10px;
}

.admin-page .announcement-admin-card + .announcement-admin-card {
  margin-top: 0;
}

.admin-page .announcement-admin-card header {
  align-items: start;
}

.admin-page .announcement-admin-card h3 {
  font-size: 1.08rem;
  line-height: 1.1;
}

.admin-page .announcement-admin-card p {
  font-size: 0.88rem;
  line-height: 1.34;
}

.admin-page .staff-admin-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
}

.admin-page .staff-role-editor {
  gap: 9px;
  padding: 16px;
}

.admin-page .staff-role-editor select,
.admin-page .staff-role-editor input {
  min-height: 36px;
  padding: 7px 10px;
}

.admin-page .staff-member-list {
  gap: 6px;
}

.admin-page .staff-member-row {
  gap: 6px;
}

.admin-page .staff-member-row .button {
  min-height: 32px;
}

.admin-page .staff-current-list {
  padding: 16px;
}

.admin-page .staff-current-list > div {
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-page .staff-current-card.staff-current-line {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 11px 13px;
}

.admin-page .staff-current-card.staff-current-line h3 {
  margin: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.admin-page .staff-current-card.staff-current-line > div > span {
  font-size: 0.86rem;
}

.admin-page .staff-current-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.admin-page .staff-current-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 999px;
  background: rgba(9, 11, 9, 0.34);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-page .guestbook-admin-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 7px;
  background: rgba(9, 11, 9, 0.32);
}

.admin-page .guestbook-admin-tools label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-page .guestbook-admin-tools input,
.admin-page .guestbook-admin-tools select {
  min-height: 34px;
  padding: 7px 9px;
}

.admin-page .guestbook-admin-layout .sheet-list button {
  min-height: 42px;
  padding-block: 8px;
}

.admin-page .guestbook-admin-layout .sheet-list button strong {
  font-size: 0.82rem;
}

.admin-page .guestbook-admin-layout .sheet-list button span {
  font-size: 0.72rem;
}

.admin-page .lore-admin-panel,
.admin-page .lore-admin-form {
  padding: 16px;
}

.admin-page .lore-admin-form {
  gap: 10px;
}

.admin-page .lore-admin-form h2 {
  margin-bottom: 2px;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.admin-page .lore-admin-form input,
.admin-page .lore-admin-form select {
  min-height: 36px;
  padding: 7px 10px;
}

.admin-page .lore-admin-form textarea {
  min-height: 220px;
  max-height: 340px;
}

.admin-page .lore-admin-form .sheet-actions {
  margin-top: 0;
}

.admin-page .announcement-tag-panel {
  gap: 8px;
  padding: 9px;
}

.admin-page .announcement-tag-grid,
.admin-page .announcement-custom-tags {
  gap: 6px;
}

.admin-page .announcement-tag-grid label {
  min-height: 30px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.admin-page .announcement-custom-tags input,
.admin-page .announcement-button-grid input {
  min-height: 34px;
  padding: 7px 9px;
}

.admin-page .announcement-button-grid {
  gap: 8px;
}

.player-link-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 5px;
  padding: 1px 8px;
  border: 1px solid rgba(179, 207, 128, 0.28);
  border-radius: 999px;
  background: rgba(111, 135, 80, 0.14);
  color: #dceec0;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.player-link-badge.whitelist {
  border-color: rgba(88, 155, 231, 0.36);
  background: rgba(88, 155, 231, 0.14);
  color: #9dccff;
}

.player-link-badge.banned {
  border-color: rgba(255, 90, 74, 0.36);
  background: rgba(126, 31, 20, 0.2);
  color: #ff8e82;
}

.server-dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(5, 7, 7, 0.82), rgba(5, 7, 7, 0.5) 46%, rgba(5, 7, 7, 0.78)),
    linear-gradient(180deg, rgba(5, 7, 7, 0.48), rgba(5, 7, 7, 0.88)),
    url("assets/server-dashboard-bg.png") center / cover fixed no-repeat;
  color: var(--text);
}

.server-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(123, 36, 25, 0.2), transparent 22rem),
    radial-gradient(circle at 78% 72%, rgba(111, 135, 80, 0.14), transparent 24rem);
}

.server-dashboard-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) 0;
}

.server-dashboard-login {
  background: rgba(12, 17, 14, 0.82);
}

.server-dashboard-panel {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.server-dashboard-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
}

.server-back-link,
.server-admin-card,
.server-picker-card,
.server-nav-box,
.server-dashboard-card {
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 10px;
  background: rgba(12, 17, 14, 0.76);
  backdrop-filter: blur(12px);
}

.server-back-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e1dbc9;
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.server-back-link:hover {
  border-color: rgba(164, 179, 141, 0.56);
  background: rgba(111, 135, 80, 0.16);
  transform: translateY(-1px);
}

.server-admin-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.server-admin-card p {
  margin: 0;
  color: #e1dbc9;
  font-weight: 900;
}

.server-admin-card span {
  color: rgba(225, 219, 201, 0.68);
  font-size: 0.83rem;
  font-weight: 700;
}

.server-picker-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.server-picker-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.server-picker-card select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 135, 80, 0.24);
  border-radius: 7px;
  background: rgba(5, 7, 7, 0.58);
  color: #e1dbc9;
  font: inherit;
  font-weight: 800;
}

.server-picker-card p {
  margin: 0;
  color: rgba(225, 219, 201, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.server-nav-box {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.server-nav-toggle,
.server-nav-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e1dbc9;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, color 150ms ease;
}

.server-nav-toggle span {
  color: rgba(179, 207, 128, 0.9);
  font-weight: 900;
}

.server-nav-toggle:hover,
.server-nav-list button:hover,
.server-nav-list button.active {
  background: rgba(111, 135, 80, 0.14);
  color: #fff6df;
}

.server-nav-list button:hover {
  transform: translateX(2px);
}

.server-nav-list {
  display: none;
  gap: 4px;
}

.server-nav-list.open {
  display: grid;
}

.server-dashboard-main {
  display: grid;
  gap: 18px;
}

.server-dashboard-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(111, 135, 80, 0.24);
}

.server-dashboard-heading h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
}

.server-dashboard-heading p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(225, 219, 201, 0.78);
  font-size: 1rem;
}

.server-dashboard-card {
  display: none;
  min-height: 470px;
  padding: clamp(22px, 3vw, 34px);
  animation: admin-card-enter 180ms ease-out both;
}

.server-dashboard-card.active {
  display: grid;
  align-content: start;
  gap: 18px;
}

.server-dashboard-card h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.server-info-grid,
.server-form-grid,
.server-placeholder-list,
.server-management-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.server-add-form,
.server-management-layout > section {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.38);
}

.server-add-form h3,
.server-management-layout h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.server-add-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
}

.server-add-form legend {
  padding: 0 6px;
  color: var(--accent);
  font-weight: 900;
}

.server-add-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.server-add-form input,
.server-add-form textarea {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 7px;
  background: rgba(5, 7, 7, 0.58);
  color: var(--text);
  font: inherit;
}

.server-add-form textarea {
  min-height: 78px;
  resize: vertical;
}

.server-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.server-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.server-section-title h2 {
  margin: 0;
}

.server-mod-list {
  display: grid;
  gap: 8px;
}

.server-mod-header,
.server-mod-row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) minmax(140px, 220px) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
}

.server-mod-header {
  border-bottom: 1px solid rgba(111, 135, 80, 0.24);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-mod-row {
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.38);
}

.server-mod-row strong {
  color: #b3cf80;
}

.server-mod-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-mod-row > div {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.server-mod-dialog form {
  display: grid;
  gap: 14px;
  min-width: min(420px, calc(100vw - 42px));
}

.server-registered-list {
  display: grid;
  gap: 8px;
}

.server-registered-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(111, 135, 80, 0.16);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.035);
}

.server-registered-card.active {
  border-color: rgba(179, 207, 128, 0.42);
  background: rgba(111, 135, 80, 0.12);
}

.server-registered-card strong,
.server-registered-card span,
.server-registered-card small {
  display: block;
}

.server-registered-card span {
  color: rgba(225, 219, 201, 0.76);
  font-size: 0.9rem;
}

.server-registered-card small {
  color: rgba(225, 219, 201, 0.56);
  font-size: 0.76rem;
}

.server-secret-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.server-secret-badges em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(175, 76, 56, 0.35);
  border-radius: 999px;
  color: rgba(236, 190, 161, 0.9);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.server-secret-badges em.ok {
  border-color: rgba(126, 169, 99, 0.45);
  color: rgba(182, 215, 145, 0.95);
}

.server-registered-card > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.server-registered-card .button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 0.8rem;
}

.server-info-grid div,
.server-placeholder-list div,
.server-file-browser button {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.42);
}

.server-info-grid span,
.server-placeholder-list span {
  display: block;
  color: rgba(225, 219, 201, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.server-info-grid strong,
.server-placeholder-list strong {
  display: block;
  margin-top: 8px;
  color: #fff6df;
  font-size: 1.08rem;
}

.server-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.server-form-grid input,
.server-command-row input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 7px;
  background: rgba(5, 7, 7, 0.58);
  color: var(--text);
  font: inherit;
}

.server-console-window {
  min-height: 310px;
  height: min(56vh, 560px);
  max-height: 560px;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #b3cf80;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow: auto;
  white-space: pre-wrap;
}

.server-console-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-console-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.server-console-tabs button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 7px;
  background: rgba(9, 11, 9, 0.45);
  color: rgba(225, 219, 201, 0.86);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.server-console-tabs button:hover,
.server-console-tabs button.active {
  border-color: rgba(164, 179, 141, 0.58);
  background: rgba(111, 135, 80, 0.2);
  color: #fff6df;
  transform: translateY(-1px);
}

.console-line {
  min-height: 1.35em;
}

.console-line.is-error {
  color: #ff6b5f;
  font-weight: 900;
}

.console-line.is-warning {
  color: #ffd66b;
  font-weight: 800;
}

.dashboard-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dashboard-loading img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  animation: lrde-dashboard-spin 1.05s linear infinite;
}

@keyframes lrde-dashboard-spin {
  to {
    transform: rotate(360deg);
  }
}

.server-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.server-file-browser {
  display: grid;
  gap: 10px;
}

.server-file-browser button {
  color: #e1dbc9;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.server-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-placeholder-list.compact {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .server-dashboard-panel,
  .server-info-grid,
  .server-form-grid,
  .server-add-form fieldset,
  .server-management-layout,
  .server-command-row {
    grid-template-columns: 1fr;
  }

  .server-dashboard-nav {
    position: static;
  }
}

@keyframes admin-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .admin-page .admin-workspace-main {
    animation: admin-card-enter 220ms ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page *,
  .admin-page *::before,
  .admin-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .admin-page .admin-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
  }

  .admin-page .admin-side-nav a {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .admin-page .admin-shell {
    width: min(100% - 28px, 760px);
    padding-top: 24px;
  }

  .admin-page .admin-workspace,
  .admin-page .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-profile,
  .admin-page .admin-side-nav h2,
  .admin-page .admin-side-nav hr {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .admin-page .admin-shell {
    width: min(100% - 20px, 560px);
  }

  .admin-page .admin-heading,
  .admin-page .rcon-list-heading,
  .admin-page .player-admin-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page .player-admin-row {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-heading-actions,
  .admin-page .player-admin-row > div {
    justify-content: flex-start;
  }

  .admin-page .admin-side-nav {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-profile,
  .admin-page .admin-side-nav h2,
  .admin-page .admin-side-nav hr {
    grid-column: auto;
  }

  .admin-page .admin-tabs {
    width: 100%;
  }

  .admin-page .admin-tabs button {
    flex: 1 1 140px;
  }

  .admin-page .sheet-admin-section dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.lore-shell {
  position: relative;
  width: min(1240px, calc(100% - 36px));
}

.lore-shell .rules-hero {
  max-width: 820px;
}

.lore-card-grid {
  display: grid;
  gap: 24px;
  margin: 28px 0 30px;
}

.lore-category-row {
  display: grid;
  gap: 12px;
}

.lore-category-row h2 {
  margin: 0;
  color: #e1dbc9;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.lore-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.lore-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(111, 135, 80, 0.12), rgba(19, 23, 19, 0.66)),
    rgba(19, 23, 19, 0.58);
  color: #e1dbc9;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lore-card:hover,
.lore-card.active {
  border-color: rgba(159, 184, 114, 0.72);
  background:
    linear-gradient(180deg, rgba(111, 135, 80, 0.2), rgba(19, 23, 19, 0.72)),
    rgba(19, 23, 19, 0.68);
  transform: translateY(-2px);
}

.lore-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.1;
}

.lore-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.lore-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.54);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.lore-empty.compact {
  padding: 16px;
  text-align: left;
}

.lore-detail-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(225, 219, 201, 0.05), rgba(225, 219, 201, 0.018)),
    rgba(19, 23, 19, 0.64);
}

.lore-detail-card h2 {
  margin: 0 0 18px;
  color: #e1dbc9;
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.lore-detail-card img {
  display: block;
  width: min(920px, 100%);
  max-height: 540px;
  margin: 0 auto 24px;
  border: 1px solid rgba(111, 135, 80, 0.22);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.24);
}

.lore-history {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.lore-history p {
  margin: 0 0 1em;
}

.lore-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(122, 128, 119, 0.74);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.lore-scroll-top:hover {
  background: rgba(122, 128, 119, 0.94);
  transform: translateY(-3px);
}

.lore-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.lore-admin-list {
  align-self: start;
  max-height: 520px;
  overflow-y: auto;
}

.lore-admin-list button {
  min-height: 48px;
  align-content: center;
}

.lore-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(111, 135, 80, 0.12);
  background: rgba(225, 219, 201, 0.04);
}

.lore-admin-row.active,
.lore-admin-row:hover {
  background: rgba(111, 135, 80, 0.14);
}

.lore-admin-row .lore-admin-select {
  min-height: 48px;
  border-bottom: 0;
  background: transparent;
}

.lore-order-actions {
  display: flex;
  gap: 4px;
  padding-right: 8px;
}

.lore-order-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(111, 135, 80, 0.28);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.48);
  color: #e1dbc9;
  font-size: 0.95rem;
  line-height: 1;
}

.lore-order-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lore-category-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(225, 219, 201, 0.035);
}

.lore-category-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}

.lore-category-field label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 6px;
  background: rgba(9, 11, 9, 0.36);
}

.lore-admin-tabs {
  margin-bottom: 0;
}

.lore-admin-panel,
.lore-admin-form {
  padding: 16px;
  border: 1px solid rgba(111, 135, 80, 0.18);
  border-radius: 8px;
  background: rgba(19, 23, 19, 0.58);
}

.lore-admin-form {
  display: grid;
  gap: 10px;
}

.lore-admin-form h2 {
  margin: 0 0 2px;
  color: #e1dbc9;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.lore-admin-form input,
.lore-admin-form select {
  min-height: 36px;
  padding: 7px 10px;
}

.lore-admin-form textarea {
  min-height: 220px;
  max-height: 340px;
}

.lore-current-image {
  min-height: 60px;
  color: var(--muted);
}

.lore-current-image img {
  width: min(360px, 100%);
  max-height: 220px;
  border: 1px solid rgba(111, 135, 80, 0.2);
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .lore-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .lore-category-grid,
  .lore-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .server-mod-header {
    display: none;
  }

  .server-mod-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .server-mod-row > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
