/*
  Eclipse responsive/detail polish.
  Intended to load after the existing Eclipse modules.
*/

body.eclipse-page,
body.eclipse-page * {
  box-sizing: border-box;
}

body.eclipse-page .eclipse-modern {
  overflow-x: clip;
}

body.eclipse-page .guild-topbar {
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: clamp(10px, 1.8vw, 22px);
  padding: 7px 9px;
}

body.eclipse-page .guild-logo {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  align-items: center;
  gap: 10px;
  padding-right: clamp(8px, 1.4vw, 18px);
  border-right: 1px solid rgba(244, 213, 130, 0.16);
}

body.eclipse-page .guild-logo img {
  width: 42px;
  height: 42px;
  padding: 2px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 231, 147, 0.16), transparent 58%),
    rgba(0, 0, 0, 0.46);
  object-fit: cover;
}

body.eclipse-page .guild-logo span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

body.eclipse-page .guild-logo strong {
  max-width: 8.5rem;
  overflow: hidden;
  color: #fff3cd;
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  line-height: 0.86;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.eclipse-page .guild-logo em {
  color: rgba(216, 169, 61, 0.9);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

body.eclipse-page .guild-topbar nav {
  align-items: stretch;
  gap: 2px;
  padding-bottom: 1px;
}

body.eclipse-page .guild-topbar nav a {
  min-width: max-content;
  min-height: 34px;
  padding-inline: clamp(8px, 1vw, 12px);
  white-space: nowrap;
}

body.eclipse-page .guild-hero {
  min-height: clamp(430px, 43vw, 590px);
  background-position: center 42%;
}

body.eclipse-page .guild-hero::before {
  background:
    radial-gradient(circle at 48% 25%, rgba(255, 223, 144, 0.13), transparent 25%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 23%, transparent 77%, rgba(0, 0, 0, 0.84));
}

body.eclipse-page .guild-hero-copy {
  padding-inline: clamp(18px, 4.8vw, 76px);
}

body.eclipse-page .guild-hero h1 {
  max-width: min(900px, 94vw);
  font-size: clamp(2.55rem, 4.2vw, 4.35rem);
  line-height: 0.9;
}

body.eclipse-page .guild-hero-copy p {
  max-width: 700px;
  color: rgba(245, 233, 199, 0.92);
}

body.eclipse-page .hero-raid-status {
  width: min(650px, 100%);
}

body.eclipse-page .hero-raid-status b {
  min-width: 0;
}

body.eclipse-page .hero-raid-status span,
body.eclipse-page .hero-raid-status em {
  overflow-wrap: anywhere;
}

body.eclipse-page :where(
  .guild-card,
  .member-row,
  .death-row,
  .phase-map b,
  .source-strip a,
  .character-card,
  .raid-card,
  .buff-card,
  .grave-card,
  .chronicle-event,
  .rule-panel,
  .guild-info-columns article,
  .officer-tags b
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.eclipse-page :where(
  .member-row strong,
  .death-row b,
  .character-card strong,
  .raid-card strong,
  .buff-card strong,
  .grave-card strong,
  .chronicle-event strong,
  .officer-tags b
) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.eclipse-page .member-row {
  grid-template-columns: 30px minmax(0, 1fr) minmax(max-content, auto);
}

body.eclipse-page .member-row span {
  min-width: 0;
}

body.eclipse-page .member-row b {
  justify-self: end;
}

body.eclipse-page .boss-track {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding: 18px 8px 4px;
  isolation: isolate;
}

body.eclipse-page .boss-track::before,
body.eclipse-page .boss-track::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 26px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
}

body.eclipse-page .boss-track::before {
  z-index: -2;
  background: rgba(255, 244, 198, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 198, 0.06);
}

body.eclipse-page .boss-track::after {
  z-index: -1;
  right: calc(20% + 26px);
  background:
    linear-gradient(90deg, rgba(54, 217, 119, 0.95), rgba(54, 217, 119, 0.68));
  box-shadow: 0 0 16px rgba(54, 217, 119, 0.22);
}

body.eclipse-page .boss-track span {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: end center;
  border: 0;
  padding: 26px 4px 0;
  background: transparent;
  color: rgba(242, 233, 210, 0.74);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  box-shadow: none;
}

body.eclipse-page .boss-track span::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 244, 198, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 38%),
    #171a16;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.36),
    0 0 0 2px rgba(0, 0, 0, 0.22);
}

