/* World map "War Table" look (concept A from /testing/worldmap-ui).
   The page around the map becomes game UI: a wooden resource strip, an icon
   rail on the map, wooden zoom buttons, and every panel (hex, Chronicle,
   Rules, Legend) opens as a framed drawer on the right, or a bottom sheet on
   phones. The wood frame keeps one painted palette in both themes; the
   content inside the drawers keeps the site's themed panel colours. */

:root {
  --wt-wood-1: #5a3a1e;
  --wt-wood-2: #3b2412;
  --wt-wood-3: #24150a;
  --wt-wood-ink: #f6e3bd;
  --wt-wood-ink-2: #d9c39a;
  --wt-brass: #c9a24a;
  --wt-gold-1: #ffe08a;
  --wt-gold-2: #f2b51f;
  --wt-gold-3: #c98b0b;
  --wt-gold-edge: #6b4a07;
  --wt-alert: #b8352b;
  --wt-wood-panel: linear-gradient(180deg, var(--wt-wood-1), var(--wt-wood-2));
  --wt-wood-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.25), 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ── Page frame ─────────────────────────────────────────────────────────── */
.worldmap-container.wt {
  max-width: min(1500px, calc(100% - 16px));
  gap: 10px;
}

.wt-strip {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--wt-wood-panel);
  border: 2px solid var(--wt-wood-3);
  box-shadow: var(--wt-wood-shadow);
  color: var(--wt-wood-ink);
  flex-wrap: wrap;
}

.wt-plate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding-right: 6px;
}

.wt-crest {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  background: linear-gradient(180deg, #8b5d2c, #5c3b19);
  color: #ffd75e;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 94, 0.45);
  flex: 0 0 auto;
}

.wt .wt-title {
  margin: 0;
  font: 700 1.15rem "Cinzel", serif;
  color: var(--wt-wood-ink);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.wt-res-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wt-res {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.wt-res i {
  color: #e7c37a;
  font-size: 0.85rem;
}

.wt-res b {
  font: 600 1.05rem "Oswald", sans-serif;
  color: #fff;
}

.wt-res small {
  font-size: 0.7rem;
  color: var(--wt-wood-ink-2);
}

.wt-res-alert {
  background: rgba(184, 53, 43, 0.6);
}

.wt-res-alert i {
  color: #fff;
}

/* The tax button (views/tinybits/worldMapTaxActions.jsx) as a gold game button. */
.wt .worldmap-tax-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.wt .worldmap-tax-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt .worldmap-next-coin {
  color: var(--wt-wood-ink-2);
  font-size: 0.75rem;
}

.wt .worldmap-tax-note {
  color: var(--wt-wood-ink-2);
  font-size: 0.68rem;
  opacity: 0.85;
}

.wt .worldmap-claim-taxes-btn {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--wt-gold-edge);
  background: linear-gradient(180deg, var(--wt-gold-1), var(--wt-gold-2) 55%, var(--wt-gold-3));
  color: #3a2402;
  font: 700 0.9rem "Cinzel", serif;
  box-shadow: inset 0 1px 0 #fff3c4, 0 3px 0 var(--wt-gold-edge), 0 6px 12px rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

.wt .worldmap-claim-taxes-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff3c4, 0 1px 0 var(--wt-gold-edge);
}

.wt .worldmap-claim-taxes-btn:disabled {
  background: linear-gradient(180deg, #8a7a5a, #6b5a3c);
  border-color: var(--wt-wood-3);
  color: var(--wt-wood-ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 0 var(--wt-wood-3);
  opacity: 1;
}

/* ── The map stage ──────────────────────────────────────────────────────── */
.wt .worldmap-map-viewport {
  height: calc(100dvh - 200px);
  min-height: 420px;
  max-height: none;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 3px solid var(--wt-wood-3);
  box-shadow: 0 0 0 2px var(--wt-brass) inset, 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Left rail */
.wt-rail {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 74px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--wt-wood-2), var(--wt-wood-1));
  border: 2px solid var(--wt-wood-3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.wt-rail-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.22);
  color: #e9d3a6;
  cursor: pointer;
  font: 600 0.62rem "Oswald", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.wt-rail-btn i {
  font-size: 1.1rem;
}

.wt-rail-btn:hover,
.wt-rail-btn:focus-visible {
  background: linear-gradient(180deg, #8b5d2c, #5c3b19);
  border-color: #e0b05a;
  color: #fff;
}

.wt-rail-dot {
  position: absolute;
  top: 5px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wt-alert);
  box-shadow: 0 0 0 2px var(--wt-wood-2);
}

/* Quest tracker: the next Getting Started step. */
.wt-quest {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 90px));
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  border: 2px solid var(--wt-wood-3);
  background: var(--wt-wood-panel);
  color: var(--wt-wood-ink);
  box-shadow: var(--wt-wood-shadow);
  text-align: left;
  cursor: pointer;
}

.wt-quest-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--wt-gold-1), var(--wt-gold-3));
  color: #3a2402;
  flex: 0 0 auto;
  animation: wt-quest-pulse 2s ease-in-out infinite;
}

