/* ==========================================================================
   Eco Rescue: Forest & River Rescue - interface styling.

   Look: dark forest-green translucent glass panels, thin brass rules, small
   soft shadows, restrained corner radii. The map is the main subject; every
   panel sits quietly on top of it.

   Palette
     deep forest  #123D2A     warm bark    #7A563A
     dark moss    #1E4D36     parchment    #F5EEDB
     leaf green   #6F9E4B     brass        #C8A550
     amber        #E6A23C     urgent red   #C84B3C
   ========================================================================== */

:root {
  --forest:     #123D2A;
  --moss:       #1E4D36;
  --leaf:       #6F9E4B;
  --bark:       #7A563A;
  --cream:      #F5EEDB;
  --brass:      #C8A550;
  --amber:      #E6A23C;
  --urgent:     #C84B3C;

  --cream-dim:  rgba(245, 238, 219, .68);
  --brass-line: rgba(200, 165, 80, .38);
  --brass-soft: rgba(200, 165, 80, .18);

  /* the shared glass-panel look */
  --glass:      rgba(18, 61, 42, .80);
  --glass-deep: rgba(12, 42, 28, .92);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, .28);
  --shadow-md:  0 6px 20px rgba(0, 0, 0, .38);

  --r-panel: 10px;
  --r-btn:   8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* dark wood table the map sheet rests on */
  background-color: #2b1c10;
  background-image:
    repeating-linear-gradient(92deg,
      rgba(0, 0, 0, .22) 0 2px, rgba(255, 255, 255, .022) 2px 5px,
      rgba(0, 0, 0, .10) 5px 9px, rgba(255, 255, 255, .015) 9px 14px),
    radial-gradient(ellipse at 50% 40%, #4a301b 0%, #24170d 78%);
  color: var(--cream);
  font-family: "Segoe UI", Verdana, "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 6px;                          /* thin frame -> more map */
  display: flex;
  overflow: hidden;
}

#stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Sized by JS to the exact canvas box. The parchment mount and its shadow are
   drawn with box-shadow rings so they cost no layout. */
#board {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 28, .9);
  background: #2f5f3c;
  line-height: 0;
  box-shadow:
    0 0 0 9px #cbb88f,                    /* parchment mount */
    0 0 0 10px #8a7550,                   /* worn edge */
    0 0 0 12px rgba(38, 24, 13, .85),     /* frame shadow */
    0 20px 44px rgba(0, 0, 0, .6);
}

#game { display: block; }

/* ============================ HUD ======================================== */

.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  line-height: 1.2;
}
.hud button, .hud .timer-plate, .hud .coin-plate, .hud .journal,
.hud .gauge-panel, .hud .controls-hint, .hud .signboard-wrap { pointer-events: auto; }

