@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2?v=20260712.1") format("woff2");
}

/* Dedicated microsite pages */
.dashboard-hero {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0 8px;
}

.dashboard-hero .hero__copy {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .6fr);
  align-items: center;
  gap: 22px;
  padding-block: clamp(18px, 2.6vw, 28px);
}

.dashboard-hero .eyebrow,
.dashboard-hero h1,
.dashboard-hero .lede {
  grid-column: 1;
}

.dashboard-hero h1 {
  margin: 2px 0 0;
  max-width: 620px;
}

.dashboard-hero .lede {
  margin-top: 10px;
}

.dashboard-hero .lede {
  max-width: 760px;
}

.dashboard-hero__routes {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-hero__routes a,
.dashboard-page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 73, 74, .12);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-hero__routes a {
  display: grid;
  gap: 2px;
  min-height: 78px;
  align-content: center;
  padding: 14px 15px;
  background: rgba(255, 255, 255, .66);
}

.dashboard-hero__routes a::before,
.dashboard-page-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(64, 200, 117, .18), rgba(37, 157, 185, .12) 52%, rgba(245, 195, 77, .15));
  opacity: .72;
  content: "";
  pointer-events: none;
}

.dashboard-hero__routes a > *,
.dashboard-page-card > * {
  position: relative;
}

.dashboard-hero__routes strong {
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.dashboard-hero__routes span {
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
}

.dashboard-hero__routes a:hover,
.dashboard-hero__routes a:focus-visible,
.dashboard-page-card:hover,
.dashboard-page-card:focus-visible {
  border-color: rgba(27, 142, 126, .28);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 57, 76, .12);
}

.player-showcase-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 73, 74, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .5);
}

.player-showcase-intro h3,
.dashboard-pages__heading h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.player-showcase-intro p {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.adventurer-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-pages {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.dashboard-pages__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page-card {
  display: grid;
  min-height: 168px;
  align-content: end;
  gap: 7px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
}

.dashboard-page-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #155d61;
  background: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-page-card strong {
  max-width: 220px;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-page-card small {
  max-width: 230px;
  color: var(--ink-soft);
  font-weight: 760;
}

.dashboard-page-card--terminal::before {
  background: linear-gradient(135deg, rgba(10, 29, 37, .13), rgba(64, 200, 117, .14), rgba(239, 113, 100, .13));
}

.dashboard-page-card--map::before {
  background: linear-gradient(135deg, rgba(37, 157, 185, .18), rgba(121, 217, 238, .18), rgba(245, 195, 77, .16));
}

.dashboard-page-card--rankings::before {
  background: linear-gradient(135deg, rgba(245, 195, 77, .22), rgba(64, 200, 117, .14), rgba(239, 113, 100, .12));
}

.dashboard-page-card--daily::before {
  background: linear-gradient(135deg, rgba(239, 113, 100, .16), rgba(37, 157, 185, .14), rgba(255, 255, 255, .24));
}

.dedicated-main {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(236, 252, 244, .86)),
    var(--panel);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.35rem);
}

.page-hero .lede {
  max-width: 760px;
}

.page-hero .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
}

.dashboard-return-link {
  display: inline-flex;
  min-height: 42px;
  width: fit-content;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(23, 109, 112, .22);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  color: #145f63;
  background:
    linear-gradient(135deg, rgba(225, 249, 241, .92), rgba(255, 255, 255, .86));
  box-shadow: 0 10px 24px rgba(23, 109, 112, .12);
  font-size: .78rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-return-link svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 4px;
  fill: currentColor;
  background: rgba(23, 109, 112, .1);
}

.dashboard-return-link:hover,
.dashboard-return-link:focus-visible {
  border-color: rgba(23, 109, 112, .36);
  box-shadow: 0 14px 30px rgba(23, 109, 112, .16);
  transform: translateY(-1px);
}

.leaderboard-panel--page .leaderboard-panel__heading,
.archipelago-overview--page .archipelago-overview__heading {
  border-bottom: 1px solid rgba(20, 73, 74, .1);
  background: rgba(255, 255, 255, .46);
}

.leaderboard-panel--page .leaderboard-result-count {
  min-width: 190px;
}

.archipelago-overview--page {
  overflow: hidden;
  padding: 0;
}

.archipelago-overview--page .map-disclosure__content {
  padding: clamp(14px, 2.4vw, 24px);
}

.dedicated-main--map .archipelago-map {
  min-height: min(72vh, 760px);
}

body.terminal-view .site-footer .social-link {
  border-color: rgba(126, 238, 205, .26);
  background:
    linear-gradient(135deg, rgba(126, 238, 205, .12), rgba(255, 255, 255, .045)),
    rgba(7, 18, 25, .78);
  color: #f7fffb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 10px 24px rgba(0, 0, 0, .2);
}

body.terminal-view .site-footer .social-link strong {
  color: #ffffff;
}

body.terminal-view .site-footer .social-link small {
  color: rgba(232, 255, 247, .82);
}

body.terminal-view .site-footer .social-link > b {
  color: #ffd28d;
  opacity: 1;
}

/* Public event generations, source freshness and compact dashboard echoes. */
.source-freshness {
  position: relative;
  align-self: center;
}

.source-freshness > summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(24, 76, 77, .16);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .7);
  color: #214b52;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 900;
  list-style: none;
}

.source-freshness > summary::-webkit-details-marker {
  display: none;
}

.source-freshness[open] > summary,
.source-freshness > summary:focus-visible {
  border-color: #176d70;
  outline: 3px solid rgba(23, 109, 112, .2);
  outline-offset: 2px;
}

.source-freshness__panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(310px, calc(100vw - 24px));
  gap: 9px;
  border: 1px solid rgba(24, 76, 77, .16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, .98);
  color: #1b3f49;
  box-shadow: 0 18px 46px rgba(17, 45, 61, .2);
}

.source-freshness__panel > strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
}

.source-freshness__panel [data-source-freshness-list] {
  display: grid;
  gap: 6px;
}

.source-freshness__panel [data-source-freshness-list] > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(24, 76, 77, .09);
  padding-top: 6px;
  font-size: .76rem;
}

.source-freshness__panel time {
  color: #3d5962;
  font-weight: 800;
}

.source-freshness__value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.source-freshness__value em {
  border-radius: 999px;
  padding: 2px 6px;
  color: #176347;
  background: #e2f5eb;
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.source-freshness__value em[data-state="delayed"] {
  color: #7a5212;
  background: #fff0ca;
}

.source-freshness__value em[data-state="error"] {
  color: #8a2d2d;
  background: #ffe1dc;
}

body.terminal-view .source-freshness > summary {
  border-color: rgba(174, 251, 226, .28);
  background: rgba(126, 238, 205, .1);
  color: #dffff4;
}

body.terminal-view .site-header__telemetry {
  border-color: rgba(126, 238, 205, .13);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.home-echoes {
  overflow: hidden;
}

.home-echoes__heading {
  align-items: center;
}

.home-echoes__terminal-link,
.player-visibility-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 109, 112, .22);
  border-radius: 999px;
  padding: 0 17px;
  background: rgba(255, 255, 255, .78);
  color: #145e61;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.home-echoes__terminal-link:hover,
.home-echoes__terminal-link:focus-visible,
.player-visibility-toggle:hover,
.player-visibility-toggle:focus-visible {
  border-color: #176d70;
  outline: 3px solid rgba(23, 109, 112, .18);
  outline-offset: 2px;
  background: #fff;
}

.home-echoes__status {
  margin: -6px 0 14px;
  color: #49626a;
  font-size: .82rem;
  font-weight: 800;
}

.home-echoes__list {
  display: grid;
  margin: 0;
  padding: 0 2px;
  list-style: none;
  background: transparent;
}

.home-echoes__list .event-line {
  grid-template-columns: 126px 18px 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 82px;
  border-top: 1px solid rgba(24, 76, 77, .09);
  border-bottom: 0;
  padding: 12px 2px;
}

.home-echoes__list .event-line:first-child {
  border-top: 0;
}

.home-echoes__list .event-line__body {
  color: #405b64;
}

.home-echoes__list .event-line time {
  justify-items: end;
}

.home-echoes__list .event-line time strong {
  color: #557078;
}

.home-echoes__list .event-line__rail::before {
  background: rgba(23, 109, 112, .16);
}

.home-echoes__list .event-line__rail i {
  border-color: #f8fcf9;
}

.home-echoes__list .event-line__visual {
  border-color: color-mix(in srgb, var(--event-accent) 34%, rgba(24, 76, 77, .12));
  background: color-mix(in srgb, var(--event-accent) 14%, #f7fbf7);
}

.home-echoes__list .event-line__token {
  color: color-mix(in srgb, var(--event-accent) 72%, #163c47);
}

.home-echoes__list .event-line__meta {
  flex-wrap: wrap;
}

.home-echoes__list .event-line__meta b {
  color: color-mix(in srgb, var(--event-type-accent) 72%, #173f48);
  background: color-mix(in srgb, var(--event-type-accent) 14%, #fff);
}

.home-echoes__list .event-line__meta em {
  color: #45636a;
  background: rgba(23, 109, 112, .07);
}

.home-echoes__list .event-line__meta .event-line__player {
  color: color-mix(in srgb, var(--event-accent) 70%, #173f48);
  background: color-mix(in srgb, var(--event-accent) 13%, #fff);
}

.home-echoes__list .event-line__meta .event-line__confidence {
  color: #765411;
  background: #fff0ca;
}

.home-echoes__list .event-line__content > strong {
  color: #173b46;
}

.home-echoes__list .event-line__content > .event-line__body,
.home-echoes__list .event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
  color: #49656d;
}

.home-echoes__list .event-line__bullets li {
  border-color: color-mix(in srgb, var(--event-accent) 22%, rgba(23, 109, 112, .12));
  color: #285761;
  background: color-mix(in srgb, var(--event-accent) 9%, #fff);
}

.player-visibility-toggle {
  display: none;
  margin: 18px auto 0;
}

.event-date-navigation {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(153, 225, 205, .1);
  padding: 7px 16px;
  background: rgba(126, 238, 205, .035);
  color: #dffff4;
}

.event-date-navigation[hidden] {
  display: none;
}

.event-date-navigation > button,
.event-date-navigation label {
  min-height: 44px;
  border: 1px solid rgba(174, 251, 226, .24);
  border-radius: 12px;
  background: rgba(126, 238, 205, .08);
  color: #edfff9;
}

.event-date-navigation > button {
  min-width: 44px;
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.event-date-navigation > button:hover:not(:disabled),
.event-date-navigation > button:focus-visible {
  border-color: #aefbe2;
  outline: 3px solid rgba(174, 251, 226, .2);
  outline-offset: 2px;
  background: rgba(126, 238, 205, .17);
}

.event-date-navigation > button:disabled {
  cursor: default;
  opacity: .42;
}

.event-date-navigation label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  font-size: .72rem;
  font-weight: 900;
}

.event-date-navigation input {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-weight: 900;
}

.event-date-navigation .event-unseen,
.event-console > .event-unseen {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border-color: rgba(255, 210, 141, .5);
  background: rgba(255, 210, 141, .13);
  color: #ffe8bf;
  font-size: .72rem;
}

.event-console > .event-unseen {
  width: calc(100% - 32px);
  justify-content: center;
  min-height: 42px;
  margin: 10px 16px 0;
  border: 1px solid rgba(255, 210, 141, .5);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
}

.event-unseen[hidden] {
  display: none;
}

.event-unseen strong {
  display: inline-grid;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  border-radius: 999px;
  background: #ffd28d;
  color: #482d08;
}

.event-pagination__position {
  color: rgba(229, 249, 243, .86);
  font-size: .72rem;
  font-weight: 900;
}

button,
select,
input,
a {
  -webkit-tap-highlight-color: rgba(23, 109, 112, .18);
}

.daily-nav-button,
.dialog-close,
.dialog-share,
.dialog-export,
.player-page-back,
.map-layer-toggle,
.map-tool-button,
.event-pagination button {
  min-height: 44px;
}

.expedition-dialog:focus-visible,
.expedition-dialog__shell:focus-visible {
  outline: none;
}

@media (max-width: 720px) {
  .source-freshness {
    display: block;
  }

  .source-freshness > summary {
    width: auto;
    min-height: 34px;
    padding: 0 8px;
    justify-content: center;
    border-radius: 10px;
    font-size: .62rem;
  }

  .source-freshness__panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 88px);
    right: 12px;
  }

  .home-echoes__heading {
    align-items: flex-start;
    gap: 10px;
  }

  .home-echoes__terminal-link {
    width: 100%;
  }

  .home-echoes__list .event-line {
    grid-template-columns: 14px 40px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 5px 10px;
    padding: 14px 0;
  }

  .home-echoes__list .event-line time {
    grid-column: 3;
    grid-row: 1;
    justify-items: start;
  }

  .home-echoes__list .event-line__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .home-echoes__list .event-line__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .home-echoes__list .event-line__content {
    grid-column: 3;
    grid-row: 2;
  }

  .home-echoes__list .event-line__content > strong,
  .home-echoes__list .event-line__content > .event-line__body {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .adventurer-grid--home:not(.is-showing-inactive) [data-player-visibility="inactive"] {
    display: none;
  }

  .player-visibility-toggle:not([hidden]) {
    display: inline-flex;
  }

  .event-date-navigation {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: auto;
    padding: 8px 12px;
  }

  .event-date-navigation label {
    justify-content: center;
  }

  .event-date-navigation .event-unseen {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .event-console > .event-unseen {
    width: calc(100% - 24px);
    justify-content: center;
    margin: 8px 12px 0;
  }

  .event-pagination__position {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

/* Dedicated page polish: aligned return actions, clearer home routes, richer map controls. */
.page-hero,
.daily-heading,
body.terminal-view .terminal-page-heading {
  align-items: start;
}

.page-hero .dashboard-return-link,
.daily-heading__actions .dashboard-return-link,
body.terminal-view .terminal-return {
  align-self: start;
  margin-top: 0;
}

.daily-heading__actions {
  justify-items: end;
}

body.terminal-view .terminal-return.dashboard-return-link {
  border-color: rgba(126, 238, 205, .28);
  background:
    linear-gradient(135deg, rgba(126, 238, 205, .15), rgba(255, 210, 141, .08)),
    rgba(8, 25, 31, .72);
  color: #f7fffb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 10px 24px rgba(0, 0, 0, .22);
}

body.terminal-view .terminal-return.dashboard-return-link svg {
  background: rgba(126, 238, 205, .16);
}

.dashboard-hero__routes {
  gap: 12px;
}

.dashboard-hero__routes .dashboard-hero__route {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 94px;
  gap: 4px 12px;
  border-color: color-mix(in srgb, var(--route-color, #259db9) 28%, rgba(20, 73, 74, .14));
  border-radius: 20px;
  padding: 15px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--route-color, #259db9) 13%, #fff), rgba(255, 255, 255, .86));
  box-shadow: 0 14px 32px rgba(25, 67, 69, .1);
}

.dashboard-hero__route::before {
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--route-color, #259db9) 24%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--route-color, #259db9) 16%, transparent), rgba(255, 255, 255, .12));
}

.dashboard-hero__route--terminal { --route-color: #176d70; }
.dashboard-hero__route--map { --route-color: #259db9; }
.dashboard-hero__route--rankings { --route-color: #d79b2f; }
.dashboard-hero__route--daily { --route-color: #ef7164; }

.dashboard-hero__route-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--route-color) 25%, transparent);
  border-radius: 14px;
  place-items: center;
  color: color-mix(in srgb, var(--route-color) 82%, #132642);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
}

.dashboard-hero__route-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.dashboard-hero__route strong {
  grid-column: 2;
  font-size: 1.14rem;
}

.dashboard-hero__route span:not(.dashboard-hero__route-icon) {
  grid-column: 2;
  font-size: .78rem;
}

.dashboard-hero__route em {
  display: inline-grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--route-color) 28%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--route-color) 82%, #132642);
  background: rgba(255, 255, 255, .72);
  font-style: normal;
}

.dashboard-hero__route em svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.dashboard-hero__route:hover em,
.dashboard-hero__route:focus-visible em {
  color: #fff;
  background: color-mix(in srgb, var(--route-color) 82%, #145f63);
}

.adventurer-card {
  padding-bottom: 14px;
}

.adventurer-card__cover {
  min-height: 136px;
  margin-bottom: 12px;
}

.adventurer-card__team {
  display: grid;
  gap: 7px;
  min-height: 68px;
}

.adventurer-card__team small {
  color: color-mix(in srgb, var(--card-accent) 68%, var(--muted));
  font-size: .64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.adventurer-card__team div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adventurer-card__team span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 14%, transparent);
  border-radius: 999px;
  padding: 5px 8px;
  color: color-mix(in srgb, var(--card-accent) 74%, var(--ink));
  background: color-mix(in srgb, var(--card-accent) 7%, #fff);
  font-size: .68rem;
  font-weight: 850;
}

.adventurer-card__team b {
  color: var(--muted);
  font-size: .58rem;
}

.adventurer-card__quickfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.adventurer-card__quickfacts > span {
  display: grid;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--card-accent) 12%, rgba(20, 73, 74, .06));
  border-radius: 13px;
  padding: 8px 8px;
  background: color-mix(in srgb, var(--card-accent) 5%, rgba(255, 255, 255, .86));
}

.adventurer-card__quickfacts small,
.adventurer-card__quickfacts strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventurer-card__quickfacts small {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 950;
  text-transform: uppercase;
}

.adventurer-card__quickfacts strong {
  color: color-mix(in srgb, var(--card-accent) 72%, var(--ink));
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.archipelago-map__toolbar--layers {
  top: 10px;
  right: auto;
  left: 10px;
  max-width: calc(100% - 20px);
  flex-wrap: wrap;
}

.archipelago-map__toolbar--layers button {
  grid-auto-flow: column;
  width: auto;
  min-width: 0;
  gap: 6px;
  padding: 0 10px;
}

.archipelago-map__toolbar--layers .map-layer-toggle,
.archipelago-map__toolbar--layers .map-base-toggle {
  border-radius: 9px;
}

.archipelago-map__toolbar--layers .map-base-toggle {
  margin-left: 0;
  border-left: 0;
}

.map-layer-toggle span,
.map-base-toggle > span {
  display: grid;
  place-items: center;
}

.map-layer-toggle span svg,
.map-base-toggle > span svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.map-layer-toggle b,
.map-base-toggle b {
  font-size: .58rem;
  white-space: nowrap;
}

.map-layer-toggle:not(.is-active),
.map-base-toggle:not(.is-active) {
  opacity: .72;
}

.archipelago-map.is-players-hidden .global-player-marker {
  display: none;
}

.archipelago-map-layout.is-legend-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.archipelago-map-layout.is-legend-hidden .archipelago-legend {
  display: none;
}

.archipelago-map.is-map-expanded,
.archipelago-map:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.archipelago-map.is-map-expanded {
  position: fixed;
  inset: 10px;
  z-index: 2000;
  width: auto;
  height: auto;
  margin: 0;
}

.archipelago-map.is-map-expanded .archipelago-map__viewport,
.archipelago-map:fullscreen .archipelago-map__viewport {
  height: 100%;
  aspect-ratio: auto;
}

.player-page-emblem {
  isolation: isolate;
  position: relative;
}

.player-page-emblem::after {
  content: "Équipe";
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #145f63;
  background: rgba(255, 255, 255, .78);
  font-size: .52rem;
  font-weight: 950;
}

.profile-shortcuts {
  align-items: stretch;
}

.profile-shortcuts button {
  min-height: 72px;
}

@media (max-width: 960px) {
  .dashboard-hero__route {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .page-hero,
  .daily-heading {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .page-hero .dashboard-return-link,
  .daily-heading__actions,
  .daily-heading__actions .dashboard-return-link {
    width: 100%;
    justify-self: stretch;
  }

  body.terminal-view .terminal-return.dashboard-return-link {
    width: 40px;
    min-height: 40px;
    padding-inline: 0;
  }

  .dashboard-hero__route {
    min-height: 84px;
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    padding: 13px;
  }

  .dashboard-hero__route em {
    min-width: 54px;
  }

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

  .archipelago-map__toolbar {
    top: 8px;
    right: 8px;
  }

  .archipelago-map__toolbar--layers {
    top: 56px;
    right: 8px;
    left: 8px;
  }

  .map-layer-toggle b,
  .map-base-toggle b {
    display: none;
  }
}

body.terminal-view .site-footer .social-link svg {
  background: rgba(126, 238, 205, .12);
  fill: #9ff3d7;
}

body.terminal-view .site-footer .social-link:hover,
body.terminal-view .site-footer .social-link:focus-visible {
  border-color: rgba(255, 210, 141, .46);
  background:
    linear-gradient(135deg, rgba(126, 238, 205, .18), rgba(255, 210, 141, .12)),
    rgba(7, 18, 25, .88);
}

@media (max-width: 960px) {
  .dashboard-hero .hero__copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-hero__routes {
    grid-column: 1;
    grid-row: auto;
  }

  .page-hero,
  .player-showcase-intro,
  .dashboard-pages__heading {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .dashboard-hero__routes,
  .dashboard-page-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page-card {
    min-height: 132px;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 18vw, 3.25rem);
  }

  .leaderboard-panel--page .leaderboard-result-count {
    width: 100%;
  }
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/baloo-2-latin.woff2?v=20260712.1") format("woff2");
}

:root {
  --ink: #132642;
  --ink-soft: #344965;
  --muted: #6b7890;
  --canvas: #e7f7ee;
  --panel: rgba(255, 253, 242, .92);
  --panel-cool: rgba(247, 255, 252, .94);
  --line: rgba(22, 49, 79, .13);
  --leaf: #40c875;
  --leaf-deep: #147946;
  --lagoon: #259db9;
  --sky: #79d9ee;
  --sun: #f5c34d;
  --coral: #ef7164;
  --discord: #5865f2;
  --shadow: 0 18px 48px rgba(29, 57, 76, .13);
  --shadow-soft: 0 8px 24px rgba(29, 57, 76, .09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font: 15px/1.55 "Nunito", "Aptos", "Segoe UI", sans-serif;
  background-color: var(--canvas);
  background-image:
    linear-gradient(125deg, rgba(37, 157, 185, .13), transparent 32%),
    linear-gradient(310deg, rgba(245, 195, 77, .18), transparent 38%),
    repeating-linear-gradient(105deg, rgba(20, 76, 83, .035) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #e4f8ee 0%, #fff3cc 48%, #d9f3f6 100%);
}

.world-glow {
  display: none;
}

a {
  color: inherit;
}

.hero,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
  gap: 16px;
  padding: 24px 0 14px;
}

.hero__copy,
.hero-card,
.panel,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__copy {
  min-height: 300px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--panel);
}

.eyebrow {
  margin: 0;
  color: #176975;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  letter-spacing: -.035em;
}

h1 {
  max-width: 720px;
  margin-top: 8px;
  font-size: clamp(3.25rem, 6vw, 4.9rem);
  line-height: .9;
}

h2 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.05;
}

.lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 600;
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border: 1px solid rgba(24, 41, 68, .12);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button--discord {
  color: #fff;
  background: linear-gradient(135deg, var(--discord), var(--lagoon) 62%, var(--leaf));
  box-shadow: 0 12px 26px rgba(49, 100, 210, .22);
}

.button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 15px 30px rgba(24, 41, 68, .16);
}

.button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(37, 157, 185, .38);
  outline-offset: 3px;
}

.hero-card {
  min-height: 300px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .94), rgba(120, 219, 239, .21) 55%, rgba(64, 200, 117, .19)),
    var(--panel-cool);
}

.hero-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card__badge,
.hero-card__capacity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.hero-card__badge {
  gap: 7px;
  padding: 7px 10px;
  color: #145f37;
  background: rgba(64, 200, 117, .2);
}

.hero-card__badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(64, 200, 117, .15);
  content: "";
}

.hero-card__capacity {
  color: var(--muted);
}

.hero-card__count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 30px;
}

.hero-card__count strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: .82;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.hero-card__count span {
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-card__players {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .93rem;
  font-weight: 700;
}

.hero-card__refresh {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#next-update {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  transition: color .2s ease;
}

.hero-card__refresh[data-state="syncing"] #next-update,
.hero-card__refresh[data-state="updated"] #next-update {
  color: #12683e;
}

.hero-card__refresh[data-state="error"] #next-update {
  color: #915f16;
}

.hero-card__refresh[data-state="syncing"] #next-update::before,
.hero-card__refresh[data-state="updated"] #next-update::before,
.hero-card__refresh[data-state="error"] #next-update::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hero-card__refresh[data-state="syncing"] #next-update::before {
  animation: refresh-pulse .85s ease-in-out infinite alternate;
}

.refresh-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 38, 66, .11);
}

#refresh-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lagoon), var(--leaf));
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform .25s linear;
}

.hero-card__refresh[data-state="syncing"] #refresh-progress {
  background: linear-gradient(90deg, var(--lagoon), #71dfbc, var(--lagoon));
  background-size: 200% 100%;
  animation: refresh-shimmer 1s linear infinite;
}

.hero-card__refresh[data-state="updated"] #refresh-progress {
  background: linear-gradient(90deg, #27a86b, #65d493);
}

.hero-card__refresh[data-state="error"] #refresh-progress {
  background: linear-gradient(90deg, #d39a35, #efba5a);
}

@keyframes refresh-pulse {
  from { opacity: .38; transform: scale(.82); }
  to { opacity: 1; transform: scale(1.18); }
}

@keyframes refresh-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.panel {
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--panel);
  animation: reveal .48s ease both;
}

.uptime-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(231, 249, 241, .9)),
    var(--panel-cool);
}

.metrics,
.stats-panel {
  margin-top: 14px;
}

.metrics {
  animation-delay: .06s;
}

.stats-panel {
  animation-delay: .12s;
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.panel__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

#metrics-state,
#stats-state,
#uptime-state {
  border-radius: 999px;
  padding: 6px 10px;
  color: #145f37;
  background: rgba(64, 200, 117, .18);
  font-weight: 800;
}

#uptime-state[data-state="down"] {
  color: #952c24;
  background: rgba(239, 113, 100, .2);
}

#uptime-state[data-state="maintenance"],
#uptime-state[data-state="pending"] {
  color: #795406;
  background: rgba(245, 195, 77, .25);
}

.uptime-layout {
  display: block;
}

.uptime-copy p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 700;
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5px, 1fr));
  gap: 4px;
  min-height: 38px;
  align-items: stretch;
}

.uptime-segment {
  min-width: 4px;
  border-radius: 999px;
  background: rgba(107, 120, 144, .2);
}

.uptime-segment--up {
  background: linear-gradient(180deg, #63df8b, #25aa66);
}

.uptime-segment--down {
  background: linear-gradient(180deg, #ff8b7d, #d84539);
}

.uptime-segment--maintenance,
.uptime-segment--pending {
  background: linear-gradient(180deg, #ffd86d, #e9a90e);
}

.metric-grid,
.stat-grid {
  display: grid;
  gap: 10px;
}

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

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

.activity-stat-grid {
  margin: 16px 0 12px;
}

.metric-card {
  min-width: 0;
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow-soft);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.stats-note {
  margin-top: 14px;
  border-left: 3px solid var(--lagoon);
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--ink-soft);
  background: rgba(37, 157, 185, .11);
  font-size: .9rem;
  font-weight: 700;
}

.stats-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.stats-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  border-bottom: 1px solid rgba(24, 41, 68, .07);
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
}

.stats-table th {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stats-table td {
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
}

.stats-table td strong,
.stats-table td small {
  display: block;
}

.stats-table td strong {
  color: var(--ink);
}

.stats-table td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
}

.stats-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(107, 120, 144, .12);
  font-size: .7rem;
  font-weight: 800;
}

.pill--online {
  color: #145f37;
  background: rgba(64, 200, 117, .2);
}

.stats-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.stats-footer span {
  border: 1px solid rgba(24, 41, 68, .08);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .58);
}

.save-intro {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.save-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.save-summary span {
  border: 1px solid rgba(24, 41, 68, .08);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 700;
}

.save-summary strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: .94rem;
}

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

.adventurer-card {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 19px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(238, 248, 238, .74)),
    repeating-linear-gradient(35deg, transparent 0 8px, rgba(34, 98, 74, .035) 8px 9px);
  box-shadow: var(--shadow-soft);
  animation: reveal .45s ease both;
  animation-delay: calc(var(--card-order) * 45ms);
}

.data-loaded .adventurer-card {
  animation: none;
}

.adventurer-card::after {
  position: absolute;
  top: -32px;
  right: -28px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(248, 184, 71, .12);
  border-radius: 42% 58% 49% 51%;
  content: "";
  transform: rotate(20deg);
}

.adventurer-card__head {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.adventurer-card__head p,
.adventurer-card__head h3 {
  margin: 0;
}

.adventurer-card__head p {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.adventurer-card__head h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.15rem;
}

.level-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #174c38;
  background: rgba(91, 198, 140, .2);
  font-size: .7rem;
  font-weight: 900;
}

.adventurer-card__numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0;
}

.adventurer-card__numbers span {
  min-width: 0;
  border-radius: 12px;
  padding: 9px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  font-size: .63rem;
  font-weight: 700;
  text-align: center;
}

.adventurer-card__numbers strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.pal-favorites small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.pal-favorites div,
.adventurer-card__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.pal-favorites span,
.adventurer-card__progress span {
  border-radius: 999px;
  padding: 5px 7px;
  font-size: .68rem;
  font-weight: 750;
}

