:root[data-edition="esche"] {
  color-scheme: dark;
  --bg: #101c1b;
  --panel: #172a27;
  --panel2: #223832;
  --line: #4d6250;
  --muted: #b8c6b5;
  --accent: #e7bf79;
  --ink: #f3eddf;
  background: var(--bg);
  color: var(--ink);
}

.esche-language {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.esche-language select {
  padding: .3rem .5rem;
  width: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}

[data-edition="esche"] :is(.topbar, .legal-footer) {
  background: #111d1b;
  border-color: #6e603e;
}

[data-edition="esche"] :is(h1, h2, .brand) {
  font-family: Georgia, Cambria, serif;
  color: #f5e5c3;
}

[data-edition="esche"] .auth-art {
  min-height: clamp(360px, 56vw, 680px);
  padding-bottom: 54px;
  background:
    linear-gradient(110deg, #071514f2 0%, #071514a8 34%, #07151416 72%),
    url("/assets/esche/fjord.png") 58% 50% / cover;
}

[data-edition="esche"] .auth-art h1 {
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: .98;
  text-wrap: balance;
}

[data-edition="esche"] .auth-art p {
  color: #f3eddf;
  font-size: 1.08rem;
  line-height: 1.55;
}

[data-edition="esche"] .auth-art .eyebrow {
  color: #e7bf79;
}

[data-edition="esche"] .account-wrap {
  border: 1px solid #6e603e;
  background: #172a27;
}

[data-edition="esche"] button.primary {
  background: #e7bf79;
  color: #18201b;
}

[data-edition="esche"] :is(.trade-shell, .board-shell, .board-frame, .roll-popup) {
  border-color: #6e603e;
  background-color: #142521;
}

[data-edition="esche"] :is(.trade-sidebar, .dashboard .panel) {
  background: var(--panel);
  border-color: #6e603e;
}

[data-edition="esche"] .trade-table {
  background: radial-gradient(ellipse at 48% 25%, #395d4b 0%, #29483d 52%, #1b3531 100%);
}

[data-edition="esche"] .trade-board {
  background:
    radial-gradient(ellipse at 46% 30%, #a1bd7138, #18342f52 82%),
    repeating-linear-gradient(130deg, #24463e 0 16px, #2b4d43 16px 17px);
}

[data-edition="esche"] .trade-board :is(.trade-terrain:not(.trade-terraces) > g > image, .trade-terrace-top > image) {
  filter: brightness(1.08) saturate(1.12);
}

.esche-frost-giant-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .22rem .55rem;
  border: 1px solid #7dd8ee;
  border-radius: .35rem;
  background: #102b3b;
  color: #e1faff;
}

.esche-frost-giant-status::before {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #98edff;
  box-shadow: 0 0 .4rem #98edff;
  content: "";
}

.esche-frost-giant > image {
  filter: drop-shadow(0 0 1px #061a26) drop-shadow(0 0 2.5px #98edff);
}

.esche-frost-giant-ripple {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .esche-frost-giant-appearing .esche-frost-giant-ripple {
    animation: esche-frost-giant-ripple 1.8s ease-out 2;
  }

  @keyframes esche-frost-giant-ripple {
    from { opacity: .85; transform: scale(1); }
    to { opacity: 0; transform: scale(1.5); }
  }
}

[data-edition="esche"] .trade-board .trade-terrace-backdrop {
  filter: brightness(1.1) saturate(1.08);
}

[data-edition="esche"] .esche-pinboard-board-button {
  width: 100%;
  height: 25px;
  min-height: 0;
  padding: 2px 6px;
  border: 1px solid #a78251;
  border-radius: 6px;
  background: #36271d;
  color: #ffebc4;
  font: 700 11px/1.1 Georgia, Cambria, serif;
  cursor: pointer;
}

[data-edition="esche"] .esche-pinboard-board-button:hover,
[data-edition="esche"] .esche-pinboard-board-button:focus-visible {
  border-color: #ffe0a1;
  background: #60432e;
  outline-offset: -3px;
}

.esche-pinboard-mobile {
  margin: .35rem 0 .75rem;
}

.esche-pinboard-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1rem;
}

.esche-pinboard-notes article {
  padding: .9rem 1rem;
  border: 1px solid #c6a676;
  border-radius: .4rem;
  background: linear-gradient(140deg, #f6e9c8, #ecdbaf);
  color: #3e281b;
  font-family: Georgia, Cambria, serif;
}

.esche-pinboard-notes h3 {
  margin: 0 0 .7rem;
  color: #513121;
  font-size: 1.15rem;
}

.esche-pinboard-notes ul,
.esche-pinboard-notes ol {
  margin: 0;
  line-height: 1.55;
}

.esche-pinboard-notes li + li {
  margin-top: .25rem;
}

.esche-pinboard-notes ul {
  padding: 0;
  list-style: none;
}

.esche-pinboard-notes ul li {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}

.esche-pinboard-notes ol {
  padding-inline-start: 1.4rem;
}

.esche-pinboard-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: .9em;
  height: .9em;
  flex: 0 0 .9em;
  border: 1px solid #67513d;
  border-radius: 2px;
  color: #305b33;
  font: 700 1rem/1 system-ui, sans-serif;
}

.esche-pinboard-box--crossed {
  color: #6a5944;
}

.esche-pinboard-box--crossed::after {
  position: absolute;
  inset-inline: -2px;
  inset-block-start: 45%;
  border-top: 2px solid #9c382d;
  content: "";
  transform: rotate(-34deg);
}

.esche-pinboard-notes article p {
  margin: .75rem 0 0;
  padding-top: .5rem;
  border-top: 1px solid #b89a6f;
  color: #523624;
  font-style: italic;
}

[data-edition="esche"] .trade-board-merchant rect {
  fill: #132821;
  stroke: #9b8355;
}

[data-edition="esche"] .trade-title-sticker {
  float: right;
  width: 40px;
  height: 46px;
  margin: 0 0 .2rem .4rem;
  object-fit: contain;
}

[data-edition="esche"] :is(dialog[data-account-profile], dialog[data-ranking]) {
  border-color: #796640;
  background: var(--panel);
}

.esche-profile-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 1fr);
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border: 1px solid #796640;
  border-radius: .85rem;
  background: linear-gradient(120deg, #263b2d, #142521);
}

.esche-profile-rank img {
  object-fit: contain;
}

.esche-profile-rank > div {
  display: grid;
  gap: .25rem;
}

.esche-profile-rank small,
.esche-profile-rank span {
  color: var(--muted);
  font-size: .85rem;
}

.esche-profile-rank strong {
  color: var(--accent);
  font: 700 1.15rem Georgia, Cambria, serif;
}

.esche-profile-rank progress {
  width: 100%;
  height: .55rem;
  accent-color: var(--accent);
}

[data-edition="esche"] .profile-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-edition="esche"] :is(.building-reward-card, .profile-achievement) {
  background: #21342b;
}

@media (max-width: 560px) {
  .esche-profile-rank {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .esche-profile-rank-progress {
    grid-column: 1 / -1;
  }

  [data-edition="esche"] .profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  [data-edition="esche"] .auth-art {
    background-position: 62% center;
    min-height: 390px;
  }
}
