:root {
  color-scheme: light;
  --ink: #19120b;
  --ink-soft: #3a2b1c;
  --muted: #6d5940;
  --gold: #c99a3d;
  --gold-bright: #f5d889;
  --gold-dark: #7b5522;
  --red: #8f2d25;
  --blue-steel: #2e3a40;
  --blue-steel-dark: #1c2529;
  --wood: #6b4426;
  --wood-dark: #442818;
  --parchment: #ead8a9;
  --parchment-light: #fff0c7;
  --parchment-mid: #e6cc8e;
  --line: #7d5a2b;
  --disabled: #827767;
  --paper-texture: url("assets/parchment-texture.png");
  --engraved: inset 0 1px rgba(255, 250, 213, 0.78), inset 0 -2px rgba(79, 49, 20, 0.22);
  --hard-shadow: 0 8px 0 rgba(25, 17, 10, 0.24), 0 20px 34px rgba(0, 0, 0, 0.28);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scrollbar-color: var(--gold-dark) #282923;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 18, 17, 0.86), rgba(28, 25, 18, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 22px),
    #25251f;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

p {
  margin: 0;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(13, 16, 15, 0.92), rgba(35, 28, 18, 0.94)),
    repeating-linear-gradient(45deg, rgba(245, 216, 137, 0.04) 0 1px, transparent 1px 24px),
    #191815;
  color: var(--parchment-light);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.loading-screen.done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-screen.error .loading-emblem {
  border-color: #b84a35;
  color: #ffd0bd;
}

.loading-screen.error .loading-progress span {
  background: linear-gradient(90deg, #8f2d25, #d77142);
}

.loading-panel {
  display: grid;
  width: min(440px, 100%);
  gap: 14px;
  justify-items: center;
  padding: 30px 30px 24px;
  border: 2px solid #c99a3d;
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 240, 199, 0.94), rgba(220, 190, 122, 0.93)),
    var(--paper-texture);
  background-position: center;
  background-size: auto, 700px auto;
  box-shadow: var(--hard-shadow), inset 0 0 0 4px rgba(85, 48, 20, 0.18);
  color: var(--ink);
  text-align: center;
}

.loading-emblem {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid var(--gold-dark);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, #fff5cd, #d7a64b 58%, #7b5522 100%);
  color: #3c2513;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 245, 205, 0.76);
}

.loading-emblem::after {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(245, 216, 137, 0.9);
  border-top-color: rgba(143, 45, 37, 0.82);
  border-radius: 50%;
  animation: loading-spin 960ms linear infinite;
  content: "";
}

.loading-copy {
  display: grid;
  gap: 5px;
}

.loading-kicker,
.loading-count {
  color: #7a4d1f;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loading-copy h1 {
  margin: 0;
  color: #27170c;
  font-size: clamp(27px, 7vw, 40px);
  line-height: 1;
}

.loading-copy p:last-child {
  min-height: 20px;
  color: #4f3923;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.loading-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid #7d5a2b;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(50, 31, 16, 0.32), rgba(255, 246, 220, 0.2)),
    #9f7a43;
  box-shadow: inset 0 2px 3px rgba(42, 23, 10, 0.34);
}

.loading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #8f2d25, #c99a3d 58%, #f5d889);
  box-shadow: inset 0 1px rgba(255, 250, 213, 0.72);
  transition: width 180ms ease;
}

.loading-count {
  color: #5b3719;
}

@keyframes loading-spin {
  to {
    transform: rotate(1turn);
  }
}

.shell {
  display: grid;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.topbar {
  z-index: 10;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px 7px;
  border-bottom: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(255, 255, 255, 0.035) 33px 34px),
    linear-gradient(90deg, #33342d, #171d1c 52%, #26251f);
  box-shadow: 0 2px 0 #6f4e1f, 0 15px 28px rgba(0, 0, 0, 0.38);
  color: var(--parchment-light);
  overflow: visible;
  overscroll-behavior: contain;
}

.legal-notice {
  border-top: 1px solid #6f4e1f;
  background: #171d1c;
  color: #d8bd7a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.35;
  padding: 4px 14px 5px;
}

.legal-notice a {
  color: #f5d889;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.controls {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns:
    minmax(170px, 220px)
    minmax(120px, 160px)
    minmax(190px, 250px)
    minmax(170px, 230px)
    minmax(128px, 150px)
    minmax(108px, 132px);
  gap: 8px;
  width: 100%;
  max-width: 1188px;
}

.tool-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.tool-nav a {
  display: grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(245, 216, 137, 0.72);
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff3c0, #d3aa58 78%, #a8732d),
    var(--parchment-light);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.74),
    inset 0 -2px rgba(87, 58, 24, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.42);
  color: #24170c;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  padding: 0 12px;
  text-decoration: none;
  text-shadow: 0 1px rgba(255, 246, 209, 0.7);
  text-transform: uppercase;
}

.tool-nav a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

label,
.control-field {
  display: grid;
  gap: 3px;
  color: #f2d99a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #17110a;
}

.control-label {
  display: block;
}

.civ-field {
  position: relative;
}

.search-field {
  position: relative;
}

.civ-overview-field {
  display: none;
}

.native-civ-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

select,
input {
  width: 100%;
  min-height: 32px;
  border: 1px solid #b07b2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff7d7, #ead4a1 74%, #caa463),
    var(--parchment-light);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px rgba(87, 58, 24, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.42);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 9px;
}

select:focus,
input:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

#searchInput,
.civ-dropdown-search {
  font-size: 16px;
  line-height: 1.2;
}

.layout-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 32px;
  overflow: hidden;
  border: 1px solid #b07b2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(35, 29, 20, 0.58), rgba(16, 13, 9, 0.42)),
    #2a2218;
  box-shadow:
    inset 0 1px rgba(255, 236, 171, 0.2),
    0 2px 0 rgba(0, 0, 0, 0.42);
  padding: 2px;
}