.adventurer-card__open {
  display: block;
  width: 100%;
  margin-top: 13px;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(115deg, #176d70, #35a976);
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(27, 116, 94, .16);
  text-align: center;
  text-decoration: none;
}

.adventurer-card--provisional {
  border-style: dashed;
}

.adventurer-card__pending {
  display: grid;
  min-height: 94px;
  margin: 3px 0 12px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, rgba(24, 41, 68, .08));
  border-radius: 16px;
  padding: 13px 14px;
  align-content: center;
  gap: 4px;
  color: color-mix(in srgb, var(--card-accent) 76%, var(--ink));
  background: color-mix(in srgb, var(--card-accent) 7%, #fff);
}

.adventurer-card__pending strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
}

.adventurer-card__pending span {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

.player-kpi-group--pending {
  border: 1px dashed color-mix(in srgb, var(--player-accent, #2a9f86) 35%, rgba(24, 41, 68, .12));
  border-radius: 20px;
  padding: 18px;
  background: color-mix(in srgb, var(--player-accent, #2a9f86) 6%, #fff);
}

.profile-pending-message {
  display: grid;
  margin-top: 14px;
  border-radius: 15px;
  padding: 14px 16px;
  gap: 4px;
  background: rgba(255, 255, 255, .74);
}

.profile-pending-message span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.detail-tab:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.adventurer-card__open:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.expedition-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 0;
  border-radius: 26px;
  padding: 0;
  color: var(--ink);
  background: #f7f3df;
  box-shadow: 0 30px 90px rgba(9, 31, 45, .36);
}

.expedition-dialog::backdrop {
  background: rgba(6, 28, 38, .7);
  backdrop-filter: blur(8px);
}

.expedition-dialog__shell {
  overflow: auto;
  max-height: calc(100dvh - 32px);
  background:
    linear-gradient(120deg, rgba(218, 246, 238, .72), transparent 40%),
    repeating-linear-gradient(35deg, transparent 0 12px, rgba(26, 83, 70, .025) 12px 13px),
    #f9f6e9;
}

.expedition-dialog__header {
  display: flex;
  position: sticky;
  z-index: 5;
  top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(24, 41, 68, .08);
  padding: 18px 22px 14px;
  background: rgba(249, 246, 233, .92);
  backdrop-filter: blur(12px);
}

.expedition-dialog__header h2,
.expedition-dialog__header p {
  margin: 0;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(24, 41, 68, .1);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  font-size: 1.6rem;
  cursor: pointer;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-share,
.dialog-export {
  border: 1px solid rgba(24, 41, 68, .12);
  border-radius: 999px;
  padding: 8px 11px;
  color: #176d70;
  background: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: .7rem;
  font-weight: 850;
  cursor: pointer;
}

.dialog-export {
  color: #eaf9f4;
  background: rgba(255, 255, 255, .08);
}

.detail-tabs {
  display: flex;
  position: sticky;
  z-index: 4;
  top: 73px;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(24, 41, 68, .08);
  padding: 9px 22px;
  background: rgba(249, 246, 233, .9);
  backdrop-filter: blur(12px);
}

.detail-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(24, 41, 68, .06);
  font: inherit;
  font-size: .77rem;
  font-weight: 800;
  cursor: pointer;
}

.detail-tab > span {
  margin-right: 4px;
  color: currentColor;
  opacity: .62;
  font-size: .58rem;
}

.detail-tab > b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  place-items: center;
  color: #176d70;
  background: rgba(255, 255, 255, .78);
  font-size: .6rem;
}

.detail-tab.is-active {
  color: #fff;
  background: #176d70;
}

.detail-panel {
  padding: 20px 22px 28px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: 16px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-stat-grid article {
  border: 1px solid rgba(24, 41, 68, .08);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, .7);
}

.profile-stat-grid span,
.profile-stat-grid strong {
  display: block;
}

.profile-stat-grid span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stat-grid strong {
  margin-top: 3px;
  font-size: 1.25rem;
}

.world-map {
  overflow: hidden;
  position: relative;
  min-height: 260px;
  margin: 0;
  border: 1px solid rgba(24, 41, 68, .1);
  border-radius: 18px;
  background: #bedcc8;
}

.world-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.world-map__marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #f04f42;
  box-shadow: 0 3px 12px rgba(67, 18, 12, .35);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.world-map figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 10px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(9, 35, 44, .74);
  font-size: .72rem;
  font-weight: 750;
  backdrop-filter: blur(6px);
}

.allocation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-shortcuts button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 16px;
  padding: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.profile-shortcuts button:hover {
  border-color: rgba(23, 109, 112, .3);
  transform: translateY(-1px);
}

.profile-shortcuts button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.profile-shortcuts small,
.profile-shortcuts strong {
  display: block;
}

.profile-shortcuts small {
  color: var(--muted);
  font-size: .62rem;
}

.profile-shortcuts strong {
  margin-top: 2px;
  font-size: .78rem;
}

.profile-shortcuts button > b {
  color: #176d70;
  font-size: .67rem;
}

.shortcut-preview {
  display: flex;
  width: 90px;
  padding-left: 6px;
}

.shortcut-icon {
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: contain;
  background: #edf7f1;
  filter: drop-shadow(0 3px 4px rgba(24, 41, 68, .12));
}

.allocation-list span {
  display: flex;
  gap: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .7);
  font-size: .72rem;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 14px;
}

.collection-toolbar label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.collection-toolbar input,
.collection-toolbar select {
  width: 100%;
  border: 1px solid rgba(24, 41, 68, .12);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  font: inherit;
  font-size: .78rem;
}

#pal-result-count {
  padding: 10px 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.pal-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pal-detail-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(24, 41, 68, .08);
  border-radius: 17px;
  background: rgba(255, 255, 255, .72);
}

.pal-detail-card__portrait {
  display: grid;
  position: relative;
  min-height: 160px;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #e9fff2 0 28%, #b9dfd0 72%);
}

.pal-portrait {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(24, 41, 68, .15));
}

.pal-detail-card__portrait > span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(17, 91, 76, .82);
  font-size: .62rem;
  font-weight: 850;
}

.pal-detail-card__body {
  min-width: 0;
  padding: 12px;
}

.pal-detail-card__body header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pal-detail-card h3,
.pal-detail-card small,
.pal-detail-card p {
  margin: 0;
}

.pal-detail-card h3 {
  font-size: .96rem;
}

.pal-detail-card small {
  color: var(--muted);
  font-size: .64rem;
}

.pal-detail-card header > b {
  border-radius: 999px;
  padding: 4px 7px;
  color: #145f37;
  background: rgba(64, 200, 117, .16);
  font-size: .65rem;
}

.pal-vitals,
.pal-passives {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.pal-vitals span,
.pal-passives span {
  border-radius: 999px;
  padding: 4px 6px;
  color: var(--ink-soft);
  background: rgba(24, 41, 68, .06);
  font-size: .6rem;
  font-weight: 700;
}

.talent-bars {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.talent-bars span {
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  padding: 3px 6px;
  background: linear-gradient(90deg, rgba(51, 179, 119, .22) var(--talent), rgba(24, 41, 68, .05) var(--talent));
  font-size: .58rem;
  font-weight: 750;
}

.pal-skills {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.45;
}

.pal-abilities {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.pal-abilities > small {
  color: #176d70;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pal-abilities .pal-passives,
.pal-abilities .pal-skills {
  margin-top: 0 !important;
}

.inventory-sections {
  display: grid;
  gap: 18px;
}

.inventory-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.inventory-section h3 {
  margin: 0;
  font-size: 1rem;
}

.inventory-section header span {
  color: var(--muted);
  font-size: .7rem;
}

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

.inventory-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(24, 41, 68, .08);
  border-left: 4px solid #9aa5b1;
  border-radius: 13px;
  padding: 8px;
  background: rgba(255, 255, 255, .72);
}

.inventory-item.rarity-2 { border-left-color: #4ea3dd; }
.inventory-item.rarity-3 { border-left-color: #8c6ad7; }
.inventory-item.rarity-4 { border-left-color: #d68d38; }
.inventory-item.rarity-5 { border-left-color: #de5967; }

.game-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(24, 41, 68, .05);
}

.game-icon--empty,
.game-icon.is-missing,
.pal-portrait.is-missing {
  background: linear-gradient(135deg, rgba(53, 169, 118, .18), rgba(248, 184, 71, .2));
}

img.is-missing {
  visibility: hidden;
}

.inventory-item strong,
.inventory-item small {
  display: block;
}

.inventory-item strong {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .58rem;
}

.inventory-item > b {
  font-size: .7rem;
}

.detail-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(24, 41, 68, .14);
  border-radius: 13px;
  padding: 16px;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.pal-favorites span {
  color: #764616;
  background: rgba(248, 184, 71, .17);
}

.adventurer-card__progress {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(24, 41, 68, .07);
}

.adventurer-card__progress span {
  color: var(--ink-soft);
  background: rgba(34, 98, 74, .07);
}

.adventurer-card__activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  border-top: 1px solid rgba(24, 41, 68, .07);
  padding-top: 12px;
}

.adventurer-card__activity > span {
  min-width: 0;
  border: 1px solid rgba(20, 73, 74, .07);
  border-radius: 11px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, .56);
}

.adventurer-card__activity small,
.adventurer-card__activity strong {
  display: block;
}

.adventurer-card__activity small {
  color: var(--muted);
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.adventurer-card__activity strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .74rem;
  line-height: 1.25;
}

.save-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(24, 41, 68, .14);
  border-radius: 16px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 16px;
  margin-bottom: 28px;
  padding: 14px 16px;
  color: var(--ink-soft);
  background: rgba(255, 253, 242, .82);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.site-footer a {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .62);
  text-decoration: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

@media (max-width: 760px) {
  .hero,
  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .hero__copy,
  .hero-card,
  .panel,
  .site-footer {
    border-radius: 20px;
  }

  .hero__copy,
  .hero-card {
    min-height: 0;
  }

  .hero__copy {
    padding: 24px;
  }

  h1 {
    max-width: 520px;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-card {
    padding: 18px;
  }

  .hero-card__count {
    margin-top: 20px;
  }

  .hero-card__refresh {
    margin-top: 18px;
  }

  .panel__header {
    flex-direction: column;
    gap: 10px;
  }

  .panel__status {
    justify-content: flex-start;
  }

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

  .expedition-dialog {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 19px;
  }

  .expedition-dialog__shell {
    max-height: calc(100dvh - 14px);
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-shortcuts {
    grid-template-columns: 1fr;
  }

  .pal-collection-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .stats-table,
  .stats-table tbody,
  .stats-table tr,
  .stats-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .stats-table thead {
    display: none;
  }

  .stats-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    margin-top: 10px;
    border: 1px solid rgba(24, 41, 68, .09);
    border-radius: 16px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, .66);
    box-shadow: var(--shadow-soft);
  }

  .stats-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }

  .stats-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .stats-table td:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 14px;
  }

  .hero__copy {
    padding: 21px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 3.45rem);
  }

  .button {
    width: 100%;
  }

  .panel {
    padding: 15px;
  }

  .uptime-bars {
    gap: 3px;
    min-height: 34px;
  }

  .metric-card {
    padding: 11px;
  }

  .stats-table tr {
    grid-template-columns: 1fr;
  }

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

  .expedition-dialog__header,
  .detail-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .dialog-share,
  .dialog-export {
    padding: 7px 9px;
    font-size: .64rem;
  }

  .shortcut-preview {
    width: 76px;
  }

  .shortcut-icon {
    width: 30px;
    height: 30px;
  }

  .detail-tabs {
    padding-right: 14px;
    padding-left: 14px;
  }

  .collection-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #pal-result-count {
    padding: 2px 0;
  }

  .pal-detail-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .pal-portrait {
    width: 72px;
    height: 72px;
  }

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

  .stats-table td:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(24, 41, 68, .07);
  }

  .stats-table td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 650px) {
  body.terminal-view .event-console__topbar {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  body.terminal-view .event-pagination--top {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    padding-bottom: 7px;
  }

  body.terminal-view .event-console > .event-unseen {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

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

/* Navigation, player-page scrolling and July 2026 launch details */
body.player-view-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.expedition-dialog {
  overflow: hidden;
}

.expedition-dialog__shell {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#save-state {
  border: 1px solid rgba(37, 132, 173, .14);
  border-radius: 999px;
  padding: 6px 10px;
  color: #145f82;
  background: rgba(71, 164, 207, .16);
  font-weight: 850;
}

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

.metric-card--server-age {
  border-top: 3px solid #e2a93f;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 242, 204, .72));
}

.info-dot {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border: 1px solid rgba(111, 76, 13, .18);
  border-radius: 50%;
  place-items: center;
  color: #75520e;
  background: rgba(245, 195, 77, .25);
  font: 900 .62rem/1 "Nunito", sans-serif;
  text-transform: none;
  cursor: help;
  vertical-align: 1px;
}

.info-dot:focus-visible {
  outline: 2px solid rgba(211, 150, 34, .42);
  outline-offset: 2px;
}

.hero__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
}

.button--events {
  border-color: rgba(33, 105, 105, .2);
  color: #e7fff6;
  background: linear-gradient(135deg, #123744, #176b68 62%, #26906f);
  box-shadow: 0 12px 26px rgba(16, 76, 76, .2);
}

.button--events .button__icon {
  border-color: rgba(177, 240, 218, .15);
  background: rgba(174, 238, 215, .12);
}

.button--events .button__label small,
.button--events .button__trail {
  color: rgba(225, 255, 245, .68);
}

.event-console__topbar {
  grid-template-columns: 90px minmax(0, 1fr);
}

.event-toolbar {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(165px, 1fr));
}

.event-console__summary {
  justify-content: flex-start;
}

.event-line {
  grid-template-columns: 170px 20px 46px minmax(0, 1fr);
}

.event-line time {
  justify-items: start;
}

.event-line time strong {
  white-space: nowrap;
}

.inventory-overview span {
  display: grid;
  align-content: center;
  min-height: 58px;
}

.inventory-overview small {
  display: block;
  margin-top: 2px;
  color: rgba(63, 81, 91, .68);
  font-size: .56rem;
  font-weight: 700;
  line-height: 1.25;
}

.inventory-equipped {
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(20, 73, 74, .1);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(224, 246, 237, .76), rgba(255, 255, 255, .72));
}

.inventory-equipped__heading {
  display: grid;
  align-content: center;
}

.inventory-equipped__heading > span {
  color: var(--ink);
  font: 800 .82rem "Nunito", sans-serif;
}

.inventory-equipped__heading small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.35;
}

.inventory-equipped__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inventory-equipped__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 160px;
  max-width: 230px;
  border: 1px solid rgba(20, 73, 74, .09);
  border-left: 3px solid rgba(49, 135, 112, .42);
  border-radius: 12px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .84);
}

.inventory-equipped__item.rarity-2 { border-left-color: #4ea3dd; }
.inventory-equipped__item.rarity-3 { border-left-color: #8c6ad7; }
.inventory-equipped__item.rarity-4 { border-left-color: #d68d38; }
.inventory-equipped__item.rarity-5 { border-left-color: #de5967; }

.inventory-equipped__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.inventory-equipped__item > span {
  display: grid;
  min-width: 0;
}

.inventory-equipped__item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-equipped__item small {
  color: var(--muted);
  font-size: .55rem;
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .event-search {
    grid-column: 1 / -1;
  }

  .inventory-equipped {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .event-line {
    grid-template-columns: 18px 42px minmax(0, 1fr);
  }

  .event-line time {
    white-space: nowrap;
  }
}

@media (max-width: 500px) {
  .hero__actions,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .inventory-equipped__item {
    width: 100%;
    max-width: none;
  }
}

/* Base operations: heavy save data stays lazy behind expandable camp cards. */
[hidden] {
  display: none !important;
}

.bases-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(242, 250, 244, .92)),
    repeating-linear-gradient(45deg, rgba(52, 101, 74, .035) 0 1px, transparent 1px 12px);
}

.bases-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(#f2bc54, #54a56e 48%, #348e91);
}

.bases-panel__heading,
.base-summary,
.stock-explorer,
.base-toolbar,
.base-result-count,
.base-grid {
  position: relative;
  z-index: 1;
}

.base-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 18px;
}

.base-summary article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(32, 75, 62, .1);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 20px rgba(27, 73, 61, .06);
}

.base-summary span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.base-summary strong {
  color: #174e48;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
}

.stock-explorer {
  margin: 4px 0 22px;
  border: 1px solid rgba(29, 91, 78, .12);
  border-radius: 22px;
  padding: clamp(15px, 2.3vw, 24px);
  background:
    linear-gradient(145deg, rgba(248, 254, 250, .96), rgba(238, 248, 244, .92)),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(35, 112, 88, .03) 18px 19px);
  box-shadow: 0 16px 36px rgba(23, 75, 62, .08);
}

.stock-explorer__heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.stock-explorer__heading h3,
.stock-explorer__heading p {
  margin: 0;
}

.stock-explorer__heading h3 {
  color: #174e48;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.stock-explorer__heading > div > p:last-child {
  max-width: 670px;
  color: var(--muted);
  font-size: .76rem;
}

.stock-explorer__total {
  flex: 0 0 auto;
  border: 1px solid rgba(35, 119, 96, .13);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .78);
  color: #246f60;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.stock-source-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 17px 0 13px;
  padding: 2px 2px 6px;
  scrollbar-color: rgba(38, 126, 108, .35) transparent;
  scrollbar-width: thin;
}

.stock-source-tabs button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(27, 88, 74, .11);
  border-radius: 12px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .76);
  color: #4a675f;
  cursor: pointer;
  font: 850 .7rem "Nunito", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.stock-source-tabs button:hover {
  border-color: rgba(35, 130, 105, .3);
  color: #176a59;
  transform: translateY(-1px);
}

.stock-source-tabs button.is-active {
  border-color: rgba(30, 123, 99, .3);
  background: linear-gradient(135deg, #217d69, #319b7a);
  color: #fff;
  box-shadow: 0 7px 16px rgba(28, 113, 91, .2);
}

.stock-source-tabs button b {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(27, 83, 69, .08);
  color: inherit;
  font-size: .62rem;
  text-align: center;
}

.stock-source-tabs button.is-active b {
  background: rgba(255, 255, 255, .18);
}

.stock-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 10px;
}

.stock-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 850;
}

.stock-toolbar input,
.stock-toolbar select {
  width: 100%;
  min-height: 43px;
  border: 1px solid rgba(25, 75, 70, .14);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font: 750 .78rem "Nunito", sans-serif;
}

.stock-toolbar input:focus,
.stock-toolbar select:focus {
  border-color: #2a9d8f;
  outline: 3px solid rgba(42, 157, 143, .15);
}

.stock-result-count {
  margin: 11px 2px 8px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.stock-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stock-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(28, 79, 68, .09);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 5px 14px rgba(23, 68, 57, .04);
}

.stock-item__icon,
.stock-item__icon.game-image--fallback {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: contain;
  background: linear-gradient(145deg, #edf7f3, #dfeee8);
}

.stock-item__body {
  display: grid;
  min-width: 0;
}

.stock-item__source {
  width: max-content;
  margin-bottom: 2px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #e5f3ed;
  color: #23705e;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.stock-item--production .stock-item__source {
  background: #fff0d5;
  color: #98621b;
}

.stock-item--guild .stock-item__source {
  background: #e4effa;
  color: #326c98;
}

.stock-item__body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-item__body small {
  overflow: hidden;
  color: var(--muted);
  font-size: .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-item > b {
  color: #1f705f;
  font-size: .75rem;
  text-align: right;
  white-space: nowrap;
}

.stock-item > b small {
  color: var(--muted);
  font-size: .5rem;
  font-weight: 750;
}

.stock-results__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  text-align: center;
}

.stock-pagination {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.stock-pagination button,
.stock-pagination span {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(29, 89, 76, .12);
  border-radius: 10px;
  padding: 0 8px;
  place-items: center;
  background: rgba(255, 255, 255, .82);
  color: #286e60;
  font: 850 .65rem "Nunito", sans-serif;
}

.stock-pagination button {
  cursor: pointer;
}

.stock-pagination button.is-active {
  border-color: #257c68;
  background: #257c68;
  color: #fff;
}

.stock-pagination button:disabled {
  cursor: default;
  opacity: .42;
}

.base-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 260px);
  gap: 12px;
  align-items: end;
}

.base-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.base-toolbar input,
.base-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(25, 75, 70, .14);
  border-radius: 13px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: 700 .83rem "Nunito", sans-serif;
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.base-toolbar input:focus,
.base-toolbar select:focus {
  border-color: #2a9d8f;
  outline: 3px solid rgba(42, 157, 143, .16);
}

.base-result-count {
  margin: 12px 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
}

.base-grid {
  display: grid;
  gap: 12px;
}