@keyframes wt-quest-pulse {
  50% { box-shadow: 0 0 0 6px rgba(255, 215, 94, 0); }
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 94, 0.55); }
}

.wt-quest-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.wt-quest-body small {
  font: 600 0.65rem "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7c37a;
}

/* Zoom and toggle buttons: square wooden pegs. */
.wt .worldmap-zoom-controls {
  top: 12px;
  right: 12px;
}

.wt .worldmap-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--wt-wood-3);
  background: var(--wt-wood-panel);
  color: var(--wt-wood-ink);
  box-shadow: 0 3px 0 var(--wt-wood-3), 0 6px 10px rgba(0, 0, 0, 0.3);
}

.wt .worldmap-zoom-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #8b5d2c, #5c3b19);
  color: #fff;
}

.wt .worldmap-zoom-btn:disabled {
  opacity: 0.5;
}

.wt .worldmap-zoom-btn.is-active {
  border-color: #e0b05a;
  color: #ffd766;
}

/* ── Drawers: hex panel, Chronicle, Rules, Legend ───────────────────────── */
.map-info-modal.wt-drawer {
  justify-content: flex-end;
  align-items: stretch;
  padding: 84px 12px 12px;
  animation: none;
}

.wt-drawer .map-info-modal-backdrop {
  background: rgba(10, 6, 2, 0.28);
  backdrop-filter: none;
}

.wt-drawer .map-info-modal-container {
  max-width: 420px;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  border-radius: 14px;
  border: 3px solid var(--wt-wood-3);
  background-color: var(--cloud-bg);
  background-image: var(--dirt-texture-url);
  box-shadow: 0 0 0 2px var(--wt-brass) inset, 0 14px 40px rgba(0, 0, 0, 0.5);
  animation: wt-drawer-in 0.22s ease-out;
  overscroll-behavior: contain;
}

.wt-side-drawer .map-info-modal-container {
  max-width: 480px;
}

@keyframes wt-drawer-in {
  from { transform: translateX(36px); opacity: 0; }
}

/* Sticky so it stays reachable while the drawer scrolls; the negative bottom
   margin keeps it from pushing the header down. */
.wt-drawer .map-info-modal-close {
  position: sticky;
  top: 9px;
  right: auto;
  z-index: 5;
  margin: 9px 9px -43px auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  color: var(--wt-wood-ink);
}

.wt-drawer .map-info-modal-close:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* The drawer's own content panel loses its separate frame. */
.wt-drawer .map-info-modal-content > .cloudy-round-panel,
.wt-drawer .map-info-section > .cloudy-round-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.wt-drawer .map-info-section {
  width: 100%;
}

/* Wood header on the side drawers */
.wt-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 52px 10px 12px;
  background: var(--wt-wood-panel);
  color: var(--wt-wood-ink);
}

.wt-drawer-head h3 {
  margin: 0;
  font: 700 1.1rem "Cinzel", serif;
  color: var(--wt-wood-ink);
}

.wt-drawer-ribbon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  margin: -10px 0 -14px;
  background: linear-gradient(180deg, #8b5d2c, #5c3b19);
  color: #ffd75e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  flex: 0 0 auto;
}

.wt-side-drawer .map-description-panel {
  padding: 14px 18px;
}

/* ── Hex panel inside the drawer ────────────────────────────────────────── */
.wt-hex-drawer .worldmap-info-header {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  min-height: 52px;
  padding: 8px 52px 8px 12px;
  background: var(--wt-wood-panel);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wt-hex-drawer .worldmap-info-title {
  min-width: 0;
  color: var(--wt-wood-ink);
  font: 700 1.05rem "Cinzel", serif;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* The title icon becomes a ribbon in the owner's colour. */
.wt-hex-drawer .worldmap-info-header:not(.worldmap-info-header-section) .worldmap-info-title > i:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 46px;
  margin: -14px 2px -18px 0;
  background: var(--wt-owner);
  color: #fff !important;
  font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  flex: 0 0 auto;
}

.wt-hex-drawer .worldmap-coords {
  color: var(--wt-wood-ink-2);
  opacity: 0.8;
  font-family: "Oswald", sans-serif;
  white-space: nowrap;
}

.wt-hex-drawer .worldmap-hex-back {
  border-radius: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  color: var(--wt-wood-ink);
}

/* Hero picture */
.wt-hex-drawer .worldmap-castle-preview {
  position: relative;
  padding: 14px 16px 6px;
  background: radial-gradient(ellipse at 50% 72%, color-mix(in srgb, var(--wt-owner) 22%, rgba(255, 255, 255, 0.5)), transparent 68%);
  border-bottom: 1px solid var(--surface-border);
}

.wt-hex-drawer .worldmap-castle-img {
  max-height: 130px;
  image-rendering: auto;
}

.wt-hex-drawer .worldmap-castle-caption {
  display: block;
  font: 600 0.7rem "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.wt-hex-drawer .worldmap-owner-card {
  margin: 10px 12px 0;
  border-radius: 10px;
  border-left: 4px solid var(--wt-owner);
}

/* Stat tiles: icon in a coloured disc, number in Oswald */
.wt-hex-drawer .worldmap-stat-tile {
  border-radius: 10px;
}

.wt-hex-drawer .worldmap-stat-tile-label i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  border-radius: 50%;
  background: #b8860b;
  color: #fff;
  font-size: 0.65rem;
  vertical-align: middle;
}

