:root {
  color-scheme: light;
  --bg: #f2ffe8;
  --surface: #ffffff;
  --surface-soft: #f8fff1;
  --line: rgba(44, 117, 34, 0.18);
  --text: #17340f;
  --muted: #5d7554;
  --green: #6fd22d;
  --deep-green: #2f8f22;
  --shadow-green: #1d6615;
  --gold: #ffd85c;
  --blue: #3ab7d8;
  --red: #ff6570;
  --grey: #cfd8ca;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 216, 92, 0.3), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(58, 183, 216, 0.18), transparent 22%),
    linear-gradient(180deg, #fbfff6, var(--bg));
  color: var(--text);
  margin: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header,
.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 255, 232, 0.96)),
    radial-gradient(circle, rgba(111, 210, 45, 0.16) 0 26%, transparent 27%) 0 0 / 92px 92px,
    radial-gradient(circle, rgba(255, 216, 92, 0.18) 0 20%, transparent 21%) 38px 38px / 92px 92px;
}

.hero {
  min-height: 70vh;
}

.site-header {
  border-bottom: 2px solid rgba(44, 117, 34, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

main {
  animation: pageFadeIn 420ms ease both;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  margin: 0 auto;
  max-width: 100%;
  padding: 16px 28px;
  position: relative;
}

.brand,
.nav-links,
.hero-actions,
.profile-block,
.split-head,
.staff-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 900;
  margin-right: auto;
}

.social-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: #e7ffd3;
  border-color: rgba(47, 143, 34, 0.32);
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.brand-mark {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(47, 143, 34, 0.14);
  height: 52px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  width: 52px;
}

.nav-links {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(44, 117, 34, 0.14);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 18px rgba(47, 143, 34, 0.055);
  display: flex;
  gap: 4px;
  left: 50%;
  margin: 0;
  max-width: calc(100vw - 360px);
  overflow: hidden;
  padding: 6px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 2;
}

.nav-links a {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-size: 0.96rem;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 92px;
  padding: 0 17px;
  position: relative;
  text-align: center;
  transition:
    background-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: #e7ffd3;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.discord-button,
.primary-action,
.staff-button,
.mini-edit {
  align-items: center;
  background: var(--deep-green);
  border-radius: 7px;
  box-shadow: 0 6px 0 var(--shadow-green);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition:
    box-shadow 220ms ease,
    filter 220ms ease,
    transform 180ms ease;
}

.discord-button {
  border: 2px solid rgba(255, 255, 255, 0.55);
  margin-left: auto;
  min-height: 46px;
}

.discord-button + .nav-cart-button {
  margin-left: 2px;
}

.discord-button:hover,
.discord-button:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.staff-button:hover,
.staff-button:focus-visible,
.mini-edit:hover,
.mini-edit:focus-visible {
  box-shadow:
    0 6px 0 var(--shadow-green),
    0 0 0 6px rgba(111, 210, 45, 0.18),
    0 14px 28px rgba(47, 143, 34, 0.16);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.discord-profile-button {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(47, 143, 34, 0.24);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.1);
  height: 58px;
  min-height: 0;
  padding: 4px;
  width: 58px;
}

.discord-profile-button:hover,
.discord-profile-button:focus-visible {
  box-shadow:
    0 0 0 7px rgba(111, 210, 45, 0.18),
    0 0 0 2px rgba(47, 143, 34, 0.16) inset;
  transform: translateY(-1px);
}

.discord-profile-button .discord-avatar {
  background: #e7ffd3;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.discord-profile-button .discord-avatar-fallback {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 950;
  justify-content: center;
}

.discord-login-icon {
  align-items: center;
  background: #e7ffd3;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: var(--deep-green);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.discord-login-icon svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 25px;
}

.nav-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(47, 143, 34, 0.08);
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  height: 46px;
  justify-content: center;
  justify-self: start;
  width: 46px;
}

.nav-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 3px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  width: 20px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  background: rgba(11, 32, 8, 0.28);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 1200;
}

.mobile-nav-backdrop[hidden] {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

body.cart-open {
  overflow: hidden;
}

.mobile-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 255, 232, 0.98)),
    radial-gradient(circle, rgba(111, 210, 45, 0.15) 0 26%, transparent 27%) 0 0 / 86px 86px;
  border-right: 3px solid var(--line);
  box-shadow: 16px 0 40px rgba(47, 143, 34, 0.16);
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100vh;
  left: 0;
  max-width: min(360px, 86vw);
  padding: 24px;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: transform 220ms ease;
  width: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 1210;
}

.mobile-sidebar-title {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.mobile-sidebar-title span {
  min-width: 0;
}

.mobile-sidebar-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-left: auto;
  padding: 0 0 2px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 38px;
}

.mobile-sidebar-close:hover,
.mobile-sidebar-close:focus-visible {
  background: #e7ffd3;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.12);
  color: var(--deep-green);
  transform: rotate(6deg) scale(1.04);
}

.mobile-sidebar-title img {
  background: transparent;
  border: 0;
  border-radius: 999px;
  height: 44px;
  object-fit: contain;
  padding: 0;
  width: 44px;
}

.mobile-sidebar-nav {
  display: grid;
  gap: 12px;
}

.mobile-sidebar a {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  padding: 13px 14px;
}

.mobile-sidebar a.active,
.mobile-sidebar a:hover,
.mobile-sidebar a:focus-visible {
  background: #e7ffd3;
  color: var(--text);
}

.mobile-sidebar .mobile-sidebar-home {
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  padding: 0;
}

.mobile-sidebar .mobile-sidebar-home:hover,
.mobile-sidebar .mobile-sidebar-home:focus-visible {
  background: transparent;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.12);
}

.mobile-sidebar-socials {
  align-self: end;
  display: grid;
  gap: 7px;
  justify-items: start;
  margin-top: 10px;
}

.mobile-sidebar-socials::before {
  color: var(--muted);
  content: "Socials";
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-sidebar-socials .social-link {
  justify-self: start;
  min-width: 0;
}

.mobile-sidebar .sidebar-social-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 7px;
  min-height: 0;
  padding: 2px 4px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.mobile-sidebar .sidebar-social-link:hover,
.mobile-sidebar .sidebar-social-link:focus-visible {
  background: transparent;
  color: var(--text);
  transform: translateX(2px);
}

.social-icon {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.social-icon svg {
  fill: none;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 13px;
}

.social-icon-youtube svg {
  height: 14px;
  width: 14px;
}

.social-icon-discord {
  height: 20px;
  width: 20px;
}

.social-icon-discord svg {
  height: 16px;
  stroke-width: 2.4;
  width: 16px;
}

.home-social-footer {
  align-items: center;
  border-top: 2px solid rgba(44, 117, 34, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px 34px;
}

.home-social-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 950;
  gap: 9px;
}

.home-social-brand img {
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.home-social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.home-social-footer .sidebar-social-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 7px;
  padding: 2px 0;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.home-social-footer .sidebar-social-link:hover,
.home-social-footer .sidebar-social-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-open .mobile-sidebar {
  transform: translateX(0);
}

.auth-menu {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 0 rgba(47, 143, 34, 0.12), 0 18px 36px rgba(47, 143, 34, 0.16);
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  position: absolute;
  right: 24px;
  top: calc(100% - 8px);
  z-index: 40;
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu-name {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  margin: 0;
  overflow: hidden;
  padding: 2px 5px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu button,
.auth-menu .auth-menu-staff {
  background: #f6fff0;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 10px;
  text-align: left;
}

.auth-menu .auth-menu-staff {
  display: block;
}

.auth-menu-theme {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 5px;
  padding: 2px 0;
}

.auth-menu-theme select {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 40px;
  padding: 0 10px;
  width: 100%;
}

.auth-menu button:hover,
.auth-menu button:focus-visible,
.auth-menu .auth-menu-staff:hover,
.auth-menu .auth-menu-staff:focus-visible {
  background: #e7ffd3;
  border-color: rgba(47, 143, 34, 0.35);
}

.secondary-action,
.ghost-action,
.plain-link {
  align-items: center;
  background: #fff7c8;
  border: 2px solid rgba(143, 105, 18, 0.25);
  border-radius: 7px;
  box-shadow: 0 5px 0 rgba(143, 105, 18, 0.18);
  color: var(--text);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    filter 220ms ease,
    transform 180ms ease;
}

.secondary-action:hover,
.secondary-action:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible,
.plain-link:hover,
.plain-link:focus-visible {
  box-shadow:
    0 5px 0 rgba(143, 105, 18, 0.18),
    0 0 0 6px rgba(255, 221, 83, 0.18),
    0 14px 28px rgba(143, 105, 18, 0.12);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.hero-content {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px 24px 72px;
}

.home-hero {
  min-height: 56vh;
}

.page-top {
  padding-top: 54px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.65rem, 6.6vw, 5.25rem);
  line-height: 0.96;
  margin-bottom: 18px;
  text-shadow: 0 5px 0 rgba(111, 210, 45, 0.2);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.fan-card span {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

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

.fan-card,
.login-panel,
.content-card,
.timeline-shell,
.wave-card,
.timeline-editor,
.info-tile {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12), 0 18px 48px rgba(68, 130, 44, 0.12);
}

.fan-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 86px 1fr;
  padding: 18px;
}

.fan-card img {
  background: #dfffbd;
  border: 3px solid #2d7c20;
  border-radius: 999px;
  width: 86px;
}

.fan-card strong,
.profile-block strong {
  display: block;
  font-size: 1.06rem;
}

.band {
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 24px;
}

.staff-band {
  padding-bottom: 34px;
}

.staff-mini {
  padding-top: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.compact {
  max-width: 780px;
}

.split-head {
  gap: 18px;
  justify-content: space-between;
}

.split-head > div:first-child {
  min-width: 0;
}

.staff-actions {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.staff-actions .danger-button {
  margin-left: 0;
}

.login-panel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr) auto;
  padding: 18px;
}

.profile-block {
  gap: 13px;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-radius: 7px;
  color: #082000;
  display: flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.avatar img {
  border-radius: inherit;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-block span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 3px;
}

.role-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  background: #f8fff0;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  min-height: 38px;
  padding: 0 13px;
}

.role-chip.active {
  background: #dfffbd;
  border-color: rgba(47, 143, 34, 0.58);
  color: var(--text);
}

.role-chip:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.content-grid,
.timeline-list,
.integration-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.timeline-list {
  grid-template-columns: 1fr;
}

.content-grid.games-sections {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.events-sections {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.game-section {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12), 0 18px 48px rgba(68, 130, 44, 0.12);
  padding: 22px;
}

.event-feed-section {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12), 0 18px 48px rgba(68, 130, 44, 0.12);
  padding: 22px;
}

.game-section-active {
  background: linear-gradient(135deg, rgba(223, 255, 189, 0.96), rgba(190, 240, 148, 0.82));
}

.event-feed-planned {
  background: linear-gradient(135deg, rgba(223, 255, 189, 0.96), rgba(220, 248, 241, 0.84));
}

.game-section-developing {
  background: linear-gradient(135deg, rgba(255, 247, 188, 0.96), rgba(255, 230, 125, 0.78));
  border-color: rgba(226, 197, 87, 0.86);
}

.event-feed-subscriber {
  background: linear-gradient(135deg, rgba(255, 247, 188, 0.96), rgba(255, 236, 154, 0.78));
  border-color: rgba(226, 197, 87, 0.86);
}

.game-section-head {
  margin-bottom: 16px;
}

.event-feed-head {
  margin-bottom: 16px;
}

.game-section-head h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.event-feed-head h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.game-section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.event-feed-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.game-card-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.event-feed-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.content-card {
  min-height: 230px;
  padding: 20px;
  position: relative;
}

.event-feed-card {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}

.event-feed-trigger {
    align-items: center;
    background: #ffffff;
    color: var(--text);
    display: grid;
    gap: 12px 20px;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) minmax(170px, 0.5fr) auto;
    min-height: 76px;
    padding: 14px 18px;
    text-align: left;
    width: 100%;
}

.event-feed-card.open .event-feed-trigger {
    background: #f0ffe4;
}

.event-feed-title {
    font-size: 1.12rem;
    font-weight: 900;
}

.event-feed-reward,
.event-feed-time {
    display: grid;
    gap: 3px;
    font-weight: 850;
}

.event-feed-trigger small,
.event-detail-block span,
.event-detail-description > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-feed-arrow {
    color: var(--deep-green);
    font-size: 2rem;
    font-weight: 900;
    transition: transform 160ms ease;
}

.event-feed-card.open .event-feed-arrow {
    transform: rotate(90deg);
}

.event-detail-body {
    padding: 18px;
}

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

.event-detail-block,
.event-detail-description {
    background: #f8fff2;
    border: 2px solid var(--line);
    border-radius: 7px;
    padding: 14px;
}

.event-detail-block {
    display: grid;
    gap: 5px;
}

.event-detail-description {
    margin-top: 12px;
}

.event-detail-description p {
    line-height: 1.6;
    margin-top: 8px;
}

.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.game-card {
  background: rgba(255, 255, 255, 0.9);
  gap: 16px;
}

.game-card-active {
  border-color: rgba(47, 143, 34, 0.52);
}

.game-card-developing {
  border-color: rgba(218, 186, 64, 0.7);
}

.game-section-developing .tag {
  background: #fff6bd;
  color: #6b5a00;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-right: 72px;
}

.game-media-carousel {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(231, 255, 211, 0.88)),
    radial-gradient(circle, rgba(47, 143, 34, 0.14) 0 26%, transparent 27%) 0 0 / 54px 54px;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(47, 143, 34, 0.1);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.game-media-carousel img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  width: 100%;
}

.game-media-carousel img.active {
  opacity: 1;
}

.game-media-carousel img.active {
  transform: scale(1.02);
}

/* STORE */

.store-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-button {
  background: var(--deep-green);
  border-radius: 7px;
  box-shadow: 0 6px 0 var(--shadow-green);
  color: #ffffff;
  font-weight: 900;
  min-height: 46px;
  padding: 0 16px;
  transition:
    box-shadow 220ms ease,
    filter 220ms ease,
    transform 180ms ease;
}

.cart-button .cart-count {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  justify-content: center;
  margin-left: 7px;
  min-height: 24px;
  min-width: 24px;
  padding: 0 6px;
}

.nav-cart-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(47, 143, 34, 0.24);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.1);
  color: var(--deep-green);
  display: inline-flex;
  flex: 0 0 auto;
  height: 58px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  position: relative;
  width: 58px;
}

.nav-cart-button:hover,
.nav-cart-button:focus-visible {
  box-shadow:
    0 0 0 7px rgba(111, 210, 45, 0.18),
    0 0 0 2px rgba(47, 143, 34, 0.16) inset;
  transform: translateY(-1px);
}

.nav-cart-icon {
  align-items: center;
  background: #e7ffd3;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.nav-cart-icon svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 25px;
}

.nav-cart-button .cart-count {
  box-shadow: 0 2px 0 rgba(143, 105, 18, 0.18);
  font-size: 0.78rem;
  margin: 0;
  min-height: 22px;
  min-width: 22px;
  padding: 0 6px;
  position: absolute;
  right: -4px;
  top: -4px;
}

.content-grid.store-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-product {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12);
  display: grid;
  grid-template-rows: 260px minmax(0, 1fr);
  overflow: hidden;
  position: relative;
}

.store-product-media {
  align-items: center;
  background: #f8fff1;
  border-bottom: 3px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.store-product-media::after {
  background: rgba(47, 143, 34, 0.12);
  border-radius: 50%;
  bottom: 18px;
  content: "";
  height: 18px;
  left: 16%;
  position: absolute;
  width: 68%;
}

.store-product-media img {
  height: 216px;
  object-fit: contain;
  position: relative;
  width: 216px;
  z-index: 1;
}

.store-upload-field small {
  color: var(--muted);
  font-weight: 700;
}

.store-upload-field input[type="file"] {
  padding: 8px;
}

.store-upload-field input[type="file"]::file-selector-button {
  background: #e7ffd3;
  border: 0;
  border-radius: 6px;
  color: var(--deep-green);
  cursor: pointer;
  font-weight: 900;
  margin-right: 12px;
  padding: 8px 12px;
}

.store-product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  position: relative;
}

.store-product-heading {
  align-items: start;
  display: grid;
  gap: 12px;
}

.store-product-heading h2 {
  font-size: 1.3rem;
}

.store-product-heading strong {
  color: var(--deep-green);
  font-size: 1.1rem;
  line-height: 1.25;
  white-space: normal;
}