.base-card {
  overflow: clip;
  border: 1px solid rgba(30, 76, 67, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 28px rgba(27, 73, 61, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.base-card:hover {
  border-color: rgba(35, 140, 117, .26);
  box-shadow: 0 16px 34px rgba(27, 73, 61, .1);
}

.base-card[open] {
  border-color: rgba(35, 140, 117, .3);
  background: rgba(255, 255, 255, .96);
}

.base-card > summary {
  display: grid;
  grid-template-columns: 46px minmax(180px, 1.5fr) repeat(3, minmax(82px, .52fr)) minmax(110px, .65fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.base-card > summary::-webkit-details-marker {
  display: none;
}

.base-card > summary:focus-visible {
  outline: 3px solid rgba(42, 157, 143, .25);
  outline-offset: -3px;
}

.base-card > summary > svg {
  width: 20px;
  fill: #5f7771;
  transition: transform .2s ease;
}

.base-card[open] > summary > svg {
  transform: rotate(180deg);
}

.base-card__emblem {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4c45f, #de8e43);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 7px 16px rgba(166, 105, 45, .2);
  color: #fff;
  font-size: 1.35rem;
}

.base-card__identity {
  display: grid;
  min-width: 0;
}

.base-card__identity small {
  overflow: hidden;
  color: #398370;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.base-card__identity strong {
  overflow: hidden;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-card__identity b {
  color: var(--muted);
  font-size: .67rem;
}

.base-card__headline {
  display: grid;
  justify-items: center;
  min-width: 0;
  border-left: 1px solid rgba(31, 70, 62, .08);
}

.base-card__headline b {
  color: #1c5f55;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.base-card__headline small,
.base-card__health {
  color: var(--muted);
  font-size: .61rem;
  font-weight: 750;
}

.base-card__health {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(49, 165, 119, .1);
  color: #217253;
  text-align: center;
}

.base-card.has-alerts .base-card__health {
  background: rgba(227, 145, 55, .13);
  color: #a45c1d;
}

.base-card__body {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(31, 70, 62, .08);
  padding: 18px;
  background:
    linear-gradient(rgba(248, 252, 249, .94), rgba(245, 250, 247, .94)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(35, 103, 77, .035) 30px 31px);
}

.base-card__overview,
.base-operations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.base-card__overview article,
.base-operations-grid article {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 84px;
  border: 1px solid rgba(31, 70, 62, .09);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .76);
}

.base-card__overview span,
.base-operations-grid span {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.base-card__overview strong,
.base-operations-grid strong {
  color: #1d5b52;
  font-size: .88rem;
}

.base-card__overview small,
.base-operations-grid small {
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.35;
}

.base-card__section {
  min-width: 0;
}

.base-card__section > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.base-card__section .eyebrow {
  margin: 0 0 2px;
  font-size: .57rem;
}

.base-card__section h3,
.base-card__section h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
}

.base-card__section h3 {
  font-size: 1.03rem;
}

.base-card__section h4 {
  margin: 14px 0 7px;
  font-size: .78rem;
}

.base-card__section > header > span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(47, 136, 112, .1);
  color: #2b745f;
  font-size: .61rem;
  font-weight: 850;
}

.base-worker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.base-worker {
  display: grid;
  grid-template-columns: 52px minmax(105px, 1fr) minmax(115px, 1.1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(31, 70, 62, .09);
  border-radius: 15px;
  padding: 9px;
  background: rgba(255, 255, 255, .82);
}

.base-worker.is-unwell {
  border-color: rgba(210, 113, 56, .3);
  background: rgba(255, 247, 239, .92);
}

.base-worker__portrait,
.base-worker__portrait.game-image--fallback {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: contain;
  background: linear-gradient(145deg, #e8f7f0, #d8ecf0);
}

.base-worker__identity,
.base-worker__task {
  display: grid;
  min-width: 0;
}

.base-worker__identity > span,
.base-worker__task small,
.base-worker__vitals small {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 750;
}

.base-worker__identity strong,
.base-worker__task strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-worker__identity small {
  color: #37806e;
  font-size: .58rem;
  font-weight: 750;
}

.base-worker__aptitudes,
.base-worker__vitals {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 5px;
}

.base-worker__aptitudes span {
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(50, 132, 109, .08);
  color: #356e61;
  font-size: .54rem;
  font-weight: 700;
}

.base-worker__aptitudes b {
  color: #1f5e52;
}

.base-worker__vitals {
  grid-column: 1 / -1;
}

.base-worker__vitals span {
  display: flex;
  gap: 4px;
  align-items: baseline;
  border-radius: 8px;
  padding: 3px 6px;
  background: #f2f7f5;
}

.base-worker__vitals b {
  color: #285f55;
  font-size: .62rem;
}

.base-card__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.base-chip-grid,
.base-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.base-chip-grid span,
.base-highlight-list span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(35, 111, 89, .1);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .76);
  color: #4e6862;
  font-size: .61rem;
  font-weight: 700;
}

.base-chip-grid strong,
.base-highlight-list strong {
  color: #237260;
}

.base-storage-meter {
  overflow: hidden;
  height: 7px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #dfeae5;
}

.base-storage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35a27c, #e1b14d);
}

.base-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.base-resource-disclosure {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(31, 70, 62, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .58);
}

.base-resource-disclosure > summary {
  padding: 10px 12px;
  color: #246f60;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 850;
  list-style: none;
}

.base-resource-disclosure > summary::-webkit-details-marker {
  display: none;
}

.base-resource-disclosure > summary::after {
  float: right;
  content: "+";
  font-size: .9rem;
}

.base-resource-disclosure[open] > summary::after {
  content: "−";
}

.base-resource-disclosure .base-resource-list {
  overflow-y: auto;
  max-height: 520px;
  border-top: 1px solid rgba(31, 70, 62, .08);
  padding: 8px;
  scrollbar-color: rgba(38, 126, 108, .45) transparent;
  scrollbar-width: thin;
}

.base-resource {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(31, 70, 62, .08);
  border-radius: 11px;
  padding: 6px;
  background: rgba(255, 255, 255, .76);
}

.base-resource__icon,
.base-resource__icon.game-image--fallback {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #edf5f2;
}

.base-resource > span {
  display: grid;
  min-width: 0;
}

.base-resource strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-resource small {
  color: var(--muted);
  font-size: .53rem;
}

.base-resource > b {
  color: #277461;
  font-size: .66rem;
}

.base-card__empty {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.detail-panel--bases .detail-page-intro {
  align-items: center;
}

.detail-panel--bases .base-summary {
  margin-top: 8px;
}

.base-toolbar--player {
  grid-template-columns: minmax(0, 1fr);
}

.shortcut-preview--camp {
  display: grid;
  width: 104px;
  min-height: 42px;
  border-radius: 12px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f1b34f, #d47b27);
  font-size: 1.3rem;
  font-weight: 950;
}

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

.global-base-marker {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 7px;
  background: linear-gradient(145deg, #efb34b, #c8793b);
  box-shadow: 0 4px 10px rgba(63, 53, 35, .3);
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.global-base-marker i {
  font: 900 .75rem "Nunito", sans-serif;
}

.global-base-marker strong {
  position: absolute;
  top: 25px;
  left: 50%;
  display: none;
  width: max-content;
  max-width: 160px;
  border-radius: 7px;
  padding: 3px 6px;
  background: rgba(19, 43, 42, .9);
  color: #fff;
  font-size: .52rem;
  transform: translateX(-50%);
}

.global-base-marker:hover,
.global-base-marker:focus-visible {
  z-index: 6;
  transform: translate(-50%, -50%) scale(1.16);
}

.global-base-marker:hover strong,
.global-base-marker:focus-visible strong {
  display: block;
}

.global-base-legend {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(189, 121, 51, .18);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(255, 247, 225, .92), rgba(255, 255, 255, .9));
}

.global-base-legend strong {
  color: #845021;
  font-size: .72rem;
}

.global-base-legend span {
  color: var(--muted);
  font-size: .6rem;
}

.global-base-legend a {
  margin-top: 4px;
  color: #1e776a;
  font-size: .63rem;
  font-weight: 850;
}

@media (max-width: 1050px) {
  .base-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .base-card > summary {
    grid-template-columns: 44px minmax(180px, 1fr) repeat(3, 80px) 22px;
  }

  .base-card__health {
    display: none;
  }

  .base-worker-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .base-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .base-toolbar,
  .base-card__columns,
  .base-card__overview {
    grid-template-columns: 1fr;
  }

  .base-card > summary {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 9px;
  }

  .base-card__headline {
    display: none;
  }

  .base-card__emblem {
    width: 40px;
  }

  .base-card__body {
    padding: 13px;
  }

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

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

  .stock-explorer__heading {
    display: grid;
  }

  .stock-explorer__total {
    width: max-content;
  }

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

@media (max-width: 480px) {
  .base-summary,
  .base-card__overview,
  .base-operations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .base-worker {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .base-worker__task {
    grid-column: 2;
  }

  .base-worker__portrait,
  .base-worker__portrait.game-image--fallback {
    width: 46px;
    height: 46px;
  }

  .stock-results {
    grid-template-columns: 1fr;
  }

  .stock-pagination button:first-child,
  .stock-pagination button:last-child {
    overflow: hidden;
    width: 36px;
    max-width: 36px;
    color: transparent;
  }

  .stock-pagination button:first-child::after,
  .stock-pagination button:last-child::after {
    color: #286e60;
    content: "‹";
    font-size: 1rem;
  }

  .stock-pagination button:last-child::after {
    content: "›";
  }
}

@media (prefers-reduced-motion: reduce) {
  .base-card,
  .base-card > summary > svg,
  .global-base-marker {
    transition: none;
  }
}

/* Save enrichment: compact diagnostics and progressive player discoveries. */
.world-data {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(37, 157, 185, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 252, 249, .88), rgba(255, 249, 224, .72));
}

.world-data > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.world-data > summary::-webkit-details-marker {
  display: none;
}

.world-data > summary > span:first-child {
  display: grid;
  gap: 1px;
}

.world-data > summary strong {
  font: 800 20px/1.2 "Baloo 2", sans-serif;
}

.world-data > summary small {
  color: var(--muted);
}

.world-data__state {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #075f73;
  background: rgba(42, 184, 208, .16);
  font-size: 12px;
  font-weight: 800;
}

.world-data__state[data-state="warning"] {
  color: #94452b;
  background: rgba(246, 123, 91, .2);
}

.world-data__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.world-data__grid article {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(22, 49, 79, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.world-data__grid article[data-quality] {
  padding-right: 30px;
}

.world-data__grid article[data-quality]::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2ab8d0;
  box-shadow: 0 0 0 4px rgba(42, 184, 208, .12);
}

.world-data__grid article[data-quality="warning"]::after {
  background: #f67b5b;
  box-shadow: 0 0 0 4px rgba(246, 123, 91, .14);
}

.world-data__grid article[data-quality="stale"]::after {
  background: #d94d62;
  box-shadow: 0 0 0 4px rgba(217, 77, 98, .13);
}

.world-data__grid span,
.world-data__grid small {
  color: var(--muted);
}

.world-data__grid span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.world-data__grid strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font: 800 22px/1.1 "Baloo 2", sans-serif;
}

.world-data__grid small {
  font-size: 11px;
  line-height: 1.3;
}

.profile-stat-grid--discoveries {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paldex-explorer {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(18, 102, 107, .16);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(145deg, rgba(244, 254, 249, .98), rgba(231, 247, 244, .95)),
    repeating-linear-gradient(125deg, transparent 0 18px, rgba(32, 116, 101, .035) 18px 19px);
  box-shadow: 0 18px 38px rgba(17, 76, 68, .08);
}

.profile-paldex {
  grid-column: 1 / -1;
  min-width: 0;
}

.profile-paldex .paldex-explorer {
  margin-top: 0;
}

.paldex-explorer__heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.paldex-explorer__heading > div:first-child {
  min-width: 0;
}

.paldex-explorer__heading span {
  color: #258071;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.paldex-explorer__heading h4,
.paldex-explorer__heading p {
  margin: 0;
}

.paldex-explorer__heading h4 {
  color: #154d49;
  font: 850 clamp(21px, 3vw, 28px)/1.05 "Baloo 2", sans-serif;
}

.paldex-explorer__heading p {
  max-width: 610px;
  color: var(--muted);
  font-size: 11px;
}

.paldex-progress {
  display: grid;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #f6fffb 0 57%, transparent 58%),
    conic-gradient(#30a17e var(--paldex-progress), rgba(36, 112, 99, .12) 0);
  box-shadow: inset 0 0 0 1px rgba(30, 110, 96, .08), 0 8px 18px rgba(30, 105, 90, .1);
}

.paldex-progress strong {
  color: #17695e;
  font: 900 18px/1 "Baloo 2", sans-serif;
}

.paldex-progress small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.paldex-explorer__stage {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.paldex-focus {
  position: sticky;
  top: 12px;
  display: grid;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(23, 94, 83, .11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(98, 208, 168, .22), transparent 46%),
    linear-gradient(155deg, rgba(255, 255, 255, .96), rgba(228, 245, 239, .92));
  box-shadow: 0 11px 25px rgba(23, 73, 65, .08);
}

.paldex-focus__portrait {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .65)),
    repeating-linear-gradient(135deg, rgba(29, 113, 96, .04) 0 1px, transparent 1px 12px);
}

.paldex-focus__image,
.paldex-focus__image.game-asset--empty {
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 13px 15px rgba(19, 67, 60, .18));
  transition: filter .25s ease, transform .25s ease;
}

.paldex-focus__portrait:hover .paldex-focus__image {
  transform: translateY(-3px) scale(1.025);
}

.paldex-focus__portrait--unknown .paldex-focus__image {
  filter: grayscale(1) brightness(.25) contrast(1.8) drop-shadow(0 10px 12px rgba(13, 48, 45, .18));
  opacity: .72;
}

.paldex-focus__portrait > span {
  position: absolute;
  right: 11px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(15, 71, 64, .82);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.paldex-focus__copy {
  display: grid;
  align-content: start;
  padding: 13px 15px 16px;
}

.paldex-focus__status {
  width: max-content;
  border-radius: 999px;
  padding: 3px 7px;
  background: #daf2e8;
  color: #21715f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.paldex-focus__status--encountered {
  background: #fff0cd;
  color: #916019;
}

.paldex-focus__status--unknown {
  background: #e6eceb;
  color: #617572;
}

.paldex-focus__copy h5 {
  margin: 7px 0 1px;
  color: #154d49;
  font: 850 19px/1.08 "Baloo 2", sans-serif;
}

.paldex-focus__copy p,
.paldex-focus__copy small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.paldex-focus__copy small {
  margin-top: 6px;
  font-weight: 800;
}

.paldex-catalogue {
  min-width: 0;
}

.paldex-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.paldex-toolbar > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.paldex-toolbar input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(21, 84, 76, .13);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: 750 11px "Nunito", sans-serif;
}

.paldex-toolbar input:focus {
  border-color: #2a9d8f;
  outline: 3px solid rgba(42, 157, 143, .14);
}

.paldex-statuses {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.paldex-statuses button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(22, 80, 70, .11);
  border-radius: 11px;
  padding: 0 9px;
  background: rgba(255, 255, 255, .76);
  color: #496b64;
  cursor: pointer;
  font: 850 9px "Nunito", sans-serif;
}

.paldex-statuses button b {
  border-radius: 999px;
  padding: 2px 5px;
  background: rgba(28, 90, 77, .08);
  color: inherit;
  font-size: 8px;
}

.paldex-statuses button.is-active {
  border-color: #247c69;
  background: #247c69;
  color: #fff;
  box-shadow: 0 5px 12px rgba(29, 113, 92, .18);
}

.paldex-statuses button.is-active b {
  background: rgba(255, 255, 255, .18);
}

.paldex-result-count {
  margin: 9px 2px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.paldex-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.paldex-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid rgba(24, 83, 72, .09);
  border-radius: 13px;
  padding: 7px;
  background: rgba(255, 255, 255, .84);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.paldex-card:hover,
.paldex-card.is-selected {
  border-color: rgba(36, 133, 108, .48);
  box-shadow: 0 8px 16px rgba(24, 87, 73, .11);
  transform: translateY(-2px);
}

.paldex-card.is-selected {
  outline: 2px solid rgba(45, 157, 128, .18);
}

.paldex-card__number {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 1;
  color: #5f7a74;
  font-size: 7px;
  font-weight: 900;
}

.paldex-card__portrait {
  display: grid;
  min-height: 78px;
  place-items: center;
}

.paldex-card__image,
.paldex-card__image.game-asset--empty {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(24, 71, 63, .12));
}

.paldex-card--unknown .paldex-card__image {
  filter: grayscale(1) brightness(.2) contrast(1.9);
  opacity: .6;
}

.paldex-card__copy {
  display: grid;
  min-width: 0;
}

.paldex-card__copy strong,
.paldex-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paldex-card__copy strong {
  font-size: 9px;
}

.paldex-card__copy small {
  color: var(--muted);
  font-size: 7px;
}

.paldex-card__marker {
  position: absolute;
  right: 6px;
  top: 6px;
  display: grid;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  place-items: center;
  background: #d9f2e8;
  color: #1d755f;
  font-size: 9px;
  font-weight: 950;
}

.paldex-card--encountered .paldex-card__marker {
  background: #ffedc4;
  color: #986019;
}

.paldex-card--unknown .paldex-card__marker {
  background: #e8edec;
  color: #647a76;
}

.paldex-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
}

.paldex-pagination {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.paldex-pagination button,
.paldex-pagination span {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid rgba(24, 84, 73, .12);
  border-radius: 9px;
  padding: 0 8px;
  place-items: center;
  background: rgba(255, 255, 255, .8);
  color: #267060;
  font: 850 9px "Nunito", sans-serif;
}

.paldex-pagination button {
  cursor: pointer;
}

.paldex-pagination button.is-active {
  border-color: #257d69;
  background: #257d69;
  color: #fff;
}

.paldex-pagination button:disabled {
  cursor: default;
  opacity: .42;
}

.game-asset--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e4f1ed, #d3e6e0);
  color: #47716a;
  font-family: "Baloo 2", sans-serif;
  font-weight: 900;
}

.discovery-details {
  margin-top: 12px;
  border: 1px solid rgba(37, 157, 185, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .62);
}

.discovery-details > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.discovery-details > summary::-webkit-details-marker {
  display: none;
}

.discovery-details > summary small {
  color: var(--muted);
  font-weight: 600;
}

.discovery-details__groups {
  display: grid;
  gap: 18px;
  padding: 4px 16px 16px;
}

.discovery-details__groups h5 {
  margin: 0 0 8px;
  font: 800 16px/1.2 "Baloo 2", sans-serif;
}

.discovery-chip-grid,
.progress-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.discovery-chip,
.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 49, 79, .1);
  border-radius: 12px;
  background: rgba(247, 255, 252, .94);
}

.discovery-chip > span,
.progress-pill {
  display: grid;
}

.discovery-chip strong,
.progress-pill strong {
  font-size: 12px;
  line-height: 1.2;
}

.discovery-chip small,
.progress-pill small {
  color: var(--muted);
  font-size: 10px;
}

.discovery-chip__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.technology-explorer {
  border-top: 1px solid rgba(22, 49, 79, .08);
  padding-top: 16px;
}

.technology-explorer > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.technology-explorer > header h5 {
  margin-bottom: 2px;
}

.technology-explorer > header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.technology-explorer > header > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(37, 157, 185, .1);
  color: #176d70;
  font-size: 11px;
}

.technology-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px);
  gap: 10px;
  margin-bottom: 12px;
}

.technology-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.technology-toolbar input,
.technology-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(22, 49, 79, .12);
  border-radius: 11px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: 700 12px "Nunito", sans-serif;
}

.technology-toolbar input:focus,
.technology-toolbar select:focus {
  border-color: rgba(37, 157, 185, .55);
  outline: 3px solid rgba(37, 157, 185, .12);
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 4px 2px;
  scrollbar-color: rgba(36, 126, 120, .42) transparent;
  scrollbar-width: thin;
}

.technology-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(22, 49, 79, .09);
  border-radius: 13px;
  padding: 6px 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(240, 250, 247, .9));
}

.technology-card__icon,
.technology-card__icon.game-asset--empty {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(37, 157, 185, .07);
}

.technology-card > span {
  display: grid;
  min-width: 0;
}

.technology-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technology-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.pal-badges,
.pal-souls,
.pal-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pal-badges span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0e6742;
  background: rgba(64, 200, 117, .14);
  font-size: 10px;
  font-weight: 800;
}

.pal-computed-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pal-computed-stats span {
  display: grid;
  padding: 8px;
  border-radius: 10px;
  background: rgba(37, 157, 185, .08);
}

.pal-computed-stats strong {
  font: 800 17px/1 "Baloo 2", sans-serif;
}

.pal-souls > small,
.pal-work > small {
  flex-basis: 100%;
  color: var(--muted);
  font-weight: 800;
}

.pal-souls span {
  padding: 4px 7px;
  border-radius: 8px;
  color: #765406;
  background: rgba(245, 195, 77, .16);
  font-size: 10px;
  font-weight: 800;
}

.pal-work > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pal-work > div > span {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 0 7px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(121, 217, 238, .14);
  font-size: 10px;
}

.pal-work small {
  grid-column: 1 / -1;
}

.pal-learned {
  border-top: 1px solid rgba(22, 49, 79, .1);
  padding-top: 8px;
}

.pal-learned summary {
  cursor: pointer;
  color: var(--lagoon);
  font-size: 11px;
  font-weight: 800;
}

.pal-learned > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.pal-learned > div > span {
  display: grid;
  padding: 7px;
  border-radius: 9px;
  background: rgba(247, 255, 252, .9);
}

.pal-breeding {
  border-top: 1px solid rgba(22, 49, 79, .1);
  padding-top: 8px;
}

.pal-breeding > button {
  min-height: 36px;
  border: 1px solid rgba(22, 118, 92, .25);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(247, 255, 252, .95);
  color: var(--lagoon);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pal-breeding > button:focus-visible {
  outline: 3px solid rgba(47, 134, 207, .35);
  outline-offset: 2px;
}

.pal-breeding summary {
  cursor: pointer;
  color: var(--lagoon);
  font-size: 11px;
  font-weight: 800;
}

.pal-breeding ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pal-breeding li {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(247, 255, 252, .9);
  font-size: 11px;
}

.pal-breeding li span {
  color: var(--muted);
  padding: 0 4px;
}

.pal-footnotes {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .world-data__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paldex-explorer__stage {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

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

@media (max-width: 600px) {
  .world-data > summary,
  .discovery-details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-data__grid,
  .profile-stat-grid--discoveries,
  .pal-learned > div {
    grid-template-columns: 1fr;
  }

  .technology-explorer > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .technology-toolbar,
  .technology-grid {
    grid-template-columns: 1fr;
  }

  .technology-grid {
    max-height: 460px;
  }

  .paldex-explorer__heading {
    align-items: flex-start;
  }

  .paldex-progress {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .paldex-explorer__stage {
    grid-template-columns: 1fr;
  }

  .paldex-focus {
    position: relative;
    top: auto;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 126px;
  }

  .paldex-focus__portrait {
    min-height: 126px;
  }

  .paldex-focus__image,
  .paldex-focus__image.game-asset--empty {
    width: 104px;
    height: 104px;
  }

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

@media (max-width: 420px) {
  .paldex-explorer__heading p {
    display: none;
  }

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

  .paldex-pagination button:first-child,
  .paldex-pagination button:last-child {
    overflow: hidden;
    width: 34px;
    max-width: 34px;
    color: transparent;
  }

  .paldex-pagination button:first-child::after,
  .paldex-pagination button:last-child::after {
    color: #267060;
    content: "‹";
    font-size: 15px;
  }

  .paldex-pagination button:last-child::after {
    content: "›";
  }
}

/* Persistent navigation and centralized live telemetry. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(16, 48, 66, .12);
  background: rgba(236, 250, 242, .84);
  box-shadow: 0 10px 30px rgba(22, 58, 70, .08);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand__emblem {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(16, 99, 93, .18);
  border-radius: 13px 8px 13px 8px;
  color: #fff;
  background: linear-gradient(145deg, #176d70, #35b77a 72%, #e8b642);
  box-shadow: 0 7px 18px rgba(23, 109, 112, .19);
  font: 800 22px/1 "Baloo 2", sans-serif;
  transform: rotate(-3deg);
}

.site-brand > span:last-child {
  display: grid;
  line-height: 1;
}

.site-brand strong {
  font: 800 17px/1 "Baloo 2", sans-serif;
}

.site-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.site-nav a {
  position: relative;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #116a59;
  background: rgba(255, 255, 255, .72);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(37, 157, 185, .38);
  outline-offset: 2px;
}

.site-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #176d70, #269d88);
  box-shadow: 0 6px 16px rgba(23, 109, 112, .18);
}

.site-nav .site-nav__discord {
  margin-left: 4px;
  color: #4855cf;
  background: rgba(88, 101, 242, .1);
}

.site-header__telemetry {
  display: grid;
  grid-template-columns: auto auto auto minmax(118px, 145px);
  align-items: center;
  gap: 8px;
}

.site-header__players,
.site-header__updated,
.site-header__refresh {
  min-height: 42px;
  border: 1px solid rgba(19, 38, 66, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .68);
}

.site-header__players {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: help;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-header__players:focus-visible {
  outline: 2px solid rgba(37, 157, 185, .42);
  outline-offset: 3px;
}

.site-header__players i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(64, 200, 117, .13);
}

.site-header__players strong {
  font: 800 18px/1 "Baloo 2", sans-serif;
}

.site-header__players span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.site-header__players .site-header__players-tooltip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 74px);
  right: 18px;
  z-index: 1300;
  display: block;
  width: min(560px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
  padding: 15px;
  border: 1px solid rgba(23, 109, 112, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0, rgba(111, 212, 180, .22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(235, 250, 245, .95));
  box-shadow: 0 22px 54px rgba(17, 49, 67, .22), 0 5px 18px rgba(21, 101, 101, .1);
  color: #123641;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.site-header__players:hover .site-header__players-tooltip,
.site-header__players:focus-within .site-header__players-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.site-header__players .site-header__players-tooltip-kicker {
  display: block;
  color: #247b6c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header__players .site-header__players-tooltip > strong {
  display: block;
  margin-top: 3px;
  color: #123641;
  font: 800 22px/1.05 "Baloo 2", sans-serif;
}

.site-header__players .site-header__players-tooltip p,
.site-header__players .site-header__players-tooltip > small {
  display: block;
  margin: 7px 0 0;
  color: #587074;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.site-header__players .site-header__players-tooltip > small {
  color: #789195;
  font-size: 10px;
}

.site-header__players .site-header__players-tooltip ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.site-header__players .site-header__players-tooltip li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(18, 54, 65, .07);
  border-radius: 13px;
  background: rgba(255, 255, 255, .66);
}

.site-header__players .site-header__players-tooltip-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--player-color, #23856f);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--player-color, #23856f) 18%, transparent);
}

.site-header__players .site-header__players-tooltip li span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.site-header__players .site-header__players-tooltip li b {
  overflow: hidden;
  color: #123641;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
}

.site-header__players .site-header__players-tooltip li small {
  color: #5d7478;
  font-size: 11px;
  font-weight: 800;
}

.site-header__updated {
  display: grid;
  align-content: center;
  min-width: 112px;
  padding: 6px 10px;
}

.site-header__updated small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-header__updated time {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.site-last-updated__short {
  display: none;
}

.site-header__refresh {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.site-header__refresh #next-update {
  min-height: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__refresh .refresh-track {
  height: 3px;
}

.site-header__refresh[data-state="syncing"] #next-update,
.site-header__refresh[data-state="updated"] #next-update {
  color: #12683e;
}

.site-header__refresh[data-state="error"] #next-update {
  color: #915f16;
}

.site-header__refresh[data-state="syncing"] #refresh-progress {
  background: linear-gradient(90deg, var(--lagoon), #71dfbc, var(--lagoon));
  background-size: 200% 100%;
  animation: refresh-shimmer 1s linear infinite;
}

.site-header__refresh[data-state="updated"] #refresh-progress {
  background: linear-gradient(90deg, #27a86b, #65d493);
}

.site-header__refresh[data-state="error"] #refresh-progress {
  background: linear-gradient(90deg, #d39a35, #efba5a);
}

#accueil,
#chroniques,
#bases,
#carte,
#evenements {
  scroll-margin-top: 92px;
}

.hero {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 18px;
}

.hero__copy {
  display: grid;
  min-height: 230px;
  align-content: center;
}

.hero .lede {
  max-width: 880px;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    padding: 8px 0 7px;
  }

  .site-header__telemetry {
    justify-content: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  #accueil,
  #chroniques,
  #bases,
  #carte,
  #evenements {
    scroll-margin-top: 126px;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    width: min(100% - 18px, 1180px);
    gap: 6px 8px;
  }

  .site-brand {
    gap: 6px;
  }

  .site-brand__emblem {
    width: 34px;
    height: 34px;
    border-radius: 11px 7px 11px 7px;
    font-size: 19px;
  }

  .site-brand strong {
    font-size: 14px;
  }

  .site-brand small,
  .site-header__updated small {
    display: none;
  }

  .site-header__telemetry {
    grid-template-columns: auto auto auto minmax(82px, 1fr);
    gap: 5px;
  }

  .site-header__players,
  .site-header__updated,
  .site-header__refresh {
    min-height: 34px;
    border-radius: 10px;
  }

  .site-header__players {
    gap: 4px;
    padding: 5px 7px;
  }

  .site-header__players i {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(64, 200, 117, .13);
  }

  .site-header__players strong {
    font-size: 15px;
  }

  .site-header__players span {
    font-size: 8px;
  }

  .site-header__updated {
    min-width: 0;
    max-width: 72px;
    padding: 5px 7px;
  }

  .site-header__updated time {
    font-size: 9px;
    white-space: nowrap;
  }

  .site-last-updated__full {
    display: none;
  }

  .site-last-updated__short {
    display: inline;
  }

  .site-header__refresh {
    padding: 5px 7px;
    font-size: 9px;
  }

  .site-nav {
    justify-content: space-between;
    gap: 1px;
    padding-bottom: 1px;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 7px 7px;
    font-size: 10.5px;
  }

  .site-nav .site-nav__discord {
    margin-left: 0;
  }

  .hero {
    padding-top: 10px;
  }

  .hero__copy {
    min-height: 210px;
  }
}

/* Faster, denser player profile and dedicated Paldex tab */
.profile-layout {
  display: block;
}

.profile-column {
  width: 100%;
}

.profile-position {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0 4px;
  border: 1px solid rgba(30, 126, 111, .13);
  border-radius: 15px;
  padding: 10px 13px;
  color: #176d70;
  background: linear-gradient(120deg, rgba(223, 246, 234, .88), rgba(244, 251, 246, .82));
}

.profile-position svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.profile-position span {
  display: grid;
  gap: 1px;
}

.profile-position small {
  color: #55746e;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.profile-position strong {
  color: var(--ink);
  font-size: .82rem;
}

.player-kpi-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.player-kpi-groups > .player-kpi-group {
  margin: 0;
}

.player-kpi-group--activity,
.player-kpi-group--discoveries,
.player-kpi-group--pending {
  grid-column: 1 / -1;
}

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

.expedition-dialog__header .dialog-export {
  border-color: rgba(159, 239, 200, .68);
  color: #06393c;
  background: linear-gradient(135deg, #dffbea, #89dfb7);
  box-shadow: 0 10px 22px rgba(5, 39, 39, .18);
}

.expedition-dialog__header .dialog-export:hover {
  border-color: rgba(215, 255, 232, .9);
  color: #032b2e;
  background: linear-gradient(135deg, #f2fff7, #9de9c4);
}

.shortcut-preview--paldex {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #e09c3c, #d06c43);
  font: 900 .75rem/1 "Baloo 2", sans-serif;
}

.profile-paldex--tab {
  width: 100%;
}

.profile-paldex--tab .paldex-explorer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .player-kpi-groups {
    grid-template-columns: 1fr;
  }

  .player-kpi-group--activity,
  .player-kpi-group--discoveries,
  .player-kpi-group--pending {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .profile-shortcuts {
    grid-template-columns: 1fr;
  }
}

/* Dedicated event terminal and enriched player progression. */
.event-console__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.event-console__actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(123, 225, 196, .2);
  border-radius: 999px;
  padding: 5px 9px;
  color: #c8f7e9;
  background: rgba(96, 202, 171, .09);
  font-size: .58rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.event-console__actions a:hover,
.event-console__actions a:focus-visible {
  border-color: rgba(123, 225, 196, .5);
  background: rgba(96, 202, 171, .18);
  outline: 0;
  transform: translateY(-1px);
}

.event-console__return,
.event-page-size {
  display: none;
}

.terminal-open-button {
  display: inline-flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  min-height: 52px;
  padding: 7px 14px 7px 8px;
  color: #fff;
  background: linear-gradient(120deg, #168fa5, #2fbf87 35%, #f2bd5c 66%, #ef7164);
  background-size: 240% 240%;
  box-shadow: 0 12px 28px rgba(24, 132, 124, .22), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  animation: terminal-button-gradient 5s ease-in-out infinite, terminal-button-breathe 2.8s ease-in-out infinite;
  transition: box-shadow .2s ease, filter .2s ease, transform .2s ease;
}

.terminal-open-button::before {
  position: absolute;
  inset: 2px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 50%, rgba(255, 255, 255, .7), transparent 24%),
    radial-gradient(circle at 82% 28%, rgba(255, 235, 150, .65), transparent 26%),
    linear-gradient(120deg, rgba(37, 157, 185, .5), rgba(239, 113, 100, .42));
  content: "";
  filter: blur(10px);
  opacity: .38;
  animation: terminal-button-aura 2.4s ease-in-out infinite alternate;
}

.terminal-open-button::after {
  position: absolute;
  inset: -70% auto -70% -35%;
  z-index: -1;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .76), transparent);
  content: "";
  transform: rotate(17deg);
  animation: terminal-button-glow 2.9s ease-in-out infinite;
}

.terminal-open-button__icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  color: #14574f;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 5px 14px rgba(20, 87, 79, .2);
  font-size: .76rem;
  animation: terminal-button-icon 1.45s ease-in-out infinite;
}

.terminal-open-button__copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.terminal-open-button__copy strong {
  font-size: .76rem;
}

.terminal-open-button__copy small {
  color: rgba(255, 255, 255, .84);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-open-button:hover {
  filter: saturate(1.08);
  box-shadow: 0 16px 36px rgba(24, 132, 124, .28), 0 0 0 1px rgba(255, 255, 255, .22) inset;
  transform: translateY(-2px) scale(1.02);
}

.terminal-open-button:focus-visible {
  outline: 3px solid rgba(37, 157, 185, .38);
  outline-offset: 3px;
}

@keyframes terminal-button-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes terminal-button-breathe {
  0%, 100% { box-shadow: 0 12px 28px rgba(24, 132, 124, .22), 0 0 0 1px rgba(255, 255, 255, .14) inset; }
  50% { box-shadow: 0 16px 34px rgba(239, 113, 100, .22), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
}

@keyframes terminal-button-aura {
  0% { opacity: .24; transform: scale(.98); }
  100% { opacity: .54; transform: scale(1.04); }
}

@keyframes terminal-button-glow {
  0%, 58% { transform: translateX(0) rotate(18deg); opacity: 0; }
  68% { opacity: .9; }
  100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
}

@keyframes terminal-button-icon {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

body:not(.terminal-view) .event-toolbar,
body:not(.terminal-view) #event-sync-status {
  display: none;
}

body.terminal-view .hero,
body.terminal-view main > :not(#evenements) {
  display: none;
}

body.terminal-view main {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 250px);
  margin-top: 22px;
}

body.terminal-view #evenements {
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.terminal-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.terminal-page-heading h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .96;
}

body.terminal-view #evenements > summary {
  display: none;
}

body.terminal-view .events-disclosure__content {
  display: block;
}

body.terminal-view .event-console {
  overflow: hidden;
  min-height: calc(100vh - 230px);
  border-color: rgba(69, 205, 169, .32);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 36, 45, .2), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

body.terminal-view .event-console__topbar {
  min-height: 46px;
  padding-inline: 18px;
}

body.terminal-view .event-console__expand {
  display: none;
}

body.terminal-view .event-console__return {
  display: inline-flex;
}

body.terminal-view .event-toolbar {
  grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(140px, 1fr));
  padding: 14px 18px;
}

body.terminal-view .event-console__summary {
  padding-inline: 18px;
}

body.terminal-view .event-stream {
  min-height: 360px;
  padding: 8px 18px;
}

body.terminal-view .event-line {
  grid-template-columns: 175px 18px 44px minmax(0, 1fr);
  min-height: 74px;
  gap: 12px;
}

body.terminal-view .event-line__visual {
  width: 44px;
  height: 44px;
}

body.terminal-view .event-line__content > strong {
  font-size: .88rem;
}

body.terminal-view .event-line__content > .event-line__body,
body.terminal-view .event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
  max-width: 1080px;
  font-size: .74rem;
}

.paldex-card__challenge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border: 1px solid rgba(36, 123, 102, .14);
  border-radius: 999px;
  padding: 2px 5px;
  color: #307668;
  background: rgba(231, 248, 241, .94);
  font-size: .47rem;
  font-weight: 900;
  line-height: 1;
}

.paldex-card__challenge.is-complete {
  border-color: rgba(224, 159, 50, .26);
  color: #8a5b13;
  background: #fff1c9;
}

.paldex-focus__challenge {
  display: grid;
  gap: 5px;
  margin: 10px 0 8px;
}

.paldex-focus__challenge > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #2a6e63;
  font-size: .62rem;
}

.paldex-focus__challenge > span strong {
  color: #165c51;
}

.paldex-focus__challenge > i {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(39, 119, 100, .12);
}

.paldex-focus__challenge > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35a87e, #e5b650);
}

.journey-details {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(25, 102, 95, .14);
  border-radius: 18px;
  background: rgba(248, 255, 252, .78);
}

.journey-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.journey-details > summary::-webkit-details-marker {
  display: none;
}

.journey-details > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.journey-details > summary b {
  color: #185e58;
  font: 850 1rem/1.1 "Baloo 2", sans-serif;
}

.journey-details > summary small {
  color: var(--muted);
  font-size: .62rem;
}

.journey-details > summary > span:last-child {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  place-items: center;
  color: #247468;
  background: rgba(34, 126, 109, .1);
  transition: transform .2s ease;
}

.journey-details[open] > summary > span:last-child {
  transform: rotate(180deg);
}

.journey-details__content {
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(25, 102, 95, .1);
  padding: 16px;
}

.journey-details__content section h5 {
  margin: 0 0 7px;
  color: #1d6259;
  font: 850 .83rem/1.1 "Baloo 2", sans-serif;
}

