/* Santa's Workshop (the Christmas event tab).
   This one page leaves the dashboard's quiet look behind on purpose: a snowy
   pine-night ground, fairy lights, and cards in the colours of the season,
   each one a different object: the workshop wrapped as a present in holly
   red with a gold ribbon, night-sky cards for the yard and the tree, cream
   paper for the workers' ledger and the Jar, red again for the leaderboard.

   Grid: 1152px of content = 6 columns of 178.67px + 5 gutters of 16px.
   A 4-span is 762.67, a 2-span 373.33, a 3-span 568: 762.67 + 16 + 373.33 = 1152
   and 568 + 16 + 568 = 1152, so every row ends on the same right edge. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap");

body.xmas,
body.xmas .shell-body {
  background: #0b2a1b;
}

.ws-page {
  --ground: #0b2a1b;
  --holly: #b3182f;
  --holly-deep: #7d0f20;
  --pine: #1e6b3f;
  --night: #0f1d33;
  --night-2: #18294a;
  --paper: #f7efdf;
  --paper-2: #efe2c8;
  --paper-ink: #3a2414;
  --paper-dim: #7a5a3e;
  --gold: #f2c14e;
  --gold-deep: #c99a2e;
  --cream: #fff7e6;
  --cream-dim: #f2d9c0;
  --snow: #ffffff;
  --cane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' fill='%23fffaf0'/%3E%3Cpath d='M-4 12L12-4h6L2 12zM4 20l16-16v6L10 20z' fill='%23d7263d'/%3E%3C/svg%3E");
  --display: "Fraunces", Georgia, serif;
  --gap: 16px;
  --pad: 22px;
  --radius: 18px;

  position: relative;
  overflow: hidden;
  background: var(--ground);
  color: var(--cream);
  min-height: calc(100vh - var(--topbar-h));
  /* A column, so the snowdrift settles at the bottom of a short page. */
  display: flex;
  flex-direction: column;
}
.ws-page .num {
  font-variant-numeric: tabular-nums;
}

/* Falling snow sits behind everything */
.ws-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ws-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1152px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* Fairy lights across the top */
.ws-lights {
  position: relative;
  z-index: 1;
  height: 52px;
}
.ws-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ws-bulb {
  position: absolute;
  width: 12px;
  height: 17px;
  margin-left: -6px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.75), var(--c) 45%);
  box-shadow: 0 0 12px 2px var(--c);
  transform: rotate(var(--r));
  transform-origin: 50% -4px;
  animation: ws-twinkle 2.4s var(--ease-loop) infinite;
  animation-delay: var(--d);
}
.ws-bulb::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -5px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #2b3a2e;
}
@keyframes ws-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (max-width: 700px) {
  .ws-bulb-alt {
    display: none;
  }
}

/* Title row: the workshop's own sign, hanging from the fairy-light wire */
.ws-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: -28px 0 32px;
}
.ws-sign {
  position: relative;
  margin-top: 46px;
  padding: 14px 30px 12px;
  background: #6b4428;
  border: 3px solid #4a2d18;
  border-radius: 10px;
  transform: rotate(-1.2deg);
  transform-origin: 50% -46px;
}
/* Plank seams, as two darker lines across the board */
.ws-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background:
    linear-gradient(#5a3820, #5a3820) 0 33% / 100% 2px no-repeat,
    linear-gradient(#5a3820, #5a3820) 0 66% / 100% 2px no-repeat;
  pointer-events: none;
}
.ws-rope {
  position: absolute;
  bottom: 100%;
  width: 3px;
  height: 82px; /* up to the light wire */
  background: #c9a46c;
}
.ws-rope-l { left: 28px; }
.ws-rope-r { right: 28px; }
.ws-sign-snow {
  position: absolute;
  left: -6px;
  right: -6px;
  top: -12px;
  height: 18px;
  background: var(--snow);
  border-radius: 12px 14px 6px 6px;
  clip-path: polygon(0 60%, 6% 20%, 14% 40%, 24% 5%, 36% 35%, 47% 10%, 58% 38%, 70% 0, 82% 30%, 92% 12%, 100% 55%, 100% 100%, 0 100%);
  z-index: 1;
}
.ws-head h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  line-height: 46px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fbe7c4;
}
.ws-finding {
  margin: -6px 0 16px;
  font-size: 15px;
  line-height: 22px;
  color: var(--cream);
}
.ws-finding b {
  color: var(--gold);
  font-weight: 700;
}
.ws-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.ws-stamp {
  color: var(--cream-dim);
  font-size: 12px;
  line-height: 16px;
}
.ws-cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--gold);
  color: #3a2200;
  font-weight: 700;
  font-size: 15px;
  transition: transform var(--t-color) var(--ease), background var(--t-color) var(--ease);
}
.ws-cta:hover {
  background: #ffd16b;
  transform: translateY(-1px);
}
.ws-cta:active {
  transform: scale(0.98);
}
.ws-cta:focus-visible,
.ws-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* The grid */
.ws-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.ws-span-2 { grid-column: span 2; }
.ws-span-3 { grid-column: span 3; }
.ws-span-4 { grid-column: span 4; }
.ws-span-6 { grid-column: span 6; }