.layout-toggle-button {
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #f2d99a;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  min-width: 0;
  padding: 5px 7px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #17110a;
}

.layout-toggle-button.active {
  border-color: #d1a14c;
  background:
    linear-gradient(180deg, #fff3c0, #d3aa58 78%, #a8732d),
    var(--parchment-light);
  box-shadow: var(--engraved);
  color: #24170c;
  text-shadow: 0 1px rgba(255, 246, 209, 0.7);
}

.layout-toggle-button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.civ-overview-button {
  min-height: 32px;
  border: 1px solid #b07b2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff3c0, #d3aa58 78%, #a8732d),
    var(--parchment-light);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.74),
    inset 0 -2px rgba(87, 58, 24, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.42);
  color: #24170c;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  padding: 5px 8px;
  text-shadow: 0 1px rgba(255, 246, 209, 0.7);
  text-transform: uppercase;
}

.civ-overview-button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.toggle-control {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid #b07b2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(35, 29, 20, 0.58), rgba(16, 13, 9, 0.42)),
    #2a2218;
  box-shadow:
    inset 0 1px rgba(255, 236, 171, 0.2),
    0 2px 0 rgba(0, 0, 0, 0.42);
  color: #f2d99a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 8px;
  text-transform: uppercase;
}

.toggle-control input {
  width: 14px;
  min-height: 14px;
  accent-color: var(--gold);
  box-shadow: none;
}

.civ-dropdown {
  position: relative;
  z-index: 20;
}

.civ-dropdown-button,
.civ-dropdown-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 11px;
  gap: 7px;
  align-items: center;
  width: 100%;
  border: 1px solid #b07b2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff7d7, #ead4a1 74%, #caa463),
    var(--parchment-light);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px rgba(87, 58, 24, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.42);
  color: var(--ink);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 850;
  min-height: 32px;
  padding: 3px 8px;
  text-align: left;
}

.civ-dropdown-button:focus-visible,
.civ-dropdown-option:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.civ-option-image-slot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #8d6128;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 236, 171, 0.48), rgba(104, 63, 27, 0.18)),
    #3a2414;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 143, 0.15), 0 1px 0 rgba(38, 22, 10, 0.35);
  color: #fff0b0;
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
}

.civ-option-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.civ-option-image-slot.fallback {
  background: linear-gradient(180deg, #764a2a, #3c2414);
}

.civ-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.civ-dropdown-arrow {
  width: 0;
  height: 0;
  border-top: 6px solid #3b2b17;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  justify-self: end;
}

.civ-dropdown.open .civ-dropdown-arrow {
  transform: rotate(180deg);
}

.civ-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  overflow: auto;
  max-height: min(456px, calc(100vh - 96px));
  border: 1px solid #4b2c17;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.94), rgba(230, 203, 137, 0.94)),
    var(--paper-texture),
    var(--parchment);
  background-position: center;
  background-size: auto, 760px auto, auto;
  box-shadow: 0 3px 0 #6d4c1d, 0 14px 24px rgba(0, 0, 0, 0.44);
  padding: 5px;
}

.civ-dropdown-search {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 32px;
  margin-bottom: 5px;
  border-color: #8c5f25;
  background:
    linear-gradient(180deg, #fff6d1, #e2c483),
    var(--parchment-light);
  font-size: 12px;
}

.civ-dropdown-option {
  grid-template-columns: 26px minmax(0, 1fr);
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.civ-dropdown-option:hover,
.civ-dropdown-option:focus-visible,
.civ-dropdown-option.active {
  border-color: #b78332;
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.74), rgba(220, 183, 105, 0.48)),
    rgba(255, 236, 171, 0.34);
  box-shadow: var(--engraved);
}

.civ-dropdown-empty {
  margin: 0;
  border: 1px solid rgba(107, 68, 38, 0.42);
  border-radius: 3px;
  background: rgba(255, 242, 197, 0.46);
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
  text-align: center;
  text-shadow: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 35;
  width: min(440px, calc(100vw - 32px));
  min-width: 100%;
  overflow: auto;
  max-height: min(420px, calc(100vh - 96px));
  border: 1px solid #4b2c17;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.95), rgba(230, 203, 137, 0.95)),
    var(--paper-texture),
    var(--parchment);
  background-position: center;
  background-size: auto, 760px auto, auto;
  box-shadow: 0 3px 0 #6d4c1d, 0 14px 24px rgba(0, 0, 0, 0.44);
  padding: 5px;
  text-shadow: none;
}

.search-dropdown[hidden] {
  display: none;
}

.search-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 5px 7px;
  text-align: left;
}

.search-option:hover,
.search-option:focus-visible,
.search-option.active {
  border-color: #b78332;
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.74), rgba(220, 183, 105, 0.48)),
    rgba(255, 236, 171, 0.34);
  box-shadow: var(--engraved);
  outline: 0;
}

.search-option.unavailable {
  color: rgba(29, 20, 12, 0.62);
}

.search-option.unavailable .search-option-image-slot {
  border-color: rgba(115, 101, 75, 0.54);
  background:
    linear-gradient(180deg, rgba(239, 232, 207, 0.48), rgba(177, 164, 135, 0.42)),
    #5a5040;
  filter: grayscale(0.35) saturate(0.82);
}

.search-option.unavailable .search-option-name {
  color: rgba(29, 20, 12, 0.68);
}

.search-option.unavailable .search-option-meta {
  color: #8a241d;
}

.search-option-image-slot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #8d6128;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 236, 171, 0.48), rgba(104, 63, 27, 0.18)),
    #3a2414;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 143, 0.15), 0 1px 0 rgba(38, 22, 10, 0.35);
  color: #fff0b0;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
}

.search-option-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-option-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-option-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: none;
}

.search-option-meta {
  display: block;
  margin-top: 3px;
  color: #6a5438;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
}