.top-left {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px;
}
.top-right {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.bottom-left {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
}
.bottom-right { position: absolute; bottom: 14px; right: 14px; }

/* --- decorative compass, tucked behind the panels --- */
.compass {
  position: absolute;
  right: -34px; top: 50%;
  width: 148px; height: 148px;
  transform: translateY(-50%);
  opacity: .30;
  pointer-events: none;
}
.compass .c-ring   { fill: none; stroke: #b9932f; stroke-width: 5; }
.compass .c-face   { fill: rgba(232, 220, 190, .5); stroke: rgba(90, 66, 26, .7); stroke-width: 1.5; }
.compass .c-needle-n { fill: #a8402c; }
.compass .c-needle-e { fill: rgba(60, 46, 26, .75); }
.compass .c-hub    { fill: #7a5c22; }

/* --- brass gear button --- */
.gear-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  cursor: pointer;
  color: #f0dda4;
  border-radius: 50%;
  border: 2px solid #6d4f1c;
  background:
    radial-gradient(circle at 34% 28%, #b98f3a 0%, #8a6524 46%, #5c4116 100%);
  box-shadow:
    inset 0 0 0 3px rgba(238, 216, 158, .22),
    inset 0 0 0 6px rgba(60, 42, 14, .5),
    0 3px 10px rgba(0, 0, 0, .5);
}
.gear-btn svg { fill: currentColor; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)); }
.gear-btn:hover { filter: brightness(1.12); }
.gear-btn:active { transform: translateY(1px); }

/* --- countdown plate --- */
.timer-plate {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px;
  border-radius: var(--r-panel);
  background: var(--glass);
  border: 1px solid var(--brass-line);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(245, 238, 219, .06);
}
.timer { display: flex; align-items: center; gap: 9px; }
.timer-icon { font-size: 17px; color: var(--brass); }
.timer-text { display: flex; flex-direction: column; line-height: 1.05; }
.timer-label {
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--cream-dim);
  white-space: nowrap;
}
.timer-value {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: var(--cream);
}
.timer-plate[data-state="warn"]   .timer-value,
.timer-plate[data-state="warn"]   .timer-icon  { color: var(--amber); }
.timer-plate[data-state="urgent"] .timer-value,
.timer-plate[data-state="urgent"] .timer-icon  { color: var(--urgent); }
.timer-plate[data-state="warn"]   { border-color: rgba(230, 162, 60, .6); }
.timer-plate[data-state="urgent"] { border-color: rgba(200, 75, 60, .68); }

/* --- carved wooden signboard hung on leather straps --- */
.signboard-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.signboard {
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 42px 11px;
  border-radius: 0 0 8px 8px;
  border: 2px solid #4b3117;
  border-top: none;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .16) 0 3px, rgba(255, 226, 170, .05) 3px 8px,
      rgba(0, 0, 0, .09) 8px 13px),
    linear-gradient(180deg, #a5772f 0%, #7d5620 55%, #64431a 100%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 224, 160, .18);
}
.sign-text {
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f7e3a8;
  text-shadow: 0 2px 0 rgba(52, 32, 8, .85), 0 0 12px rgba(255, 206, 110, .28);
}
/* the leather straps and their buckles */
.strap {
  position: absolute;
  top: -2px;
  width: 20px;
  height: calc(100% + 4px);
  background: linear-gradient(180deg, #5b3a1d, #3a2411);
  border-left: 1px solid rgba(255, 214, 150, .16);
  border-right: 1px solid rgba(0, 0, 0, .45);
}
.strap.left  { left: 14px; }
.strap.right { right: 14px; }
.strap::after {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: 12px; height: 8px;
  transform: translate(-50%, -50%);
  border: 2px solid #d7b463;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.level-plank {
  margin-top: -1px;
  padding: 4px 22px 5px;
  border-radius: 0 0 7px 7px;
  border: 2px solid #4b3117;
  border-top: none;
  background: linear-gradient(180deg, #8d6526 0%, #6a4719 100%);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #f3dfa8;
  text-shadow: 0 1px 0 rgba(46, 28, 6, .8);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .42);
}

/* --- coin plate --- */
.coin-plate {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 26, 12, .92), rgba(22, 15, 7, .94));
  border: 2px solid #c8a550;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 224, 160, .18);
}
.coin-plate strong {
  font-size: 21px; font-weight: 800; letter-spacing: .6px;
  color: #f7e3a8;
  text-shadow: 0 1px 0 rgba(40, 24, 6, .8);
}
.coin-plate .unit { color: rgba(247, 227, 168, .8); }
.unit {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.coin-dot {
  width: 19px; height: 19px; border-radius: 50%;
  align-self: center;
  background: radial-gradient(circle at 34% 28%, #fff2c0, #e8c55f 52%, #a37c1c);
  border: 1px solid rgba(90, 66, 14, .95);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22);
  flex: 0 0 auto;
}
.badge {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  color: rgba(245, 238, 219, .72);
  background: rgba(20, 14, 7, .6);
  border: 1px solid rgba(200, 165, 80, .3);
  border-radius: 999px;
  padding: 2px 11px;
  white-space: nowrap;
}

/* --- tools, presented as a leather-bound field journal --- */
.journal {
  position: relative;
  display: flex;
  padding: 7px 8px 7px 15px;
  border-radius: 4px 9px 9px 4px;
  border: 1px solid #4a2f16;
  background: linear-gradient(180deg, #5d3d1e, #402715);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .5);
}
.journal-spine {
  position: absolute;
  left: 4px; top: 5px; bottom: 5px;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7a5228, #2e1c0d);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 150, .16);
}
.journal-page {
  display: flex;
  gap: 7px;
  padding: 5px;
  border-radius: 3px 7px 7px 3px;
  background: linear-gradient(170deg, #e8dcbb 0%, #d6c7a0 100%);
  box-shadow: inset 0 0 14px rgba(120, 96, 52, .38);
}

.tool-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #5b4626;
  background: rgba(255, 252, 240, .5);
  border: 1px solid rgba(122, 86, 58, .42);
  border-radius: 5px;
  transition: background .14s, color .14s, border-color .14s;
}
.tool-btn:hover { background: rgba(255, 253, 244, .82); }
.tool-btn.selected {                     /* FILLED + brass edge + "Selected" */
  background: linear-gradient(180deg, #fdf6e0, #efe2c0);
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(200, 165, 80, .38), inset 0 1px 0 #fff;
  color: #3f3117;
}
.tool-btn.selected .tool-state { color: #8a6a1c; font-weight: 700; }
.tool-btn.selected .tool-state::before { content: "\2714 "; }

.tool-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .72) center/23px 23px no-repeat;
  border: 1px solid rgba(122, 86, 58, .5);
}
.tool-text { display: flex; flex-direction: column; line-height: 1.15; }
.tool-name { font-size: 15px; font-weight: 700; }
.tool-state { font-size: 14px; color: #7a6440; }

.controls-hint {
  margin: 0 0 0 2px;
  font-size: 14px;
  color: rgba(245, 238, 219, .72);
  /* shadow rather than a pill, so the hint stays legible without adding weight */
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .7);
}

/* --- riveted steel status gauges --- */
.gauge-panel {
  min-width: 244px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px 12px;
  border-radius: var(--r-panel);
  border: 1px solid #5c5c58;
  background: linear-gradient(180deg, rgba(74, 78, 74, .93), rgba(44, 48, 45, .95));
  box-shadow: 0 5px 16px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
}
/* corner rivets */
.gauge-panel::before, .gauge-panel::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfd2cc, #6e716c);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}
.gauge-panel::before { left: 6px; top: 6px; }
.gauge-panel::after  { right: 6px; top: 6px; }

.gauge-row {
  display: flex; align-items: center; gap: 9px;
  padding: 3px 0;
}
.gauge-row + .gauge-row { border-top: 1px solid rgba(255, 255, 255, .07); }
.gauge-label {
  flex: 1 1 auto;
  font-size: 14px;
  letter-spacing: .3px;
  color: rgba(245, 238, 219, .78);
}
.gauge-val {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

/* small enamelled discs instead of bitmap icons */
.gauge-icon {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  position: relative;
}
.gauge-icon.fire { background: radial-gradient(circle at 50% 62%, #ffcf6a, #d2542a 62%, #8a2f14); }
.gauge-icon.paw  { background: radial-gradient(circle at 40% 34%, #9fc7e8, #3b7fb5 60%, #1e4a6d); }
.gauge-icon.leaf { background: radial-gradient(circle at 40% 34%, #b6e086, var(--leaf) 58%, #3d6a26); }
.gauge-icon.boss { background: radial-gradient(circle at 40% 34%, #f0a9a0, var(--urgent) 58%, #7d2618); }

.gauge-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(200, 165, 80, .3);
}
.gauge-pct { font-size: 18px; font-weight: 800; color: var(--brass); }

.bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(10, 14, 10, .8);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--leaf), #9ecb6a);
  transition: width .3s ease-out;
}

/* ============================ MENU ======================================= */

.menu-panel {
  position: absolute;
  top: 68px;                             /* clears the 46 px gear button */
  left: 14px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  padding: 5px;
  min-width: 202px;
  background: var(--glass-deep);
  border: 1px solid var(--brass-line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-md);
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--cream-dim);
  background: transparent;
  border: none;
  border-radius: 6px;
}
.menu-item + .menu-item { border-top: 1px solid var(--brass-soft); border-radius: 0; }
.menu-item:hover { background: rgba(111, 158, 75, .20); color: var(--cream); }
.menu-icon { font-size: 14px; width: 16px; text-align: center; color: var(--brass); }

/* ============================ BANNER / TOAST ============================= */

.banner, .toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 66%;
  text-align: center;
  border-radius: var(--r-panel);
  pointer-events: none;
  z-index: 5;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}
.banner {
  top: 116px;                            /* clears the hanging signboard */
  padding: 9px 18px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--cream);
  background: var(--glass-deep);
  border: 1px solid var(--brass);
  border-left: 3px solid var(--brass);
}
.toast {
  bottom: 84px;
  padding: 8px 15px;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  color: var(--cream);
  background: var(--glass-deep);
  border: 1px solid rgba(230, 162, 60, .8);
  border-left: 3px solid var(--amber);
}
.hidden { display: none !important; }

/* ============================ SCREENS ==================================== */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 24, 16, .78);
  overflow-y: auto;
  line-height: 1.45;
}

.panel {
  width: min(580px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(30, 77, 54, .97), rgba(15, 48, 33, .97));
  border: 1px solid var(--brass-line);
  border-radius: 14px;
  padding: clamp(16px, 2.4vw, 28px);
  text-align: center;
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
}
.title.small { font-size: clamp(19px, 2.4vw, 26px); }
.title-sub {
  display: block;
  margin-top: 5px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--brass);
}
.h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 20px 0 8px;
}
.purpose { margin: 0 0 6px; font-size: clamp(14px, 1.5vw, 15px); color: var(--cream-dim); }

.steps {
  text-align: left;
  margin: 0 auto 10px;
  padding-left: 20px;
  max-width: 420px;
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.6;
  color: var(--cream-dim);
}
.steps strong { color: var(--cream); }

.challenge-note {
  margin: 0 auto 8px;
  max-width: 440px;
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--cream-dim);
  background: rgba(230, 162, 60, .10);
  border: 1px solid rgba(230, 162, 60, .38);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-btn);
  padding: 9px 13px;
  text-align: left;
}
.challenge-note strong { color: var(--amber); }

