body[data-stage=world] { background: radial-gradient(ellipse at 20% 30%, #19191a, #101113 64%); }
body[data-stage=world] .layout { display: block; max-width: 1540px; padding: 0 clamp(20px,4.8vw,76px); }
#network-world { padding-block: clamp(18px,3vh,42px) 24px; }
.atlas-owner { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #d3b898; }
.atlas-headline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 9px 0 clamp(18px,2.6vh,31px); }
#atlas-heading { max-width: 100%; font-size: clamp(29px,3.3vw,56px); font-weight: 490; letter-spacing: -.045em; line-height: 1.13; overflow-wrap: anywhere; white-space: pre-wrap; }
.edit-goal { flex: none; border: 1px solid #494341; background: transparent; color: #c8c1b9; border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.edit-goal:hover { border-color: #c0a68c; color: white; }
.atlas-layout { display: grid; grid-template-columns: minmax(0,1.95fr) minmax(290px,.95fr); border: 1px solid #3c3837; border-radius: 22px; overflow: hidden; background: #181819; }
.atlas-surface { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #101318; isolation: isolate; }
.atlas-inspector { min-width: 0; display: flex; flex-direction: column; padding: clamp(18px,2.1vw,34px); border-left: 1px solid #3c3837; background: linear-gradient(155deg,#242121,#171719 85%); }
.catalog-line, .catalog-navigation, .record-kind, .atlas-footer { display: flex; align-items: center; }
.catalog-line { justify-content: space-between; color: #c8c4bd; gap: 9px; font-size: 13px; }
.catalog-number { display: grid; place-items: center; min-width: 24px; padding: 2px 6px; border: 1px solid #514a42; border-radius: 20px; color: #e5cfb1; font-variant-numeric: tabular-nums; }
.record-body { margin-block: auto; padding-block: 21px 17px; overflow-wrap: anywhere; }
#refine-path { align-self: start; color: #ead4b7; }
.record-body h2 { font-size: clamp(23px,2vw,36px); line-height: 1.08; letter-spacing: -.043em; margin: 8px 0; }
.record-kind { gap: 9px; color: #eec595; font-size: 13px; }
.record-kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--node-color,#e9b279); }
.record-title { font-size: 15px; color: #d5d2cf; line-height: 1.38; margin-top: 6px; }
.record-measure { font-size: 19px; font-weight: 550; margin: 12px 0 5px; }
.record-measure small { font-size: 12px; font-weight: 450; margin-left: 6px; color: #bcb7af; }
.record-why { font-size: 14px; color: #ccc5b8; line-height: 1.4; margin: 12px 0; }
.record-body details { border-block: 1px solid #3c3734; font-size: 13px; line-height: 1.4; color: #c6c2bb; margin-top: 12px; }
.record-body summary { cursor: pointer; padding-block: 10px; color: #e2dacc; }
.record-body dl { margin: 1px 0 12px; }
.record-body dt { color: #d2b28e; margin-top: 8px; }
.record-body dd { margin: 2px 0 0; }
.record-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 13px; font-size: 13px; color: #f1cda7; }
.record-links a:hover { text-decoration: underline; }
.catalog-navigation { gap: 13px; margin-top: auto; justify-content: flex-end; font-size: 12px; color: #bab4ae; }
.catalog-navigation button { color: #f2ece3; background: #272626; border: 1px solid #4a4543; width: 34px; height: 33px; border-radius: 50%; font-size: 16px; }
.catalog-navigation button:hover { background: #3a332d; }
.atlas-footer { justify-content: space-between; gap: 12px; margin-top: 16px; }
#catalog-age { font-size: 12px; line-height: 1.4; color: #b5b1aa; }
#catalog-age a { border-bottom: 1px solid #57544b; }
.atlas-footer .primary { white-space: nowrap; }
.plan-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
#step-source:empty { display: none; }
#step-source a { display: inline-flex; padding-block: 8px; color: #f1cda7; font-size: 15px; font-weight: 530; }
#step-source a:hover { text-decoration: underline; }
body[data-journey=network] .desktop-world-viewport .memory-domain-altimeter { display: none; }

#map-expanded { position: absolute; inset: 0; }
.atlas-surface { background: #050709; }
.atlas-layout { min-height: 390px; height: clamp(435px,64svh,700px); }
.atlas-inspector { min-height: 0; }
.record-body { overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #5c534a transparent; overscroll-behavior: contain; }
.catalog-navigation { padding-top: 7px; }
[data-network-start] .atlas-layout { height: auto; min-height: clamp(440px,62svh,680px); grid-template-columns: minmax(0,1.55fr) minmax(320px,1fr); }
#network-start-card { padding: clamp(24px,3vw,46px); justify-content: center; gap: 24px; }
#network-start-choice { display: grid; gap: 8px; color: #d3c8bb; font-size: 14px; }
#network-start-goal { width: 100%; min-height: 44px; color: #f4eee4; background: #211f20; border: 1px solid #58514a; border-radius: 9px; padding: 8px 11px; font: inherit; }
.network-start-content { display: grid; gap: 11px; }
#network-start-step { max-width: 24ch; font-size: clamp(27px,2.65vw,43px); line-height: 1.13; font-weight: 490; letter-spacing: -.04em; text-wrap: pretty; }
#network-start-detail { max-width: 38ch; color: #d5cbc1; font-size: 15px; line-height: 1.48; }
#network-start-time { color: #e3c8a9; font-size: 13px; }
.network-start-actions { display: grid; justify-items: start; gap: 10px; border-top: 1px solid #453e39; padding-top: 20px; }
.network-start-actions > p:not(.error) { color: #bdb3aa; font-size: 13px; line-height: 1.45; }
#network-options-link { color: #debb96; font-size: 13px; padding-block: 5px; }
#network-options-link:hover { color: #fff2df; text-decoration: underline; text-underline-offset: 3px; }
#network-start-error:empty, #network-join-error:empty { display: none; }
#network-join-window { width: min(440px,calc(100% - 32px)); margin: auto; color: #f8f2e9; background: #211f1e; padding: clamp(22px,4vw,32px); border: 1px solid #534842; border-radius: 20px; }
#network-join-window::backdrop { background: #0c0b0bc7; }
#network-join-title { font-size: 27px; line-height: 1.14; letter-spacing: -.035em; }
#network-join-window p { margin-top: 12px; color: #d1c7bf; font-size: 15px; line-height: 1.45; }
#network-start-card:has(.play-highlights:not([hidden])) {
  gap: clamp(14px, 1.6vw, 20px);
}
.play-highlights {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.play-highlights h3 {
  margin: 0;
  color: #e3c9ae;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.35;
}
.play-highlight-items {
  overflow: hidden;
  border: 1px solid #51453b;
  border-radius: 11px;
  background: #211e1c;
}
.play-highlight {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 11px;
  overflow-wrap: anywhere;
}
.play-highlight + .play-highlight {
  border-block-start: 1px solid #473d35;
}
.play-highlight-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 9px;
}
.play-highlight-header a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #f2dcc3;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #92785e;
  text-underline-offset: 3px;
}
.play-highlight-header a:hover {
  color: #fff3e3;
  text-decoration-color: currentColor;
}
.play-highlight-header a:focus-visible { outline-offset: 2px; }
.play-highlight-header span,
.play-highlight-detail {
  color: #c4b9ad;
  font-size: 12px;
  line-height: 1.35;
}
.play-highlight-games,
.network-preview-games {
  color: #e0c5a9;
  font-size: 13px;
  font-weight: 505;
  line-height: 1.4;
  text-wrap: pretty;
}
.play-highlight-games:empty,
.play-highlight-detail:empty,
.network-preview-games:empty { display: none; }
.network-previews {
  display: grid;
  gap: 14px;
  margin-block: clamp(23px, 4vw, 42px) 6px;
  padding-block-start: clamp(14px, 2.4vw, 24px);
  border-block-start: 1px solid #3d3834;
}
.network-previews-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 18px;
}
.network-previews-header h2 {
  color: #f3ebe1;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
}
.network-previews-header p,
.network-preview-status {
  margin-top: 4px;
  color: #bdb3a9;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}
.network-preview-cards:not(:empty) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(205px, 30%)), 1fr));
  gap: 12px;
}
.network-preview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: clamp(16px, 2.1vw, 26px);
  border: 1px solid #403a35;
  border-radius: 15px;
  background: linear-gradient(145deg, #211e1c, #1b1b1b 70%);
  overflow-wrap: anywhere;
}
.network-preview-card h3 {
  margin: 0;
  color: #f5eee5;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 530;
  line-height: 1.24;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.network-preview-venue {
  color: #d7b898;
  font-size: 13px;
  line-height: 1.35;
}
.network-preview-fit,
.network-preview-check {
  color: #cdc3b8;
  font-size: 14px;
  line-height: 1.46;
  text-wrap: pretty;
}
.network-preview-check {
  color: #bfb3a6;
  font-size: 13px;
}
.network-preview-source {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  margin-top: auto;
  color: #e3c3a1;
  font-size: 13px;
  font-weight: 520;
  text-decoration: underline;
  text-decoration-color: #9e7d5d;
  text-underline-offset: 3px;
}
.network-preview-source:hover { color: #fff2df; text-decoration-color: currentColor; }
.network-preview-more { justify-self: start; min-height: 44px; color: #e3c3a1; padding: 7px 2px; }
@media (pointer: coarse) {
  .network-preview-source { min-height: 44px; }
}
@media (max-width: 820px) {
  body[data-stage=world] .layout { padding-inline: 18px; }
  .atlas-layout { grid-template-columns: minmax(0,1.35fr) minmax(255px,1fr); }
}
@media (max-width: 700px) {
  body[data-stage=world] .layout { padding-inline: 16px; }
  #network-world { padding-top: 18px; }
  .atlas-headline { flex-wrap: wrap; gap: 8px; margin: 7px 0 15px; }
  .edit-goal { font-size: 12px; padding: 7px 12px; }
  .atlas-layout { grid-template-columns: minmax(0,1fr); border-radius: 16px; height: auto; }
  .atlas-surface { min-height: clamp(355px,56svh,485px); }
  .atlas-inspector { padding: 17px 18px; border-left: 0; border-top: 1px solid #3c3837; }
  .record-body { padding-block: 14px; }
  .atlas-footer .primary { padding-inline: 16px; gap: 10px; }
  [data-network-start] .atlas-layout { grid-template-columns: minmax(0,1fr); min-height: auto; }
  [data-network-start] .atlas-surface { min-height: clamp(285px,40svh,365px); }
  #network-start-card { grid-row: 1; padding: 20px; gap: 17px; border-top: 0; border-bottom: 1px solid #3c3837; }
  .network-start-actions { padding-top: 15px; }
  .network-previews { gap: 10px; }
  .network-previews-header { flex-wrap: wrap; }
  .network-preview-cards:not(:empty) { grid-template-columns: minmax(0, 1fr); gap: 9px; }
}
