: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);
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px 24px;
  position: relative;
}

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

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

.brand-mark {
  background: #b7ec8e;
  border: 3px solid #2d7c20;
  border-radius: 999px;
  height: 44px;
  object-fit: contain;
  padding: 3px;
  width: 44px;
}

.nav-links {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--line);
  border-radius: 999px;
  gap: 2px;
  padding: 6px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  padding: 9px 12px;
}

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

.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;
}

.discord-profile-button {
  gap: 9px;
  max-width: 230px;
  padding-left: 8px;
}

.discord-profile-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-avatar {
  background: #e7ffd3;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 30px;
  object-fit: cover;
  width: 30px;
}

.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 {
  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 button:hover,
.auth-menu button: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;
}

.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;
}

.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: 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: repeat(auto-fit, minmax(min(100%, 260px), 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);
}

.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: 18px;
  padding-right: 72px;
}

/* 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;
}

.cart-button span {
  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;
}

.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;
  position: fixed;
  z-index: 50;
}

.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;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: min(92vw, 420px);
  z-index: 51;
}

.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;
  width: 42px;
}

.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;
  width: 32px;
}

.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;
}

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

.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;
}

.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-x: auto;
  padding: 30px 18px 42px;
}

.physical-timeline .timeline-track {
  min-width: 980px;
}

.wave-labels {
  height: 0;
  margin-bottom: 0;
  min-width: 980px;
  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.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;
}

.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: repeat(2, minmax(0, 1fr));
}

.player-event-card {
  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: grid;
  gap: 12px;
  padding: 20px;
}

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

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

.player-event-edit {
  justify-self: start;
  margin-top: 6px;
}

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

@media (max-width: 760px) {
  .player-event-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));
  }

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

  .nav-links {
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .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;
  }
}

@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;
  }

  .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-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-dot {
    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;
}


.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: var(--gold);

    background: #fff7c8;
}


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

    transform: scale(1.35);

    box-shadow:
        0 0 0 7px rgba(47, 143, 34, 0.16);
}


/* HOVER POPUP */

.timeline-popup {
    position: absolute;

    left: 50%;

    bottom: calc(100% + 16px);

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

    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 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;

    z-index: 50;
}

.timeline-popup.is-floating {
    bottom: auto;
    left: 0;
    position: fixed;
    top: 0;
    transform: translateY(8px);
    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-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-point:hover .timeline-popup,
.timeline-point:focus-visible .timeline-popup,
.timeline-point:focus-within .timeline-popup,
.timeline-popup.is-floating {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

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

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

.timeline-point.near-left:hover .timeline-popup,
.timeline-point.near-left:focus-visible .timeline-popup,
.timeline-point.near-left:focus-within .timeline-popup {
    transform: translateX(0) translateY(0);
}

.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(8px);
}

.timeline-point.near-right:hover .timeline-popup,
.timeline-point.near-right:focus-visible .timeline-popup,
.timeline-point.near-right:focus-within .timeline-popup {
    transform: translateX(0) translateY(0);
}

.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: #fff7c8;

    color: #8b6a00;
}


.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;
}


/* 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: var(--radius);
    box-shadow:
        0 9px 0 rgba(47, 143, 34, 0.12),
        0 18px 48px rgba(68, 130, 44, 0.12);
    margin-top: 14px;
    overflow: hidden;
    width: 100%;
}

.wave-accordion-trigger {
    align-items: center;
    background: rgba(248, 255, 240, 0.94);
    color: var(--text);
    display: grid;
    gap: 8px 14px;
    grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 14px 18px;
    text-align: left;
    width: 100%;
}

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

.wave-accordion-title {
    font-size: 1.2rem;
    font-weight: 900;
}

.wave-accordion-summary {
    color: var(--muted);
    font-weight: 800;
}

.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 {
    padding: 0 18px 20px;
}

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

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

.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: var(--gold);
    box-shadow: 0 0 0 3px rgba(218, 186, 64, 0.28);
}

.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: #fff7c8;
    color: #8b6a00;
}

.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 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 .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;
}

@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;
    }
}