/* --- difficulty picker --- */
.diffs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 18px;
  max-width: 440px;
  text-align: left;
}
.diff-btn {
  font: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 13px;
  cursor: pointer;
  color: var(--cream-dim);
  background: rgba(8, 30, 20, .45);
  border: 1px solid var(--brass-soft);
  border-left: 3px solid transparent;
  border-radius: var(--r-btn);
  text-align: left;
}
.diff-btn:hover { background: rgba(111, 158, 75, .16); color: var(--cream); }
.diff-btn.selected {
  background: rgba(111, 158, 75, .22);
  border-color: var(--brass-line);
  border-left-color: var(--brass);
  color: var(--cream);
}
.diff-name { font-size: 15px; font-weight: 700; color: var(--cream); }
.diff-state { font-size: 14px; font-weight: 500; color: var(--cream-dim); }
.diff-btn.selected .diff-state { color: var(--brass); }
.diff-btn.selected .diff-state::before { content: "\2714 "; }
.diff-time {
  font-size: 14px; font-weight: 600; grid-column: 2; grid-row: 1;
  white-space: nowrap; color: var(--brass);
}
.diff-desc { font-size: 14px; grid-column: 1 / -1; }

/* --- stats --- */
.stats {
  list-style: none;
  margin: 14px auto;
  padding: 0;
  max-width: 400px;
  text-align: left;
  font-size: 15px;
}
.stats li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 2px;
  color: var(--cream-dim);
}
.stats li + li { border-top: 1px solid var(--brass-soft); }
.stats li strong { color: var(--cream); font-weight: 600; }
.stats li.coin-line strong { color: var(--brass); }