.search-empty {
  margin: 0;
  border: 1px solid rgba(107, 68, 38, 0.42);
  border-radius: 3px;
  background: rgba(255, 242, 197, 0.46);
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
  text-align: center;
  text-shadow: none;
}

.workspace {
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.details {
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border-right: 3px solid #4b2c17;
  background:
    linear-gradient(90deg, rgba(121, 80, 35, 0.22), transparent 22px),
    linear-gradient(180deg, rgba(255, 241, 194, 0.91), rgba(230, 203, 137, 0.9)),
    var(--paper-texture),
    var(--parchment);
  background-position: center;
  background-size: auto, auto, 960px auto, auto;
  box-shadow: inset -9px 0 0 rgba(98, 62, 28, 0.18), 8px 0 16px rgba(0, 0, 0, 0.18);
  padding: 20px 20px 26px;
}

.details h2,
.game-tooltip h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 1px rgba(255, 242, 191, 0.7);
}

.detail-header.with-image {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.detail-header:not(.with-image) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.detail-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #a47b42;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(210, 176, 106, 0.24)),
    #ead8a9;
  box-shadow: var(--engraved), 0 1px 0 rgba(39, 25, 13, 0.42);
  padding: 3px;
}

.details .kind,
.game-tooltip .kind {
  display: inline-block;
  border: 1px solid #9b6a36;
  border-radius: 999px;
  background: rgba(255, 238, 187, 0.66);
  color: #8a241d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  padding: 3px 9px;
  text-transform: uppercase;
}

.detail-reset {
  border: 1px solid #8f642f;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff2bd, #d6ad5b 78%, #9f6b2b),
    #d6ad5b;
  box-shadow: var(--engraved), 0 1px 0 rgba(56, 35, 16, 0.35);
  color: #4c2f16;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 950;
  padding: 6px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-reset:hover,
.detail-reset:focus-visible {
  border-color: #8a241d;
  color: #8a241d;
  outline: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.game-description {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid #8b5d2c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 249, 224, 0.72), rgba(226, 199, 139, 0.44)),
    var(--paper-texture),
    var(--parchment-light);
  background-position: center;
  background-size: auto, 560px auto, auto;
  box-shadow: var(--engraved);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  padding: 11px 10px;
  white-space: pre-line;
}

.game-description p {
  margin: 0;
}

.game-description.missing-description p {
  color: #6a5438;
  font-style: italic;
}

.game-text-bold {
  font-weight: 900;
}

.game-text-italic {
  font-style: italic;
}

.game-text-muted {
  color: #5f4a31;
}

.game-inline-costs,
.game-inline-cost,
.game-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: -2px;
}

.game-inline-costs {
  gap: 4px;
}

.game-inline-stat {
  margin-right: 4px;
}

.detail-grid div,
.lineage {
  border: 1px solid #a9824d;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 248, 218, 0.68), rgba(231, 204, 144, 0.36)),
    var(--paper-texture),
    var(--parchment-light);
  background-position: center;
  background-size: auto, 560px auto, auto;
  box-shadow: var(--engraved);
  padding: 11px 10px;
}

.detail-grid div > span,
.lineage > span {
  display: block;
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.resource-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: inherit;
  font-weight: inherit;
}

.resource-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.stat-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.resource-icon,
.stat-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(74, 47, 25, 0.32));
}

.lineage {
  margin-top: 12px;
}

.lineage p {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.advanced-stats {
  margin-top: 12px;
  border: 1px solid #a9824d;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 248, 218, 0.68), rgba(231, 204, 144, 0.36)),
    var(--paper-texture),
    var(--parchment-light);
  background-position: center;
  background-size: auto, 560px auto, auto;
  box-shadow: var(--engraved);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.38;
  padding: 10px;
}

.advanced-stats summary {
  display: block;
  margin-bottom: 7px;
  color: #5f4629;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.advanced-stats summary::before {
  content: "v ";
}

.advanced-stats p {
  margin: 0;
}

.advanced-stats p + p {
  margin-top: 8px;
}

.advanced-stats strong {
  display: block;
  margin-bottom: 2px;
  color: #5c3f22;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.combat-class {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(90, 60, 31, 0.45);
  text-underline-offset: 2px;
}

.advanced-empty {
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 750;
}

.civilization-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.civilization-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(116, 79, 36, 0.45);
  border-radius: 50%;
  background: rgba(255, 239, 190, 0.44);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 1px 0 rgba(59, 38, 17, 0.2);
  color: #5d3b1c;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  overflow: visible;
  padding: 0;
}

.civilization-icon:hover,
.civilization-icon:focus-visible {
  border-color: #8a241d;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 0 2px rgba(138, 36, 29, 0.22);
}

.civilization-icon:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.civilization-icon.unavailable {
  border-color: rgba(115, 101, 75, 0.62);
  background: rgba(231, 218, 184, 0.72);
  color: rgba(29, 20, 12, 0.76);
}

.civilization-icon.unavailable::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 1px solid rgba(255, 238, 191, 0.72);
  border-radius: 50%;
  background: #8a241d;
  box-shadow: 0 1px 2px rgba(38, 25, 12, 0.34);
  color: #fff8e3;
  content: "-";
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.civilization-icon img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.civilization-icon.unavailable img {
  opacity: 0.78;
  filter: grayscale(0.35) saturate(0.8);
}

.civilization-node-list-items {
  display: grid;
  gap: 6px;
}

.civilization-node-list-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid rgba(116, 79, 36, 0.46);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 249, 224, 0.68), rgba(218, 184, 111, 0.42)),
    rgba(255, 239, 190, 0.35);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 6px 8px;
  text-align: left;
}

.civilization-node-list-button:hover,
.civilization-node-list-button:focus-visible {
  border-color: #8a241d;
  background:
    linear-gradient(180deg, rgba(255, 244, 197, 0.9), rgba(205, 160, 79, 0.52)),
    rgba(255, 239, 190, 0.58);
  outline: 0;
}