.wt-hex-drawer .worldmap-stat-tile-label .fa-heart { background: #b8352b; }
.wt-hex-drawer .worldmap-stat-tile-label .fa-shield-halved { background: #7a5230; }
.wt-hex-drawer .worldmap-stat-tile-label .fa-trophy { background: #b8741a; }
.wt-hex-drawer .worldmap-stat-tile-label .fa-hourglass-half { background: #6b5638; }

.wt-hex-drawer .worldmap-stat-tile-value {
  font-family: "Oswald", sans-serif;
}

/* Menu buttons as chunky wooden plates with a coloured icon block. */
.wt-hex-drawer .worldmap-hex-actions {
  gap: 8px;
}

.wt-hex-drawer .worldmap-hex-action {
  border-radius: 10px;
  border: 2px solid var(--wt-wood-3);
  border-left-width: 2px;
  background: linear-gradient(180deg, #6a4826, #4a2f17);
  color: var(--wt-wood-ink);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.22), 0 3px 0 var(--wt-wood-3);
  transition: transform 0.08s, filter 0.12s;
}

.wt-hex-drawer .worldmap-hex-action:hover:not(:disabled) {
  filter: brightness(1.12);
}

.wt-hex-drawer .worldmap-hex-action:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.22), 0 1px 0 var(--wt-wood-3);
}

.wt-hex-drawer .worldmap-hex-action-icon {
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 rgba(0, 0, 0, 0.35);
}

.wt-hex-drawer .worldmap-hex-action-label {
  color: #fff;
  font-family: "Cinzel", serif;
}

.wt-hex-drawer .worldmap-hex-action-summary {
  color: var(--wt-wood-ink-2);
}

.wt-hex-drawer .worldmap-hex-action-badge {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffe9b0;
  border-color: transparent;
}

.wt-hex-drawer .worldmap-hex-action-chevron {
  color: #e7c37a;
}

/* Attack is the main thing to do on someone else's hex: make it red. */
.wt-hex-drawer .worldmap-hex-action-attack {
  background: linear-gradient(180deg, #c2473b, #8c2017);
  border-color: #4a0f0a;
  box-shadow: inset 0 1px 0 rgba(255, 200, 190, 0.35), 0 3px 0 #4a0f0a;
}

.wt-hex-drawer .worldmap-hex-action-attack .worldmap-hex-action-summary {
  color: #ffd9d2;
}

.wt-hex-drawer .worldmap-hex-action-alert {
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.22), 0 3px 0 var(--wt-wood-3), 0 0 0 2px var(--wt-alert);
}

/* Main buttons inside every section (claim, raid, upgrade, ...) */
.wt-hex-drawer .cta:not(.worldmap-hex-action) {
  border-radius: 10px;
  border: 2px solid var(--wt-gold-edge);
  background: linear-gradient(180deg, var(--wt-gold-1), var(--wt-gold-2) 55%, var(--wt-gold-3));
  color: #3a2402;
  font-family: "Cinzel", serif;
  font-weight: 700;
  text-shadow: none;
  box-shadow: inset 0 1px 0 #fff3c4, 0 3px 0 var(--wt-gold-edge), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.wt-hex-drawer .cta:not(.worldmap-hex-action):disabled {
  background: linear-gradient(180deg, #a8987a, #85765a);
  border-color: #4a3e2a;
  color: #2b2214;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 #4a3e2a;
}

.wt-hex-drawer .cta:not(.worldmap-hex-action):active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff3c4, 0 1px 0 var(--wt-gold-edge);
}

/* ── Phones and narrow windows: drawers become bottom sheets ─────────────── */
@media (max-width: 899px) {
  .map-info-modal.wt-drawer {
    justify-content: center;
    align-items: flex-end;
    padding: 0;
  }

  .wt-drawer .map-info-modal-container {
    max-width: 100%;
    height: auto;
    max-height: 84dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    animation-name: wt-sheet-in;
  }

  .wt-side-drawer .map-info-modal-container {
    max-width: 100%;
  }
}

@keyframes wt-sheet-in {
  from { transform: translateY(48px); opacity: 0; }
}

@media (max-width: 760px) {
  .worldmap-container.wt {
    max-width: calc(100% - 8px);
  }

  .wt-strip {
    gap: 6px;
    padding: 6px;
  }

  .wt-plate {
    flex: 1 1 auto;
  }

  .wt .wt-title {
    font-size: 1rem;
  }

  .wt-res-row {
    order: 3;
    flex-basis: 100%;
  }

  .wt-res {
    padding: 5px 7px;
  }

  .wt-res small {
    display: none;
  }

  .wt .worldmap-tax-actions {
    margin-left: auto;
  }

  .wt .worldmap-tax-note,
  .wt .worldmap-next-coin-label {
    display: none;
  }

  .wt .worldmap-map-viewport {
    height: calc(100dvh - 230px);
    min-height: 380px;
  }

  /* The rail goes horizontal along the bottom of the map. */
  .wt-rail {
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    flex-direction: row;
  }

  .wt-rail-btn {
    flex: 1;
  }

  .wt-quest {
    left: 8px;
    bottom: 82px;
    max-width: calc(100% - 70px);
  }

  .wt .worldmap-zoom-controls {
    top: 8px;
    right: 8px;
  }

  .wt .worldmap-zoom-btn {
    width: 36px;
    height: 36px;
  }
}

/* Newcomer goal track (views/worldMapPartial.jsx): five stops on one road,
   the current one glowing, with the "how" folded away underneath. */
.wt-goals {
  position: absolute;
  top: 12px;
  left: 98px;
  right: 64px;
  z-index: 6;
  max-width: 470px;
  padding: 8px 12px 6px;
  border-radius: 12px;
  border: 2px solid var(--wt-wood-3);
  background: var(--wt-wood-panel);
  color: var(--wt-wood-ink);
  box-shadow: var(--wt-wood-shadow);
  cursor: default;
}
.wt-goals.is-ready { border-color: var(--wt-gold-2); }
/* Help open: read it over the coach bubble (z-index 7). */
.wt-goals:has(.wt-goals-help[open]) { z-index: 8; }

.wt-goals-head small {
  display: block;
  font: 600 0.65rem "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7c37a;
}
.wt-goals-now {
  display: block;
  font-size: 0.84rem;
  line-height: 1.3;
  margin-top: 1px;
}

.wt-goals-road {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 2px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.wt-goal {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
/* The road between two stops. */
.wt-goal + .wt-goal::before {
  content: "";
  position: absolute;
  top: 14px;
  right: calc(50% + 17px);
  width: calc(100% - 34px);
  border-top: 2px dashed rgba(231, 195, 122, 0.45);
}
.wt-goal.is-done + .wt-goal::before { border-top-style: solid; border-color: var(--wt-gold-2); }
.wt-goal-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(231, 195, 122, 0.45);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(246, 233, 204, 0.6);
  font-size: 0.8rem;
}
.wt-goal-label {
  font: 600 0.68rem "Oswald", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(246, 233, 204, 0.6);
  white-space: nowrap;
}
.wt-goal.is-done .wt-goal-icon {
  border-color: var(--wt-gold-edge);
  background: linear-gradient(180deg, var(--wt-gold-1), var(--wt-gold-3));
  color: #3a2402;
}
.wt-goal.is-done .wt-goal-label { color: #e7c37a; }
.wt-goal.is-now .wt-goal-icon {
  border-color: var(--wt-gold-1);
  background: linear-gradient(180deg, var(--wt-gold-1), var(--wt-gold-3));
  color: #3a2402;
  animation: wt-quest-pulse 2s ease-in-out infinite;
}
.wt-goal.is-now .wt-goal-label { color: #fff3c4; }

.wt-goals-help summary {
  cursor: pointer;
  font-size: 0.75rem;
  color: #e7c37a;
  list-style: none;
  padding: 2px 0;
}
.wt-goals-help summary::-webkit-details-marker { display: none; }
.wt-goals-help[open] summary { margin-bottom: 4px; }
.wt-goals-help ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.wt-goals-help ol i { width: 16px; text-align: center; color: #e7c37a; }
.wt-goals-help p { margin: 6px 0 2px; font-size: 0.76rem; opacity: 0.8; }

@media (max-width: 760px) {
  .wt-goals {
    top: 8px;
    left: 8px;
    right: 52px;
    padding: 6px 10px 4px;
  }
  .wt-goals-now { font-size: 0.78rem; }
  .wt-goal-label { font-size: 0.6rem; }
  .wt-goal-icon { width: 26px; height: 26px; }
  .wt-goal + .wt-goal::before { top: 12px; right: calc(50% + 15px); width: calc(100% - 30px); }
}