body.eclipse-page .boss-track span.done {
  color: #9df4b7;
}

body.eclipse-page .boss-track span.done::before {
  border-color: rgba(54, 217, 119, 0.8);
  background:
    radial-gradient(circle at 35% 28%, rgba(220, 255, 229, 0.55), transparent 36%),
    linear-gradient(180deg, #44e381, #14783e);
  box-shadow:
    inset 0 0 0 3px rgba(4, 32, 17, 0.5),
    0 0 16px rgba(54, 217, 119, 0.28);
}

body.eclipse-page .boss-track span.current {
  color: #f5d77d;
}

body.eclipse-page .boss-track span.current::before {
  width: 25px;
  height: 25px;
  top: 0;
  border-color: rgba(215, 170, 62, 0.9);
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 247, 196, 0.62), transparent 36%),
    linear-gradient(180deg, #e4bf4c, #7f5818);
  box-shadow:
    inset 0 0 0 3px rgba(40, 25, 4, 0.48),
    0 0 20px rgba(215, 170, 62, 0.34),
    0 0 0 5px rgba(215, 170, 62, 0.08);
}

body.eclipse-page .news-card .news-head {
  display: block;
  padding-bottom: 10px;
}

body.eclipse-page .news-card .news-head div {
  display: grid;
  gap: 5px;
}

body.eclipse-page .news-card .news-head strong {
  justify-self: start;
}

