/* THE INTERFACE FACE, for every page that links this stylesheet.
   game/index.html declares the same @font-face inline (it needs it before the first canvas
   frame, which main.js awaits); this copy is what gives the DOM front end, sandbox.html and
   sheet.html the same face without four inline copies. The URL is relative to THIS FILE —
   game/src/ui/ -> ../../assets/font/ — not to the page. SIL OFL 1.1; licence ships beside it. */
@font-face {
  font-family: "Gauntlet UI";
  src: url("../../assets/font/gauntlet-ui.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --front-cream: #faf0e5;
  --front-cream-inset: #dac6af;
  --front-housing: #60638d;
  --front-housing-hi: #7b7eaa;
  --front-housing-deep: #33374d;
  --front-coral: #ca664c;
  --front-coral-hi: #e78a70;
  --front-teal: #327b80;
  --front-teal-deep: #1f5058;
  --front-rubber: #43403e;
  --front-ink: #14121f;
  --front-white: #fff9ee;
  --front-field: #a9b3a8;
  /* Kept in step with ui/theme.js UI_FONT — the DOM front end and the canvas HUD must not
     drift into two different typefaces.

     THE SELF-HOSTED FACE IS NOW SHIPPED and it is FIRST here, exactly as promised: the
     @font-face is declared once in game/index.html against a relative URL
     (./assets/font/gauntlet-ui.woff2, SIL OFL 1.1, licence beside it). Everything after it is
     the degrade chain, kept because a stylesheet that names one family and nothing else has no
     answer when the file 404s. */
  --front-font: "Gauntlet UI", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed",
    "Liberation Sans Narrow", "DejaVu Sans Condensed", "Arial Narrow", "Segoe UI",
    "Avenir Next", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.front-end[hidden], .front-page[hidden] { display: none !important; }

.front-end {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--front-ink);
  background: var(--front-field);
  font-family: var(--front-font);
  -webkit-tap-highlight-color: rgba(20, 18, 31, 0.14);
}

.front-end button { font: inherit; touch-action: manipulation; }

.front-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 24%, rgba(250, 240, 229, 0.34) 0 10%, transparent 36%),
    radial-gradient(ellipse at 20% 110%, rgba(50, 123, 128, 0.20), transparent 47%),
    repeating-linear-gradient(112deg, transparent 0 42px, rgba(20, 18, 31, 0.035) 43px 45px),
    linear-gradient(145deg, rgba(169, 179, 168, 0.96), rgba(124, 139, 137, 0.97));
}

.front-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 30%, var(--front-ink) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 68%, var(--front-ink) 0 1px, transparent 1.5px);
  background-size: 64px 64px, 91px 91px;
}

.front-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 78px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 22px;
  padding: 10px max(18px, calc((100vw - 1280px) / 2 + 24px));
  border-bottom: 3px solid var(--front-ink);
  background: rgba(51, 55, 77, 0.96);
  box-shadow: 0 7px 0 rgba(20, 18, 31, 0.18);
  backdrop-filter: blur(12px);
}

.front-wordmark {
  appearance: none;
  border: 0;
  padding: 0;
  color: var(--front-cream);
  background: transparent;
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.front-wordmark span, .front-wordmark strong { display: block; }
.front-wordmark span { font-size: 12px; line-height: 1; }
.front-wordmark strong { color: var(--front-coral-hi); font-size: 22px; line-height: 1.08; }

.front-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--front-ink);
  border-radius: 12px;
  background: var(--front-housing-deep);
}

.front-nav button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--front-cream-inset);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.front-nav button:hover { color: var(--front-white); background: rgba(250, 240, 229, 0.08); }
.front-nav button.is-active { color: var(--front-ink); background: var(--front-cream); }

.front-wallet {
  justify-self: end;
  min-width: 128px;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 2px solid var(--front-ink);
  border-radius: 12px;
  color: var(--front-white);
  background: var(--front-teal-deep);
  box-shadow: inset 0 0 0 2px rgba(100, 217, 206, 0.18);
}