.ws-card {
  position: relative;
  border-radius: var(--radius);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ws-card-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  margin-bottom: 16px;
}
.ws-card-h h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}
.ws-meta,
.ws-quiet {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
}
.ws-meta b {
  font-weight: 600;
}
.ws-label {
  font-size: 13px;
  line-height: 16px;
  margin-bottom: 4px;
  opacity: 0.85;
}
.ws-unit {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.75;
}
.ws-subline {
  font-size: 12px;
  line-height: 16px;
  margin-top: 2px;
  opacity: 0.75;
}
.ws-foot {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 18px;
  opacity: 0.85;
}
.ws-foot b {
  font-weight: 700;
}
.ws-empty {
  border: 2px dashed currentColor;
  border-radius: 12px;
  padding: 12px 16px;
  opacity: 0.8;
}
.ws-portrait {
  flex: none;
  border-radius: 50%;
}

/* Card colours */
.ws-red {
  background: var(--holly);
  color: var(--cream);
}
.ws-night {
  background: var(--night);
  color: var(--cream);
}
.ws-paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.ws-paper .ws-meta,
.ws-paper .ws-label,
.ws-paper .ws-subline,
.ws-paper .ws-foot {
  color: var(--paper-dim);
  opacity: 1;
}
.ws-paper .ws-foot b {
  color: var(--paper-ink);
}
.ws-red .ws-portrait-bg,
.ws-night .ws-portrait-bg {
  fill: rgba(255, 255, 255, 0.14);
}
.ws-paper .ws-portrait-bg {
  fill: var(--paper-2);
}

/* The workshop, wrapped as a present */
.ws-present {
  padding-right: 64px;
}
.ws-ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 24px;
  width: 18px;
  background: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-deep);
}
.ws-bow {
  position: absolute;
  top: -22px;
  right: -11px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}
.ws-lead {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 40px;
  align-items: end;
}
.ws-hero {
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.ws-sub {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: var(--snow);
}
.ws-boosts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
}
.ws-pill {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.ws-pill-gold {
  background: var(--gold);
  color: #4a2a00;
}
.ws-pill-warn {
  background: var(--snow);
  color: var(--holly-deep);
}

.ws-shift {
  margin-top: 24px;
}
.ws-shift-h {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 16px;
  margin-bottom: 4px;
}
.ws-shift-h .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--snow);
}
.ws-ribbon {
  position: relative;
}
.ws-bands {
  position: relative;
  height: 12px;
}
.ws-band {
  position: absolute;
  top: 3px;
  height: 5px;
  border-radius: 3px;
  background: var(--gold);
}
.ws-track {
  height: 18px;
  border-radius: 999px;
  background: var(--holly-deep);
  overflow: hidden;
}
.ws-cane {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cane);
  background-size: 16px 16px;
  animation: ws-cane 1.6s linear infinite;
}
@keyframes ws-cane {
  to { background-position: 16px 0; }
}
.ws-ticks {
  position: relative;
  height: 24px;
  margin-bottom: 4px;
}
.ws-tick {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--cream-dim);
}
.ws-tick-start {
  left: 0;
  transform: none;
}
.ws-tick-end {
  right: 0;
  transform: none;
}
.ws-key {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--cream-dim);
}
.ws-key span {
  display: inline-block;
  width: 14px;
  height: 7px;
  border-radius: 4px;
}
.ws-key-worked { background: var(--cane); background-size: 16px 16px; }
.ws-key-band { background: var(--gold); margin-left: 10px; }

.ws-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  background: var(--holly-deep);
  border-radius: 12px;
}
.ws-strip > div {
  padding: 12px 16px;
}
.ws-strip > div + div {
  border-left: 2px solid var(--holly);
}
.ws-strip dt {
  font-size: 12px;
  line-height: 16px;
  color: var(--cream-dim);
}
.ws-strip dd {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--snow);
}