body.eclipse-page .news-card .news-head p {
  max-width: 760px;
  margin: 0;
  color: var(--eclipse-paper-muted, #3b2815);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

body.eclipse-page .chronicle-section {
  align-items: start;
}

body.eclipse-page .chronicle-rail.milestone-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  gap: 0;
  max-height: none;
  overflow: visible;
  padding: 8px 0 0;
  scrollbar-gutter: auto;
}

body.eclipse-page .chronicle-rail.milestone-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 7%;
  right: 7%;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(54, 217, 119, 0.92), rgba(215, 170, 62, 0.86));
  box-shadow:
    0 0 22px rgba(54, 217, 119, 0.14),
    inset 0 0 0 1px rgba(255, 244, 198, 0.1);
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 54px 8px 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(54, 217, 119, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(238, 255, 229, 0.52), transparent 36%),
    linear-gradient(180deg, #37d977, #126a38);
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 4px rgba(4, 22, 12, 0.5),
    0 0 20px rgba(54, 217, 119, 0.22),
    0 0 0 6px rgba(0, 0, 0, 0.28);
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event.current::before {
  width: 32px;
  height: 32px;
  top: 12px;
  border-color: rgba(215, 170, 62, 0.95);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 196, 0.68), transparent 36%),
    linear-gradient(180deg, #dfbb4d, #7c5415);
  box-shadow:
    inset 0 0 0 4px rgba(35, 22, 4, 0.48),
    0 0 24px rgba(215, 170, 62, 0.34),
    0 0 0 7px rgba(215, 170, 62, 0.08);
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event span {
  color: rgba(54, 217, 119, 0.92);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event.current span {
  color: #f2d375;
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event strong {
  color: var(--egui-text, #f2e9d2);
  font-size: clamp(0.8rem, 0.82vw, 0.95rem);
  line-height: 1.12;
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event p {
  margin: 0;
  color: var(--egui-muted, #b7a985);
  font-size: 0.72rem;
  line-height: 1.32;
}

body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event a {
  justify-self: center;
  width: max-content;
  border: 1px solid rgba(54, 217, 119, 0.16);
  border-radius: 4px;
  padding: 4px 7px;
  background: rgba(54, 217, 119, 0.055);
  color: #8df5b0;
  font-size: 0.58rem;
  line-height: 1;
}

body.eclipse-page .realm-intel-section,
body.eclipse-page .characters-section,
body.eclipse-page .raids-section,
body.eclipse-page .world-buffs-section,
body.eclipse-page .graveyard-section,
body.eclipse-page .chronicle-section,
body.eclipse-page .battle-strip,
body.eclipse-page .codex-grid,
body.eclipse-page .guild-info-section,
body.eclipse-page .officer-showcase,
body.eclipse-page .apply-band {
  margin-top: clamp(12px, 1.8vw, 18px);
}

body.eclipse-page .characters-section,
body.eclipse-page .raids-section,
body.eclipse-page .world-buffs-section,
body.eclipse-page .graveyard-section {
  gap: clamp(12px, 2vw, 18px);
}

body.eclipse-page .character-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.eclipse-page .character-stats b {
  min-width: 0;
}

body.eclipse-page .raid-board,
body.eclipse-page .buff-board,
body.eclipse-page .graveyard-grid,
body.eclipse-page .chronicle-rail,
body.eclipse-page .codex-grid,
body.eclipse-page .guild-info-columns {
  min-width: 0;
}

body.eclipse-page .raid-links a {
  min-width: 0;
  max-width: 100%;
}

body.eclipse-page .battle-strip,
body.eclipse-page .officer-showcase {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

body.eclipse-page .battle-strip img,
body.eclipse-page .officer-showcase img {
  width: 100%;
  min-width: 0;
  object-position: center;
}

body.eclipse-page .battle-strip div,
body.eclipse-page .officer-showcase article,
body.eclipse-page .apply-band > div,
body.eclipse-page .guild-info-head,
body.eclipse-page .realm-intel-copy,
body.eclipse-page .characters-head,
body.eclipse-page .raids-head,
body.eclipse-page .world-buffs-head,
body.eclipse-page .graveyard-head,
body.eclipse-page .chronicle-head {
  min-width: 0;
}

body.eclipse-page :where(
  .realm-intel-copy h2,
  .characters-head h2,
  .raids-head h2,
  .world-buffs-head h2,
  .graveyard-head h2,
  .chronicle-head h2,
  .battle-strip h2,
  .officer-showcase h2,
  .apply-band h2,
  .guild-info-head h2
) {
  line-height: 0.96;
  text-wrap: balance;
}

body.eclipse-page .apply-band {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

body.eclipse-page .apply-form {
  min-width: 0;
}

body.eclipse-page .apply-form input,
body.eclipse-page .apply-form select,
body.eclipse-page .apply-form textarea,
body.eclipse-page .apply-form button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1280px) {
  body.eclipse-page .guild-topbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.eclipse-page .guild-logo {
    width: max-content;
    max-width: 100%;
    padding-right: 0;
    border-right: 0;
  }

  body.eclipse-page .guild-topbar nav {
    justify-content: flex-start;
  }

  body.eclipse-page .guild-dashboard {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }

  body.eclipse-page .guild-dashboard .death-panel {
    grid-column: 1 / -1;
  }

  body.eclipse-page .battle-strip,
  body.eclipse-page .officer-showcase,
  body.eclipse-page .apply-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.eclipse-page .eclipse-modern {
    width: min(100% - 20px, 1520px);
  }

  body.eclipse-page .guild-topbar {
    position: relative;
    top: 0;
  }

  body.eclipse-page .guild-topbar nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  body.eclipse-page .guild-topbar nav a {
    min-width: 0;
    justify-content: center;
    padding-inline: 5px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  body.eclipse-page .guild-hero {
    min-height: 500px;
    background-position: center top;
  }

  body.eclipse-page .guild-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 9vw, 4rem);
    line-height: 0.92;
  }

  body.eclipse-page .guild-hero-copy {
    padding: 78px 16px 34px;
  }

  body.eclipse-page .hero-raid-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(430px, 100%);
  }

  body.eclipse-page .guild-dashboard,
  body.eclipse-page .characters-section,
  body.eclipse-page .raids-section,
  body.eclipse-page .world-buffs-section,
  body.eclipse-page .graveyard-section,
  body.eclipse-page .guild-info-columns,
  body.eclipse-page .codex-grid {
    grid-template-columns: 1fr;
  }

  body.eclipse-page .member-list,
  body.eclipse-page .character-grid,
  body.eclipse-page .graveyard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.eclipse-page .grave-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body.eclipse-page .eclipse-modern {
    width: min(100% - 12px, 1520px);
    padding-bottom: 42px;
  }

  body.eclipse-page .guild-topbar {
    padding: 7px;
  }

  body.eclipse-page .guild-logo {
    grid-template-columns: 38px minmax(0, 1fr);
    width: 100%;
  }

  body.eclipse-page .guild-logo img {
    width: 38px;
    height: 38px;
  }

  body.eclipse-page .guild-logo strong {
    max-width: none;
    font-size: clamp(1.55rem, 8.6vw, 2.12rem);
  }

  body.eclipse-page .guild-topbar nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.eclipse-page .guild-topbar nav::-webkit-scrollbar {
    display: none;
  }

  body.eclipse-page .guild-topbar nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 36px;
    border-color: rgba(244, 213, 130, 0.14);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.66rem;
  }

  body.eclipse-page .guild-hero {
    min-height: 510px;
  }

  body.eclipse-page .guild-hero-copy {
    padding: 86px 12px 28px;
  }

  body.eclipse-page .guild-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.34rem, 12.2vw, 3.4rem);
  }

  body.eclipse-page .guild-hero-copy p {
    max-width: 30rem;
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  body.eclipse-page .hero-raid-status b {
    min-height: 48px;
    padding: 7px 6px;
  }

  body.eclipse-page .hero-raid-status span {
    font-size: clamp(1.14rem, 6vw, 1.58rem);
  }

  body.eclipse-page .hero-raid-status em {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  body.eclipse-page .guild-actions {
    gap: 6px;
  }

  body.eclipse-page .guild-actions a {
    flex-basis: 100%;
    min-height: 40px;
  }

  body.eclipse-page .guild-dashboard .guild-card,
  body.eclipse-page :where(
    .realm-intel-section,
    .news-card,
    .characters-section,
    .raids-section,
    .world-buffs-section,
    .graveyard-section,
    .chronicle-section,
    .battle-strip,
    .guild-info-section,
    .officer-showcase,
    .apply-band
  ) {
    padding-inline: 12px;
  }

  body.eclipse-page .member-list,
  body.eclipse-page .character-grid,
  body.eclipse-page .raid-board,
  body.eclipse-page .buff-board,
  body.eclipse-page .graveyard-grid,
  body.eclipse-page .chronicle-rail {
    grid-template-columns: 1fr;
  }

  body.eclipse-page .chronicle-rail.milestone-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0 28px;
  }

  body.eclipse-page .chronicle-rail.milestone-timeline::before {
    top: 16px;
    bottom: 16px;
    left: 13px;
    right: auto;
    width: 5px;
    height: auto;
    background:
      linear-gradient(180deg, rgba(54, 217, 119, 0.92), rgba(215, 170, 62, 0.86));
  }

  body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event {
    min-height: 0;
    padding: 0 0 20px;
    text-align: left;
  }

  body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event::before,
  body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event.current::before {
    top: 2px;
    left: -15px;
    width: 24px;
    height: 24px;
    transform: translateX(-50%);
  }

  body.eclipse-page .chronicle-rail.milestone-timeline .chronicle-event a {
    justify-self: start;
  }

  body.eclipse-page .member-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  body.eclipse-page .member-row b {
    grid-column: 2;
    justify-self: start;
  }

  body.eclipse-page .boss-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-inline: 0;
  }

  body.eclipse-page .class-meter {
    grid-template-columns: minmax(68px, 0.34fr) minmax(54px, 1fr) 26px;
  }

  body.eclipse-page .character-stats,
  body.eclipse-page .form-pair {
    grid-template-columns: 1fr;
  }

  body.eclipse-page .battle-strip img,
  body.eclipse-page .officer-showcase img {
    max-height: 260px;
  }

  body.eclipse-page .officer-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  body.eclipse-page .guild-topbar nav a {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  body.eclipse-page .guild-hero h1 {
    font-size: 2.18rem;
  }

  body.eclipse-page .hero-raid-status {
    grid-template-columns: 1fr;
  }

  body.eclipse-page .officer-tags {
    grid-template-columns: 1fr;
  }
}

/* Always-visible next buff / next raid header timers. */
body.eclipse-page .guild-topbar {
  grid-template-columns: minmax(174px, auto) minmax(300px, 350px) minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 16px);
}

body.eclipse-page .guild-live-clock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

body.eclipse-page .guild-live-clock-card {
  --clock-accent: rgba(216, 169, 61, 0.86);
  --clock-glow: rgba(216, 169, 61, 0.14);
  display: grid;
  min-width: 0;
  min-height: 42px;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 130, 0.14);
  border-left-color: color-mix(in srgb, var(--clock-accent) 62%, transparent);
  border-radius: 4px;
  padding: 5px 7px 6px;
  color: #f3e9cf;
  background:
    radial-gradient(circle at 15% 12%, var(--clock-glow), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2)),
    rgba(0, 0, 0, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 190, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.26);
  text-decoration: none;
}