.front-wallet span { font-size: 9px; letter-spacing: 0.12em; color: #64d9ce; }
.front-wallet strong { text-align: right; font-size: 22px; font-variant-numeric: tabular-nums; }

.front-pages {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 56px) clamp(18px, 4vw, 48px) 58px;
  box-sizing: border-box;
}

.front-page { min-height: calc(100vh - 190px); }

.front-home {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(360px, 0.78fr);
  grid-template-rows: 1fr auto;
  gap: 24px;
}

.front-briefing, .front-operator, .bench-detail, .collection-detail, .results-console {
  position: relative;
  border: 4px solid var(--front-ink);
  border-radius: 27px;
  box-shadow: 9px 11px 0 rgba(20, 18, 31, 0.22), inset 0 0 0 3px rgba(255, 249, 238, 0.22);
}

.front-briefing {
  align-self: stretch;
  padding: clamp(34px, 5vw, 72px);
  background: var(--front-cream);
}

.front-briefing::before, .front-operator::before, .bench-detail::before,
.collection-detail::before, .results-console::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 2px solid rgba(20, 18, 31, 0.14);
  border-radius: 17px;
}

.front-kicker {
  margin: 0 0 10px;
  color: var(--front-teal-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.front-briefing h1, .front-section-heading h1, .front-results h1 {
  margin: 0;
  max-width: 760px;
  color: var(--front-ink);
  font-size: clamp(36px, 5.1vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.front-lede, .front-section-copy {
  max-width: 650px;
  color: var(--front-rubber);
  font-size: clamp(14px, 1.55vw, 18px);
  line-height: 1.5;
  text-wrap: pretty;
}

.front-lede { margin: 22px 0 30px; }
.front-section-copy { margin: 12px 0 26px; }

.front-primary, .front-secondary, .front-text-button {
  border: 0;
  cursor: pointer;
}

.front-primary {
  position: relative;
  min-width: min(100%, 300px);
  min-height: 68px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 11px 62px 11px 22px;
  border: 3px solid var(--front-ink);
  border-radius: 14px;
  color: var(--front-white);
  background: var(--front-coral);
  box-shadow: inset 0 0 0 2px var(--front-coral-hi), 5px 6px 0 rgba(20, 18, 31, 0.22);
  text-align: left;
}

.front-primary::after {
  content: "→";
  position: absolute;
  right: 17px;
  top: 50%;
  translate: 0 -50%;
  font-size: 27px;
}

.front-primary span { font-size: 16px; font-weight: 900; letter-spacing: 0.055em; }
.front-primary small { margin-top: 4px; color: var(--front-cream); font-size: 9px; letter-spacing: 0.085em; }
.front-primary:hover:not(:disabled) { background: #d97156; }
.front-primary:active:not(:disabled) { translate: 2px 2px; box-shadow: inset 0 0 0 2px var(--front-coral-hi), 2px 3px 0 rgba(20, 18, 31, 0.22); }
.front-primary:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.58; }

/* The controls line (3 Sep 2026 review P3): the one thing a cold player has to know, under the
   one button they will press, outside it so the button's measured height does not move. */
.front-controls {
  margin: 14px 0 0;
  color: var(--front-rubber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.front-controls b { color: var(--front-ink); font-weight: 900; }

.front-secondary {
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--front-ink);
  border-radius: 10px;
  color: var(--front-cream);
  background: var(--front-housing);
  box-shadow: inset 0 0 0 1px var(--front-housing-hi);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.front-secondary:hover { background: #6b6e9b; }
.front-text-button { padding: 10px 0; color: var(--front-teal-deep); background: transparent; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; }

.front-primary:focus-visible, .front-secondary:focus-visible, .front-text-button:focus-visible,
.front-nav button:focus-visible, .front-wordmark:focus-visible, .bench-slot:focus-visible,
.collection-item:focus-visible {
  outline: 3px solid var(--front-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--front-teal-deep);
}

.front-account-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 34px 0 0;
}

.front-account-stats div { min-width: 92px; }
.front-account-stats dt { color: var(--front-teal-deep); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.front-account-stats dd { margin: 3px 0 0; font-size: 23px; font-weight: 900; font-variant-numeric: tabular-nums; }

.front-operator {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  background: var(--front-housing);
}

.operator-portrait {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-bottom: 3px solid var(--front-ink);
  background:
    radial-gradient(circle at 50% 78%, rgba(250, 240, 229, 0.30), transparent 27%),
    linear-gradient(155deg, var(--front-housing-hi), var(--front-housing-deep));
}

.operator-portrait::after {
  content: "";
  position: absolute;
  left: 14%; right: 11%; bottom: 7%;
  height: 8%;
  border-radius: 50%;
  background: rgba(20, 18, 31, 0.35);
  filter: blur(10px);
}

.operator-pim {
  position: absolute;
  z-index: 1;
  left: 31%;
  bottom: 5%;
  width: auto;
  height: min(90%, 430px);
  object-fit: contain;
  filter: drop-shadow(7px 9px 0 rgba(20, 18, 31, 0.22));
}

.operator-wren {
  position: absolute;
  z-index: 2;
  right: 11%;
  top: 14%;
  width: min(31%, 130px);
  height: auto;
  filter: drop-shadow(5px 7px 0 rgba(20, 18, 31, 0.25));
}

.operator-copy { position: relative; z-index: 1; padding: 24px 28px 28px; color: var(--front-cream); }
.operator-copy .front-kicker { color: #64d9ce; }
.operator-copy h2 { margin: 0; font-size: 28px; }
.operator-copy > p:not(.front-kicker) { margin: 6px 0 0; color: var(--front-cream-inset); font-size: 13px; }
.meta-bonus-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.meta-bonus-strip span { padding: 5px 8px; border: 1px solid var(--front-ink); border-radius: 6px; color: var(--front-ink); background: var(--front-cream); font-size: 8px; letter-spacing: 0.04em; }

.front-docket-preview {
  grid-column: 1 / -1;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 24px;
  border: 3px solid var(--front-ink);
  border-radius: 16px;
  background: var(--front-cream);
  box-shadow: 5px 6px 0 rgba(20, 18, 31, 0.18);
}

.front-docket-preview div { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 15px; }
.front-docket-preview .front-kicker { grid-column: 1 / -1; margin: 0; }
.front-docket-preview strong { font-size: 16px; }
.front-docket-preview span { align-self: center; overflow: hidden; color: var(--front-rubber); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.front-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.front-section-heading h1 { font-size: clamp(38px, 5vw, 64px); }
.front-count { align-self: center; font-size: clamp(24px, 4vw, 42px); font-variant-numeric: tabular-nums; }

.bench-layout, .collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bench-slot {
  min-height: 112px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 3px solid var(--front-ink);
  border-radius: 14px;
  color: var(--front-ink);
  background: var(--front-cream-inset);
  box-shadow: inset 0 0 0 2px rgba(255, 249, 238, 0.38);
  text-align: left;
  cursor: pointer;
}

.bench-slot:hover { background: #e3d0ba; }
.bench-slot.is-selected { background: var(--front-coral); box-shadow: inset 0 0 0 2px var(--front-coral-hi), 4px 5px 0 rgba(20, 18, 31, 0.2); }
.bench-slot img { grid-row: 1 / 3; width: 72px; height: 72px; object-fit: contain; }
.bench-slot > span:not(.meta-ranks) { min-width: 0; display: block; }
.bench-slot strong, .bench-slot small { display: block; }
.bench-slot strong { font-size: 14px; }
.bench-slot small { margin-top: 4px; color: var(--front-rubber); font-size: 11px; }

.meta-ranks { display: flex; align-items: center; gap: 5px; }
.meta-rank {
  position: relative;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid var(--front-ink);
  border-radius: 50%;
  background: var(--front-housing-deep);
  box-shadow: inset 0 0 0 2px rgba(20, 18, 31, 0.18);
}
.meta-rank::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--front-rubber);
}
.meta-rank.is-filled { background: var(--front-teal); box-shadow: inset 0 0 0 2px rgba(255, 249, 238, 0.16); }
.meta-rank.is-filled::before {
  left: 3px;
  right: 3px;
  top: 5px;
  bottom: auto;
  height: 2px;
  border-radius: 2px;
  background: var(--front-cream);
}
.bench-slot.is-selected .meta-rank.is-filled { background: var(--front-cream); }
.bench-slot.is-selected .meta-rank.is-filled::before { background: var(--front-coral); }
.meta-ranks-detail { margin-top: 13px; }
.meta-ranks-detail .meta-rank { width: 18px; height: 18px; }
.meta-ranks-detail .meta-rank.is-filled::before { top: 6px; }

.bench-detail, .collection-detail {
  min-height: 390px;
  padding: 30px;
  background: var(--front-cream);
}

.bench-detail-title { position: relative; display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 17px; }
.bench-detail-title img { width: 94px; height: 94px; object-fit: contain; }
.bench-detail h2, .collection-detail h2 { margin: 0; font-size: 28px; line-height: 1.05; }
.bench-detail p, .collection-detail p { color: var(--front-rubber); line-height: 1.45; }
.bench-values { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-block: 2px solid var(--front-cream-inset); }
.bench-values div { padding: 15px 0; }
.bench-values div + div { padding-left: 18px; border-left: 2px solid var(--front-cream-inset); }
.bench-values dt { color: var(--front-teal-deep); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.bench-values dd { margin: 5px 0 0; font-size: 18px; font-weight: 900; }
.bench-buy { width: 100%; min-width: 0; }
.bench-warning { margin: 10px 0 0; color: var(--front-coral) !important; font-size: 11px; font-weight: 900; text-align: center; }

.collection-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.55fr); }
.collection-grid { align-content: start; display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 9px; }
.collection-item {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  border: 3px solid var(--front-ink);
  border-radius: 13px;
  background: var(--front-cream-inset);
  cursor: pointer;
}
.collection-item:hover { background: var(--front-cream); }
.collection-item.is-selected { background: var(--front-coral); box-shadow: inset 0 0 0 2px var(--front-coral-hi); }
.collection-item.is-unknown { color: var(--front-cream-inset); background: var(--front-housing-deep); }
.collection-item img { width: 100%; height: 100%; object-fit: contain; }
.collection-item strong { font-size: 28px; }
.collection-detail { text-align: center; }
.collection-detail > img { position: relative; width: min(100%, 210px); height: 190px; object-fit: contain; }
.collection-detail .front-kicker { margin-top: 14px; }
.collection-unknown { position: relative; display: grid; place-items: center; width: 170px; height: 170px; margin: 5px auto 24px; border: 3px solid var(--front-ink); border-radius: 24px; color: var(--front-cream-inset); background: var(--front-housing-deep); font-size: 72px; }

.goal-list { display: grid; gap: 10px; }
.goal-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 14px 18px;
  border: 3px solid var(--front-ink);
  border-radius: 15px;
  background: var(--front-cream);
  box-shadow: 4px 5px 0 rgba(20, 18, 31, 0.14);
}
.goal-row.is-complete { background: var(--front-cream-inset); }
.goal-check { width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid var(--front-ink); border-radius: 11px; color: var(--front-white); background: var(--front-housing-deep); font-size: 24px; }
.goal-row.is-complete .goal-check { background: var(--front-teal); }
.goal-copy h2 { margin: 0; font-size: 16px; }
.goal-copy .front-kicker { margin-bottom: 3px; }
.goal-copy small { display: block; margin-top: 4px; color: var(--front-rubber); font-size: 9px; }
.goal-track { width: min(100%, 430px); height: 7px; margin-top: 9px; overflow: hidden; border: 1px solid var(--front-ink); border-radius: 4px; background: var(--front-housing-deep); }
.goal-track i { display: block; height: 100%; background: var(--front-teal); }
.goal-reward { text-align: right; font-size: 20px; }
.goal-reward span { display: block; color: var(--front-teal-deep); font-size: 8px; letter-spacing: 0.12em; }

.front-end.is-results .front-topbar { display: none; }
.front-end.is-results .front-pages { min-height: 100vh; display: grid; place-items: center; }
.front-results { width: min(100%, 720px); min-height: 0; }
.results-console { padding: clamp(28px, 5vw, 54px); background: var(--front-cream); }
.front-results h1 { font-size: clamp(44px, 8vw, 74px); }
.results-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 18px; }
.results-stats div { padding: 14px; border: 2px solid var(--front-ink); border-radius: 11px; background: var(--front-cream-inset); }
.results-stats span, .results-ledger span { display: block; color: var(--front-teal-deep); font-size: 9px; font-weight: 900; letter-spacing: 0.09em; }
.results-stats strong { display: block; margin-top: 4px; font-size: 25px; font-variant-numeric: tabular-nums; }
.results-ledger { position: relative; border-block: 2px solid var(--front-cream-inset); }
.results-ledger > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 2px; }
.results-ledger strong { font-variant-numeric: tabular-nums; }
.results-ledger .is-total { margin-top: 4px; border-top: 2px solid var(--front-ink); font-size: 20px; }
.results-ledger .is-wallet { margin: 0 -10px; padding: 13px 12px; border-radius: 9px; color: var(--front-white); background: var(--front-teal-deep); }
.results-ledger .is-wallet span { color: #64d9ce; }
.results-unlocks { position: relative; margin-top: 18px; }
.results-unlocks > div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-top: 1px solid var(--front-cream-inset); }
.results-unlocks span { color: var(--front-teal-deep); font-size: 11px; }
.results-actions { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.results-actions .front-primary { flex: 1; }

@media (max-width: 900px) {
  .front-topbar { grid-template-columns: 150px 1fr 116px; gap: 10px; }
  .front-nav { justify-self: stretch; overflow-x: auto; }
  .front-nav button { flex: 0 0 auto; padding-inline: 12px; }
  .front-home { grid-template-columns: 1fr; }
  .front-operator { min-height: 460px; }
  .front-docket-preview { grid-column: 1; }
  .bench-layout, .collection-layout { grid-template-columns: 1fr; }
  .bench-detail, .collection-detail { min-height: 0; }
  .collection-grid { grid-template-columns: repeat(6, minmax(65px, 1fr)); }
}

@media (max-width: 620px) {
  .front-topbar {
    position: relative;
    grid-template-columns: 1fr auto;
    grid-template-rows: 56px 50px;
    padding: 8px 14px 10px;
  }
  .front-wordmark strong { font-size: 18px; }
  .front-wallet { min-width: 108px; min-height: 43px; }
  .front-wallet strong { font-size: 18px; }
  .front-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .front-nav button { flex: 1 0 auto; min-height: 38px; font-size: 10px; }
  .front-pages { min-height: calc(100vh - 124px); padding: 18px 14px 42px; }
  .front-page { min-height: calc(100vh - 170px); }
  .front-briefing { padding: 30px 24px; }
  .front-briefing h1 { font-size: clamp(36px, 11.5vw, 52px); }
  .front-lede { font-size: 14px; }
  .front-primary { width: 100%; }
  .front-account-stats { justify-content: space-between; gap: 10px; }
  .front-account-stats div { min-width: 76px; }
  .front-operator { min-height: 410px; }
  .operator-portrait { min-height: 275px; }
  .front-docket-preview { align-items: flex-start; flex-direction: column; }
  .front-docket-preview div { display: block; }
  .front-docket-preview strong, .front-docket-preview span { display: block; margin-top: 4px; white-space: normal; }
  .front-section-heading { align-items: flex-start; flex-direction: column; }
  .front-section-heading h1 { font-size: 44px; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-detail { order: -1; scroll-margin-top: 14px; }
  .bench-slot { min-height: 94px; grid-template-columns: 58px minmax(0, 1fr); }
  .bench-slot img { width: 58px; height: 58px; }
  .collection-grid { grid-template-columns: repeat(4, 1fr); }
  .goal-row { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .goal-check { width: 38px; height: 38px; }
  .goal-reward { grid-column: 2; text-align: left; }
  .goal-reward span { display: inline; margin-left: 4px; }
  .results-stats { grid-template-columns: 1fr; }
  .results-actions { align-items: stretch; flex-direction: column; }
  .results-actions .front-secondary { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .front-primary:active:not(:disabled) { translate: none; }
}