/* Defend the Workshop */
.ws-yard-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: transform var(--t-color) var(--ease);
}
.ws-yard-link:hover {
  transform: scale(1.015);
}
.ws-yard {
  display: block;
  width: 100%;
  height: 156px;
}
.ws-copy {
  margin: 16px 0 0;
  color: var(--cream-dim);
}
.ws-copy b {
  color: var(--gold);
  font-weight: 700;
}
.ws-defend-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--gold);
  color: #3a2200;
  font-weight: 700;
  transition: transform var(--t-color) var(--ease), background var(--t-color) var(--ease);
}
.ws-btn:hover {
  background: #ffd16b;
  transform: translateY(-1px);
}

/* Workers: the workshop ledger, on cream paper */
.ws-table {
  width: 100%;
  border-collapse: collapse;
}
.ws-table th {
  white-space: nowrap;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--paper-dim);
  padding: 0 0 8px;
}
.ws-table td {
  padding: 8px 0;
  border-top: 1px solid var(--paper-2);
}
.ws-table th.num,
.ws-table td.num {
  text-align: right;
  width: 15%;
}
.ws-table td.num {
  font-weight: 600;
}
.ws-table tfoot td {
  font-weight: 700;
  padding-top: 12px;
  border-top: 2px solid var(--paper-ink);
}
.ws-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-name {
  font-weight: 700;
}
.ws-share {
  position: relative;
}
.ws-share i {
  position: absolute;
  right: 0;
  bottom: 4px;
  height: 4px;
  max-width: 64px;
  border-radius: 2px;
  background: var(--paper-2);
}
.ws-share i.top {
  background: var(--holly);
}

/* Your tree: a night sky */
.ws-tree {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(242, 193, 78, 0.18));
}
.ws-sets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.ws-sets li {
  display: flex;
  justify-content: space-between;
  min-height: 32px;
  align-items: center;
  color: var(--cream-dim);
}
.ws-sets li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ws-sets .num {
  color: var(--snow);
  font-weight: 600;
}
.ws-sets .ws-done {
  color: var(--gold);
}

/* The Jar: gold-trimmed paper, with the jar itself filling up */
.ws-gold {
  box-shadow: inset 0 0 0 4px var(--gold);
}
.ws-jar-body {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 24px;
  align-items: start;
}
.ws-jar {
  display: block;
  width: 176px;
  height: auto;
  background: var(--night);
  border-radius: 14px;
  padding: 8px;
}
.ws-figure {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  color: var(--holly);
}
.ws-miles {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ws-mile {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  color: var(--paper-dim);
  font-size: 13px;
}
.ws-mile .num {
  font-weight: 600;
}
.ws-mile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--paper-dim);
}
.ws-mile-done .ws-mile-dot {
  background: var(--pine);
  border-color: var(--pine);
}
.ws-mile-next {
  color: var(--paper-ink);
  font-weight: 700;
}
.ws-mile-next .ws-mile-dot {
  border-color: var(--holly);
  background: var(--holly);
}

/* Leaderboard */
.ws-lb {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ws-lb li {
  display: grid;
  grid-template-columns: 24px 32px 1fr auto;
  gap: 12px;
  align-items: center;
  height: 42px;
  padding: 0 10px;
  margin: 0 -10px;
  border-radius: 12px;
}
.ws-lb li:nth-child(-n + 3) .ws-rank {
  color: var(--gold);
  font-weight: 800;
}
.ws-lb li.ws-me {
  background: var(--holly-deep);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.ws-rank {
  text-align: right;
  color: var(--cream-dim);
}
.ws-lb img,
.ws-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.ws-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--h) 45% 32%);
}
.ws-lb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.ws-lb-v {
  font-weight: 700;
  color: var(--snow);
}

/* The drift that closes the page */
.ws-drift {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 90px;
  margin-top: auto;
  padding-top: 8px;
  flex: none;
}