.civilization-node-list-button img,
.civilization-node-list-button .game-sigil {
  width: 32px;
  height: 32px;
}

.civilization-node-list-button img {
  object-fit: contain;
}

.civilization-node-list-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-tooltip {
  position: fixed;
  z-index: 50;
  width: min(500px, calc(100vw - 28px));
  overflow: visible;
  pointer-events: none;
  border: 1px solid #b49a2c;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(190, 151, 66, 0.09), transparent 34px),
    linear-gradient(180deg, rgba(24, 27, 15, 0.96), rgba(6, 13, 8, 0.94)),
    rgba(6, 13, 8, 0.94);
  background-position: center;
  background-size: auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 18px 34px rgba(0, 0, 0, 0.45);
  color: #fff8e3;
  padding: 5px 6px;
  text-shadow: 1px 1px 0 #000;
}

.game-tooltip[hidden] {
  display: none;
}

.game-tooltip h2 {
  margin: 0;
  color: #f3d994;
  font-size: 21px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(245, 216, 137, 0.18);
}

.game-tooltip .detail-header.with-image {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.game-tooltip .detail-image {
  width: 46px;
  height: 46px;
}

.game-tooltip .civilization-header {
  margin-bottom: 8px;
}

.game-tooltip .civilization-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.game-tooltip .kind {
  align-self: flex-start;
  border-color: rgba(245, 216, 137, 0.56);
  background: rgba(245, 216, 137, 0.14);
  color: #f3d994;
  font-size: 9px;
  padding: 2px 7px;
  text-shadow: none;
}

.game-tooltip .detail-grid {
  gap: 6px;
  margin-top: 12px;
}

.game-tooltip .game-description {
  gap: 3px;
  margin-top: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff8e3;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.28;
  padding: 0;
  white-space: normal;
}

.game-tooltip .game-description p {
  color: inherit;
}

.game-tooltip .game-text-muted {
  color: #fff8e3;
}

.game-tooltip .detail-grid div,
.game-tooltip .lineage {
  padding: 8px;
}

.game-tooltip .detail-grid strong {
  font-size: 13px;
}

.game-tooltip .resource-costs {
  gap: 5px;
}

.game-tooltip .resource-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(1px 1px 0 #000);
}

.game-tooltip .stat-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(1px 1px 0 #000);
}

.game-tooltip .lineage {
  margin-top: 8px;
}

.game-tooltip .lineage p {
  font-size: 13px;
  line-height: 1.3;
}

.game-tooltip .advanced-stats {
  margin-top: 7px;
  border-color: rgba(180, 154, 44, 0.72);
  background: rgba(12, 17, 10, 0.72);
  box-shadow: none;
  color: #fff8e3;
  font-size: 12px;
  line-height: 1.28;
  padding: 7px;
}

.game-tooltip .advanced-stats summary,
.game-tooltip .advanced-stats strong,
.game-tooltip .advanced-empty,
.game-tooltip .combat-class {
  color: #fff8e3;
}

.game-tooltip .advanced-stats p + p {
  margin-top: 5px;
}

.game-tooltip .civilization-icons {
  gap: 4px;
}

.game-tooltip .civilization-icon {
  width: 24px;
  height: 24px;
}

@media (hover: none), (pointer: coarse) {
  .game-tooltip {
    display: none !important;
  }
}

.tree {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 17, 15, 0.24), rgba(17, 16, 13, 0.46)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.036) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 18px),
    #39372e;
}

.tree.game-layout {
  overflow: auto;
  padding: 0;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(372px, 1fr));
  gap: 18px;
  min-width: 1530px;
}

.game-tree {
  min-width: max-content;
}

.game-age-legend {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 92px);
  width: max-content;
  overflow: hidden;
  border: 1px solid #12191b;
  border-bottom: 4px solid var(--gold);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, var(--blue-steel), var(--blue-steel-dark));
  box-shadow: 0 3px 0 #6d4c1d, 0 7px 16px rgba(0, 0, 0, 0.34);
  color: #ffe8a2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #15100a;
}

.game-age-legend div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 40px;
  border-right: 1px solid rgba(255, 232, 162, 0.18);
  padding: 8px;
}

.game-age-legend div:last-child {
  border-right: 0;
}

.game-age-legend img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.42));
}

.game-lanes {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 12px;
}

.game-lane {
  width: 392px;
  flex: 0 0 392px;
  overflow: hidden;
  border: 1px solid #392413;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 242, 193, 0.94), rgba(230, 203, 136, 0.9)),
    var(--paper-texture),
    var(--parchment);
  background-position: center;
  background-size: auto, 780px auto, auto;
  box-shadow: var(--hard-shadow);
}

.game-lane-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid #3a2112;
  background:
    linear-gradient(180deg, rgba(255, 223, 144, 0.14), transparent 46%),
    linear-gradient(180deg, var(--wood), var(--wood-dark));
  color: #fff1b5;
  padding: 7px 10px;
  text-shadow: 0 1px 0 #1d1008;
}

.game-lane-title img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid rgba(255, 230, 159, 0.22);
  border-radius: 2px;
  background: rgba(17, 13, 8, 0.38);
  padding: 1px;
}