.store-product-body > p {
  color: var(--muted);
  line-height: 1.55;
}

.store-product-options {
  display: grid;
  gap: 10px;
}

.store-product-options label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 5px;
}

.store-product-options select {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 40px;
  padding: 7px 9px;
  width: 100%;
}

.product-options-editor {
  border: 2px solid var(--line);
  border-radius: 7px;
  margin: 0;
  padding: 16px;
}

.product-options-editor legend {
  font-weight: 900;
  padding: 0 6px;
}

.product-options-editor > p {
  color: var(--muted);
  margin-bottom: 14px;
}

.store-product-editor label small {
  color: var(--muted);
  font-weight: 700;
}

.product-price-preview {
  align-items: center;
  background: #efffdf;
  border: 2px solid var(--line);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.product-price-preview span {
  color: var(--muted);
  font-weight: 850;
}

.product-price-preview strong {
  color: var(--deep-green);
  font-size: 1.2rem;
}

.product-option-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.product-option-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(130px, 0.35fr) minmax(180px, 0.8fr) minmax(180px, 0.7fr) auto;
}

.product-option-row .danger-button {
  margin: 0 0 5px;
}

.store-product-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.store-product .store-product-edit {
  bottom: auto;
  box-shadow: 0 4px 0 var(--shadow-green);
  height: 34px;
  max-height: 34px;
  min-height: 34px;
  padding: 0 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 58px;
  z-index: 3;
}

.cart-backdrop {
  background: rgba(23, 52, 15, 0.38);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 1300;
}

.cart-backdrop[hidden] {
  display: none;
}

.cart-open .cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  background: #ffffff;
  box-shadow: -16px 0 50px rgba(23, 52, 15, 0.2);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: min(92vw, 420px);
  -webkit-overflow-scrolling: touch;
  z-index: 1310;
}

.cart-open .cart-drawer,
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head,
.cart-summary > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cart-drawer-head {
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
}

.cart-drawer-head h2 {
  font-size: 1.8rem;
}

.cart-close {
  align-items: center;
  background: #efffdf;
  border-radius: 50%;
  color: var(--deep-green);
  display: flex;
  font-size: 1.8rem;
  height: 42px;
  justify-content: center;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 42px;
}

.cart-close:hover,
.cart-close:focus-visible {
  background: #e7ffd3;
  box-shadow: 0 0 0 6px rgba(111, 210, 45, 0.14);
  transform: rotate(6deg) scale(1.04);
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-empty {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

.cart-item {
  border: 2px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 10px;
}

.cart-item img {
  background: #efffdf;
  border-radius: 6px;
  height: 72px;
  object-fit: contain;
  padding: 5px;
  width: 72px;
}

.cart-item > div {
  display: grid;
  gap: 5px;
}

.cart-item span {
  color: var(--muted);
  font-weight: 750;
}

.cart-item small {
  color: var(--muted);
  font-weight: 750;
}

.cart-quantity {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 32px auto 32px;
  justify-content: start;
}

.cart-quantity button {
  background: #e7ffd3;
  border-radius: 6px;
  color: var(--deep-green);
  font-weight: 900;
  height: 30px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 160ms ease;
  width: 32px;
}

.cart-quantity button:hover,
.cart-quantity button:focus-visible {
  background: #d9ffbd;
  box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.13);
  transform: translateY(-1px) scale(1.04);
}

.cart-quantity button:active {
  transform: translateY(1px) scale(0.98);
}

.cart-summary {
  border-top: 2px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.cart-summary strong {
  font-size: 1.35rem;
}

.add-cart-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.48;
  transform: translateY(5px);
}

.product-page {
  position: relative;
}

.product-cart-button {
  position: absolute;
  right: 24px;
  top: 28px;
}

.product-detail {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12);
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
}

.product-detail-media {
  align-items: center;
  background: #f8fff1;
  border-right: 3px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: 560px;
  padding: 40px;
  position: relative;
}

.product-detail-media::after {
  background: rgba(47, 143, 34, 0.12);
  border-radius: 50%;
  bottom: 54px;
  content: "";
  height: 24px;
  left: 17%;
  position: absolute;
  width: 66%;
}

.product-detail-media img {
  height: min(440px, 70vh);
  max-width: 100%;
  object-fit: contain;
  position: relative;
  width: min(440px, 100%);
  z-index: 1;
}

.product-detail-content {
  padding: clamp(24px, 4vw, 48px);
}

.product-back-link {
  color: var(--deep-green);
  display: inline-block;
  font-weight: 850;
  margin-bottom: 24px;
}

.product-detail-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.product-detail-heading h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.product-detail-heading strong {
  color: var(--deep-green);
  font-size: 1.35rem;
  white-space: nowrap;
}

.product-detail-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 20px 0;
}

.product-detail-options {
  gap: 14px;
  margin: 20px 0;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px;
}

.product-specifications {
  border-top: 2px solid var(--line);
  padding-top: 24px;
}