.journey-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.journey-record-grid article {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(31, 111, 98, .1);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .72);
}

.journey-record-grid strong {
  color: #176b60;
  font: 900 1.1rem/1 "Baloo 2", sans-serif;
}

.journey-record-grid span,
.journey-chip-grid p {
  color: var(--muted);
  font-size: .58rem;
}

.journey-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journey-chip-grid > span {
  border: 1px solid rgba(33, 118, 104, .12);
  border-radius: 999px;
  padding: 5px 8px;
  color: #286e64;
  background: #eef9f5;
  font-size: .58rem;
  font-weight: 750;
}

.journey-chip-grid--challenges > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(224, 159, 50, .2);
  color: #795418;
  background: #fff5d9;
}

.journey-chip-grid--challenges small {
  color: #9a702c;
  font-size: .52rem;
}

@media (max-width: 980px) {
  body.terminal-view .event-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.terminal-view .event-line {
    grid-template-columns: 145px 16px 40px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .event-console__actions a {
    padding: 5px 7px;
  }

  .event-console__actions a span + * {
    display: none;
  }

  body.terminal-view main {
    width: min(100% - 16px, 1180px);
    margin-top: 10px;
  }

  body.terminal-view .event-console {
    min-height: calc(100vh - 175px);
    border-radius: 15px;
  }

  body.terminal-view .event-console__topbar,
  body.terminal-view .event-toolbar,
  body.terminal-view .event-console__summary,
  body.terminal-view .event-stream {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.terminal-view .event-toolbar {
    grid-template-columns: 1fr;
  }

  body.terminal-view .event-line {
    grid-template-columns: 14px 36px minmax(0, 1fr);
  }

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

/* Collapsible event journal and instanced player positions */
.events-panel {
  overflow: hidden;
  padding: 0;
}

.events-panel__heading {
  align-items: center;
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
}

.events-panel[open] > .events-panel__heading {
  border-bottom: 1px solid rgba(20, 73, 74, .1);
  background: rgba(255, 255, 255, .46);
}

.events-panel__summary-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.events-disclosure__content {
  padding: clamp(16px, 2.4vw, 26px);
}

.global-player-legend-row--uncharted {
  border-style: dashed;
  background: linear-gradient(110deg, color-mix(in srgb, var(--marker-color) 7%, #fff), rgba(248, 251, 249, .9));
}

.global-player-legend-row--uncharted .global-player-legend-row__marker {
  border: 2px dashed color-mix(in srgb, var(--marker-color) 65%, #fff);
  background: color-mix(in srgb, var(--marker-color) 76%, #29434d);
}

@media (max-width: 680px) {
  .events-panel__heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .events-panel__summary-meta {
    flex-wrap: wrap;
  }
}

/* Competitive player leaderboards */
#classements {
  scroll-margin-top: 92px;
}

.leaderboard-panel {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(237, 249, 242, .94));
}

.leaderboard-panel__heading {
  align-items: center;
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
}

.leaderboard-panel[open] > .leaderboard-panel__heading {
  border-bottom: 1px solid rgba(20, 73, 74, .1);
  background: rgba(255, 255, 255, .46);
}

.leaderboard-content {
  padding: clamp(16px, 2.4vw, 26px);
}

.leaderboard-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(155px, .7fr) minmax(170px, .8fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.leaderboard-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 850;
}

.leaderboard-toolbar input,
.leaderboard-toolbar select {
  width: 100%;
  min-height: 43px;
  border: 1px solid rgba(20, 73, 74, .14);
  border-radius: 13px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  font: 750 .79rem/1 "Nunito", sans-serif;
  outline: none;
}

.leaderboard-toolbar input:focus,
.leaderboard-toolbar select:focus {
  border-color: rgba(27, 142, 126, .5);
  box-shadow: 0 0 0 3px rgba(38, 157, 136, .12);
}

.leaderboard-search__field {
  position: relative;
}

.leaderboard-search__field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: #468279;
  transform: translateY(-50%);
  pointer-events: none;
}

.leaderboard-search__field input {
  padding-left: 37px;
}

.leaderboard-result-count {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 142, 126, .15);
  border-radius: 13px;
  padding: 0 13px;
  color: #176d70;
  background: rgba(222, 246, 235, .78);
  font-size: .73rem;
  font-weight: 900;
  white-space: nowrap;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}

.leaderboard-podium-card {
  display: grid;
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--player-color) 26%, rgba(20, 73, 74, .09));
  border-radius: 19px;
  padding: 14px 13px 13px;
  color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--player-color) 10%, #fff), rgba(255, 255, 255, .92));
  box-shadow: 0 10px 24px rgba(25, 67, 69, .08);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.leaderboard-podium-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--player-color);
  content: "";
}

.leaderboard-podium-card--1 {
  border-color: rgba(214, 158, 42, .35);
  box-shadow: 0 12px 28px rgba(181, 127, 27, .12);
}

.leaderboard-podium-card__rank {
  position: absolute;
  top: 8px;
  right: 10px;
  color: color-mix(in srgb, var(--player-color) 70%, var(--ink));
  font: 900 .68rem/1 "Baloo 2", sans-serif;
}

.leaderboard-podium-card__avatar,
.leaderboard-player__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--player-color);
  font-family: "Baloo 2", sans-serif;
  font-weight: 900;
}

.leaderboard-podium-card__avatar {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  box-shadow: 0 7px 15px color-mix(in srgb, var(--player-color) 20%, transparent);
}

.leaderboard-podium-card__identity,
.leaderboard-podium-card__score {
  display: grid;
  min-width: 0;
}

.leaderboard-podium-card__identity strong,
.leaderboard-podium-card__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-podium-card__identity strong {
  font: 850 .93rem/1.1 "Baloo 2", sans-serif;
}

.leaderboard-podium-card__identity small,
.leaderboard-podium-card__score small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .61rem;
}

.leaderboard-podium-card__score {
  padding-right: 6px;
  text-align: right;
}

.leaderboard-podium-card__score strong {
  color: color-mix(in srgb, var(--player-color) 75%, var(--ink));
  font: 900 1.15rem/1 "Baloo 2", sans-serif;
}

.leaderboard-podium-card > i,
.leaderboard-player > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8b4b1;
}

.leaderboard-podium-card > i {
  position: absolute;
  right: 10px;
  bottom: 9px;
}

.leaderboard-podium-card > i.is-online,
.leaderboard-player > i.is-online {
  background: #31c77f;
  box-shadow: 0 0 0 4px rgba(49, 199, 127, .12);
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(20, 73, 74, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 9px 25px rgba(25, 67, 69, .055);
}

.leaderboard-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid rgba(20, 73, 74, .075);
  padding: 11px 13px;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-table thead th {
  color: #55706d;
  background: #f0f8f3;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.leaderboard-table thead th:nth-child(2),
.leaderboard-table tbody th {
  text-align: left;
}

.leaderboard-table thead button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.leaderboard-table thead th.is-sorted,
.leaderboard-table td.is-sorted {
  color: #176d70;
  background: rgba(225, 246, 237, .48);
  font-weight: 900;
}

.leaderboard-table tbody tr:last-child > * {
  border-bottom: 0;
}

.leaderboard-table tbody tr {
  transition: background-color .15s ease;
}

.leaderboard-table tbody tr:hover {
  background: color-mix(in srgb, var(--player-color) 5%, #fff);
}

.leaderboard-rank-head,
.leaderboard-rank {
  width: 62px;
  text-align: center !important;
}

.leaderboard-rank strong {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  place-items: center;
  color: color-mix(in srgb, var(--player-color) 78%, var(--ink));
  background: color-mix(in srgb, var(--player-color) 10%, #fff);
  font: 900 .78rem/1 "Baloo 2", sans-serif;
}

.leaderboard-player {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 9px;
}

.leaderboard-player__avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: .72rem;
}

.leaderboard-player > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.leaderboard-player strong {
  color: var(--ink);
  font-size: .78rem;
}

.leaderboard-player small {
  overflow: hidden;
  max-width: 160px;
  margin-top: 2px;
  color: var(--muted);
  font-size: .61rem;
  text-overflow: ellipsis;
}

.leaderboard-open {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 10px;
  padding: 0 10px;
  color: #176d70;
  background: rgba(218, 244, 232, .78);
  font-size: .68rem;
  font-weight: 900;
  text-decoration: none;
}

.leaderboard-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px !important;
  color: var(--muted);
  text-align: center !important;
}

@media (hover: hover) and (pointer: fine) {
  .leaderboard-podium-card:hover {
    box-shadow: 0 16px 32px rgba(25, 67, 69, .14);
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .leaderboard-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .leaderboard-result-count {
    justify-self: stretch;
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #classements {
    scroll-margin-top: 126px;
  }

  .leaderboard-panel__heading {
    display: grid;
    gap: 10px;
  }

  .leaderboard-panel__heading .disclosure__toggle {
    justify-self: start;
  }

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

  .leaderboard-podium-card {
    min-height: 80px;
  }

  .leaderboard-table-wrap {
    margin-right: -10px;
    border-radius: 15px 0 0 15px;
  }
}

@media (max-width: 720px) {
  .site-brand > span:last-child {
    display: none;
  }

  .site-header__telemetry {
    grid-template-columns: auto auto auto minmax(72px, 1fr);
  }

  .site-header__players-total,
  .site-header__players-total b {
    font-size: 8px;
  }

  .site-header__players-label {
    display: none;
  }

  .site-nav .site-nav__discord {
    display: none;
  }
}

/* Public Palpagos event journal */
.events-panel {
  overflow: hidden;
  scroll-margin-top: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(237, 249, 245, .92)),
    var(--canvas);
}

.events-panel__heading {
  align-items: end;
}

.event-console {
  overflow: hidden;
  border: 1px solid rgba(17, 67, 76, .18);
  border-radius: 24px;
  background: #10222d;
  box-shadow: 0 20px 44px rgba(10, 42, 50, .16);
  color: #d9eee9;
}

.event-console__topbar {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid rgba(153, 225, 205, .12);
  padding: 0 18px;
  background: linear-gradient(90deg, #173642, #15303b);
  color: rgba(220, 241, 236, .68);
  font-family: "Nunito", sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
}

.event-console__topbar strong {
  overflow: hidden;
  color: #a8e8d3;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-console__topbar > span:last-child {
  border: 1px solid rgba(117, 218, 186, .2);
  border-radius: 999px;
  padding: 4px 9px;
  color: #8eddbf;
  text-transform: uppercase;
}

.event-console__lights {
  display: flex;
  gap: 7px;
}

.event-console__lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef775e;
  box-shadow: 0 0 0 3px rgba(239, 119, 94, .08);
}

.event-console__lights i:nth-child(2) {
  background: #edba4c;
}

.event-console__lights i:nth-child(3) {
  background: #41c88b;
}

.event-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(150px, 1fr)) minmax(125px, .7fr);
  gap: 12px;
  border-bottom: 1px solid rgba(153, 225, 205, .1);
  padding: 17px 18px;
  background: rgba(255, 255, 255, .025);
}

.event-toolbar label {
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
}

.event-toolbar label > span:first-child {
  color: rgba(212, 237, 231, .63);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.event-toolbar input,
.event-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(159, 222, 207, .16);
  border-radius: 12px;
  outline: 0;
  padding: 9px 12px;
  background: #18323d;
  color: #e8f6f2;
  font: 700 .78rem "Nunito", sans-serif;
}

.event-toolbar select {
  color-scheme: dark;
}

.event-toolbar input::placeholder {
  color: rgba(213, 237, 231, .4);
}

.event-toolbar input:focus,
.event-toolbar select:focus-visible {
  border-color: rgba(77, 206, 166, .75);
  box-shadow: 0 0 0 3px rgba(77, 206, 166, .12);
}

.event-search__field {
  position: relative;
  display: block;
}

.event-search__field svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 18px;
  fill: #78bca9;
  transform: translateY(-50%);
}

.event-search__field input {
  padding-left: 40px;
}

.event-console__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(153, 225, 205, .08);
  padding: 8px 18px;
  color: rgba(208, 235, 228, .62);
  font-size: .7rem;
  font-weight: 700;
}

.event-console__summary > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.event-console__summary i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45d294;
  box-shadow: 0 0 10px rgba(69, 210, 148, .65);
}

.event-session-highlight {
  display: inline-flex;
  min-width: 0;
  max-width: min(52vw, 540px);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(153, 225, 205, .18);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(23, 50, 48, .72);
  color: rgba(234, 249, 244, .9);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-session-highlight[hidden] {
  display: none;
}

.event-session-highlight::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--event-session-accent, #39b9c5);
  box-shadow: 0 0 10px rgba(77, 206, 166, .45);
}

.event-session-highlight[data-type="join"] {
  --event-session-accent: #34c98a;
}

.event-session-highlight[data-type="leave"] {
  --event-session-accent: #ef8c5b;
}

.event-session-highlight[data-type="reconnect"] {
  --event-session-accent: #39b9c5;
}

.event-stream {
  position: relative;
  min-height: 180px;
  margin: 0;
  padding: 4px 18px;
  list-style: none;
  background:
    linear-gradient(rgba(159, 223, 207, .025) 1px, transparent 1px);
  background-size: 100% 44px;
}

.event-line {
  --event-accent: #45c58e;
  --event-type-accent: var(--event-accent);
  display: grid;
  grid-template-columns: 108px 20px 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 86px;
  border-bottom: 1px solid rgba(158, 219, 205, .09);
  padding: 12px 0;
}

.event-line--player {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--event-accent) 11%, transparent), transparent 46%);
}

.event-line:last-child {
  border-bottom: 0;
}

.event-line time {
  display: grid;
  justify-items: end;
  line-height: 1.15;
}

.event-line time strong {
  color: #d8eee8;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .76rem;
}

.event-line time span {
  margin-top: 4px;
  color: rgba(201, 229, 222, .48);
  font-size: .62rem;
  text-transform: capitalize;
}

.event-line__rail {
  align-self: stretch;
  position: relative;
  display: grid;
  place-items: center;
}

.event-line__rail::before {
  position: absolute;
  top: -13px;
  bottom: -13px;
  left: 50%;
  width: 1px;
  background: rgba(160, 221, 207, .14);
  content: "";
}

.event-line:first-child .event-line__rail::before {
  top: 50%;
}

.event-line:last-child .event-line__rail::before {
  bottom: 50%;
}

.event-line__rail i {
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #10222d;
  border-radius: 50%;
  background: var(--event-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-accent) 24%, transparent), 0 0 14px color-mix(in srgb, var(--event-accent) 35%, transparent);
}

.event-line__visual {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--event-accent) 28%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--event-accent) 12%, #17303b);
}

.event-line__portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .2));
}

.event-line__token {
  color: color-mix(in srgb, var(--event-accent) 78%, white);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .68rem;
  font-weight: 900;
}

.event-line__content {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.event-line__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.event-line__meta b,
.event-line__meta em {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .57rem;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.event-line__meta b {
  color: color-mix(in srgb, var(--event-type-accent) 76%, white);
  background: color-mix(in srgb, var(--event-type-accent) 15%, transparent);
}

.event-line__meta em {
  overflow: hidden;
  max-width: 210px;
  color: rgba(220, 241, 236, .68);
  background: rgba(255, 255, 255, .05);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-line__meta .event-line__player,
.event-line__meta .event-line__guild {
  color: color-mix(in srgb, var(--event-accent) 82%, white);
  background: color-mix(in srgb, var(--event-accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-accent) 28%, transparent);
}

.event-line__meta .event-line__confidence {
  max-width: none;
  color: #ffe4a3;
  background: rgba(239, 184, 66, .14);
  box-shadow: inset 0 0 0 1px rgba(239, 184, 66, .35);
}

.event-line__content > strong {
  overflow: hidden;
  color: #f0faf7;
  font: 800 .88rem "Nunito", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-line__content > .event-line__body,
.event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(211, 235, 229, .64);
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-stream__empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: rgba(211, 235, 229, .55);
  font-size: .78rem;
  text-align: center;
}

.event-pagination {
  display: grid;
  grid-template-columns: minmax(104px, max-content) minmax(0, 1fr) minmax(104px, max-content);
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 66px;
  border-top: 1px solid rgba(153, 225, 205, .1);
  padding: 10px 18px;
  background: rgba(255, 255, 255, .025);
}

.event-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 5px;
}

.event-pagination button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(159, 222, 207, .16);
  border-radius: 11px;
  padding: 7px 11px;
  background: #193541;
  color: #d8eee8;
  font: 800 .7rem "Nunito", sans-serif;
  cursor: pointer;
}

.event-pagination button:hover:not(:disabled),
.event-pagination button:focus-visible {
  border-color: #56cba4;
  background: #205064;
}

.event-pagination button.is-current {
  border-color: #56cba4;
  background: #39a982;
  color: #fff;
  box-shadow: 0 5px 15px rgba(57, 169, 130, .24);
}

.event-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.event-pagination > button:first-child,
.event-pagination > button:last-child {
  min-width: 104px;
}

.event-pagination > button:first-child {
  justify-self: start;
}

.event-pagination > button:last-child {
  justify-self: end;
}

.event-pagination__pages > span {
  padding: 0 3px;
  color: rgba(211, 235, 229, .4);
}

@media (max-width: 980px) {
  .event-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .event-console {
    margin-inline: -8px;
    border-radius: 18px;
  }

  .event-console__topbar {
    grid-template-columns: 58px minmax(0, 1fr);
    padding-inline: 13px;
  }

  .event-console__topbar > span:last-child {
    display: none;
  }

  .event-toolbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .event-search {
    grid-column: auto;
  }

  .event-console__summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }

  .event-session-highlight {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .event-line {
    grid-template-columns: 18px 42px minmax(0, 1fr);
    gap: 9px;
    padding-block: 13px;
  }

  .event-line time {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    justify-self: start;
    gap: 6px;
    margin-top: 3px;
  }

  .event-line time strong,
  .event-line time span {
    margin: 0;
    font-size: .58rem;
  }

  .event-line__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .event-line__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
  }

  .event-line__content {
    grid-column: 3;
    grid-row: 1;
  }

  .event-line__content > strong,
  .event-line__content > .event-line__body,
  .event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
    overflow: visible;
    white-space: normal;
  }

  .event-line__content > strong {
    font-size: .8rem;
  }

  .event-line__content > .event-line__body,
  .event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
    font-size: .68rem;
  }

  .event-stream {
    padding-inline: 12px;
  }

  .event-pagination {
    grid-template-columns: minmax(86px, max-content) minmax(0, 1fr) minmax(86px, max-content);
    justify-content: space-between;
    gap: 5px;
    padding-inline: 10px;
  }

  .event-pagination > button:first-child,
  .event-pagination > button:last-child,
  body.terminal-view .event-pagination > button:first-child,
  body.terminal-view .event-pagination > button:last-child {
    min-width: 86px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .event-pagination__pages button:not(.is-current),
  .event-pagination__pages > span {
    display: none;
  }
}

/* Layout rhythm and collapsible chronicles */
main > .panel + .panel {
  margin-top: 16px;
}

.save-panel {
  margin-top: 16px;
}

.save-panel > .save-summary {
  margin-top: 14px;
}

.section-disclosure {
  margin-top: 14px;
  border: 1px solid rgba(20, 73, 74, .09);
  border-radius: 16px;
  padding: 12px;
  background: rgba(247, 252, 247, .7);
  box-shadow: 0 7px 20px rgba(25, 67, 69, .055);
}

.section-disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  padding: 7px 7px 7px 10px;
}

.section-disclosure__summary > span:first-child {
  min-width: 0;
}

.section-disclosure__summary strong,
.section-disclosure__summary small {
  display: block;
}

.section-disclosure__summary strong {
  color: var(--ink);
  font-size: .94rem;
}

.section-disclosure__summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}

.section-disclosure[open] > .section-disclosure__summary {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .5);
}

.stats-disclosure .stats-note {
  margin-top: 0;
}

.chronicles-content > .save-intro {
  margin-bottom: 0;
}

.disclosure > summary {
  list-style: none;
}

.disclosure > summary::-webkit-details-marker {
  display: none;
}

.disclosure__summary {
  cursor: pointer;
  user-select: none;
}

.disclosure__summary:focus-visible {
  border-radius: 14px;
  outline: 3px solid rgba(37, 157, 185, .34);
  outline-offset: 4px;
}

.disclosure--chronicles > .disclosure__summary {
  margin-bottom: 0;
}

.disclosure--chronicles[open] > .disclosure__summary {
  margin-bottom: 16px;
}

.disclosure__summary-side {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.disclosure__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(21, 107, 105, .11);
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
  color: #176d70;
  background: rgba(226, 246, 237, .82);
  font-size: .63rem;
  font-weight: 850;
  line-height: 1;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.section-disclosure .disclosure__toggle {
  min-height: 42px;
  gap: 8px;
  padding: 10px 13px 10px 15px;
  font-size: .76rem;
}

.section-disclosure .disclosure__toggle svg {
  width: 20px;
  height: 20px;
}

.disclosure__toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform .2s ease;
}

.disclosure__summary:hover .disclosure__toggle {
  border-color: rgba(21, 107, 105, .24);
  background: rgba(214, 243, 230, .96);
  transform: translateY(-1px);
}

.disclosure[open] > .disclosure__summary .disclosure__toggle svg {
  transform: rotate(180deg);
}

.disclosure[open] > .disclosure__content {
  animation: disclosure-reveal .24s ease both;
}

@keyframes disclosure-reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.save-intro {
  margin-bottom: 14px;
}

.save-summary {
  margin-bottom: 0;
}

.archipelago-overview {
  margin: 16px 0 20px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

details.archipelago-overview:not([open]) {
  border-color: rgba(20, 73, 74, .08);
  background: rgba(245, 251, 245, .72);
  box-shadow: 0 7px 20px rgba(25, 67, 69, .065);
}

.archipelago-overview__heading {
  margin-bottom: 0;
}

.archipelago-overview[open] > .archipelago-overview__heading {
  margin-bottom: 14px;
}

.map-panel {
  margin-bottom: 24px;
}

.map-panel .archipelago-overview__heading {
  margin-bottom: 16px;
}

.map-panel .archipelago-overview__heading h2 {
  margin-top: 3px;
}

.disclosure__summary-side--map {
  max-width: 455px;
}

.disclosure__summary-side--map > p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  text-align: right;
}

.adventurer-grid {
  gap: 14px;
}

.metric-card,
.adventurer-card,
.panel {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .metric-card:hover {
    border-color: rgba(37, 157, 185, .18);
    box-shadow: 0 10px 26px rgba(29, 57, 76, .11);
    transform: translateY(-1px);
  }
}