.game-lane-title h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-lane-ages,
.game-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-lane-ages {
  border-bottom: 1px solid rgba(58, 33, 18, 0.46);
  background: rgba(70, 43, 24, 0.2);
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.game-lane-ages span {
  border-right: 1px solid rgba(58, 33, 18, 0.22);
  padding: 6px 3px;
}

.game-lane-ages span:last-child {
  border-right: 0;
}

.game-rows {
  padding: 8px;
}

.game-row {
  position: relative;
  min-height: 72px;
}

.game-row + .game-row {
  margin-top: 6px;
}

.game-row.linked::before {
  position: absolute;
  top: 34px;
  right: calc((4 - var(--line-to)) * 25% + 32px);
  left: calc((var(--line-from) - 1) * 25% + 32px);
  height: 3px;
  background:
    linear-gradient(90deg, rgba(83, 51, 25, 0.32), rgba(126, 83, 35, 0.78), rgba(83, 51, 25, 0.32));
  box-shadow: 0 1px rgba(255, 238, 178, 0.28);
  content: "";
}

.game-cell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 72px;
  border-right: 1px dashed rgba(74, 47, 25, 0.2);
  padding: 2px 4px;
}

.game-cell:last-child {
  border-right: 0;
}

.game-node {
  display: grid;
  width: 72px;
  min-height: 66px;
  grid-template-rows: 38px minmax(20px, auto);
  justify-items: center;
  gap: 4px;
  border: 1px solid #aa824d;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 249, 224, 0.72), rgba(226, 199, 139, 0.56)),
    var(--paper-texture),
    #ead8a9;
  background-position: center;
  background-size: auto, 360px auto, auto;
  box-shadow: var(--engraved), 0 2px 0 rgba(59, 38, 17, 0.23);
  color: var(--ink);
  cursor: pointer;
  padding: 5px 4px 4px;
  text-align: center;
}

.game-node + .game-node {
  margin-top: 5px;
}

.game-node:hover {
  border-color: #d4a243;
  box-shadow: var(--engraved), 0 0 0 2px rgba(219, 172, 69, 0.28), 0 4px 10px rgba(39, 28, 18, 0.22);
}

.game-node.active {
  border-color: #d5a13f;
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.8), rgba(235, 205, 137, 0.72)),
    linear-gradient(90deg, rgba(143, 45, 37, 0.15), transparent 64%),
    var(--paper-texture);
  background-position: center;
  background-size: auto, auto, 360px auto;
  box-shadow: var(--engraved), 0 0 0 2px rgba(120, 45, 35, 0.35), 0 5px 14px rgba(33, 22, 10, 0.25);
}

.game-node:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.game-node.unavailable {
  color: rgba(29, 20, 12, 0.55);
  border-color: rgba(115, 101, 75, 0.54);
  background:
    linear-gradient(180deg, rgba(239, 232, 207, 0.48), rgba(177, 164, 135, 0.42)),
    var(--paper-texture),
    #cfc1a0;
  background-position: center;
  background-size: auto, 360px auto, auto;
}

.game-node.required {
  border-color: #c9953c;
}

.game-node img,
.game-sigil {
  width: 38px;
  height: 38px;
}

.game-node img {
  object-fit: contain;
  border: 1px solid #9b6f35;
  border-radius: 3px;
  background: #14120e;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 147, 0.18), 0 2px 0 rgba(59, 38, 17, 0.28);
  padding: 1px;
}

.game-node.unavailable img {
  opacity: 0.45;
  filter: grayscale(0.9);
}

.game-sigil {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 241, 177, 0.55);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 2px 0 rgba(0, 0, 0, 0.31);
  color: white;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px rgba(0, 0, 0, 0.55);
}

