@font-face {
  font-family: Barlow;
  font-weight: 800;
  font-display: swap;
  src: url(barlow-800.woff2) format("woff2");
}
@font-face {
  font-family: Barlow;
  font-weight: 800;
  font-display: swap;
  src: url(barlow-800-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: DM;
  font-weight: 400 700;
  font-display: swap;
  src: url(dm-sans.woff2) format("woff2");
}
@font-face {
  font-family: DM;
  font-weight: 400 700;
  font-display: swap;
  src: url(dm-sans-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #f4ecd9;
  --ink: #29281d;
  --muted: #625a46;
  --rust: #9b3e1d;
  --line: #b6a789;
  --map: #ede5cc;
  --cream: #fff9eb;
  --display: Barlow, "Arial Narrow", sans-serif;
  --body: DM, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 20%, #fbf5e6, var(--paper) 75%);
  color: var(--ink);
  font-family: var(--body);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: var(--rust); }
:focus-visible { outline: 3px solid #9c4218; outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 80px)); margin: 0 auto; }
.masthead { border-bottom: 1px solid #d5c9ad; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.wordmark {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}
.wordmark img {
  display: block;
  width: clamp(112px, 33vw, 176px);
  height: auto;
}
nav { display: flex; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.15;
  transition: background-color .14s, box-shadow .14s;
}
a.button { color: inherit; text-decoration: none; }
.button:hover { background: #e9dec3; }
.button.small { min-height: 38px; padding-inline: 12px; font-size: .82rem; }
.button.outline { border-color: var(--line); }
.button.dark { color: #fff6df; background: var(--ink); border-color: var(--ink); }
.button.dark:hover { background: #514937; }
.button:disabled { opacity: .56; cursor: default; }
.hero { min-height: 212px; display: flex; position: relative; align-items: center; justify-content: space-between; }
.hero-copy { position: relative; z-index: 1; padding: 28px 0 32px; }
.kicker, .section-kicker {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--rust); }
.kicker i { width: 8px; height: 8px; background: var(--rust); border-radius: 50%; }
h1, h2 { font-family: var(--display); line-height: .98; }
h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 6.1rem); letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--rust); }
.hero-copy > p:last-child { margin: 15px 0 0; font-size: 1.04rem; color: var(--muted); }
.hero-art { width: clamp(170px, 24vw, 285px); height: auto; aspect-ratio: 1.52; object-fit: contain; flex: none; margin-right: 1.5%; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 27%); gap: 18px; align-items: start; }
.map-card, .ledger, .pot-card { border: 1px solid var(--ink); border-radius: 9px; overflow: hidden; box-shadow: 0 3px 0 #29281d19; }
.map-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 17px; background: var(--cream); border-bottom: 1px solid var(--line); }
.section-kicker { color: var(--muted); letter-spacing: .12em; }
.map-header h2 { font-size: 2rem; margin: 2px 0 0; }
.map-action { background: #f1e6c9; border-color: #9b8c67; }
.map-action span[aria-hidden] { font-size: 1.25em; color: var(--rust); }
.tool-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(35px, 94px) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 17px;
  background: #f8efd9;
  border-bottom: 1px solid var(--line);
}
.shovel-icon {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 6px;
  background: #f0e3c6;
  color: var(--shovel-color, var(--rust));
}
.shovel-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url(shovel-mark.svg) center / contain no-repeat;
}
.tool-row[data-tool="gold"], .shovel-choice[data-tool="gold"] { background: #ffefb4; }
.shovel-icon[data-tool="gold"] { color: #765107; background: #f6d674; }
.tool-details { display: grid; gap: 1px; font-size: .82rem; line-height: 1.2; }
.tool-details span { font-size: .73rem; color: var(--muted); }
.tool-row[data-broken="true"] .tool-details span { color: var(--rust); font-weight: 700; }
.tool-row progress { margin: 0; height: 6px; accent-color: var(--shovel-color, var(--rust)); }
.tool-row progress::-webkit-progress-value { background: var(--shovel-color, var(--rust)); }
.tool-row progress::-moz-progress-bar { background: var(--shovel-color, var(--rust)); }
.button.tool-change { min-height: 36px; padding: 6px 10px; font-size: .8rem; }
.tool-row[data-broken="true"] .tool-change { color: var(--cream); background: var(--rust); border-color: var(--rust); }
.map-field {
  position: relative;
  isolation: isolate;
  background-color: var(--map);
  background-image: linear-gradient(#6c674712 1px, transparent 1px), linear-gradient(90deg, #6c674712 1px, transparent 1px);
  background-size: 23px 23px;
}
.map-stage { width: min(100%, 740px); aspect-ratio: 1000 / 620; position: relative; margin-inline: auto; }
#atlas, .tiles { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-north, .map-legend { position: absolute; font-size: .69rem; font-weight: 700; pointer-events: none; }
.map-north { top: 13px; left: 15px; line-height: 1; text-align: center; opacity: .76; }
.map-legend {
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 3px;
  background: #f9f1daeb;
}
.map-legend > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.map-legend-heat i { width: 8px; height: 8px; border-radius: 50%; background: #576b7b; }
.map-legend-range { width: 18px; height: 2px; background: linear-gradient(90deg, #576b7b, #bf4520); }
.map-legend b { color: #536222; }
.tile {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 4%;
  height: 6.45%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  color: #373a27;
}
.tile::after {
  content: "";
  width: clamp(4px, .65vw, 7px);
  height: clamp(4px, .65vw, 7px);
  border-radius: 50%;
  background: #38381ea8;
  box-shadow: 0 0 0 1px #fbf5d696;
  transition: transform .15s, background-color .15s;
}
.tile[data-level]::after { width: clamp(8px, 1.12vw, 13px); height: clamp(8px, 1.12vw, 13px); }
.tile[data-level="freezing"]::after { background: #536b83; }
.tile[data-level="cold"]::after { background: #608887; }
.tile[data-level="warm"]::after { background: #a57021; }
.tile[data-level="hot"]::after { background: #bd5427; }
.tile[data-level="scorching"]::after { background: #a92418; box-shadow: 0 0 0 2px #f5b084; }
.tile[data-level="cash"]::after { background: #ffe08e; border: 2px solid #4c531b; border-radius: 3px; transform: rotate(45deg); }
.tile[data-level="stale"]::after { background: #897f67; box-shadow: 0 0 0 1px #f6e4b8; }
@media (hover: hover) {
  .tile:hover::after { background: var(--rust); transform: scale(1.5); }
  .tile[data-level="cash"]:hover::after { transform: rotate(45deg) scale(1.2); background: #ffe08e; }
}
.tile:focus-visible { z-index: 3; outline-offset: -4px; }
.tile.is-last::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid #443823; border-radius: 50%; }
.tile.is-new::after { animation: dig .35s ease-out; }
@keyframes dig { 0% { scale: .6; } 55% { scale: 1.7; } 100% { scale: 1; } }
.tile[data-partial]:not([data-raid-blocked])::after,
.map-legend-partial {
  width: clamp(12px, 2.1vw, 17px);
  height: clamp(12px, 2.1vw, 17px);
  border: 1px solid #69370f;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 34%, #5d2c10 36% 63%, transparent 65%) 24% 53% / 40% 52% no-repeat,
    linear-gradient(-45deg, transparent 34%, #5d2c10 36% 63%, transparent 65%) 76% 53% / 40% 52% no-repeat,
    #ffd371;
  box-shadow: 0 0 0 1px #fff3cf;
}
.map-legend-partial { width: 11px; height: 11px; flex: none; }
.tile.is-last[data-partial]:not([data-raid-blocked])::before {
  width: clamp(15px, 2.7vw, 21px);
  border: 2px solid #8a4316;
  box-shadow: 0 0 0 1px #fff0bf;
  animation: partial-ring 1.65s ease-out infinite;
  pointer-events: none;
}
@keyframes partial-ring {
  0%, 100% { scale: 1; opacity: 1; }
  45% { scale: 1.42; opacity: .55; }
}
.tile[data-blast-range]:not([data-raid-blocked]) {
  border-radius: 3px;
  outline: 1px dashed #7d2340;
  outline-offset: -1px;
  background: #e5a8b854;
}
.tile[data-blast-range]:focus-visible { outline: 2px solid #7d2340; outline-offset: -2px; }
.clue-area {
  position: absolute;
  z-index: 1;
  translate: -50% -50%;
  aspect-ratio: 1;
  border: 2px dashed #914119;
  border-radius: 50%;
  background: #ed9f563c;
  pointer-events: none;
}
.tiles { z-index: 2; }
.map-status { min-height: 70px; display: flex; gap: 11px; align-items: center; padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--line); }
.status-icon { display: grid; place-items: center; min-width: 34px; height: 34px; background: #f0e3c6; color: var(--rust); border-radius: 50%; font-size: 1.13rem; }
.map-status[data-kind="cash"] .status-icon { color: #4c531b; background: #eee3a3; }
.map-status[data-kind="broken"] .status-icon { color: #7c2813; background: #f3c89c; }
.map-status strong { font-weight: 700; font-size: .91rem; }
.map-status p { margin: 2px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.politician-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  color: #4c3425;
  background: #f3d8ab;
  border-top: 1px solid #b37b4d;
  animation: politician-appears .28s ease-out;
}
.politician-event strong { display: block; font-size: .91rem; }
.politician-event p { margin: 3px 0 0; font-size: .8rem; line-height: 1.35; }
.politician-event img { border-radius: 50%; }
.event-close { min-width: 34px; min-height: 34px; padding: 0; border: 1px solid #b37b4d; border-radius: 5px; background: transparent; font-size: 1.2rem; }
.event-close:hover { background: #fcebc9; }
@keyframes politician-appears { from { opacity: 0; transform: translateY(5px); } }
.sidebar { display: grid; gap: 13px; }
.pot-card { position: relative; color: #fff4d6; background: #2d3021; padding: 17px 16px 15px; }
.pot-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pot-top h2 { margin: 0; font: 700 .75rem/1.3 var(--body); color: #f5e1b7; text-transform: uppercase; letter-spacing: .11em; }
.pot-top span { color: #e8ad6c; }
.pot-value { white-space: nowrap; color: #ffbb76; }
.pot-value strong { font: 800 clamp(3.9rem, 7vw, 5.65rem)/.94 var(--display); }
.pot-value span { font: 800 clamp(1.4rem, 2.55vw, 2.15rem)/1 var(--display); }
.pot-card p { margin: 9px 0 0; color: #e7dbb8; font-size: .8rem; }
.ledger { background: var(--cream); padding: 14px 15px; }
.ledger-line { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; font-size: .85rem; }
.ledger-line:first-child > strong { font-family: var(--display); font-size: clamp(1.2rem, 2.1vw, 1.6rem); white-space: nowrap; }
.ledger-line.stats { padding-top: 10px; border-top: 1px solid #dfd4b8; }
.ledger-line.stats + .stats { margin-top: 9px; }
progress { appearance: none; width: 100%; display: block; height: 8px; margin: 7px 0 13px; border: 0; border-radius: 99px; background: #e9dec3; overflow: hidden; }
progress::-webkit-progress-bar { background: #e9dec3; }
progress::-webkit-progress-value { background: #687b43; border-radius: 99px; }
progress::-moz-progress-bar { background: #687b43; border-radius: 99px; }
.replay { min-height: 47px; background: #efaa66; }
.replay:hover { background: #f8bd82; box-shadow: 0 2px 0 var(--ink); }
.replay span { font-size: 1.16rem; }
.rank-shortcut { min-height: 39px; }
.xp-card, .timer-card, .players-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
}
.xp-card { padding: 12px 15px; }
.xp-heading, .timer-card { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.xp-heading h2 { font-size: 1.45rem; margin: 0; }
.xp-heading strong { color: var(--rust); font-size: .89rem; }
.xp-card p { margin: 4px 0 0; font-size: .82rem; font-weight: 700; }
.xp-card .player-alias { color: var(--muted); font-weight: 400; }
.player-alias strong { color: var(--ink); }
.xp-card .xp-standings { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; margin-top: 7px; }
.xp-rank-badge {
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid #ab9367;
  border-radius: 4px;
  background: #f3e5c4;
  color: #5f401f;
  font-size: .73rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.xp-card #xp-rank-unlock { margin-top: 5px; color: var(--rust); font-size: .76rem; }
.xp-card progress { margin: 8px 0 4px; height: 6px; }
.xp-card small { font-size: .72rem; color: var(--muted); }
#xp-next-rank { display: block; margin-top: 2px; }
.xp-card #xp-round { margin-top: 8px; color: var(--muted); font-size: .76rem; }
.xp-shop { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #dfd4b8; font-size: .8rem; }
.xp-shop .button { min-height: 33px; padding: 4px 9px; font-size: .78rem; }
.xp-shop #shop-button { flex: none; }
.timer-card { padding: 8px 15px; font-size: .9rem; font-weight: 700; }
.timer-card time { font: 800 1.6rem/1 var(--display); color: var(--rust); font-variant-numeric: tabular-nums; }
.players-card {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
  margin-top: 18px;
  padding: 19px;
  scroll-margin-top: 12px;
}
.players-card h2 { font-size: 2.45rem; margin: 0; }
.players-card p:not(.kicker), .ranking { font-size: .87rem; color: var(--muted); }
.players-card p:not(.kicker) { margin: 7px 0 12px; line-height: 1.4; }
.ranking-live i { background: #537039; box-shadow: 0 0 0 3px #53703924; }
.ranking { align-self: start; padding: 8px 12px; border: 1px solid #ddcfad; border-radius: 5px; background: #f8efd9; }
.ranking table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; color: var(--ink); font-variant-numeric: tabular-nums; }
.ranking th, .ranking td { padding: 6px 4px; }
.ranking th { position: sticky; z-index: 1; top: 0; background: #f8efd9; box-shadow: inset 0 -1px #cbbb96; }
.ranking tbody tr + tr td { border-top: 1px solid #ddcfad; }
.ranking td:nth-child(2) { overflow-wrap: anywhere; }
.ranking th:not(:nth-child(2)), .ranking td:not(:nth-child(2)) { white-space: nowrap; width: 1%; }
#players-board { min-width: 0; }
#players-scroll { min-width: 0; overflow: auto; scrollbar-color: #9b825d #f8efd9; }
#players-scroll:focus-visible { outline-offset: -2px; }
#players-board #players-scroll-hint { margin: 0 0 5px; color: #65573d; font-size: .76rem; font-weight: 700; }
#players-scroll-hint span { padding-inline-end: 2px; color: var(--rust); }
#players-more { width: 100%; margin: 5px 0 1px; padding: 9px 10px; font-size: .82rem; }
.players-self { background: #e9e2c2; font-weight: 700; }
.players-leader { background: #ffedac; font-weight: 700; }
.players-leader td:first-child { color: #704c0a; }
.players-xp-rank { display: block; margin-top: 2px; color: #63513a; font-size: .73rem; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.gold-shovel-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 6px;
  border: 1px solid #bc8a25;
  border-radius: 4px;
  background: #f7d977;
  color: #5b3c07;
  font-size: .74rem;
  line-height: 1.3;
}
.gold-shovel-badge::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  mask: url(shovel-mark.svg) center / contain no-repeat;
}
.players-detail-small { display: none; }
.daily-label { display: block; margin: 10px 0 4px; font-weight: 700; font-size: .86rem; }
#daily-dialog select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #fffaf0;
  font: inherit;
}
#daily-dialog .dialog-action { margin-top: 16px; }
.daily-message, .win-xp { color: var(--rust); font-weight: 700; }
#map-stage[aria-busy="true"] .tile { cursor: progress; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 18px 0 21px; color: var(--muted); font-size: .78rem; }
.footer p { margin: 0; }
.text-button { color: var(--rust); background: transparent; border: 0; padding: 6px 0; font-weight: 700; text-align: left; }
.text-button:hover { text-decoration: underline; }
dialog { width: min(470px, calc(100% - 28px)); border: 1px solid var(--ink); border-radius: 11px; background: var(--cream); color: var(--ink); padding: 26px; box-shadow: 0 6px 0 #312f2560; }
dialog::backdrop { background: #26251598; }
dialog h2 { font-size: 2.65rem; margin: 0 30px 15px 0; }
dialog p, dialog li { font-size: .95rem; line-height: 1.45; }
dialog ol { padding-left: 23px; }
dialog li + li { margin-top: 8px; }
.xp-rank-guide { padding: 8px 11px; border: 1px solid #dfd0af; border-radius: 5px; background: #fbefd6; }
.xp-rank-guide summary { color: #714624; font-size: .88rem; font-weight: 700; cursor: pointer; }
.xp-rank-guide p { margin: 7px 0; font-size: .82rem; }
.xp-rank-guide ul { margin: 0; padding-inline-start: 19px; }
.xp-rank-guide li { font-size: .82rem; }
.xp-rank-guide li span { display: inline-block; min-width: 65px; color: var(--muted); }
.xp-rank-guide li + li { margin-top: 2px; }
.close { position: absolute; top: 11px; right: 11px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 1.6rem; line-height: 1; }
.close:hover { background: #f1e6c9; }
.dialog-action { margin-top: 4px; }
.dialog-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 19px; }
.shovel-choices { display: grid; gap: 8px; margin-top: 16px; }
.shovel-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.shovel-choice:hover { background: #f4e8cd; border-color: var(--shovel-color); }
.shovel-choice[aria-pressed="true"] { border: 2px solid var(--shovel-color); padding: 7px 9px; }
.shovel-choice-copy { display: grid; gap: 2px; }
.shovel-choice-copy strong { font-size: .89rem; }
.shovel-choice-copy small, .shovel-choice-state { font-size: .72rem; color: var(--muted); }
.shovel-choice-state { max-width: 100px; font-weight: 700; text-align: right; }
.premium-choices { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.premium-choices h3 { margin: 0; font: 800 1.5rem/1 var(--display); }
.premium-choices .shovel-choices { margin-top: 8px; }
.premium-choices p { margin: 8px 0 0; font-size: .82rem; }
.shovel-icon[data-tool="excavator"]::before { mask-image: url(excavator-mark.svg); }
.shovel-icon[data-tool="blast"] { background: #f5dce5; color: #862442; }
.shovel-icon[data-tool="blast"]::before {
  background: currentColor;
  clip-path: polygon(49% 0%, 60% 31%, 89% 13%, 75% 44%, 100% 47%, 76% 63%, 88% 86%, 62% 78%, 50% 100%, 40% 76%, 12% 89%, 23% 62%, 0% 50%, 26% 41%, 13% 15%, 39% 30%);
  mask: none;
}
.shovel-choice[data-affordable="false"] .shovel-choice-state { color: var(--rust); }
.share-status { position: fixed; z-index: 10; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px); background: var(--ink); color: var(--cream); border-radius: 4px; padding: 10px 14px; font-size: .86rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 840px) {
  .shell { width: calc(100% - 38px); }
  .hero { min-height: 175px; }
  .game-layout { gap: 12px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { min-height: 56px; gap: 6px; }
  .button.small { font-size: .74rem; padding-inline: 5px; }
  #share-button span { display: none; }
  nav { gap: 4px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 22px 0 17px; }
  .hero h1 { font-size: clamp(2.6rem, 9.3vw, 4.4rem); max-width: 92%; }
  .hero-copy > p:last-child { margin-top: 9px; font-size: .84rem; max-width: 66%; }
  .hero-art { position: absolute; z-index: 0; right: 0; bottom: 9px; width: clamp(93px, 25vw, 155px); margin: 0; }
  .game-layout { display: flex; flex-direction: column; gap: 10px; }
  .map-card, .sidebar { width: 100%; }
  .sidebar { display: contents; }
  .pot-card { order: -1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 7px; padding: 8px 12px; }
  .pot-top { justify-content: start; }
  .pot-top h2 { font-size: .68rem; }
  .pot-top span { display: none; }
  .pot-value { grid-column: 2; grid-row: span 2; align-self: center; }
  .pot-value strong { font-size: 2.7rem; }
  .pot-value span { font-size: 1.25rem; }
  .pot-card p { margin: 0; font-size: .74rem; }
  .map-header { padding: 8px 10px; }
  .map-header h2 { font-size: 1.65rem; }
  .map-action { min-height: 40px; padding-inline: 8px; font-size: .8rem; }
  .tool-row { padding: 6px 10px; grid-template-columns: auto minmax(0, 1fr) minmax(27px, 50px) auto; gap: 7px; }
  .map-status { padding: 8px 10px; min-height: 59px; }
  .map-status p { font-size: .78rem; }
  .map-legend { bottom: 4px; right: 4px; font-size: .59rem; }
  .ledger, .replay, .xp-card, .timer-card, .rank-shortcut { width: 100%; }
  .timer-card { order: -1; }
  .players-card { grid-template-columns: 1fr; gap: 12px; padding: 13px; }
  .footer { font-size: .72rem; }
}
@media (max-width: 800px) {
  #players-table .players-detail { display: none; }
  .players-detail-small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }
  #players-table td:last-child { white-space: normal; }
}
@media (max-width: 420px) {
  .header-inner { flex-wrap: wrap; gap: 2px 5px; padding-block: 5px; }
}
@media (max-width: 350px) {
  nav { gap: 3px; }
  .button.small { font-size: .66rem; padding-inline: 3px; }
  .hero h1 { max-width: 100%; }
  .hero-art { opacity: .72; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tile.is-last[data-partial]:not([data-raid-blocked])::before { animation: none; }
}