@media (min-width: 981px) {
  .adventurer-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }

  .back-to-top {
    right: max(18px, calc((100vw - 1180px) / 2 - 58px));
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .adventurer-card:last-child:nth-child(2n + 1) {
    width: calc(50% - 6px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  main > .panel + .panel,
  .save-panel {
    margin-top: 12px;
  }

  .disclosure__summary-side {
    width: 100%;
    align-items: flex-start;
  }

  .disclosure--chronicles > .disclosure__summary,
  .archipelago-overview__heading {
    display: grid;
    gap: 10px;
  }

  .disclosure__summary-side--map {
    max-width: none;
  }

  .disclosure__summary-side--map > p {
    text-align: left;
  }

  .archipelago-overview {
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .archipelago-overview[open] > .archipelago-overview__heading {
    margin-bottom: 12px;
  }
}

@media (max-width: 500px) {
  .disclosure--chronicles[open] > .disclosure__summary {
    margin-bottom: 14px;
  }

  .disclosure__toggle {
    min-height: 32px;
    padding-right: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disclosure[open] > .disclosure__content {
    animation: none;
  }

  .disclosure__toggle,
  .disclosure__toggle svg,
  .metric-card,
  .adventurer-card,
  .panel {
    transition-duration: .01ms !important;
  }
}

/* Dedicated player pages */
.expedition-dialog {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: #eaf4ed;
}

.expedition-dialog::backdrop {
  background: #102b35;
}

.expedition-dialog__shell {
  max-height: none;
  height: 100dvh;
  background:
    linear-gradient(135deg, rgba(91, 199, 165, .13), transparent 34%),
    linear-gradient(315deg, rgba(245, 195, 77, .13), transparent 38%),
    repeating-linear-gradient(112deg, transparent 0 18px, rgba(17, 78, 74, .025) 18px 19px),
    #f3f5e9;
}

.expedition-dialog__header {
  position: relative;
  top: auto;
  min-height: 176px;
  padding: 26px max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 40, 50, .96), rgba(12, 91, 88, .9) 58%, rgba(37, 146, 121, .82)),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 23px);
  box-shadow: 0 16px 40px rgba(11, 45, 53, .16);
}

.expedition-dialog__header::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 260px;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(245, 195, 77, .14));
  clip-path: polygon(38% 0, 100% 0, 72% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.player-page-heading {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 18px;
}

.player-page-back {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}

.player-page-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

.player-page-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-page-emblem {
  display: flex;
  position: relative;
  width: 168px;
  height: 76px;
  align-items: center;
  padding-left: 18px;
}

.player-emblem-pal {
  width: 62px;
  height: 62px;
  margin-left: -18px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  object-fit: contain;
  background: linear-gradient(145deg, #eafff4, #a9deca);
  filter: drop-shadow(0 9px 12px rgba(0, 22, 28, .28));
}

.player-emblem-pal:first-child {
  z-index: 2;
  width: 76px;
  height: 76px;
}

.player-emblem-fallback {
  display: grid;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  place-items: center;
  color: #0e5455;
  background: #d5f6e7;
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
}

.expedition-dialog__header .eyebrow {
  color: #91e3cf;
}

.expedition-dialog__header h2 {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: .92;
}

.player-page-meta {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  font-weight: 700;
}

.player-page-updated {
  margin: 5px 0 0;
  color: rgba(219, 255, 239, .7);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.45;
}

.expedition-dialog__header .dialog-actions {
  position: relative;
  z-index: 2;
  align-self: flex-start;
}

.expedition-dialog__header .dialog-share,
.expedition-dialog__header .dialog-export,
.expedition-dialog__header .dialog-close {
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.detail-tabs {
  top: 0;
  z-index: 10;
  gap: 8px;
  min-height: 64px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(248, 247, 235, .94);
  box-shadow: 0 7px 24px rgba(24, 58, 63, .09);
}

.detail-tab {
  border: 1px solid rgba(17, 78, 74, .09);
  padding: 9px 14px;
  background: rgba(255, 255, 255, .74);
}

.detail-tab.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, #126b6d, #2a9c7d);
  box-shadow: 0 8px 18px rgba(20, 105, 102, .2);
}

.detail-panel {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.detail-section-heading h3,
.detail-page-intro h3,
.inventory-section h3 {
  margin: 3px 0 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  letter-spacing: -.025em;
}

.detail-section-heading h3,
.detail-page-intro h3 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.detail-section-heading--small {
  margin-bottom: 8px;
}

.detail-section-heading--small h3 {
  font-size: 1rem;
}

.profile-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: start;
  gap: 18px;
}

.profile-column,
.world-map {
  border: 1px solid rgba(20, 73, 74, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 38px rgba(25, 67, 69, .1);
}

.profile-column {
  padding: 20px;
}

.profile-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.profile-stat-grid article {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(233, 247, 238, .72));
}

.profile-stat-grid article::after {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 72px;
  height: 72px;
  border: 14px solid rgba(31, 142, 113, .07);
  border-radius: 42% 58% 50% 46%;
  content: "";
  transform: rotate(18deg);
}

.profile-stat-grid strong {
  margin-top: 7px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.65rem;
  line-height: .9;
}

.profile-stat-grid small {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 700;
}

.profile-stat--level { border-top: 3px solid #ef9b47 !important; }
.profile-stat--xp { border-top: 3px solid #4b9cc9 !important; }
.profile-stat--points { border-top: 3px solid #8c72cf !important; }
.profile-stat--health { border-top: 3px solid #e96f69 !important; }
.profile-stat--shield { border-top: 3px solid #5caad9 !important; }
.profile-stat--pals { border-top: 3px solid #39ad78 !important; }

.allocation-block {
  margin-top: 18px;
  border-top: 1px solid rgba(20, 73, 74, .08);
  padding-top: 14px;
}

.allocation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.allocation-row {
  min-width: 0;
}

.allocation-row > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.allocation-row b,
.allocation-row small {
  font-size: .67rem;
}

.allocation-row small {
  color: var(--muted);
}

.allocation-row > i,
.pal-talent-score > i {
  display: block;
  overflow: hidden;
  height: 5px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(24, 41, 68, .07);
}

.allocation-row > i > em,
.pal-talent-score > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34b27c, #59c9a5);
}

.profile-shortcuts {
  margin-top: 18px;
}

.profile-shortcuts button {
  min-height: 82px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #edf8f1);
}

.world-map {
  min-height: 0;
  aspect-ratio: 1.05 / 1;
}

.world-map img {
  min-height: 0;
  object-fit: cover;
}

.detail-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.detail-page-intro > div:first-child {
  max-width: 620px;
}

.detail-page-intro p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.collection-overview,
.inventory-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.collection-overview span,
.inventory-overview span {
  border: 1px solid rgba(20, 73, 74, .09);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .74);
  font-size: .65rem;
  font-weight: 750;
}

.collection-overview strong,
.inventory-overview strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: .85rem;
}

.collection-toolbar,
.inventory-toolbar {
  position: sticky;
  z-index: 8;
  top: 76px;
  border: 1px solid rgba(20, 73, 74, .09);
  border-radius: 18px;
  padding: 11px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(25, 67, 69, .09);
  backdrop-filter: blur(12px);
}

.collection-toolbar {
  grid-template-columns: minmax(260px, 1fr) 180px 190px auto;
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 230px;
  align-items: end;
  gap: 9px;
  margin-bottom: 18px;
}

.inventory-toolbar label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.inventory-toolbar input,
.inventory-toolbar select {
  width: 100%;
  border: 1px solid rgba(24, 41, 68, .12);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: .78rem;
}

.collection-toolbar input:focus,
.collection-toolbar select:focus,
.inventory-toolbar input:focus,
.inventory-toolbar select:focus {
  border-color: #2ca783;
  outline: 3px solid rgba(44, 167, 131, .14);
}

.pal-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.pal-detail-card {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 220px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 9px 24px rgba(25, 67, 69, .08);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pal-detail-card:hover {
  border-color: rgba(32, 151, 116, .28);
  box-shadow: 0 14px 30px rgba(25, 67, 69, .13);
  transform: translateY(-2px);
}

.pal-detail-card__portrait {
  min-height: 220px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .2), transparent 54%),
    radial-gradient(circle at 50% 37%, #e9fff2 0 25%, #b9dfd0 72%);
}

.pal-portrait {
  width: 88px;
  height: 88px;
}

.pal-detail-card__body {
  padding: 13px 12px;
}

.pal-talent-score,
.pal-progression {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
}

.pal-progression {
  margin-top: 8px;
}

.pal-progression > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pal-progression small {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
}

.pal-progression strong {
  color: #16765c;
  font-size: .68rem;
}

.pal-talent-score b {
  color: #16765c;
  font-size: .72rem;
}

.pal-talent-score > i,
.pal-progression > i {
  grid-column: 1 / -1;
  margin-top: 0;
}

.pal-progression > i {
  display: block;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(24, 41, 68, .07);
}

.pal-progression > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f86cf, #59c9a5);
}

.talent-bars span {
  font-size: .56rem;
}

.collection-load-more {
  display: block;
  min-width: 220px;
  margin: 20px auto 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(120deg, #126b6d, #2aa17e);
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 105, 102, .2);
}

.collection-load-more[hidden] {
  display: none;
}

.inventory-section {
  border: 1px solid rgba(20, 73, 74, .09);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(25, 67, 69, .07);
}

.inventory-section > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory-section__index {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  place-items: center;
  color: #17735f;
  background: rgba(52, 178, 124, .13);
  font-size: .6rem;
  font-weight: 900;
}

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

.inventory-item {
  min-height: 72px;
  border-left-width: 3px;
  background: rgba(255, 255, 255, .9);
  transition: transform .16s ease, box-shadow .16s ease;
}

.inventory-item:hover {
  box-shadow: 0 8px 18px rgba(25, 67, 69, .1);
  transform: translateY(-1px);
}

.detail-empty--large {
  min-height: 140px;
  display: grid;
  place-items: center;
}

@media (max-width: 1080px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .world-map {
    aspect-ratio: 16 / 8.5;
  }

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

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

@media (min-width: 1081px) {
  .profile-layout > .world-map {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .expedition-dialog {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
  }

  .expedition-dialog__shell {
    max-height: none;
    height: 100dvh;
  }

  .expedition-dialog__header {
    min-height: 160px;
    padding: 16px;
  }

  .player-page-heading {
    gap: 14px;
  }

  .player-page-identity {
    gap: 11px;
  }

  .player-page-emblem {
    width: 126px;
    height: 62px;
    padding-left: 14px;
  }

  .player-emblem-pal {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .player-emblem-pal:first-child {
    width: 62px;
    height: 62px;
  }

  .expedition-dialog__header h2 {
    font-size: 2.15rem;
  }

  .player-page-meta {
    max-width: 220px;
    font-size: .66rem;
  }

  .detail-tabs {
    min-height: 58px;
    padding: 9px 12px;
  }

  .detail-tab {
    padding: 8px 10px;
  }

  .detail-panel {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .profile-column {
    padding: 14px;
  }

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

  .profile-stat-grid article {
    min-height: 102px;
    padding: 12px;
  }

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

  .world-map {
    aspect-ratio: 1.1 / 1;
  }

  .detail-page-intro {
    display: grid;
    gap: 13px;
  }

  .collection-overview,
  .inventory-overview {
    justify-content: flex-start;
  }

  .collection-toolbar,
  .inventory-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .pal-collection-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 500px) {
  .expedition-dialog__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: auto;
  }

  .expedition-dialog__header .dialog-actions {
    display: grid;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
    width: 100%;
  }

  .dialog-share,
  .dialog-export {
    max-width: none;
    padding-inline: 9px;
  }

  .player-page-back {
    padding-right: 11px;
  }

  .player-page-emblem {
    width: 108px;
  }

  .player-page-meta {
    max-width: 190px;
  }

  .detail-tab > span {
    display: none;
  }

  .detail-tab {
    font-size: .69rem;
  }

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

  .profile-shortcuts button > b {
    display: none;
  }

  .shortcut-preview {
    width: 68px;
  }

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

  .pal-detail-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }
}

/* Player metrics and global expedition map */
.archipelago-overview {
  margin: 20px 0 24px;
  border: 1px solid rgba(20, 73, 74, .1);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(225, 243, 233, .74)),
    repeating-linear-gradient(35deg, transparent 0 9px, rgba(32, 112, 89, .035) 9px 10px);
  box-shadow: var(--shadow-soft);
}

.archipelago-overview__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.archipelago-overview__heading h3,
.archipelago-overview__heading p {
  margin: 0;
}

.archipelago-overview__heading h3 {
  margin-top: 3px;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.archipelago-overview__heading > p {
  max-width: 440px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
  text-align: right;
}

.archipelago-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 14px;
}

.archipelago-map {
  overflow: hidden;
  position: relative;
  margin: 0;
  border: 1px solid rgba(103, 206, 218, .18);
  border-radius: 19px;
  background: #081a23;
  box-shadow: inset 0 0 50px rgba(41, 187, 174, .12);
}

.archipelago-map__viewport {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: grab;
  outline: 0;
  touch-action: none;
  user-select: none;
}

.archipelago-map__viewport:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(102, 239, 168, .82);
}

.archipelago-map__viewport.is-panning {
  cursor: grabbing;
}

.archipelago-map__scene {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.archipelago-map__scene > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.archipelago-map__markers {
  position: absolute;
  inset: 0;
}

.global-player-marker {
  display: grid;
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--marker-color);
  box-shadow: 0 5px 15px rgba(4, 22, 30, .42);
  text-decoration: none;
  transform: translate(-50%, -50%) scale(var(--map-inverse-scale, 1));
  transition: z-index .15s ease, transform .15s ease;
}

.global-player-marker > i {
  font-size: .58rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: -.02em;
}

.global-player-marker > strong {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 5px 7px;
  color: #fff;
  background: rgba(5, 28, 35, .9);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
  font-size: .66rem;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}

.global-player-marker:hover {
  z-index: 12;
  transform: translate(-50%, -50%) scale(calc(var(--map-inverse-scale, 1) * 1.12));
}

.global-player-marker:hover > strong {
  opacity: 1;
  transform: translate(-50%, 0);
}

.global-player-marker.is-online::after {
  position: absolute;
  inset: -8px;
  border: 2px solid #66efa8;
  border-radius: inherit;
  content: "";
  animation: map-player-pulse 2s ease-out infinite;
}

@keyframes map-player-pulse {
  0% { opacity: .85; transform: scale(.72); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

.archipelago-map figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 10px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .88);
  background: rgba(4, 28, 37, .78);
  font-size: .68rem;
  font-weight: 750;
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.archipelago-map__toolbar {
  display: flex;
  position: absolute;
  z-index: 20;
  top: 10px;
  right: 10px;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 4px;
  color: #fff;
  background: rgba(4, 28, 37, .82);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
  backdrop-filter: blur(9px);
}

.archipelago-map__toolbar button {
  display: grid;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.archipelago-map__toolbar button:hover:not(:disabled),
.archipelago-map__toolbar button:focus-visible {
  outline: 0;
  background: rgba(102, 239, 168, .25);
  transform: translateY(-1px);
}

.archipelago-map__toolbar button:disabled {
  opacity: .36;
  cursor: default;
}

.archipelago-map__toolbar button:last-child {
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0 9px 9px 0;
}

.archipelago-map__toolbar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.archipelago-map__toolbar output {
  min-width: 52px;
  font-size: .64rem;
  font-weight: 900;
  text-align: center;
}

.archipelago-legend {
  display: grid;
  gap: 7px;
}

.global-player-legend-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(20, 73, 74, .08);
  border-radius: 13px;
  padding: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.global-player-legend-row:hover,
.global-player-legend-row:focus-visible {
  border-color: var(--marker-color);
  outline: 0;
  transform: translateX(-2px);
}

.global-player-legend-row__marker {
  display: grid;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--marker-color);
  box-shadow: 0 3px 9px rgba(18, 47, 52, .18);
  font-size: .58rem;
  font-weight: 950;
}

.global-player-legend-row > span:nth-child(2) {
  min-width: 0;
}

.global-player-legend-row strong,
.global-player-legend-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-player-legend-row strong {
  font-size: .76rem;
}

.global-player-legend-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .58rem;
}

.global-player-legend-row > b {
  border-radius: 999px;
  padding: 4px 6px;
  color: var(--muted);
  background: rgba(24, 41, 68, .055);
  font-size: .52rem;
  white-space: nowrap;
}

.global-player-legend-row > b.is-online {
  color: #12683e;
  background: rgba(57, 190, 112, .15);
}

.player-kpi-groups {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.player-kpi-group + .player-kpi-group {
  border-top: 1px solid rgba(20, 73, 74, .09);
  padding-top: 17px;
}

.player-kpi-group > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.player-kpi-group > header span {
  color: #17736d;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.player-kpi-group > header h4,
.player-kpi-group > header p {
  margin: 0;
}

.player-kpi-group > header h4 {
  margin-top: 2px;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.player-kpi-group > header p {
  max-width: 300px;
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.4;
  text-align: right;
}

.player-kpi-group .profile-stat-grid {
  margin-top: 0;
}

.profile-stat-grid article {
  min-height: 104px;
}

.profile-stat-grid strong em {
  margin-left: 2px;
  font-family: "Nunito", sans-serif;
  font-size: .8rem;
  font-style: normal;
}

.profile-stat--hunger { border-top: 3px solid #e4ad3f !important; }
.profile-stat--bases { border-top: 3px solid #39ad78 !important; }
.profile-stat--camp { border-top: 3px solid #ef9b47 !important; }

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

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

.profile-stat-grid--activity strong {
  font-size: 1.25rem;
  line-height: 1.05;
}

.profile-stat--sessions { border-top: 3px solid #4b9cc9 !important; }
.profile-stat--playtime { border-top: 3px solid #8c72cf !important; }
.profile-stat--last-seen { border-top: 3px solid #39ad78 !important; }
.profile-stat--ping { border-top: 3px solid #ef9b47 !important; }

.player-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-milestone-grid article {
  display: flex;
  min-width: 0;
  border: 1px solid rgba(20, 73, 74, .08);
  border-radius: 13px;
  padding: 10px;
  flex-direction: column;
  background: rgba(245, 250, 244, .8);
}

.player-milestone-grid strong {
  color: #126b6d;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.player-milestone-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .57rem;
  font-weight: 750;
  line-height: 1.25;
}

.allocation-block .detail-section-heading--small p {
  max-width: 520px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.45;
}

.allocation-list {
  display: block;
}

.allocation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.allocation-summary span {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(24, 41, 68, .055);
  font-size: .62rem;
  font-weight: 750;
}

.allocation-summary strong {
  margin-right: 2px;
  color: var(--ink);
}

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

.attribute-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(20, 73, 74, .08);
  border-radius: 13px;
  padding: 9px 10px;
  background: rgba(248, 250, 246, .78);
}

.attribute-card > span {
  display: block;
  min-width: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.attribute-card b,
.attribute-card small {
  display: block;
}

.attribute-card b {
  color: var(--ink);
  font-size: .69rem;
}

.attribute-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .53rem;
  line-height: 1.25;
}

.attribute-card > strong {
  flex: 0 0 auto;
  min-width: 34px;
  color: #8a96a0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.1rem;
  text-align: right;
}

.attribute-card.is-invested {
  border-color: rgba(33, 157, 112, .2);
  background: rgba(224, 247, 235, .78);
}

.attribute-card.is-invested > strong {
  color: #16845c;
}

@media (max-width: 980px) {
  .archipelago-map-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .archipelago-overview {
    padding: 12px;
  }

  .archipelago-overview__heading,
  .player-kpi-group > header {
    display: block;
  }

  .archipelago-overview__heading > p,
  .player-kpi-group > header p {
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }

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

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

@media (max-width: 500px) {
  .archipelago-overview {
    margin-right: -2px;
    margin-left: -2px;
    border-radius: 19px;
  }

  .archipelago-legend {
    grid-template-columns: 1fr;
  }

  .global-player-marker {
    width: 29px;
    height: 29px;
  }

  .archipelago-map__toolbar {
    top: 7px;
    right: 7px;
  }

  .archipelago-map__toolbar button {
    width: 31px;
    height: 31px;
  }

  .archipelago-map__toolbar output {
    min-width: 45px;
  }

  .global-player-legend-row > b {
    display: none;
  }

  .section-disclosure__summary {
    display: grid;
    gap: 9px;
  }

  .section-disclosure__summary .disclosure__toggle {
    justify-self: start;
  }

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

/* Interaction and navigation polish */
html {
  background: var(--canvas);
  scrollbar-color: rgba(25, 128, 108, .58) rgba(19, 38, 66, .07);
  scrollbar-gutter: stable;
}

body,
.expedition-dialog__shell,
.stats-table-wrap,
.detail-tabs {
  overscroll-behavior: contain;
  scrollbar-color: rgba(25, 128, 108, .58) rgba(19, 38, 66, .07);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(19, 38, 66, .07);
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c9d88, #21788d) padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #35b28f, #258aa0) padding-box;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"] {
  touch-action: manipulation;
}

/* Player cards on the public home page */
.adventurer-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--card-accent) 20%, rgba(24, 41, 68, .08));
  border-radius: 25px;
  padding: 0 15px 15px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .96), color-mix(in srgb, var(--card-accent) 7%, #f0f8f2));
  box-shadow: 0 17px 38px rgba(25, 67, 69, .12);
}

.adventurer-card::after {
  display: none;
}

.adventurer-card__cover {
  overflow: hidden;
  position: relative;
  min-height: 145px;
  margin: 0 -15px 13px;
  border-radius: 24px 24px 18px 18px;
  padding: 17px 15px;
  color: #fff;
  background: var(--card-accent);
  background:
    linear-gradient(132deg,
      color-mix(in srgb, var(--card-accent) 72%, #12324b),
      color-mix(in srgb, var(--card-accent) 62%, #1fa184));
}

.adventurer-card__cover::before,
.adventurer-card__cover::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.adventurer-card__cover::before {
  top: -68px;
  right: -42px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, .09);
  border-radius: 42% 58% 50% 46%;
  transform: rotate(22deg);
}

.adventurer-card__cover::after {
  right: 12px;
  bottom: 12px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .34), transparent 55%);
}

.adventurer-card__identity {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 66px);
}

.adventurer-card__identity p,
.adventurer-card__identity h3 {
  margin: 0;
}

.adventurer-card__identity p {
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.adventurer-card__identity h3 {
  overflow-wrap: anywhere;
  margin-top: 2px;
  color: #fff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: .95;
  letter-spacing: -.025em;
  text-shadow: 0 2px 10px rgba(8, 31, 44, .22);
}

.adventurer-card__monogram {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px rgba(7, 30, 42, .16);
  backdrop-filter: blur(8px);
}

.adventurer-card__badges {
  display: flex;
  position: absolute;
  z-index: 3;
  bottom: 15px;
  left: 15px;
  gap: 6px;
}

.adventurer-card__cover .level-badge,
.adventurer-card__presence {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(7, 34, 47, .28);
  font-size: .6rem;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(7, 30, 42, .12);
  backdrop-filter: blur(8px);
}

.adventurer-card__presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.adventurer-card__presence::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  content: "";
}

.adventurer-card__presence.is-online::before {
  background: #7dffad;
  box-shadow: 0 0 0 4px rgba(125, 255, 173, .15);
}

.adventurer-card__portraits {
  display: flex;
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  justify-content: flex-end;
  padding-left: 12px;
}

.adventurer-card__pal {
  display: grid;
  width: 54px;
  height: 54px;
  margin-left: -15px;
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 18px;
  place-items: center;
  object-fit: contain;
  color: #155e63;
  background: linear-gradient(145deg, #f4fff9, #bce7d3);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 900;
  filter: drop-shadow(0 8px 10px rgba(5, 28, 39, .22));
}

.adventurer-card__pal:first-child {
  z-index: 2;
  width: 60px;
  height: 60px;
}

.adventurer-card__numbers {
  gap: 8px;
  margin: 0 0 13px;
}

.adventurer-card__numbers span {
  border: 1px solid color-mix(in srgb, var(--card-accent) 12%, rgba(24, 41, 68, .06));
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent) 6%, rgba(255, 255, 255, .9));
}

.adventurer-card__numbers strong {
  color: color-mix(in srgb, var(--card-accent) 72%, var(--ink));
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.2rem;
}

.adventurer-card .pal-favorites {
  min-height: 58px;
}

.adventurer-card .pal-favorites div {
  gap: 6px;
}

.adventurer-card .pal-favorites span,
.adventurer-card__progress span {
  border: 1px solid color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.adventurer-card__progress {
  margin-top: 12px;
  border-top-color: color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.adventurer-card__activity {
  border-top-color: color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.adventurer-card__activity > span {
  border-color: color-mix(in srgb, var(--card-accent) 12%, rgba(20, 73, 74, .04));
  background: color-mix(in srgb, var(--card-accent) 4%, rgba(255, 255, 255, .82));
}

.adventurer-card__open {
  min-height: 42px;
  border-radius: 14px;
  padding: 11px 13px;
  background: var(--card-accent);
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--card-accent) 78%, #12364f),
    color-mix(in srgb, var(--card-accent) 74%, #2eaf82));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .adventurer-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 35%, rgba(24, 41, 68, .08));
    box-shadow: 0 22px 46px rgba(25, 67, 69, .16);
    transform: translateY(-3px);
  }
}

.save-panel {
  scroll-margin-top: 18px;
}

.map-panel {
  scroll-margin-top: 18px;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  max-width: 820px;
}

.button {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  justify-content: flex-start;
  gap: 12px;
  min-height: 74px;
  border-radius: 20px;
  padding: 11px 12px;
  text-align: left;
  will-change: transform;
}

.button::before {
  position: absolute;
  z-index: -1;
  top: -34px;
  right: -32px;
  width: 104px;
  height: 104px;
  border: 22px solid currentColor;
  border-radius: 42% 58% 52% 48%;
  content: "";
  opacity: .075;
  transform: rotate(18deg);
  transition: transform .24s ease, opacity .24s ease;
}

.button:hover::before {
  opacity: .12;
  transform: rotate(34deg) scale(1.08);
}

.button__icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s ease, background-color .2s ease;
}

.button__icon svg,
.social-link svg,
.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.button__label {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.button__label strong,
.button__label small {
  display: block;
}

.button__label strong {
  font-size: .78rem;
}

.button__label small {
  margin-top: 3px;
  opacity: .76;
  font-size: .59rem;
  font-weight: 700;
}

.button__trail {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 10px;
  place-items: center;
  opacity: .58;
  transition: opacity .18s ease, transform .18s ease;
}

.button__trail svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.button__trail--external {
  align-self: center;
  font-size: .8rem;
}

.button--secondary {
  color: #155e63;
  background: linear-gradient(145deg, rgba(246, 255, 251, .98), rgba(220, 245, 232, .92));
  box-shadow: 0 12px 26px rgba(34, 116, 97, .13);
}

.button--secondary .button__icon {
  border-color: rgba(21, 94, 99, .1);
  background: rgba(35, 151, 116, .11);
}

.button--map {
  border-color: rgba(41, 119, 144, .16);
  color: #16566e;
  background: linear-gradient(145deg, rgba(244, 252, 255, .98), rgba(211, 237, 244, .92) 58%, rgba(228, 246, 221, .9));
  box-shadow: 0 12px 26px rgba(35, 107, 137, .14);
}

.button--map .button__icon {
  border-color: rgba(22, 86, 110, .11);
  background: rgba(42, 151, 166, .12);
}

.button:hover .button__icon {
  transform: rotate(-3deg) scale(1.04);
}

.button:hover .button__trail {
  opacity: .9;
  transform: translateX(2px);
}

.button:active,
.adventurer-card__open:active,
.collection-load-more:active,
.profile-shortcuts button:active,
.social-link:active,
.detail-tab:active,
.dialog-share:active,
.dialog-export:active,
.dialog-close:active,
.player-page-back:active {
  transform: translateY(0) scale(.975);
}

.adventurer-card__open,
.collection-load-more,
.profile-shortcuts button,
.social-link,
.detail-tab,
.dialog-share,
.dialog-export,
.dialog-close,
.player-page-back {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.adventurer-card__open::after,
.collection-load-more::after {
  display: inline-block;
  margin-left: 7px;
  content: "→";
  transition: transform .18s ease;
}

.adventurer-card__open:hover::after,
.collection-load-more:hover::after {
  transform: translateX(3px);
}

.adventurer-card__open:focus-visible,
.collection-load-more:focus-visible,
.profile-shortcuts button:focus-visible,
.detail-tab:focus-visible,
.dialog-share:focus-visible,
.dialog-export:focus-visible,
.dialog-close:focus-visible,
.player-page-back:focus-visible,
.social-link:focus-visible,
.global-player-legend-row:focus-visible {
  outline: 3px solid rgba(37, 157, 185, .36);
  outline-offset: 3px;
}

.profile-shortcuts button:hover {
  border-color: rgba(32, 151, 116, .28);
  box-shadow: 0 12px 26px rgba(25, 67, 69, .12);
  transform: translateY(-2px);
}

.detail-tabs {
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
}

.detail-tab {
  scroll-snap-align: start;
}

.detail-tab:hover:not(.is-active) {
  border-color: rgba(25, 128, 108, .2);
  color: #126b6d;
  background: rgba(224, 244, 235, .84);
}

.dialog-share:hover,
.dialog-export:hover,
.dialog-close:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.dialog-share.is-success,
.dialog-export.is-success {
  border-color: rgba(117, 242, 169, .52);
  color: #d9ffe9;
  background: rgba(48, 173, 100, .34);
}

.dialog-share.is-error,
.dialog-export.is-error {
  border-color: rgba(255, 165, 148, .55);
  color: #ffe5df;
  background: rgba(204, 70, 58, .34);
}

.pal-passives span[data-tooltip] {
  cursor: help;
}

.pal-passives span[data-tooltip]:focus-visible {
  outline: 2px solid rgba(44, 167, 131, .42);
  outline-offset: 2px;
}

.uptime-segment[data-tooltip] {
  cursor: crosshair;
  transition: filter .15s ease, transform .15s ease;
}

.uptime-segment[data-tooltip]:hover {
  z-index: 1;
  filter: brightness(1.08) saturate(1.12);
  transform: scaleY(1.12);
}

[data-tooltip] {
  cursor: help;
}

.context-tooltip {
  position: fixed;
  z-index: 2147483647;
  display: grid;
  gap: 4px;
  max-width: min(330px, calc(100vw - 16px));
  border: 1px solid rgba(151, 232, 214, .34);
  border-radius: 14px;
  padding: 10px 12px;
  color: #f2fffb;
  background:
    radial-gradient(circle at 12% 0, rgba(71, 219, 174, .2), transparent 42%),
    rgba(5, 31, 39, .97);
  box-shadow: 0 16px 42px rgba(4, 23, 31, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: .72rem;
  font-weight: 780;
  line-height: 1.42;
  pointer-events: none;
  animation: tooltip-in .14s ease both;
  backdrop-filter: blur(10px);
}

.context-tooltip[hidden] {
  display: none;
}

.context-tooltip__title {
  color: #9bf0dc;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.context-tooltip__body {
  color: #f2fffb;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateY(3px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.back-to-top {
  display: grid;
  position: fixed;
  z-index: 40;
  right: clamp(14px, 1.5vw, 22px);
  bottom: var(--back-bottom, 20px);
  width: 46px;
  height: 46px;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #176d70, #2eae7b);
  box-shadow: 0 12px 28px rgba(18, 83, 80, .26);
  cursor: pointer;
  pointer-events: none;
  transform: translateY(14px) scale(.9);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top.is-visible.is-near-footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.9);
}

.back-to-top:hover {
  box-shadow: 0 16px 34px rgba(18, 83, 80, .34);
  transform: translateY(-2px) scale(1.03);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(37, 157, 185, .38);
  outline-offset: 3px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px 24px;
  padding: 17px 18px;
}

.site-footer__brand {
  display: grid;
  line-height: 1.25;
}

.site-footer__brand strong {
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
}

.site-footer__brand span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .social-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 14px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 5px 14px rgba(25, 67, 69, .06);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.social-link > svg {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  padding: 5px;
}

.social-link--github > svg {
  color: #fff;
  background: #1e2936;
}

.social-link--discord > svg {
  color: #fff;
  background: #5865f2;
}

.social-link--top > svg {
  color: #146d67;
  background: rgba(44, 167, 131, .13);
}

.social-link span {
  display: grid;
  line-height: 1.05;
}

.social-link strong {
  color: var(--ink);
  font-size: .7rem;
}

.social-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .55rem;
}

.social-link > b {
  color: var(--muted);
  font-size: .68rem;
}

.social-link:hover {
  border-color: rgba(37, 157, 185, .24);
  background: #fff;
  box-shadow: 0 9px 20px rgba(25, 67, 69, .1);
  transform: translateY(-2px);
}

/* GitHub context page */
body.github-view main {
  margin-top: 22px;
  margin-bottom: 24px;
}

.github-page {
  display: grid;
  gap: 16px;
}

.github-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(231, 249, 241, .9)),
    var(--panel-cool);
}

.github-hero-panel h1,
.github-card h2,
.github-process h2,
.github-notes h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1;
}

.github-hero-panel h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.github-lede {
  max-width: 790px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.github-repo-link {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(37, 157, 185, .22);
  border-radius: 18px;
  padding: 16px;
  color: #e9fff8;
  background: linear-gradient(135deg, #10222d, #176d70 70%, #269d88);
  box-shadow: 0 18px 38px rgba(19, 66, 70, .22);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.github-repo-link:hover,
.github-repo-link:focus-visible {
  border-color: rgba(245, 195, 77, .55);
  box-shadow: 0 22px 46px rgba(19, 66, 70, .28);
  outline: 0;
  transform: translateY(-2px);
}

.github-repo-link > span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #10222d;
  background: rgba(255, 255, 255, .84);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.github-repo-link strong {
  font: 900 1.35rem/1.05 "Baloo 2", "Nunito", sans-serif;
}

.github-repo-link small {
  color: rgba(232, 255, 247, .75);
  font-weight: 800;
}

.github-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 16px;
}

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

.github-card {
  border: 1px solid rgba(24, 41, 68, .09);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 24px);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.github-card--dark {
  color: #d9eee9;
  background: #10222d;
  box-shadow: 0 18px 42px rgba(10, 42, 50, .18);
}

.github-card--dark h2,
.github-card--dark .eyebrow {
  color: #a8e8d3;
}

.github-card p,
.github-notes p {
  margin: 11px 0 0;
  color: var(--ink-soft);
}

.github-card--dark p,
.github-card--dark li {
  color: rgba(217, 238, 233, .82);
}

.github-check-list,
.github-tech-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.github-check-list li,
.github-tech-list li {
  border: 1px solid rgba(37, 157, 185, .13);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .58);
  color: var(--ink-soft);
  font-weight: 750;
}

.github-card--dark .github-check-list li {
  border-color: rgba(123, 225, 196, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(217, 238, 233, .86);
}

.github-process,
.github-notes {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(237, 249, 245, .92)),
    var(--canvas);
}

.github-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.github-steps li {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 150px;
  border: 1px solid rgba(37, 157, 185, .13);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, .68);
}

.github-steps strong {
  color: #176d70;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.github-steps span {
  color: var(--ink-soft);
  font-size: .78rem;
}

.github-page code {
  border-radius: 7px;
  padding: 2px 5px;
  color: #176d70;
  background: rgba(37, 157, 185, .09);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .9em;
}

@media (max-width: 980px) {
  .github-hero-panel,
  .github-grid,
  .github-grid--technical {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  body.github-view main {
    width: min(100% - 16px, 1180px);
    margin-top: 10px;
  }

  .github-hero-panel h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .github-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scrollbar-gutter: auto;
  }

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

  .button--discord {
    grid-column: 1 / -1;
  }

  .button {
    width: 100%;
  }

  .back-to-top {
    right: 12px;
    bottom: var(--back-bottom, 12px);
  }

  .site-footer {
    align-items: stretch;
  }

  .site-footer__links {
    flex: 1 1 100%;
  }

  .site-footer .social-link {
    flex: 1 1 180px;
  }
}

@media (max-width: 500px) {
  .hero__actions {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 68px;
  }

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

  .site-footer__links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .context-tooltip,
  .back-to-top,
  .button,
  .terminal-open-button,
  .terminal-open-button::before,
  .terminal-open-button::after,
  .terminal-open-button__icon,
  .social-link,
  .uptime-segment[data-tooltip] {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Final responsive overrides for the four-link hero and compact event journal. */
.hero__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-console__topbar {
  grid-template-columns: 90px minmax(0, 1fr);
}

.event-toolbar {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(165px, 1fr));
}

.event-console__summary {
  justify-content: flex-start;
}

.event-line {
  grid-template-columns: 170px 20px 46px minmax(0, 1fr);
}

.event-line time {
  justify-items: start;
}

.event-line time strong {
  white-space: nowrap;
}

.inventory-overview span {
  display: grid;
  align-content: center;
  min-height: 58px;
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .event-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero__actions,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .event-line {
    grid-template-columns: 18px 42px minmax(0, 1fr);
  }
}

@media (max-width: 500px) {
  .hero__actions,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact overview, explicit disclosures and denser public journal. */
.hero {
  padding-top: 8px;
  padding-bottom: 8px;
}

.hero__copy {
  min-height: 142px;
}

.hero .lede {
  max-width: 760px;
  margin-top: 8px;
  line-height: 1.45;
}

.uptime-inline {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, .72fr);
  gap: 14px;
  align-items: center;
  margin: 15px 0;
  border: 1px solid rgba(31, 126, 104, .13);
  border-radius: 15px;
  padding: 10px 12px;
  background: linear-gradient(105deg, rgba(235, 250, 242, .92), rgba(255, 255, 255, .76));
}

.uptime-inline__identity {
  display: flex;
  gap: 9px;
  align-items: center;
}

.uptime-inline__identity > span:last-child {
  display: grid;
  line-height: 1.12;
}

.uptime-inline__identity small {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.uptime-inline__identity strong {
  color: var(--ink);
  font-size: .76rem;
}

.uptime-inline__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3dca87;
  box-shadow: 0 0 0 5px rgba(61, 202, 135, .11), 0 0 12px rgba(61, 202, 135, .35);
}

.uptime-inline > p {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uptime-inline .uptime-bars {
  height: 24px;
  margin: 0;
}

.uptime-inline #uptime-state {
  min-width: 76px;
  padding: 6px 9px;
  font-size: .62rem;
  text-align: center;
}

.world-data__meta,
.bases-panel__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.bases-panel__heading {
  align-items: center;
}

.world-data__chevron,
.base-disclosure__chevron {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  padding: 3px;
  fill: #2d7367;
  background: rgba(38, 126, 108, .09);
  transition: transform .2s ease, background-color .2s ease;
}

.world-data[open] .world-data__chevron,
.base-disclosure[open] .base-disclosure__chevron {
  background: rgba(38, 126, 108, .16);
  transform: rotate(180deg);
}

.base-disclosure > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.base-disclosure > summary::-webkit-details-marker {
  display: none;
}

.base-disclosure > summary:focus-visible {
  border-radius: 14px;
  outline: 3px solid rgba(37, 157, 185, .28);
  outline-offset: 4px;
}

.base-disclosure:not([open]) > summary {
  margin-bottom: 0;
}

.base-disclosure__content {
  padding-top: 2px;
  animation: disclosure-reveal .22s ease both;
}

.bases-panel:has(.base-disclosure:not([open])) {
  min-height: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}

.save-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.save-summary span {
  display: grid;
  align-content: center;
  min-height: 58px;
  border-radius: 13px;
  padding: 8px 10px;
  font-size: .62rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.save-summary strong {
  margin: 0 0 2px;
  color: #175e55;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.18rem;
  line-height: 1;
}

.archipelago-map__toolbar .map-base-toggle {
  display: inline-flex;
  width: auto;
  min-width: 128px;
  gap: 6px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0 9px 9px 0;
  padding: 0 9px;
}

.map-base-toggle > span {
  color: #f2bd60;
  font-size: .9rem;
}

.map-base-toggle b {
  font-size: .57rem;
  white-space: nowrap;
}

.map-base-toggle small {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .52rem;
  font-weight: 900;
}

.archipelago-map__toolbar .map-base-toggle.is-active {
  background: rgba(229, 157, 62, .28);
}

.global-base-marker {
  width: 18px;
  height: 18px;
  border-width: 1px;
  border-radius: 5px;
  opacity: .9;
}

#events-state[data-state="live"] {
  border: 1px solid rgba(239, 113, 100, .24);
  border-radius: 999px;
  padding: 6px 10px;
  color: #176d70;
  background: linear-gradient(135deg, rgba(37, 157, 185, .15), rgba(239, 113, 100, .16));
  box-shadow: 0 6px 14px rgba(37, 157, 185, .08), inset 0 1px rgba(255, 255, 255, .55);
  font-weight: 850;
}

.event-console {
  border: 1px solid rgba(69, 184, 158, .25);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(10, 42, 50, .13), inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.event-console__topbar {
  min-height: 39px;
  padding: 0 14px;
}

.event-toolbar {
  gap: 9px;
  padding: 11px 14px;
}

.event-toolbar input,
.event-toolbar select {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.event-console__summary {
  min-height: 36px;
  padding: 6px 14px;
}

.event-stream {
  min-height: 120px;
  padding: 2px 14px;
  background-size: 100% 36px;
}

.event-line {
  grid-template-columns: 160px 16px 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 66px;
  padding: 8px 0;
}

.event-line__visual {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.event-line time strong {
  font-size: .68rem;
}

.event-line__content > strong {
  font-size: .8rem;
}

.event-line__content > .event-line__body,
.event-line__content > span:last-child:not(.event-line__meta):not(.event-line__body) {
  font-size: .68rem;
}

.event-line__meta b,
.event-line__meta em {
  padding: 2px 6px;
  font-size: .52rem;
}

.event-pagination {
  padding-top: 9px;
  padding-bottom: 9px;
}

@media (max-width: 980px) {
  .uptime-inline {
    grid-template-columns: auto 1fr;
  }

  .uptime-inline .uptime-bars {
    grid-column: 1 / -1;
  }

  .save-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-line {
    grid-template-columns: 132px 16px 38px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .hero__copy {
    min-height: 112px;
  }

  .hero .lede {
    font-size: .83rem;
  }

  .uptime-inline {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 10px;
  }

  .uptime-inline > p {
    grid-column: 1 / -1;
  }

  .uptime-inline .uptime-bars {
    grid-template-columns: repeat(auto-fit, minmax(2px, 1fr));
    gap: 2px;
    height: 12px;
    min-height: 12px;
    overflow: hidden;
  }

  .uptime-inline .uptime-bars .uptime-segment:nth-last-child(n + 46) {
    display: none;
  }

  .world-data__meta,
  .bases-panel__meta {
    width: 100%;
    justify-content: space-between;
  }

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

  .archipelago-map__toolbar .map-base-toggle {
    min-width: 38px;
    padding: 0 8px;
  }

  .map-base-toggle b {
    display: none;
  }

  .event-line {
    grid-template-columns: 14px 34px minmax(0, 1fr);
    min-height: 60px;
  }
}

/* Collapsible map and clearer camp markers. */
.map-panel > .archipelago-overview__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.map-panel > .archipelago-overview__heading::-webkit-details-marker {
  display: none;
}

.map-disclosure__chevron {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
  color: #2d7367;
  background: rgba(38, 126, 108, .09);
  transition: transform .2s ease, background-color .2s ease;
}

.map-disclosure__chevron svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.map-panel[open] .map-disclosure__chevron {
  background: rgba(38, 126, 108, .16);
  transform: rotate(180deg);
}

.map-panel[open] > .archipelago-overview__heading {
  margin-bottom: 16px;
}

.map-panel[open] > .map-disclosure__content {
  animation: disclosure-reveal .24s ease both;
}

.archipelago-map__toolbar .map-center-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.map-base-toggle > span {
  display: grid;
  place-items: center;
}

.map-base-toggle > span svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.global-base-marker {
  display: grid;
  z-index: 3;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  place-items: center;
  opacity: 1;
  background: linear-gradient(145deg, #f1b34f, #d47b27);
  box-shadow: 0 5px 13px rgba(55, 36, 18, .38);
  transform: translate(-50%, -50%) scale(var(--map-inverse-scale, 1));
}

.global-base-marker i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.global-base-marker i svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.global-base-marker__owner {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  max-width: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(7, 35, 42, .86);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .2);
  font-size: .48rem;
  font-weight: 850;
  line-height: 1.15;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
}

.global-base-marker strong {
  top: auto;
  bottom: calc(100% + 8px);
  display: none;
  gap: 2px;
  min-width: 145px;
  max-width: 230px;
  padding: 7px 9px;
  line-height: 1.25;
}

.global-base-marker strong b,
.global-base-marker strong small {
  display: block;
}

.global-base-marker strong b {
  font-size: .62rem;
}

.global-base-marker strong small {
  color: rgba(255, 255, 255, .72);
  font-size: .52rem;
}

.global-base-marker:hover,
.global-base-marker:focus-visible {
  transform: translate(-50%, -50%) scale(calc(var(--map-inverse-scale, 1) * 1.12));
}

.global-base-marker:hover strong,
.global-base-marker:focus-visible strong {
  display: grid;
}

@media (max-width: 680px) {
  .map-panel > .archipelago-overview__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .map-panel[open] > .archipelago-overview__heading {
    margin-bottom: 12px;
  }

  .global-base-marker__owner {
    max-width: 78px;
    font-size: .43rem;
  }
}

body:not(.terminal-view) .event-toolbar,
body:not(.terminal-view) #event-sync-status {
  display: none !important;
}

.event-line__bullets {
  display: grid;
  gap: 3px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.event-line__bullets li {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(123, 225, 196, .14);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(232, 255, 247, .88);
  background: rgba(87, 184, 156, .09);
  font-size: .62rem;
  font-weight: 850;
}

#event-sync-status {
  margin-left: auto;
  color: rgba(204, 237, 232, .72);
  font-size: .62rem;
  font-weight: 800;
}

/* Autonomous terminal: dashboard-aligned journal surface with screen-fitted pages. */
body.terminal-view {
  background-color: var(--canvas);
  background-image:
    linear-gradient(125deg, rgba(37, 157, 185, .13), transparent 32%),
    linear-gradient(310deg, rgba(245, 195, 77, .18), transparent 38%),
    repeating-linear-gradient(105deg, rgba(20, 76, 83, .035) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #e4f8ee 0%, #fff3cc 48%, #d9f3f6 100%);
}

body.terminal-view main {
  margin-bottom: 24px;
}

body.terminal-view #evenements {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(237, 249, 245, .92)),
    var(--canvas);
  box-shadow: var(--shadow-soft);
}

body.terminal-view .terminal-page-heading {
  align-items: center;
  margin: 0;
  border-bottom: 1px solid rgba(20, 73, 74, .1);
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(255, 255, 255, .46);
}

body.terminal-view .terminal-page-heading h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

body.terminal-view .terminal-page-heading .button {
  min-height: 46px;
}

body.terminal-view .events-disclosure__content {
  padding: clamp(16px, 2.4vw, 26px);
}

body.terminal-view .event-console {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  min-height: 0;
  border: 1px solid rgba(69, 184, 158, .25);
  border-radius: 18px;
  background: #10222d;
  box-shadow: 0 14px 30px rgba(10, 42, 50, .13), inset 0 0 0 1px rgba(255, 255, 255, .025);
  color: #d9eee9;
}

body.terminal-view .event-console__topbar {
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 39px;
  border-bottom: 1px solid rgba(153, 225, 205, .12);
  padding: 0 14px;
  background: linear-gradient(90deg, #173642, #15303b);
  color: rgba(220, 241, 236, .68);
  letter-spacing: .04em;
}

body.terminal-view .event-console__topbar strong {
  color: #a8e8d3;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-weight: 700;
}

body.terminal-view .event-console__lights {
  gap: 7px;
}

body.terminal-view .event-console__lights i {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(239, 119, 94, .08);
}

body.terminal-view .event-toolbar {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(150px, 1fr));
  gap: 9px;
  border-bottom: 1px solid rgba(153, 225, 205, .1);
  padding: 11px 14px;
  background: rgba(255, 255, 255, .025);
}

body.terminal-view .event-toolbar label > span:first-child {
  color: rgba(212, 237, 231, .63);
  font-size: .68rem;
  letter-spacing: .035em;
}

body.terminal-view .event-toolbar input,
body.terminal-view .event-toolbar select {
  min-height: 38px;
  border-color: rgba(159, 222, 207, .16);
  background: #18323d;
  color: #e8f6f2;
  font-size: .78rem;
}

body.terminal-view .event-toolbar select {
  color-scheme: dark;
}

body.terminal-view .event-toolbar input::placeholder {
  color: rgba(213, 237, 231, .4);
}

body.terminal-view .event-toolbar input:focus,
body.terminal-view .event-toolbar select:focus-visible {
  border-color: rgba(77, 206, 166, .75);
  box-shadow: 0 0 0 3px rgba(77, 206, 166, .12);
}

body.terminal-view .event-search__field svg {
  fill: #78bca9;
}

body.terminal-view .event-console__summary {
  min-height: 36px;
  border-bottom: 1px solid rgba(153, 225, 205, .08);
  padding: 6px 14px;
  color: rgba(208, 235, 228, .62);
  background: transparent;
}

body.terminal-view #event-sync-status {
  color: rgba(204, 237, 232, .72);
}

body.terminal-view .event-stream {
  height: clamp(300px, calc(100svh - 430px), 680px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 14px;
  background:
    linear-gradient(rgba(159, 223, 207, .025) 1px, transparent 1px);
  background-size: 100% 36px;
  scrollbar-color: rgba(123, 225, 196, .35) rgba(255, 255, 255, .04);
  scrollbar-width: thin;
}

body.terminal-view .event-stream::-webkit-scrollbar {
  width: 9px;
}

body.terminal-view .event-stream::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
}

body.terminal-view .event-stream::-webkit-scrollbar-thumb {
  border: 2px solid rgba(16, 34, 45, .95);
  border-radius: 999px;
  background: rgba(123, 225, 196, .35);
}

body.terminal-view .event-line {
  grid-template-columns: 160px 16px 38px minmax(0, 1fr);
  min-height: 66px;
  gap: 10px;
  border-bottom: 1px solid rgba(158, 219, 205, .09);
  padding: 8px 0;
}

body.terminal-view .event-line time {
  justify-items: end;
}

body.terminal-view .event-line time strong {
  color: #d8eee8;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
}

body.terminal-view .event-line__rail::before {
  background: rgba(160, 221, 207, .14);
}

body.terminal-view .event-line__rail i {
  border-color: #10222d;
}

body.terminal-view .event-line__visual {
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--event-accent) 28%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--event-accent) 12%, #17303b);
  box-shadow: none;
}

body.terminal-view .event-line__meta {
  gap: 6px;
  margin-bottom: 2px;
}

body.terminal-view .event-line__meta b,
body.terminal-view .event-line__meta em {
  padding: 2px 6px;
  font-size: .52rem;
}

body.terminal-view .event-line__meta b {
  color: color-mix(in srgb, var(--event-type-accent) 76%, white);
  background: color-mix(in srgb, var(--event-type-accent) 15%, transparent);
}

body.terminal-view .event-line__meta em {
  color: rgba(220, 241, 236, .68);
  background: rgba(255, 255, 255, .05);
}

body.terminal-view .event-line__meta .event-line__player,
body.terminal-view .event-line__meta .event-line__guild {
  color: color-mix(in srgb, var(--event-accent) 82%, white);
  background: color-mix(in srgb, var(--event-accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-accent) 28%, transparent);
}

body.terminal-view .event-line__content > strong {
  color: #f0faf7;
  font-size: .8rem;
}

body.terminal-view .event-line__content > .event-line__body,
body.terminal-view .event-line__content > span:not(.event-line__meta) {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(211, 235, 229, .64);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-line__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

body.terminal-view .event-line__bullets li {
  border-color: color-mix(in srgb, var(--event-accent) 18%, transparent);
  color: rgba(232, 255, 247, .88);
  background: color-mix(in srgb, var(--event-accent) 10%, transparent);
  font-size: .62rem;
}

body.terminal-view .event-stream__empty {
  color: rgba(211, 235, 229, .55);
}

body.terminal-view .event-pagination {
  min-height: 56px;
  border-top: 1px solid rgba(153, 225, 205, .1);
  padding: 9px 14px;
  background: rgba(255, 255, 255, .025);
}

body.terminal-view .event-pagination button {
  min-width: 36px;
  min-height: 36px;
  border-color: rgba(159, 222, 207, .16);
  background: #193541;
  color: #d8eee8;
}

body.terminal-view .event-pagination > button:first-child,
body.terminal-view .event-pagination > button:last-child {
  min-width: 104px;
}

body.terminal-view .event-pagination button:hover:not(:disabled),
body.terminal-view .event-pagination button:focus-visible {
  border-color: #56cba4;
  background: #205064;
}

body.terminal-view .event-pagination button.is-current {
  border-color: #56cba4;
  background: #39a982;
  color: #fff;
  box-shadow: 0 5px 15px rgba(57, 169, 130, .24);
}

body.terminal-view .event-pagination__pages > span {
  color: rgba(211, 235, 229, .4);
}

@media (max-width: 980px) {
  body.terminal-view .event-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.terminal-view .event-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .events-panel__heading {
    grid-template-columns: 1fr;
  }

  .terminal-open-button {
    width: fit-content;
  }

  body.terminal-view .event-toolbar {
    grid-template-columns: 1fr;
  }

  body.terminal-view .terminal-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body.terminal-view .terminal-page-heading .button {
    width: 100%;
  }

  body.terminal-view .event-stream {
    height: clamp(280px, calc(100svh - 465px), 430px);
    background: linear-gradient(rgba(159, 223, 207, .025) 1px, transparent 1px);
    background-size: 100% 42px;
  }

  body.terminal-view .event-line {
    grid-template-columns: 18px 42px minmax(0, 1fr);
    align-items: center;
    min-height: 92px;
    gap: 9px;
    padding: 10px 0;
  }

  body.terminal-view .event-line time {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    justify-self: start;
    gap: 6px;
    margin-top: 2px;
  }

  body.terminal-view .event-line time strong {
    font-size: .58rem;
  }

  body.terminal-view .event-line__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.terminal-view .event-line__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
  }

  body.terminal-view .event-line__content {
    grid-column: 3;
    grid-row: 1;
  }

  body.terminal-view .event-line__meta {
    flex-wrap: wrap;
  }

  body.terminal-view .event-line__content > strong {
    overflow: visible;
    white-space: normal;
  }

  body.terminal-view .event-line__content > .event-line__body,
  body.terminal-view .event-line__content > span:not(.event-line__meta) {
    overflow: visible;
    white-space: normal;
  }
}

.event-line__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.event-line--with-bullets {
  --event-detail-dot-offset: 23px;
  align-items: start;
}

.event-line--with-bullets .event-line__rail {
  place-items: start center;
}

.event-line--with-bullets .event-line__rail i {
  margin-top: calc(var(--event-detail-dot-offset) - 5px);
}

.event-line--with-bullets:first-child .event-line__rail::before {
  top: var(--event-detail-dot-offset);
}

.event-line--with-bullets:last-child .event-line__rail::before {
  bottom: calc(100% - var(--event-detail-dot-offset));
}

body.terminal-view .event-line--with-bullets {
  --event-detail-dot-offset: 19px;
  align-items: start;
}

@media (max-width: 650px) {
  .event-line--with-bullets {
    --event-detail-dot-offset: 21px;
  }

  body.terminal-view .event-line--with-bullets {
    --event-detail-dot-offset: 21px;
  }
}

/* Final profile layout overrides */
.profile-layout {
  display: block;
  grid-template-columns: 1fr;
}

.player-kpi-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.player-kpi-groups > .player-kpi-group + .player-kpi-group {
  border-top: 0;
  padding-top: 0;
}

.player-kpi-group--activity,
.player-kpi-group--discoveries,
.player-kpi-group--pending {
  grid-column: 1 / -1;
}

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

.expedition-dialog__header .dialog-export:not(.is-success):not(.is-error) {
  border-color: rgba(159, 239, 200, .68);
  color: #06393c;
  background: linear-gradient(135deg, #dffbea, #89dfb7);
  box-shadow: 0 10px 22px rgba(5, 39, 39, .18);
}

.expedition-dialog__header .dialog-export:hover:not(.is-success):not(.is-error) {
  border-color: rgba(215, 255, 232, .9);
  color: #032b2e;
  background: linear-gradient(135deg, #f2fff7, #9de9c4);
}

@media (max-width: 900px) {
  .player-kpi-groups {
    grid-template-columns: 1fr;
  }

  .player-kpi-group--activity,
  .player-kpi-group--discoveries,
  .player-kpi-group--pending {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .profile-shortcuts {
    grid-template-columns: 1fr;
  }
}

/* Immersive terminal route */
html.terminal-shell {
  background: #071219;
}

body.terminal-view {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  color: #dff7f0;
  background-color: #071219;
  background-image:
    linear-gradient(180deg, rgba(7, 18, 25, .98), rgba(9, 24, 30, .9) 52%, rgba(12, 30, 34, .97)),
    linear-gradient(110deg, rgba(52, 201, 138, .17), transparent 42%),
    linear-gradient(290deg, rgba(239, 140, 91, .13), transparent 45%),
    repeating-linear-gradient(90deg, rgba(150, 230, 205, .034) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(150, 230, 205, .028) 0 1px, transparent 1px 88px);
}

body.terminal-view .world-glow {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(7, 18, 25, .96), rgba(7, 18, 25, .58) 36%, rgba(7, 18, 25, .78)),
    linear-gradient(180deg, rgba(7, 18, 25, .64), rgba(7, 18, 25, .16) 44%, rgba(7, 18, 25, .88)),
    url("game/maps/T_WorldMap.webp?v=20260712.1");
  background-position: center;
  background-size: cover;
  opacity: .3;
  filter: saturate(.9) contrast(1.1);
  transform: scale(1.04);
}

body.terminal-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(223, 255, 240, .045) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(130, 247, 210, .08), transparent 20%, transparent 78%, rgba(239, 140, 91, .06));
  opacity: .34;
  mix-blend-mode: screen;
}

body.terminal-view .site-header,
body.terminal-view main,
body.terminal-view .site-footer,
body.terminal-view .back-to-top,
body.terminal-view .context-tooltip {
  position: relative;
  z-index: 1;
}

body.terminal-view .site-header {
  z-index: 1200;
  border-bottom: 1px solid rgba(126, 238, 205, .16);
  background: rgba(5, 14, 18, .84);
  color: #e8fff7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px) saturate(1.15);
}

body.terminal-view .site-header__inner,
body.terminal-view main,
body.terminal-view .site-footer {
  width: min(1440px, calc(100% - 28px));
}

body.terminal-view .site-brand {
  color: #f4fff9;
}

body.terminal-view .site-brand small,
body.terminal-view .site-header__updated small,
body.terminal-view .site-header__updated time,
body.terminal-view .site-header__refresh,
body.terminal-view .site-header__players-total {
  color: rgba(225, 250, 243, .72);
}

body.terminal-view .site-brand__emblem {
  background: linear-gradient(135deg, #7be1c4, #f0b35d);
  color: #081317;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px rgba(123, 225, 196, .18);
}

body.terminal-view .site-nav {
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(126, 238, 205, .1);
}

body.terminal-view .site-nav a {
  color: rgba(232, 255, 247, .76);
}

body.terminal-view .site-nav a:hover,
body.terminal-view .site-nav a:focus-visible {
  background: rgba(126, 238, 205, .1);
  color: #ffffff;
}

body.terminal-view .site-nav a.is-active {
  background: linear-gradient(135deg, rgba(123, 225, 196, .95), rgba(240, 179, 93, .9));
  color: #071219;
  box-shadow: 0 10px 22px rgba(123, 225, 196, .16);
}

body.terminal-view .site-nav__discord {
  background: rgba(240, 179, 93, .13);
  color: #ffe6bc;
}

body.terminal-view .site-header__players,
body.terminal-view .site-header__refresh,
body.terminal-view .site-header__updated {
  border-color: rgba(126, 238, 205, .13);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

body.terminal-view .site-header__players strong {
  color: #f4fff9;
}

body.terminal-view .site-header__players:focus-visible {
  outline-color: rgba(123, 225, 196, .48);
}

body.terminal-view .site-header__players-tooltip {
  border-color: rgba(126, 238, 205, .18);
  background:
    radial-gradient(circle at 16% 0, rgba(123, 225, 196, .16), transparent 36%),
    linear-gradient(145deg, rgba(9, 24, 30, .98), rgba(13, 35, 39, .96));
  box-shadow: 0 24px 62px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .04);
  color: #f4fff9;
}

body.terminal-view .site-header__players-tooltip-kicker {
  color: #7be1c4;
}

body.terminal-view .site-header__players-tooltip > strong,
body.terminal-view .site-header__players-tooltip li b {
  color: #f4fff9;
}

body.terminal-view .site-header__players-tooltip p,
body.terminal-view .site-header__players-tooltip > small,
body.terminal-view .site-header__players-tooltip li small {
  color: rgba(225, 250, 243, .7);
}

body.terminal-view .site-header__players-tooltip li {
  border-color: rgba(126, 238, 205, .1);
  background: rgba(255, 255, 255, .055);
}

body.terminal-view .refresh-track {
  background: rgba(255, 255, 255, .12);
}

body.terminal-view .refresh-track span {
  background: linear-gradient(90deg, #7be1c4, #f0b35d);
}

body.terminal-view main {
  min-height: calc(100svh - 96px);
  margin-top: 16px;
  margin-bottom: 18px;
}

body.terminal-view #evenements {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.terminal-view .terminal-page-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(126, 238, 205, .19);
  border-radius: 18px;
  padding: 18px 20px;
  background:
    linear-gradient(105deg, rgba(9, 27, 32, .94), rgba(17, 48, 54, .72) 56%, rgba(94, 56, 35, .44)),
    rgba(6, 18, 23, .88);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(15px) saturate(1.12);
}

body.terminal-view .terminal-page-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(126, 238, 205, .06) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(126, 238, 205, .045) 0 1px, transparent 1px 44px);
  opacity: .55;
}

body.terminal-view .terminal-page-heading > * {
  position: relative;
  z-index: 1;
}

body.terminal-view .terminal-page-heading .eyebrow {
  color: #7be1c4;
  letter-spacing: 0;
}

body.terminal-view .terminal-page-heading h1 {
  color: #f4fff9;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(123, 225, 196, .18);
}

body.terminal-view .terminal-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 46px;
  border-color: rgba(126, 238, 205, .2);
  border-radius: 999px;
  padding: 0 17px;
  background: rgba(255, 255, 255, .06);
  color: #f4fff9;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

body.terminal-view .terminal-return svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

body.terminal-view .terminal-return:hover,
body.terminal-view .terminal-return:focus-visible {
  border-color: rgba(240, 179, 93, .55);
  background: rgba(240, 179, 93, .15);
  color: #fff6df;
  transform: translateY(-1px);
}

body.terminal-view .events-disclosure__content {
  padding: 0;
}

body.terminal-view .event-console {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(126, 238, 205, .22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 35, 42, .97), rgba(8, 20, 26, .98)),
    #08151b;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .025);
  color: #dff7f0;
}

body.terminal-view .event-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(123, 225, 196, .1), transparent 26%, transparent 72%, rgba(240, 179, 93, .08)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(173, 255, 226, .028) 35px 36px);
  opacity: .75;
}

body.terminal-view .event-console > * {
  position: relative;
  z-index: 1;
}

body.terminal-view .event-console__topbar {
  grid-template-columns: 90px minmax(0, 1fr) auto;
  min-height: 44px;
  border-bottom: 1px solid rgba(153, 225, 205, .12);
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(19, 51, 61, .92), rgba(10, 27, 34, .96));
  color: rgba(220, 241, 236, .7);
  letter-spacing: 0;
}

body.terminal-view .event-console__topbar strong {
  color: #a8e8d3;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-weight: 700;
}

body.terminal-view .event-console__lights {
  gap: 7px;
}

body.terminal-view .event-console__lights i {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(239, 119, 94, .08);
}

body.terminal-view .event-toolbar {
  grid-template-columns: minmax(320px, 2fr) repeat(2, minmax(160px, 1fr));
  gap: 10px;
  border-bottom: 1px solid rgba(153, 225, 205, .1);
  padding: 13px 16px;
  background: rgba(255, 255, 255, .035);
}

body.terminal-view .event-toolbar label > span:first-child {
  color: rgba(212, 237, 231, .68);
  font-size: .68rem;
  letter-spacing: 0;
}

body.terminal-view .event-toolbar input,
body.terminal-view .event-toolbar select {
  min-height: 40px;
  border-color: rgba(159, 222, 207, .17);
  border-radius: 10px;
  background: rgba(9, 23, 29, .84);
  color: #e8f6f2;
  font-size: .8rem;
}

body.terminal-view .event-toolbar select {
  color-scheme: dark;
}

body.terminal-view .event-toolbar input::placeholder {
  color: rgba(213, 237, 231, .4);
}

body.terminal-view .event-toolbar input:focus,
body.terminal-view .event-toolbar select:focus-visible {
  border-color: rgba(77, 206, 166, .78);
  box-shadow: 0 0 0 3px rgba(77, 206, 166, .12);
}

body.terminal-view .event-search__field svg {
  fill: #78bca9;
}

body.terminal-view .event-console__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 42px;
  border-bottom: 1px solid rgba(153, 225, 205, .09);
  padding: 8px 16px;
  color: rgba(208, 235, 228, .66);
  background: rgba(0, 0, 0, .12);
}

body.terminal-view .event-session-highlight {
  max-width: min(62vw, 720px);
  border: 1px solid rgba(240, 179, 93, .18);
  background: rgba(240, 179, 93, .09);
  color: #ffe6bc;
}

body.terminal-view #event-sync-status {
  color: rgba(204, 237, 232, .72);
}

body.terminal-view .event-stream {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 4px 16px;
  background:
    linear-gradient(rgba(159, 223, 207, .022) 1px, transparent 1px);
  background-size: 100% 36px;
  scrollbar-color: rgba(123, 225, 196, .38) rgba(255, 255, 255, .04);
  scrollbar-width: thin;
}

body.terminal-view .event-stream::-webkit-scrollbar {
  width: 9px;
}

body.terminal-view .event-stream::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
}

body.terminal-view .event-stream::-webkit-scrollbar-thumb {
  border: 2px solid rgba(16, 34, 45, .95);
  border-radius: 999px;
  background: rgba(123, 225, 196, .38);
}

body.terminal-view .event-line {
  position: relative;
  grid-template-columns: 168px 18px 42px minmax(0, 1fr);
  min-height: 72px;
  gap: 10px;
  border-bottom: 1px solid rgba(158, 219, 205, .09);
  padding: 10px 0;
}

@media (prefers-reduced-motion: no-preference) {
  body.terminal-view .event-line {
    transition:
      opacity .18s ease,
      transform .18s ease,
      background .18s ease;
  }

  body.terminal-view .event-line--new {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Daily digest */
body.digest-view {
  background-image:
    linear-gradient(130deg, rgba(64, 200, 117, .12), transparent 34%),
    linear-gradient(315deg, rgba(239, 113, 100, .13), transparent 36%),
    repeating-linear-gradient(105deg, rgba(20, 76, 83, .028) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #e9f8ef 0%, #fff6d9 48%, #e0f5f7 100%);
}

body.digest-view main.daily-page {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto 0;
}

.daily-panel {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(236, 250, 245, .94) 60%, rgba(255, 246, 216, .92));
}

.daily-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid rgba(22, 88, 82, .1);
  padding: 24px;
  background:
    radial-gradient(circle at 82% 0, rgba(245, 195, 77, .22), transparent 34%),
    linear-gradient(110deg, rgba(255, 255, 255, .82), rgba(221, 247, 239, .72));
}

.daily-heading h1 {
  margin-top: 5px;
  font-size: 2.7rem;
  line-height: .95;
  letter-spacing: 0;
}

.daily-lede {
  max-width: 660px;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.45;
}

.daily-heading__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(100%, 314px);
}

.daily-controls {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1fr) 42px;
  gap: 8px;
  align-items: end;
  min-width: min(100%, 304px);
}

.daily-nav-button,
.daily-terminal-link,
.daily-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 109, 112, .16);
  cursor: pointer;
  color: #176d70;
  background: rgba(255, 255, 255, .78);
  font-weight: 900;
  text-decoration: none;
}

