@font-face {
  font-family: DM Sans;
  src: url(dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(fraunces.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Lilita One;
  src: url(lilita-one.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5eee0;
  --paper: #faf4e8;
  --ink: #322319;
  --body: #513c2b;
  --muted: #705c49;
  --rule: #d8c8af;
  --accent: #8d4c26;
  --scroll-thumb: #90704f;
  --scroll-track: #efe5d5;
  --meadow: #2e4524;
  --gutter: clamp(16px, 4vw, 64px);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --display: "Lilita One", "DM Sans", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

* { box-sizing: border-box; scrollbar-width: thin; }

@supports not (scrollbar-color: #000 #fff) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--scroll-track); }
  ::-webkit-scrollbar-thumb {
    border: 1px solid var(--scroll-track);
    border-radius: 6px;
    background: var(--scroll-thumb);
  }
}
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 45% 26%, #fcf5e7 0%, transparent 69%); }
html:has(#atlas-view:not([hidden])) {
  background-color: var(--meadow);
  background-image:
    radial-gradient(ellipse at 16% 19%, #fff0ae24, transparent 52%),
    linear-gradient(117deg, #bbb77412, transparent 51%, #21342332),
    url(grass.jpg);
  background-position: center, center, center top;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, min(1060px, 74vw) min(700px, 49vw);
}
body:has(#atlas-view:not([hidden]), #compare-view:not([hidden])) {
  display: flex;
  flex-direction: column;
}
body:has(#atlas-view:not([hidden])) {
  min-height: 100dvh;
  background: none;
}
body:has(#compare-view:not([hidden])) { height: 100dvh; min-height: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid #83512d; outline-offset: 3px; }
::selection { color: #2f2116; background: #dfba7f; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  position: relative;
  z-index: 2;
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner, .shell {
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar-inner {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.wordmark {
  color: var(--ink);
  font: 400 clamp(24px, 3vw, 35px)/1 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin-left: auto; }
.topbar nav a {
  padding-block: 4px;
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}
.topbar nav a:hover, .topbar nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.github-link {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-inline-start: -8px;
  border-radius: 5px;
}
.github-link img { height: auto; }
.github-link:hover { background: var(--page); }
.shell { padding-bottom: 48px; }
.shell:has(#atlas-view:not([hidden]), #compare-view:not([hidden])) {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding-bottom: 0;
}
.shell:has(#compare-view:not([hidden])) {
  max-width: none;
  min-height: 0;
  padding-inline: 0;
}
#atlas-view {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.map-tools {
  position: relative;
  z-index: 8;
}
body:has(#atlas-view[hidden]) .map-tools { display: none; }
.map-search-wrap { position: relative; width: clamp(136px, 17vw, 180px); }

.search-box {
  display: flex;
  min-height: 33px;
  border-bottom: 1px solid #b9a487;
  align-items: center;
}
.search-box:focus-within { border-bottom-color: var(--accent); }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 5px 1px;
  font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.map-search-wrap kbd {
  flex: none;
  min-width: 18px;
  margin-inline-start: 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--muted);
  font: 500 12px/16px var(--sans);
  text-align: center;
}
.search-results {
  position: absolute;
  top: 37px;
  right: 0;
  min-width: min(254px, 82vw);
  max-height: 314px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2px 12px;
}
.search-results button {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: left;
  padding: 8px 2px;
}
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover { color: var(--accent); }
.search-results button:focus-visible { outline-offset: -2px; }
.search-results > p { padding: 7px 2px; color: var(--muted); }

.board {
  flex: 1;
  min-height: min(240px, 44dvh);
  position: relative;
  isolation: isolate;
  margin-inline: calc(var(--gutter) * -1);
}
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.stage.on-tile { cursor: pointer; }
.stage.dragging { cursor: grabbing; }
.board-controls {
  position: absolute;
  top: 12px;
  right: var(--gutter);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #bda17d;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 3px 10px #231d1640;
}
.board-controls button {
  min-height: 32px;
  padding: 3px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.board-controls button:hover { background: var(--page); color: var(--ink); }
.board-controls button[aria-pressed=true] { background: #ebdac0; color: var(--ink); font-weight: 700; }
.playback-note {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  z-index: 8;
  max-width: min(370px, calc(100% - 230px));
  padding: 6px 12px;
  border: 1px solid #bda17d;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 3px 10px #231d1640;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
}
.stage canvas, .map-labels, .marker-layer, .egg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-labels, .marker-layer, .egg-layer { pointer-events: none; }
.egg-hotspot {
  position: absolute;
  pointer-events: auto;
  border: 0;
  border-radius: 40%;
  padding: 0;
  background: transparent;
}
.egg-hotspot:hover, .egg-hotspot[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px #fff2cb9c, 0 0 10px #ffe3a44d;
}
.egg-hotspot[data-note]::after {
  content: attr(data-note) / '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  translate: -50% 0;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 2px 6px #30241333;
  color: var(--ink);
  font: 600 12px/1.4 var(--sans);
  white-space: nowrap;
  pointer-events: none;
}
.egg-player {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 19;
  width: min(368px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #ab8762;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 4px 18px #251c1755;
}
.egg-player header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.egg-player h2 { font: 600 20px/1.2 var(--serif); }
#egg-source { color: var(--muted); font-size: 12px; }
.egg-media { margin: 9px 0 6px; }
.egg-media iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16/9;
  border: 0;
  background: var(--ink);
}
.egg-player > a { font-size: 12px; }
.zoom-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border: 1px solid #aa855e;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 4px 16px #3223194d;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: show-zoom-hint 1.35s ease both;
}
.zoom-hint-touch { display: none; }
@keyframes show-zoom-hint {
  0%, 100% { opacity: 0; }
  12%, 78% { opacity: 1; }
}
@media (pointer: coarse) {
  .zoom-hint-mouse { display: none; }
  .zoom-hint-touch { display: inline; }
}

.map-token {
  --plaque-size: 24px;
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--plaque-size);
  height: var(--plaque-size);
  padding: 3px;
  border: 1px solid #b08759;
  border-radius: 5px;
  background: linear-gradient(145deg, #fff8e8, #e4c198);
  box-shadow: 0 2px 0 #a4784e, 2px 4px 4px #60391d60, inset 0 0 1px 1px #fff5df;
  transform: translate(-50%, -58%) rotate(-5deg);
  color: var(--ink);
  pointer-events: auto;
  line-height: 1;
  z-index: 1;
  transition: transform 120ms ease-out;
}
.map-token:nth-of-type(3n + 2) { transform: translate(-50%, -58%) rotate(5deg); }
.map-token:nth-of-type(3n) { transform: translate(-50%, -58%) rotate(-1deg); }
.map-token.key { --plaque-size: 32px; padding: 4px; }
.map-token img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex: none;
  border-radius: 2px;
  pointer-events: none;
}
.map-token .token-name, .map-token .map-token-name, .map-token > i { display: none; }
.map-token::after {
  content: attr(data-label);
  position: absolute;
  pointer-events: none;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 160px;
  padding: 4px 7px;
  background: var(--paper);
  border: 1px solid #ae8a5d;
  box-shadow: 0 2px 5px #60391d36;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
  opacity: 0;
}
.map-token:not([data-label])::after { display: none; }
.map-token:hover, .map-token:focus-visible {
  transform: translate(-50%, -63%) rotate(0);
  z-index: 6;
}
.map-token:hover::after, .map-token:focus-visible::after { opacity: 1; }
.map-token.is-selected { outline: 2px solid #814725; outline-offset: 2px; z-index: 4; }

.event-token {
  position: absolute;
  pointer-events: auto;
  display: block;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -83%);
  z-index: 3;
}
.event-token::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 22px;
  left: 7px;
  bottom: 3px;
  border-radius: 3px;
  background: #764828;
  box-shadow: 1px .5px #c79762, 3px 4px 3px #63401f79;
}
.event-token::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  height: 12px;
  width: 17px;
  background: linear-gradient(104deg, #3a261b42, #fff8dc2c 35%, #542e172e 74%, #fff7d742), var(--signal, #eac477);
  clip-path: polygon(0 0, 36% 11%, 68% 2%, 100% 16%, 84% 53%, 98% 88%, 64% 78%, 36% 91%, 0 83%);
  transform: rotate(-5deg);
  transform-origin: left center;
}
.event-token:hover, .event-token:focus-visible, .event-token.is-selected { z-index: 7; }
.event-token:hover::after, .event-token:focus-visible::after, .event-token.is-selected::after {
  filter: saturate(1.7);
  transform: scale(1.15) rotate(-8deg);
}
.stage .event-token:not(:is(.pulse, .is-selected, :hover, :focus-visible))::after {
  animation: flag-flutter 4.8s ease-in-out var(--flag-delay, -2s) infinite;
}
.stage .event-token:nth-of-type(4n + 2) { --flag-delay: -.8s; }
.stage .event-token:nth-of-type(4n + 3) { --flag-delay: -3.2s; }
.stage .event-token:nth-of-type(4n) { --flag-delay: -4.1s; }
@keyframes flag-flutter {
  0%, 76%, 100% { transform: rotate(-5deg); }
  82% { transform: skewY(-6deg) rotate(-7deg); }
  90% { transform: skewY(4deg) rotate(-3deg); }
}
.stage .event-token.pulse::after { animation: flag-pulse .52s ease-in-out 2; }
@keyframes flag-pulse {
  50% { transform: skewY(-10deg) scale(1.2) rotate(-4deg); filter: saturate(1.7); }
}

.map-popover {
  position: absolute;
  width: min(305px, calc(100% - 18px));
  padding: 15px 16px;
  z-index: 9;
  background: var(--paper);
  border: 1px solid #bb9d75;
  box-shadow: 2px 7px 20px #57371e3b;
  color: var(--body);
}
.map-popover h3 {
  color: var(--ink);
  margin: 0 45px 6px 0;
  font-size: 15px;
  line-height: 1.3;
}
.map-popover p { font-size: 13px; line-height: 1.45; }
.popover-meta, .popover-kicker { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.popover-close {
  position: absolute;
  top: 10px;
  right: 13px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.popover-close:hover, .popover-close:focus-visible { color: var(--ink); }
.popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--rule);
}
.evidence-link {
  color: var(--accent);
  text-decoration-line: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.signal-delta { font-size: 11px; color: var(--muted); }

.history-controls {
  position: relative;
  flex: none;
  isolation: isolate;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
.history-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
.history-days {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  padding: 3px;
}
.history-days::before { content: ""; flex: 1 0 0; }
.history-days button {
  position: relative;
  flex: none;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--body);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.history-days button[data-has-events]::after {
  position: absolute;
  bottom: 1px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #91613d;
  content: "";
}
.history-days button:hover { background: #eee2ce; }
.history-days button[data-month-start] { margin-inline-start: 5px; border-inline-start-color: var(--rule); }
.history-days button[aria-current=date] {
  border-color: #a9784f;
  background: #ebdac0;
  color: var(--ink);
  font-weight: 700;
}
.history-days button:focus-visible { outline-offset: 0; }
.history-jump {
  display: grid;
  grid-template-columns: 59px auto minmax(111px, 122px) 39px;
  flex: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.history-controls input {
  min-height: 29px;
  width: 100%;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid #b99b74;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.history-controls input::-webkit-calendar-picker-indicator { cursor: pointer; }
.history-jump button, .utility-button, .compare-pick, .category-filter button, .provider-link {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--accent);
  font-size: 13px;
  text-align: left;
}
.history-jump button:hover, .utility-button:hover, .compare-pick:hover,
.category-filter button:hover, .provider-link:hover, .popover-close:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.history-jump button:disabled { color: var(--muted); opacity: .55; text-decoration: none; }
.history-jump .history-play {
  min-height: 29px;
  padding: 3px 5px;
  border: 1px solid #703b22;
  border-radius: 4px;
  background: var(--accent);
  color: #fff8e9;
  font-weight: 700;
  text-align: center;
}
.history-jump .history-play:hover { background: #733d1e; text-decoration: none; }

.updates-view { max-width: 820px; }
.updates-controls, .directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--rule);
  padding-block: 11px;
}
.category-filter { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.category-filter button { color: var(--muted); }
.category-filter button.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.select-wrap select {
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid #b9a487;
  border-radius: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--body);
  font-size: 13px;
  cursor: pointer;
}
.updates-feed > .update-day { border-top: 1px solid var(--rule); padding: 16px 0 22px; }
.updates-feed h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.updates-feed .update-item { padding-top: 12px; }
.updates-feed .update-item + .update-item { margin-top: 9px; border-top: 1px solid #e7dbca; }
.updates-feed h3 { font-size: 18px; line-height: 1.32; }
.update-item-head { display: flex; align-items: center; gap: 9px; }
.update-logo { flex: none; width: 27px; height: 27px; object-fit: contain; border-radius: 4px; }
.updates-feed .update-provider { margin: 0 0 1px; font-size: 12px; color: var(--muted); }
.updates-feed p { max-width: 70ch; margin-top: 4px; color: var(--body); }
.updates-feed time, .update-meta { font-size: 13px; color: var(--muted); }
.updates-feed .update-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-size: 13px; }
.updates-feed .update-item button { background: none; border: 0; padding: 0; color: var(--accent); }
.updates-feed .update-item button:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-heading { margin: 33px 0 18px; }
.page-heading h1 {
  font: 400 clamp(34px, 5vw, 52px)/1 var(--display);
  letter-spacing: -.015em;
}
.empty-state { color: var(--muted); padding: 15px 0; }
.muted { color: var(--muted); }
#compare-view, .directory {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
#compare-view .page-heading {
  flex: none;
  margin: clamp(14px, 3dvh, 33px) 0 clamp(8px, 2dvh, 18px);
  padding-inline: var(--gutter);
}
#compare-tray { flex: none; }
.directory-tools { flex: none; justify-content: flex-start; padding-inline: var(--gutter); }
.directory-tools .search-box { width: min(220px, 100%); }
.directory-tools > .muted { margin-left: auto; color: var(--muted); font-size: 12px; }
.directory-table, .compare-tray {
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
}
.directory-table { flex: 1; min-height: 0; }
.directory-table > .empty-state { padding-inline: var(--gutter); }
:is(.directory-table, .compare-tray) :is(th, td):first-child { padding-inline-start: var(--gutter); }
table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--body); font-size: 12px; }
.directory-table thead th, .compare-tray thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  box-shadow: inset 0 -1px var(--rule);
}
td .provider-link { color: var(--ink); font-weight: 700; font-size: 14px; padding: 0; }
.compare-pick:disabled { opacity: .5; }
.compare-tray { max-height: min(36dvh, 420px); margin-bottom: clamp(8px, 2dvh, 20px); }
.compare-tray .tray-button-row { display: flex; align-items: baseline; justify-content: space-between; }
.compare-tray h2, .method-section h2, .profile-section h3 {
  color: var(--ink);
  font: 600 22px/1.15 var(--serif);
  letter-spacing: -.035em;
}
.compare-tray table { min-width: 490px; }
.compare-tray th:first-child { width: 117px; }
.compare-tray ul, .compare-tray ol { padding-left: 16px; margin: 0; }
.method-grid { max-width: 760px; color: var(--body); }
.method-section { padding: 16px 0 19px; border-top: 1px solid var(--rule); }
.method-section h2 { margin-bottom: 7px; }
.method-section p + p { margin-top: 9px; }
.method-section ul { padding: 0; margin: 8px 0 0; list-style: none; }
.method-section li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.method-section li strong { color: color-mix(in srgb, var(--signal, var(--accent)) 40%, var(--ink)); }
.method-section li + li { margin-top: 4px; }

.profile {
  --profile-inset: clamp(12px, 2vw, 26px);
  position: fixed;
  inset: auto var(--profile-inset) max(var(--profile-inset), env(safe-area-inset-bottom, 0px)) auto;
  z-index: 20;
  width: min(410px, calc(100vw - var(--profile-inset) - var(--profile-inset)));
  max-width: none;
  max-height: 60dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b99c73;
  border-radius: 6px;
  box-shadow: 0 6px 20px #412b1b2d;
  background: var(--paper);
  color: var(--body);
}
.profile[open] { display: flex; flex-direction: column; }
.profile-head {
  flex: none;
  padding: 14px 17px 0;
  border-bottom: 1px solid var(--rule);
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-identity > div { flex: 1; min-width: 0; }
.profile-logo {
  flex: none;
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.profile-head h2 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 600 clamp(22px, 5vw, 30px)/1.04 var(--serif);
  letter-spacing: -.046em;
}
.profile-identity p, .profile-head > p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.profile-head .close-profile { flex: none; align-self: flex-start; margin-left: auto; white-space: nowrap; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 9px; }
.profile-tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 6px 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.profile-tabs button:hover, .profile-tabs button[aria-pressed=true] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.profile-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 17px 16px; overscroll-behavior: contain; }
.profile-section + .profile-section { margin-top: 17px; }
.profile-section h3 { margin-bottom: 6px; font-size: 19px; }
.profile-section p, .profile-section li { font-size: 14px; }
.profile-section ul { margin: 4px 0 0; padding-left: 17px; }
.profile-section li + li { margin-top: 4px; }
.profile-facts {
  min-width: 0;
  table-layout: fixed;
  margin-bottom: 14px;
}
.profile-facts th, .profile-facts td { padding: 6px 0; overflow-wrap: anywhere; }
.profile-facts th { width: 95px; padding-right: 9px; color: var(--muted); }
.profile-facts td { font-size: 13px; }
.profile-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 17px 12px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.comparison-cta {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid #703b22;
  border-radius: 4px;
  background: #8d4c26;
  color: #fff8e9;
  font-size: 13px;
  font-weight: 600;
}
.comparison-cta:not(:disabled):hover { background: #733d1e; text-decoration: none; }
.comparison-cta[aria-pressed=true] { background: #efe1cd; color: #713b20; }
.comparison-cta[aria-pressed=true]:hover { background: #e5d3b8; }
.comparison-cta:disabled { opacity: .55; }
.pricing-item {
  display: grid;
  grid-template-columns: minmax(98px, .68fr) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.pricing-item > span { color: var(--muted); font-size: 13px; }
.pricing-item strong, .pricing-item small { display: block; }
.pricing-item strong { font-size: 14px; }
.pricing-item small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.profile-event { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.profile-event h4 { color: var(--ink); margin: 2px 0; font-size: 15px; }
.profile-event .event-stamp { color: var(--muted); font-size: 12px; }
.profile-sources li { overflow-wrap: anywhere; }
.noscript { padding: 20px var(--gutter); }

.method-section h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

@media (550px < width <= 830px) {
  body:has(.egg-player:not([hidden])):has(.profile[open]) :is(.egg-player, .profile) {
    max-width: calc(50vw - max(20px, env(safe-area-inset-left) + 6px, env(safe-area-inset-right) + 6px));
  }
}

@media (max-width: 760px) {
  .topbar-inner { min-height: 50px; }
  .topbar nav a { font-size: 13px; }
  .map-token { --plaque-size: 19px; padding: 2px; border-radius: 4px; }
  .map-token.key { --plaque-size: 25px; padding: 3px; }
  .event-token { scale: .9; }
  .profile { max-height: 48dvh; }
}

@media (max-width: 700px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title source" "navigation search";
    min-height: 0;
    padding-block: 8px;
    gap: 4px 8px;
  }
  body:has(#atlas-view[hidden]) .topbar-inner { padding-block: 14px; }
  .wordmark { grid-area: title; font-size: clamp(19px, 4.9vw, 25px); letter-spacing: -.025em; justify-self: start; }
  .topbar nav { grid-area: navigation; gap: clamp(8px, 2.5vw, 15px); margin-left: 0; }
  .github-link { grid-area: source; justify-self: end; margin-inline-start: 0; }
  .map-tools { grid-area: search; }
  .map-search-wrap { width: clamp(110px, 36vw, 180px); }
  .search-box { min-height: 29px; }
  .search-box input { padding-block: 3px; }
}

@media (max-width: 380px) {
  .map-search-wrap kbd { display: none; }
}

@media (max-width: 550px) {
  .history-controls { flex-direction: column; align-items: stretch; gap: 3px; }
  .history-jump { align-self: flex-end; font-size: 12px; }
  .playback-note { top: auto; bottom: 12px; max-width: min(370px, calc(100% - 2 * var(--gutter))); }
  .egg-player {
    --clip-top: max(clamp(46px, 10dvh, 84px), env(safe-area-inset-top));
    top: var(--clip-top);
    bottom: auto;
    max-height: calc(55dvh - var(--clip-top));
    overscroll-behavior: contain;
  }
  body:has(.egg-player:not([hidden])) .profile { max-height: 36dvh; }
}

@media (max-width: 440px) {
  .updates-controls { align-items: flex-start; }
  .category-filter { gap: 1px 11px; }
  .directory-tools > .muted { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .stage .event-token::after, .zoom-hint { animation: none !important; }
}