.product-specifications h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.product-specifications p {
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.game-action {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    filter 220ms ease,
    transform 180ms ease;
}

.game-action-play {
  background: var(--deep-green);
  box-shadow: 0 5px 0 var(--shadow-green);
  color: #ffffff;
}

.game-action-help {
  background: #fff7c8;
  border: 2px solid rgba(143, 105, 18, 0.25);
  box-shadow: 0 5px 0 rgba(143, 105, 18, 0.18);
  color: var(--text);
}

.game-action-wiki {
  background: #f8fff0;
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 rgba(47, 143, 34, 0.12);
  color: var(--muted);
}

.game-action-discord {
  background: #6950c8;
  border: 2px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 5px 0 #3d2b86;
  color: #ffffff;
}

.game-action-disabled {
  background: #e5e8e1;
  border: 2px solid #c9d0c3;
  box-shadow: 0 5px 0 rgba(105, 116, 99, 0.16);
  color: #7b8575;
  cursor: not-allowed;
}

.game-action:not(.game-action-disabled):hover,
.game-action:not(.game-action-disabled):focus-visible {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.game-action-play:hover,
.game-action-play:focus-visible {
  box-shadow:
    0 5px 0 var(--shadow-green),
    0 0 0 6px rgba(111, 210, 45, 0.16);
}

.game-action-help:hover,
.game-action-help:focus-visible {
  box-shadow:
    0 5px 0 rgba(143, 105, 18, 0.18),
    0 0 0 6px rgba(255, 216, 92, 0.16);
}

.game-action-wiki:hover,
.game-action-wiki:focus-visible {
  box-shadow:
    0 5px 0 rgba(47, 143, 34, 0.12),
    0 0 0 6px rgba(111, 210, 45, 0.12);
  color: var(--text);
}

.game-action-discord:hover,
.game-action-discord:focus-visible {
  box-shadow:
    0 5px 0 #3d2b86,
    0 0 0 6px rgba(105, 80, 200, 0.18);
}

.game-action:not(.game-action-disabled):active {
  box-shadow: 0 2px 0 rgba(29, 102, 21, 0.45);
  transform: translateY(3px);
}

.page-card {
  color: inherit;
  display: block;
}

.page-card:hover {
  transform: translateY(-2px);
}

.page-card:hover h3 {
  color: var(--deep-green);
}

.tag {
  background: #e7ffd3;
  border-radius: 999px;
  color: var(--deep-green);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 16px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.content-card p,
.timeline-item p,
.empty-wave {
  color: var(--muted);
  line-height: 1.55;
}

.plain-link {
  margin-top: 8px;
}

.disabled-link {
  opacity: 0.7;
}

.card-date {
  color: var(--deep-green);
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.mini-edit {
  bottom: 16px;
  min-height: 36px;
  padding-inline: 12px;
  position: absolute;
  right: 16px;
}

.game-card-editing .mini-edit {
  bottom: auto;
  justify-self: end;
  margin-top: 18px;
  position: static;
  right: auto;
}

.content-editor {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12), 0 18px 48px rgba(68, 130, 44, 0.12);
  display: grid;
  column-gap: 18px;
  row-gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 22px;
}

.content-editor h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.content-editor .form-field-wide,
.content-editor .timeline-form-actions {
  grid-column: 1 / -1;
}

.game-media-editor small {
  color: var(--muted);
  font-weight: 700;
}

.game-media-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.game-media-preview > p {
  color: var(--muted);
  font-weight: 800;
}

.game-media-preview-item {
  background: #f8fff1;
  border: 2px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.game-media-preview-item img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.game-media-preview-item .danger-button {
  min-height: 34px;
  padding: 0 10px;
}

.content-editor label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 9px;
}

.content-editor input,
.content-editor textarea,
.content-editor select {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.inline-game-editor {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding: 22px;
}

.inline-game-editor .timeline-form-actions {
  margin-top: 6px;
}

.inline-check-row {
  align-items: center;
  display: inline-grid !important;
  gap: 10px !important;
  grid-template-columns: auto 1fr;
  justify-self: start;
  margin: 2px 0 4px;
}

.inline-check-row input {
  min-height: auto;
  width: auto;
}

.timeline-band {
  max-width: 1240px;
}

.timeline-shell {
  padding: 18px;
}

.timeline-lock-card {
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(47, 143, 34, 0.12);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 38px);
}

.timeline-lock-card h2 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0;
}

.timeline-lock-card p {
  margin: 0;
}

.physical-timeline {
  overflow: visible;
  padding: 30px 18px 42px;
}

.timeline-view-control {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
}

.timeline-view-select-wrap {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: auto;
  order: 2;
}

.timeline-view-select-wrap label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.timeline-view-control select {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 12px;
}

.timeline-filter-controls {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  order: 1;
  padding: 0;
}

.timeline-filter-pill {
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  line-height: 1;
  min-height: 34px;
  padding: 0 10px;
  user-select: none;
}

.timeline-filter-pill input {
  accent-color: var(--green);
  margin: 0;
}

.timeline-date-simulator {
  background: rgba(231, 255, 211, 0.72);
  border: 2px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  order: 3;
  padding: 12px 14px;
  width: 100%;
}

.timeline-date-simulator-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.timeline-date-simulator-heading strong {
  color: var(--text);
}

.timeline-date-simulator-heading output {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.timeline-date-reset {
  margin-left: auto;
}

.timeline-date-simulator input[type="range"] {
  accent-color: var(--green);
  cursor: pointer;
  width: 100%;
}

.timeline-simulate-happened {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 8px;
  width: fit-content;
}

.timeline-simulate-happened input {
  accent-color: var(--green);
  height: 18px;
  margin: 0;
  width: 18px;
}

.staff-portal {
  min-height: 68vh;
}

.staff-portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-portal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 0 rgba(47, 143, 34, 0.1);
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.staff-portal-card:hover,
.staff-portal-card:focus-visible {
  border-color: rgba(47, 143, 34, 0.38);
  box-shadow:
    0 9px 0 rgba(47, 143, 34, 0.16),
    0 0 0 6px rgba(111, 210, 45, 0.12);
  outline: 0;
  transform: translateY(-3px);
}

.staff-portal-card h2,
.staff-portal-card h3,
.staff-portal-card p {
  margin: 0;
}

.staff-portal-card h2,
.staff-portal-card h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.staff-portal-group + .staff-portal-group {
  margin-top: 34px;
}

.staff-portal-card-tag {
  color: var(--deep-green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staff-portal-card-action {
  align-self: end;
  color: var(--deep-green);
  font-weight: 900;
}

.staff-portal-card-bans {
  background: linear-gradient(145deg, #fff0ed, #ffffff 64%);
}

.staff-portal-card-unbans {
  background: linear-gradient(145deg, #efffe7, #ffffff 64%);
}

.staff-portal-card-restores {
  background: linear-gradient(145deg, #eaf8ff, #ffffff 64%);
}

.staff-portal-back {
  align-self: center;
}

.staff-record-toolbar {
  align-items: center;
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-bottom: 18px;
  padding: 16px;
}

.staff-record-toolbar label {
  color: var(--text);
  font-weight: 900;
}

.staff-record-toolbar input {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  grid-column: 1;
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

.staff-record-toolbar span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  grid-column: 2;
  grid-row: 2;
}

.staff-record-table-wrap {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  max-height: 66vh;
  overflow: auto;
}

.staff-record-table {
  background: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  width: max-content;
}

.staff-record-table-wrap-compact {
  overflow-x: hidden;
}

.staff-record-table-compact {
  table-layout: fixed;
  width: 100%;
}

.staff-record-table-compact th,
.staff-record-table-compact td {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.staff-record-table-compact th:first-child,
.staff-record-table-compact td:first-child {
  width: 8%;
}

.staff-record-table-compact th:nth-child(2),
.staff-record-table-compact td:nth-child(2) {
  width: 13%;
}

.staff-record-table-compact th:nth-child(3),
.staff-record-table-compact td:nth-child(3) {
  width: 15%;
}

.staff-record-table-compact th:nth-child(4),
.staff-record-table-compact td:nth-child(4) {
  width: 24%;
}

.staff-record-table-compact th:nth-child(5),
.staff-record-table-compact td:nth-child(5) {
  width: 15%;
}

.staff-record-table-compact th:nth-child(6),
.staff-record-table-compact td:nth-child(6) {
  width: 17%;
}

.staff-record-table-compact th:nth-child(7),
.staff-record-table-compact td:nth-child(7) {
  width: 8%;
}

.staff-record-table th,
.staff-record-table td {
  border-bottom: 1px solid var(--line);
  max-width: 360px;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
}

.staff-record-table th {
  background: #e7ffd3;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 950;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.staff-record-table tbody tr:nth-child(even) td {
  background: #f8fff3;
}

.staff-record-table tbody tr:hover td {
  background: #efffe5;
}

.staff-record-table tbody tr.is-selected td {
  background: #e7ffd3;
}

.staff-record-selector {
  max-width: 70px !important;
  text-align: center !important;
  width: 70px;
}

.staff-record-selector input {
  accent-color: var(--deep-green);
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.staff-record-complete {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.staff-record-complete:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.55;
  transform: none;
}

.staff-confirm-dialog {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 12px 0 rgba(47, 143, 34, 0.14),
    0 24px 70px rgba(23, 52, 15, 0.28);
  color: var(--text);
  max-width: min(560px, calc(100vw - 32px));
  padding: 24px;
}

.staff-confirm-dialog::backdrop {
  background: rgba(17, 37, 12, 0.55);
  backdrop-filter: blur(3px);
}

.staff-confirm-dialog h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 8px 0 16px;
}

.staff-confirm-user {
  background: #e7ffd3;
  border: 2px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
  padding: 14px;
}

.staff-confirm-error {
  background: #ffe4e1;
  border: 2px solid rgba(217, 54, 54, 0.28);
  border-radius: 7px;
  color: #8d1e1e;
  font-weight: 850;
  padding: 12px;
}

.staff-record-empty,
.staff-portal-error {
  background: #fff7d6;
  border: 2px solid rgba(176, 132, 0, 0.24);
  border-radius: var(--radius);
  color: #725700;
  padding: 18px;
}

.staff-portal-error p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .staff-portal-grid {
    grid-template-columns: 1fr;
  }

  .staff-record-toolbar {
    grid-template-columns: 1fr;
  }

  .staff-record-toolbar span {
    grid-column: 1;
    grid-row: auto;
  }

  .staff-record-complete {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .staff-portal-back {
    justify-self: start;
  }
}

.timeline-filter-pill:has(input:checked) {
  background: #e7ffd3;
  border-color: #b9eb99;
  color: var(--deep-green);
}

.timeline-filter-major:has(input:checked) {
  background: #ffe1dd;
  border-color: #d93636;
  color: #963030;
}

.timeline-filter-minor:has(input:checked) {
  background: #ffe3bd;
  border-color: #f28c28;
  color: #9a4d00;
}

.timeline-filter-spontaneous:has(input:checked) {
  background: #e8f8ff;
  border-color: #4d93ad;
  color: #2b7089;
}

.timeline-filter-weekly:has(input:checked) {
  background: #ffe1f0;
  border-color: #e779aa;
  color: #9b2f60;
}

.timeline-filter-bi_weekly:has(input:checked) {
  background: #f4e7ff;
  border-color: #8d55b3;
  color: #623c7d;
}

.timeline-filter-once_per_wave:has(input:checked) {
  background: #e7ffd3;
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.physical-timeline .timeline-track {
  min-width: 0;
  width: auto;
}

.wave-labels {
  height: 0;
  margin-bottom: 0;
  min-width: 0;
  position: relative;
  z-index: 4;
}

.wave-labels span {
  background: #e7ffd3;
  border-radius: 999px;
  color: var(--deep-green);
  font-weight: 900;
  padding: 8px 10px;
  position: absolute;
  text-align: center;
  top: 270px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.wave-labels span.oc-label {
  background: #e8f8ff;
  color: #2585a0;
  transform: translateX(-100%);
}

.wave-labels span.edge-end-label {
  transform: translateX(-100%);
}

.wave-labels span.cc-start-label {
  transform: translateX(0);
}

.timeline-track {
  --progress: 0%;
  background:
    radial-gradient(circle at 0 50%, #111 0 6px, transparent 7px),
    radial-gradient(circle at 100% 50%, #111 0 6px, transparent 7px),
    linear-gradient(90deg, var(--deep-green) 0 var(--progress), var(--grey) var(--progress) 100%);
  background-repeat: no-repeat;
  border: 0;
  border-radius: 999px;
  height: 6px;
  margin: 170px 12px 150px;
  position: relative;
}

.wave-divider {
  background: rgba(23, 52, 15, 0.12);
  height: 280px;
  position: absolute;
  top: -137px;
  transform: translateX(-50%);
  width: 3px;
}

.timeline-marker {
  align-items: center;
  background: var(--surface);
  border: 4px solid var(--deep-green);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(47, 143, 34, 0.18);
  color: var(--text);
  display: flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  z-index: 2;
}

.timeline-marker span {
  font-weight: 900;
}

.timeline-marker.planning {
  border-color: var(--gold);
}

.timeline-marker.private {
  border-color: var(--red);
}

.timeline-marker.muted {
  filter: grayscale(1);
  opacity: 0.55;
}

.timeline-marker::before {
  background: currentColor;
  content: "";
  height: 88px;
  left: 50%;
  opacity: 0.55;
  position: absolute;
  top: 40px;
  transform: translateX(-50%);
  width: 2px;
}

.timeline-marker:nth-of-type(odd)::before {
  bottom: 40px;
  top: auto;
}

.marker-popover {
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(68, 130, 44, 0.18);
  color: var(--text);
  left: 50%;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: 64px;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 220px;
  z-index: 5;
}

.timeline-marker:nth-of-type(odd) .marker-popover {
  bottom: 64px;
  top: auto;
  transform: translate(-50%, -8px);
}

.timeline-marker:hover .marker-popover,
.timeline-marker:focus-visible .marker-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.marker-popover p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 8px 0;
}

.marker-popover small {
  color: var(--deep-green);
  font-weight: 900;
}

.timeline-list {
  margin-top: 18px;
}

.timeline-detail-heading {
  align-items: end;
  margin: 34px 0 18px;
}

.player-managed-events {
  margin-top: 34px;
}

.player-managed-events .compact-head {
  align-items: end;
  margin-bottom: 18px;
}

.page-subheading {
  color: var(--deep-green);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  margin: -6px 0 12px;
}

.player-event-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.player-event-section {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(47, 143, 34, 0.12);
  overflow: hidden;
}

.player-event-section-title {
  align-items: center;
  color: var(--deep-green);
  cursor: pointer;
  display: flex;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 950;
  justify-content: space-between;
  line-height: 1;
  margin: 0;
  padding: 20px 24px;
}

.player-event-section-title::-webkit-details-marker {
  display: none;
}

.player-event-section-title::after {
  color: var(--deep-green);
  content: ">";
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.player-event-section[open] .player-event-section-title::after {
  transform: rotate(90deg);
}

.player-event-section-count {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 900;
  margin-left: auto;
  margin-right: 18px;
}

.player-event-section-grid {
  border-top: 3px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.timeline-detail-section {
  margin-top: 18px;
}

.wave-parent-grid,
.repeatable-parent-grid {
  border-top: 3px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wave-parent-grid .wave-accordion-section,
.repeatable-parent-grid .player-event-section {
  margin-top: 0;
}

.repeatable-parent-grid .player-event-section {
  box-shadow: 0 6px 0 rgba(47, 143, 34, 0.1);
}

.player-event-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 8px 0 rgba(47, 143, 34, 0.12),
    0 16px 36px rgba(68, 130, 44, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.player-event-card h3 {
  margin: 0;
}

.player-event-recurrence {
  background: #e7ffd3;
  border-radius: 999px;
  color: var(--deep-green);
  font-size: 0.82rem;
  font-weight: 900;
  justify-self: start;
  padding: 7px 11px;
  text-transform: uppercase;
}

.player-event-recurrence-spontaneous {
  background: #e8f8ff;
  color: #2585a0;
}

.player-event-recurrence-weekly {
  background: #ffe1f0;
  color: #9b2f60;
}

.player-event-recurrence-bi_weekly {
  background: #f4e7ff;
  color: #7a3fa0;
}

.player-event-recurrence-once_per_wave {
  background: #e7ffd3;
  color: var(--deep-green);
}

.timeline-popup-importance.player-event-spontaneous {
    background: #e8f8ff;
    color: #2585a0;
}

.timeline-popup-importance.player-event-weekly {
    background: #ffe1f0;
    color: #9b2f60;
}

.timeline-popup-importance.player-event-bi_weekly {
    background: #f4e7ff;
    color: #7a3fa0;
}

.timeline-popup-importance.player-event-once_per_wave {
    background: #e7ffd3;
    color: var(--deep-green);
}

.player-event-card p {
  color: var(--muted);
  margin: 0;
  width: 100%;
}

.player-event-availability,
.player-event-unlock-note {
  background: #f8fff1;
  border: 2px solid rgba(44, 117, 34, 0.14);
  border-radius: 7px;
  color: var(--deep-green) !important;
  font-size: 0.92rem;
  font-weight: 850;
  padding: 10px 12px;
}

.player-event-card.is-highlighted {
  border-color: rgba(44, 117, 34, 0.5);
  box-shadow:
    0 8px 0 rgba(47, 143, 34, 0.2),
    0 0 0 6px rgba(185, 239, 145, 0.45);
}

.player-event-placements {
  color: var(--deep-green) !important;
  font-size: 0.95rem;
  font-weight: 900;
}

.player-wave-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-wave-option {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
}

.player-event-edit {
  margin-top: auto;
}

.player-event-empty {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .player-event-section-grid {
    grid-template-columns: 1fr;
  }
}

.wave-card {
  padding: 18px;
}

.timeline-item {
  background: var(--surface-soft);
  border: 2px solid rgba(44, 117, 34, 0.13);
  border-radius: 7px;
  margin-top: 12px;
  padding: 12px;
}

.timeline-item.staff-only {
  background: #fff1f1;
  border-color: rgba(255, 101, 112, 0.28);
}

.timeline-item span {
  color: var(--deep-green);
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
}

.timeline-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
}

.timeline-editor:empty {
  display: none;
}

.timeline-editor[hidden] {
  display: none;
}

.editor-title h3 {
  margin: 0;
}

.editor-row {
  align-items: end;
  background: #f8fff1;
  border: 2px solid rgba(44, 117, 34, 0.15);
  border-radius: 7px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.4fr) 90px minmax(180px, 1.1fr) 150px 150px;
  padding: 12px;
}

.editor-row label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 6px;
}

.editor-row input,
.editor-row select {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 38px;
  padding: 0 10px;
}

.editor-row input:disabled,
.editor-row select:disabled {
  background: #edf2e8;
  color: #7a8874;
  cursor: not-allowed;
}

.editor-row input[type="range"] {
  padding: 0;
}

.check-label {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}

.check-label input {
  min-height: auto;
}

.info-tile {
  padding: 20px;
}

.info-tile span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.info-tile strong {
  overflow-wrap: anywhere;
}

.toast {
  background: #ffffff;
  border: 3px solid rgba(47, 143, 34, 0.36);
  border-radius: 7px;
  bottom: 18px;
  box-shadow: 0 14px 38px rgba(47, 143, 34, 0.18);
  color: var(--text);
  left: 50%;
  max-width: min(520px, calc(100vw - 28px));
  opacity: 0;
  padding: 13px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    border-bottom: 3px solid var(--line);
    border-right: 0;
    min-height: 400px;
  }

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

  .content-grid.games-sections {
    grid-template-columns: 1fr;
  }

  .split-head {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
  }

  .discord-button {
    max-width: 210px;
  }

  .hero-content,
  .login-panel,
  .editor-row {
    grid-template-columns: 1fr;
  }

  .staff-actions {
    justify-content: flex-start;
  }

  .wave-accordion-trigger {
    grid-template-columns: 1fr auto;
  }

  .wave-accordion-summary {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .content-grid.store-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-option-row {
    grid-template-columns: 1fr;
  }

  .product-option-row .danger-button {
    justify-self: start;
  }

  .topbar,
  .hero-content,
  .band {
    padding-inline: 16px;
  }

  .home-social-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
  }

  .home-social-links {
    justify-content: flex-start;
  }

  .topbar {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand-mark {
    height: 44px;
    width: 44px;
  }

  .discord-button {
    min-height: 42px;
    padding-inline: 12px;
  }

  .discord-profile-button {
    height: 50px;
    width: 50px;
  }

  .nav-cart-button {
    height: 50px;
    width: 50px;
  }

  .discord-profile-button .discord-avatar {
    height: 38px;
    width: 38px;
  }

  .nav-cart-icon {
    height: 38px;
    width: 38px;
  }

  .nav-cart-icon svg {
    height: 22px;
    width: 22px;
  }

  .discord-login-icon {
    height: 38px;
    width: 38px;
  }

  .discord-login-icon svg {
    height: 22px;
    width: 22px;
  }

  .hero-content {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .fan-card {
    grid-template-columns: 64px 1fr;
  }

  .fan-card img {
    width: 64px;
  }

  .wave-labels {
    font-size: 0.8rem;
  }

  .timeline-track {
    margin-inline: 2px;
  }

}

/* ============================================================
   DATABASE TIMELINE
   ============================================================ */

.timeline-track {
    position: relative;

    height: 290px;

    margin: 58px 12px 18px;

    --today-position: 0%;

    background: transparent !important;
}


.wave-lines {
    position: absolute;

    inset: 0;

    display: grid;

    align-items: center;

    pointer-events: none;
}


.wave-lines::before {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 50%;

    height: 3px;

    transform: translateY(-50%);

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #a8ee82 0 var(--today-position),
            var(--deep-green) var(--today-position) 100%
        );
}


.timeline-track.timeline-not-started .wave-lines::before {
    background: #cfd8ca;
}


.timeline-track.timeline-not-started .timeline-wave-divider {
    background: rgba(100, 112, 96, 0.28);
}


.timeline-wave-divider {
    background: rgba(23, 52, 15, 0.28);

    border: 0;

    border-radius: 999px;

    cursor: pointer;

    height: 118px;

    pointer-events: auto;

    position: absolute;

    top: 50%;

    transform: translate(-50%, -50%);

    width: 3px;

    text-decoration: none;
}

.timeline-track.timeline-editing .timeline-wave-divider {
    cursor: grab;
}

.timeline-track.timeline-editing .timeline-wave-divider.is-dragging {
    cursor: grabbing;
    z-index: 18;
}


.timeline-wave-divider.oc-divider {
    background: rgba(58, 183, 216, 0.48);

    height: 126px;
}


.timeline-wave-divider.cc-start-divider {
    background: rgba(168, 238, 130, 0.82);

    height: 126px;
}


.timeline-wave-divider.active {
    background: #d93636;
    box-shadow: 0 0 0 6px rgba(217, 54, 54, 0.12);
}


.timeline-wave-divider span {
    background: #e7ffd3;

    border: 2px solid rgba(47, 143, 34, 0.18);

    border-radius: 999px;

    color: var(--deep-green);

    font-size: 0.78rem;

    font-weight: 900;

    left: 50%;

    opacity: 0;

    padding: 7px 10px;

    pointer-events: none;

    position: absolute;

    top: -44px;

    transform: translate(-50%, 8px);

    transition: opacity 160ms ease, transform 160ms ease;

    white-space: nowrap;
}


.timeline-wave-divider.oc-divider span {
    background: #e8f8ff;

    color: #2585a0;
}


.timeline-wave-divider.cc-start-divider span {
    background: #e7ffd3;

    color: var(--deep-green);
}


.timeline-wave-divider:hover span,
.timeline-wave-divider:focus span,
.timeline-wave-divider:focus-within span {
    opacity: 1;

    transform: translate(-50%, 0);
}


.timeline-points {
    position: absolute;

    inset: 0;

    pointer-events: none;
}


.timeline-current-marker {
    align-items: center;

    display: flex;

    flex-direction: column;

    gap: 6px;

    left: 0;

    position: absolute;

    top: calc(50% - 106px);

    transform: translateX(-50%);

    z-index: 8;
}


.timeline-unavailable {
    background: #ffffff;

    border: 3px solid var(--line);

    border-radius: var(--radius);

    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.12);

    color: var(--muted);

    font-weight: 900;

    left: 50%;

    max-width: min(520px, calc(100% - 32px));

    padding: 16px 18px;

    pointer-events: auto;

    position: absolute;

    text-align: center;

    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 9;
}


.current-arrow {
    border-left: 11px solid transparent;

    border-right: 11px solid transparent;

    border-top: 18px solid var(--deep-green);

    filter: drop-shadow(0 4px 0 rgba(29, 102, 21, 0.22));

    height: 0;

    width: 0;
}


.timeline-current-marker::after {
    background: var(--deep-green);

    border-radius: 999px;

    content: "";

    height: 78px;

    width: 3px;
}


.current-label {
    background: var(--deep-green);

    border-radius: 999px;

    color: #ffffff;

    font-size: 0.76rem;

    font-weight: 900;

    padding: 5px 8px;

    position: absolute;

    top: -32px;

    white-space: nowrap;
}


/* TIMELINE POINT */

.timeline-point {
    position: absolute;

    top: 50%;

    transform: translate(-50%, -50%);

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    pointer-events: auto;

    z-index: 5;
}

.timeline-track.timeline-editing .timeline-point {
    cursor: grab;
}

.timeline-track.timeline-editing .timeline-point.is-dragging {
    cursor: grabbing;
    z-index: 22;
}

.timeline-track.timeline-editing .timeline-dot {
    box-shadow: 0 0 0 5px rgba(255, 216, 92, 0.2);
}


.timeline-dot {
    align-items: center;

    display: block;

    width: 18px;
    height: 18px;

    margin: auto;

    border-radius: 50%;

    background: #ffffff;

    border: 4px solid var(--deep-green);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
    transform-origin: center;
}

.timeline-point-grouped .timeline-dot {
    display: flex;
    justify-content: center;
    min-height: 22px;
    min-width: 22px;
}

.timeline-point-count {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
}


.timeline-point.planned .timeline-dot {
    opacity: 0.8;
}


.timeline-point.major .timeline-dot {
    border-color: #d93636;

    background: #ffe1dd;
}


.timeline-point.minor .timeline-dot {
    border-color: #f28c28;

    background: #ffe3bd;
}

.timeline-point.player-event-point .timeline-dot {
    background: #e8f8ff;
    border-color: #4d93ad;
}

.timeline-point.player-event-weekly .timeline-dot {
    background: #ffe1f0;
    border-color: #e779aa;
    border-width: 3px;
    height: 12px;
    width: 12px;
}

.timeline-point.player-event-bi_weekly .timeline-dot {
    background: #f4e7ff;
    border-color: #8d55b3;
    border-width: 3px;
    height: 14px;
    width: 14px;
}

.timeline-point.player-event-spontaneous .timeline-dot {
    background: #e8f8ff;
    border-color: #4d93ad;
    height: 16px;
    width: 16px;
}

.timeline-point.player-event-once_per_wave .timeline-dot {
    background: #e7ffd3;
    border-color: var(--deep-green);
    height: 18px;
    width: 18px;
}


.timeline-point:hover .timeline-dot,
.timeline-point:focus-visible .timeline-dot,
.timeline-point:focus-within .timeline-dot {

    opacity: 1;

    transform: scale(1.45);

    box-shadow:
        0 0 0 8px rgba(47, 143, 34, 0.18),
        0 5px 14px rgba(47, 143, 34, 0.18);
}


/* HOVER POPUP */

.timeline-popup {
    position: absolute;

    left: 50%;

    bottom: calc(100% + 16px);

    transform:
        translateX(-50%)
        translateY(18px);

    width: 280px;

    max-height: 360px;

    overflow: hidden;

    padding: 16px;

    border-radius: var(--radius);

    background: #ffffff;

    border: 3px solid var(--line);

    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.18);

    text-align: left;

    color: var(--text);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 500ms ease,
        transform 500ms ease,
        visibility 0ms linear 500ms;

    z-index: 50;
}

.timeline-popup.is-grouped {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    max-height: min(520px, calc(100vh - 32px));
    overflow: visible;
    padding: 0;
    width: max-content;
}

.timeline-popup.is-clickable {
    cursor: pointer;
}

.timeline-popup.is-grouped.is-floating {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}

.timeline-popup-list {
    align-items: stretch;
    display: flex;
    gap: 12px;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
    padding: 0;
}

.timeline-popup-event {
    display: contents;
}

.timeline-popup-event.is-clickable {
    cursor: pointer;
}

.timeline-popup.is-grouped .timeline-popup-event {
    background: #ffffff;
    border: 3px solid var(--line);
    border-radius: var(--radius);
    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.18);
    display: grid;
    gap: 4px;
    max-height: 360px;
    min-width: 280px;
    overflow: clip;
    padding: 16px;
    transition:
        border-color 180ms ease,
        box-shadow 220ms ease,
        filter 220ms ease,
        transform 180ms ease;
    width: 280px;
}

.timeline-popup.is-grouped .timeline-popup-event.is-clickable:hover,
.timeline-popup.is-grouped .timeline-popup-event.is-clickable:focus-visible {
    border-color: rgba(47, 143, 34, 0.32);
    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.16),
        0 0 0 6px rgba(111, 210, 45, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.18);
    filter: saturate(1.04);
    outline: 0;
    transform: translateY(-2px);
}

.timeline-popup.is-floating {
    bottom: auto;
    left: 0;
    position: fixed;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    visibility: visible;
    z-index: 9999;
}


.timeline-popup::after {
    content: "";

    position: absolute;

    left: 50%;

    top: 100%;

    transform: translateX(-50%);

    border: 8px solid transparent;

    border-top-color: #ffffff;
}

.timeline-popup.is-grouped::after {
    display: none;
}

.timeline-popup.is-floating::after {
    left: var(--popup-arrow-left, 50%);
}

.timeline-popup.is-floating.is-below::after {
    border-bottom-color: #ffffff;
    border-top-color: transparent;
    bottom: 100%;
    top: auto;
}


.timeline-popup.is-floating.is-visible {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

.timeline-popup.is-floating.is-visible {
    transform: translateY(0);
}

.timeline-popup.is-floating.is-hiding {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    visibility: visible;
}

.timeline-point.near-left .timeline-popup {
    left: 0;
    transform: translateX(0) translateY(18px);
}

.timeline-point.near-left .timeline-popup::after {
    left: 18px;
    transform: none;
}

.timeline-point.near-right .timeline-popup {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(18px);
}

.timeline-point.near-right .timeline-popup::after {
    left: auto;
    right: 18px;
    transform: none;
}


.timeline-popup h3 {
    margin: 0 0 5px;
}


.timeline-popup-date {
    display: block;

    margin-bottom: 10px;

    color: var(--deep-green);

    font-size: 0.85rem;

    font-weight: 900;
}


.timeline-popup-status,
.timeline-list-status,
.timeline-popup-importance,
.timeline-list-importance {
    background: #e7ffd3;

    border-radius: 999px;

    color: var(--deep-green);

    display: inline-flex;

    font-size: 0.78rem;

    font-weight: 900;

    margin-bottom: 10px;

    padding: 6px 9px;

    text-transform: uppercase;
}


.timeline-point.planned .timeline-popup-status {
    background: #fff7c8;

    color: #8b6a00;
}


.timeline-popup-importance.major,
.timeline-list-importance.major {
    background: #ffe1dd;

    color: #9d2020;
}


.timeline-popup-importance.minor,
.timeline-list-importance.minor {
    background: #ffe3bd;

    color: #9a4d00;
}

.timeline-popup-importance.player-event-spontaneous {
    background: #e8f8ff;
    color: #2585a0;
}

.timeline-popup-importance.player-event-weekly {
    background: #ffe1f0;
    color: #9b2f60;
}

.timeline-popup-importance.player-event-bi_weekly {
    background: #f4e7ff;
    color: #7a3fa0;
}

.timeline-popup-importance.player-event-once_per_wave {
    background: #e7ffd3;
    color: var(--deep-green);
}


.timeline-popup p {
    margin: 0;

    color: var(--muted);

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 4;

    line-height: 1.5;

    overflow: hidden;

    text-overflow: ellipsis;
}


.timeline-popup-image {
    display: block;

    width: 100%;

    max-height: 150px;

    object-fit: cover;

    margin-top: 12px;

    border-radius: 8px;
}


.timeline-popup-edit {
    margin-top: 12px;

    background: var(--deep-green);

    border-radius: 7px;

    box-shadow: 0 5px 0 var(--shadow-green);

    color: #ffffff;

    font-weight: 900;

    min-height: 36px;

    padding: 0 12px;
}

.timeline-edit-toggle.active {
    background: #e7ffd3;
    border-color: rgba(47, 143, 34, 0.42);
    color: var(--text);
    filter: saturate(1.04);
}

.timeline-date-picker {
    animation: softRise 240ms ease both;
    background: #ffffff;
    border: 3px solid var(--line);
    border-radius: 8px;
    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.18);
    display: grid;
    gap: 12px;
    padding: 16px;
    position: fixed;
    right: 24px;
    top: 110px;
    width: min(340px, calc(100vw - 32px));
    z-index: 10000;
}

.timeline-date-picker h3 {
    margin: 0;
}

.timeline-date-picker label {
    color: var(--muted);
    display: grid;
    font-weight: 850;
    gap: 8px;
}

.timeline-date-picker input {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font: inherit;
    font-weight: 850;
    min-height: 42px;
    padding: 0 10px;
}

.timeline-date-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* EVENT LIST */

.timeline-empty {
    text-align: center;

    opacity: 0.7;
}


.timeline-list-card {
    margin-top: 16px;

    padding: 16px;

    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.92);

    border: 3px solid var(--line);

    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.12);
}


.timeline-list-card time {
    color: var(--deep-green);

    display: block;

    font-size: 0.88rem;

    font-weight: 900;

    margin-bottom: 10px;
}


.timeline-list-card p {
    color: var(--muted);

    line-height: 1.55;
}


.timeline-list-card button {
    background: var(--deep-green);

    border-radius: 7px;

    box-shadow: 0 5px 0 var(--shadow-green);

    color: #ffffff;

    font-weight: 900;

    min-height: 36px;

    padding: 0 12px;
}


/* WAVE DETAIL ACCORDION */

.wave-accordion-section {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 0 rgba(47, 143, 34, 0.1);
    margin-top: 14px;
    overflow: hidden;
    width: 100%;
}

.wave-accordion-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--deep-green);
    display: grid;
    gap: 10px 18px;
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 18px 24px;
    text-align: left;
    width: 100%;
}

.wave-accordion-section.open .wave-accordion-trigger {
    background: #f3ffe8;
}

.wave-accordion-section.locked {
    opacity: 0.72;
}

.wave-accordion-section.locked .wave-accordion-trigger {
    cursor: not-allowed;
}

.wave-accordion-section.locked .wave-accordion-arrow {
    color: #9ba896;
}

.wave-accordion-title {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 950;
}

.wave-accordion-summary {
    color: var(--muted);
    font-weight: 900;
    justify-self: end;
}

.wave-accordion-arrow {
    color: var(--deep-green);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 160ms ease;
}

.wave-accordion-section.open .wave-accordion-arrow {
    transform: rotate(90deg);
}

.wave-accordion-body {
    border-top: 3px solid var(--line);
    padding: 18px;
}

.wave-accordion-description {
    color: var(--muted);
    line-height: 1.58;
    margin: 0 0 18px;
    max-width: 840px;
}

.wave-inline-edit {
    margin: 0 0 18px;
}

.wave-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.wave-detail-meta span {
    background: #f8fff0;
    border: 2px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 850;
    padding: 8px 12px;
}

.wave-detail-timeline {
    display: grid;
    gap: 0;
    margin: 24px 0 0;
    position: relative;
}

.wave-detail-timeline::before {
    background: linear-gradient(180deg, #a8ee82, var(--deep-green));
    border-radius: 999px;
    content: "";
    inset: 20px auto 20px 22px;
    position: absolute;
    width: 4px;
}

.wave-detail-event {
    display: grid;
    gap: 18px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding-bottom: 22px;
    position: relative;
    scroll-margin-top: 100px;
}

.wave-detail-dot {
    background: var(--gold);
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(47, 143, 34, 0.22);
    height: 22px;
    justify-self: center;
    margin-top: 26px;
    position: relative;
    width: 22px;
    z-index: 2;
}

.wave-detail-event.major .wave-detail-dot {
    background: #d93636;
    box-shadow: 0 0 0 3px rgba(217, 54, 54, 0.22);
}

.wave-detail-event.minor .wave-detail-dot {
    background: #f28c28;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.25);
}

.wave-detail-event.planned .wave-detail-dot {
    opacity: 0.75;
}

.wave-detail-card {
    background: rgba(255, 255, 255, 0.94);
    border: 3px solid var(--line);
    border-radius: var(--radius);
    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.12);
    padding: 18px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.wave-detail-event.is-highlighted .wave-detail-card {
    border-color: var(--gold);
    box-shadow:
        0 9px 0 rgba(218, 186, 64, 0.24),
        0 18px 52px rgba(218, 186, 64, 0.28);
    transform: translateY(-2px);
}

.wave-detail-card-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wave-detail-card-head time,
.wave-detail-card-head span {
    font-size: 0.84rem;
    font-weight: 900;
}

.wave-detail-card-head time {
    color: var(--deep-green);
}

.wave-detail-card-head span {
    background: #e7ffd3;
    border-radius: 999px;
    color: var(--deep-green);
    padding: 6px 10px;
}

.wave-detail-event.planned .wave-detail-card-head span {
    background: #fff6bd;
    color: #6b5a00;
}

.wave-detail-event.planned .wave-detail-card-head .timeline-list-importance.major,
.wave-detail-card-head .timeline-list-importance.major {
    background: #ffe1dd;
    color: #9d2020;
}

.wave-detail-event.planned .wave-detail-card-head .timeline-list-importance.minor,
.wave-detail-card-head .timeline-list-importance.minor {
    background: #ffe3bd;
    color: #9a4d00;
}

.wave-detail-card h2,
.wave-detail-card h3 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    margin-bottom: 10px;
}

.wave-detail-card p {
    color: var(--muted);
    line-height: 1.58;
}

.wave-detail-card img {
    border: 3px solid var(--line);
    border-radius: var(--radius);
    display: block;
    margin-top: 14px;
    max-height: 320px;
    object-fit: cover;
    width: 100%;
}

.wave-detail-card button {
    background: var(--deep-green);
    border-radius: 7px;
    box-shadow: 0 5px 0 var(--shadow-green);
    color: #ffffff;
    font-weight: 900;
    margin-top: 14px;
    min-height: 36px;
    padding: 0 12px;
}


/* EDITORS */

.content-grid.news-sections {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
}

.news-game-section {
    border: 3px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 9px 0 rgba(47, 143, 34, 0.12);
    padding: clamp(18px, 3vw, 30px);
}

.news-game-section.rell-seas-news {
    background: #e9f8ff;
}

.news-game-section.shindo-news {
    background: #ecfbdc;
}

.news-section-heading,
.discord-feed-heading,
.discord-message-meta {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.news-section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.news-section-heading span {
    color: var(--muted);
    font-weight: 850;
}

.discord-news-feed {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--line);
    border-radius: 7px;
    margin-top: 22px;
    overflow: hidden;
}

.discord-feed-trigger {
    align-items: center;
    background: #ffffff;
    color: var(--text);
    display: grid;
    gap: 8px 14px;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) auto auto;
    min-height: 68px;
    padding: 14px 18px;
    text-align: left;
    width: 100%;
}

.discord-news-feed.open .discord-feed-trigger {
    background: #f0ffe4;
}

.discord-feed-title {
    font-size: 1.15rem;
    font-weight: 900;
}

.discord-feed-summary,
.discord-feed-count,
.news-feed-empty {
    color: var(--muted);
    font-weight: 750;
}

.discord-feed-count {
    white-space: nowrap;
}

.discord-feed-arrow {
    color: var(--deep-green);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 160ms ease;
}

.discord-news-feed.open .discord-feed-arrow {
    transform: rotate(90deg);
}

.discord-feed-body {
    padding: 18px;
}

.discord-feed-toolbar {
    display: flex;
    justify-content: flex-end;
}

.discord-message-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.discord-message {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
}

.discord-avatar {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.discord-message-meta {
    justify-content: flex-start;
}

.discord-message-meta time {
    color: var(--muted);
    font-size: 0.78rem;
}

.discord-message p {
    line-height: 1.5;
    margin-top: 5px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.discord-jump-link,
.discord-attachment-link {
    color: var(--deep-green);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 850;
    margin-top: 8px;
}

.discord-attachment-image {
    border-radius: 7px;
    display: block;
    margin-top: 10px;
    max-height: 360px;
    max-width: min(100%, 620px);
    object-fit: contain;
}

.news-feed-editor select {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    min-height: 44px;
    padding: 8px 10px;
    width: 100%;
}

.discord-news-feed-editing .mini-edit {
    position: static;
}

.inline-news-feed-editor {
    margin: 22px 0 4px;
}

.inline-news-feed-editor h2 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.timeline-wave-editor {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.inline-wave-form {
    margin: 0 0 18px 66px;
}

.timeline-wave-editor h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.timeline-event-form,
.timeline-wave-form {

    display: grid;

    gap: 16px;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-top: 20px;

    background: rgba(255, 255, 255, 0.95);

    border: 3px solid var(--line);

    border-radius: var(--radius);

    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.12);

    padding: 18px;
}

.timeline-event-form h2,
.timeline-wave-form h2,
.timeline-event-form .form-field-wide,
.timeline-wave-form .form-field-wide,
.timeline-form-actions {
    grid-column: 1 / -1;
}


.timeline-event-form label,
.timeline-wave-form label {

    display: grid;

    gap: 6px;

    color: var(--muted);

    font-size: 0.86rem;

    font-weight: 850;
}

.timeline-event-form [hidden] {
    display: none !important;
}


.timeline-event-form input,
.timeline-event-form textarea,
.timeline-event-form select,
.timeline-wave-form input,
.timeline-wave-form textarea,
.timeline-wave-form select {

    width: 100%;

    box-sizing: border-box;

    background: #ffffff;

    border: 2px solid var(--line);

    border-radius: 7px;

    color: var(--text);

    min-height: 40px;

    padding: 8px 10px;
}

.timeline-repeat-field {
    border: 2px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
}

.timeline-repeat-field legend {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    padding: 0 10px;
}

.timeline-repeat-field p {
    color: var(--muted);
    margin: 0;
}

.timeline-repeat-list {
    display: grid;
    gap: 10px;
}

.timeline-repeat-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
}

.timeline-repeat-row.player-placement-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.player-repeat-fill {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-self: start;
}

.player-repeat-fill[hidden] {
    display: none;
}

.timeline-repeat-row .compact-danger {
    margin-left: 0;
    min-height: 40px;
}

@media (max-width: 720px) {
    .timeline-repeat-row {
        grid-template-columns: 1fr;
    }
}

.timeline-repeat-note {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
    margin-top: -6px;
}


.timeline-form-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    align-items: center;
}


.danger-button {
    background: #ffe1dd;
    border: 2px solid rgba(157, 32, 32, 0.22);
    border-radius: 7px;
    box-shadow: 0 5px 0 rgba(157, 32, 32, 0.16);
    color: #9d2020;
    font-weight: 900;
    margin-left: auto;
    min-height: 42px;
    padding: 0 16px;
}

/*
|--------------------------------------------------------------------------
| MOTION
|--------------------------------------------------------------------------
*/

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes softRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes gentlePop {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }

    70% {
        transform: scale(1.015);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes leafPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(111, 210, 45, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(111, 210, 45, 0);
    }
}

@keyframes tinyBob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.brand-mark,
.home-social-brand img,
.mobile-sidebar-title img {
    transition:
        filter 220ms ease,
        transform 220ms ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark,
.home-social-brand:hover img {
    filter: saturate(1.08);
    transform: rotate(-3deg) scale(1.04);
}

.band,
.hero-content,
.timeline-shell,
.timeline-list,
.player-managed-events,
.home-social-footer,
.staff-band {
    animation: softRise 560ms ease both;
}

.band:nth-of-type(2),
.timeline-list,
.player-managed-events {
    animation-delay: 70ms;
}

.band:nth-of-type(3),
.home-social-footer,
.staff-band {
    animation-delay: 120ms;
}

.content-card,
.fan-card,
.login-panel,
.store-product,
.product-detail,
.wave-card,
.event-feed,
.discord-feed,
.player-event-card,
.timeline-event-form,
.timeline-wave-form,
.content-editor,
.auth-menu {
    animation: gentlePop 420ms ease both;
}

.content-card,
.fan-card,
.store-product,
.wave-card,
.event-feed,
.discord-feed,
.player-event-card,
.home-social-footer .sidebar-social-link,
.mobile-sidebar a,
.role-pill {
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 220ms ease,
        color 180ms ease,
        filter 220ms ease,
        transform 180ms ease;
}

.content-card:hover,
.content-card:focus-visible,
.fan-card:hover,
.fan-card:focus-visible,
.store-product:hover,
.store-product:focus-within,
.wave-card:hover,
.wave-card:focus-within,
.event-feed:hover,
.event-feed:focus-within,
.discord-feed:hover,
.discord-feed:focus-within,
.player-event-card:hover,
.player-event-card:focus-within {
    border-color: rgba(47, 143, 34, 0.3);
    box-shadow:
        0 10px 0 rgba(47, 143, 34, 0.14),
        0 22px 42px rgba(68, 130, 44, 0.16);
    transform: translateY(-4px);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.plain-link:hover,
.staff-button:hover,
.danger-button:hover,
.mini-edit:hover,
.discord-button:hover,
.nav-toggle:hover,
.cart-button:hover,
.cart-close:hover {
    filter: saturate(1.08);
}

.primary-action:active,
.secondary-action:active,
.ghost-action:active,
.plain-link:active,
.staff-button:active,
.danger-button:active,
.mini-edit:active,
.discord-button:active,
.nav-toggle:active,
.cart-button:active,
.cart-close:active {
    box-shadow: 0 2px 0 rgba(29, 102, 21, 0.5);
    transform: translateY(3px);
}

.nav-links a.active {
    animation: leafPulse 2600ms ease-in-out infinite;
}

.video-carousel-frame,
.store-product-media img,
.product-detail-media img {
    transition:
        filter 260ms ease,
        transform 260ms ease;
}

.video-carousel-frame:hover,
.store-product:hover .store-product-media img,
.product-detail-media:hover img {
    filter: saturate(1.06);
    transform: scale(1.015);
}

details[open] > summary ~ * {
    animation: softRise 240ms ease both;
}

.wave-accordion-trigger,
.player-event-section-title,
.discord-feed-trigger,
.event-feed-trigger {
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.wave-accordion-trigger:hover,
.player-event-section-title:hover,
.discord-feed-trigger:hover,
.event-feed-trigger:hover {
    transform: translateX(3px);
}

.timeline-dot {
    animation: gentlePop 340ms ease both;
}

.timeline-point.is-existing .timeline-dot {
    animation: none;
}

.timeline-point.is-removing {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.today-line .today-marker,
.timeline-today,
.today-pill {
    animation: tinyBob 1900ms ease-in-out infinite;
}

input,
select,
textarea {
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 5px rgba(111, 210, 45, 0.12);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 640px) {
    .event-feed-trigger {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .event-feed-title,
    .event-feed-reward,
    .event-feed-time {
        grid-column: 1;
    }

    .event-feed-arrow {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .discord-feed-trigger {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .discord-feed-summary,
    .discord-feed-count {
        grid-column: 1;
    }

    .discord-feed-arrow {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .timeline-event-form,
    .timeline-wave-form,
    .content-editor {
        grid-template-columns: 1fr;
    }

    .danger-button,
    .wave-inline-edit,
    .inline-wave-form,
    .wave-accordion-description {
        margin-left: 0;
    }
}
.staff-copy-id {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.staff-copy-id:hover,
.staff-copy-id:focus-visible {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.staff-copy-id.is-copied {
  color: var(--deep-green);
}

.staff-confirm-user ul {
  margin: 0;
  padding-left: 1.25rem;
}

.staff-stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.staff-stats-tabs button {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 18px;
}

.staff-stats-tabs button.is-active {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: #fff;
}

.staff-stats-role-picker {
  color: var(--muted);
  display: grid;
  font-weight: 850;
  gap: 7px;
  margin-bottom: 24px;
  max-width: 360px;
}

.staff-stats-role-picker select {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

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

.staff-stats-heading h2 {
  margin: 0;
}

.staff-stats-month-picker {
  color: var(--muted);
  display: grid;
  font-weight: 850;
  gap: 5px;
}

.staff-stats-month-picker select {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  min-width: 190px;
  padding: 10px 36px 10px 12px;
}

.staff-stats-members {
  display: grid;
  gap: 12px;
}

.staff-stat-member {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.staff-stat-member summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.5fr) auto;
  list-style-position: inside;
  padding: 16px 18px;
}

.staff-stat-name {
  font-size: 1.05rem;
  font-weight: 950;
}

.staff-stat-summary {
  color: var(--muted);
  font-weight: 750;
}

.staff-stat-points {
  align-items: flex-end;
  border: 2px solid #bd5b38;
  border-radius: 999px;
  background: #ffe2d5;
  color: #8b2f18;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  padding: 8px 13px;
  white-space: nowrap;
}

.staff-stat-points.has-quota {
  background: #d9f7df;
  border-color: #3a9b59;
  color: #17652f;
}

.staff-stat-weeks {
  border-top: 1px solid var(--line);
}

.staff-stat-week {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(140px, 0.6fr) minmax(280px, 2fr) auto;
  padding: 13px 18px;
}

.staff-stat-week:nth-child(even) {
  background: #f8fff3;
}

.staff-stat-week div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 760px) {
  .staff-stats-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-stat-member summary,
  .staff-stat-week {
    grid-template-columns: 1fr;
  }
}

/* Staff Portal uses a separate operations-console visual identity. */
.staff-interface {
  --bg: #eef7ff;
  --surface: #ffffff;
  --surface-soft: #f4f9ff;
  --line: rgba(31, 111, 201, 0.2);
  --text: #102a46;
  --muted: #58728f;
  --green: #3395ff;
  --deep-green: #1677e8;
  --shadow-green: #0752aa;
  --blue: #42b8ff;
  color-scheme: light;
  background:
    radial-gradient(circle at 12% 4%, rgba(51, 149, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(79, 183, 255, 0.12), transparent 26%),
    linear-gradient(155deg, #ffffff 0%, #f2f8ff 54%, #eaf4ff 100%);
  color: var(--text);
  min-height: 100vh;
}

.staff-interface main {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 28px 56px;
}

.staff-interface-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 28px 4px;
}

.staff-main-site-link {
  align-items: center;
  background: rgba(13, 25, 43, 0.92);
  border: 1px solid rgba(92, 173, 255, 0.36);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #dceeff;
  display: inline-flex;
  font-weight: 850;
  min-height: 44px;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.staff-theme-control {
  align-items: center;
  color: #496985;
  display: flex;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 10px;
}

.staff-theme-control select {
  background: #ffffff;
  border: 1px solid rgba(31, 111, 201, 0.28);
  border-radius: 8px;
  color: #163a5d;
  font-weight: 850;
  min-height: 42px;
  padding: 0 34px 0 12px;
}

.staff-main-site-link:hover,
.staff-main-site-link:focus-visible {
  background: #132b4a;
  border-color: #55adff;
  outline: 3px solid rgba(62, 157, 255, 0.18);
  transform: translateY(-1px);
}

.staff-interface .band.staff-portal {
  background:
    linear-gradient(150deg, rgba(16, 28, 49, 0.97), rgba(7, 13, 24, 0.98));
  border: 1px solid rgba(94, 171, 255, 0.22);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staff-interface .staff-portal .eyebrow,
.staff-interface .staff-portal-card-tag {
  color: #59adff;
}

.staff-interface .section-head p:not(.eyebrow),
.staff-interface .staff-portal-card p,
.staff-interface .staff-record-toolbar span,
.staff-interface .staff-stat-summary,
.staff-interface .staff-stats-month-picker {
  color: var(--muted);
}

.staff-interface .staff-portal-card,
.staff-interface .staff-stat-member {
  background: linear-gradient(145deg, rgba(17, 30, 52, 0.98), rgba(8, 15, 27, 0.98));
  border-color: rgba(91, 171, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.staff-interface .staff-portal-card:hover,
.staff-interface .staff-portal-card:focus-visible {
  border-color: #3395ff;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(51, 149, 255, 0.12);
}

.staff-interface .staff-portal-card-bans,
.staff-interface .staff-portal-card-unbans,
.staff-interface .staff-portal-card-restores {
  background: linear-gradient(145deg, rgba(17, 34, 59, 0.98), rgba(7, 13, 24, 0.98));
}

.staff-interface .staff-portal-card-action {
  color: #65b5ff;
}

.staff-interface .ghost-action,
.staff-interface .staff-button,
.staff-interface .staff-stats-tabs button {
  background: #12243c;
  border-color: rgba(87, 170, 255, 0.35);
  color: #eaf5ff;
  box-shadow: none;
}

.staff-interface .staff-button,
.staff-interface .staff-stats-tabs button.is-active {
  background: linear-gradient(180deg, #248df5, #1168c7);
  border-color: #52aaff;
  color: #ffffff;
}

.staff-interface .ghost-action:hover,
.staff-interface .ghost-action:focus-visible,
.staff-interface .staff-button:hover,
.staff-interface .staff-button:focus-visible,
.staff-interface .staff-stats-tabs button:hover,
.staff-interface .staff-stats-tabs button:focus-visible {
  background: #1a3b62;
  border-color: #62b4ff;
}

.staff-interface .staff-record-toolbar,
.staff-interface .staff-confirm-user {
  background: #0d192b;
  border-color: rgba(89, 167, 255, 0.24);
}

.staff-interface .staff-record-toolbar input,
.staff-interface .staff-stats-month-picker select,
.staff-interface .staff-stats-role-picker select {
  background: #070d18;
  border-color: rgba(91, 171, 255, 0.28);
  color: #f2f7ff;
}

.staff-interface .staff-record-table-wrap {
  border-color: rgba(89, 167, 255, 0.24);
}

.staff-interface .staff-record-table {
  background: #080f1b;
}

.staff-interface .staff-record-table th {
  background: #132945;
  color: #eaf5ff;
}

.staff-interface .staff-record-table th,
.staff-interface .staff-record-table td,
.staff-interface .staff-stat-weeks {
  border-color: rgba(89, 167, 255, 0.16);
}

.staff-interface .staff-record-table tbody tr:nth-child(even) td,
.staff-interface .staff-stat-week:nth-child(even) {
  background: #0b1626;
}

.staff-interface .staff-record-table tbody tr:hover td {
  background: #112742;
}

.staff-interface .staff-record-table tbody tr.is-selected td {
  background: #17385d;
}

.staff-interface .staff-record-selector input {
  accent-color: #3395ff;
}

.staff-interface .staff-confirm-dialog {
  background: #0c1626;
  border-color: rgba(91, 171, 255, 0.36);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  color: var(--text);
}

.staff-interface .staff-confirm-dialog::backdrop {
  background: rgba(1, 4, 9, 0.78);
}

.staff-interface .staff-record-empty,
.staff-interface .staff-portal-error {
  background: #151d2a;
  border-color: rgba(80, 162, 255, 0.3);
  color: #bddcff;
}

.staff-interface .staff-stat-points {
  background: #461f27;
  border-color: #b85261;
  box-shadow: 0 0 0 3px rgba(184, 82, 97, 0.1);
  color: #ffbdc5;
}

.staff-interface .staff-stat-points.has-quota {
  background: #173c2b;
  border-color: #3e9b67;
  box-shadow: 0 0 0 3px rgba(62, 155, 103, 0.1);
  color: #baf0cd;
}

@media (max-width: 760px) {
  .staff-interface-header {
    min-height: 70px;
    padding: 14px 16px 0;
  }

  .staff-interface main {
    padding: 0 14px 36px;
  }
}

.staff-interface:not([data-staff-theme="dark"]) .staff-main-site-link {
  background: #ffffff;
  border-color: rgba(31, 111, 201, 0.28);
  box-shadow: 0 10px 28px rgba(25, 91, 156, 0.1);
  color: #164d83;
}

.staff-interface:not([data-staff-theme="dark"]) .band.staff-portal {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 111, 201, 0.18);
  box-shadow: 0 28px 70px rgba(25, 91, 156, 0.12);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-portal-card,
.staff-interface:not([data-staff-theme="dark"]) .staff-stat-member {
  background: linear-gradient(145deg, #ffffff, #f4f9ff);
  border-color: rgba(31, 111, 201, 0.18);
  box-shadow: 0 12px 28px rgba(25, 91, 156, 0.09);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-portal-card-bans,
.staff-interface:not([data-staff-theme="dark"]) .staff-portal-card-unbans,
.staff-interface:not([data-staff-theme="dark"]) .staff-portal-card-restores {
  background: linear-gradient(145deg, #eef7ff, #ffffff 68%);
}

.staff-interface:not([data-staff-theme="dark"]) .ghost-action,
.staff-interface:not([data-staff-theme="dark"]) .staff-stats-tabs button {
  background: #ffffff;
  border-color: rgba(31, 111, 201, 0.24);
  color: #174f84;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-toolbar,
.staff-interface:not([data-staff-theme="dark"]) .staff-confirm-user {
  background: #f1f7ff;
  border-color: rgba(31, 111, 201, 0.18);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-toolbar input,
.staff-interface:not([data-staff-theme="dark"]) .staff-stats-month-picker select,
.staff-interface:not([data-staff-theme="dark"]) .staff-stats-role-picker select {
  background: #ffffff;
  border-color: rgba(31, 111, 201, 0.22);
  color: #102a46;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table {
  background: #ffffff;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table th {
  background: #dceeff;
  color: #123a61;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr:nth-child(even) td,
.staff-interface:not([data-staff-theme="dark"]) .staff-stat-week:nth-child(even) {
  background: #f4f9ff;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr:hover td {
  background: #e9f4ff;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr.is-selected td {
  background: #d8ebff;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-confirm-dialog {
  background: #ffffff;
  border-color: rgba(31, 111, 201, 0.3);
  color: #102a46;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-empty,
.staff-interface:not([data-staff-theme="dark"]) .staff-portal-error {
  background: #eaf4ff;
  border-color: rgba(31, 111, 201, 0.22);
  color: #174f84;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-stat-points {
  background: #ffe3e3;
  border-color: #d65c65;
  box-shadow: 0 0 0 3px rgba(214, 92, 101, 0.08);
  color: #9d2630;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-stat-points.has-quota {
  background: #d9f5df;
  border-color: #3b9c59;
  box-shadow: 0 0 0 3px rgba(59, 156, 89, 0.08);
  color: #17632e;
}

.staff-interface[data-staff-theme="dark"] {
  --bg: #050913;
  --surface: #0c1424;
  --surface-soft: #101c31;
  --line: rgba(89, 167, 255, 0.24);
  --text: #eef6ff;
  --muted: #91a9c6;
  background:
    radial-gradient(circle at 12% 4%, rgba(28, 118, 232, 0.2), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(51, 149, 255, 0.12), transparent 26%),
    linear-gradient(155deg, #03060c 0%, #07101d 54%, #040812 100%);
}

.staff-interface[data-staff-theme="dark"] .staff-theme-control {
  color: #9bb2cc;
}

.staff-interface[data-staff-theme="dark"] .staff-theme-control select {
  background: #0d192b;
  border-color: rgba(91, 171, 255, 0.3);
  color: #eef6ff;
}

/* Main-site dark appearance. Staff Portal has its more specific theme above. */
body[data-site-theme="dark"]:not(.staff-interface) {
  --bg: #17251c;
  --surface: #1c2b21;
  --surface-soft: #24362a;
  --line: rgba(94, 150, 111, 0.28);
  --text: #eef6ff;
  --muted: #b3c5b7;
  --green: #347a43;
  --deep-green: #236436;
  --shadow-green: #123d22;
  background:
    radial-gradient(circle at 16% 10%, rgba(47, 117, 65, 0.17), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(72, 122, 80, 0.12), transparent 25%),
    linear-gradient(180deg, #16241b, #1c2b21);
}

body[data-site-theme="dark"]:not(.staff-interface) .site-header,
body[data-site-theme="dark"]:not(.staff-interface) .hero {
  background:
    linear-gradient(180deg, rgba(28, 43, 33, 0.97), rgba(22, 36, 27, 0.98)),
    radial-gradient(circle, rgba(48, 116, 65, 0.1) 0 26%, transparent 27%) 0 0 / 92px 92px;
}

body[data-site-theme="dark"]:not(.staff-interface) .site-header {
  border-color: rgba(101, 174, 239, 0.14);
}

body[data-site-theme="dark"]:not(.staff-interface) .nav-links,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu,
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer,
body[data-site-theme="dark"]:not(.staff-interface) .home-social-footer {
  background: #1b2b21;
  border-color: rgba(94, 150, 111, 0.24);
  color: var(--text);
}

body[data-site-theme="dark"]:not(.staff-interface) .auth-menu button,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu .auth-menu-staff,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu-theme select {
  background: #263b2d;
  border-color: rgba(94, 150, 111, 0.3);
  color: var(--text);
}

body[data-site-theme="dark"]:not(.staff-interface) .auth-menu button:hover,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu button:focus-visible,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu .auth-menu-staff:hover,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu .auth-menu-staff:focus-visible {
  background: #294b38;
}

body[data-site-theme="dark"]:not(.staff-interface) .band,
body[data-site-theme="dark"]:not(.staff-interface) .content-card,
body[data-site-theme="dark"]:not(.staff-interface) .game-card,
body[data-site-theme="dark"]:not(.staff-interface) .store-card,
body[data-site-theme="dark"]:not(.staff-interface) .event-card,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-shell,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-panel,
body[data-site-theme="dark"]:not(.staff-interface) .product-detail,
body[data-site-theme="dark"]:not(.staff-interface) .profile-block {
  background-color: #1c2b21;
  border-color: rgba(94, 150, 111, 0.24);
  color: var(--text);
}

body[data-site-theme="dark"]:not(.staff-interface) input,
body[data-site-theme="dark"]:not(.staff-interface) textarea,
body[data-site-theme="dark"]:not(.staff-interface) select {
  background-color: #19291f;
  border-color: rgba(94, 150, 111, 0.28);
  color: var(--text);
}

body[data-site-theme="dark"]:not(.staff-interface) .social-link,
body[data-site-theme="dark"]:not(.staff-interface) .sidebar-social-link,
body[data-site-theme="dark"]:not(.staff-interface) .ghost-action {
  background: #263b2d;
  border-color: rgba(94, 150, 111, 0.28);
  color: #dbeeff;
}

body[data-site-theme="dark"]:not(.staff-interface) main h1,
body[data-site-theme="dark"]:not(.staff-interface) main h2,
body[data-site-theme="dark"]:not(.staff-interface) main h3,
body[data-site-theme="dark"]:not(.staff-interface) main strong {
  color: #eef6ff;
  text-shadow: none;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news {
  background: linear-gradient(145deg, #12243a, #0c192a);
  border-color: rgba(103, 172, 237, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-news-feed,
body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .discord-news-feed.open .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-body,
body[data-site-theme="dark"]:not(.staff-interface) .discord-message {
  background: #0a1626;
  border-color: rgba(103, 172, 237, 0.2);
  color: #e8f3ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-news-feed.open .discord-feed-trigger {
  background: #132b47;
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-title {
  color: #eaf5ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-summary,
body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-count,
body[data-site-theme="dark"]:not(.staff-interface) .news-feed-empty,
body[data-site-theme="dark"]:not(.staff-interface) .news-section-heading span {
  color: #9fb5ce;
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-feed-arrow,
body[data-site-theme="dark"]:not(.staff-interface) .discord-jump-link,
body[data-site-theme="dark"]:not(.staff-interface) .discord-attachment-link {
  color: #61b3ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .login-panel {
  background: linear-gradient(145deg, #101f34, #0a1626);
  border-color: rgba(103, 172, 237, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

body[data-site-theme="dark"]:not(.staff-interface) .role-chip {
  background: #13263e;
  border-color: rgba(103, 172, 237, 0.22);
  color: #9fb5ce;
}

body[data-site-theme="dark"]:not(.staff-interface) .role-chip.active {
  background: #1b4d79;
  border-color: #4aa8f4;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .profile-block {
  background: transparent;
}

body[data-site-theme="dark"]:not(.staff-interface) .nav-links a:hover,
body[data-site-theme="dark"]:not(.staff-interface) .nav-links a:focus-visible,
body[data-site-theme="dark"]:not(.staff-interface) .nav-links a.active {
  background: #245a35;
  box-shadow: 0 0 0 5px rgba(50, 122, 68, 0.18);
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .social-link:hover,
body[data-site-theme="dark"]:not(.staff-interface) .social-link:focus-visible,
body[data-site-theme="dark"]:not(.staff-interface) .role-chip.active {
  background: #245a35;
  border-color: #438d55;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.3);
  box-shadow: 0 9px 0 rgba(10, 31, 17, 0.4);
  color: #eef7f0;
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product-media {
  background: linear-gradient(145deg, #294b34, #203c2a);
  border-color: rgba(111, 170, 124, 0.28);
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product-media::after {
  background: rgba(8, 25, 13, 0.28);
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product-body {
  background: #203126;
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product-heading h2,
body[data-site-theme="dark"]:not(.staff-interface) .store-product-heading strong {
  color: #f0f8f2;
}

body[data-site-theme="dark"]:not(.staff-interface) .store-product-body > p,
body[data-site-theme="dark"]:not(.staff-interface) .store-product-options label {
  color: #b5c8b9;
}

body[data-site-theme="dark"]:not(.staff-interface) .primary-action,
body[data-site-theme="dark"]:not(.staff-interface) .staff-button,
body[data-site-theme="dark"]:not(.staff-interface) .mini-edit {
  background: #286b3c;
  box-shadow: 0 6px 0 #123d22;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-pill:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .player-wave-option:has(input:checked) {
  background: #245a35;
  border-color: #438d55;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-section,
body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-section.open .wave-accordion-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-body,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-section,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-section-title {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.28);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-section {
  box-shadow: 0 6px 0 rgba(10, 31, 17, 0.35);
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-section.locked {
  opacity: 0.82;
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-summary,
body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-description,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-section-count {
  color: #adc0b1;
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-arrow,
body[data-site-theme="dark"]:not(.staff-interface) .wave-accordion-section.locked .wave-accordion-arrow {
  color: #70a97c;
}

body[data-site-theme="dark"]:not(.staff-interface) .secondary-action,
body[data-site-theme="dark"]:not(.staff-interface) .danger-button {
  background: #245a35;
  border-color: #438d55;
  box-shadow: 0 5px 0 #123d22;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .secondary-action:hover,
body[data-site-theme="dark"]:not(.staff-interface) .secondary-action:focus-visible,
body[data-site-theme="dark"]:not(.staff-interface) .danger-button:hover,
body[data-site-theme="dark"]:not(.staff-interface) .danger-button:focus-visible {
  background: #2f7144;
  border-color: #59a46a;
}

body[data-site-theme="dark"]:not(.staff-interface) .login-panel {
  border-color: rgba(94, 150, 111, 0.34);
}

body[data-site-theme="dark"]:not(.staff-interface) .role-chip {
  background: #25372b;
  border-color: rgba(94, 150, 111, 0.34);
  color: #b7c8ba;
}

body[data-site-theme="dark"]:not(.staff-interface) .game-card {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.3);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .game-media-carousel {
  background:
    linear-gradient(135deg, rgba(34, 69, 44, 0.84), rgba(24, 49, 31, 0.94)),
    radial-gradient(circle, rgba(79, 145, 94, 0.16) 0 26%, transparent 27%) 0 0 / 54px 54px;
  border-color: rgba(94, 150, 111, 0.34);
  box-shadow: 0 6px 0 rgba(10, 31, 17, 0.3);
}

body[data-site-theme="dark"]:not(.staff-interface) .game-card .tag {
  background: #245a35;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .game-card p {
  color: #b7c8ba;
}

body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer,
body[data-site-theme="dark"]:not(.staff-interface) .cart-items,
body[data-site-theme="dark"]:not(.staff-interface) .cart-summary {
  background: #1c2b21;
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .cart-close,
body[data-site-theme="dark"]:not(.staff-interface) .cart-quantity button {
  background: #245a35;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .cart-item {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.3);
}

body[data-site-theme="dark"]:not(.staff-interface) .cart-item img {
  background: #294b34;
}

body[data-site-theme="dark"]:not(.staff-interface),
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar {
  scrollbar-color: #42654a #1a281f;
}

body[data-site-theme="dark"]:not(.staff-interface)::-webkit-scrollbar,
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer::-webkit-scrollbar,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar::-webkit-scrollbar {
  width: 12px;
}

body[data-site-theme="dark"]:not(.staff-interface)::-webkit-scrollbar-track,
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer::-webkit-scrollbar-track,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar::-webkit-scrollbar-track {
  background: #1a281f;
}

body[data-site-theme="dark"]:not(.staff-interface)::-webkit-scrollbar-thumb,
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer::-webkit-scrollbar-thumb,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar::-webkit-scrollbar-thumb {
  background: #42654a;
  border: 3px solid #1a281f;
  border-radius: 999px;
}

body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar {
  background:
    linear-gradient(180deg, rgba(28, 43, 33, 0.99), rgba(22, 36, 27, 0.99)),
    radial-gradient(circle, rgba(57, 124, 73, 0.13) 0 26%, transparent 27%) 0 0 / 86px 86px;
  border-color: rgba(94, 150, 111, 0.3);
  box-shadow: 16px 0 40px rgba(5, 19, 10, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-close {
  background: #263b2d;
  border-color: rgba(94, 150, 111, 0.32);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-nav a {
  background: #25372b;
  border-color: rgba(94, 150, 111, 0.3);
  color: #b7c8ba;
}

body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-nav a.active,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-nav a:hover,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-nav a:focus-visible {
  background: #245a35;
  border-color: #438d55;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar .mobile-sidebar-home {
  background: transparent;
  border: 0;
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-profile-button,
body[data-site-theme="dark"]:not(.staff-interface) .nav-cart-button {
  background: #203126;
  border-color: #426f4d;
  box-shadow: 0 0 0 5px rgba(47, 107, 60, 0.2);
}

body[data-site-theme="dark"]:not(.staff-interface) .discord-profile-button .discord-avatar,
body[data-site-theme="dark"]:not(.staff-interface) .discord-login-icon,
body[data-site-theme="dark"]:not(.staff-interface) .nav-cart-icon {
  background: #294b34;
  border-color: #426f4d;
  color: #dff1e3;
}

body[data-site-theme="dark"]:not(.staff-interface) .nav-toggle {
  background: #294b34;
  border-color: #4f805a;
  box-shadow: 0 6px 18px rgba(5, 22, 10, 0.28);
  color: #f0f8f2;
}

body[data-site-theme="dark"]:not(.staff-interface) .video-slide-label {
  background: rgba(31, 76, 45, 0.96);
  border-color: #4f8d5d;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .video-arrow,
body[data-site-theme="dark"]:not(.staff-interface) .video-cycle {
  background: #294b34;
  border-color: #4f805a;
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .video-dot {
  background: rgba(111, 169, 123, 0.3);
}

body[data-site-theme="dark"]:not(.staff-interface) .video-dot.active {
  background: #4f9b61;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news {
  background: linear-gradient(145deg, #19324b, #12273b);
  border-color: rgba(83, 145, 201, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news {
  background: linear-gradient(145deg, #274932, #1d3826);
  border-color: rgba(91, 157, 105, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .game-section-active {
  background: linear-gradient(145deg, #274932, #1d3826);
  border-color: rgba(91, 157, 105, 0.38);
  box-shadow: 0 9px 0 rgba(10, 31, 17, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .game-section-developing {
  background: linear-gradient(145deg, #4a4023, #362f1c);
  border-color: rgba(173, 145, 66, 0.45);
  box-shadow: 0 9px 0 rgba(37, 29, 8, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .game-section-developing .tag {
  background: #655622;
  color: #fff5cf;
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-planned {
  background: linear-gradient(145deg, #274932, #1d3826);
  border-color: rgba(91, 157, 105, 0.38);
  box-shadow: 0 9px 0 rgba(10, 31, 17, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-subscriber {
  background: linear-gradient(145deg, #4a4023, #362f1c);
  border-color: rgba(173, 145, 66, 0.45);
  box-shadow: 0 9px 0 rgba(37, 29, 8, 0.38);
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-card,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-card.open .event-feed-trigger {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.3);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-title,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-reward,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-time {
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-trigger small,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-head p:not(.eyebrow) {
  color: #adc0b1;
}

body[data-site-theme="dark"]:not(.staff-interface) .event-feed-arrow {
  color: #70a97c;
}

body[data-site-theme="dark"]:not(.staff-interface) .staff-band .login-panel,
body[data-site-theme="dark"]:not(.staff-interface) .login-panel {
  background: #203126;
  border-color: #426f4d;
}

body[data-site-theme="dark"]:not(.staff-interface) .login-panel .role-chip {
  background: #273b2e;
  border-color: #426f4d;
  color: #b7c8ba;
}

body[data-site-theme="dark"]:not(.staff-interface) .login-panel .role-chip.active {
  background: #245a35;
  border-color: #59a46a;
  color: #ffffff;
}

/* Comprehensive main-site dark-mode contrast sweep. */
body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-lock-card,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-editor,
body[data-site-theme="dark"]:not(.staff-interface) .info-tile,
body[data-site-theme="dark"]:not(.staff-interface) .event-detail-block,
body[data-site-theme="dark"]:not(.staff-interface) .event-detail-description,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-availability,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-unlock-note,
body[data-site-theme="dark"]:not(.staff-interface) .editor-row {
  background: #24382a;
  border-color: rgba(94, 150, 111, 0.32);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator-heading output,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-simulate-happened,
body[data-site-theme="dark"]:not(.staff-interface) .event-detail-description,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-availability,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-unlock-note {
  color: #b7c8ba;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"] {
  accent-color: #438d55;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-webkit-slider-runnable-track {
  background: #18271e;
  border-radius: 999px;
  height: 8px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-moz-range-track {
  background: #18271e;
  border-radius: 999px;
  height: 8px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-view-control select,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-pill,
body[data-site-theme="dark"]:not(.staff-interface) .player-wave-option,
body[data-site-theme="dark"]:not(.staff-interface) .wave-detail-meta span {
  background: #213329;
  border-color: rgba(94, 150, 111, 0.34);
  color: #c2d1c5;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-major:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.major,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.major {
  background: #572828;
  border-color: #a95151;
  color: #ffd9d9;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-minor:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.minor,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.minor {
  background: #5a3b20;
  border-color: #b97836;
  color: #ffe1bd;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-spontaneous:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-spontaneous,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-spontaneous {
  background: #1f4655;
  border-color: #4d93ad;
  color: #d8f4ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-weekly:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-weekly {
  background: #57293e;
  border-color: #b85e86;
  color: #ffd8e9;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-bi_weekly:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-bi_weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-bi_weekly {
  background: #422d56;
  border-color: #8457a5;
  color: #ecd9ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-filter-once_per_wave:has(input:checked),
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-once_per_wave,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-once_per_wave,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-status,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance,
body[data-site-theme="dark"]:not(.staff-interface) .wave-labels span,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-divider span,
body[data-site-theme="dark"]:not(.staff-interface) .wave-detail-card-head span {
  background: #245a35;
  border-color: #438d55;
  color: #e2f2e6;
}

body[data-site-theme="dark"]:not(.staff-interface) .wave-labels span.oc-label,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-divider.oc-divider span {
  background: #1d4454;
  border-color: #4d93ad;
  color: #d8f4ff;
}

body[data-site-theme="dark"]:not(.staff-interface) .marker-popover,
body[data-site-theme="dark"]:not(.staff-interface) .player-event-card,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup.is-grouped .timeline-popup-event,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-picker,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-unavailable,
body[data-site-theme="dark"]:not(.staff-interface) .wave-detail-card,
body[data-site-theme="dark"]:not(.staff-interface) .content-editor,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-event-form,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-form,
body[data-site-theme="dark"]:not(.staff-interface) .inline-wave-form {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.34);
  color: #edf7ef;
  box-shadow: 0 12px 32px rgba(7, 24, 12, 0.3);
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-picker input,
body[data-site-theme="dark"]:not(.staff-interface) .content-editor input,
body[data-site-theme="dark"]:not(.staff-interface) .content-editor textarea,
body[data-site-theme="dark"]:not(.staff-interface) .content-editor select,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-form input,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-form textarea,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-wave-form select,
body[data-site-theme="dark"]:not(.staff-interface) .editor-row input,
body[data-site-theme="dark"]:not(.staff-interface) .editor-row select {
  background: #17271d;
  border-color: rgba(94, 150, 111, 0.34);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .editor-row input:disabled,
body[data-site-theme="dark"]:not(.staff-interface) .editor-row select:disabled {
  background: #29372d;
  color: #87998b;
}

body[data-site-theme="dark"]:not(.staff-interface) .product-detail,
body[data-site-theme="dark"]:not(.staff-interface) .product-detail-media,
body[data-site-theme="dark"]:not(.staff-interface) .game-media-preview-item,
body[data-site-theme="dark"]:not(.staff-interface) .product-price-preview {
  background: #203126;
  border-color: rgba(94, 150, 111, 0.34);
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .product-detail-media {
  background: linear-gradient(145deg, #294b34, #203c2a);
}

body[data-site-theme="dark"]:not(.staff-interface) .game-action-help {
  background: #55481f;
  border-color: #9b8236;
  box-shadow: 0 5px 0 #31280d;
  color: #fff1bd;
}

body[data-site-theme="dark"]:not(.staff-interface) .game-action-wiki {
  background: #294b34;
  border-color: #4f805a;
  box-shadow: 0 5px 0 #123d22;
  color: #e4f2e7;
}

body[data-site-theme="dark"]:not(.staff-interface) .game-action-disabled {
  background: #303b32;
  border-color: #4b5a4e;
  box-shadow: 0 5px 0 #1c241e;
  color: #8e9d91;
}

body[data-site-theme="dark"]:not(.staff-interface) .tag {
  background: #245a35;
  color: #e2f2e6;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-item.staff-only {
  background: #4a282b;
  border-color: #8a4b50;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.major .timeline-dot {
  background: #572828;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.minor .timeline-dot {
  background: #5a3b20;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-spontaneous .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-point .timeline-dot {
  background: #1f4655;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-weekly .timeline-dot {
  background: #57293e;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-bi_weekly .timeline-dot {
  background: #422d56;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-once_per_wave .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-dot {
  background: #203126;
}

body[data-site-theme="dark"]:not(.staff-interface) .toast {
  background: #203126;
  border-color: #438d55;
  color: #edf7ef;
}

body[data-site-theme="dark"]:not(.staff-interface) main > .band {
  background: transparent;
  border-color: transparent;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-news-feed,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-news-feed.open .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-feed-body,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-message {
  background: #1d3325;
  border-color: rgba(91, 157, 105, 0.36);
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-news-feed.open .discord-feed-trigger {
  background: #274932;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-feed-arrow,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-jump-link,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.shindo-news .discord-attachment-link {
  color: #76b985;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-news-feed,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-news-feed.open .discord-feed-trigger,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-feed-body,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-message {
  background: #12243a;
  border-color: rgba(83, 145, 201, 0.36);
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-news-feed.open .discord-feed-trigger {
  background: #193b59;
}

body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-feed-arrow,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-jump-link,
body[data-site-theme="dark"]:not(.staff-interface) .news-game-section.rell-seas-news .discord-attachment-link {
  color: #75b9f2;
}

/* Preserve the normal layout hierarchy: structural wrappers stay transparent. */
body[data-site-theme="dark"]:not(.staff-interface) .home-social-footer,
body[data-site-theme="dark"]:not(.staff-interface) .home-social-links,
body[data-site-theme="dark"]:not(.staff-interface) .home-social-brand,
body[data-site-theme="dark"]:not(.staff-interface) .home-social-footer .sidebar-social-link,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar-socials,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar .sidebar-social-link,
body[data-site-theme="dark"]:not(.staff-interface) .profile-block,
body[data-site-theme="dark"]:not(.staff-interface) .cart-items,
body[data-site-theme="dark"]:not(.staff-interface) .cart-summary,
body[data-site-theme="dark"]:not(.staff-interface) .content-grid,
body[data-site-theme="dark"]:not(.staff-interface) .game-card-row,
body[data-site-theme="dark"]:not(.staff-interface) .event-feed-list,
body[data-site-theme="dark"]:not(.staff-interface) .discord-message-list,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list,
body[data-site-theme="dark"]:not(.staff-interface) .player-managed-events,
body[data-site-theme="dark"]:not(.staff-interface) .role-controls,
body[data-site-theme="dark"]:not(.staff-interface) .section-head,
body[data-site-theme="dark"]:not(.staff-interface) .staff-actions {
  background: transparent;
  box-shadow: none;
}

/* Dark timeline markers use a black centre with their category colour as the ring. */
body[data-site-theme="dark"]:not(.staff-interface) .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.major .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.minor .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-point .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-spontaneous .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-weekly .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-bi_weekly .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-point.player-event-once_per_wave .timeline-dot {
  background: #090d0a;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-point-count {
  color: #ffffff;
}

/* Category tags match their node colour and keep high-contrast white text. */
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.major,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.major {
  background: #a83e3e;
  border-color: #d65a5a;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.minor,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.minor {
  background: #9a5b20;
  border-color: #d88735;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-spontaneous {
  background: #326f86;
  border-color: #58a1ba;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-weekly {
  background: #9b456c;
  border-color: #d16997;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-bi_weekly {
  background: #6f438e;
  border-color: #9662b9;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-once_per_wave {
  background: #2f6f3d;
  border-color: #4d965d;
  color: #ffffff;
}

/* Timeline hierarchy and spacing improvements shared by both themes. */
.physical-timeline {
  padding: 22px 18px 26px;
}

.physical-timeline .timeline-view-control {
  gap: 12px;
  margin-bottom: 0;
}

.physical-timeline .timeline-date-simulator {
  padding: 10px 12px;
}

.physical-timeline .timeline-track {
  height: 224px;
  margin: 30px 12px 4px;
}

.physical-timeline .wave-labels span {
  top: 210px;
}

.physical-timeline .timeline-wave-divider {
  height: 92px;
}

.physical-timeline .timeline-wave-divider.oc-divider,
.physical-timeline .timeline-wave-divider.cc-start-divider {
  height: 102px;
}

.physical-timeline .timeline-dot {
  height: 13px;
  opacity: 0.76;
  width: 13px;
}

.physical-timeline .timeline-point.major .timeline-dot,
.physical-timeline .timeline-point.minor .timeline-dot,
.physical-timeline .timeline-point.player-event-once_per_wave .timeline-dot {
  height: 16px;
  width: 16px;
}

.physical-timeline .timeline-point.player-event-spontaneous .timeline-dot {
  height: 13px;
  width: 13px;
}

.physical-timeline .timeline-point.player-event-weekly .timeline-dot {
  height: 9px;
  width: 9px;
}

.physical-timeline .timeline-point.player-event-bi_weekly .timeline-dot {
  height: 11px;
  width: 11px;
}

.physical-timeline .timeline-point-grouped .timeline-dot {
  min-height: 20px;
  min-width: 20px;
  opacity: 0.96;
}

.physical-timeline .timeline-point:hover .timeline-dot,
.physical-timeline .timeline-point:focus-visible .timeline-dot,
.physical-timeline .timeline-point:focus-within .timeline-dot,
.physical-timeline .timeline-point.is-dragging .timeline-dot {
  opacity: 1;
  transform: scale(1.32);
  box-shadow:
    0 0 0 8px rgba(47, 143, 34, 0.18),
    0 5px 14px rgba(47, 143, 34, 0.18) !important;
}

.physical-timeline.timeline-shell {
  box-shadow:
    0 6px 0 rgba(47, 143, 34, 0.08),
    0 14px 34px rgba(68, 130, 44, 0.09);
}

@media (max-width: 720px) {
  .physical-timeline {
    padding-inline: 12px;
  }

  .physical-timeline .timeline-track {
    height: 204px;
    margin-inline: 4px;
  }

  .physical-timeline .wave-labels span {
    top: 190px;
  }
}

/* Dark mode uses quieter colours so the timeline reads as one composition. */
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .wave-lines::before {
  background:
    linear-gradient(
      90deg,
      #52705a 0 var(--today-position),
      #35523d var(--today-position) 100%
    );
  height: 2px;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-track.timeline-not-started .wave-lines::before {
  background: #3d4d41;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-dot {
  filter: saturate(0.78);
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider {
  background: rgba(104, 139, 112, 0.24);
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.cc-start-divider {
  background: #668d60;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.oc-divider {
  background: #426f7d;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-filter-pill:not(:has(input:checked)) {
  background: transparent;
  border-color: rgba(111, 142, 118, 0.3);
  color: #aebcaf;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline.timeline-shell {
  border-color: rgba(94, 150, 111, 0.18);
  box-shadow:
    0 6px 0 rgba(24, 65, 34, 0.22),
    0 14px 34px rgba(4, 16, 8, 0.2);
}

/* Event tags use the same category colours as their timeline nodes. */
.timeline-popup-importance.major,
.timeline-list-importance.major {
  background: #d93636;
  border-color: #d93636;
  color: #ffffff;
}

.timeline-popup-importance.minor,
.timeline-list-importance.minor {
  background: #c96d16;
  border-color: #c96d16;
  color: #ffffff;
}

.player-event-recurrence-spontaneous,
.timeline-popup-importance.player-event-spontaneous,
.timeline-list-importance.player-event-spontaneous {
  background: #4d93ad;
  border-color: #4d93ad;
  color: #ffffff;
}

.player-event-recurrence-weekly,
.timeline-popup-importance.player-event-weekly,
.timeline-list-importance.player-event-weekly {
  background: #a94f7a;
  border-color: #a94f7a;
  color: #ffffff;
}

.player-event-recurrence-bi_weekly,
.timeline-popup-importance.player-event-bi_weekly,
.timeline-list-importance.player-event-bi_weekly {
  background: #754396;
  border-color: #754396;
  color: #ffffff;
}

.player-event-recurrence-once_per_wave,
.timeline-popup-importance.player-event-once_per_wave,
.timeline-list-importance.player-event-once_per_wave {
  background: #2f6f3d;
  border-color: #2f6f3d;
  color: #ffffff;
}

/* Keep recurrence colours above the generic dark-mode tag treatment. */
body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-spontaneous,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-spontaneous,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.player-event-spontaneous {
  background: #326f86;
  border-color: #4d93ad;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.player-event-weekly {
  background: #8e4168;
  border-color: #b85e86;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-bi_weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-bi_weekly,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.player-event-bi_weekly {
  background: #653c80;
  border-color: #8457a5;
  color: #ffffff;
}

body[data-site-theme="dark"]:not(.staff-interface) .player-event-recurrence-once_per_wave,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-popup-importance.player-event-once_per_wave,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-list-importance.player-event-once_per_wave {
  background: #2f6f3d;
  border-color: #4d965d;
  color: #ffffff;
}

/* Dark timeline nodes: solid category colour with a clean light ring. */
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-dot {
  background: #356f43;
  border-color: #f1f5ef;
  border-width: 3px;
  filter: none;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.major .timeline-dot {
  background: #b94743;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.minor .timeline-dot {
  background: #bd762c;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-point .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-spontaneous .timeline-dot {
  background: #477f94;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-weekly .timeline-dot {
  background: #a94f7a;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-bi_weekly .timeline-dot {
  background: #754396;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-once_per_wave .timeline-dot {
  background: #397748;
  border-color: #f1f5ef;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point-count {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* Cooler, more neutral main-site dark palette. */
body[data-site-theme="dark"]:not(.staff-interface) {
  --bg: #11161b;
  --surface: #1a1f24;
  --surface-soft: #20272c;
  --line: rgba(150, 164, 175, 0.2);
  --muted: #b5c0c7;
  background:
    radial-gradient(circle at 16% 10%, rgba(54, 75, 67, 0.12), transparent 30%),
    linear-gradient(180deg, #11161b, #151b20);
}

body[data-site-theme="dark"]:not(.staff-interface) .site-header,
body[data-site-theme="dark"]:not(.staff-interface) .hero {
  background: rgba(17, 22, 27, 0.97);
}

body[data-site-theme="dark"]:not(.staff-interface) .nav-links,
body[data-site-theme="dark"]:not(.staff-interface) .mobile-sidebar,
body[data-site-theme="dark"]:not(.staff-interface) .auth-menu,
body[data-site-theme="dark"]:not(.staff-interface) .cart-drawer {
  background: #171d22;
  border-color: rgba(150, 164, 175, 0.18);
}

body[data-site-theme="dark"]:not(.staff-interface) .content-card,
body[data-site-theme="dark"]:not(.staff-interface) .game-card,
body[data-site-theme="dark"]:not(.staff-interface) .store-card,
body[data-site-theme="dark"]:not(.staff-interface) .event-card,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-shell,
body[data-site-theme="dark"]:not(.staff-interface) .timeline-panel,
body[data-site-theme="dark"]:not(.staff-interface) .product-detail,
body[data-site-theme="dark"]:not(.staff-interface) .profile-block {
  background-color: #1a1f24;
  border-color: rgba(150, 164, 175, 0.18);
}

/* Neutral timeline structure lets event colours carry the hierarchy. */
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .wave-lines::before {
  background:
    linear-gradient(
      90deg,
      #82dd94 0 var(--today-position),
      #394148 var(--today-position) 100%
    );
  height: 3px;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-track.timeline-not-started .wave-lines::before {
  background: #394148;
}

/* Staff Portal mirrors the main site's visual language with purple accents. */
.staff-interface {
  --green: #8550b5;
  --deep-green: #663492;
  --shadow-green: #421d62;
  --blue: #9d68c8;
}

.staff-interface .staff-portal .eyebrow,
.staff-interface .staff-portal-card-tag,
.staff-interface .staff-portal-card-action {
  color: #a96fda;
}

.staff-interface .staff-main-site-link,
.staff-interface .ghost-action,
.staff-interface .staff-button {
  border-radius: 999px;
}

.staff-interface .staff-button {
  background: linear-gradient(180deg, #8c52bd, #65318f);
  border-color: #a96fda;
  box-shadow: 0 5px 0 #421d62;
  color: #ffffff;
}

.staff-interface .ghost-action {
  background: #2b2035;
  border-color: rgba(169, 111, 218, 0.4);
  color: #f3e8fb;
}

.staff-interface .ghost-action:hover,
.staff-interface .ghost-action:focus-visible,
.staff-interface .staff-button:hover,
.staff-interface .staff-button:focus-visible {
  background: #52306d;
  border-color: #bc82e8;
}

.staff-interface .staff-record-selector input {
  accent-color: #8550b5;
}

.staff-interface[data-staff-theme="dark"] {
  --bg: #141118;
  --surface: #1c1722;
  --surface-soft: #241c2c;
  --line: rgba(169, 111, 218, 0.24);
  --text: #f7f0fb;
  --muted: #c1b2ca;
  background:
    radial-gradient(circle at 14% 6%, rgba(133, 80, 181, 0.15), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(89, 54, 120, 0.12), transparent 28%),
    linear-gradient(155deg, #121016, #1a1520 58%, #17121d);
}

.staff-interface[data-staff-theme="dark"] .band.staff-portal {
  background: rgba(28, 23, 34, 0.96);
  border-color: rgba(169, 111, 218, 0.22);
  box-shadow:
    0 9px 0 rgba(66, 29, 98, 0.3),
    0 20px 48px rgba(4, 2, 7, 0.34);
}

.staff-interface[data-staff-theme="dark"] .staff-portal-card,
.staff-interface[data-staff-theme="dark"] .staff-stat-member {
  background: linear-gradient(145deg, #241c2c, #1a151f);
  border-color: rgba(169, 111, 218, 0.22);
  box-shadow:
    0 7px 0 rgba(66, 29, 98, 0.22),
    0 16px 34px rgba(4, 2, 7, 0.25);
}

.staff-interface[data-staff-theme="dark"] .staff-portal-card:hover,
.staff-interface[data-staff-theme="dark"] .staff-portal-card:focus-visible {
  border-color: #9259c0;
  box-shadow:
    0 9px 0 rgba(66, 29, 98, 0.32),
    0 20px 40px rgba(4, 2, 7, 0.3),
    0 0 0 5px rgba(146, 89, 192, 0.11);
}

.staff-interface[data-staff-theme="dark"] .staff-record-toolbar,
.staff-interface[data-staff-theme="dark"] .staff-confirm-user,
.staff-interface[data-staff-theme="dark"] .staff-confirm-dialog {
  background: #211927;
  border-color: rgba(169, 111, 218, 0.25);
}

.staff-interface[data-staff-theme="dark"] .staff-record-toolbar input,
.staff-interface[data-staff-theme="dark"] .staff-stats-month-picker select,
.staff-interface[data-staff-theme="dark"] .staff-stats-role-picker select,
.staff-interface[data-staff-theme="dark"] .staff-theme-control select {
  background: #141018;
  border-color: rgba(169, 111, 218, 0.3);
  color: #f7f0fb;
}

.staff-interface[data-staff-theme="dark"] .staff-record-table {
  background: #17121c;
}

.staff-interface[data-staff-theme="dark"] .staff-record-table th {
  background: #32213f;
  color: #f8edff;
}

.staff-interface[data-staff-theme="dark"] .staff-record-table th,
.staff-interface[data-staff-theme="dark"] .staff-record-table td,
.staff-interface[data-staff-theme="dark"] .staff-stat-weeks {
  border-color: rgba(169, 111, 218, 0.15);
}

.staff-interface[data-staff-theme="dark"] .staff-record-table tbody tr:nth-child(even) td,
.staff-interface[data-staff-theme="dark"] .staff-stat-week:nth-child(even) {
  background: #1e1725;
}

.staff-interface[data-staff-theme="dark"] .staff-record-table tbody tr:hover td {
  background: #2a1d34;
}

.staff-interface[data-staff-theme="dark"] .staff-record-table tbody tr.is-selected td {
  background: #3a2550;
}

.staff-interface:not([data-staff-theme="dark"]) {
  --bg: #f5f0f9;
  --surface: #ffffff;
  --surface-soft: #faf6fd;
  --line: rgba(109, 60, 151, 0.2);
  --text: #281437;
  --muted: #715f7e;
  background:
    radial-gradient(circle at 12% 4%, rgba(133, 80, 181, 0.13), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(188, 130, 232, 0.1), transparent 26%),
    linear-gradient(155deg, #ffffff, #f8f2fc 54%, #f1e8f7);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-main-site-link {
  background: #ffffff;
  border-color: rgba(109, 60, 151, 0.28);
  box-shadow: 0 6px 0 rgba(66, 29, 98, 0.1);
  color: #5d2b83;
}

.staff-interface:not([data-staff-theme="dark"]) .band.staff-portal {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(109, 60, 151, 0.18);
  box-shadow:
    0 9px 0 rgba(109, 60, 151, 0.09),
    0 20px 48px rgba(84, 45, 116, 0.1);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-portal-card,
.staff-interface:not([data-staff-theme="dark"]) .staff-stat-member {
  background: linear-gradient(145deg, #ffffff, #faf6fd);
  border-color: rgba(109, 60, 151, 0.18);
  box-shadow:
    0 7px 0 rgba(109, 60, 151, 0.08),
    0 15px 30px rgba(84, 45, 116, 0.08);
}

.staff-interface:not([data-staff-theme="dark"]) .ghost-action {
  background: #ffffff;
  border-color: rgba(109, 60, 151, 0.3);
  color: #5d2b83;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-toolbar,
.staff-interface:not([data-staff-theme="dark"]) .staff-confirm-user {
  background: #f7f0fb;
  border-color: rgba(109, 60, 151, 0.18);
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-toolbar input,
.staff-interface:not([data-staff-theme="dark"]) .staff-stats-month-picker select,
.staff-interface:not([data-staff-theme="dark"]) .staff-stats-role-picker select,
.staff-interface:not([data-staff-theme="dark"]) .staff-theme-control select {
  background: #ffffff;
  border-color: rgba(109, 60, 151, 0.24);
  color: #281437;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table th {
  background: #eadcf5;
  color: #48205f;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr:nth-child(even) td,
.staff-interface:not([data-staff-theme="dark"]) .staff-stat-week:nth-child(even) {
  background: #faf6fd;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr:hover td {
  background: #f2e8f8;
}

.staff-interface:not([data-staff-theme="dark"]) .staff-record-table tbody tr.is-selected td {
  background: #e8d8f3;
}

/* Staff pages sit directly on the portal background, like the main site. */
.staff-interface .band.staff-portal,
.staff-interface[data-staff-theme="dark"] .band.staff-portal,
.staff-interface:not([data-staff-theme="dark"]) .band.staff-portal {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.staff-interface h1 {
  text-shadow: 0 5px 0 rgba(133, 80, 181, 0.24);
}

/* Staff navigation follows the public site's centred pill layout. */
.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.staff-interface-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(248, 242, 252, 0.9);
  border-bottom: 2px solid rgba(109, 60, 151, 0.12);
  display: flex;
  gap: 14px;
  min-height: 86px;
  padding: 13px 28px;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.staff-main-site-link {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 18px;
}

.staff-brand-group {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  margin-right: auto;
}

.staff-portal-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 950;
  gap: 10px;
  white-space: nowrap;
}

.staff-portal-brand img {
  filter: drop-shadow(0 7px 12px rgba(84, 45, 116, 0.2));
  height: 54px;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease;
  width: 54px;
}

.staff-portal-brand:hover img,
.staff-portal-brand:focus-visible img {
  filter: drop-shadow(0 8px 15px rgba(133, 80, 181, 0.34));
  transform: rotate(-3deg) scale(1.04);
}

.staff-portal-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(109, 60, 151, 0.18);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 18px rgba(84, 45, 116, 0.07);
  display: flex;
  gap: 4px;
  left: 50%;
  padding: 6px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 2;
}

.staff-portal-nav > a,
.staff-nav-menu > summary {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  list-style: none;
  min-height: 42px;
  padding: 0 15px;
  transition:
    background-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.staff-nav-menu > summary::-webkit-details-marker,
.staff-profile-menu > summary::-webkit-details-marker {
  display: none;
}

.staff-nav-menu > summary::after {
  content: "⌄";
  font-size: 0.82rem;
  margin-left: 7px;
  transform: translateY(-1px);
}

.staff-portal-nav > a:hover,
.staff-portal-nav > a:focus-visible,
.staff-portal-nav > a.is-active,
.staff-nav-menu > summary:hover,
.staff-nav-menu > summary:focus-visible,
.staff-nav-menu[open] > summary,
.staff-nav-menu[data-current="true"] > summary {
  background: #eadcf5;
  box-shadow: 0 0 0 5px rgba(133, 80, 181, 0.11);
  color: #48205f;
  transform: translateY(-1px);
}

.staff-nav-menu,
.staff-profile-menu {
  position: relative;
}

.staff-nav-dropdown,
.staff-profile-dropdown {
  background: #ffffff;
  border: 2px solid rgba(109, 60, 151, 0.2);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(42, 18, 58, 0.18);
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
}

.staff-nav-dropdown a,
.staff-profile-dropdown a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  padding: 11px 12px;
}

.staff-nav-dropdown a:hover,
.staff-nav-dropdown a:focus-visible,
.staff-nav-dropdown a.is-active,
.staff-profile-dropdown a:hover,
.staff-profile-dropdown a:focus-visible {
  background: #f0e5f7;
  color: #48205f;
}

.staff-header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.staff-theme-control {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(109, 60, 151, 0.16);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
}

.staff-theme-control select {
  border-radius: 999px;
  min-height: 38px;
}

.staff-profile-menu > summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(109, 60, 151, 0.22);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(133, 80, 181, 0.08);
  cursor: pointer;
  display: flex;
  height: 58px;
  justify-content: center;
  list-style: none;
  padding: 4px;
  width: 58px;
}

.staff-profile-avatar {
  align-items: center;
  background: #eadcf5;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #48205f;
  display: flex;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.staff-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.staff-profile-name {
  display: none;
}

.staff-nav-toggle {
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(109, 60, 151, 0.2);
  border-radius: 999px;
  color: #48205f;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.staff-nav-toggle > span:not(.sr-only) {
  background: currentColor;
  border-radius: 999px;
  height: 3px;
  width: 20px;
}

.staff-interface[data-staff-theme="dark"] .staff-interface-header {
  background: rgba(20, 17, 24, 0.92);
  border-color: rgba(169, 111, 218, 0.14);
}

.staff-interface[data-staff-theme="dark"] .staff-portal-nav,
.staff-interface[data-staff-theme="dark"] .staff-theme-control,
.staff-interface[data-staff-theme="dark"] .staff-profile-menu > summary,
.staff-interface[data-staff-theme="dark"] .staff-nav-dropdown,
.staff-interface[data-staff-theme="dark"] .staff-profile-dropdown {
  background: #1c1722;
  border-color: rgba(169, 111, 218, 0.24);
  box-shadow: 0 12px 30px rgba(3, 2, 5, 0.28);
}

.staff-interface[data-staff-theme="dark"] .staff-portal-nav > a:hover,
.staff-interface[data-staff-theme="dark"] .staff-portal-nav > a:focus-visible,
.staff-interface[data-staff-theme="dark"] .staff-portal-nav > a.is-active,
.staff-interface[data-staff-theme="dark"] .staff-nav-menu > summary:hover,
.staff-interface[data-staff-theme="dark"] .staff-nav-menu > summary:focus-visible,
.staff-interface[data-staff-theme="dark"] .staff-nav-menu[open] > summary,
.staff-interface[data-staff-theme="dark"] .staff-nav-menu[data-current="true"] > summary,
.staff-interface[data-staff-theme="dark"] .staff-nav-dropdown a:hover,
.staff-interface[data-staff-theme="dark"] .staff-nav-dropdown a:focus-visible,
.staff-interface[data-staff-theme="dark"] .staff-nav-dropdown a.is-active,
.staff-interface[data-staff-theme="dark"] .staff-profile-dropdown a:hover,
.staff-interface[data-staff-theme="dark"] .staff-profile-dropdown a:focus-visible {
  background: #4b2b62;
  color: #ffffff;
}

.staff-interface[data-staff-theme="dark"] .staff-profile-avatar {
  background: #4b2b62;
  border-color: rgba(247, 240, 251, 0.72);
  color: #ffffff;
}

.staff-interface[data-staff-theme="dark"] .staff-nav-toggle {
  background: #1c1722;
  border-color: rgba(169, 111, 218, 0.24);
  color: #f3e8fb;
}

@media (max-width: 1180px) {
  .staff-interface-header {
    flex-wrap: wrap;
  }

  .staff-nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .staff-header-actions {
    order: 3;
  }

  .staff-portal-nav {
    align-items: stretch;
    border-radius: 16px;
    display: none;
    flex-direction: column;
    left: 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 10px;
    position: fixed;
    right: 16px;
    top: 82px;
    transform: none;
    width: auto;
  }

  .staff-portal-nav.is-open {
    display: flex;
  }

  .staff-portal-nav > a,
  .staff-nav-menu > summary {
    justify-content: space-between;
  }

  .staff-nav-dropdown {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 6px 8px 4px 20px;
    position: static;
  }
}

@media (max-width: 680px) {
  .staff-interface-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .staff-main-site-link {
    font-size: 0.8rem;
    min-height: 44px;
    padding-inline: 13px;
  }

  .staff-brand-group {
    gap: 7px;
  }

  .staff-portal-brand img {
    height: 46px;
    width: 46px;
  }

  .staff-portal-brand span {
    display: none;
  }

  .staff-theme-control > span {
    display: none;
  }

  .staff-theme-control {
    padding-left: 5px;
  }

  .staff-theme-control select {
    max-width: 96px;
  }

  .staff-profile-menu > summary {
    height: 50px;
    width: 50px;
  }

  .staff-profile-avatar {
    height: 38px;
    width: 38px;
  }
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  accent-color: #82dd94;
  background: transparent;
  border: 0;
  height: 20px;
  padding: 0;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-webkit-slider-runnable-track {
  background: #394148;
  border: 0;
  border-radius: 999px;
  height: 7px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #82dd94 !important;
  border: 2px solid #dfffe5 !important;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px rgba(130, 221, 148, 0.18),
    0 0 12px rgba(130, 221, 148, 0.3);
  cursor: grab;
  height: 25px;
  margin-top: -9px;
  width: 17px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-moz-range-track {
  background: #394148;
  border: 0;
  border-radius: 999px;
  height: 7px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-moz-range-progress {
  background: #5f9d6c;
  border-radius: 999px;
  height: 7px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]::-moz-range-thumb {
  -moz-appearance: none !important;
  appearance: none !important;
  background: #82dd94 !important;
  border: 2px solid #dfffe5 !important;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px rgba(130, 221, 148, 0.18),
    0 0 12px rgba(130, 221, 148, 0.3);
  cursor: grab;
  height: 23px;
  width: 15px;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
}

body[data-site-theme="dark"]:not(.staff-interface) .timeline-date-simulator input[type="range"]:active::-moz-range-thumb {
  cursor: grabbing;
}

.timeline-date-simulator input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--green);
  background: transparent;
  border: 0;
  height: 26px;
  padding: 0;
}

.timeline-date-simulator input[type="range"]::-webkit-slider-runnable-track {
  background: #d4ddd0;
  border: 0;
  border-radius: 999px;
  height: 7px;
}

.timeline-date-simulator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--green);
  border: 2px solid #ffffff;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px rgba(47, 143, 34, 0.14),
    0 0 12px rgba(47, 143, 34, 0.22);
  cursor: grab;
  height: 25px;
  margin-top: -9px;
  width: 17px;
}

.timeline-date-simulator input[type="range"]::-moz-range-track {
  background: #d4ddd0;
  border: 0;
  border-radius: 999px;
  height: 7px;
}

.timeline-date-simulator input[type="range"]::-moz-range-progress {
  background: #76b769;
  border-radius: 999px;
  height: 7px;
}

.timeline-date-simulator input[type="range"]::-moz-range-thumb {
  -moz-appearance: none;
  appearance: none;
  background: var(--green);
  border: 2px solid #ffffff;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px rgba(47, 143, 34, 0.14),
    0 0 12px rgba(47, 143, 34, 0.22);
  cursor: grab;
  height: 23px;
  width: 15px;
}

.timeline-date-simulator input[type="range"]:active::-webkit-slider-thumb,
.timeline-date-simulator input[type="range"]:active::-moz-range-thumb {
  cursor: grabbing;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider {
  background: rgba(91, 100, 110, 0.32);
  height: 120px;
  opacity: 1;
  width: 2px;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.cc-start-divider,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.oc-divider {
  height: 140px;
  opacity: 1;
  width: 2px;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.cc-start-divider {
  background: rgba(63, 122, 86, 0.68);
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.oc-divider {
  background: rgba(71, 116, 135, 0.72);
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.active {
  background: #e04f4f;
  box-shadow:
    0 0 0 6px rgba(224, 79, 79, 0.16),
    0 0 18px rgba(224, 79, 79, 0.52);
  opacity: 1;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .wave-labels span.cc-start-label,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.cc-start-divider span {
  background: rgba(45, 125, 75, 0.15);
  border: 1px solid #3f7a56;
  color: #d8e9dd;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .wave-labels span.oc-label,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-wave-divider.oc-divider span {
  background: rgba(57, 113, 139, 0.15);
  border: 1px solid #477487;
  color: #d8e7ee;
}

/* Unified event rings, quieter at rest and richer only on interaction. */
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.major .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.minor .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-point .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-spontaneous .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-weekly .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-bi_weekly .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-once_per_wave .timeline-dot {
  border-color: rgba(255, 255, 255, 0.32);
  opacity: 0.94;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.major .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(255, 90, 90, 0.28));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.minor .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(221, 145, 57, 0.26));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-spontaneous .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-point .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(82, 158, 188, 0.3));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-weekly .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(215, 92, 153, 0.3));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-bi_weekly .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(155, 110, 255, 0.32));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point.player-event-once_per_wave .timeline-dot,
body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point:not(.major):not(.minor):not(.player-event-point) .timeline-dot {
  filter: drop-shadow(0 0 5px rgba(65, 180, 90, 0.28));
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-point-grouped .timeline-dot {
  opacity: 1;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-current-marker {
  opacity: 0.9;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .timeline-current-marker::after {
  background: #76937c;
}

body[data-site-theme="dark"]:not(.staff-interface) .physical-timeline .current-arrow {
  border-top-color: #76937c;
}

/* Profile information is structural content, not a nested card. */
body[data-site-theme="dark"]:not(.staff-interface) .profile-block,
body[data-site-theme="dark"]:not(.staff-interface) .profile-block > div {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Detail-card importance pills match their timeline hover-card equivalents. */
.wave-detail-event.planned .wave-detail-card-head .timeline-list-importance.major,
.wave-detail-card-head .timeline-list-importance.major,
.timeline-popup-importance.major {
  background: #a24a46;
  border-color: #a24a46;
  color: #ffffff;
}

.wave-detail-event.planned .wave-detail-card-head .timeline-list-importance.minor,
.wave-detail-card-head .timeline-list-importance.minor,
.timeline-popup-importance.minor {
  background: #9a5b20;
  border-color: #9a5b20;
  color: #ffffff;
}