.game-sigil.building {
  background: linear-gradient(180deg, #4c7486, #294653);
}

.game-sigil.unit {
  background: linear-gradient(180deg, #4b7a55, #2d4e35);
}

.game-sigil.tech {
  background: linear-gradient(180deg, #80628a, #4d3457);
}

.game-node.unavailable .game-sigil {
  background: linear-gradient(180deg, #8b8175, var(--disabled));
}

.game-node-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-lane-empty {
  margin: 0;
  color: #6a5438;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 850;
  padding: 12px;
  text-align: center;
}

.game-empty {
  width: 360px;
}

.game-board {
  position: relative;
  overflow: hidden;
  min-width: 100%;
  border: 1px solid #1c1209;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 244, 196, 0.07), transparent 150px),
    linear-gradient(180deg, #2f2619, #251b12);
  box-shadow: var(--hard-shadow);
}

.game-age-band {
  position: absolute;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(239, 205, 128, 0.18);
  background:
    linear-gradient(90deg, rgba(96, 67, 34, 0.78), rgba(57, 39, 22, 0.52) 150px, rgba(77, 54, 23, 0.3)),
    repeating-linear-gradient(90deg, rgba(255, 231, 154, 0.045) 0 1px, transparent 1px 78px);
}

.game-age-band.alternate {
  background:
    linear-gradient(90deg, rgba(83, 55, 27, 0.82), rgba(45, 31, 20, 0.58) 150px, rgba(39, 31, 25, 0.34)),
    repeating-linear-gradient(90deg, rgba(255, 231, 154, 0.045) 0 1px, transparent 1px 78px);
}

.game-age-label {
  position: sticky;
  left: 0;
  display: grid;
  width: 132px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 18px 14px;
  color: #ffe8a2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #15100a;
}

.game-age-label img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.42));
}

.game-column-label {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  color: #f7d98d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #15100a;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-connection {
  fill: none;
  stroke: rgba(222, 178, 82, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 1px 0 rgba(22, 13, 5, 0.58));
  transition:
    opacity 120ms ease,
    stroke 120ms ease,
    stroke-width 120ms ease;
}

.game-board.has-path-highlight .game-connection.path-highlight {
  opacity: 1;
  stroke: #ffe37f;
  stroke-width: 5;
  filter:
    drop-shadow(0 1px 0 rgba(22, 13, 5, 0.66))
    drop-shadow(0 0 5px rgba(255, 223, 104, 0.5));
}

.game-board .game-node {
  position: absolute;
  grid-template-rows: 34px minmax(26px, auto);
  gap: 3px;
  border-width: 1px;
  border-radius: 2px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px rgba(0, 0, 0, 0.24),
    0 1px 3px rgba(0, 0, 0, 0.28);
  padding: 4px 3px 4px;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease,
    opacity 120ms ease;
}

.game-board-node {
  z-index: 3;
}

.game-board.has-path-highlight .game-board-node.path-highlight {
  z-index: 4;
  opacity: 1;
  filter: saturate(1.14);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 2px rgba(255, 227, 127, 0.66),
    0 0 14px rgba(255, 219, 92, 0.42);
}

.game-board.has-path-highlight .game-board-node.path-target {
  z-index: 5;
  border-color: #fff0a6;
}

.game-board .game-node.building {
  background: linear-gradient(180deg, #b95735, #783023);
  border-color: #f0a060;
}

.game-board .game-node.unit {
  background: linear-gradient(180deg, #409caf, #25697d);
  border-color: #9ed9ed;
}

.game-board .game-node.tech {
  background: linear-gradient(180deg, #478f4d, #286431);
  border-color: #a8d996;
}

.game-board .game-node:hover {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 227, 127, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.game-board .game-node.required {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(232, 195, 91, 0.35);
}

.game-board .game-node.unavailable::after {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(180, 38, 32, 0.72);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-42deg);
  transform-origin: center;
}

.game-board .game-node.unavailable::before {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(180, 38, 32, 0.72);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(42deg);
  transform-origin: center;
}

.game-board .game-node img,
.game-board .game-sigil {
  width: 34px;
  height: 34px;
}

.game-board .game-node img {
  object-fit: contain;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.game-board .game-sigil {
  border-color: transparent;
  background: rgba(255, 246, 210, 0.1);
  box-shadow: none;
}

.game-board .game-node-name {
  width: calc(100% + 2px);
  padding: 0 1px;
  border-radius: 2px;
  background: transparent;
  color: #fff8d8;
  font-size: 9.5px;
  font-weight: 1000;
  line-height: 1.08;
  overflow-wrap: normal;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.72);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.95),
    1px 0 0 rgba(0, 0, 0, 0.52),
    -1px 0 0 rgba(0, 0, 0, 0.52);
  text-wrap: balance;
  word-break: normal;
  -webkit-line-clamp: 3;
}

.age-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.age-title {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 43px;
  border: 1px solid #12191b;
  border-bottom: 4px solid var(--gold);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, var(--blue-steel), var(--blue-steel-dark));
  box-shadow: 0 3px 0 #6d4c1d, 0 7px 16px rgba(0, 0, 0, 0.34);
  color: #ffe8a2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #15100a;
}

.age-title-image {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.42));
}

.facility {
  overflow: hidden;
  border: 1px solid #392413;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 242, 193, 0.94), rgba(230, 203, 136, 0.88)),
    var(--paper-texture),
    var(--parchment);
  background-position: center;
  background-size: auto, 780px auto, auto;
  box-shadow: var(--hard-shadow);
}

.facility h3 {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid #3a2112;
  background:
    linear-gradient(180deg, rgba(255, 223, 144, 0.14), transparent 46%),
    linear-gradient(180deg, var(--wood), var(--wood-dark));
  color: #fff1b5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 9px 11px 8px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #1d1008;
}

.facility h3 > span:not(.facility-title-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-title-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 230, 159, 0.24);
  border-radius: 2px;
  background: rgba(17, 13, 8, 0.38);
  color: #fff0b0;
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
}

.facility-title-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

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

.node {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  border: 1px solid #aa824d;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 249, 224, 0.72), rgba(226, 199, 139, 0.56)),
    var(--paper-texture),
    #ead8a9;
  background-position: center;
  background-size: auto, 460px auto, auto;
  box-shadow: var(--engraved), 0 2px 0 rgba(59, 38, 17, 0.23);
  color: var(--ink);
  cursor: pointer;
  padding: 7px 8px;
  text-align: left;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease,
    background 120ms ease;
}

.node:hover {
  border-color: #d4a243;
  box-shadow: var(--engraved), 0 0 0 2px rgba(219, 172, 69, 0.28), 0 4px 10px rgba(39, 28, 18, 0.22);
  transform: translateY(-1px);
}

.node.active {
  border-color: #d5a13f;
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.8), rgba(235, 205, 137, 0.72)),
    linear-gradient(90deg, rgba(143, 45, 37, 0.15), transparent 64%),
    var(--paper-texture);
  background-position: center;
  background-size: auto, auto, 460px auto;
  box-shadow: var(--engraved), 0 0 0 2px rgba(120, 45, 35, 0.35), 0 5px 14px rgba(33, 22, 10, 0.25);
}

.node:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.node.unavailable {
  color: rgba(29, 20, 12, 0.55);
  border-color: rgba(115, 101, 75, 0.54);
  background:
    linear-gradient(180deg, rgba(239, 232, 207, 0.48), rgba(177, 164, 135, 0.42)),
    var(--paper-texture),
    #cfc1a0;
  background-position: center;
  background-size: auto, 460px auto, auto;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
}

.node.required {
  border-color: #c9953c;
}

.sigil,
.node-image {
  width: 38px;
  height: 38px;
}

.sigil {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 241, 177, 0.55);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 2px 0 rgba(0, 0, 0, 0.31);
  color: white;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px rgba(0, 0, 0, 0.55);
}

.node-image {
  object-fit: cover;
  border: 1px solid #9b6f35;
  border-radius: 3px;
  background: #14120e;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 147, 0.18), 0 2px 0 rgba(59, 38, 17, 0.28);
  padding: 1px;
}