/* Loading keeps the frame */
.ws-loading .ws-card {
  min-height: 180px;
  background: var(--night);
}
.ws-bar {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

/* Tablet */
@media (max-width: 1100px) {
  .ws-span-4,
  .ws-span-2,
  .ws-span-6 {
    grid-column: span 6;
  }
  .ws-span-3 {
    grid-column: span 3;
  }
}

/* Phone */
@media (max-width: 720px) {
  .ws-inner {
    width: calc(100% - 32px);
    padding-top: 16px;
  }
  .ws-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ws-head {
    align-items: flex-start;
  }
  .ws-sign {
    padding: 12px 20px 10px;
  }
  .ws-head h1 {
    font-size: 30px;
    line-height: 36px;
  }
  .ws-actions {
    width: 100%;
    justify-content: space-between;
  }
  .ws-span-2,
  .ws-span-3,
  .ws-span-4,
  .ws-span-6 {
    grid-column: 1 / -1;
  }
  .ws-present {
    padding-right: 52px;
  }
  .ws-ribbon-v {
    right: 16px;
    width: 14px;
  }
  .ws-lead {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ws-boosts {
    justify-content: flex-start;
  }
  .ws-hero {
    font-size: 40px;
    line-height: 44px;
  }
  .ws-strip {
    grid-template-columns: 1fr 1fr;
  }
  .ws-strip > div:nth-child(3) {
    border-left: none;
  }
  .ws-strip > div:nth-child(n + 3) {
    border-top: 2px solid var(--holly);
  }
  .ws-tick:not(.ws-tick-start):not(.ws-tick-end) {
    display: none;
  }
  .ws-table th:nth-child(2),
  .ws-table td:nth-child(2) {
    display: none;
  }
  .ws-jar-body {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }
  .ws-jar {
    width: 96px;
  }
  .ws-yard {
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-bulb,
  .ws-cane {
    animation: none;
  }
  .ws-yard-link,
  .ws-cta,
  .ws-btn {
    transition: none;
  }
}

/* ======================= Defend the Workshop ======================= */

.ws-back {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ws-back:hover {
  color: var(--gold);
}
.ws-notice-card {
  max-width: 560px;
}
.ws-game {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.ws-board {
  padding: 16px;
}
.ws-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ws-hud-stats {
  display: flex;
  gap: 24px;
}
.ws-hud-stats span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--cream-dim);
}
.ws-hud-stats b {
  font-size: 22px;
  line-height: 28px;
  color: var(--snow);
}
.ws-hud-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ws-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-weight: 600;
  transition: background var(--t-color) var(--ease);
}
.ws-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}
.ws-chip.on {
  background: var(--snow);
  color: var(--night);
}
.ws-paper .ws-chip {
  background: var(--paper-2);
  color: var(--paper-ink);
}
.ws-btn[disabled],
.ws-chip[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
.ws-canvas-wrap {
  position: relative;
}
.ws-canvas-wrap canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  cursor: crosshair;
  touch-action: manipulation;
}
.ws-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 29, 51, 0.82);
  border-radius: 12px;
}
.ws-overlay[hidden] {
  display: none;
}
.ws-result {
  max-width: 420px;
  text-align: center;
  padding: 24px;
}
.ws-result h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 32px;
  line-height: 38px;
  font-weight: 800;
  color: var(--snow);
}
.ws-result p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--cream-dim);
}
.ws-result b {
  color: var(--gold);
}
.ws-result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* The tower list, on paper */
.ws-palette {
  display: grid;
  gap: 8px;
}
.ws-multi {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}
.ws-tower {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--paper-ink);
  text-align: left;
  border: 2px solid transparent;
  transition: border-color var(--t-color) var(--ease), transform var(--t-color) var(--ease);
}
.ws-tower:hover {
  border-color: var(--paper-dim);
}
.ws-tower.on {
  border-color: var(--holly);
  background: #fff;
}
.ws-tower[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.ws-tower:focus-visible {
  outline: 3px solid var(--holly);
  outline-offset: 2px;
}
.ws-tower-text b {
  display: block;
  font-size: 14px;
  line-height: 18px;
}
.ws-tower-text small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--paper-dim);
}
.ws-tower-cost {
  font-weight: 700;
  color: var(--holly);
}
.ws-selected {
  margin-top: 16px;
}
.ws-hint {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--paper-dim);
}
.ws-sel-h {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ws-sel-h small {
  display: block;
  color: var(--paper-dim);
}
.ws-sel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
  background: var(--paper-2);
  border-radius: 10px;
}
.ws-sel-stats div {
  padding: 8px 12px;
}
.ws-sel-stats dt {
  font-size: 12px;
  color: var(--paper-dim);
}
.ws-sel-stats dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.ws-sel-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1100px) {
  .ws-game {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .ws-board {
    padding: 12px;
  }
  .ws-hud-stats {
    gap: 16px;
  }
  .ws-hud-stats b {
    font-size: 18px;
  }
  .ws-palette {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws-tower,
  .ws-chip {
    transition: none;
  }
}