.fact {
  margin: 14px auto 18px;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-dim);
  background: rgba(111, 158, 75, .10);
  border-left: 3px solid var(--leaf);
  border-radius: var(--r-btn);
  padding: 11px 14px;
  text-align: left;
}

/* --- failure --- */
.fail-panel { border-color: rgba(200, 75, 60, .5); }
.fail-panel .title { color: var(--urgent); }
.fail-reason {
  margin: 8px auto 4px;
  max-width: 440px;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  color: var(--cream);
  background: rgba(200, 75, 60, .14);
  border: 1px solid rgba(200, 75, 60, .45);
  border-left: 3px solid var(--urgent);
  border-radius: var(--r-btn);
  padding: 10px 14px;
}

/* --- buttons --- */
.big-btn {
  font: inherit;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #10301f;
  background: linear-gradient(180deg, #7fae57, var(--leaf));
  border: 1px solid rgba(200, 165, 80, .55);
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-sm);
  padding: 12px 28px;
  min-height: 46px;
  cursor: pointer;
  transition: filter .14s, transform .08s;
}
.big-btn:hover { filter: brightness(1.08); }
.big-btn:active { transform: translateY(1px); }

.row-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

.ghost-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--brass-line);
  border-radius: var(--r-btn);
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.ghost-btn:hover { background: rgba(111, 158, 75, .18); color: var(--cream); }

.tiny { font-size: 14px; color: rgba(245, 238, 219, .5); margin: 14px 0 0; }
.tiny strong { color: var(--brass); }

button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* Shorter laptop screens: shave the HUD back a little further. */
@media (max-height: 720px) {
  .timer-value { font-size: 23px; }
  .coin-plate strong { font-size: 19px; }
  .timer-plate, .coin-plate { padding: 5px 12px; }
  .gear-btn { width: 40px; height: 40px; }
  .menu-panel { top: 62px; }
  .signboard { padding: 7px 38px 9px; }
  .tool-btn { padding: 6px 10px; }
  .gauge-panel { min-width: 228px; padding: 9px 12px 10px; }
  .compass { width: 118px; height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; }
}