body.eclipse-page .guild-live-clock-card.raid {
  --clock-accent: rgba(71, 222, 123, 0.86);
  --clock-glow: rgba(71, 222, 123, 0.13);
}

body.eclipse-page .guild-live-clock-card span,
body.eclipse-page .guild-live-clock-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.eclipse-page .guild-live-clock-card span {
  color: color-mix(in srgb, var(--clock-accent) 82%, #ffffff);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

body.eclipse-page .guild-live-clock-card strong {
  margin-top: 2px;
  color: #fff4d1;
  font-family: "LifeCraft", Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.24vw, 1.42rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

body.eclipse-page .guild-live-clock-card em {
  margin-top: 2px;
  color: rgba(220, 208, 176, 0.76);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.1;
}

body.eclipse-page .guild-live-clock-card:hover,
body.eclipse-page .guild-live-clock-card:focus-visible {
  border-color: color-mix(in srgb, var(--clock-accent) 42%, transparent);
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--clock-accent) 22%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.38);
  outline: none;
}

@media (max-width: 1500px) {
  body.eclipse-page .guild-topbar {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  }

  body.eclipse-page .guild-topbar nav {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  body.eclipse-page .guild-topbar nav a {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding-inline: 6px;
    font-size: 0.66rem;
  }
}

@media (max-width: 1280px) {
  body.eclipse-page .guild-topbar {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  }

  body.eclipse-page .guild-topbar nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.eclipse-page .guild-topbar {
    position: sticky;
    top: 4px;
    grid-template-columns: 1fr;
  }

  body.eclipse-page :is(
    .realm-intel-section,
    .characters-section,
    .raids-section,
    .world-buffs-section,
    .graveyard-section,
    .chronicle-section,
    .guild-info-section,
    .apply-band
  ) {
    scroll-margin-top: 210px;
  }

  body.eclipse-page .guild-live-clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.eclipse-page .guild-topbar nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.eclipse-page .guild-topbar nav::-webkit-scrollbar {
    display: none;
  }

  body.eclipse-page .guild-topbar nav a {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 10px;
  }

  body.eclipse-page .guild-live-clock {
    gap: 4px;
  }

  body.eclipse-page .guild-live-clock-card {
    min-height: 46px;
    padding-inline: 6px;
  }

  body.eclipse-page .guild-live-clock-card strong {
    font-size: clamp(1.08rem, 5.4vw, 1.42rem);
  }

  body.eclipse-page .guild-live-clock-card em {
    font-size: 0.54rem;
  }
}

@media (max-width: 380px) {
  body.eclipse-page .guild-live-clock-card span {
    font-size: 0.52rem;
  }
}