.sigil.building {
  background: linear-gradient(180deg, #4c7486, #294653);
}

.sigil.unit {
  background: linear-gradient(180deg, #4b7a55, #2d4e35);
}

.sigil.tech {
  background: linear-gradient(180deg, #80628a, #4d3457);
}

.node.unavailable .sigil {
  background: linear-gradient(180deg, #8b8175, var(--disabled));
}

.node.unavailable .node-image {
  opacity: 0.45;
  filter: grayscale(0.9);
}

.node-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.14;
}

.node-meta {
  display: block;
  margin-top: 4px;
  color: #6a5942;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.1;
}

.empty {
  border: 1px solid #a9824d;
  border-radius: 3px;
  background:
    linear-gradient(rgba(255, 246, 220, 0.86), rgba(255, 246, 220, 0.86)),
    var(--paper-texture);
  background-position: center;
  background-size: auto, 700px auto;
  color: var(--muted);
  padding: 18px;
}

::selection {
  background: rgba(143, 45, 37, 0.28);
}

@media (max-width: 760px) {
  .shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .topbar {
    position: relative;
    display: block;
    min-height: 0;
    padding: 6px 8px 7px;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr) minmax(54px, 68px) minmax(54px, 68px) minmax(72px, 84px);
    grid-template-areas:
      "civ civ version navspace"
      "search search language extra"
      "civinfo layout layout layout";
    gap: 5px;
    margin-top: 0;
    max-width: none;
  }

  .tool-nav {
    position: absolute;
    top: 6px;
    right: 8px;
    width: auto;
  }

  .tool-nav a {
    width: 42px;
    min-height: 32px;
    padding: 0 4px;
    font-size: 10px;
  }

  .version-field {
    grid-area: version;
  }

  .language-field {
    grid-area: language;
  }

  .civ-field {
    grid-area: civ;
  }

  .search-field {
    grid-area: search;
  }

  .extra-stats-field {
    grid-area: extra;
  }

  .layout-field {
    grid-area: layout;
  }

  .civ-overview-field {
    display: grid;
    grid-area: civinfo;
  }

  label,
  .control-field {
    min-width: 0;
    gap: 0;
    font-size: 9px;
  }

  .version-field > span,
  .language-field > span,
  .control-field > .control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  select,
  input,
  .layout-toggle,
  .civ-overview-button,
  .toggle-control,
  .civ-dropdown-button {
    min-height: 32px;
  }

  select,
  .civ-dropdown-button {
    font-size: 12px;
  }

  input {
    font-size: 16px;
  }

  .layout-toggle-button,
  .civ-overview-button,
  .toggle-control {
    font-size: 10px;
  }

  .layout-toggle {
    min-height: 38px;
    border-width: 2px;
  }

  .layout-toggle-button {
    min-height: 32px;
    font-size: 11px;
    padding: 7px 8px;
  }

  .civ-overview-button {
    min-height: 38px;
    overflow: hidden;
    border-width: 2px;
    padding: 0 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .extra-stats-field .toggle-control {
    gap: 3px;
    justify-content: center;
    padding: 0 4px;
  }

  .extra-stats-field .toggle-control input {
    width: 16px;
    min-height: 16px;
    margin: 0;
  }

  .extra-stats-field .toggle-control span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .civ-dropdown-menu {
    width: min(320px, calc(100vw - 16px));
    max-height: min(420px, calc(100dvh - 104px));
  }

  .search-dropdown {
    position: fixed;
    top: calc(124px + env(safe-area-inset-top));
    right: 0;
    left: 0;
    z-index: 60;
    width: auto;
    min-width: 0;
    max-height: min(430px, calc(100dvh - 98px - env(safe-area-inset-bottom)));
    margin: 0 8px;
    border-width: 2px;
    border-radius: 5px;
    box-shadow: 0 4px 0 #6d4c1d, 0 18px 32px rgba(0, 0, 0, 0.48);
    padding: 6px;
    overscroll-behavior: contain;
  }

  .search-option {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 54px;
    padding: 7px 8px;
  }

  .search-option + .search-option {
    margin-top: 3px;
  }

  .search-option-image-slot {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .search-option-name {
    font-size: 14px;
    line-height: 1.15;
  }

  .search-option-meta {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.2;
  }

  .search-empty {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: 14px 10px;
  }

  .workspace {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .details.mobile-detail-modal {
    display: none;
  }

  .details.mobile-detail-modal.has-selection {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    align-items: stretch;
    width: 100%;
    max-height: none;
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
    border-top: 0;
    border-right: 0;
    background: rgba(12, 10, 7, 0.72);
    box-shadow: none;
    padding: 0;
  }

  .mobile-detail-panel {
    width: 100%;
    max-height: none;
    height: 100dvh;
    overflow: auto;
    justify-self: center;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(121, 80, 35, 0.22), transparent 22px),
      linear-gradient(180deg, rgba(255, 241, 194, 0.96), rgba(230, 203, 137, 0.95)),
      var(--paper-texture),
      var(--parchment);
    background-position: center;
    background-size: auto, auto, 960px auto, auto;
    box-shadow: inset 0 8px 0 rgba(98, 62, 28, 0.13);
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
  }

  .mobile-detail-close-bar {
    position: sticky;
    bottom: calc(-22px - env(safe-area-inset-bottom));
    z-index: 8;
    margin: 18px -16px calc(-22px - env(safe-area-inset-bottom));
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(75, 44, 23, 0.44);
    background:
      linear-gradient(180deg, rgba(234, 216, 169, 0), rgba(234, 216, 169, 0.96) 22%),
      var(--paper-texture),
      var(--parchment);
    background-position: center;
    background-size: auto, 960px auto, auto;
  }

  .mobile-detail-close {
    width: 100%;
    min-height: 52px;
    border: 2px solid #7b5522;
    border-radius: 5px;
    background:
      linear-gradient(180deg, #fff3c0, #d3aa58 78%, #a8732d),
      var(--parchment-light);
    box-shadow: var(--engraved), 0 3px 0 rgba(54, 33, 14, 0.38);
    color: #24170c;
    cursor: pointer;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 1000;
    text-transform: uppercase;
    text-shadow: 0 1px rgba(255, 246, 209, 0.7);
  }

  .mobile-detail-close:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }

  .details h2 {
    font-size: 25px;
  }

  .detail-header.with-image {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .detail-image {
    width: 48px;
    height: 48px;
  }

  .tree.mobile-tree-layout {
    height: 100%;
    overflow: auto;
    padding: 10px 10px 86px;
  }

  .tree.mobile-game-layout {
    height: 100%;
    overflow: auto;
    padding: 8px;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
  }

  .tree.mobile-game-layout .game-board {
    min-width: max-content;
    border-width: 2px;
  }

  .tree.mobile-game-layout .game-age-label {
    width: 96px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 8px 7px;
    font-size: 9px;
  }

  .tree.mobile-game-layout .game-age-label img {
    width: 22px;
    height: 22px;
  }

  .tree.mobile-game-layout .game-column-label {
    font-size: 9px;
  }

  .tree.mobile-game-layout .game-board .game-node {
    grid-template-rows: 28px minmax(14px, auto);
    gap: 2px;
    min-height: 40px;
    padding: 3px 4px;
  }

  .tree.mobile-game-layout .game-board .game-node img,
  .tree.mobile-game-layout .game-board .game-sigil {
    width: 28px;
    height: 28px;
  }

  .tree.mobile-game-layout .game-board .game-node-name {
    font-size: 9px;
    line-height: 1.05;
    -webkit-line-clamp: 2;
  }

  .tree.mobile-game-layout .game-board .game-node.unavailable::before,
  .tree.mobile-game-layout .game-board .game-node.unavailable::after {
    top: 17px;
    width: 28px;
  }

  .tree.mobile-tree-layout.has-detail-drawer {
    padding-bottom: calc(min(62dvh, 520px) + 24px);
  }

  .mobile-tree {
    display: grid;
    width: min(100%, 540px);
    gap: 12px;
    margin: 0 auto;
  }

  .mobile-age-section {
    display: grid;
    gap: 9px;
  }

  .mobile-age-header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 38px;
    margin: 0;
    border: 1px solid #12191b;
    border-bottom: 3px solid var(--gold);
    border-radius: 3px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
      linear-gradient(180deg, var(--blue-steel), var(--blue-steel-dark));
    box-shadow: 0 3px 0 #6d4c1d, 0 7px 16px rgba(0, 0, 0, 0.28);
    color: #ffe8a2;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 950;
    padding: 8px 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #15100a;
  }

  .mobile-age-header img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .mobile-facility {
    overflow: hidden;
    border: 1px solid #392413;
    border-radius: 5px;
    background:
      linear-gradient(180deg, rgba(255, 242, 193, 0.94), rgba(230, 203, 136, 0.88)),
      var(--paper-texture),
      var(--parchment);
    background-position: center;
    background-size: auto, 780px auto, auto;
    box-shadow: 0 5px 0 rgba(25, 17, 10, 0.22), 0 12px 20px rgba(0, 0, 0, 0.22);
  }

  .mobile-facility h3 {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 0;
    border-bottom: 1px solid #3a2112;
    background:
      linear-gradient(180deg, rgba(255, 223, 144, 0.14), transparent 46%),
      linear-gradient(180deg, var(--wood), var(--wood-dark));
    color: #fff1b5;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 950;
    padding: 8px 10px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #1d1008;
  }

  .mobile-facility h3 > span:not(.facility-title-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-node-list {
    display: grid;
    gap: 7px;
    padding: 8px;
  }

  .mobile-node {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    border: 1px solid #aa824d;
    border-radius: 4px;
    background:
      linear-gradient(180deg, rgba(255, 249, 224, 0.76), rgba(226, 199, 139, 0.6)),
      var(--paper-texture),
      #ead8a9;
    background-position: center;
    background-size: auto, 420px auto, auto;
    box-shadow: var(--engraved), 0 2px 0 rgba(59, 38, 17, 0.23);
    color: var(--ink);
    cursor: pointer;
    padding: 8px 9px;
    text-align: left;
  }

  .mobile-node.active {
    border-color: #d5a13f;
    background:
      linear-gradient(180deg, rgba(255, 248, 219, 0.84), rgba(235, 205, 137, 0.75)),
      linear-gradient(90deg, rgba(143, 45, 37, 0.16), transparent 64%),
      var(--paper-texture);
    box-shadow: var(--engraved), 0 0 0 2px rgba(120, 45, 35, 0.35), 0 5px 14px rgba(33, 22, 10, 0.25);
  }

  .mobile-node.unavailable {
    color: rgba(29, 20, 12, 0.58);
    border-color: rgba(115, 101, 75, 0.54);
    background:
      linear-gradient(180deg, rgba(239, 232, 207, 0.52), rgba(177, 164, 135, 0.44)),
      var(--paper-texture),
      #cfc1a0;
  }

  .mobile-node-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #9b6f35;
    border-radius: 3px;
    background: #14120e;
    box-shadow: inset 0 0 0 1px rgba(255, 226, 147, 0.18), 0 2px 0 rgba(59, 38, 17, 0.28);
    color: white;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 950;
    overflow: hidden;
    text-shadow: 0 1px rgba(0, 0, 0, 0.55);
  }

  .mobile-node-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1px;
  }

  .mobile-node-icon.building {
    background: linear-gradient(180deg, #4c7486, #294653);
  }

  .mobile-node-icon.unit {
    background: linear-gradient(180deg, #4b7a55, #2d4e35);
  }

  .mobile-node-icon.tech {
    background: linear-gradient(180deg, #80628a, #4d3457);
  }

  .mobile-node.unavailable .mobile-node-icon {
    opacity: 0.55;
    filter: grayscale(0.9);
  }

  .mobile-node-text {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .mobile-node-name {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
  }

  .mobile-node-meta {
    color: #6a5942;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .legal-notice {
    max-height: 42px;
    overflow: auto;
    padding: 4px 9px calc(5px + env(safe-area-inset-bottom));
    font-size: 9px;
  }
}