.daily-nav-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.daily-nav-button.daily-today-button {
  grid-column: 1 / -1;
  width: auto;
  border-radius: 999px;
  padding: 0 16px;
}

.daily-nav-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.daily-nav-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.daily-return-link {
  grid-column: auto;
  min-height: 42px;
}

.daily-return-link:hover,
.daily-return-link:focus-visible {
  border-color: rgba(23, 109, 112, .35);
  background: rgba(225, 249, 241, .92);
  box-shadow: 0 14px 28px rgba(23, 109, 112, .14);
}

.daily-date-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-date-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 109, 112, .16);
  border-radius: 13px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  font: 850 .82rem/1 "Nunito", sans-serif;
}

.daily-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(22, 88, 82, .08);
  padding: 10px 24px;
  color: #35666c;
  background: rgba(255, 255, 255, .58);
  font-size: .74rem;
  font-weight: 900;
}

.daily-source-row time {
  color: var(--muted);
}

.daily-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 18px 24px 10px;
}

.daily-metric {
  display: grid;
  gap: 4px;
  min-height: 108px;
  align-content: start;
  border: 1px solid rgba(22, 88, 82, .1);
  border-top: 4px solid var(--daily-accent, #259db9);
  border-radius: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, .74);
}

.daily-metric[data-tooltip] {
  cursor: help;
}

.daily-metric--players { --daily-accent: #176d70; }
.daily-metric--presence { --daily-accent: #d88b35; }
.daily-metric--events { --daily-accent: #259db9; }
.daily-metric--capture { --daily-accent: #40c875; }
.daily-metric--level { --daily-accent: #f5c34d; }
.daily-metric--craft { --daily-accent: #a06ad7; }
.daily-metric--production { --daily-accent: #ef7164; }
.daily-metric--base { --daily-accent: #8f7a4c; }
.daily-metric--rare { --daily-accent: #304b7d; }

.daily-metric span,
.daily-metric small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.daily-metric strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  line-height: .95;
  font-variant-numeric: tabular-nums;
}

.daily-metric small {
  margin-top: auto;
  color: var(--ink-soft);
  text-transform: none;
}

.daily-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 12px;
  padding: 10px 24px;
}

.daily-summary-block,
.daily-section {
  border: 1px solid rgba(22, 88, 82, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.daily-summary-block {
  padding: 17px;
}

.daily-summary-block h2,
.daily-section h2 {
  letter-spacing: 0;
}

.daily-brief__lead {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.daily-brief__lead strong {
  color: #176d70;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.daily-brief__lead span {
  color: var(--ink-soft);
  font-weight: 800;
}

.daily-brief__list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.daily-brief__list li {
  display: grid;
  grid-template-columns: minmax(140px, .32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.daily-brief__list b {
  color: #176d70;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.daily-brief__list span {
  min-width: 0;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.4;
}

.daily-type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.daily-type-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--type-color, #259db9) 16%, rgba(22, 88, 82, .08));
  border-radius: 999px;
  padding: 6px 9px;
  color: color-mix(in srgb, var(--type-color, #259db9) 74%, var(--ink));
  background: color-mix(in srgb, var(--type-color, #259db9) 8%, #fff);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.25;
}

.daily-type-strip b {
  overflow: hidden;
  max-width: 170px;
  color: color-mix(in srgb, var(--type-color, #259db9) 78%, var(--ink));
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-brief__takeaway {
  margin: 13px 0 0;
  border-left: 4px solid #176d70;
  padding: 4px 0 4px 12px;
  color: #173f4d;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.45;
}

.daily-brief__focus {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.daily-brief__focus li {
  display: grid;
  grid-template-columns: minmax(120px, .38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid rgba(22, 88, 82, .08);
  padding-top: 8px;
}

.daily-brief__focus b {
  color: #176d70;
  font-size: .72rem;
  font-weight: 900;
}

.daily-brief__focus span {
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 750;
}

.daily-brief__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.35;
}

.daily-section__heading p {
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.35;
}

.daily-tangibles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-tangible-card {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--tangible-color, #259db9) 18%, rgba(22, 88, 82, .08));
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tangible-color, #259db9) 8%, #fff), rgba(255, 255, 255, .84));
  box-shadow: 0 14px 28px rgba(25, 67, 69, .08);
}

.daily-tangible-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tangible-color, #259db9) 28%, transparent);
  outline-offset: 3px;
}

.daily-tangible-card > header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.daily-tangible-card > header span {
  color: color-mix(in srgb, var(--tangible-color, #259db9) 76%, var(--ink));
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-tangible-card > header strong {
  color: color-mix(in srgb, var(--tangible-color, #259db9) 70%, var(--ink));
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

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

.daily-item-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--tangible-color, #259db9) 12%, rgba(22, 88, 82, .08));
  border-radius: 13px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .74);
}

.daily-item-list li[data-tooltip] {
  cursor: help;
}

.daily-item-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  object-fit: contain;
  border-radius: 12px;
  color: color-mix(in srgb, var(--tangible-color, #259db9) 68%, var(--ink));
  background: color-mix(in srgb, var(--tangible-color, #259db9) 12%, #fff);
  font-size: .72rem;
  font-weight: 950;
}

.daily-item-list b,
.daily-item-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-item-list b {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 950;
}

.daily-item-list small {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 850;
}

.daily-item-list strong {
  color: color-mix(in srgb, var(--tangible-color, #259db9) 72%, var(--ink));
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.daily-item-list__empty {
  grid-template-columns: 1fr !important;
  color: var(--muted);
  font-weight: 850;
}

.daily-hourly {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
  min-height: 188px;
  align-items: end;
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 9px 8px;
  background:
    linear-gradient(rgba(19, 38, 66, .06) 1px, transparent 1px),
    rgba(247, 255, 252, .74);
  background-size: 100% 25%;
}

.daily-hour {
  display: grid;
  height: 150px;
  align-items: end;
  gap: 5px;
}

.daily-hour i {
  display: block;
  height: var(--hour-height, 5%);
  min-height: 5px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #40c875, #259db9);
  box-shadow: 0 5px 12px rgba(37, 157, 185, .14);
}

.daily-hour b {
  min-height: 12px;
  color: var(--muted);
  font-size: .48rem;
  font-weight: 900;
  text-align: center;
}

.daily-section {
  margin: 12px 24px 0;
  padding: 18px;
}

.daily-section:last-child {
  margin-bottom: 24px;
}

.daily-section__heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.daily-terminal-link {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .74rem;
}

.daily-players {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.daily-player-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-accent, #259db9) 20%, rgba(24, 41, 68, .08));
  border-radius: 20px;
  padding: 0 14px 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .96), color-mix(in srgb, var(--card-accent, #259db9) 7%, #f0f8f2));
  box-shadow: 0 14px 30px rgba(25, 67, 69, .1);
}

.daily-player-card[data-tooltip] {
  cursor: help;
}

.daily-player-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--card-accent, #259db9) 28%, transparent);
  outline-offset: 3px;
}

.daily-player-card--quiet {
  opacity: .78;
}

.daily-player-card header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 -14px;
  padding: 15px 14px;
  color: #fff;
  background:
    linear-gradient(132deg,
      color-mix(in srgb, var(--card-accent, #259db9) 72%, #12324b),
      color-mix(in srgb, var(--card-accent, #259db9) 62%, #1fa184));
}

.daily-player-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px rgba(7, 30, 42, .16);
  backdrop-filter: blur(8px);
}

.daily-player-card header strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-player-card header small {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, .76);
  font-size: .72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-player-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 7px;
}

.daily-player-card__stats span {
  display: grid;
  gap: 2px;
  min-height: 50px;
  align-content: center;
  border: 1px solid color-mix(in srgb, var(--card-accent, #259db9) 12%, rgba(24, 41, 68, .06));
  border-radius: 12px;
  padding: 8px;
  background: color-mix(in srgb, var(--card-accent, #259db9) 7%, #fff);
}

.daily-player-card__stats span[data-tooltip] {
  cursor: help;
}

.daily-player-card__stats b {
  overflow: hidden;
  color: color-mix(in srgb, var(--card-accent, #259db9) 66%, #132642);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-player-card__stats small {
  color: var(--muted);
  font-size: .55rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.daily-player-card__focus {
  margin: -2px 0 0;
  border: 1px solid color-mix(in srgb, var(--card-accent, #259db9) 10%, rgba(24, 41, 68, .06));
  border-radius: 12px;
  padding: 9px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .56);
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.35;
}

.daily-player-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-player-card__types span {
  border: 1px solid color-mix(in srgb, var(--type-color, var(--card-accent, #259db9)) 18%, transparent);
  border-radius: 999px;
  padding: 3px 7px;
  color: color-mix(in srgb, var(--type-color, var(--card-accent, #259db9)) 72%, #132642);
  background: color-mix(in srgb, var(--type-color, var(--card-accent, #259db9)) 8%, #fff);
  font-size: .58rem;
  font-weight: 950;
}

.daily-player-card__highlights {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-player-card__highlights li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 800;
}

.daily-player-card__empty {
  grid-template-columns: 1fr !important;
}

.daily-player-card__highlights time {
  color: color-mix(in srgb, var(--card-accent, #259db9) 66%, #132642);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.daily-highlights {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-highlight {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--highlight-color, #259db9) 16%, transparent);
  border-radius: 15px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--highlight-color, #259db9) 7%, #fff);
}

.daily-highlight time {
  color: color-mix(in srgb, var(--highlight-color, #259db9) 70%, #132642);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.daily-highlight span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.daily-highlight b,
.daily-highlight em {
  color: color-mix(in srgb, var(--highlight-color, #259db9) 70%, #132642);
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-highlight strong {
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.2;
}

.daily-highlight small {
  display: block;
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.3;
}

.daily-highlight em {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .72);
  white-space: nowrap;
}

.daily-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .daily-heading,
  .daily-overview {
    grid-template-columns: 1fr;
  }

  .daily-heading__actions {
    justify-items: start;
    width: min(100%, 340px);
  }

  .daily-controls {
    width: min(100%, 340px);
  }
}

@media (max-width: 820px) {
  body.digest-view main.daily-page {
    width: min(100% - 20px, 1220px);
    margin-top: 10px;
  }

  .daily-heading,
  .daily-source-row,
  .daily-metrics,
  .daily-overview {
    padding-inline: 14px;
  }

  .daily-heading h1 {
    font-size: 2.15rem;
  }

  .daily-metrics,
  .daily-tangibles,
  .daily-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-section {
    margin-inline: 14px;
    padding: 14px;
  }

  .daily-brief__list li,
  .daily-brief__focus li,
  .daily-highlight {
    grid-template-columns: 1fr;
  }

  .daily-highlight strong,
  .daily-highlight small {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .daily-heading {
    padding-top: 18px;
  }

  .daily-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    width: 100%;
    min-width: 0;
  }

  .daily-heading__actions,
  .daily-return-link {
    width: 100%;
  }

  .daily-metrics,
  .daily-tangibles,
  .daily-players,
  .daily-player-card__stats {
    grid-template-columns: 1fr;
  }

  .daily-metric--events {
    grid-column: auto;
  }

  .daily-hourly {
    gap: 2px;
    padding-inline: 6px;
  }

  .daily-hour b {
    display: none;
  }

  .daily-section__heading {
    display: grid;
    grid-template-columns: 1fr;
  }
}

body.terminal-view .event-line:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--event-accent) 14%, transparent), transparent 54%);
}

body.terminal-view .event-line time {
  justify-items: end;
}

body.terminal-view .event-line time strong {
  color: #d8eee8;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
}

body.terminal-view .event-line__rail::before {
  background: rgba(160, 221, 207, .14);
}

body.terminal-view .event-line__rail i {
  border-color: #08151b;
}

body.terminal-view .event-line__visual {
  width: 42px;
  height: 42px;
  border-color: color-mix(in srgb, var(--event-accent) 28%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--event-accent) 12%, #17303b);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
}

body.terminal-view .event-line__meta {
  gap: 6px;
  margin-bottom: 2px;
}

body.terminal-view .event-line__meta b,
body.terminal-view .event-line__meta em {
  padding: 2px 6px;
  font-size: .52rem;
}

body.terminal-view .event-line__meta b {
  color: color-mix(in srgb, var(--event-type-accent) 76%, white);
  background: color-mix(in srgb, var(--event-type-accent) 15%, transparent);
}

body.terminal-view .event-line__meta em {
  color: rgba(220, 241, 236, .68);
  background: rgba(255, 255, 255, .05);
}

body.terminal-view .event-line__meta .event-line__player,
body.terminal-view .event-line__meta .event-line__guild {
  color: color-mix(in srgb, var(--event-accent) 82%, white);
  background: color-mix(in srgb, var(--event-accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-accent) 28%, transparent);
}

body.terminal-view .event-line__content > strong {
  color: #f0faf7;
  font-size: .82rem;
}

body.terminal-view .event-line__content > .event-line__body,
body.terminal-view .event-line__content > span:not(.event-line__meta) {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(211, 235, 229, .66);
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-line__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

body.terminal-view .event-line__bullets li {
  border-color: color-mix(in srgb, var(--event-accent) 18%, transparent);
  color: rgba(232, 255, 247, .88);
  background: color-mix(in srgb, var(--event-accent) 10%, transparent);
  font-size: .62rem;
}

body.terminal-view .event-stream__empty {
  color: rgba(211, 235, 229, .55);
}

body.terminal-view .event-pagination {
  min-height: 58px;
  border-top: 1px solid rgba(153, 225, 205, .1);
  padding: 9px 16px;
  background: rgba(255, 255, 255, .035);
}

body.terminal-view .event-pagination button {
  min-width: 36px;
  min-height: 36px;
  border-color: rgba(159, 222, 207, .17);
  background: rgba(25, 53, 65, .92);
  color: #d8eee8;
}

body.terminal-view .event-pagination > button:first-child,
body.terminal-view .event-pagination > button:last-child {
  min-width: 104px;
}

body.terminal-view .event-pagination button:hover:not(:disabled),
body.terminal-view .event-pagination button:focus-visible {
  border-color: #56cba4;
  background: #205064;
}

body.terminal-view .event-pagination button.is-current {
  border-color: #56cba4;
  background: #39a982;
  color: #fff;
  box-shadow: 0 5px 15px rgba(57, 169, 130, .24);
}

body.terminal-view .event-pagination__pages > span {
  color: rgba(211, 235, 229, .42);
}

body.terminal-view .site-footer {
  border-color: rgba(126, 238, 205, .16);
  background: rgba(5, 14, 18, .68);
  color: rgba(232, 255, 247, .76);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px) saturate(1.1);
}

body.terminal-view .site-footer__brand strong {
  color: #f4fff9;
}

body.terminal-view .site-footer__brand span,
body.terminal-view .social-link small {
  color: rgba(232, 255, 247, .62);
}

body.terminal-view .social-link {
  border-color: rgba(126, 238, 205, .14);
  background: rgba(255, 255, 255, .045);
  color: #f4fff9;
}

@media (max-width: 1080px) {
  body.terminal-view .site-header__inner,
  body.terminal-view main,
  body.terminal-view .site-footer {
    width: min(1440px, calc(100% - 18px));
  }

  body.terminal-view .event-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.terminal-view .event-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.terminal-view .site-header__inner,
  body.terminal-view main,
  body.terminal-view .site-footer {
    width: min(1440px, calc(100% - 14px));
  }

  body.terminal-view .site-header {
    position: relative;
  }

  body.terminal-view .site-header__inner {
    gap: 8px;
    padding-block: 8px;
  }

  body.terminal-view .site-nav {
    display: none;
  }

  body.terminal-view main {
    margin-top: 8px;
  }

  body.terminal-view .terminal-page-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    border-radius: 16px;
    margin-bottom: 10px;
    padding: 12px;
  }

  body.terminal-view .terminal-page-heading h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.8rem);
    line-height: .92;
  }

  body.terminal-view .terminal-page-heading .eyebrow {
    font-size: .68rem;
  }

  body.terminal-view .terminal-return {
    width: 100%;
    min-height: 42px;
    white-space: normal;
  }

  body.terminal-view .event-console {
    margin-inline: 0;
    border-radius: 18px;
  }

  body.terminal-view .event-console__topbar {
    min-height: 38px;
    padding: 0 12px;
  }

  body.terminal-view .event-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 9px 12px;
  }

  body.terminal-view .event-search {
    grid-column: 1 / -1;
  }

  body.terminal-view .event-toolbar label > span:first-child {
    font-size: .62rem;
  }

  body.terminal-view .event-toolbar input,
  body.terminal-view .event-toolbar select {
    min-height: 36px;
    font-size: .72rem;
  }

  body.terminal-view .event-console__summary {
    align-items: center;
    padding: 7px 12px;
  }

  body.terminal-view .event-session-highlight {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.terminal-view .event-stream {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 3px 12px;
    background: linear-gradient(rgba(159, 223, 207, .024) 1px, transparent 1px);
    background-size: 100% 42px;
  }

  body.terminal-view .event-line {
    grid-template-columns: 18px 42px minmax(0, 1fr);
    align-items: center;
    min-height: 82px;
    gap: 9px;
    padding: 8px 0;
  }

  body.terminal-view .event-line time {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    justify-self: start;
    gap: 6px;
    margin-top: 2px;
  }

  body.terminal-view .event-line time strong {
    font-size: .58rem;
  }

  body.terminal-view .event-line__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.terminal-view .event-line__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body.terminal-view .event-line__content {
    grid-column: 3;
    grid-row: 1;
  }

  body.terminal-view .event-line__meta {
    flex-wrap: wrap;
  }

  body.terminal-view .event-line__content > strong,
  body.terminal-view .event-line__content > .event-line__body,
  body.terminal-view .event-line__content > span:not(.event-line__meta) {
    overflow: visible;
    white-space: normal;
  }

  body.terminal-view .event-pagination {
    padding: 9px 12px;
  }
}

/* Terminal focus refinements */
body.terminal-view .site-nav {
  overflow: hidden;
  border-radius: 999px;
  padding: 3px;
}

body.terminal-view .site-nav a {
  border-radius: 999px;
}

body.terminal-view .back-to-top {
  position: fixed;
}

body.terminal-view .context-tooltip {
  position: fixed;
}

body.terminal-view main {
  min-height: 0;
  margin-top: 32px;
  margin-bottom: 8px;
}

body.terminal-view .terminal-page-heading {
  gap: 10px;
  margin-bottom: 6px;
  border-radius: 18px;
  padding: 8px 12px;
}

body.terminal-view .terminal-page-heading .eyebrow {
  margin-bottom: 1px;
  font-size: .58rem;
}

body.terminal-view .terminal-page-heading h1 {
  font-size: clamp(1.18rem, 1.8vw, 1.62rem);
  line-height: 1;
}

body.terminal-view .terminal-return {
  min-height: 38px;
  padding-inline: 12px;
  font-size: .72rem;
}

body.terminal-view .event-console__topbar {
  min-height: 42px;
}

body.terminal-view .event-controls {
  border-bottom: 1px solid rgba(153, 225, 205, .1);
  background: rgba(255, 255, 255, .026);
}

body.terminal-view .event-controls > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: rgba(220, 241, 236, .78);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 900;
  list-style: none;
}

body.terminal-view .event-controls > summary::-webkit-details-marker {
  display: none;
}

body.terminal-view .event-controls > summary b {
  display: inline-flex;
  min-width: 74px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 238, 205, .16);
  border-radius: 999px;
  background: rgba(126, 238, 205, .07);
  color: #a8e8d3;
  font-size: .62rem;
  font-weight: 900;
}

body.terminal-view .event-controls > summary b::before {
  content: "Afficher";
}

body.terminal-view .event-controls[open] > summary b::before {
  content: "Masquer";
}

body.terminal-view .event-controls.has-active-filters > summary {
  color: #ffe6bc;
}

body.terminal-view .event-controls.has-active-filters > summary b {
  border-color: rgba(240, 179, 93, .28);
  background: rgba(240, 179, 93, .12);
  color: #ffe6bc;
}

body.terminal-view .event-controls .event-toolbar {
  border-top: 1px solid rgba(153, 225, 205, .08);
  border-bottom: 0;
  padding: 10px 16px 12px;
}

body.terminal-view .event-console__summary {
  min-height: 38px;
  padding: 6px 16px;
}

body.terminal-view .event-stream {
  padding-top: 2px;
  padding-bottom: 2px;
}

body.terminal-view .event-line {
  min-height: 68px;
  padding-block: 8px;
}

body.terminal-view .event-pagination {
  min-height: 52px;
  padding: 8px 16px;
}

body.terminal-view .site-footer {
  margin-top: 8px;
}

@media (max-width: 720px) {
  body.terminal-view main {
    margin-top: 6px;
    margin-bottom: 8px;
  }

  body.terminal-view .terminal-page-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    border-radius: 16px;
    padding: 8px 10px;
  }

  body.terminal-view .terminal-page-heading h1 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  body.terminal-view .terminal-return {
    width: 40px;
    min-height: 40px;
    padding-inline: 0;
    font-size: .7rem;
  }

  body.terminal-view .terminal-return span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.terminal-view .event-console__topbar {
    min-height: 36px;
  }

  body.terminal-view .event-controls > summary {
    min-height: 36px;
    padding: 0 12px;
    font-size: .72rem;
  }

  body.terminal-view .event-controls > summary b {
    min-width: 68px;
    min-height: 26px;
  }

  body.terminal-view .event-controls .event-toolbar {
    padding: 8px 12px 10px;
  }

  body.terminal-view .event-console__summary {
    min-height: 34px;
    padding: 6px 12px;
  }

  body.terminal-view .event-line {
    min-height: 78px;
    padding-block: 7px;
  }

  body.terminal-view .event-pagination {
    min-height: 50px;
    padding: 7px 12px;
  }

  body.terminal-view .site-footer {
    margin-top: 8px;
  }
}

body.terminal-view .site-footer .social-link {
  border-color: rgba(126, 238, 205, .38);
  background:
    linear-gradient(135deg, rgba(126, 238, 205, .16), rgba(255, 210, 141, .07)),
    rgba(8, 25, 31, .92);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .28);
}

body.terminal-view .site-footer .social-link strong {
  color: #ffffff;
  font-weight: 950;
}

body.terminal-view .site-footer .social-link small {
  color: rgba(232, 255, 247, .9);
}

body.terminal-view .site-footer .social-link svg {
  background: rgba(126, 238, 205, .18);
  fill: #aefbe2;
}

body.terminal-view .site-footer .social-link > b {
  color: #ffd28d;
  opacity: 1;
}

/* Header, navigation et accueil : finition visuelle de la promotion v6. */
body:not(.terminal-view) .site-header {
  border-bottom: 0;
  padding: 8px 0;
  background:
    linear-gradient(90deg, rgba(221, 248, 238, .9), rgba(247, 251, 235, .9) 54%, rgba(224, 246, 242, .9));
  box-shadow: 0 12px 34px rgba(18, 63, 70, .1);
}

body:not(.terminal-view) .site-header__inner {
  width: min(1280px, calc(100% - 24px));
  min-height: 62px;
  border: 1px solid rgba(23, 109, 112, .12);
  border-radius: 21px;
  padding: 6px 8px 6px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(244, 252, 245, .72));
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 10px 26px rgba(28, 81, 78, .08);
}

.site-brand__emblem {
  border-radius: 14px 9px 14px 9px;
  box-shadow: 0 8px 20px rgba(23, 109, 112, .24), inset 0 1px rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.site-brand:hover .site-brand__emblem,
.site-brand:focus-visible .site-brand__emblem {
  box-shadow: 0 11px 25px rgba(23, 109, 112, .3), inset 0 1px rgba(255, 255, 255, .25);
  transform: rotate(2deg) scale(1.04);
}

body:not(.terminal-view) .site-nav {
  gap: 2px;
  border: 1px solid rgba(23, 109, 112, .08);
  border-radius: 16px;
  padding: 3px;
  background: rgba(238, 249, 241, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-block: 0;
}

.site-nav a.is-active {
  box-shadow: 0 7px 18px rgba(23, 109, 112, .22), inset 0 1px rgba(255, 255, 255, .18);
}

.site-header__telemetry {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border: 1px solid rgba(23, 109, 112, .09);
  border-radius: 17px;
  padding: 3px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .86);
}

.site-header__players,
.site-header__updated,
.site-header__refresh {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
}

.site-header__players:hover,
.site-header__players:focus-visible,
.site-header__updated:hover,
.site-header__refresh:hover {
  background: rgba(226, 247, 238, .82);
}

.site-header__players {
  padding-inline: 11px;
}

.site-header__updated {
  min-width: 110px;
  border-left: 1px solid rgba(23, 109, 112, .08);
}

.site-header__refresh {
  min-width: 118px;
  border-left: 1px solid rgba(23, 109, 112, .08);
}

.site-header__players .site-header__players-tooltip {
  top: calc(env(safe-area-inset-top, 0px) + 82px);
  right: max(12px, calc((100vw - 1280px) / 2));
  width: min(560px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
  border-radius: 20px;
  padding: 13px;
}

.site-header__players .site-header__players-tooltip-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(18, 54, 65, .08);
  padding: 1px 2px 9px;
}

.site-header__players .site-header__players-tooltip-head > span:first-child {
  display: grid;
}

.site-header__players .site-header__players-tooltip-head strong {
  margin-top: 2px;
  color: #123641;
  font: 800 20px/1.05 "Baloo 2", sans-serif;
}

.site-header__players .site-header__players-tooltip-head > small {
  color: #789195;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.site-header__players .site-header__players-tooltip ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.site-header__players .site-header__players-tooltip li {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  padding: 6px 7px;
}

.site-header__players .site-header__players-tooltip-avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--player-color, #23856f) 16%, transparent);
}

.site-header__players .site-header__players-tooltip li b {
  font-size: 12px;
  line-height: 1.05;
  white-space: nowrap;
}

.site-header__players .site-header__players-tooltip li small {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-freshness {
  align-self: stretch;
}

.source-freshness > summary {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(23, 109, 112, .08);
  border-radius: 13px;
  padding: 0;
  background: transparent;
}

.source-freshness > summary img {
  width: 20px;
  height: 20px;
  opacity: .78;
}

.source-freshness > summary::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: #36b879;
  box-shadow: 0 0 0 2px rgba(54, 184, 121, .12);
  content: "";
}

.source-freshness[data-state="delayed"] > summary::after {
  background: #d89b35;
}

.source-freshness[data-state="error"] > summary::after {
  background: #d75b51;
}

.source-freshness[open] > summary,
.source-freshness > summary:hover,
.source-freshness > summary:focus-visible {
  background: rgba(226, 247, 238, .86);
}

.source-freshness__panel {
  top: calc(100% + 12px);
  width: min(360px, calc(100vw - 20px));
  gap: 4px;
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 0, rgba(87, 203, 167, .2), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(237, 250, 245, .98));
  box-shadow: 0 24px 60px rgba(17, 45, 61, .24), 0 5px 18px rgba(21, 101, 101, .1);
  transform-origin: top right;
  animation: freshness-panel-in .16s ease both;
}

.source-freshness__panel-kicker {
  color: #247b6c;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.source-freshness__panel > strong {
  margin-bottom: 5px;
  color: #123641;
  font-size: 1.08rem;
}

.source-freshness__panel [data-source-freshness-list] {
  gap: 0;
}

.source-freshness__panel [data-source-freshness-list] > span {
  min-height: 34px;
  gap: 10px;
  padding-top: 5px;
}

.source-freshness__panel [data-source-freshness-list] > span > b {
  font-size: .72rem;
}

.source-freshness__value {
  gap: 5px;
}

.source-freshness__value em {
  min-width: 67px;
  text-align: center;
}

@keyframes freshness-panel-in {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.terminal-view .source-freshness > summary {
  border-color: rgba(126, 238, 205, .13);
  background: transparent;
}

body.terminal-view .source-freshness > summary img {
  filter: invert(92%) sepia(19%) saturate(589%) hue-rotate(102deg) brightness(103%);
}

body.terminal-view .source-freshness[open] > summary,
body.terminal-view .source-freshness > summary:hover,
body.terminal-view .source-freshness > summary:focus-visible {
  background: rgba(126, 238, 205, .12);
}

body.terminal-view .source-freshness > summary::after {
  border-color: #10262c;
}

body.terminal-view .source-freshness__panel {
  border-color: rgba(126, 238, 205, .18);
  background:
    radial-gradient(circle at 86% 0, rgba(123, 225, 196, .16), transparent 38%),
    linear-gradient(145deg, rgba(9, 24, 30, .99), rgba(13, 35, 39, .98));
  color: #f4fff9;
}

body.terminal-view .source-freshness__panel-kicker,
body.terminal-view .source-freshness__panel time {
  color: #9debd5;
}

body.terminal-view .source-freshness__panel > strong,
body.terminal-view .source-freshness__panel [data-source-freshness-list] > span > b {
  color: #f4fff9;
}

body.terminal-view .source-freshness__panel [data-source-freshness-list] > span {
  border-color: rgba(126, 238, 205, .1);
}

.dashboard-hero .hero__copy {
  overflow: hidden;
  position: relative;
  border-color: rgba(23, 109, 112, .12);
  border-radius: 30px;
  padding: clamp(24px, 3.2vw, 38px);
  background:
    radial-gradient(circle at 96% 8%, rgba(70, 195, 152, .18), transparent 30%),
    radial-gradient(circle at 4% 100%, rgba(37, 157, 185, .12), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(247, 250, 229, .9));
  box-shadow: 0 24px 58px rgba(24, 73, 69, .13), inset 0 1px rgba(255, 255, 255, .9);
}

.dashboard-hero__routes {
  grid-auto-rows: 1fr;
  gap: 12px;
}

.dashboard-hero__routes .dashboard-hero__route {
  min-height: 104px;
  border-width: 1px;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 15px 34px color-mix(in srgb, var(--route-color) 10%, rgba(20, 66, 66, .08));
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-hero__routes .dashboard-hero__route::after {
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--route-color), transparent);
  opacity: .48;
  content: "";
}

.dashboard-hero__route-icon,
.dashboard-hero__route em {
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dashboard-hero__routes .dashboard-hero__route:hover,
.dashboard-hero__routes .dashboard-hero__route:focus-visible {
  border-color: color-mix(in srgb, var(--route-color) 48%, rgba(20, 73, 74, .14));
  box-shadow: 0 22px 42px color-mix(in srgb, var(--route-color) 16%, rgba(20, 66, 66, .1));
  transform: translateY(-4px) scale(1.01);
}

.dashboard-hero__routes .dashboard-hero__route:hover .dashboard-hero__route-icon,
.dashboard-hero__routes .dashboard-hero__route:focus-visible .dashboard-hero__route-icon {
  box-shadow: 0 9px 20px color-mix(in srgb, var(--route-color) 18%, transparent);
  transform: rotate(-4deg) scale(1.06);
}

.dashboard-hero__routes .dashboard-hero__route:hover em,
.dashboard-hero__routes .dashboard-hero__route:focus-visible em {
  transform: translateX(3px);
}

.adventurer-grid--home {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.adventurer-grid--home .adventurer-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.adventurer-grid--home .adventurer-card__open {
  margin-top: auto;
}

.home-echoes {
  overflow: visible;
  border-color: rgba(23, 109, 112, .12);
  background:
    radial-gradient(circle at 92% 6%, rgba(77, 196, 157, .12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 250, 232, .9));
}

.home-echoes__status {
  margin-top: -4px;
}

.home-echoes__list {
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 2px;
}

.home-echoes__list .event-line,
.home-echoes__list .event-line:first-child {
  grid-template-columns: 92px 18px 44px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 112px;
  border: 1px solid color-mix(in srgb, var(--event-accent) 18%, rgba(23, 109, 112, .13));
  border-radius: 18px;
  padding: 13px 15px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--event-accent) 9%, #fff), rgba(255, 255, 255, .78) 48%, rgba(255, 255, 255, .9));
  box-shadow: 0 9px 24px rgba(25, 67, 69, .075), inset 0 1px rgba(255, 255, 255, .82);
}

.home-echoes__list .event-line time {
  align-content: center;
  justify-items: start;
}

.home-echoes__list .event-line time strong {
  color: #244c56;
  font-size: .78rem;
}

.home-echoes__list .event-line time span {
  margin-top: 3px;
  color: #6b8287;
  font-size: .6rem;
}

.home-echoes__list .event-line__rail::before,
.home-echoes__list .event-line:first-child .event-line__rail::before,
.home-echoes__list .event-line:last-child .event-line__rail::before,
.home-echoes__list .event-line--with-bullets:first-child .event-line__rail::before,
.home-echoes__list .event-line--with-bullets:last-child .event-line__rail::before {
  top: 10px;
  bottom: 10px;
}

.home-echoes__list .event-line--with-bullets .event-line__rail {
  place-items: center;
}

.home-echoes__list .event-line--with-bullets .event-line__rail i {
  margin-top: 0;
}

.home-echoes__list .event-line__content > strong,
.home-echoes__list .event-line__content > .event-line__body {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.event-line__meta .event-line__window {
  max-width: none;
  color: #17634f;
  background: rgba(71, 191, 151, .14);
  box-shadow: inset 0 0 0 1px rgba(43, 151, 118, .18);
  white-space: nowrap;
}

body.terminal-view .event-line__meta .event-line__window {
  color: #baf6e3;
  background: rgba(123, 225, 196, .12);
  box-shadow: inset 0 0 0 1px rgba(123, 225, 196, .22);
}

@media (max-width: 1080px) {
  body:not(.terminal-view) .site-header__inner {
    border-radius: 20px;
    padding: 7px 8px;
  }

  .site-header__players .site-header__players-tooltip {
    top: calc(env(safe-area-inset-top, 0px) + 128px);
    right: 12px;
  }
}

@media (max-width: 680px) {
  body:not(.terminal-view) .site-header {
    padding: 5px 0;
  }

  body:not(.terminal-view) .site-header__inner {
    width: calc(100% - 12px);
    gap: 5px 7px;
    border-radius: 17px;
    padding: 5px;
  }

  .site-header__telemetry {
    min-width: 0;
    gap: 1px;
    border-radius: 13px;
    padding: 2px;
  }

  .site-header__players,
  .site-header__updated,
  .site-header__refresh {
    min-height: 34px;
    border-radius: 10px;
  }

  .site-header__players {
    padding-inline: 7px;
  }

  .site-header__updated {
    min-width: 43px;
    max-width: 52px;
  }

  .site-header__refresh {
    min-width: 92px;
    padding-inline: 7px;
  }

  .source-freshness > summary {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .source-freshness > summary img {
    width: 18px;
    height: 18px;
  }

  .source-freshness > summary::after {
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
  }

  .site-header__players .site-header__players-tooltip,
  .source-freshness__panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 94px);
    right: 6px;
    left: 6px;
    width: auto;
  }

  .site-header__players .site-header__players-tooltip {
    padding: 11px;
  }

  .site-header__players .site-header__players-tooltip ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .site-header__players .site-header__players-tooltip li {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 38px;
    padding: 5px 6px;
  }

  .site-header__players .site-header__players-tooltip-avatar {
    width: 25px;
    height: 25px;
  }

  .site-header__players .site-header__players-tooltip li b {
    font-size: 10.5px;
  }

  .site-header__players .site-header__players-tooltip li small {
    font-size: 8px;
  }

  .source-freshness__panel {
    padding: 12px;
  }

  .dashboard-hero .hero__copy {
    border-radius: 24px;
    padding: 22px 20px;
  }

  .dashboard-hero__routes .dashboard-hero__route {
    min-height: 92px;
    border-radius: 20px;
    padding: 14px;
  }

  .home-echoes__list {
    grid-auto-rows: 1fr;
    gap: 9px;
    padding-inline: 0;
  }

  .home-echoes__list .event-line,
  .home-echoes__list .event-line:first-child {
    grid-template-columns: 14px 40px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 6px 9px;
    height: 100%;
    min-height: 132px;
    border-width: 1px;
    border-radius: 16px;
    padding: 11px 10px;
  }

  .home-echoes__list .event-line time {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: baseline;
    gap: 6px;
  }

  .home-echoes__list .event-line time strong {
    font-size: .73rem;
  }

  .home-echoes__list .event-line time span {
    margin-top: 0;
    font-size: .56rem;
  }

  .home-echoes__list .event-line__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .home-echoes__list .event-line__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .home-echoes__list .event-line__content {
    grid-column: 3;
    grid-row: 2;
  }

  .event-line__meta .event-line__window {
    order: 3;
  }
}

.source-freshness > summary {
  cursor: help;
}

body.terminal-view .event-console {
  position: relative;
}

body.terminal-view .event-console__topbar {
  grid-template-columns: 90px minmax(0, 1fr) auto;
  grid-template-areas: "lights title pages";
  gap: 10px;
}

body.terminal-view .event-console__lights {
  grid-area: lights;
}

body.terminal-view .event-console__topbar > strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-pagination--top,
.event-pagination--top {
  box-sizing: border-box;
  grid-area: pages;
  display: inline-grid;
  grid-template-columns: 36px minmax(152px, max-content) 36px;
  align-items: center;
  min-height: 0;
  gap: 4px;
  border: 1px solid rgba(126, 238, 205, .16);
  border-radius: 999px;
  padding: 3px;
  background:
    linear-gradient(135deg, rgba(20, 51, 61, .92), rgba(10, 25, 32, .86)),
    radial-gradient(circle at 18% 0%, rgba(126, 238, 205, .16), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 12px 26px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.event-pagination--top *,
body.terminal-view .event-pagination--top * {
  box-sizing: border-box;
}

.event-pagination--top[hidden] {
  display: none;
}

.event-pagination--top .event-pagination__position {
  display: inline-flex;
  grid-column: 2;
  order: 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(159, 222, 207, .12);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(5, 18, 23, .48);
  color: rgba(229, 249, 243, .82);
  font-size: .62rem;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.event-pagination__label,
.event-pagination__total {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-pagination__page-input {
  width: clamp(4.6rem, 12vw, 6.2rem);
  min-width: 4.6rem;
  height: 22px;
  border: 1px solid rgba(126, 238, 205, .22);
  border-radius: 999px;
  padding: 0 5px;
  background: linear-gradient(180deg, rgba(8, 29, 35, .92), rgba(4, 14, 20, .92));
  color: #f4fff9;
  font: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .34);
  appearance: textfield;
  -moz-appearance: textfield;
}

.event-pagination__page-input::-webkit-outer-spin-button,
.event-pagination__page-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.event-pagination__page-input:focus-visible {
  outline: 2px solid rgba(126, 238, 205, .58);
  outline-offset: 2px;
}

.event-pagination--top button,
body.terminal-view .event-pagination--top button {
  display: inline-grid;
  position: relative;
  overflow: hidden;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(126, 238, 205, .22);
  border-radius: 999px;
  padding: 0;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, .2), transparent 28%),
    linear-gradient(145deg, rgba(44, 111, 125, .92), rgba(20, 55, 67, .94));
  color: #effff9;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 8px 18px rgba(0, 0, 0, .22);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.event-pagination--top button span,
body.terminal-view .event-pagination--top button span {
  display: block;
  transform: translateY(-1px);
}

.event-pagination--top button:hover:not(:disabled),
body.terminal-view .event-pagination--top button:hover:not(:disabled),
.event-pagination--top button:focus-visible,
body.terminal-view .event-pagination--top button:focus-visible {
  border-color: rgba(126, 238, 205, .64);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(145deg, rgba(68, 165, 153, .96), rgba(30, 90, 102, .98));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 24px rgba(43, 206, 169, .24);
  transform: translateY(-1px);
}

.event-pagination--top button:active:not(:disabled),
body.terminal-view .event-pagination--top button:active:not(:disabled) {
  transform: translateY(0);
}

.event-pagination--top button:disabled,
body.terminal-view .event-pagination--top button:disabled {
  border-color: rgba(159, 222, 207, .1);
  background: rgba(255, 255, 255, .045);
  color: rgba(211, 235, 229, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: not-allowed;
  opacity: 1;
}

.event-pagination--top > button.event-pagination__step:first-child,
body.terminal-view .event-pagination--top > button.event-pagination__step:first-child {
  grid-column: 1;
  min-width: 36px;
}

.event-pagination--top > button.event-pagination__step:last-child,
body.terminal-view .event-pagination--top > button.event-pagination__step:last-child {
  grid-column: 3;
  min-width: 36px;
}

body.terminal-view .event-console > .event-unseen {
  position: absolute;
  z-index: 32;
  top: 47px;
  right: 14px;
  width: auto;
  max-width: min(360px, calc(100% - 28px));
  justify-content: flex-start;
  min-height: 34px;
  margin: 0;
  border-color: rgba(255, 210, 141, .38);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  background: rgba(33, 42, 31, .92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  color: #ffe8bf;
  animation: terminal-toast-in .18s ease-out both;
}

body.terminal-view .event-console > .event-unseen strong {
  min-width: 24px;
  min-height: 24px;
}

body.terminal-view .event-console > .event-unseen span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes terminal-toast-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body.terminal-view,
  body.terminal-view main,
  body.terminal-view #evenements,
  body.terminal-view .events-disclosure__content,
  body.terminal-view .event-console {
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  body.terminal-view .event-console__topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "lights title"
      "pages pages";
    row-gap: 7px;
    column-gap: 8px;
    align-items: center;
    padding: 7px 10px 8px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body.terminal-view .event-console__topbar > * {
    min-width: 0;
  }

  body.terminal-view .event-pagination--top,
  .event-pagination--top {
    justify-self: stretch;
    width: min(100%, calc(100vw - 34px));
    max-width: min(100%, calc(100vw - 34px));
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 5px;
    padding: 4px;
  }

  .event-pagination--top .event-pagination__position {
    order: 0;
    min-height: 40px;
    gap: 5px;
    padding-inline: 6px;
    font-size: .64rem;
  }

  .event-pagination--top button,
  body.terminal-view .event-pagination--top button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    font-size: 1.48rem;
  }

  .event-pagination--top > button.event-pagination__step:first-child,
  body.terminal-view .event-pagination--top > button.event-pagination__step:first-child,
  .event-pagination--top > button.event-pagination__step:last-child,
  body.terminal-view .event-pagination--top > button.event-pagination__step:last-child {
    min-width: 42px;
  }

  .event-pagination__page-input {
    flex: 0 0 clamp(3.55rem, 19vw, 4.6rem);
    width: clamp(3.55rem, 19vw, 4.6rem);
    min-width: 3.55rem;
    height: 30px;
  }

  .event-pagination__label {
    flex: 0 0 auto;
  }

  .event-pagination__total {
    flex: 1 1 auto;
    text-align: left;
  }

  body.terminal-view .event-console__summary {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 4px;
  }

  body.terminal-view .event-console__summary span,
  body.terminal-view .event-console__summary time {
    min-width: 0;
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.35;
  }
}

@media (max-width: 720px) {
  body.terminal-view .event-pagination--top,
  .event-pagination--top {
    justify-self: start;
    width: min(318px, 100%);
    max-width: min(318px, 100%);
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .event-pagination--top button,
  body.terminal-view .event-pagination--top button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .event-pagination--top > button.event-pagination__step:first-child,
  body.terminal-view .event-pagination--top > button.event-pagination__step:first-child,
  .event-pagination--top > button.event-pagination__step:last-child,
  body.terminal-view .event-pagination--top > button.event-pagination__step:last-child {
    min-width: 40px;
  }

  .event-pagination__label {
    display: none;
  }

  .event-pagination--top .event-pagination__position {
    justify-content: space-between;
  }

  .event-pagination__total {
    flex: 0 1 auto;
    font-size: .58rem;
  }
}

.dashboard-hero__routes .dashboard-hero__route {
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  column-gap: 12px;
}

.dashboard-hero__route strong,
.dashboard-hero__route span:not(.dashboard-hero__route-icon) {
  min-width: 0;
}

.dashboard-hero__route em {
  justify-self: end;
  width: 34px;
  height: 34px;
}

.archipelago-map__toolbar--layers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  align-items: center;
  max-width: min(710px, calc(100% - 20px));
  gap: 4px;
}

.archipelago-map__toolbar--layers button,
.archipelago-map__toolbar--layers .map-base-toggle,
.archipelago-map__toolbar--layers button:last-child {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, auto) auto;
  width: auto;
  min-width: 0;
  min-height: 31px;
  gap: 6px;
  margin-left: 0;
  border-left: 0;
  border-radius: 9px;
  padding: 0 8px;
}

.archipelago-map__toolbar--layers button span {
  display: grid;
  min-width: 16px;
  place-items: center;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}

.archipelago-map__toolbar--layers button b {
  overflow: hidden;
  max-width: 86px;
  font-size: .56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archipelago-map__toolbar--layers button small {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .5rem;
  font-weight: 950;
}

.archipelago-map__toolbar--layers .map-layer-toggle.is-active,
.archipelago-map__toolbar--layers .map-base-toggle.is-active {
  background: color-mix(in srgb, #66efa8 22%, rgba(255, 255, 255, .1));
}

.global-poi-marker {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .34), transparent 28%),
    color-mix(in srgb, var(--poi-color, #259db9) 86%, #122b36);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--poi-color, #259db9) 38%, rgba(3, 20, 26, .42));
  text-decoration: none;
  transform: translate(-50%, -50%) scale(var(--map-inverse-scale, 1));
  transition: transform .15s ease, z-index .15s ease, box-shadow .15s ease;
}

.global-poi-marker > i {
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.global-poi-marker > strong {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  display: none;
  min-width: 150px;
  max-width: 230px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(5, 28, 35, .92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
  line-height: 1.2;
  pointer-events: none;
  transform: translateX(-50%);
}

.global-poi-marker > strong b,
.global-poi-marker > strong small {
  display: block;
}

.global-poi-marker > strong b {
  font-size: .62rem;
}

.global-poi-marker > strong small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .76);
  font-size: .52rem;
  font-weight: 750;
}

.global-poi-marker:hover,
.global-poi-marker:focus-visible {
  z-index: 18;
  outline: 0;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--poi-color, #259db9) 44%, rgba(3, 20, 26, .5));
  transform: translate(-50%, -50%) scale(calc(var(--map-inverse-scale, 1) * 1.16));
}

.global-poi-marker:hover > strong,
.global-poi-marker:focus-visible > strong {
  display: block;
}

.global-poi-legend {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(37, 157, 185, .16);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(239, 250, 246, .94), rgba(255, 255, 255, .9));
}

.global-poi-legend > strong {
  color: #176d70;
  font-size: .72rem;
}

.global-poi-legend span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--ink-soft);
  font-size: .62rem;
  font-weight: 850;
}

.global-poi-legend i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--poi-color);
  font-style: normal;
  font-weight: 950;
}

.global-poi-legend small {
  color: color-mix(in srgb, var(--poi-color) 74%, #132642);
  font-weight: 950;
}

.daily-metric,
.daily-tangible-card,
.daily-player-card,
.daily-highlight {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.daily-metric:hover,
.daily-tangible-card:hover,
.daily-player-card:hover,
.daily-highlight:hover {
  transform: translateY(-2px);
}

.daily-tangible-card {
  cursor: pointer;
}

.daily-tangible-card.is-active {
  border-color: color-mix(in srgb, var(--tangible-color, #259db9) 46%, rgba(22, 88, 82, .08));
  background:
    radial-gradient(circle at 96% 0, color-mix(in srgb, var(--tangible-color, #259db9) 16%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--tangible-color, #259db9) 14%, #fff), rgba(255, 255, 255, .9));
  box-shadow: 0 18px 36px color-mix(in srgb, var(--tangible-color, #259db9) 18%, rgba(25, 67, 69, .08));
}

.daily-filter-reset {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-left: 8px;
  border: 1px solid rgba(23, 109, 112, .18);
  border-radius: 999px;
  padding: 4px 10px;
  color: #176d70;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 760px) {
  .archipelago-map__toolbar--layers {
    grid-template-columns: repeat(2, minmax(0, auto));
    max-width: min(360px, calc(100% - 20px));
  }

  .archipelago-map__toolbar--layers button b {
    max-width: 74px;
  }
}

@media (max-width: 430px) {
  .site-header__updated {
    display: none;
  }

  .site-header__refresh {
    min-width: 98px;
  }
}

@media (max-width: 720px) {
  body.terminal-view .site-header__players .site-header__players-tooltip,
  body.terminal-view .source-freshness__panel {
    top: calc(env(safe-area-inset-top, 0px) + 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand__emblem,
  .dashboard-hero__route,
  .dashboard-hero__route-icon,
  .dashboard-hero__route em,
  .source-freshness__panel,
  .global-poi-marker,
  .daily-metric,
  .daily-tangible-card,
  .daily-player-card,
  .daily-highlight {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

.archipelago-map__toolbar--layers {
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 5px;
  max-width: min(520px, calc(100% - 20px));
}

.archipelago-map__toolbar--layers button,
.archipelago-map__toolbar--layers .map-base-toggle,
.archipelago-map__toolbar--layers button:last-child {
  min-height: 34px;
  border-radius: 11px;
  padding-inline: 9px;
}

.archipelago-map__toolbar--layers button b {
  max-width: 92px;
}

.archipelago-map figcaption {
  max-width: min(420px, calc(100% - 20px));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.global-base-legend {
  background:
    radial-gradient(circle at 96% 0, rgba(64, 200, 117, .16), transparent 34%),
    linear-gradient(145deg, rgba(246, 255, 251, .95), rgba(255, 255, 255, .9));
}

.daily-summary-block h2,
.daily-section h2 {
  color: #123641;
}

.daily-brief__list li {
  border-radius: 12px;
  border-top: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .58);
}

@media (max-width: 760px) {
  .archipelago-map__toolbar--layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 20px);
    max-width: none;
  }

  .archipelago-map__toolbar--layers button,
  .archipelago-map__toolbar--layers .map-base-toggle,
  .archipelago-map__toolbar--layers button:last-child {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .archipelago-map__toolbar--layers button b {
    max-width: 58px;
  }

  .daily-brief__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Terminal stable: six échos restent constants; le contenu se coupe à l’intérieur des lignes. */
body.terminal-view {
  --terminal-visible-echoes: 6;
  --terminal-row-height: clamp(74px, 8.8svh, 88px);
  --terminal-stream-padding-y: 6px;
}

body.terminal-view .event-stream {
  display: grid;
  grid-auto-rows: var(--terminal-row-height);
  align-content: start;
  block-size: calc((var(--terminal-row-height) * var(--terminal-visible-echoes)) + (var(--terminal-stream-padding-y) * 2));
  min-block-size: calc((var(--terminal-row-height) * var(--terminal-visible-echoes)) + (var(--terminal-stream-padding-y) * 2));
  max-block-size: calc((var(--terminal-row-height) * var(--terminal-visible-echoes)) + (var(--terminal-stream-padding-y) * 2));
  overflow: visible;
  padding-block: var(--terminal-stream-padding-y);
}

body.terminal-view .event-console {
  overflow: visible;
}

body.terminal-view .event-line {
  box-sizing: border-box;
  position: relative;
  block-size: var(--terminal-row-height);
  min-block-size: 0;
  max-block-size: var(--terminal-row-height);
  align-content: center;
  overflow: visible;
}

body.terminal-view .event-line:hover,
body.terminal-view .event-line:focus,
body.terminal-view .event-line:focus-within {
  z-index: 50;
}

body.terminal-view .event-line__rail,
body.terminal-view .event-line__content {
  min-block-size: 0;
  overflow: hidden;
}

body.terminal-view .event-line__content {
  padding-inline-end: 0;
}

body.terminal-view .event-line__meta {
  display: flex;
  flex-wrap: nowrap;
  max-inline-size: 100%;
  overflow: hidden;
}

body.terminal-view .event-line__meta b,
body.terminal-view .event-line__meta em {
  flex: 0 1 auto;
  max-inline-size: min(190px, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-line__content > strong {
  display: block;
  overflow: hidden;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-line__content > .event-line__body,
body.terminal-view .event-line__content > span:not(.event-line__meta) {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.terminal-view .event-line__bullets {
  flex-wrap: nowrap;
  max-block-size: 24px;
  overflow: hidden;
}

body.terminal-view .event-line__bullets li {
  flex: 0 1 auto;
  max-inline-size: min(220px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.terminal-view .event-line__more {
  appearance: none;
  position: absolute;
  right: 2px;
  bottom: 7px;
  display: none;
  min-inline-size: 62px;
  border: 1px solid rgba(126, 238, 205, .18);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(6, 22, 28, .82);
  color: rgba(222, 250, 242, .62);
  cursor: pointer;
  font-family: inherit;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1;
  opacity: .58;
  text-transform: uppercase;
  text-align: center;
  transition: opacity .16s ease, transform .16s ease;
}

body.terminal-view .event-line:focus-visible .event-line__more,
body.terminal-view .event-line.is-detail-open .event-line__more {
  opacity: 1;
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
  body.terminal-view .event-line:hover .event-line__more {
    opacity: 1;
    transform: translateY(-1px);
  }
}

body.terminal-view .event-line__tooltip {
  position: absolute;
  z-index: 90;
  top: calc(100% - 4px);
  left: clamp(86px, 25%, 222px);
  display: grid;
  width: min(620px, calc(100vw - 40px));
  max-block-size: min(440px, calc(100svh - 110px));
  gap: 8px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--event-accent) 34%, rgba(126, 238, 205, .2));
  border-radius: 18px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--event-accent) 20%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(10, 32, 39, .98), rgba(5, 17, 23, .98));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #eafff8;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transform-origin: 18% 0;
  transition:
    opacity .16s ease,
    transform .16s ease;
  visibility: hidden;
}

body.terminal-view .event-line:nth-last-child(-n+2) .event-line__tooltip {
  top: auto;
  bottom: calc(100% - 4px);
  transform: translateY(-8px) scale(.98);
  transform-origin: 18% 100%;
}

body.terminal-view .event-line:focus-visible .event-line__tooltip,
body.terminal-view .event-line.is-detail-open .event-line__tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  body.terminal-view .event-line:hover .event-line__tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
}

body.terminal-view .event-line__tooltip-kicker {
  color: rgba(198, 233, 225, .62);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.terminal-view .event-line__tooltip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body.terminal-view .event-line__tooltip-meta em {
  border: 1px solid color-mix(in srgb, var(--event-accent) 24%, transparent);
  border-radius: 999px;
  padding: 3px 7px;
  background: color-mix(in srgb, var(--event-accent) 11%, transparent);
  color: rgba(234, 255, 248, .78);
  font-size: .58rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

body.terminal-view .event-line__tooltip > strong {
  color: #ffffff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.04rem;
  line-height: 1.1;
}

body.terminal-view .event-line__tooltip-body {
  color: rgba(225, 247, 242, .78);
  font-size: .8rem;
  line-height: 1.45;
}

body.terminal-view .event-line__tooltip-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
  max-block-size: 210px;
  overflow: auto;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

body.terminal-view .event-line__tooltip-items li {
  border: 1px solid color-mix(in srgb, var(--event-accent) 22%, transparent);
  border-radius: 11px;
  padding: 6px 8px;
  background: color-mix(in srgb, var(--event-accent) 9%, rgba(255, 255, 255, .025));
  color: rgba(239, 255, 250, .9);
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  body.terminal-view {
    --terminal-row-height: clamp(86px, 12svh, 104px);
    --terminal-stream-padding-y: 4px;
  }

  body.terminal-view .event-line {
    padding-block: 7px;
  }

  body.terminal-view .event-line__meta {
    gap: 4px;
  }

  body.terminal-view .event-line__meta b,
  body.terminal-view .event-line__meta em {
    max-inline-size: min(42vw, 150px);
  }

  body.terminal-view .event-line__content > strong {
    font-size: .76rem;
  }

  body.terminal-view .event-line__content > .event-line__body,
  body.terminal-view .event-line__content > span:not(.event-line__meta) {
    font-size: .64rem;
  }

  body.terminal-view .event-line__content {
    padding-inline-end: 56px;
  }

  body.terminal-view .event-line__bullets {
    max-block-size: 21px;
  }

  body.terminal-view .event-line__bullets li {
    max-inline-size: min(44vw, 160px);
    font-size: .58rem;
  }

  body.terminal-view .event-line__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    right: 0;
    bottom: 5px;
    min-inline-size: 48px;
    padding-inline: 6px;
    font-size: .5rem;
    opacity: .66;
  }

  body.terminal-view .event-line__tooltip,
  body.terminal-view .event-line:nth-last-child(-n+2) .event-line__tooltip {
    right: 0;
    left: 0;
    width: min(100%, calc(100vw - 24px));
    max-block-size: min(390px, 64svh);
    transform-origin: 50% 0;
  }

  body.terminal-view .event-line:nth-last-child(-n+2) .event-line__tooltip {
    transform-origin: 50% 100%;
  }

  body.terminal-view .event-line__tooltip-items {
    grid-template-columns: 1fr;
    max-block-size: 190px;
  }
}
