
.chikling-fit {
  height: calc(100dvh - 9.5rem);
  min-height: 0;
  display: flex;
}
.chikling-fit > .card {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chikling-card {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  align-items: stretch;
  min-height: 0;
  flex: 1;
}
.chikling-card__stage {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: var(--space-2);
  width: min(38%, 220px);
  flex: 0 0 auto;
  align-self: center;
}
.chikling-card__stage canvas {
  display: block;
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  background: transparent;
  border: 0;
}
.chikling-card__stats {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chikling-fit .page-heading { margin-bottom: var(--space-3); }
.chikling-card__stats .meter { margin: 0; }
.chikling-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.chikling-card__name {
  font-size: 1.35rem;
  margin: 0;
  color: var(--ink-strong);
}
.chikling-card__role {
  margin: 0;
  color: var(--muted);
}

/* Coop hub */
.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}
img.icon {
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.coop-page { display: grid; gap: var(--space-6); }
.coop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}
.coop-layout__progress { display: grid; gap: var(--space-6); min-width: 0; }
dialog.modal.modal--craft {
  width: min(var(--content-w), calc(100vw - 1.5rem));
  max-width: min(var(--content-w), calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
dialog.modal.modal--craft .coop-craft-inv {
  max-height: min(86vh, 52rem);
  overflow: auto;
}
/* Craft inventory · full content width (not a narrow rail under steward). */
.coop-craft-inv,
.coop-craft-inv .craft-menu {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
/* content-visibility on main children hid skill <dialog>s inside .steward from Chromium top-layer. */
.coop-rail {
  grid-area: auto;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(28rem, 100%);
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.coop-rail__section {
  padding: 0;
  flex: 0 0 auto;
}
.coop-rail__section > :first-child { margin-top: 0; }
.coop-rail__section > :last-child { margin-bottom: 0; }
.coop-rail__rule {
  flex: 0 0 auto;
  margin-block: 1rem;
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 1;
}
.coop-rail .next-step {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.coop-rail .next-step--stack {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}
.coop-rail .next-step--stack > .next-step__streak-row {
  width: calc(100% - 30px);
  max-width: calc(100% - 30px);
  box-sizing: border-box;
}
/* Daily Check-in · Timber plank · pad clears iron straps (lip is box-shadow). */
.coop-rail .next-step--stack > .rail-board {
  --btn-pad-x: 1.85rem;
  --btn-depth-rest: 7px;
  width: auto;
  max-width: 100%;
  min-width: 10.75rem;
  min-height: 2.65rem;
  margin-bottom: var(--btn-depth-rest);
  padding: 0.4rem var(--btn-pad-x);
  font-size: 0.88rem;
  box-sizing: border-box;
}
/* Lodge CTA · compact timber. Do NOT restyle .obj-row__btn here · Daily Overview Go To must stay the universal .btn (straps + green). */
.coop-rail .btn.rail-lodge {
  --btn-pad-x: 1.1rem;
  --btn-depth-rest: 6px;
  width: auto;
  min-width: 0;
  min-height: 2.05rem;
  margin-bottom: var(--btn-depth-rest);
  padding: 0.22rem var(--btn-pad-x);
  font-size: 0.8rem;
}
/* Wood Streak / Best tiles · same craft as Daily Check-in modal. */
.coop-rail .next-step__streak-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  max-width: none;
  margin: 0;
}
.coop-rail .next-step__streak-row .checkin-board__stat {
  flex: 0 0 auto;
  width: 7.15rem;
  height: 2.8rem;
  min-width: 7.15rem;
  min-height: 2.8rem;
  padding: 0.22rem 0.58rem;
}
.coop-rail .next-step__streak-row .checkin-board__stat-label {
  font-size: 0.72rem;
  color: #fff !important;
}
.coop-rail .next-step__streak-row .checkin-board__stat-value {
  font-size: 1.22rem;
  color: #fff !important;
}
.coop-rail .next-step__streak-row--with-boost .checkin-board__stat {
  width: 6.15rem;
  height: 2.65rem;
  min-width: 6.15rem;
  min-height: 2.65rem;
}
.coop-rail .next-step__streak-row .checkin-board__stat--boost .checkin-board__stat-value {
  font-size: 0.9rem;
}
.next-step__actions--stack {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  width: 100%;
}
.rail-board {
  width: 100%;
  min-height: 2.75rem;
  --btn-pad-x: 1.6rem;
  padding: 0.35rem var(--btn-pad-x);
  margin-bottom: var(--btn-depth-rest);
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  line-height: 1;
  --btn-face: color-mix(in srgb, var(--gold) 78%, #8a7040);
  --btn-lip: color-mix(in srgb, var(--gold) 40%, #000);
  --btn-ink: var(--equip-ink);
  color: var(--equip-ink);
  transition: box-shadow 0.08s ease, filter 0.08s ease, color 0.08s ease;
}
button.btn.rail-board:hover,
button.btn.rail-board:focus-visible,
.rail-board:hover,
.rail-board:focus-visible {
  --btn-face: color-mix(in srgb, var(--gold) 88%, #fff);
  --btn-lip: color-mix(in srgb, var(--gold) 40%, #000);
  color: var(--equip-ink);
}
button.btn.rail-board:active,
.rail-board:active {
  color: var(--equip-ink);
}
/* No spin left today · dimmer gold face. */
.rail-board.rail-board--spent,
.rail-board.rail-board--spent:hover,
.rail-board.rail-board--spent:focus-visible {
  --btn-face: color-mix(in srgb, var(--gold) 38%, #2a1c10);
  --btn-lip: color-mix(in srgb, var(--gold) 22%, #1a1008);
  --btn-shell: color-mix(in srgb, #1a1008 70%, #0a0604);
  color: color-mix(in srgb, var(--equip-ink) 70%, #6a5a40);
}
.rail-board:focus,
.rail-board:focus-visible {
  outline: none;
}
.rail-plank {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--accent));
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
  cursor: pointer;
}
.rail-plank:active { transform: scale(0.98); }
.rail-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rail-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 0.7rem;
}
.rail-panel__head h3,
.rail-panel > h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rail-panel__head h3 { margin-bottom: 0; }
.rail-link {
  color: var(--accent-hover);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.rail-link:hover { color: var(--gold); }
.rail-link--btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  cursor: pointer;
}
.rail-link--btn:hover { color: var(--gold); }
/* Compact horizontal done-activity rows (replaces 2-col rail-tiles). */
.rail-rows {
  display: grid;
  gap: 0.4rem;
}
.rail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  text-decoration: none;
  background: color-mix(in srgb, var(--panel-strong) 88%, #1a1008);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, #5a3c24);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px #1a1008,
    0 1px 0 #140c08;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rail-row:hover {
  border-color: color-mix(in srgb, var(--gold) 70%, #5a3c24);
  box-shadow:
    inset 0 0 0 1px #1a1008,
    0 0 12px color-mix(in srgb, var(--gold) 22%, transparent);
}
.rail-row__ic {
  font-size: 1.15rem;
  line-height: 1;
}
.rail-row__name {
  font-weight: 700;
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-row__st {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.rail-row--claim .rail-row__st {
  color: var(--ok, #6dcf8a);
}
.rail-row--arcade .rail-row__ic {
  display: inline-grid;
  place-items: center;
}
.rail-row--arcade .rail-row__ic .icon,
.rail-row--arcade .rail-row__ic svg {
  width: 1.15rem;
  height: 1.15rem;
}
.rail-empty-block {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 0.35rem 0 0.15rem;
  text-align: center;
}
.rail-empty-block .rail-empty {
  margin: 0;
}
.rail-lodge {
  width: auto;
  min-width: 0;
  min-height: 2.05rem;
  margin: 0 0 var(--btn-depth-rest, 6px);
  padding: 0.22rem var(--btn-pad-x, 1.1rem);
  font-size: 0.8rem;
  line-height: 1.15;
  box-sizing: border-box;
}
.rail-shelf {
  text-align: center;
  font-size: 2.4rem;
  line-height: 1;
  padding: 0.35rem;
  border-bottom: 0;
  background: radial-gradient(circle at 50% 85%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 70%);
}
.rail-ach-hero {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0.15rem 0 0.35rem;
}
.rail-ach-hero .rail-shelf {
  width: 100%;
  padding-bottom: 0.55rem;
}
.rail-ach-count {
  position: absolute;
  right: calc(50% - 2.55rem);
  top: 0.15rem;
  min-width: 1.65rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid #2a170c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #f3d98a 0%, #c9a24a 48%, #8a6510 100%);
  box-shadow:
    inset 0 1px 0 #fff2c0,
    inset 0 -1px 0 #5a3c18,
    0 0 14px color-mix(in srgb, var(--gold) 35%, transparent),
    0 2px 0 rgb(0 0 0 / 40%);
  color: #000;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}
.rail-ach-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, #5a3c24);
  border-radius: 2px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 22%, #1a1008), #120c08);
  color: #f6e6c0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px #1a1008,
    0 0 16px color-mix(in srgb, var(--gold) 28%, transparent);
  animation: rail-ach-pulse 1.6s ease-in-out infinite;
}
.rail-ach-alert:hover {
  filter: brightness(1.06);
}
.rail-ach-alert__pip {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: #f0c45a;
  box-shadow: 0 0 8px #f0c45a;
  flex: 0 0 auto;
}
@keyframes rail-ach-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px #1a1008, 0 0 12px color-mix(in srgb, var(--gold) 22%, transparent); }
  50% { box-shadow: inset 0 0 0 1px #1a1008, 0 0 22px color-mix(in srgb, var(--gold) 42%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .rail-ach-alert { animation: none; }
}
.rail-empty {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}
.rail-empty--tight {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.rail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.55rem;
}
.rail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.78rem;
  background: var(--panel-strong);
  color: var(--ink);
}
.rail-badge .icon { width: 0.9em; height: 0.9em; color: var(--gold); }
.rail-news {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.rail-news__ic { font-size: 1.8rem; line-height: 1; }
.rail-news p { margin: 0; font-size: 0.9rem; color: var(--ink); }
.rail-news .meta { margin-top: 0.2rem; color: var(--muted); }
.coop-rail .tick { color: var(--gold); }
.coop-rail .meta { color: var(--muted); }
.coop-rail .next-step form { margin: 0; }


/* Daily Overview stone scene (demo daily-checkin.html · Timber CTAs). */
.coop-rail__section--overview {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.daily-overview {
  --do-gold: #f0bf4c;
  --do-gold-hi: #fff3c4;
  --do-gold-mid: #c08f2c;
  --do-dim: #9b927f;
  --do-face: #1b1828;
  --do-face2: #161425;
  --do-lip-hi: #3a2410;
  --do-lip-lo: #1c1007;
  --do-text: #ece5d6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  color: var(--do-text);
  border-radius: 0;
  /*
   * Wood rim: single top (halved from double) so the plaque still clears the beam.
   * Zero left · the rail already has a wood divider on that edge.
   */
  padding: var(--frame-rim) var(--frame-rim) var(--frame-rim) 0;
  /* Header plank bed, no holiday wash. */
  background:
    linear-gradient(180deg, rgb(12 8 4 / 28%), rgb(8 5 2 / 42%)),
    var(--wood-plank);
  border: 0;
  box-shadow: none;
}
.daily-overview__forecast {
  width: 100%;
  margin: 0.55rem 0 0;
}
.daily-overview__forecast .wx-forecast {
  max-width: none;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}
.daily-overview__event {
  margin: 0 0 0.45rem;
}
.daily-overview__wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.daily-overview__vignette {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(84% 58% at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
}
.daily-overview__dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.daily-overview__mote {
  position: absolute;
  background: #ffb04a;
  animation: dailyOverviewRise ease-in-out infinite;
}
@keyframes dailyOverviewRise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.4; }
  100% { transform: translate(9px, -170px); opacity: 0; }
}
.daily-overview__torch {
  position: absolute;
  z-index: 6;
  width: 1.7rem;
  text-align: center;
  top: 48%;
}
.daily-overview__torch--l { left: 1px; }
.daily-overview__torch--r { right: 1px; }
.daily-overview__halo {
  position: absolute;
  left: 50%;
  top: -2rem;
  width: 6.2rem;
  height: 6.2rem;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 150, 50, 0.24) 0%, rgba(255, 110, 20, 0.1) 36%, transparent 68%);
}
.daily-overview__fire canvas {
  width: 1.85rem;
  height: 2.75rem;
  display: block;
  margin: 0 auto -0.3rem;
  image-rendering: pixelated;
}
.daily-overview__sconce {
  width: 2.05rem;
  height: 1.45rem;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.daily-overview__banner {
  position: absolute;
  z-index: 5;
  width: 1.2rem;
  height: 4.4rem;
  top: 42%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform-origin: 50% 0%;
  animation: dailyOverviewSway 5.2s ease-in-out infinite;
}
.daily-overview__banner--l { left: 0.05rem; }
.daily-overview__banner--r {
  right: 0.05rem;
  animation-duration: 5.8s;
  animation-delay: -1.4s;
}
.daily-overview__sigil {
  position: absolute;
  left: 50%;
  top: 1.05rem;
  transform: translateX(-50%);
  width: 0.95rem;
  height: 0.95rem;
  image-rendering: pixelated;
  pointer-events: none;
}
@keyframes dailyOverviewSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}
.daily-overview__panel {
  position: relative;
  z-index: 7;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.45rem 0.75rem;
  background: transparent;
}
.daily-overview__pixel {
  position: relative;
  background: linear-gradient(180deg, var(--do-face) 0%, var(--do-face2) 100%);
  border: 2px solid;
  border-top-color: var(--do-lip-hi);
  border-left-color: var(--do-lip-hi);
  border-bottom-color: var(--do-lip-lo);
  border-right-color: var(--do-lip-lo);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 3px 3px 0 0 rgba(0, 0, 0, 0.78);
}
.daily-overview__plaque {
  position: relative;
  z-index: 8;
  /* Stay inside the doubled top pad · negative margin was climbing into the wood rim. */
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  text-align: center;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #262430, #17161e);
  box-sizing: border-box;
}
.daily-overview__plaque h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--do-gold);
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(240, 190, 80, 0.3);
}
.daily-overview__orn { color: var(--do-gold-mid); }
.daily-overview__stat-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
/* Check-in sits inside the Streak cell: compact, hugging its label. */
.daily-overview__checkin-btn.btn {
  width: auto;
  min-width: 0;
  margin: 0.15rem 0 0;
  padding-inline: 0.7rem;
  min-height: 1.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.daily-overview__paper,
.daily-overview__claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.18rem 0.4rem;
  background: color-mix(in srgb, var(--gold) 78%, #8a7040);
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gold) 40%, #000);
  box-sizing: border-box;
}
.daily-overview__claim-name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--equip-ink, #2a1c0c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-overview__claim-row > .daily-overview__cta {
  flex: 0 0 auto;
  max-width: 46%;
  justify-content: center;
}
.daily-overview__cta-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 800;
  white-space: nowrap;
}
.daily-overview__cta-prize .icon,
.daily-overview__cta-prize .obj-prize .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.daily-overview__cta-prize .obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.daily-overview__claim-ico {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: none;
}
.daily-overview__claim-ico img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.daily-overview__claim-label {
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-overview__empty {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #9aa3b8;
  text-shadow: 1px 1px 0 #000;
}
.daily-overview__stat-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.daily-overview__stat-cells {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}
.daily-overview__stat-cell {
  box-sizing: border-box;
  width: 130px;
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.4rem 0.35rem 0.38rem;
  background: radial-gradient(120% 140% at 30% 0%, #221f30, #0e0c16 70%);
  border: 2px solid;
  border-top-color: #07060a;
  border-left-color: #07060a;
  border-bottom-color: #4a4558;
  border-right-color: #4a4558;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75);
  text-align: center;
}
.daily-overview__stat-cell--btn {
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.daily-overview__stat-cell--btn:hover { filter: brightness(1.18); }
.daily-overview__stat-label {
  display: block;
  width: 100%;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--do-dim);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.daily-overview__stat-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.daily-overview__stat-ico {
  width: 1rem;
  height: 1rem;
  flex: none;
  display: block;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.daily-overview__stat-ico--streak {
  filter: drop-shadow(0 0 4px #ff8a3d);
}
.daily-overview__stat-val {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.daily-overview__stat-val--streak { color: #ffb673; text-shadow: 0 0 6px #ff8a3d; }
.daily-overview__stat-val--best { color: #ffe49e; text-shadow: 0 0 6px #f0bf4c; }
.daily-overview__stat-val--ach { color: #d6bbff; text-shadow: 0 0 6px #b893ff; }
.daily-overview__stat-val--obj { color: #a6e9fb; text-shadow: 0 0 6px #49c8e8; }
.daily-overview__readout {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: radial-gradient(120% 140% at 30% 0%, #221f30, #0e0c16 70%);
  border: 2px solid;
  border-top-color: #07060a;
  border-left-color: #07060a;
  border-bottom-color: #4a4558;
  border-right-color: #4a4558;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.75);
}
.daily-overview__stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.daily-overview__stat-text span {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--do-dim);
  text-transform: uppercase;
  font-weight: 700;
}
.daily-overview__stat-text b {
  font-size: 1.05rem;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.daily-overview__stat-text--boost b { color: #9fe7b0; }
.daily-overview__readout.clickable {
  cursor: pointer;
  background: none;
  font: inherit;
  color: inherit;
}
.daily-overview__readout.clickable:hover { filter: brightness(1.18); }
.daily-overview__group {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}
.daily-overview__group--news {
  margin-top: 1.25rem;
}
.daily-overview__sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.4rem;
}
.daily-overview__sec-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.daily-overview__sec h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6ecd4;
  text-shadow: 1px 1px 0 #000;
}
.daily-overview__link,
a.daily-overview__link.daily-overview__link--btn {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--do-gold);
  text-decoration: none;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.2;
}
.daily-overview__link:hover,
a.daily-overview__link.daily-overview__link--btn:hover { color: var(--do-gold-hi); }
.daily-overview__link--btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--do-gold);
  text-shadow: 1px 1px 0 #000;
  line-height: 1.2;
}
.daily-overview__obj-chip {
  padding: 0.45rem 0.5rem;
}
.daily-overview__obj-chip .obj-row {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.daily-overview__obj-chip .obj-row__title {
  color: #f3ebd9;
  font-size: 0.8rem;
  text-shadow: 1px 1px 0 #000;
}
.daily-overview__obj-chip .obj-row__blurb {
  color: var(--do-dim);
  font-size: 0.68rem;
}
.daily-overview__obj-chip .obj-gem--rail {
  font-size: 0.72rem;
}
.daily-overview__rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.daily-overview__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.4rem;
  min-height: 0;
  background: color-mix(in srgb, var(--gold) 78%, #8a7040);
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gold) 40%, #000);
  text-decoration: none;
  color: var(--equip-ink);
}
/* Focus teaser · parchment row + slim CTA (no iron straps). */
.daily-overview__focus .obj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.18rem 0.4rem;
  min-height: 0;
  background: color-mix(in srgb, var(--gold) 78%, #8a7040);
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gold) 40%, #000);
  color: var(--equip-ink);
}
.daily-overview__focus .obj-row__top {
  flex: 1 1 auto;
  min-width: 0;
}
.daily-overview__focus .obj-row__main {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}
.daily-overview__focus .obj-row__fam,
.daily-overview__focus .obj-row__blurb,
.daily-overview__focus .obj-row__copy {
  display: none;
}
.daily-overview__focus .obj-row__prog { color: var(--equip-ink); }
.daily-overview__focus .obj-row--active { opacity: 0.6; filter: saturate(0.7); }
.daily-overview__focus .obj-row--active:hover,
.daily-overview__focus .obj-row--active:focus-within { opacity: 1; filter: none; }
.daily-overview__focus .obj-row--ready,
.daily-overview__focus .obj-row--active,
.daily-overview__focus .obj-row--locked {
  background: color-mix(in srgb, var(--gold) 78%, #8a7040);
  border: 0;
}
.daily-overview__focus .obj-row__title {
  color: var(--equip-ink);
  text-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Slim green CTAs · straps off so one-line labels fit. */
.daily-overview .daily-overview__cta.btn,
.daily-overview a.daily-overview__cta.btn,
.coop-rail .daily-overview .daily-overview__cta.btn,
.coop-rail .daily-overview a.daily-overview__cta.btn {
  --btn-strap-w: 0px;
  --btn-pad-x: 0.55rem;
  --btn-depth-rest: 4px;
  --btn-face: #34a046;
  --btn-ink: #fff;
  --btn-ink-shadow: rgba(0, 0, 0, 0.4);
  --btn-lip: #144a20;
  --btn-shell: color-mix(in srgb, #144a20 70%, #061208);
  flex: none;
  max-width: 100%;
  min-width: 0;
  min-height: 1.7rem;
  margin: 0 0 var(--btn-depth-rest);
  padding: 0.18rem var(--btn-pad-x);
  font-size: 0.72rem;
  gap: 0.28rem;
  background-image:
    var(--btn-grain-a),
    var(--btn-grain-b),
    var(--btn-plate);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}
.daily-overview .daily-overview__cta.btn::before,
.daily-overview a.daily-overview__cta.btn::before {
  background: linear-gradient(180deg, rgba(255, 226, 170, 0.16), transparent 45%);
}
.daily-overview .daily-overview__cta.tip:hover,
.daily-overview .daily-overview__cta.tip:focus-within,
.daily-overview__paper:has(.tip:hover),
.daily-overview__focus .obj-row:has(.tip:hover) {
  z-index: 12;
  position: relative;
}
.daily-overview__tip {
  min-width: 10.5rem;
  max-width: 15rem;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 1px solid #6c4728;
  border-radius: 0;
  background:
    linear-gradient(180deg, #2a2218 0%, #17120e 100%);
  color: #f4e8c8;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.18),
    0 0.45rem 1rem rgba(0, 0, 0, 0.45);
}
.daily-overview__tip::after {
  border-top-color: #6c4728;
}
.tip.tip--below .daily-overview__tip::after {
  border-top-color: transparent;
  border-bottom-color: #6c4728;
}
.daily-overview__tip-title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: #ffe9a8;
}
.daily-overview__tip-prizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.2rem;
}
.daily-overview__tip-prize,
.daily-overview__tip .obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}
.daily-overview__tip-prize .icon,
.daily-overview__tip .obj-prize .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.daily-overview__tip-blurb {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #b8a88c;
}
.daily-overview__row--claim .daily-overview__row-st {
  color: #7dffa8;
  text-shadow: 0 0 6px rgba(62, 189, 112, 0.45);
}
.daily-overview__ico {
  width: 1rem;
  height: 1rem;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}
.daily-overview__ico img {
  width: 0.95rem;
  height: 0.95rem;
  image-rendering: pixelated;
}
.daily-overview__row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--equip-ink);
  text-shadow: none;
}
.daily-overview__row-st {
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--equip-ink) 82%, #3a2410);
  white-space: nowrap;
}
.daily-overview__news {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.daily-overview__news-item {
  position: relative;
  isolation: isolate;
  padding: 0.55rem 0.7rem;
  color: #24140a;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 1.28rem,
      rgb(100 70 30 / 18%) 1.28rem calc(1.28rem + 1px)
    ),
    radial-gradient(ellipse at 22% 12%, rgb(110 70 25 / 18%), transparent 42%),
    radial-gradient(ellipse at 78% 70%, rgb(110 70 25 / 16%), transparent 40%),
    radial-gradient(circle at 18% 72%, rgb(180 150 100 / 45%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 28%, rgb(200 175 130 / 45%) 0 1px, transparent 1.5px),
    linear-gradient(180deg, #cfc094 0%, #c0ad7e 48%, #b49a6a 100%);
  box-shadow:
    0 0 0 1px #8a6e3e,
    inset 0 0 0 1px rgb(255 248 220 / 22%),
    0 3px 0 color-mix(in srgb, var(--gold) 40%, #000);
}
.daily-overview__news-kicker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.daily-overview__news-dot {
  width: 0.35rem;
  height: 0.35rem;
  flex: none;
  background: var(--do-gold);
  box-shadow: 0 0 4px var(--do-gold);
}
.daily-overview__news-tag {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a2408;
  font-weight: 700;
}
.daily-overview__news-headline {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #120c06;
  text-shadow: none;
}
.daily-overview__news-body {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2a1a0c;
  line-height: 1.35;
}
/* Village News sits in a wood frame (planks + dark rim + corner pegs). */
.daily-overview__news {
  padding: 0.38rem;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0%) 0 7px, rgb(0 0 0 / 14%) 7px 8px),
    linear-gradient(180deg, #9a6a38 0%, #7d5128 55%, #66401d 100%);
  box-shadow:
    inset 0 0 0 1px #c89a5c,
    inset 0 0 0 3px #4a2c12,
    0 0 0 2px #1c1007,
    0 4px 0 2px #1c1007;
}
.daily-overview__news::before,
.daily-overview__news::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 0.28rem;
  height: 0.28rem;
  top: 0.1rem;
  background: #d9b774;
  box-shadow: 0 0 0 1px #3a2410;
}
.daily-overview__news::before { left: 0.1rem; }
.daily-overview__news::after { right: 0.1rem; }
.daily-overview__news-item {
  box-shadow:
    0 0 0 1px #3a2410,
    inset 0 0 0 1px rgb(255 248 220 / 22%);
}
.daily-overview__stat-row {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.4rem;
}
/* Medium and phone: Collectibles as three tiles per row. */
@media (max-width: 56rem) {
  .daily-overview__rows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .daily-overview__rows > .daily-overview__focus { grid-column: 1 / -1; }
  .daily-overview__row {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.28rem 0.25rem 0.22rem;
    text-align: center;
  }
  .daily-overview__row-name {
    flex: none;
    max-width: 100%;
    white-space: normal;
    font-size: 0.7rem;
    line-height: 1.15;
  }
  .daily-overview__row-st { font-size: 0.62rem; white-space: normal; }
}
/* Phone: everything under the check-in button, readouts matched in width. */
@media (max-width: 34rem) {
  .daily-overview__stat-row { align-items: stretch; }
  .daily-overview__stat-cells { justify-content: center; }
  .daily-overview__readout { width: 100%; box-sizing: border-box; }
}
@media (max-width: 360px) {
  .daily-overview__panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .daily-overview__banner { animation: none; }
  .daily-overview__mote { animation: none; opacity: 0.5; }
}



/* Village Objectives · rail strip + modal + Lodge FAB */
.obj-rail__body { display: grid; gap: 0.5rem; }
.obj-rail__empty { margin: 0; }
.obj-rail__pip {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1008;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}
.obj-row {
  display: grid;
  gap: 0.28rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--line-soft) 70%, #0000);
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--panel) 92%, #14204a 8%);
}
.obj-row--ready {
  border-color: color-mix(in srgb, #34a046 45%, var(--line-soft));
  background: color-mix(in srgb, var(--panel) 88%, #143020 12%);
}
.obj-row--claimed { opacity: 0.72; }
.obj-row__prog { flex: none; margin-left: auto; font-size: 0.74rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.obj-row--locked { opacity: 0.85; }
.obj-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}
.obj-row__fam {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.38rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, #5a3c24);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 80%, #1a1008);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.1;
}
.obj-row__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.15;
}
.obj-row__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.55rem;
  align-items: center;
}
.obj-row__copy {
  min-width: 0;
}
.obj-row__blurb {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obj-row__prog {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--gold);
}
.obj-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
}
.obj-row__btn.btn,
a.obj-row__btn.btn {
  --btn-pad-x: 0.65rem;
  --btn-depth-rest: 5px;
  min-height: 1.85rem;
  padding: 0.14rem var(--btn-pad-x);
  font-size: 0.72rem;
}
.obj-row__btn .obj-prize,
.objectives-panel__claim-all-btn .obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}
.obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.obj-prize .icon,
.obj-prize svg.icon {
  width: 0.95rem;
  height: 0.95rem;
}
.obj-row__claim { margin: 0; }
.obj-row__done {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.obj-row--compact {
  padding: 0.28rem 0.4rem;
  gap: 0.22rem;
}
.obj-row--compact .obj-row__blurb {
  -webkit-line-clamp: 2;
  font-size: 0.64rem;
}
.obj-row--compact .obj-row__title {
  font-size: 0.76rem;
}
/* Objectives modal · shell size locked with Check-in / Achievements (checkin-modal.css). */
dialog.modal.modal--objectives .objectives-panel {
  --set1-sign-clear: 0rem;
  padding-top: var(--frame-rim);
}
.objectives-panel__head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 calc(-1 * (var(--set1-vine-gutter, 2.1rem) - var(--frame-rim)));
  width: calc(100% + 2 * (var(--set1-vine-gutter, 2.1rem) - var(--frame-rim)));
  padding: 0.55rem calc(var(--set1-vine-gutter, 2.1rem) - var(--frame-rim) + 0.35rem) 0.75rem;
  background:
    linear-gradient(180deg, rgb(12 8 4 / 28%), rgb(8 5 2 / 42%)),
    var(--wood-plank-dark, var(--wood-plank));
  /* V2 wood underside lip under the header. */
  box-shadow:
    inset 0 -1px 0 #6a4220,
    inset 0 -3px 0 #2a170c,
    inset 0 -5px 0 #140c08,
    0 3px 0 #0a0604;
  border-bottom: 0;
}
.objectives-panel__title {
  margin: 0;
  justify-self: start;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffe9a8;
  text-shadow: 0 1px 0 #1a1008;
}
.objectives-panel__tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  justify-self: start;
}
.objectives-panel__claim-all {
  margin: 0;
  justify-self: end;
}
.objectives-panel__claim-all--empty {
  font-size: 0.72rem;
}
.objectives-panel__claim-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.objectives-panel__close {
  margin: 0;
  justify-self: end;
}
.objectives-panel__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.obj-board__sec--tree {
  position: relative;
  padding-left: 0;
  border-left: 0;
}
.obj-board__sec-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.4rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, #2a170c);
  border-radius: 0.25rem;
  background: color-mix(in srgb, #1a1008 70%, #2a1c12);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.obj-board__sec-toggle:hover,
.obj-board__sec-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 55%, #2a170c);
  outline: none;
}
.obj-board__sec-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8dcc4;
}
.obj-board__sec-count {
  flex: 0 0 auto;
  min-width: 1.15rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 55%, #2a170c);
  color: #1a1008;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}
.obj-board__sec-chev {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #c9a24a;
  border-bottom: 2px solid #c9a24a;
  transform: rotate(45deg);
  transition: transform 0.12s ease;
}
.obj-board__sec:not([open]) .obj-board__sec-chev {
  transform: rotate(-45deg);
}
.obj-board__sec:not([open]) .obj-board__list {
  display: none;
}
.obj-board__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}
@media (min-width: 1100px) {
  .obj-board__list {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  }
}
@media (min-width: 1400px) {
  .obj-board__list {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}
/* Gem objective cards · whole plate is Claim / Go To. */
.obj-gem-wrap {
  display: block;
  margin: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.obj-gem {
  --obj-gem-rim: #c9a24a;
  --obj-gem-mid: rgba(180, 120, 40, 0.45);
  --obj-gem-lo: rgba(40, 22, 8, 0.9);
  --obj-gem-glow: rgba(255, 180, 60, 0.35);
  --obj-gem-core: rgba(18, 10, 4, 0.55);
  box-sizing: border-box;
  display: grid;
  gap: 0.22rem;
  width: 100%;
  min-height: 6.4rem;
  padding: 0.45rem 0.5rem 0.4rem;
  border: 2px solid var(--obj-gem-rim);
  border-radius: 0.28rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 12%, transparent 40%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.28) 0 16%, transparent 46%),
    radial-gradient(ellipse 70% 55% at 20% 18%, var(--obj-gem-mid) 0, transparent 65%),
    linear-gradient(180deg, var(--obj-gem-mid), var(--obj-gem-lo)),
    var(--obj-gem-core);
  box-shadow:
    0 0 4px 1px var(--obj-gem-rim),
    0 0 10px 1px var(--obj-gem-glow),
    inset 0 0 0 1px color-mix(in srgb, var(--obj-gem-rim) 55%, #fff),
    inset 0 -6px 10px var(--obj-gem-glow);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(
    4% 0%,
    96% 0%,
    100% 10%,
    100% 90%,
    96% 100%,
    4% 100%,
    0% 90%,
    0% 10%
  );
}
.obj-gem--ready {
  --obj-gem-rim: #4ec86a;
  --obj-gem-mid: rgba(52, 160, 70, 0.5);
  --obj-gem-lo: rgba(14, 60, 24, 0.92);
  --obj-gem-glow: rgba(80, 200, 110, 0.4);
  --obj-gem-core: rgba(8, 28, 14, 0.5);
}
.obj-gem--active {
  --obj-gem-rim: #6a9ad0;
  --obj-gem-mid: rgba(70, 120, 190, 0.45);
  --obj-gem-lo: rgba(18, 36, 70, 0.9);
  --obj-gem-glow: rgba(100, 160, 230, 0.35);
}
.obj-gem--locked {
  --obj-gem-rim: #6a5a48;
  --obj-gem-mid: rgba(80, 65, 50, 0.4);
  --obj-gem-lo: rgba(28, 20, 14, 0.92);
  --obj-gem-glow: rgba(100, 80, 60, 0.25);
  opacity: 0.88;
}
.obj-gem--claimed {
  --obj-gem-rim: #5a5044;
  --obj-gem-mid: rgba(70, 60, 48, 0.35);
  --obj-gem-lo: rgba(24, 18, 12, 0.92);
  opacity: 0.72;
  cursor: default;
}
.obj-gem:hover,
.obj-gem:focus-visible,
a.obj-gem-wrap:hover .obj-gem,
a.obj-gem-wrap:focus-visible .obj-gem {
  filter: brightness(1.06);
  outline: none;
}
.obj-gem__title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 0 #0a0614;
}
.obj-gem__blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.25;
  color: color-mix(in srgb, #fff 78%, transparent);
}
.obj-gem__prog {
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffe9a8;
}
.obj-gem__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-top: auto;
  padding-top: 0.15rem;
}
.obj-gem__claim {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.obj-gem .obj-prize,
.objectives-panel__claim-all-btn .obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}
.obj-gem--rail {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  min-height: 0;
  min-width: 0;
  padding: 0.28rem 0.55rem;
  clip-path: none;
  border-radius: 0.22rem;
  text-decoration: none;
}
a.obj-gem--rail {
  color: #fff;
}
/* Rail Objectives teaser · keep Claim/Go slim like Daily Check-in. */
.rail-panel--objectives .obj-row__main {
  grid-template-columns: minmax(0, 1fr) auto;
}
.rail-panel--objectives {
  margin-bottom: 0;
}
.coop-rail__section:has(.rail-panel--objectives) {
  margin-bottom: 0;
}
.obj-fab {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  top: 50%;
  z-index: calc(var(--z-header, 40) - 1);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  padding: 0.85rem 0.45rem;
  border: 2px solid #3a2a14;
  border-radius: 0.55rem 0 0 0.55rem;
  background: linear-gradient(180deg, #c9a24a, #8a6a28);
  color: #1a1008;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(0 0 0 / 35%);
}
.obj-fab:hover,
.obj-fab:focus-visible {
  filter: brightness(1.06);
}
.obj-fab__label { transform: rotate(180deg); }
@media (max-width: 48rem) {
  .obj-fab {
    top: auto;
    bottom: max(5.5rem, env(safe-area-inset-bottom));
    translate: none;
    writing-mode: horizontal-tb;
    border-radius: 999px;
    min-width: auto;
    padding: 0.55rem 0.9rem;
  }
  .obj-fab__label { transform: none; }
}
.rail-activity {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-soft);
}
.rail-activity:last-child { padding-bottom: 0; border-bottom: 0; }
.rail-activity__copy strong { display: block; font-size: var(--text-sm); }
.rail-activity__copy .meta { margin: var(--space-1) 0 0; }
.rail-activity__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.rail-activity__actions .btn {
  /* Keep lip padding from universal .btn; only shrink type. */
  font-size: var(--text-xs);
}
.steward {
  display: grid;
  gap: var(--steward-gap, 1rem);
  --steward-gap: 1rem;
}
.steward__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
  gap: var(--steward-gap, 1rem);
  align-items: start;
}
/* Nest eggs · full width under identity + skills. */
.steward__body > .steward__eggs {
  grid-column: 1 / -1;
}



/* Player level XP · flat hay bar spanning the full parchment identity card. */
.steward-hyper {
  display: grid;
  gap: 0;
  min-width: 0;
  width: 100%;
  margin-top: 0.35rem;
  grid-column: 1 / -1;
  box-sizing: border-box;
}
.steward-hyper__track {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 1.55rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #5a3e1a 55%, #2a1a0c);
  border: 1.5px solid #1a1008;
  box-shadow:
    inset 0 1px 2px rgb(0 0 0 / 28%),
    0 0 0 1px #0c0804;
}
.steward-hyper__fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    #8a6a30 0%,
    #c4a35a 45%,
    #e0c878 100%
  );
  border-right: 0;
  box-shadow: none;
  transition: width 0.6s ease;
}
.steward-hyper__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.2rem 0.55rem;
  pointer-events: none;
}
.steward-hyper__lvl-num,
.steward-hyper__readout,
.steward-hyper__pct {
  color: #fff6e4;
  text-shadow:
    0 0 1px #1a1008,
    1px 0 0 #1a1008,
    -1px 0 0 #1a1008,
    0 1px 0 #1a1008,
    0 -1px 0 #1a1008,
    0 0 6px rgb(255 236 190 / 55%);
}
.steward-hyper__lvl-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.steward-hyper__readout {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.steward-hyper__pct {
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 2.1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .steward-hyper__content {
    padding: 0.18rem 0.45rem;
    gap: 0.3rem;
  }
  .steward-hyper__lvl-num,
  .steward-hyper__pct { font-size: 0.68rem; }
  .steward-hyper__readout { font-size: 0.62rem; }
}
.steward__main {
  display: grid;
  gap: var(--steward-gap, 1rem);
  align-content: start;
  min-width: 0;
}
/* Layout only · shared paper chrome comes from global .parchment. */
.steward__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-items: stretch;
  --steward-identity-pad-x: calc(1.15rem + 6px);
  --steward-identity-pad-y: calc(1rem + 6px);
  padding: var(--steward-identity-pad-y) var(--steward-identity-pad-x);
}
.steward__identity-top {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-4);
  /* Portrait spans both right-side rows (names/purse + growth). */
  align-items: stretch;
  min-width: 0;
}
.steward__identity h2,
.steward__identity .steward__type {
  color: #2a160c;
}
.xp-banner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
}
.xp-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}
.xp-banner {
  position: relative;
  height: 1.65rem;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-strong));
  border: 1px solid var(--line-soft);
}
.xp-banner-row .growth-badge {
  justify-self: end;
}
.xp-banner__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.xp-banner__label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}
.steward__who {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-content: start;
  align-self: center;
  min-width: 0;
}
/* Row 1 · names + purse. Row 2 · growth chip + admin ▲/▼ (scene stays left of both). */
.steward__mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: start;
  min-width: 0;
}
.steward__copy {
  display: grid;
  gap: 0.28rem;
  align-content: start;
  min-width: 0;
  /* Name column yields to purse · never let currency overlap. */
  overflow: hidden;
}
.steward__names {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
/* Shift / rarity / admin ▲ · one left edge, even vertical rhythm. */
.steward__status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0.15rem 0 0;
  min-width: 0;
}
.steward__status-stack .chiken-shift-row {
  margin: 0;
}
.steward__status-stack .shop-card__rarity {
  margin: 0;
}
.steward__status-stack .steward__growth-form {
  margin: 0;
}
/* Single purse well · flush top-right of the identity card. */
.steward__stats {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  justify-self: end;
  align-self: start;
  margin: 0;
  min-width: 0;
  flex: 0 0 auto;
}
.steward__purse {
  display: grid;
  gap: 0.22rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-alt, var(--line-soft));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
}
.steward__purse-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.steward__purse-row .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}
.steward__purse-row .icon--chimcoin,
.steward__purse-row .icon--clucky-chip,
.steward__purse-row .icon--eggpower,
.steward__purse-row .icon--xp {
  width: 1.35rem;
  height: 1.35rem;
  color: inherit;
}
.steward__purse-row .stat-pill__label {
  margin-left: 0.05rem;
}
.steward__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}
.steward__title-row h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  /* Prefer wrap over colliding with the purse; tooltip has the full name. */
  font-size: clamp(0.92rem, 1.05vw + 0.55rem, 1.28rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.steward__settings {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-alt, var(--line-soft));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
  color: var(--ink-strong);
  cursor: pointer;
}
.steward__settings:hover {
  color: var(--ink-strong);
  border-color: var(--accent);
}
.steward__settings .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.coop-settings__tz {
  display: grid;
  gap: var(--space-2);
}
.checkin-admin-actions--body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  justify-content: flex-end;
}
.coop-settings {
  display: grid;
  gap: 0.75rem;
}
.coop-settings__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}
.coop-settings__head h2 {
  justify-self: start;
}
.coop-settings__head form {
  justify-self: end;
}
.coop-settings__clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  justify-self: center;
  min-width: 0;
}
.coop-settings__clock--body {
  align-items: flex-start;
  justify-self: stretch;
  margin: 0 0 0.35rem;
}
.coop-settings__clock-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #f0e0b8 72%, #8a7a62);
  text-shadow: 0 1px 0 #1a1008;
}
.coop-settings__clock .date-stamp {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
}
.coop-settings__reset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
}
.coop-settings__reset-left {
  font-family: var(--font-ui, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, #f0e0b8 82%, #8a7a62);
  text-shadow: 0 1px 0 #1a1008;
  white-space: nowrap;
}
.coop-settings__field {
  display: grid;
  gap: 0.35rem;
}
.coop-settings__label {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coop-settings select {
  width: auto;
  max-width: 16rem;
  min-width: 11rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line-alt, var(--line));
  border-radius: 0.45rem;
  background: var(--bg-elevated);
  color: var(--ink-strong);
}
.coop-settings select:focus,
.coop-settings select:focus-visible {
  outline: none;
  box-shadow: none;
}
.coop-settings__hint { margin: 0; }
.coop-settings__reset {
  margin: 0;
  color: var(--ink-strong);
}
.coop-settings__reset .date-stamp {
  vertical-align: middle;
}
dialog.modal.modal--settings .modal__body {
  background: var(--panel-strong);
}
.steward__growth-hint {
  margin: var(--space-1) 0 0;
  max-width: 28rem;
  line-height: 1.35;
}
.steward__who h2 { margin: 0; }
.steward__type {
  margin: 0;
  color: var(--gold);
  font-weight: 600;
  min-width: 0;
  font-size: clamp(0.78rem, 0.55vw + 0.62rem, 0.95rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.steward__identity .chiken-age.meta {
  margin: 0;
  color: color-mix(in srgb, #2a160c 72%, #5a4a38);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}
.steward__copy .shop-card__rarity {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.steward__growth-form {
  margin: 0;
  display: inline-flex;
}
.steward__growth-btn {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  min-height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, #2a170c);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-strong));
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.steward__growth-btn:hover,
.steward__growth-btn:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--gold) 28%, var(--panel-strong));
  color: #fff6e4;
}



/* Full-width affinity row · below portrait/name, above Steward XP bar. */
.steward__aff-row {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0.1rem 0 0;
}
.steward__aff-hill {
  margin: 0;
  width: 100%;
  max-width: none;
  gap: 0;
  overflow: visible;
}
.steward__aff-hill .activity-card__aff-hill--crystal {
  width: 100%;
  max-width: none;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  overflow: visible;
}
/* Orb + label plate share one column width · no stray offset. */
.steward__aff-hill .activity-card__aff-hill--crystal .activity-card__aff-half {
  --aff-orb-w: 4.25rem;
  width: var(--aff-orb-w);
  min-width: var(--aff-orb-w);
  max-width: var(--aff-orb-w);
  flex: 0 0 var(--aff-orb-w);
  align-items: center;
  padding-inline: 0;
}
.steward__aff-hill .activity-card__aff-hill--crystal .activity-card__aff-stage {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.steward__aff-hill .activity-card__aff-hill--crystal .activity-card__aff-gem.reward-orb {
  width: 88%;
  height: 88%;
}
.steward__aff-hill .activity-card__aff-hill--crystal .activity-card__aff-skill {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.steward__identity .steward__aff-hill.steward__affinities--locked .activity-card__aff-hill {
  opacity: 0.55;
  filter: grayscale(0.3);
}
.growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line-alt, var(--line));
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  background: color-mix(in srgb, var(--panel-strong) 80%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-alt, var(--line)) 22%, transparent);
  white-space: nowrap;
  max-width: 100%;
}
.growth-badge--adult {
  color: var(--ink-strong);
  border-color: color-mix(in srgb, var(--ink-strong) 35%, var(--line-alt, var(--line)));
}
.growth-badge--timer {
  color: var(--ink-strong);
}
.growth-badge--locked {
  color: #a89880;
  letter-spacing: 0.06em;
}
.growth-badge__stage {
  color: var(--ink-strong);
}
.growth-badge__clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: none;
}
/* Match chimkoins / chips / settings chrome on the parchment card. */
.steward__identity .growth-badge {
  border: 1px solid var(--line-alt, var(--line-soft));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
  box-shadow: none;
  color: var(--ink-strong);
}
.steward__identity .growth-badge--adult,
.steward__identity .growth-badge__stage {
  color: var(--ink-strong);
}
.steward__identity .growth-badge__clock {
  color: var(--gold);
}
.streak-tag {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 100%;
  margin-top: 0.55rem;
  border: 1px solid var(--line-alt, var(--line-soft));
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.streak-tag__part {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.45rem;
  white-space: nowrap;
}
.streak-tag__part + .streak-tag__part {
  border-left: 1px solid var(--line-alt, var(--line-soft));
}
.streak-tag__part strong {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.streak-tag__part--status {
  color: var(--gold);
}
.streak-tag__part--best {
  color: var(--muted);
}
.streak-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.checkin-board__tags .streak-stat,
.streak-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  flex: 0 0 auto;
}
.streak-stat strong {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.streak-stat--status {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}
.steward__pills {
  /* Legacy alias · prefer .steward__stats */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, max-content));
  gap: var(--space-2);
  justify-content: start;
  margin: 0;
}
.steward__split {
  margin: 0;
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 1;
}
.steward__affinities {
  display: grid;
  gap: 0.35rem;
}
.steward__affinities-label {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/*
 * Affinity tags (sitewide) · horizontal wood pills. Hex/pointed plates retired.
 */
.affinity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}
.affinity-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.18rem 0.55rem 0.18rem 0.35rem;
  border: 2px solid #2a170c;
  border-radius: 0.2rem;
  background:
    linear-gradient(180deg, rgb(12 8 4 / 20%), rgb(8 5 2 / 36%)),
    var(--wood-plank);
  color: #f0e4c8;
  font-family: Literata, Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.12),
    inset 0 -1px 0 #1a0f08,
    0 2px 0 rgb(18 9 4 / 55%);
  filter: none;
}
.affinity-chip::before,
.affinity-chip::after {
  content: none;
  display: none;
}
.affinity-chip__icon {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  color: #f0e4c8;
  opacity: 1;
  --orb-hi: #fff0c8;
  --orb-mid: rgba(180, 120, 40, 0.55);
  --orb-lo: rgba(40, 20, 8, 0.85);
  --orb-rim: #c9a24a;
  --orb-glow: color-mix(in srgb, var(--orb-rim) 70%, transparent);
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, var(--orb-mid) 76%, var(--orb-lo) 100%),
    radial-gradient(circle at 50% 36%, var(--orb-mid) 0, transparent 62%),
    radial-gradient(circle at 50% 104%, var(--orb-glow) 0, transparent 58%),
    rgba(12, 6, 20, 0.35);
  border: 2px solid var(--orb-rim);
  border-radius: 50%;
  clip-path: none;
  transform: none;
  box-shadow:
    0 0 4px 1px var(--orb-rim),
    0 0 10px 2px var(--orb-glow),
    inset 0 0 8px 1px var(--orb-rim),
    inset 0 -4px 8px var(--orb-glow),
    inset 0 3px 5px rgba(255, 255, 255, 0.22);
  filter: none;
  isolation: isolate;
  overflow: hidden;
}
.affinity-chip__icon::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 10%;
  width: 42%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.04));
  transform: rotate(-26deg);
  filter: blur(0.4px);
  z-index: 0;
  pointer-events: none;
}
.affinity-chip--skill-gathering .affinity-chip__icon {
  --orb-hi: #d2ffe6;
  --orb-mid: rgba(40, 220, 130, 0.55);
  --orb-lo: rgba(4, 80, 60, 0.8);
  --orb-rim: #5dffa8;
  --orb-glow: rgba(40, 255, 140, 0.75);
}
.affinity-chip--skill-tree_cutting .affinity-chip__icon {
  --orb-hi: #d6efff;
  --orb-mid: rgba(40, 150, 255, 0.55);
  --orb-lo: rgba(8, 40, 150, 0.8);
  --orb-rim: #5cc0ff;
  --orb-glow: rgba(50, 170, 255, 0.75);
}
.affinity-chip--skill-stewardship .affinity-chip__icon {
  --orb-hi: #fff2c4;
  --orb-mid: rgba(255, 180, 40, 0.55);
  --orb-lo: rgba(120, 60, 8, 0.8);
  --orb-rim: #ffc040;
  --orb-glow: rgba(255, 170, 40, 0.75);
}
.affinity-chip--skill-cooking .affinity-chip__icon,
.affinity-chip--skill-fire_making .affinity-chip__icon,
.affinity-chip--skill-smelting .affinity-chip__icon {
  --orb-hi: #ffe0c8;
  --orb-mid: rgba(255, 120, 50, 0.55);
  --orb-lo: rgba(120, 30, 8, 0.8);
  --orb-rim: #ff8a40;
  --orb-glow: rgba(255, 110, 40, 0.75);
}
.affinity-chip--skill-fishing .affinity-chip__icon {
  --orb-hi: #d8f0ff;
  --orb-mid: rgba(50, 160, 230, 0.55);
  --orb-lo: rgba(8, 50, 120, 0.8);
  --orb-rim: #4aa8e0;
  --orb-glow: rgba(70, 170, 255, 0.75);
}
.affinity-chip--skill-farming .affinity-chip__icon,
.affinity-chip--skill-exploration .affinity-chip__icon {
  --orb-hi: #e8ffc8;
  --orb-mid: rgba(140, 210, 60, 0.55);
  --orb-lo: rgba(30, 80, 10, 0.8);
  --orb-rim: #8bc34a;
  --orb-glow: rgba(140, 220, 60, 0.7);
}
.affinity-chip--skill-mining .affinity-chip__icon,
.affinity-chip--skill-smithing .affinity-chip__icon {
  --orb-hi: #e0e8f0;
  --orb-mid: rgba(130, 150, 180, 0.55);
  --orb-lo: rgba(30, 40, 60, 0.85);
  --orb-rim: #8aa0b8;
  --orb-glow: rgba(140, 170, 210, 0.7);
}
.affinity-chip--skill-strength .affinity-chip__icon {
  --orb-hi: #ffd0d0;
  --orb-mid: rgba(224, 80, 80, 0.55);
  --orb-lo: rgba(80, 10, 10, 0.85);
  --orb-rim: #e06060;
  --orb-glow: rgba(255, 80, 80, 0.7);
}
.affinity-chip--skill-hacking .affinity-chip__icon {
  --orb-hi: #f0d8ff;
  --orb-mid: rgba(160, 90, 230, 0.55);
  --orb-lo: rgba(50, 15, 100, 0.85);
  --orb-rim: #a070e0;
  --orb-glow: rgba(180, 100, 255, 0.75);
}
.affinity-chip--skill-crafting .affinity-chip__icon {
  --orb-hi: #ffe8c8;
  --orb-mid: rgba(184, 130, 70, 0.55);
  --orb-lo: rgba(70, 40, 15, 0.85);
  --orb-rim: #b88850;
  --orb-glow: rgba(200, 140, 70, 0.7);
}
.affinity-chip__icon .icon,
.affinity-chip__icon svg,
.affinity-chip__glyph {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.affinity-chip__loc,
.affinity-chip__mult,
.affinity-chip__rank {
  position: relative;
  z-index: 1;
}
.affinity-chip__loc {
  /* Match activity hills · override per surface with --aff-label-w. */
  --aff-label-w: 4.1rem;
  flex: 0 1 auto;
  width: auto;
  max-width: var(--aff-label-w);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #f0e4c8;
  text-shadow: 0 1px 0 #1a0f08;
  text-align: left;
}
.affinity-chip__rank {
  /* Primary/Secondary wording retired · keep rule so old markup stays invisible. */
  display: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}
.affinity-chip__mult {
  display: inline;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  text-shadow: 0 1px 0 #1a0f08;
}
/* Chip % color comes from .skill-tint--* when present on the mult. */
.steward__affinities--locked .affinity-chip {
  filter: none;
  opacity: 1;
  justify-content: center;
  color: var(--muted);
}
.steward__affinities--locked .affinity-chip__icon {
  display: none;
}
.steward__affinities--locked .affinity-chip__loc,
.steward__affinities--locked .affinity-chip__rank,
.steward__affinities--locked .affinity-chip__mult {
  color: var(--muted);
}
.affinity-chip__icon--obscured,
.affinity-chip--obscured .affinity-chip__icon {
  --orb-hi: #d8d4e4;
  --orb-mid: rgba(120, 118, 140, 0.45);
  --orb-lo: rgba(40, 38, 52, 0.9);
  --orb-rim: #8a869c;
  --orb-glow: rgba(140, 136, 160, 0.45);
}
.affinity-chip--obscured .affinity-chip__loc {
  color: #a8a4b8;
}
.affinity-chip--obscured {
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}
.affinity-chip__stars {
  font-size: 0.95rem;
  line-height: 1;
  color: color-mix(in srgb, var(--gold) 55%, var(--muted));
}
.affinity-chip--strong .affinity-chip__loc,
.affinity-chip--weak .affinity-chip__loc {
  color: #f0e4c8;
}
.steward__eggs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--steward-gap, 1rem);
  margin: 0 0 var(--steward-gap, 1rem);
}
.steward__eggs-head h3 { margin: 0; }
.steward__eggs-head .link-arrow {
  flex: 0 0 auto;
  align-self: baseline;
}
.steward__portrait-wrap {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 7.5rem;
  min-width: 7.5rem;
}
.steward__portrait {
  display: grid;
  place-items: stretch center;
  width: 100%;
  height: 7.5rem;
  border: var(--border-width) solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-strong);
  overflow: hidden;
}
.steward__portrait .visual-asset {
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: stretch center;
  overflow: hidden;
}
.steward__portrait .visual-asset canvas,
.steward__portrait .visual-asset--chickling canvas,
.steward__portrait canvas {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent;
  image-rendering: pixelated;
  object-fit: fill;
}
.steward__portrait .visual-asset--chickling {
  display: grid;
  place-items: stretch center;
  width: 100%;
  height: 100%;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-alt, var(--line-soft));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-strong);
}
.stat-pill .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gold);
  flex: 0 0 auto;
}
.stat-pill .icon--chimcoin,
.stat-pill .icon--clucky-chip {
  width: 1.5rem;
  height: 1.5rem;
  color: inherit;
}
.stat-pill__label {
  color: var(--muted);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.steward__eggs {
  --egg-border: color-mix(in srgb, var(--line-soft) 88%, #2a2a3a);
  --egg-border-hover: color-mix(in srgb, var(--accent) 55%, var(--line-soft));
  --egg-border-selected: color-mix(in srgb, var(--equip) 80%, var(--line-soft));
  --egg-border-disabled: color-mix(in srgb, var(--line-soft) 70%, #3a3a48);
  min-width: 0;
  padding-bottom: var(--steward-gap, 1rem);
}
.steward__eggs h3 {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.steward-egg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  justify-content: start;
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  width: 100%;
  max-height: none;
  overflow: visible;
}
.steward-egg-grid__item {
  margin: 0;
  width: 100%;
  min-width: 0;
  position: relative;
}
.steward-egg-grid__item .affinity-tip {
  display: block;
  width: 100%;
}
.steward-egg-grid__pick,
.steward-egg-grid__shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 0.12rem;
  border: var(--border-width) solid var(--egg-border);
  border-bottom-width: 0.2rem;
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 0.2rem 0 color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000),
    0 0.3rem 0.55rem rgba(2, 8, 18, 0.22);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease, background 0.08s ease;
}
.steward-egg-grid__pick:hover:not(:disabled),
button.steward-egg-grid__shell--equipped:hover,
button.steward-egg-grid__shell--locked:hover {
  border-color: var(--egg-border-hover);
  transform: translateY(1px);
  box-shadow: 0 0.125rem 0 color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000),
    0 0.2rem 0.4rem rgba(2, 8, 18, 0.2);
}
.steward-egg-grid__pick:active:not(:disabled),
button.steward-egg-grid__shell--equipped:active,
button.steward-egg-grid__shell--locked:active {
  transform: translateY(2px);
  box-shadow: 0 0.05rem 0 color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
}
.steward-egg-grid__pick:disabled {
  opacity: 1;
  cursor: default;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  border-color: var(--egg-border-disabled);
  box-shadow: 0 0.2rem 0 color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000),
    0 0.3rem 0.55rem rgba(2, 8, 18, 0.2);
}
.steward-egg-grid__pick--ready,
.steward-egg-grid__pick--equip {
  border-color: var(--egg-border);
  opacity: 1;
}
.steward-egg-grid__shell--equipped {
  border-color: var(--egg-border-selected);
  opacity: 1;
  box-shadow: 0 0.2rem 0 var(--equip-shadow),
    0 0.3rem 0.55rem rgba(2, 8, 18, 0.22);
}
.steward-egg-grid__shell--locked {
  position: relative;
  opacity: 1;
  overflow: hidden;
  border-color: var(--egg-border-disabled);
}
.steward-egg-grid__mask {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--danger) 28%, transparent);
  pointer-events: none;
}
.steward-egg-grid__x {
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  left: auto;
  bottom: auto;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgb(0 0 0 / 28%);
}
.steward-egg-grid .egg-token {
  position: relative;
  width: 86%;
  height: auto;
  aspect-ratio: 16 / 20;
}
.steward-egg-grid .egg-token__count {
  top: 0.15rem;
  right: 0.15rem;
  left: auto;
  bottom: auto;
}
dialog.modal.modal--equip {
  width: min(52rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
}
dialog.modal.modal--equip .modal__panel.pixel-frame {
  background: var(--slate-window);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}
@media (max-width: 45rem) {
  dialog.modal.modal--equip {
    width: calc(100vw - 1.25rem);
  }
  dialog.modal.modal--equip .type-stage-preview {
    flex-direction: row;
    align-items: flex-start;
  }
}
dialog.modal.modal--equip .modal-wood-head {
  margin: 0 0 0.15rem;
  width: 100%;
  flex: 0 0 auto;
}
dialog.modal.modal--equip .modal__panel {
  display: flex;
  flex-direction: column;
}
dialog.modal.modal--equip .equip-confirm {
  background: transparent;
}
.equip-confirm {
  display: grid;
  gap: 0.95rem;
  justify-items: center;
  text-align: center;
  background: var(--panel-strong);
  color: var(--ink);
  margin: 0;
  padding: 0.85rem 0.75rem 1rem;
  box-sizing: border-box;
}
.equip-confirm__preview {
  width: auto;
  max-width: 100%;
}
.equip-confirm__preview .visual-asset {
  image-rendering: pixelated;
}
.equip-confirm__stats {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  width: min(22rem, 100%);
}
.equip-confirm__stats[hidden] {
  display: none !important;
}
.equip-confirm__stats-inner {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  width: 100%;
}
.equip-confirm__aff-hill.steward__affinities {
  display: block;
  width: 100%;
  max-width: 20rem;
}
.equip-confirm__aff-hill .activity-card__aff-hill--crystal {
  width: 100%;
  justify-content: center;
}
.equip-confirm__phase {
  display: flex;
  justify-content: center;
}
.type-stage-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 0.85rem);
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.type-stage-preview__stage {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  flex: 1 1 0;
  min-width: 0;
  /* Grow into tablet width before stacking feels forced. */
  max-width: min(14.5rem, 42vw);
}
.type-stage-preview__frame.pixel-frame {
  display: grid;
  place-items: stretch;
  /* Set: flush (frame-set registry). */
  /* Standard 14px v2 wood rim (.pixel-frame::after / __fx) · not thin gold inset. */
  background: #120c08;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
  box-sizing: border-box;
}
.type-stage-preview__frame.pixel-frame.wood-rim-thin {
  /* Guard · never use thin gold CSS rim on equip stage frames. */
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
}
.type-stage-preview__frame.pixel-frame::after {
  border-width: var(--frame-rim);
  border-color: #4a3220;
  box-shadow:
    inset 0 0 0 3px #b98448,
    inset 0 0 0 8px #3e2616,
    0 8px 18px rgb(0 0 0 / 32%);
}
.type-stage-preview__frame .visual-asset {
  display: block;
  /* Scale with viewport so Chikling + Adult stay side by side. */
  width: 100%;
  max-width: min(12rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
}
.type-stage-preview__frame .visual-asset canvas,
.type-stage-preview__frame .visual-asset img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill;
  margin: 0;
}
.type-stage-preview__label {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
  min-height: 1.2em;
}
.type-stage-preview__arrow {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  line-height: 1;
  color: var(--ink-strong);
  opacity: 0.75;
  padding-top: clamp(1.4rem, 8vw, 2.2rem);
  flex: 0 0 auto;
  align-self: flex-start;
}
.equip-confirm__copy {
  margin: 0;
  max-width: 22rem;
  line-height: 1.45;
  color: var(--ink);
}
.equip-confirm__copy strong {
  color: var(--ink-strong);
}
.equip-confirm__status {
  margin: 0;
  max-width: 22rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}



/* Keep Chikling | Adult side by side at every size · frames scale down via clamp. */
@media (max-width: 520px) {
  .type-stage-preview__frame.pixel-frame {
    padding: 10px;
  }
  .type-stage-preview__frame.pixel-frame::after {
    border-width: 10px;
  }
}
.equip-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0.15rem 0 0;
}
.equip-confirm__actions[hidden] {
  display: none !important;
}
.equip-confirm__actions .btn {
  min-width: 7.5rem;
}
.steward {
  --steward-gap: 1rem;
}
.steward__panel {
  display: grid;
  gap: var(--space-2);
  padding: var(--steward-gap, 1rem);
  border: var(--border-width) solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-strong);
  align-content: start;
  box-sizing: border-box;
  min-width: 0;
}
.steward__skills {
  display: grid;
  gap: var(--space-2);
  padding: var(--steward-gap, 1rem);
  border: var(--border-width) solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-strong);
  align-content: start;
  justify-items: center;
  align-self: stretch;
  box-sizing: border-box;
  min-width: 0;
}
.steward__skills h3 {
  margin: 0;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  width: 100%;
}
/* Crystal skill orbs · centered, fill the skills column. */
.skills-orbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 0.55rem;
  justify-items: center;
  justify-content: center;
  margin: 0.35rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.skill-orb {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0 0.2rem;
  margin: 0;
  width: 100%;
  max-width: 7.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.skill-orb:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--orb-rim, var(--gold)) 70%, #fff);
  outline-offset: 2px;
  border-radius: 0.4rem;
}
.skill-orb__stage {
  position: relative;
  width: min(7.5rem, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.skill-orb__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-90deg);
}
.skill-orb__ring-track {
  stroke: rgb(20 14 28 / 70%);
  stroke-width: 5.5;
}
.skill-orb__ring-fill {
  stroke: var(--orb-rim, #d070ff);
  stroke-width: 5.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--orb-glow, rgb(190 90 255 / 70%)));
  transition: stroke-dasharray 0.35s ease;
}
.skill-orb__gem.reward-orb {
  position: relative;
  left: auto;
  top: auto;
  width: 74%;
  height: 74%;
  z-index: 2;
}
.skill-orb .orb-role--skill {
  top: 0;
  left: 0;
  right: auto;
  transform: none;
  width: 2.55rem;
  height: 1.05rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}
.skill-orb__lvl {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-width: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid var(--orb-rim, #d070ff);
  background: linear-gradient(180deg, #2a1858, #12082a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-sizing: border-box;
  box-shadow:
    0 0 6px var(--orb-glow, rgb(160 110 255 / 55%)),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}
.skill-orb__plate {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-height: 1.45rem;
  padding: 0.18rem 0.22rem;
  border-radius: 0.4rem;
  border: 2px solid color-mix(in srgb, var(--orb-rim, #b9a1ff) 75%, #6a5080);
  display: grid;
  place-items: center;
  background: linear-gradient(#22124a, #0f0722);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--orb-glow, rgb(160 110 255 / 45%)) 80%, transparent),
    inset 0 0 6px rgb(130 90 230 / 35%),
    inset 0 1px 0 rgb(255 255 255 / 16%);
  box-sizing: border-box;
}
.skill-orb__plate span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ebe4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
  text-align: center;
}
.steward__skills .skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.skill-card {
  /* Match universal .btn lip depth / seam / shell stack. */
  --btn-rim: 1.5px;
  --btn-seam: 0.5px;
  --btn-depth-rest: 7px;
  --btn-depth: 7px;
  --btn-face: color-mix(in srgb, var(--panel) 72%, transparent);
  --btn-lip: color-mix(in srgb, var(--gold) 28%, #1a1008);
  /* Resting rim stays readable · hover bumps gold further. */
  --btn-shell: color-mix(in srgb, var(--gold) 38%, #1a1008);
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.375rem;
  padding: var(--space-2);
  border: var(--btn-rim) solid var(--btn-shell);
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--btn-face);
  background-image: var(--skill-bg);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent),
    0 0.28rem 0.55rem rgba(2, 8, 18, 0.28),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}
.skill-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--btn-depth-rest) + var(--btn-seam));
  z-index: 0;
  background:
    linear-gradient(180deg, rgb(8 14 28 / 42%), rgb(8 14 28 / 72%)),
    color-mix(in srgb, var(--panel-strong) 55%, transparent);
  pointer-events: none;
}
.skill-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--btn-depth);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--btn-shell) 0 var(--btn-seam),
      var(--btn-lip) var(--btn-seam) 100%
    );
}
.skill-card > * { position: relative; z-index: 1; }
button.skill-card--open {
  width: 100%;
  margin: 0 0 0.375rem;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition: box-shadow 0.08s ease, border-color 0.08s ease, filter 0.08s ease;
}
button.skill-card--open:hover,
button.skill-card--open:focus-visible {
  --btn-shell: color-mix(in srgb, var(--gold) 62%, #1a1008);
  --btn-lip: color-mix(in srgb, var(--gold) 48%, #1a1008);
  --btn-depth: 5px;
  border-color: var(--btn-shell);
  outline: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent),
    0 0.18rem 0.4rem rgba(2, 8, 18, 0.24),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}
button.skill-card--open:active {
  --btn-depth: 3px;
  box-shadow: 0 0.08rem 0.2rem rgba(2, 8, 18, 0.2),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}
.skill-detail.pixel-frame {
  max-width: min(28rem, 100%);
  margin-inline: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--slate-window);
  box-sizing: border-box;
}
.skill-detail.pixel-frame > .pixel-frame__fx { display: none; }
.skill-detail__level {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.skill-detail__lvl {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold);
}
.skill-detail__meter {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-3);
}
.skill-detail__xp-line { margin: 0; }
.skill-detail__aff {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 0;
  border: 2px solid #2a170c;
  background:
    linear-gradient(180deg, rgb(18 12 8 / 45%), rgb(10 7 5 / 65%)),
    repeating-linear-gradient(180deg, #2a1a10 0 10px, #24160e 10px 20px);
  box-shadow:
    inset 0 0 0 1px #5a3c24,
    inset 0 0 0 2px #1a1008;
  font-size: var(--text-sm);
}
.skill-detail__aff--strong {
  border-color: color-mix(in srgb, #7eb0ff 50%, #2a170c);
  color: #7eb0ff;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #7eb0ff 40%, #5a3c24),
    inset 0 0 0 2px #1a1008;
}
.skill-detail__aff--weak {
  border-color: color-mix(in srgb, #b6e6c4 45%, #2a170c);
  color: #b6e6c4;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #b6e6c4 40%, #5a3c24),
    inset 0 0 0 2px #1a1008;
}
.skill-unlock {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.skill-unlock__node {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--scene-line) 70%, transparent);
  background: rgb(10 7 5 / 35%);
}
.skill-unlock__node--done {
  opacity: 0.72;
}
.skill-unlock__node--now {
  border-color: color-mix(in srgb, var(--gold) 55%, #2a170c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent);
}
.skill-unlock__node--soon {
  opacity: 0.55;
}
.skill-unlock__lvl {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.skill-unlock__label {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: var(--text-sm);
}
.skill-unlock__label b { font-weight: 700; }
.skill-unlock__label small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.chiken-shift-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.15rem;
}
.chiken-shift-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, #2a170c);
  background: rgb(18 12 8 / 55%);
  color: var(--gold);
}
.chiken-shift-badge--staged {
  border-color: color-mix(in srgb, #7eb0ff 45%, #2a170c);
  color: #9ec4ff;
}
.skill-detail__sub {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.skill-detail__locs {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.skill-detail__loc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  border: 2px solid #2a170c;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgb(18 12 8 / 45%), rgb(10 7 5 / 65%)),
    repeating-linear-gradient(180deg, #2a1a10 0 10px, #24160e 10px 20px);
  box-shadow:
    inset 0 0 0 1px #5a3c24,
    inset 0 0 0 2px #1a1008,
    0 2px 0 #140c08;
}
.skill-detail__loc .meta {
  grid-column: 1 / -1;
  margin: 0;
}
.skill-detail__loc-xp {
  font-weight: 700;
  color: var(--ink-strong);
}
.skill-detail__note { margin: 0; }
.skill-row {
  display: grid;
  gap: 0.2rem;
}
.skill-row__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.skill-row__label strong { flex: 1 1 auto; }
.skill-row__label .meta { margin: 0; }
.skill-row__label .skill-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.skill-icon--inline {
  display: inline-flex;
  color: var(--gold);
}
.skill-icon--inline .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.skill-row__meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}
.skill-row__meter .meter {
  margin: 0;
  height: 0.45rem;
  width: 100%;
}
.skill-row__meter .meter.meter--plasma {
  height: 0.85rem;
}
.skill-row__pct,
.skill-row__lvl {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 1.6rem;
  text-align: center;
}
.skill-row__lvl {
  color: var(--ink-strong);
  font-weight: 700;
  min-width: 1.25rem;
}
.coop-greeting h1 { margin: 0 0 var(--space-2); align-self: center; font-size: var(--text-xl); }
.coop-greeting .lead { margin: 0; }
.coop-row { display: grid; gap: var(--space-4); align-items: stretch; }
.coop-row--top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.coop-row--progress { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.surface {
  padding: var(--space-5);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--scene-line), var(--shadow);
}
.surface.pixel-frame {
  border-radius: 0;
  /* Set: roomy (frame-set registry). */
  background: var(--wood-plank);
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  color: #e8dcc4;
}
/* Steward hub · rim vines need side gutters (trimmed so skills + nest eggs breathe). */
.steward.surface.pixel-frame.pixel-frame--vines {
  /* Set: vines · trimmed gutter so skills + nest eggs breathe. */
  --frame-pad-block: var(--frame-pad-roomy);
  --frame-vine-gutter: calc(max(2.75rem, calc(var(--vine-gutter) * 0.72)) - var(--frame-rim));
}
@media (max-width: 45rem) {
  .steward.surface.pixel-frame.pixel-frame--vines {
    --frame-vine-gutter: calc(max(1.85rem, calc(var(--vine-gutter) * 0.48)) - var(--frame-rim));
  }
}
.world.pixel-frame {
  /* Set: flush (frame-set registry). */
  border-radius: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
.surface h3 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.surface > :last-child { margin-bottom: 0; }
.inventory.vine-page.pixel-frame {
  display: grid;
  gap: 0;
  margin-top: var(--space-6);
  border: 0;
  border-radius: 0;
  background: #120c08;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  color: #d4c9ba;
  overflow: visible;
}
.inventory.set1-panel > .inventory__sign-band.set1-sign-band {
  min-height: 3.1rem;
}
.inventory.set1-panel:not(.set1-panel--pin-sign) > .inventory__sign-band.set1-sign-band {
  min-height: 0;
}
.inventory__body {
  display: grid;
  gap: var(--space-5);
  /* Vine gutters · keep bag/eggs clear of painted side vines. */
  padding: 0.85rem var(--set1-vine-gutter, 52px) 1rem;
  box-sizing: border-box;
}
.inventory.set1-panel:not(.set1-panel--pin-sign) > .inventory__body {
  padding-top: calc(var(--set1-sign-clear, 3.15rem) + 0.35rem);
  padding-inline: var(--set1-vine-gutter, 52px);
  padding-bottom: 1rem;
}



/* Inventory eggs · match nest tray shell size (6.25rem cell · 86% token). */
.inventory .egg-row--inventory {
  grid-template-columns: repeat(auto-fill, minmax(6.25rem, max-content));
  justify-content: start;
  gap: 0.75rem;
}
.inventory .inv-egg-card {
  width: 6.25rem;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.35rem 0.2rem 0.45rem;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}
.inventory .inv-egg-card .egg-token {
  /* Same visual size as .steward-egg-grid .egg-token (86% of 6.25rem). */
  width: 86%;
  max-width: 6.25rem;
  height: auto;
  aspect-ratio: 16 / 20;
  align-self: center;
}
.inventory .inv-egg-card h3 {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  color: #f0e2c4;
}
.inventory .inv-egg-card .inv-egg__hint {
  font-size: 0.58rem;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}
.inventory__block h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.inv-crate {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(40, 28, 18, 0.55);
  border: 1px solid rgba(180, 140, 80, 0.35);
}
.inv-crate p {
  margin: 0;
  font-size: 0.92rem;
}
.inv-crate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.inv-crate--ready {
  border-color: rgba(120, 180, 90, 0.55);
}
.inv-card--crate {
  outline: 1px solid rgba(160, 100, 220, 0.35);
}
.inv-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Fixed card width · fewer columns on narrow inventory (same as egg tray). */
  grid-template-columns: repeat(auto-fill, 11rem);
  justify-content: start;
  gap: var(--space-2);
}
.inv-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 2px;
  min-width: 0;
  background:
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 2px 2px / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) calc(100% - 9px) 2px / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 2px calc(100% - 9px) / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) calc(100% - 9px) calc(100% - 9px) / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(36, 24, 16, 0.72), rgba(18, 11, 7, 0.82)),
    var(--wood-plank);
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 3px #e0b050,
    inset 0 0 0 5px #6c4728,
    inset 0 0 0 6px #4a2e1a,
    inset 0 0 0 7px #241409,
    0 3px 0 rgba(0, 0, 0, 0.55);
  color: #f0e2c4;
}
.inv-card__icon {
  display: inline-flex;
  color: var(--gold);
}
.inv-card__art {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #120c08 70%, transparent);
}
.inv-egg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.inv-egg__feed {
  margin: 0;
  width: 100%;
}
.inv-egg__feed-btn {
  width: 100%;
  min-height: 2rem;
  font-size: 0.72rem;
}
.inv-egg__hint {
  margin: 0;
  font-size: 0.68rem;
  text-align: center;
}
.inv-card__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.inv-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.inv-card__body strong {
  font-size: 0.92rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0e2c4;
}
.inv-card__kind {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbbba6;
}
.inv-card__qty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #f0e2c4;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.chip .chip__days {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-strong, var(--ink));
}
.streak-board__row--locked .chip {
  gap: 0.28rem;
  padding-inline: 0.55rem;
}
.chip--ok { color: var(--ok); border-color: var(--ok); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.link-arrow:hover { text-decoration: underline; }

.world {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0a1326;
  box-shadow: 0 0 0 1px var(--line-alt-soft, var(--line-alt)), var(--shadow);
  color: var(--scene-ink);
}
.world__stage { position: absolute; inset: 0; }
.world__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--scene-shade) 0%, var(--scene-shade) 34%, transparent 64%);
}
.world__scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.world__egg {
  position: absolute;
  z-index: 2;
  /*
   * Pure % of the stage (matches 2:1 scene art).
   * Overview rail backpedaled ~50px · scene is wider; keep egg from ballooning.
   */
  left: calc(74% + 5px);
  bottom: 17%;
  width: clamp(6.5rem, 28%, 16.5rem);
  max-width: none;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}
.world__egg .ancient-egg {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  image-rendering: auto;
  pointer-events: auto;
}
.world__shimmer {
  position: absolute;
  z-index: 1;
  left: 58%;
  right: 3%;
  top: auto;
  bottom: 1.5%;
  height: 14%;
  overflow: hidden;
  pointer-events: none;
}
.world__glint {
  position: absolute;
  left: 0;
  height: 5px;
  border-radius: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.world__glint--blue-a {
  top: 10%;
  width: 3%;
  background: #9a72d4;
  box-shadow: 0 0 4px rgb(154 114 212 / 55%);
  animation: world-glint-drift 11s ease-in-out infinite;
}
.world__glint--blue-b {
  top: 28%;
  width: 2.4%;
  background: #6f4ea8;
  box-shadow: 0 0 3px rgb(111 78 168 / 50%);
  animation: world-glint-drift 14s ease-in-out infinite;
  animation-delay: -3.5s;
}
.world__glint--blue-c {
  top: 46%;
  width: 3.5%;
  background: #7d5cb8;
  box-shadow: 0 0 4px rgb(125 92 184 / 45%);
  animation: world-glint-drift 12.5s ease-in-out infinite;
  animation-delay: -7s;
}
.world__glint--blue-d {
  top: 64%;
  width: 2%;
  background: #5a3f8c;
  box-shadow: 0 0 3px rgb(90 63 140 / 40%);
  animation: world-glint-drift 15s ease-in-out infinite;
  animation-delay: -1.8s;
}
.world__glint--gold-a {
  top: 18%;
  width: 2.2%;
  background: #f0c66d;
  box-shadow: 0 0 5px rgb(240 198 109 / 55%);
  animation: world-glint-drift 13s ease-in-out infinite;
  animation-delay: -5s;
}
.world__glint--gold-b {
  top: 38%;
  width: 1.8%;
  background: #d9cfae;
  box-shadow: 0 0 4px rgb(217 207 174 / 45%);
  animation: world-glint-drift 16s ease-in-out infinite;
  animation-delay: -9s;
}
.world__glint--gold-c {
  top: 55%;
  width: 2.6%;
  background: #c0baa0;
  box-shadow: 0 0 4px rgb(192 186 160 / 40%);
  animation: world-glint-drift 12s ease-in-out infinite;
  animation-delay: -2.4s;
}
@keyframes world-glint-drift {
  0% { transform: translateX(-20%); opacity: 0; }
  12% { opacity: 0.65; }
  50% { transform: translateX(85%); opacity: 0.8; }
  78% { opacity: 0.3; }
  100% { transform: translateX(130%); opacity: 0; }
}
/* Low quality and a missed-frame shed keep the shimmer art, frozen. */
html[data-full-quality="0"] .world__glint,
html[data-motion-shed="1"] .world__glint {
  animation: none !important;
  opacity: 0.45;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .world__glint { animation: none !important; opacity: 0.35; transform: none; }
  .world__glint--blue-a { left: 12%; }
  .world__glint--blue-b { left: 42%; }
  .world__glint--blue-c { left: 22%; }
  .world__glint--blue-d { left: 68%; }
  .world__glint--gold-a { left: 54%; }
  .world__glint--gold-b { left: 30%; }
  .world__glint--gold-c { left: 76%; }
}
.world__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  width: 52%;
  height: 100%;
  box-sizing: border-box;
  margin-left: 0;
  padding: var(--space-5) var(--space-5) calc(var(--space-5) + 0.45rem) calc(var(--space-6) + 1.1rem);
  gap: var(--space-3);
}
.world__copy {
  display: grid;
  gap: var(--space-2);
  max-width: 28rem;
  padding-top: 0.15rem;
  flex: 0 0 auto;
}
.world__leaders {
  max-width: 26rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  flex: 0 0 auto;
}
.world__leaders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0 0 0.55rem;
}
.world__leaders-head h3 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.world__leaders-head span {
  font-size: 0.7rem;
  color: var(--muted);
}
.world__leaders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.world__leaders-row {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.world__leaders-rank {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.world__leaders-row:nth-child(1) .world__leaders-rank {
  background: color-mix(in srgb, var(--gold) 35%, var(--panel));
  border-color: color-mix(in srgb, var(--gold) 65%, var(--line));
  color: var(--ink-strong);
}
.world__leaders-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 600;
}
.world__leaders-ep {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.world__leaders-row--ghost {
  opacity: 0.42;
}
.world__leaders-row--ghost .world__leaders-rank {
  border-color: var(--line-soft);
  color: var(--muted);
  background: transparent;
}
.world__leaders-row--ghost .world__leaders-name,
.world__leaders-row--ghost .world__leaders-ep {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.world__leaders-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.world__bottom {
  display: grid;
  gap: var(--space-3);
  max-width: 26rem;
  width: 100%;
  margin-top: auto;
  padding-bottom: 0.15rem;
}
.world__body h2 {
  margin: 0;
  color: var(--scene-ink);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}
.world__text {
  max-width: 28rem;
  margin: 0;
  color: var(--scene-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.world__power {
  max-width: 26rem;
  width: 100%;
  margin: 0;
  padding-top: 0;
  align-self: stretch;
}
.world__power-stage {
  margin: 0;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.world__power-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--scene-muted);
  font-size: var(--text-sm);
}
.world__power .moon-bar { max-width: none; margin: var(--space-2) 0 0; }
.world__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.world__yours { margin: 0; color: var(--scene-muted); font-size: var(--text-xs); }
.world__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.world .chip { color: var(--scene-muted); border-color: var(--scene-line); }
.world .link-arrow { color: var(--gold); }

.next-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.next-step--slim {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
}
.next-step--slim .next-step__copy h2 { margin: 0; font-size: var(--text); }
.next-step--slim .next-step__copy p { margin: 0; font-size: var(--text-sm); }
.next-step__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.rail-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-active li {
  display: grid;
  gap: 0.15rem;
  padding: var(--space-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  font-size: var(--text-xs);
}
.tick { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.next-step__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--border-width) solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.25rem;
}
.next-step__copy h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.next-step__copy p { margin: 0 0 var(--space-2); }
.next-step .go,
.next-step form { margin-top: auto; align-self: flex-end; }
.next-step form .go { margin: 0; }
.go {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border-width) solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
}
.go:hover,
.go:focus-visible { background: var(--gold); color: var(--accent-ink); }

.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-3);
  color: var(--gold);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--scene-line), transparent);
}
.sub-head {
  margin: var(--space-6) 0 var(--space-3);
  font-size: var(--text-lg);
}
.skills { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.achievements { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.achievements li { display: flex; align-items: center; gap: var(--space-2); }
.achievements .icon { color: var(--gold); }
.empty { padding: var(--space-4) 0; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 var(--space-1); }
@media (max-width: 64rem) {
  .world__body { width: 58%; margin-left: 0; padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-5) + 0.75rem); }
  .world__text { display: none; }
}
@media (max-width: 72rem) {
  .coop-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 56rem) {
  .coop-stage__top {
    grid-template-columns: 1fr;
  }
  .coop-stage .coop-rail {
    border-left: 0;
    border-top: 0;
  }
  .coop-layout {
    grid-template-columns: 1fr;
  }
  .coop-rail,
  .daily-overview { width: 100%; }
  .coop-row--top,
  .coop-row--progress { grid-template-columns: 1fr; }
  .steward__body { grid-template-columns: 1fr; }
  .next-step { flex-direction: row; align-items: center; }
  .next-step__copy { flex: 1; }
  .next-step .go,
  .next-step form { margin: 0; align-self: center; }
}
@media (max-width: 45rem) {
  .type-stage-preview {
    flex-direction: column;
    align-items: center;
  }
  .world { display: block; aspect-ratio: auto; }
  .world__stage { position: relative; inset: auto; aspect-ratio: 2 / 1; }
  .world__stage::after { background: linear-gradient(0deg, var(--scene-shade), transparent 40%); }
  .world__body {
    width: auto;
    margin-left: 0;
    padding: var(--space-3) var(--space-4) calc(var(--space-4) + 0.55rem);
    gap: 0.7rem;
    background: var(--scene-shade);
  }
  .world__leaders {
    padding: 0.45rem 0.6rem;
  }
  .world__leaders-head { margin: 0 0 0.4rem; }
  .world__leaders-list { gap: 0.28rem; }
  .world__text { display: block; }
  /* Nest eggs · keep equal tiles; drop min track on phone. */
  .steward-egg-grid {
    grid-template-columns: repeat(auto-fill, minmax(4.1rem, 1fr));
    justify-content: stretch;
    justify-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .steward-egg-grid__item {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .steward-egg-grid__pick,
  .steward-egg-grid__shell {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1;
  }
  .world-scene { grid-template-columns: 1fr; }
  .steward__identity-top { grid-template-columns: 5rem minmax(0, 1fr); }
  .steward__portrait { width: 5rem; height: 5rem; }
  .steward__type-row { grid-template-columns: 1fr; }
  .skills-orbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.5rem;
    max-width: 22rem;
    justify-content: center;
  }
  .skill-orb {
    max-width: 7.5rem;
  }
  .skill-orb__stage {
    width: min(7.25rem, 100%);
  }
}
@media (max-width: 1100px) {
  .skills-orbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 0.55rem 0.5rem;
    justify-content: center;
  }
  .skill-orb {
    max-width: 7.5rem;
  }
  .skill-orb__stage {
    width: min(7.35rem, 100%);
  }
}




.card--roomy { padding: var(--space-5); }

.location-lane__intro { margin: 0 0 var(--space-3); }
.location-lane {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.location-lane--coop {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.location-lane__item {
  margin: 0;
  min-width: 0;
}
.location-lane__item a,
.location-lane__static {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  min-height: 100%;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--scene-line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}
.location-lane--coop .location-lane__item a,
.location-lane--coop .location-lane__static {
  border-radius: 0;
  background:
    var(--wood-plank);
  box-shadow:
    inset 0 0 0 1px #2a170c,
    inset 0 1px 0 color-mix(in srgb, #c9a227 28%, transparent),
    0 6px 14px rgb(0 0 0 / 35%);
}
.location-lane__item a:hover {
  box-shadow: 0 0 0 1px var(--gold);
}
.location-lane--coop .location-lane__item a:hover {
  box-shadow:
    inset 0 0 0 1px #7a5230,
    inset 0 1px 0 color-mix(in srgb, #c9a227 40%, transparent),
    0 6px 14px rgb(0 0 0 / 35%);
  filter: brightness(1.06);
}
.location-lane__item--locked a,
.location-lane__item--locked .location-lane__static {
  opacity: 0.92;
}
.location-lane__item--open a,
.location-lane__item--open .location-lane__static {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 55%, var(--scene-line));
}
.location-lane--coop .location-lane__item--open a,
.location-lane--coop .location-lane__item--open .location-lane__static {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #6fbf8a 45%, #2a170c),
    inset 0 1px 0 color-mix(in srgb, #c9a227 28%, transparent),
    0 6px 14px rgb(0 0 0 / 35%);
}
.location-lane__item--current a {
  box-shadow: 0 0 0 1px var(--gold);
}
.location-lane__mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gold);
}
.location-lane__copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}
.location-lane--coop .location-lane__copy strong {
  color: #f0e2c4;
  font-size: 1.05rem;
  line-height: 1.25;
  text-shadow: 0 1px 0 #1a1008;
}
.location-lane__copy strong {
  color: var(--ink-strong);
  font-size: var(--text-sm);
}
.location-lane--coop .location-lane__copy em {
  color: color-mix(in srgb, #d4c9ba 78%, #8a7a62);
  font-size: 0.82rem;
  line-height: 1.4;
}
.location-lane__copy em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-xs);
  line-height: 1.35;
}
.location-lane__state {
  display: none;
}
.location-page {
  display: grid;
  gap: var(--space-5);
  max-width: 48rem;
}
.location-page__status { margin-bottom: calc(var(--space-2) * -1); }
.location-panel .lead { margin-top: 0; }
.location-panel.pixel-frame {
  border: 0;
  border-radius: 0;
  /* Set: card (frame-set registry). */
  --frame-pad: var(--space-2);
  background:
    var(--wood-plank);
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  color: #d4c9ba;
}
.location-panel.pixel-frame h2 {
  color: #f0e2c4;
  text-shadow: 0 1px 0 #1a1008;
}
.location-panel.pixel-frame .meta,
.location-panel.pixel-frame .lead {
  color: color-mix(in srgb, #d4c9ba 85%, #8a7a62);
}
@media (max-width: 56rem) {
  .location-lane--coop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .location-lane--coop { grid-template-columns: 1fr; }
}


/* Lock page scroll while a dialog.modal OR Settings board is open. */
html.modal-open,
body.modal-open,
html:has(.profile-drop.open),
html:has(.profile-drop.open) body {
  overflow: hidden !important;
  overscroll-behavior: none;
  /* Drop the page scrollbar so the backdrop does not shift or scroll. */
  scrollbar-width: none;
}
html.modal-open::-webkit-scrollbar,
body.modal-open::-webkit-scrollbar,
html:has(.profile-drop.open)::-webkit-scrollbar,
html:has(.profile-drop.open) body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Transparent-track scrollbars, thumb uses theme line color */
.themed-scroll,
.modal__body {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.themed-scroll::-webkit-scrollbar,
.modal__body::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}
.themed-scroll::-webkit-scrollbar-track,
.modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.themed-scroll::-webkit-scrollbar-thumb,
.modal__body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.themed-scroll::-webkit-scrollbar-thumb:hover,
.modal__body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 55%, var(--line));
  border: 2px solid transparent;
  background-clip: padding-box;
}
.themed-scroll::-webkit-scrollbar-corner,
.modal__body::-webkit-scrollbar-corner {
  background: transparent;
}

dialog.modal {
  /* Grow with viewport · prefer filling free space before scrolling the body. */
  width: min(52rem, calc(100% - 1rem));
  max-width: calc(100% - 1rem);
  height: fit-content;
  max-height: min(92dvh, 100dvh - 1.5rem);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  overflow: visible;
  /* Center on the viewport. inset:0 + fit-content pinned short/square windows to a corner. */
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  translate: -50% -50%;
  /* Above roster wood rim / sign even when dialogs are nested in the house tree. */
  z-index: var(--z-modal, 400);
}
dialog.modal:not([open]) {
  display: none !important;
}
dialog.modal::backdrop {
  /* Solid scrim · light blur on Medium/High (Low stays flat for FPS). */
  background: rgb(2 7 18 / 78%);
}
html[data-quality="medium"] dialog.modal::backdrop,
html[data-quality="high"] dialog.modal::backdrop {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
html[data-quality="low"] dialog.modal::backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Use most of the dialog’s vertical budget before internal scroll. */
  max-height: min(94vh, 100dvh - 1.25rem, 52rem);
  padding: var(--space-5);
  overflow: hidden;
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, #2a1c12 35%, var(--panel-strong)), var(--panel-strong));
  border: 11px solid #4a3220;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffdca0 14%, transparent),
    inset 0 0 0 1px rgb(0 0 0 / 35%),
    0 0 0 1px #150b05,
    0 18px 48px rgb(0 0 0 / 55%);
}
/*
 * Shared v2 wood rim · content sits FLUSH against the painted beams.
 * The panel pads only the rim width; the wood head and body fill the rest.
 * Do not add per-modal "padding: 14px / head margin: 0" copies: this is the default.
 */
.modal__panel.pixel-frame {
  border: 0;
  border-image: none;
  border-radius: 0;
  /* Set: flush (padding comes from the frame-set registry in pixel-frame.css.ts). */
  gap: 0;
  overflow: visible;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  flex: 0 0 auto;
}
.modal__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
/* Demo popup banner: night plate, title on the bottom edge, tools at the top right. No wood slat. */
.modal-wood-head {
  position: relative;
  z-index: 3;
  display: block;
  flex: 0 0 auto;
  height: 120px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/forecast.webp") center / cover no-repeat;
  border-bottom: 0;
  box-shadow: none;
}
.modal-wood-head.pixel-frame {
  border: 0;
  border-image: none;
  border-radius: 0;
  max-height: none;
  overflow: hidden;
  box-shadow: none;
  gap: 0;
  margin: 0;
}
.modal-wood-head.pixel-frame--bar::after {
  padding: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgb(6 4 2 / 88%) 0%, rgb(6 4 2 / 35%) 48%, rgb(6 4 2 / 5%) 100%),
    linear-gradient(90deg, rgb(6 4 2 / 45%), transparent 55%);
  -webkit-mask: none;
  mask: none;
  box-shadow: none;
}
.modal-wood-head__title-row {
  position: absolute;
  left: 0;
  right: 4.75rem;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 1.1rem calc(var(--frame-rim) + 0.45rem);
}
.modal-wood-head h2 {
  position: absolute;
  left: 0;
  right: 4.75rem;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 0.6rem 1.1rem calc(var(--frame-rim) + 0.45rem);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f6e6c0;
  text-shadow: 0 2px 0 rgb(0 0 0 / 85%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.modal-wood-head__title-row h2 {
  position: static;
  right: auto;
  padding: 0;
}
/* Global head splitter · same wood beam as the Daily Check-in underside. */
.modal-head-split {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
}
.modal-wood-head form,
.modal-wood-head__tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.checkin-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.checkin-admin-reset {
  margin: 0;
  flex: 0 0 auto;
}
dialog.modal.modal--checkin .checkin-admin-reset .admin-checkin__btn.btn {
  /* Compact Timber & Iron · same family as global .btn. */
  --btn-pad-x: 0.7rem;
  --btn-depth-rest: 5px;
  --control-y: 0.18rem;
  min-height: 1.85rem;
  margin: 0;
  padding: var(--control-y) var(--btn-pad-x);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
dialog.modal.modal--checkin .checkin-admin-reset .admin-checkin__btn.btn .icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}


/* Prizes booth · same width family as Claimed / earn pops (4 cards on desk). */
dialog.modal.modal--chips-shop.modal--earn {
  width: min(var(--earn-pop-w-wide, calc(50rem + 50px)), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w-wide, calc(50rem + 50px)), calc(var(--content-w) - 3rem));
}
dialog.modal.modal--chips-shop .earn-stage-panel {
  max-height: min(92vh, 48rem);
}
/* Plain title over the scene. Height is fixed so the picture and the word both read. */
dialog.modal.modal--chips-shop .earn-stage__head {
  min-height: 148px;
}
dialog.modal.modal--chips-shop .earn-stage__plaque-wrap {
  padding-top: 0;
  margin-top: 0;
}
dialog.modal.modal--chips-shop .earn-stage__plaque-wrap .carved-plaque__chain,
dialog.modal.modal--chips-shop .earn-stage__sign .carved-plaque__sprout {
  display: none;
}
dialog.modal.modal--chips-shop .earn-stage__sign .title-sign {
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: none;
  box-shadow: none;
  display: grid;
  place-items: center;
}
dialog.modal.modal--chips-shop .earn-stage__sign .title-sign::before,
dialog.modal.modal--chips-shop .earn-stage__sign .title-sign::after {
  content: none;
  display: none;
}
dialog.modal.modal--chips-shop .earn-stage__sign .title-sign h2 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 40px;
  color: #f6e6b8;
  text-shadow: 0 2px 0 #150b05, 0 0 12px rgb(0 0 0 / 55%);
}
.chips-shop__bal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0e4c8;
  background: rgb(8 12 20 / 55%);
  border: 1px solid color-mix(in srgb, #6a4426 55%, transparent);
  border-radius: 0.35rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}
.chips-shop__bal .icon,
.chips-shop__bal svg {
  width: 1.1rem;
  height: 1.1rem;
}
dialog.modal.modal--chips-shop .earn-stage__body {
  /* Keep the four buy cards inside the vine gutters. */
  overflow-x: hidden;
  min-width: 0;
}
.chips-shop__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 52rem) {
  .chips-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 28rem) {
  .chips-shop__grid {
    grid-template-columns: 1fr;
  }
}
/* Clean slate cards · no nested pixel-frame. */
.chips-shop__card {
  display: grid;
  gap: 0.4rem;
  justify-items: stretch;
  align-content: start;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0.85rem 0.7rem 0.95rem;
  color: #f0e4c8;
  background: rgb(8 12 20 / 55%);
  border: 1px solid color-mix(in srgb, #6a4426 60%, transparent);
  border-radius: 0.45rem;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 2px 6px rgb(0 0 0 / 35%);
}
.chips-shop__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--earn-cream, #f0e2c4);
  text-shadow: 0 1px 0 #000;
  text-align: center;
  overflow-wrap: anywhere;
}
.chips-shop__card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: color-mix(in srgb, #f0e4c8 78%, transparent);
  min-height: 2.6em;
  text-align: center;
  overflow-wrap: anywhere;
}
.chips-shop__icon {
  width: 3rem;
  height: 3rem;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / 55%));
}
.chips-shop__price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  color: var(--earn-straw, #e8d090);
}
.chips-shop__price .icon,
.chips-shop__price svg {
  width: 1rem;
  height: 1rem;
}
.chips-shop__card form {
  margin: 0.15rem 0 0;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.chips-shop__action.btn {
  /* Fill the card · never wider than the parent column. */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.25rem;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.chips-shop__card--soon {
  opacity: 0.78;
}
.chips-shop__card--soon .chips-shop__action.btn {
  /* Keep Coming soon the same footprint as Buy (no taller plate). */
  min-height: 2.25rem;
  padding-block: var(--control-y, 0.28rem);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}



 * Daily Check-in · fixed shop-style head band (sign + tools stay put).
 * Body scrolls under the split beam.
 */
/*
 * Content-fit family · grow into free viewport width before scrolling.
 * Check-in opts in; other sparse boards can add modal--fit later.
 */
/*
 * Board family · Check-in / Achievements / Objectives share one locked shell
 * (sized to the largest of the three so opening any feels the same).
 */
dialog.modal.modal--fit,
dialog.modal.modal--checkin {
  width: min(72rem, calc(100vw - 1.25rem));
  min-width: min(36rem, calc(100vw - 1.25rem));
  max-width: min(72rem, calc(100vw - 1.25rem));
  max-height: min(96vh, 58rem);
  box-sizing: border-box;
}
/* Check-in · wider than the shared 72rem board so streak + wheel fit on desktop. */
dialog.modal.modal--checkin {
  width: min(100rem, calc(100vw - 1.25rem));
  max-width: min(100rem, calc(100vw - 1.25rem));
  max-height: min(94dvh, 64rem);
}
dialog.modal.modal--checkin .modal__panel.checkin-panel,
dialog.modal.modal--achievements .modal__panel,
dialog.modal.modal--achievements .achievements-panel,
dialog.modal.modal--objectives .objectives-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(96vh, 58rem);
  width: 100%;
  max-width: none;
}
dialog.modal.modal--checkin .modal__panel.checkin-panel {
  position: relative;
  max-height: min(94dvh, 64rem);
  /* No top pad · banner sits flush under the wood rim. */
  padding-top: 0;
  /* Head owns the sign · do not reserve Set-1 hanging clear. */
  --set1-sign-clear: 0rem;
}
.checkin-head-band {
  position: relative;
  /* Under side vines / wood rim so borders paint over the banner. */
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  /* Full panel width · no side bleed that clips the right edge. */
  margin-inline: 0;
  width: 100%;
  min-height: 6.35rem;
  /* Flush to top of panel · wood rim overlays the band edge. */
  padding-top: 0;
  background:
    linear-gradient(180deg, rgb(18 22 36 / 35%), rgb(12 14 22 / 72%)),
    url("/assets/ui/checkin-head-band.jpg") center / cover no-repeat,
    var(--panel);
  box-sizing: border-box;
  overflow: visible;
}
.checkin-head-band__row {
  display: grid;
  grid-template-columns:
    minmax(5.5rem, auto)
    minmax(0, 1fr)
    auto;
  align-items: start;
  gap: 0.45rem 0.65rem;
  /* Clear top wood rim · tools / rope hooks / X sit below the lip. */
  padding: calc(var(--frame-rim) + 0.35rem) 0.85rem 0.7rem;
  min-height: 5rem;
  box-sizing: border-box;
}
.checkin-head__admin {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.28rem;
  justify-content: flex-start;
  margin-left: 0.15rem;
  margin-top: 0;
}
.checkin-head__admin--empty {
  min-width: 0;
  margin-left: 0;
}
.checkin-head__sign {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.checkin-head__plaque-wrap {
  /* Rope hang under wood rim · hooks clear the top lip. */
  position: relative;
  z-index: 2;
  padding-top: 0.72rem;
  transform: none;
}
.checkin-head__plaque-wrap .carved-plaque__chain {
  z-index: 0;
  height: 1.7rem;
}
.checkin-head__plaque.carved-plaque {
  position: relative;
  z-index: 2;
  margin: 0;
}
.checkin-head__close {
  position: relative;
  z-index: 30;
  margin: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
  isolation: isolate;
}
.checkin-head__close .modal__close {
  position: relative;
  z-index: 31;
  margin: 0;
  pointer-events: auto;
}
.checkin-head__close .modal__close-x {
  pointer-events: none;
}
/* Side vines / wood rim paint over the treasure banner. */
dialog.modal.modal--checkin .modal__panel.pixel-frame > .pixel-frame__fx,
dialog.modal.modal--checkin .modal__panel.pixel-frame::after {
  z-index: 12;
  pointer-events: none;
}
.checkin-head-band {
  --checkin-split: 14px;
}
.checkin-head-band__split {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: var(--checkin-split);
  margin: 0;
  pointer-events: none;
}
dialog.modal.modal--checkin .modal__body.checkin-board {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  /* Prefer grow · only scroll when content truly exceeds the panel. */
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 0.85rem;
  /* Clear the bottom wood rim so streak tiers are not clipped. */
  padding-bottom: calc(var(--frame-rim) + 1.35rem);
  background: var(--slate-window);
}
@media (max-width: 56rem) {
  .checkin-head-band__row {
    grid-template-columns:
      minmax(0, auto)
      minmax(0, 1fr)
      auto;
    gap: 0.35rem 0.4rem;
    padding: 0.55rem 0.65rem 0.45rem;
  }
  .checkin-head-band__row {
    padding-top: calc(var(--frame-rim) + 0.28rem);
  }
  .checkin-head__plaque-wrap {
    padding-top: 0.4rem;
  }
  .checkin-head__admin {
    margin-left: 0;
  }
}
@media (max-width: 45rem) {
  .checkin-head-band__row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "sign admin close";
    align-items: center;
    gap: 0.2rem 0.3rem;
  }
  .checkin-head__sign { grid-area: sign; justify-self: start; }
  .checkin-head__admin {
    grid-area: admin;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.16rem;
    margin-left: 0;
  }
  .checkin-head__close { grid-area: close; justify-self: end; align-self: start; }
  .checkin-head__plaque-wrap { padding-top: 0.15rem; }
}
.modal-wood-head .modal__close,
.modal-wood-head form {
  margin: 0;
  flex: 0 0 auto;
}

/* Start uses .btn--go (green). Unlock uses .btn--unlock (richer blue). */

.checkin-board__daily h3,
.checkin-board__earn h3,
.checkin-board__streak h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.checkin-board__status {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 var(--space-3);
  justify-items: start;
}
.checkin-board__status-title {
  margin: 0;
}
.checkin-board__streak-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, 9.25rem));
  gap: 0.45rem;
  width: 100%;
  max-width: 20rem;
}
.checkin-board__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  text-align: left;
}
/* Beat prize-odds layout when Streak/Best reuse that class. */
.checkin-board__stat.coop-wheel__odd {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 0.35rem;
}
.checkin-board__stat-label {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.checkin-board__stat .checkin-board__stat-label {
  width: auto;
  font-size: 0.74rem;
  color: #fff;
  text-shadow: 0 1px 0 #0a0614;
  text-align: left;
}
.checkin-board__stat--best .checkin-board__stat-label,
.checkin-board__stat--streak .checkin-board__stat-label {
  color: #fff;
}
.checkin-board__stat-value {
  display: block;
  width: auto;
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.1;
  text-align: right;
}
.checkin-board__stat .checkin-board__stat-value {
  color: #fff;
  text-shadow: 0 1px 0 #0a0614;
}
.checkin-board__stat--best .checkin-board__stat-value,
.checkin-board__stat--streak .checkin-board__stat-value {
  color: #fff;
  text-shadow: 0 1px 0 #0a0614;
}
.checkin-board__actions {
  margin-top: var(--space-2);
}
.checkin-board__rule {
  margin: var(--space-3) 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}
.streak-plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}
.streak-plan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.55rem 0.55rem 0.5rem;
  border: 0;
  border-radius: 0;
  /* Pointed corners on the claim card (chamfer, not a square plate). */
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  background:
    linear-gradient(180deg, rgb(42 28 16 / 55%), rgb(18 12 8 / 72%)),
    var(--wood-plank);
  /* Locked / unclaimed tiers · black rim (unlocked/active keep gold). */
  box-shadow:
    inset 0 0 0 2px #0a0806,
    inset 0 0 0 4px #1a1008,
    0 2px 0 #140c08;
}
.streak-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 0.4rem 0.4rem, #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.4rem) 0.4rem, #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 0.4rem calc(100% - 0.4rem), #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.4rem) calc(100% - 0.4rem), #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem);
}
.streak-plan > * {
  position: relative;
  z-index: 1;
}
.streak-plan__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.streak-plan__gem {
  width: 1.45rem;
  height: 1.45rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.streak-plan__head strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--ink-strong);
}
.streak-plan__prices {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.streak-plan__prices li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-strong);
}
.streak-plan__prices .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.streak-plan__prices small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.streak-plan__once {
  /* Locked footer band · dashed rule at the same height on every tier card. */
  margin-top: auto;
  flex: 0 0 auto;
  min-height: 3.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed color-mix(in srgb, var(--gold) 35%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.3rem;
  text-align: center;
  box-sizing: border-box;
}
.streak-plan__once-amt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-strong);
}
.streak-plan__once-amt--empty {
  visibility: hidden;
}
.streak-plan__once-amt .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.streak-plan__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  width: 100%;
}
.streak-plan__action--spacer {
  visibility: hidden;
  pointer-events: none;
}
.streak-plan__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.streak-plan__status .icon {
  width: 0.85rem;
  height: 0.85rem;
}
.streak-plan__status--ok {
  color: var(--ok);
}
.streak-plan__once form {
  margin: 0;
  flex: 0 0 auto;
}
.streak-plan__once .btn {
  margin: 0;
  min-height: 0;
  padding: 0;
  font-size: 0.78rem;
}
.streak-plan__once .btn .btn__face {
  padding: 0.1rem 0.65rem;
  min-height: 0;
}
.streak-plan__once .btn.secondary:disabled {
  cursor: default;
  min-height: 0;
  padding: 0;
  font-size: 0.74rem;
}
.streak-plan__once .btn.secondary:disabled .btn__face {
  padding: 0.08rem 0.6rem;
}
.streak-plan--unlocked {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--gold) 70%, #e0b050),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
.streak-plan--active {
  color: var(--ink-strong);
  box-shadow:
    inset 0 0 0 3px var(--gold),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
@media (max-width: 50rem) {
  .streak-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .streak-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.streak-earn {
  display: grid;
  gap: var(--space-2);
}
.streak-earn__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}
.streak-earn__list--combined {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.streak-earn__list--combined .streak-earn__row {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.55rem 0.4rem 0.65rem;
  font-size: 0.78rem;
}
.streak-earn__once {
  min-height: 2rem;
  display: grid;
  place-items: center;
}
/* Check-in wood cards · header plank bed + corner screws (earn / streak / prize odds). */
.streak-earn__row,
.streak-board__row,
.coop-wheel__odd,
.checkin-board__stat {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgb(12 8 4 / 32%), rgb(8 5 2 / 48%)),
    var(--wood-plank);
  /* Default: thicker light-red rim (prize-odds base). */
  box-shadow:
    inset 0 0 0 2px #e89898,
    inset 0 0 0 4px #1a1008,
    0 2px 0 #140c08;
}
/* Streak / Best · rectangular crystal gems (single row · not big squares). */
.checkin-board__stat,
.checkin-board__stat.coop-wheel__odd {
  --streak-orb-rim: #4ec86a;
  --streak-orb-mid: rgba(52, 160, 70, 0.5);
  --streak-orb-lo: rgba(16, 70, 28, 0.88);
  --streak-orb-glow: rgba(80, 200, 110, 0.5);
  --streak-orb-core: rgba(8, 28, 14, 0.4);
  --streak-gem-r: 0.22rem;
  position: relative;
  isolation: isolate;
  width: 7.35rem;
  height: 2.85rem;
  min-width: 7.35rem;
  min-height: 2.85rem;
  padding: 0.24rem 0.62rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border: 2px solid var(--streak-orb-rim);
  border-radius: var(--streak-gem-r);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 12%, transparent 40%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.3) 0 16%, transparent 46%),
    radial-gradient(ellipse 70% 80% at 18% 30%, var(--streak-orb-mid) 0, transparent 65%),
    linear-gradient(180deg, var(--streak-orb-mid), var(--streak-orb-lo)),
    var(--streak-orb-core);
  box-shadow:
    0 0 4px 1px var(--streak-orb-rim),
    0 0 10px 1px var(--streak-orb-glow),
    inset 0 0 0 1px color-mix(in srgb, var(--streak-orb-rim) 65%, #fff),
    inset 0 -6px 10px var(--streak-orb-glow),
    inset 0 3px 6px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  clip-path: polygon(
    4% 0%,
    96% 0%,
    100% 12%,
    100% 88%,
    96% 100%,
    4% 100%,
    0% 88%,
    0% 12%
  );
}
/* Streak · green plate · Best · gold plate (not green bleed). */
.checkin-board__stat--streak {
  --streak-orb-rim: #4ec86a;
  --streak-orb-mid: rgba(52, 160, 70, 0.52);
  --streak-orb-lo: rgba(16, 70, 28, 0.9);
  --streak-orb-glow: rgba(80, 200, 110, 0.55);
  --streak-orb-core: rgba(8, 28, 14, 0.42);
}
/* Best · purple plate (not gold · avoids clash with Daily Check-in gold CTA). */
.checkin-board__stat--best,
.checkin-board__stat--best.coop-wheel__odd {
  --streak-orb-rim: #b07ae8;
  --streak-orb-mid: rgba(160, 90, 220, 0.55);
  --streak-orb-lo: rgba(55, 22, 90, 0.92);
  --streak-orb-glow: rgba(170, 100, 230, 0.55);
  --streak-orb-core: rgba(24, 10, 40, 0.48);
  border-color: #b07ae8;
}
/* Active XP boost · violet accent (wheel boost prize). */
.checkin-board__stat--boost {
  --streak-orb-rim: #c090e8;
  --streak-orb-mid: rgba(140, 80, 180, 0.5);
  --streak-orb-lo: rgba(60, 25, 90, 0.88);
  --streak-orb-glow: rgba(160, 90, 220, 0.55);
  --streak-orb-core: rgba(20, 8, 36, 0.4);
}
.checkin-board__stat--boost .checkin-board__stat-sub {
  display: block;
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.9;
  margin-top: 0.1rem;
}
.checkin-board__stat::before,
.checkin-board__stat.coop-wheel__odd::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 8%;
  width: 46%;
  height: 22%;
  border-radius: 0.12rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.02));
  transform: skewX(-12deg);
  filter: blur(0.35px);
  z-index: 0;
  pointer-events: none;
}
/* Wood rivets on streak-earn / streak board. Prize odds corners stay bare. */
.streak-earn__row::after,
.streak-board__row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 0.4rem 0.4rem, #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.4rem) 0.4rem, #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 0.4rem calc(100% - 0.4rem), #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.4rem) calc(100% - 0.4rem), #cdb47c 0 0.12rem, #1a0f08 0.12rem 0.22rem, transparent 0.24rem);
}
.checkin-board__stat::after {
  content: none;
  display: none;
}
.streak-earn__row {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 0.55rem 0.4rem;
  font-size: var(--text-xs);
  color: var(--muted);
  min-width: 0;
}
.streak-earn__row > *,
.streak-board__row > *,
.coop-wheel__odd > *,
.checkin-board__stat > * {
  position: relative;
  z-index: 1;
}
.streak-earn__icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.streak-earn__row strong {
  color: var(--ink-strong);
  font-size: var(--text-sm);
}
.streak-earn__row span {
  white-space: nowrap;
}
.streak-earn__row--unlocked {
  border-color: color-mix(in srgb, var(--gold) 45%, #2a170c);
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--gold) 70%, #e0b050),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
.streak-earn__row--active {
  border-color: var(--gold);
  color: var(--ink-strong);
  box-shadow:
    inset 0 0 0 3px var(--gold),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
.streak-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.streak-board__row {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.65rem 0.45rem;
  min-width: 0;
}
.streak-board__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.streak-board__row strong {
  font-size: var(--text-sm);
  color: var(--ink-strong);
}
.streak-board__row p {
  margin: 0;
  font-size: var(--text-xs);
}
.streak-board__row--locked {
  opacity: 0.68;
}
.streak-board__row--ready {
  border-color: color-mix(in srgb, var(--gold) 50%, #2a170c);
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--gold) 70%, #e0b050),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
.streak-board__row--claimed {
  border-color: color-mix(in srgb, var(--ok) 45%, #2a170c);
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--ok) 55%, #5a3c24),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
@media (max-width: 40rem) {
  .streak-earn__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .streak-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-board__tags { flex-wrap: wrap; }
}

.activity-card--claim {
  border-color: var(--line-alt, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-alt, var(--line)) 22%, transparent);
}


dialog.modal.modal--wide {
  width: min(56rem, calc(100vw - 2rem));
  max-height: min(92vh, 48rem);
}
dialog.modal.modal--shop-sell {
  width: min(calc(var(--content-w) - 1.5rem), calc(100vw - 1.5rem));
  max-height: min(94vh, 54rem);
}
dialog.modal.modal--shop-buy {
  width: min(28rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(92vh, 36rem);
}
@media (max-width: 40rem) {
  dialog.modal.modal--shop-buy,
  dialog.modal.modal--shop-sell {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
  }
  dialog.modal.modal--shop-sell .modal__body {
    padding-inline: var(--space-2);
  }
}


/* v3 check-in chrome · dusk band, glass board, streak road. Wood rim stays .pixel-frame. */
dialog.modal.modal--checkin .checkin-head-band {
  height: 11.8rem;
  min-height: 11.8rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1f48 0%, #2c2a5c 38%, #5a3e6a 70%, #a8645a 100%);
}
dialog.modal.modal--checkin .checkin-head-band__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
dialog.modal.modal--checkin .checkin-head-band__lights {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--frame-rim);
  height: 54px;
  z-index: 2;
  pointer-events: none;
}
dialog.modal.modal--checkin .checkin-head-band__lights svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
dialog.modal.modal--checkin .checkin-head-band__lights .bulb {
  position: absolute;
  width: 7px;
  height: 10px;
  margin: -1px 0 0 -3.5px;
  border-radius: 45% 45% 55% 55%;
  background: var(--c, #ffd36a);
  box-shadow: 0 0 6px 1px var(--c, #ffd36a);
}
dialog.modal.modal--checkin .checkin-head-band__row {
  position: relative;
  z-index: 4;
  height: 100%;
  /* Title flush left · close. Tools sit on the band, not in this row. */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: calc(var(--frame-rim) + 0.35rem) 1.1rem 0;
}
dialog.modal.modal--checkin .checkin-head__sign {
  grid-column: 1;
  justify-self: start;
}
dialog.modal.modal--checkin .checkin-head__close {
  grid-column: 2;
  justify-self: end;
}
dialog.modal.modal--checkin .checkin-head__tools {
  position: absolute;
  right: 0.85rem;
  bottom: calc(var(--checkin-split) + 0.28rem);
  z-index: 6;
}
dialog.modal.modal--checkin .checkin-head__gear {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0.4rem;
  background: rgb(8 10 22 / 62%);
  color: #f6e7c1;
  cursor: pointer;
}
dialog.modal.modal--checkin .checkin-head__gear .icon { width: 1.05rem; height: 1.05rem; }
dialog.modal.modal--checkin .checkin-head__gear[aria-expanded="true"] {
  background: rgb(40 48 82 / 90%);
  color: #fff;
}
dialog.modal.modal--checkin .checkin-head__admin {
  position: absolute;
  right: calc(100% + 0.35rem);
  bottom: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: min(18rem, 70vw);
  margin: 0;
  gap: 0.12rem;
  padding: 0.2rem;
  border-radius: 0.5rem;
  background: rgb(8 10 22 / 92%);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 45%);
}
dialog.modal.modal--checkin .checkin-head__admin[hidden] { display: none; }
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn.btn {
  --btn-depth-idle: 0px;
  --btn-depth-rest: 0px;
  --btn-pad-x: 0.32rem;
  width: 100%;
  max-width: none;
  min-height: 1.45rem;
  height: auto;
  margin: 0;
  padding: 0.06rem 0.32rem;
  gap: 0.12rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn.btn::before {
  content: none;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn.btn .btn__face {
  background: transparent;
  background-image: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
/* Three sets · icon + label share one tone each; tones differ across buttons. */
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn--snooze.btn {
  color: #c9a6ff;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn--reset.btn {
  color: #7ed6a0;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn--skip.btn {
  color: #ff9a8a;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn.btn .icon {
  color: inherit;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn.btn:hover {
  background: rgb(255 255 255 / 10%);
  filter: brightness(1.12);
  --btn-depth: 0px;
}
dialog.modal.modal--checkin .checkin-head__admin .admin-checkin__btn--skip.btn:hover {
  background: rgb(240 88 88 / 22%);
}
dialog.modal.modal--checkin .checkin-head__plaque.carved-plaque {
  display: block;
  padding: 0.75rem 2.35rem 0.7rem;
  border-radius: 14px 14px 10px 10px / 18px 18px 10px 10px;
  border: 1.5px solid #1e1108;
  background:
    radial-gradient(ellipse 60% 70% at 50% 35%, rgb(255 210 140 / 10%), transparent 70%),
    repeating-linear-gradient(178deg, rgb(255 220 170 / 4%) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #6e4624 0%, #573519 50%, #43280f 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 225 170 / 35%),
    inset 0 -3px 0 rgb(0 0 0 / 25%),
    0 14px 24px rgb(0 0 0 / 50%),
    0 0 40px rgb(255 190 110 / 16%);
}
dialog.modal.modal--checkin .checkin-head__plaque.carved-plaque::before {
  content: "";
  display: block;
  position: absolute;
  inset: 6px;
  border-radius: 9px 9px 6px 6px / 13px 13px 6px 6px;
  pointer-events: none;
  border: 1px solid rgb(0 0 0 / 35%);
  box-shadow: 0 1px 0 rgb(255 220 160 / 14%);
}
dialog.modal.modal--checkin .checkin-head__plaque-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}
dialog.modal.modal--checkin .checkin-head__plaque h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6e6c0;
  text-shadow: 0 2px 0 rgb(0 0 0 / 75%);
}
dialog.modal.modal--checkin .checkin-head__plaque.carved-plaque {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
dialog.modal.modal--checkin .checkin-head__plaque.carved-plaque::before,
dialog.modal.modal--checkin .checkin-head__plaque-wrap .carved-plaque__chain,
dialog.modal.modal--checkin .checkin-head__plaque .carved-plaque__sprout,
dialog.modal.modal--checkin .checkin-head__plaque .carved-plaque__nail,
dialog.modal.modal--checkin .checkin-head__plaque .carved-plaque__peak {
  display: none;
  content: none;
}
dialog.modal.modal--checkin .carved-plaque__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(251 233 192 / 62%);
}
dialog.modal.modal--checkin .carved-plaque__kicker::before,
dialog.modal.modal--checkin .carved-plaque__kicker::after,
dialog.modal.modal--checkin .plaque-gem,
dialog.modal.modal--checkin .panel__title-main::before,
dialog.modal.modal--checkin .panel__title-main::after,
dialog.modal.modal--checkin .coop-wheel__odds-title::before,
dialog.modal.modal--checkin .coop-wheel__odds-title::after {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  background: linear-gradient(135deg, #fff6d0 0%, #e0b44a 46%, #8a5a16 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px #3a2410, 0 1px 0 rgb(255 236 190 / 45%);
  opacity: 1;
}
dialog.modal.modal--checkin .plaque-gem { display: inline-block; }
dialog.modal.modal--checkin .panel__title-main,
dialog.modal.modal--checkin .coop-wheel__odds-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
dialog.modal.modal--checkin .carved-plaque__peak {
  position: absolute;
  left: 50%;
  top: -1.05rem;
  transform: translateX(-50%);
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 1.2rem solid transparent;
  border-right: 1.2rem solid transparent;
  border-bottom: 1rem solid #6e4624;
}
dialog.modal.modal--checkin .carved-plaque__nail {
  position: absolute;
  top: 9px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #c9a24a 50%, #6a4810);
}
dialog.modal.modal--checkin .carved-plaque__nail--l { left: 2.55rem; }
dialog.modal.modal--checkin .carved-plaque__nail--r { right: 2.55rem; }
dialog.modal.modal--checkin .checkin-head__gauge {
  position: absolute;
  left: 50%;
  bottom: calc(var(--checkin-split) + 0.45rem);
  z-index: 4;
  width: min(28rem, calc(100% - 6.5rem));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(8 10 22 / 58%);
  border: 1px solid rgb(255 255 255 / 10%);
}
dialog.modal.modal--checkin .head-gauge__side {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex: none;
  color: #fff;
}
dialog.modal.modal--checkin .head-gauge__side .lbl {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 62%);
}
dialog.modal.modal--checkin .head-gauge__side strong {
  font-size: 0.95rem;
  font-weight: 800;
}
dialog.modal.modal--checkin .head-gauge__side .icon {
  width: 1rem;
  height: 1rem;
}
dialog.modal.modal--checkin .head-gauge__track {
  position: relative;
  flex: 1 1 auto;
  height: 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}
dialog.modal.modal--checkin .head-gauge__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b3cc0, #c58cff);
}
dialog.modal.modal--checkin .head-gauge__best {
  position: absolute;
  top: -0.3rem;
  bottom: -0.3rem;
  width: 3px;
  border-radius: 2px;
  background: #4a9cf0;
}
dialog.modal.modal--checkin .modal__panel.pixel-frame > .modal__body.checkin-board,
dialog.modal.modal--checkin .modal__body.checkin-board {
  padding: 1rem 0.7rem 1.45rem;
  /* Dotted slate fills the whole body under the wood head (not only the streak band). */
  background: var(--slate-window) !important;
}
dialog.modal.modal--checkin .checkin-board__earn,
dialog.modal.modal--checkin .coop-wheel,
dialog.modal.modal--checkin .coop-wheel__cols,
dialog.modal.modal--checkin .coop-wheel__col,
dialog.modal.modal--checkin .coop-wheel__stage {
  background: transparent;
}
dialog.modal.modal--checkin .coop-wheel__cols {
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.75fr);
  gap: 1rem 1.6rem;
  align-items: center;
}
dialog.modal.modal--checkin .coop-wheel__col--odds {
  display: grid;
  gap: 0.55rem;
}
dialog.modal.modal--checkin .coop-wheel__stage {
  width: min(100%, 36rem);
}
dialog.modal.modal--checkin .panel {
  padding: 1rem 1.05rem;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(82 139 171 / 16%), transparent 58%),
    linear-gradient(180deg, #1a2740, #10192c);
  border: 1px solid #29435c;
  box-shadow: inset 0 1px 0 rgb(218 241 250 / 10%), inset 0 8px 16px rgb(0 0 0 / 35%);
}
/* Odds name/pct sizes live with the prize-odds grid rules below. */
dialog.modal.modal--checkin .panel {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
dialog.modal.modal--checkin .coop-wheel__streak-panel.panel {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
dialog.modal.modal--checkin .panel__title {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #ecd28e);
}
dialog.modal.modal--checkin .coop-wheel__streak-panel .panel__title {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
dialog.modal.modal--checkin .panel__title small {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted, #8e9cb2);
  font-size: 0.74rem;
}
dialog.modal.modal--checkin .week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.08rem 0.2rem;
}
dialog.modal.modal--checkin .week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted, #8e9cb2);
}
dialog.modal.modal--checkin .week__dot {
  width: 100%;
  max-width: 1.65rem;
  aspect-ratio: 1;
  border-radius: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
}
dialog.modal.modal--checkin .week__gem {
  width: 1.45rem;
  height: 1.45rem;
  opacity: 0.22;
  filter: grayscale(1);
  image-rendering: pixelated;
}
dialog.modal.modal--checkin .week__day--done .week__gem {
  opacity: 1;
  filter: none;
}
dialog.modal.modal--checkin .week__day--today .week__gem {
  opacity: 0.9;
  filter: none;
}
/* Today stays the brighter gem. No square ring around the diamond. */
dialog.modal.modal--checkin .week__day--today .week__dot {
  box-shadow: none;
}
dialog.modal.modal--checkin .week__dot .icon { width: 0.85rem; height: 0.85rem; }
dialog.modal.modal--checkin .next-tier {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 7%);
}
dialog.modal.modal--checkin .next-tier__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted, #8e9cb2);
  margin-bottom: 0.4rem;
}
dialog.modal.modal--checkin .bar {
  height: 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 7%);
  overflow: hidden;
}
dialog.modal.modal--checkin .bar > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #3fc27a, #4a9cf0);
}
dialog.modal.modal--checkin .odds-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}
dialog.modal.modal--checkin .odds-donut {
  position: relative;
  flex: none;
  align-self: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #3b2412, 0 4px 10px rgb(0 0 0 / 40%);
}
dialog.modal.modal--checkin .odds-donut::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgb(255 220 160 / 7%) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 38% 32%, #4a3220, #24150a 70%);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 65%), inset 0 0 0 1px rgb(255 220 160 / 12%);
}
dialog.modal.modal--checkin .odds-donut__mark {
  position: absolute;
  inset: 0.55rem;
  display: grid;
  place-items: center;
  color: var(--gold, #ecd28e);
}
dialog.modal.modal--checkin .odds-donut__mark .icon { width: 0.85rem; height: 0.85rem; }
dialog.modal.modal--checkin .coop-wheel__odds {
  display: grid;
  gap: 0.12rem;
  flex: 1 1 auto;
  min-width: 0;
}
dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd {
  display: grid;
  /* Swatch · icon · name · pct each own a column so labels never sit on the glyph. */
  grid-template-columns: 0.45rem 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.12rem;
  padding: 0.12rem 0.28rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  line-height: 1.2;
}
dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd-name {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 0;
}
dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd-pct {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold, #ecd28e);
  justify-self: end;
}
dialog.modal.modal--checkin .coop-wheel__odd-swatch {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--o, #c9a36a);
}
dialog.modal.modal--checkin .coop-wheel__odd-icon {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  justify-self: center;
}
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg canvas,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg .egg-token,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg .visual-asset {
  width: 1.05rem;
  height: 1.05rem;
  max-width: 1.05rem;
  max-height: 1.05rem;
  display: block;
}
dialog.modal.modal--checkin .coop-wheel__odds-panel.panel {
  padding: 0.55rem 0.65rem;
}
dialog.modal.modal--checkin .coop-wheel__odds-panel .panel__title,
dialog.modal.modal--checkin .coop-wheel__odds-title.panel__title {
  margin: 0 0 0.35rem;
}
dialog.modal.modal--checkin .checkin-board__earn {
  margin-top: 0;
  padding: 0.55rem 0.7rem 0.75rem;
  background: transparent;
}
dialog.modal.modal--checkin .coop-wheel__streak-panel .panel__title,
dialog.modal.modal--checkin .coop-wheel__odds-title {
  font-size: 1.05rem;
}
dialog.modal.modal--checkin .coop-wheel__streak-panel .week,
dialog.modal.modal--checkin .coop-wheel__streak-panel .next-tier {
  font-size: 0.98rem;
}
dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd-name {
  font-size: 1.05rem;
}
dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd-pct {
  font-size: 1.12rem;
}
dialog.modal.modal--checkin .coop-wheel__odd-icon,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg canvas,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg .egg-token,
dialog.modal.modal--checkin .coop-wheel__odd-icon--egg .visual-asset {
  width: 1.65rem;
  height: 1.65rem;
  max-width: 1.65rem;
  max-height: 1.65rem;
}
dialog.modal.modal--checkin .coop-wheel__streak-panel .icon,
dialog.modal.modal--checkin .coop-wheel__streak-panel img {
  width: 1.65rem;
  height: 1.65rem;
  max-width: 1.65rem;
  max-height: 1.65rem;
}
dialog.modal.modal--checkin .streak-road { position: relative; }
/* Connector segments live on each plan (::before) so they stay aligned when the grid wraps. */
dialog.modal.modal--checkin .streak-road__track { display: none; }
dialog.modal.modal--checkin .streak-plans {
  --sr-gap: 0.55rem;
  --sr-node: 3.15rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sr-gap);
  max-width: none;
}
dialog.modal.modal--checkin .streak-plan:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  /* Node sits first; nudge down so the bar centers through the gem circle. */
  top: calc(var(--sr-node) / 2 - 1px);
  left: calc(50% + var(--sr-node) / 2 + 0.1rem);
  width: calc(100% + var(--sr-gap) - var(--sr-node) - 0.2rem);
  height: 6px;
  border-radius: 99px;
  background: #6d7c96;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 45%);
}
dialog.modal.modal--checkin .streak-plan--done:not(:last-child)::before,
dialog.modal.modal--checkin .streak-plan--active:not(:last-child)::before {
  background: linear-gradient(90deg, #7fe3a6, #3fc27a 55%, #2a9a5a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 0 12px rgb(63 194 122 / 55%);
}
dialog.modal.modal--checkin .streak-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  /* Base wood claim cards use a chamfer clip; that cut the road connectors in half. */
  clip-path: none;
  overflow: visible;
}
dialog.modal.modal--checkin .streak-plan::after { content: none; }
dialog.modal.modal--checkin .streak-road,
dialog.modal.modal--checkin .streak-plans {
  overflow: visible;
}
dialog.modal.modal--checkin .streak-plan:nth-child(1) { --t: #d08a4e; }
dialog.modal.modal--checkin .streak-plan:nth-child(2) { --t: #3fc27a; }
dialog.modal.modal--checkin .streak-plan:nth-child(3) { --t: #4a9cf0; }
dialog.modal.modal--checkin .streak-plan:nth-child(4) { --t: #a874ef; }
dialog.modal.modal--checkin .streak-plan:nth-child(5) { --t: #f0587a; }
dialog.modal.modal--checkin .streak-plan__node {
  position: relative;
  z-index: 2;
  flex: none;
  width: var(--sr-node, 4.6rem);
  height: var(--sr-node, 4.6rem);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1c2236, #0c101c);
  color: var(--t, #d08a4e);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--t, #d08a4e) 70%, #000), 0 0 0 5px #0d1322;
}
dialog.modal.modal--checkin .streak-plan__gem {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--t, #d08a4e);
  transform: none;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 50%));
}
dialog.modal.modal--checkin .streak-plan__gem:not(.streak-plan__gem--crown) path:first-of-type {
  fill: currentColor;
}
dialog.modal.modal--checkin .streak-plan--locked .streak-plan__gem {
  opacity: 0.55;
  filter: saturate(0.6) drop-shadow(0 2px 2px rgb(0 0 0 / 50%));
}
dialog.modal.modal--checkin .streak-plan__badge {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3fc27a;
  color: #06210f;
  box-shadow: 0 0 0 2px #0d1322;
}
dialog.modal.modal--checkin .streak-plan__badge svg { width: 0.95rem; height: 0.95rem; display: block; }
dialog.modal.modal--checkin .streak-plan__badge--lock { background: #2a3044; color: #8e9cb2; }
dialog.modal.modal--checkin .streak-plan__badge--plus {
  background: linear-gradient(180deg, #ffe48a, #e0a830);
  color: #3a2208;
}
dialog.modal.modal--checkin .streak-plan--done .streak-plan__node,
dialog.modal.modal--checkin .streak-plan--active .streak-plan__node {
  box-shadow: 0 0 0 2px var(--t, #3fc27a), 0 0 0 5px #0d1322, 0 0 18px color-mix(in srgb, var(--t, #3fc27a) 45%, transparent);
}
dialog.modal.modal--checkin .streak-plan__card {
  flex: 1;
  width: 100%;
  margin-top: 0;
  padding: 0.42rem 0.32rem 0.45rem;
  border-radius: 0;
  clip-path: none;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--t, #d08a4e) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgb(24 32 52 / 78%), rgb(10 14 24 / 78%));
  border: 1px solid color-mix(in srgb, var(--t, #d08a4e) 28%, transparent);
}
dialog.modal.modal--checkin .streak-plan--active .streak-plan__card {
  border-color: color-mix(in srgb, var(--gold, #ecd28e) 60%, transparent);
  box-shadow: 0 0 0 1px rgb(236 210 142 / 25%), 0 0 24px rgb(236 210 142 / 16%);
}
dialog.modal.modal--checkin .streak-plan__head {
  display: block;
  text-align: center;
  margin-bottom: 0.22rem;
}
dialog.modal.modal--checkin .streak-plan__days {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-strong, #fbf5e8);
}
dialog.modal.modal--checkin .streak-plan__days small {
  margin-left: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--t, #d08a4e) 75%, #fff);
}
dialog.modal.modal--checkin .streak-plan__state {
  display: inline-block;
  max-width: 100%;
  margin: 0.32rem 0 0.28rem;
  padding: 0.34rem 0.5rem;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgb(255 255 255 / 6%);
  color: #8e9cb2;
}
dialog.modal.modal--checkin .streak-plan--done .streak-plan__state,
dialog.modal.modal--checkin .streak-plan--active .streak-plan__state {
  background: rgb(63 194 122 / 55%);
  color: #0d1f10;
}
dialog.modal.modal--checkin .streak-plan__claim.btn {
  margin-top: 0.45rem;
}
dialog.modal.modal--checkin .streak-plan__prices {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.3rem 0.15rem;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--gold, #ecd28e) 28%, transparent);
  border-radius: 8px;
  background: rgb(0 0 0 / 25%);
}
dialog.modal.modal--checkin .streak-plan__prices li,
dialog.modal.modal--checkin .streak-plan__price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  white-space: nowrap;
}
dialog.modal.modal--checkin .streak-plan__price-gap {
  display: none;
}
dialog.modal.modal--checkin .streak-plan__prices .icon {
  width: 1.15rem;
  height: 1.15rem;
}
dialog.modal.modal--checkin .streak-plan__prices strong {
  color: var(--ink-strong, #fbf5e8);
  font-variant-numeric: tabular-nums;
}
dialog.modal.modal--checkin .streak-plan__prices span {
  color: #8e9cb2;
  font-size: 0.76rem;
}
/* Desktop · streak rewards stay under the wheel (full width), not a side column. */
@media (min-width: 64rem) {
  dialog.modal.modal--checkin .modal__body.checkin-board {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  dialog.modal.modal--checkin .checkin-board__earn {
    margin-top: 0;
  }
  dialog.modal.modal--checkin .streak-plans {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: none;
  }
}
@media (max-width: 71.99rem) {
  dialog.modal.modal--checkin .coop-wheel__cols { grid-template-columns: minmax(0, 1fr); }
  dialog.modal.modal--checkin .coop-wheel__col--wheel { order: -1; }
  dialog.modal.modal--checkin .coop-wheel__stage {
    width: min(100%, 28rem);
    margin-inline: auto;
    padding: 0.2rem;
  }
  dialog.modal.modal--checkin .odds-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  dialog.modal.modal--checkin .coop-wheel__odds {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}
/* Phone keeps the road vertical. Wider views stay a horizontal row. */
@media (max-width: 45rem) {
  dialog.modal.modal--checkin .modal__body.checkin-board {
    display: flex;
    flex-direction: column;
  }
  dialog.modal.modal--checkin .checkin-board__daily { order: -1; }
  dialog.modal.modal--checkin .checkin-board__earn { order: 1; }
  dialog.modal.modal--checkin .checkin-head-band__row { position: static; }
  dialog.modal.modal--checkin .checkin-head__gauge {
    width: min(16rem, calc(100% - 5.5rem));
  }
  dialog.modal.modal--checkin .checkin-head__tools {
    right: 0.55rem;
  }
  dialog.modal.modal--checkin .week__day { gap: 0.04rem; }
  dialog.modal.modal--checkin .week__gem {
    width: 1.15rem;
    height: 1.15rem;
  }
  dialog.modal.modal--checkin .coop-wheel__odds .coop-wheel__odd {
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Five gems on one row. Cards: Base, 3, 7 · then 14 and a 30 that spans the other two. */
  dialog.modal.modal--checkin .streak-plans {
    --sr-gap: 0.28rem;
    --sr-node: 1.85rem;
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 0.32rem 0.22rem;
    max-width: none;
  }
  dialog.modal.modal--checkin .streak-plan { display: contents; }
  dialog.modal.modal--checkin .streak-plan::before { content: none; }
  dialog.modal.modal--checkin .streak-plan__node {
    grid-row: 1;
    justify-self: center;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--t, #d08a4e) 70%, #000), 0 0 0 3px #0d1322;
  }
  dialog.modal.modal--checkin .streak-plan:nth-child(1) .streak-plan__node { grid-column: 1 / span 3; }
  dialog.modal.modal--checkin .streak-plan:nth-child(2) .streak-plan__node { grid-column: 4 / span 3; }
  dialog.modal.modal--checkin .streak-plan:nth-child(3) .streak-plan__node { grid-column: 7 / span 3; }
  dialog.modal.modal--checkin .streak-plan:nth-child(4) .streak-plan__node { grid-column: 10 / span 3; }
  dialog.modal.modal--checkin .streak-plan:nth-child(5) .streak-plan__node { grid-column: 13 / span 3; }
  dialog.modal.modal--checkin .streak-plan__card { grid-row: 2; }
  dialog.modal.modal--checkin .streak-plan:nth-child(1) .streak-plan__card { grid-column: 1 / span 5; }
  dialog.modal.modal--checkin .streak-plan:nth-child(2) .streak-plan__card { grid-column: 6 / span 5; }
  dialog.modal.modal--checkin .streak-plan:nth-child(3) .streak-plan__card { grid-column: 11 / span 5; }
  dialog.modal.modal--checkin .streak-plan:nth-child(4) .streak-plan__card { grid-column: 1 / span 5; grid-row: 3; }
  dialog.modal.modal--checkin .streak-plan:nth-child(5) .streak-plan__card { grid-column: 6 / span 10; grid-row: 3; }
  dialog.modal.modal--checkin .streak-plan__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.16rem;
  }
  dialog.modal.modal--checkin .streak-plan__state { margin: 0.22rem 0 0.18rem; }
  dialog.modal.modal--checkin .streak-plan__gem { width: 0.95rem; height: 0.95rem; }
  dialog.modal.modal--checkin .streak-plan__badge { width: 0.85rem; height: 0.85rem; right: -0.08rem; bottom: -0.08rem; }
  dialog.modal.modal--checkin .streak-plan__badge svg { width: 0.55rem; height: 0.55rem; }
  dialog.modal.modal--checkin .streak-plan__card { padding: 0.22rem 0.18rem 0.26rem; }
  dialog.modal.modal--checkin .streak-plan__days { font-size: 0.78rem; }
  dialog.modal.modal--checkin .streak-plan__state {
    padding: 0.28rem 0.35rem;
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
  dialog.modal.modal--checkin .streak-plan__prices {
    gap: 0.35rem;
    padding-top: 0.45rem;
  }
  dialog.modal.modal--checkin .streak-plan__prices li {
    gap: 0.12rem;
    padding: 0;
    font-size: 0.72rem;
  }
  dialog.modal.modal--checkin .streak-plan__prices span { font-size: 0.62rem; }
}


.modal__close {
  /* Global close · demo popup X: dark red plate, brass ring, stroke X. */
  --modal-close-size: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--modal-close-size);
  height: var(--modal-close-size);
  min-width: var(--modal-close-size);
  min-height: var(--modal-close-size);
  margin: 0;
  padding: 0;
  border: 1px solid #2a0a06;
  border-radius: 3px;
  background: linear-gradient(180deg, #c8473a, #8a2219 55%, #6a1710);
  color: #fff3e6;
  cursor: pointer;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 30%),
    inset 0 -2px 3px rgb(0 0 0 / 35%),
    0 0 0 1px #d6b45e,
    0 2px 0 #000;
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
button.modal__close,
.set1-close .modal__close,
.set1-close.modal__close,
.earn-stage__close .modal__close,
.checkin-head__close .modal__close {
  border-color: #2a0a06;
  background: linear-gradient(180deg, #c8473a, #8a2219 55%, #6a1710);
  color: #fff3e6;
}
.modal__close:hover,
.modal__close:focus-visible {
  border-color: #2a0a06;
  background: linear-gradient(180deg, #de5b4b, #a02b20 55%, #7c1c13);
  color: #fff;
  transform: none;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 35%),
    inset 0 -2px 3px rgb(0 0 0 / 35%),
    0 0 0 1px #d6b45e,
    0 1px 0 #000;
}
.modal__close:focus {
  outline: none;
}
.modal__close:active {
  transform: translateY(1px);
  border-color: #c01010;
  background:
    linear-gradient(180deg, #e84840 0%, #d00808 60%, #9a0606 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 #ff9a90,
    inset 0 2px 3px rgb(60 0 4 / 35%),
    0 0 0 1px #2a0c0a,
    0 0.05rem 0.16rem rgba(90, 0, 8, 0.55);
}
.modal__close-x {
  display: block;
  width: 14px;
  height: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: #fff3e6;
  text-shadow: none;
  transform: none;
}
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: var(--space-1);
}
/* Scroll edge sits over the content. Bottom shade at the top, top shade at the bottom, both in the middle. */
.scroll-fade {
  position: absolute;
  height: 1.35rem;
  pointer-events: none;
  z-index: 6;
}
.scroll-fade--top {
  background: linear-gradient(to bottom, rgb(0 0 0 / 62%), transparent);
}
.scroll-fade--bot {
  background: linear-gradient(to top, rgb(0 0 0 / 62%), transparent);
}
.scroll-fade[hidden] {
  display: none !important;
}
/*
 * Default inner spacing for any framed panel's body (one place to tune it).
 * :where() keeps this at single-class weight so families that own their
 * spacing (Set 1 vine gutters, earn stage, check-in) still win.
 */
:where(.modal__panel.pixel-frame) > .modal__body {
  margin: 0;
  padding: var(--modal-body-pad, var(--frame-body-pad));
  box-sizing: border-box;
}


/* Ornate frame (Popup_Modals demo) */
dialog.modal.modal--ornate {
  width: min(72rem, 96vw);
  max-height: 90vh;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
dialog.modal.modal--ornate .modal__panel {
  position: relative;
  max-height: 90vh;
  padding: 1.6rem 1.6rem 1.35rem;
  gap: 0;
  background:
    radial-gradient(circle at 50% 0%, rgb(39 74 108 / 22%), transparent 36%),
    linear-gradient(180deg, rgb(7 19 34 / 96%), rgb(8 19 33 / 98.5%));
}
dialog.modal.modal--ornate .modal__panel::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.75rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0,
    #7e5534 5%,
    #c28c57 28%,
    #e4c078 48%,
    #c28c57 72%,
    #7e5534 95%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgb(217 177 95 / 16%);
  pointer-events: none;
}
.modal__vine {
  position: absolute;
  width: 10.5rem;
  height: 8rem;
  pointer-events: none;
  opacity: 0.94;
  z-index: 1;
}
.modal__vine--tl { left: -0.25rem; top: -0.25rem; }
.modal__vine--tr { right: -0.3rem; top: -0.25rem; transform: scaleX(-1); }
.modal__vine--bl { left: -0.6rem; bottom: -0.5rem; transform: scaleY(-1); }
.modal__vine--br { right: -0.6rem; bottom: -0.5rem; transform: scale(-1); }
.modal__vine-stem {
  position: absolute;
  left: 0.95rem;
  top: 1.35rem;
  width: 9rem;
  height: 4.35rem;
  border-top: 3px solid #5f4b3c;
  border-radius: 50%;
  transform: rotate(16deg);
}
.modal__vine-leaf {
  position: absolute;
  width: 1.35rem;
  height: 0.7rem;
  border-radius: 100% 0;
  background: linear-gradient(135deg, #6a9d54, #294c36);
  transform: rotate(-30deg);
}
.modal__vine-leaf--a { left: 1.75rem; top: 1.2rem; }
.modal__vine-leaf--b { left: 2.95rem; top: 0.45rem; transform: rotate(18deg); }
.modal__vine-leaf--c { left: 4.7rem; top: 1.35rem; transform: rotate(-48deg); }
.modal__vine-leaf--d { left: 6.25rem; top: 0.6rem; transform: rotate(14deg); }
.modal__vine-flower {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: #e5d7aa;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(229 215 170 / 8%);
}
.modal__vine-flower::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 50%;
  background: conic-gradient(#e8b8a3 0 25%, transparent 25% 50%, #e8b8a3 50% 75%, transparent 75%);
}
.modal__vine-flower--a { left: 1.45rem; top: 2.85rem; }
.modal__vine-flower--b { left: 7.55rem; top: 1.55rem; }

.modal__ornate-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  padding: 0.4rem 0.75rem 1.15rem 5rem;
  flex: 0 0 auto;
  z-index: 2;
}
.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-strong);
}
.modal__subtitle {
  margin: 0.65rem 0 0;
  color: color-mix(in srgb, var(--muted) 70%, #c0cada);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.modal--ornate .modal__close {
  margin-bottom: 0.375rem;
  border-radius: 0.55rem;
}
.modal__moon {
  position: absolute;
  left: 50%;
  top: -0.85rem;
  transform: translateX(-50%);
  width: 4.6rem;
  height: 2.85rem;
  border: 1px solid #8a6445;
  border-bottom: none;
  border-radius: 2.5rem 2.5rem 0 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgb(8 18 31 / 72%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  pointer-events: none;
}
.modal__moon span {
  font-size: 1.85rem;
  transform: translateY(0.2rem);
  text-shadow: 0 0 16px rgb(255 206 111 / 42%);
}
.modal__divider {
  height: 1px;
  margin: 0 0.15rem 1.25rem;
  background: linear-gradient(90deg, transparent, #39526f 18%, #5e7691 50%, #39526f 82%, transparent);
  position: relative;
  flex: 0 0 auto;
}
.modal__divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  padding: 0 0.5rem;
  color: #e9c77c;
  background: #0a1728;
  font-size: 0.875rem;
}
.modal--ornate .modal__body {
  padding: 0 0.15rem 0.25rem;
}
.modal__footer-rail {
  flex: 0 0 auto;
  height: 1.1rem;
  margin-top: 1.1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 1px solid #755638;
  background: linear-gradient(180deg, #6b4a32, #2d2119);
  box-shadow: 0 -3px 0 rgb(182 131 74 / 11%), inset 0 5px 0 rgb(0 0 0 / 15%);
}

.lodge-mode {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.lodge-mode__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
}
.lodge-mode__balance { justify-self: end; }
.lodge-mode__btn[aria-pressed="true"] {
  border-color: #c4a35a;
  color: #fff6e4;
}
.lodge-mode .lodge-pager {
  margin: 0;
  justify-self: center;
}
.lodge-pager--foot {
  margin: 0.85rem 0 0;
}
@media (max-width: 40rem) {
  .lodge-mode {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .lodge-mode__actions { justify-self: start; }
  .lodge-mode__balance { display: none; }
}
.activity-cards {
  /* Fixed card width. Columns drop as soon as three no longer fit. Gap grows with the screen. */
  --activity-card-w: 21rem;
  --activity-card-row-min: 0;
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--activity-card-w)), var(--activity-card-w)));
  justify-content: center;
  gap: 1.15rem;
  align-items: start;
}
.activity-cards[data-lodge-size="6"],
.activity-cards[data-lodge-size="3"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--activity-card-w)), var(--activity-card-w)));
}
.activity-cards[data-lodge-size="1"] {
  grid-template-columns: minmax(min(100%, var(--activity-card-w)), var(--activity-card-w));
  justify-content: center;
}
@media (min-width: 72rem) {
  .activity-cards { gap: 2.25rem; }
}
@media (min-width: 90rem) {
  .activity-cards { gap: 3rem; }
}
.lodge-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}
.lodge-pager__btn {
  min-width: 2.4rem;
}
.lodge-pager__btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}
.lodge-pager__status {
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #e8dcc4;
}
/* Local Event preview · one compact card per holiday scene. */
.activity-cards--holiday-preview {
  --activity-card-row-min: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.activity-card--holiday-preview {
  min-height: 0;
  padding: 0.45rem;
}
.activity-card--holiday-preview .activity-card__art {
  height: auto;
  aspect-ratio: 472 / 140;
  min-height: 0;
}
.activity-card--holiday-preview .activity-card__art-actions,
.activity-card--holiday-preview .activity-card__claimed,
.activity-card--holiday-preview .activity-card__duration,
.activity-card--holiday-preview .activity-card__timer,
.activity-card--holiday-preview .activity-card__crystals,
.activity-card--holiday-preview .activity-card__body,
.activity-card--holiday-preview .activity-card__desc,
.activity-card--holiday-preview .activity-card__badge,
.activity-card--holiday-preview .activity-card__actions {
  display: none !important;
}
.activity-card__copy--holiday {
  padding: 0.35rem 0.2rem 0.15rem;
  text-align: center;
}
.activity-card__copy--holiday h3 {
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 60rem) {
  .activity-cards--holiday-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgb(14 29 48 / 98%), rgb(11 25 42 / 98%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3.5%), 0 10px 22px rgb(0 0 0 / 14%);
  /* Do not use content-visibility here: nested <dialog> Start panels break Chromium top-layer. */
}
/* Shared wood rim · pad clears the 14px .pixel-frame border on all sides. */
.activity-card.pixel-frame {
  border: 0;
  border-radius: 0;
  /* Set: card · scene runs to the rim on top/sides, foot keeps 1.05rem. */
  --frame-pad-y: 0px;
  --frame-pad-x: 0px;
  --frame-pad-b: 1.05rem;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
/* Outer rim is the shared v3 wood ring (.pixel-frame::after). */
.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(126 177 221 / 4%), transparent 30%, transparent 70%, rgb(224 170 71 / 2.5%));
  pointer-events: none;
}
.activity-card.pixel-frame::before {
  inset: var(--frame-rim);
  border-radius: 0;
}
.activity-card__art {
  position: relative;
  height: 7.35rem;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 0;
  background: #122238 center / cover no-repeat;
}
/* V2 wood underside · same .wood-beam-h host the card rim uses (painted via mountWoodBeam). */
.activity-card__art-wood.wood-beam-h {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  height: var(--frame-rim) !important;
  margin: 0;
  pointer-events: none;
  box-shadow: none;
}
.activity-card__title,
.activity-card__desc,
.activity-card__status,
.activity-card__actions {
  padding-inline: 0.75rem;
}
.activity-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(6 13 23 / 2%), rgb(4 11 20 / 30%));
  pointer-events: none;
  z-index: 1;
}
.activity-card__art--dim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(5 12 22 / 55%);
  pointer-events: none;
}
.activity-card__art--dim::after {
  background: linear-gradient(180deg, rgb(6 13 23 / 8%), rgb(4 11 20 / 35%));
}
/* Slim Signal-style meter · behind wood vines (.pixel-frame__fx is z:5). */
.activity-card__timer {
  position: absolute;
  /* Bottom of the scene header · just above the wood underside beam. */
  top: auto;
  bottom: var(--frame-rim);
  left: 0;
  right: 0;
  z-index: 5;
  height: 0.38rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgb(255 220 160 / 4%) 0 8px,
      transparent 8px 16px
    ),
    #14100c;
  box-shadow: inset 0 1px 0 rgb(0 0 0 / 55%);
  overflow: hidden;
  pointer-events: none;
}
.activity-card__timer::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 16%) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: activity-signal-sheen 2.9s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
.activity-card__timer-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 0;
  overflow: hidden;
  /* Vivid sun-gold fill · color only (sheen stays subtle; no pulse). */
  background: linear-gradient(90deg, #fff8c4 0%, #ffe14a 35%, #f0b018 70%, #ffd24a 100%);
  box-shadow:
    0 0 10px rgb(255 210 60 / 70%),
    inset 0 1px 0 rgb(255 250 220 / 55%);
  animation-name: activity-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.activity-card__timer-fill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20%;
  width: 26%;
  height: 220%;
  transform: translateY(-50%) skewX(-18deg);
  background: rgb(255 236 200 / 22%);
  filter: blur(3px);
  animation: activity-signal-scan 1.4s linear infinite;
  pointer-events: none;
}
.activity-card__timer--cool .activity-card__timer-fill {
  animation-name: activity-fill, activity-cool-hue;
  animation-timing-function: linear, linear;
  animation-fill-mode: forwards, forwards;
  background: linear-gradient(90deg, #ff6a5c, #e03428);
  box-shadow: 0 0 10px rgb(255 80 60 / 55%);
}
.activity-card__timer--ready .activity-card__timer-fill {
  animation: none;
  width: 100%;
  background: linear-gradient(90deg, #fff8c4 0%, #ffe14a 35%, #f0b018 70%, #ffd24a 100%);
  box-shadow:
    0 0 10px rgb(255 210 60 / 70%),
    inset 0 1px 0 rgb(255 250 220 / 55%);
}
.activity-card__timer--ready .activity-card__timer-fill::before {
  animation: none;
  opacity: 0;
}
@keyframes activity-fill {
  to { width: 100%; }
}
@keyframes activity-signal-scan {
  from { left: -25%; }
  to { left: 120%; }
}
@keyframes activity-signal-sheen {
  to { transform: translateX(120%); }
}
/* Synced to full cooldown span via inline duration + negative delay. */
@keyframes activity-cool-hue {
  0% {
    background: linear-gradient(90deg, #ff6a5c, #e03428);
    box-shadow: 0 0 12px rgb(255 80 60 / 60%);
  }
  45% {
    background: linear-gradient(90deg, #ffb84a, #f08818);
    box-shadow: 0 0 12px rgb(255 170 50 / 55%);
  }
  78% {
    background: linear-gradient(90deg, #5fd86a, #2f9a40);
    box-shadow: 0 0 12px rgb(80 220 100 / 50%);
  }
  100% {
    background: linear-gradient(90deg, #5fd86a, #2f9a40);
    box-shadow: 0 0 12px rgb(80 220 100 / 50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__timer-fill,
  .activity-card__timer-fill::before,
  .activity-card__timer::after { animation: none !important; }
}
html:not([data-full-quality="1"]) .activity-card__timer-fill::before,
html:not([data-full-quality="1"]) .activity-card__timer::after {
  animation: none !important;
}
.activity-card__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem 0.55rem 0.55rem;
  text-align: center;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 75%);
  pointer-events: none;
}
.activity-card__veil-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.activity-card__admin-act {
  margin: 0;
  display: inline-flex;
  pointer-events: auto;
}
.activity-card__admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 2px solid color-mix(in srgb, #f0c45a 75%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, #1a120c 78%, #5a3a18);
  color: #ffe7a8;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transform: none;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.activity-card__admin-btn:hover,
.activity-card__admin-btn:focus-visible {
  background: color-mix(in srgb, #3a2412 55%, #c48a2a);
  border-color: #ffe7a8;
  color: #fff6d8;
  outline: none;
}
.activity-card__admin-btn:active {
  transform: scale(0.96);
}
.activity-card__admin-icon {
  display: block;
}
.activity-card__veil--ready {
  color: color-mix(in srgb, var(--ok) 40%, #fff);
  font-size: 1.12rem;
}
.activity-card__veil--ready span {
  font-size: 1.12rem;
}
.activity-card__art--village {
  background-color: #0d1c30;
  background-size: cover;
  /* Bias crop up so night-sky letterbox does not read as an empty gap under the wood. */
  background-position: center calc(50% - 24px);
}
.activity-card__art--lodge {
  background-color: #1a1410;
  background-size: cover;
  background-position: center;
}
.activity-card__art--forest {
  background-color: #0f1e14;
  background-size: cover;
  background-position: center;
}
.activity-card__art--harbor {
  background-color: #102032;
  background-size: cover;
  background-position: center;
}
.activity-card__art--farm {
  background-color: #1a2210;
  background-size: cover;
  background-position: center;
}
.activity-card__art--mine {
  background-color: #12161c;
  background-size: cover;
  background-position: center;
}
.activity-card__art--default {
  background: linear-gradient(165deg, #1b2b3a, #0f1a2c);
}
.activity-card__badge {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  flex: 0 0 auto;
  margin: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  background: rgb(7 16 28 / 92%);
  box-shadow: 0 0 0 3px rgb(5 10 18 / 55%), 0 2px 8px rgb(0 0 0 / 35%);
  font-size: 1.05rem;
}
.activity-card__aff {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  padding-right: 0;
}
/*
 * Affinity tags · Lodge-style crystal orbs + plates (wood pills retired).
 */
.activity-card__aff-hill,
.activity-card__aff-hill--crystal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.activity-card .activity-card__aff-half {
  min-width: 0;
  flex: 0 1 auto;
}
/* Crystal column · orb over name/% plate (equipped bay / steward / tips). */
.activity-card__aff-hill--crystal .activity-card__aff-half {
  --aff-orb-w: 5.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  min-width: var(--aff-orb-w);
  min-height: 0;
  flex: 0 0 var(--aff-orb-w);
  width: var(--aff-orb-w);
  max-width: var(--aff-orb-w);
  padding: 0.2rem 0.1rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  font-family: inherit;
  color: #ebe4ff;
}
.activity-card__aff-hill--crystal .activity-card__aff-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
}
.activity-card__aff-hill--crystal .activity-card__aff-gem.reward-orb {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  /* Skill tones come from .reward-orb-col--* on the half (custom props inherit). */
  border: 2px solid var(--orb-rim, #b9a1ff);
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, var(--orb-mid, rgba(180, 120, 40, 0.45)) 76%, var(--orb-lo, rgba(40, 20, 8, 0.85)) 100%),
    radial-gradient(circle at 50% 36%, var(--orb-mid, rgba(180, 120, 40, 0.45)) 0, transparent 62%),
    radial-gradient(circle at 50% 104%, var(--orb-glow, transparent) 0, transparent 58%),
    rgba(12, 6, 20, 0.35);
  box-shadow:
    0 0 4px 1px var(--orb-rim, #b9a1ff),
    0 0 10px 2px var(--orb-glow, transparent),
    inset 0 0 8px 1px var(--orb-rim, #b9a1ff),
    inset 0 -4px 8px var(--orb-glow, transparent),
    inset 0 3px 5px rgba(255, 255, 255, 0.22);
}
.activity-card__aff-hill--crystal .activity-card__aff-half.reward-orb-col {
  /* Affinity plate border tracks skill rim. */
  --aff-border: var(--orb-rim, #b9a1ff);
}
.activity-card__aff-hill--crystal .activity-card__aff-gem .reward-orb__icon,
.activity-card__aff-hill--crystal .activity-card__aff-gem .icon,
.activity-card__aff-hill--crystal .activity-card__aff-gem svg {
  width: 1.35rem;
  height: 1.35rem;
}
.activity-card__aff-hill--crystal .activity-card__aff-gem--obscured {
  border-color: #6a6578;
  background:
    radial-gradient(circle at 50% 36%, rgba(120, 120, 140, 0.35) 0, transparent 62%),
    rgba(20, 18, 28, 0.75);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}
.activity-card__aff-hill--crystal .activity-card__aff-skill {
  --aff-label-w: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  width: 100%;
  max-width: 100%;
  min-height: 2.15rem;
  padding: 0.22rem 0.3rem 0.18rem;
  border: 2px solid var(--aff-border, #b9a1ff);
  border-radius: 0.45rem;
  background: linear-gradient(
    color-mix(in srgb, var(--aff-border, #b9a1ff) 10%, #140c28),
    color-mix(in srgb, var(--aff-border, #b9a1ff) 6%, #080418)
  );
  box-shadow:
    0 0 6px color-mix(in srgb, var(--aff-border, #b9a1ff) 28%, transparent),
    inset 0 0 6px color-mix(in srgb, var(--aff-border, #b9a1ff) 20%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 12%);
}
.activity-card__aff-hill--crystal .activity-card__aff-skill > span:not(.activity-card__aff-mult) {
  max-width: 100%;
  width: 100%;
  font-size: 0.68rem;
  text-align: center;
  text-shadow: none;
  color: #ebe4ff;
}
.activity-card__aff-hill--crystal .activity-card__aff-skill em,
.activity-card__aff-hill--crystal .activity-card__aff-mult {
  font-size: 0.78rem;
  text-shadow: none;
}
.activity-card__aff-hill--neutral {
  display: flex;
  justify-content: center;
  width: auto;
  min-width: 7.5rem;
  grid-template-columns: none;
  padding: 0.2rem 0.65rem;
}
.activity-card__aff-neutral {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}
.activity-card__aff-half,
.activity-card__aff-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem 0.18rem 0.35rem;
  line-height: 1.1;
  --aff-border: #2a170c;
  border: 2px solid var(--aff-border);
  border-radius: 0.2rem;
  background:
    linear-gradient(180deg, rgb(12 8 4 / 20%), rgb(8 5 2 / 36%)),
    var(--wood-plank);
  color: #f0e4c8;
  font-family: Literata, Georgia, "Times New Roman", serif;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.12),
    inset 0 -1px 0 #1a0f08,
    0 2px 0 rgb(18 9 4 / 55%);
  filter: none;
}
/* Affinity pill border = job skill tint (same family as claim reward rims). */
.activity-card__aff-half--skill-gathering,
.activity-card__aff-half--skill-tree_cutting { --aff-border: #6fbf6a; }
.activity-card__aff-half--skill-stewardship { --aff-border: #e0b44a; }
.activity-card__aff-half--skill-cooking { --aff-border: #e07a4a; }
.activity-card__aff-half--skill-fire_making { --aff-border: #ff7a3a; }
.activity-card__aff-half--skill-fishing { --aff-border: #4aa8e0; }
.activity-card__aff-half--skill-farming,
.activity-card__aff-half--skill-exploration { --aff-border: #8bc34a; }
.activity-card__aff-half--skill-mining { --aff-border: #8aa0b8; }
.activity-card__aff-half--skill-smelting { --aff-border: #e07040; }
.activity-card__aff-half--skill-smithing { --aff-border: #9aa4b2; }
.activity-card__aff-half--skill-strength { --aff-border: #e06060; }
.activity-card__aff-half--skill-hacking { --aff-border: #a070e0; }
.activity-card__aff-half--skill-crafting { --aff-border: #b88850; }
.activity-card__aff-half::before,
.activity-card__aff-chip::before,
.activity-card__aff-half::after,
.activity-card__aff-chip::after {
  content: none;
  display: none;
}
.activity-card__aff-skill {
  /* Middle name · shrink-wrap so % sits flush (no flex-grown gap). */
  --aff-label-w: 4.1rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
  padding: 0;
}
.activity-card__aff-icon,
.activity-card__aff-chip .icon {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  aspect-ratio: 1;
  margin: 0;
  color: #f0e4c8;
  opacity: 1;
  --orb-hi: #fff0c8;
  --orb-mid: rgba(180, 120, 40, 0.55);
  --orb-lo: rgba(40, 20, 8, 0.85);
  --orb-rim: var(--aff-border, #c9a24a);
  --orb-glow: color-mix(in srgb, var(--orb-rim) 70%, transparent);
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, var(--orb-mid) 76%, var(--orb-lo) 100%),
    radial-gradient(circle at 50% 36%, var(--orb-mid) 0, transparent 62%),
    radial-gradient(circle at 50% 104%, var(--orb-glow) 0, transparent 58%),
    rgba(12, 6, 20, 0.35);
  border: 2px solid var(--orb-rim);
  border-radius: 50%;
  clip-path: none;
  transform: none;
  box-shadow:
    0 0 4px 1px var(--orb-rim),
    0 0 10px 2px var(--orb-glow),
    inset 0 0 8px 1px var(--orb-rim),
    inset 0 -4px 8px var(--orb-glow),
    inset 0 3px 5px rgba(255, 255, 255, 0.22);
  filter: none;
  isolation: isolate;
  overflow: hidden;
}
.activity-card__aff-icon::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 10%;
  width: 42%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.04));
  transform: rotate(-26deg);
  filter: blur(0.4px);
  z-index: 0;
  pointer-events: none;
}
/* Crystal burn tints · match Walk reward-orb skill columns. */
.activity-card__aff-half--skill-gathering .activity-card__aff-icon {
  --orb-hi: #d2ffe6;
  --orb-mid: rgba(40, 220, 130, 0.55);
  --orb-lo: rgba(4, 80, 60, 0.8);
  --orb-rim: #5dffa8;
  --orb-glow: rgba(40, 255, 140, 0.75);
}
.activity-card__aff-half--skill-tree_cutting .activity-card__aff-icon {
  --orb-hi: #d6efff;
  --orb-mid: rgba(40, 150, 255, 0.55);
  --orb-lo: rgba(8, 40, 150, 0.8);
  --orb-rim: #5cc0ff;
  --orb-glow: rgba(50, 170, 255, 0.75);
}
.activity-card__aff-half--skill-stewardship .activity-card__aff-icon {
  --orb-hi: #fff2c4;
  --orb-mid: rgba(255, 180, 40, 0.55);
  --orb-lo: rgba(120, 60, 8, 0.8);
  --orb-rim: #ffc040;
  --orb-glow: rgba(255, 170, 40, 0.75);
}
.activity-card__aff-half--skill-cooking .activity-card__aff-icon,
.activity-card__aff-half--skill-fire_making .activity-card__aff-icon,
.activity-card__aff-half--skill-smelting .activity-card__aff-icon {
  --orb-hi: #ffe0c8;
  --orb-mid: rgba(255, 120, 50, 0.55);
  --orb-lo: rgba(120, 30, 8, 0.8);
  --orb-rim: #ff8a40;
  --orb-glow: rgba(255, 110, 40, 0.75);
}
.activity-card__aff-half--skill-fishing .activity-card__aff-icon {
  --orb-hi: #d8f0ff;
  --orb-mid: rgba(50, 160, 230, 0.55);
  --orb-lo: rgba(8, 50, 120, 0.8);
  --orb-rim: #4aa8e0;
  --orb-glow: rgba(70, 170, 255, 0.75);
}
.activity-card__aff-half--skill-farming .activity-card__aff-icon,
.activity-card__aff-half--skill-exploration .activity-card__aff-icon {
  --orb-hi: #e8ffc8;
  --orb-mid: rgba(140, 210, 60, 0.55);
  --orb-lo: rgba(30, 80, 10, 0.8);
  --orb-rim: #8bc34a;
  --orb-glow: rgba(140, 220, 60, 0.7);
}
.activity-card__aff-half--skill-mining .activity-card__aff-icon,
.activity-card__aff-half--skill-smithing .activity-card__aff-icon {
  --orb-hi: #e0e8f0;
  --orb-mid: rgba(130, 150, 180, 0.55);
  --orb-lo: rgba(30, 40, 60, 0.85);
  --orb-rim: #8aa0b8;
  --orb-glow: rgba(140, 170, 210, 0.7);
}
.activity-card__aff-half--skill-strength .activity-card__aff-icon {
  --orb-hi: #ffd0d0;
  --orb-mid: rgba(224, 80, 80, 0.55);
  --orb-lo: rgba(80, 10, 10, 0.85);
  --orb-rim: #e06060;
  --orb-glow: rgba(255, 80, 80, 0.7);
}
.activity-card__aff-half--skill-hacking .activity-card__aff-icon {
  --orb-hi: #f0d8ff;
  --orb-mid: rgba(160, 90, 230, 0.55);
  --orb-lo: rgba(50, 15, 100, 0.85);
  --orb-rim: #a070e0;
  --orb-glow: rgba(180, 100, 255, 0.75);
}
.activity-card__aff-half--skill-crafting .activity-card__aff-icon {
  --orb-hi: #ffe8c8;
  --orb-mid: rgba(184, 130, 70, 0.55);
  --orb-lo: rgba(70, 40, 15, 0.85);
  --orb-rim: #b88850;
  --orb-glow: rgba(200, 140, 70, 0.7);
}
.activity-card__aff-icon .affinity-chip__glyph {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
/* Skill pictograms tinted by what the skill does. */
.skill-tint { color: #c9b896; }
.skill-tint--gathering { color: #6fbf6a; }
.skill-tint--tree_cutting { color: #6fbf6a; }
.skill-tint--stewardship { color: #e0b44a; }
.skill-tint--cooking { color: #e07a4a; }
.skill-tint--fire_making { color: #ff7a3a; }
.skill-tint--fishing { color: #4aa8e0; }
.skill-tint--farming,
.skill-tint--exploration { color: #8bc34a; }
.skill-tint--mining { color: #8aa0b8; }
.skill-tint--smelting { color: #e07040; }
.skill-tint--smithing { color: #9aa4b2; }
.skill-tint--strength { color: #e06060; }
.skill-tint--hacking { color: #a070e0; }
.skill-tint--crafting { color: #b88850; }
.activity-card__aff-icon .icon,
.activity-card__aff-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.activity-card__aff-skill > span:not(.activity-card__aff-icon):not(.activity-card__aff-mult) {
  /* Do not flex-grow · growing the label shoved % off the right rim. */
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: var(--aff-label-w);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f0e4c8;
  text-shadow: 0 1px 0 #1a0f08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.activity-card__aff-skill em,
.activity-card__aff-mult {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #1a0f08;
}
/* % inherits .skill-tint--* on the mult (same color as that job affinity). */
.activity-card__aff-mult--quiet {
  opacity: 0.35;
  font-weight: 600;
}
.activity-card__aff-half--empty {
  opacity: 0.45;
  color: var(--muted);
}
/* Locked / chickling · gray empty crystal orbs (no job color leak). */
.activity-card__aff-half--obscured {
  --aff-border: #6a6578;
  opacity: 0.92;
}
.activity-card__aff-icon--obscured,
.activity-card__aff-half--obscured .activity-card__aff-icon {
  --orb-hi: #d8d4e4;
  --orb-mid: rgba(120, 118, 140, 0.45);
  --orb-lo: rgba(40, 38, 52, 0.9);
  --orb-rim: #8a869c;
  --orb-glow: rgba(140, 136, 160, 0.45);
}
.activity-card__aff-half--obscured .activity-card__aff-skill > span {
  color: #a8a4b8;
}
.activity-card__aff-chip {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.start-confirm {
  display: grid;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}




/* Wood-frame canvas fills the start modal; card banner sits flush under the top beam. */
dialog.modal.modal--start {
  /* Tall body allowed · fixed height so the hero spacer % resolves (no aspect lock). */
  /* +2rem desktop width · drops/crafting label plates need a little more room. */
  width: min(96vw, 54rem);
  max-width: min(54rem, calc(100% - 1rem));
  top: 0.55rem;
  left: 50%;
  translate: -50% 0;
  height: calc(100dvh - 2.1rem);
  max-height: calc(100dvh - 2.1rem);
  aspect-ratio: auto;
  background: transparent;
  /* Gem hangs past the panel. The dialog stays clear so that tip is not clipped. */
  overflow: visible;
}
dialog.modal.modal--start .start-confirm-panel {
  /* v2 pixel-frame rim · fixed 14px inset (no Sip canvas %). */
  --start-inner-x: var(--frame-rim);
  --start-hero-top: var(--frame-rim);
  --start-hero-split: 34%;
  --start-inner-b: 0px;
  position: relative;
  display: block;
  gap: 0;
  padding: 0;
  max-height: none;
  height: 100%;
  overflow: visible;
  border: 0;
  border-image: none;
  border-radius: 0;
  background: #120c08;
  box-shadow: none;
}
/* Real DOM beam · painted v2 wood via mountWoodBeam (header underside). */
dialog.modal.modal--start .start-confirm__split {
  position: absolute;
  left: var(--start-inner-x);
  right: var(--start-inner-x);
  top: var(--start-hero-split);
  z-index: 2;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.start-confirm__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.start-confirm__close {
  position: absolute;
  top: calc(var(--start-hero-top) + 0.55rem);
  right: calc(var(--start-inner-x) + 0.55rem);
  z-index: 3;
  margin: 0;
}
.start-confirm__ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  min-height: 0;
  /* Clear the v2 rim · bottom pad matches wood floor under body. */
  padding: 0 var(--start-inner-x) calc(var(--frame-rim) + 0.35rem);
  box-sizing: border-box;
  overflow: hidden;
}
/* Same band as the wood splitter so body cannot crawl under hero. */
.start-confirm__ui::before {
  content: "";
  flex: 0 0 calc(var(--start-hero-split) + var(--frame-rim));
  width: 100%;
  pointer-events: none;
}
.start-confirm__hero-aff {
  position: absolute;
  z-index: 3;
  right: calc(var(--start-inner-x) + 10px);
  top: calc(var(--start-hero-split) - 18px);
  transform: translateY(-100%);
  margin: 0;
  pointer-events: auto;
}
.start-confirm__hero-aff .activity-card__aff-hill {
  width: auto;
  max-width: min(15.5rem, 46vw);
  margin: 0;
}
.start-confirm__hero-copy {
  position: absolute;
  z-index: 3;
  /* ~20px inset from the wood inner face; Start CTA sits top-center. */
  left: calc(9.5% + 20px);
  right: calc(var(--start-inner-x) + 10px);
  /* Bottom-left of the hero picture band, just above the splitter (−10px). */
  top: calc(var(--start-hero-split) - 3.35rem - 10px);
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.start-confirm__head {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
}
.start-confirm__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.8cqw, 1.85rem);
  color: #f6e6c0;
  /* Thicker black edge + soft underglow on lodge activity modal titles. */
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
  text-shadow:
    0 0 0 #000,
    0 1px 0 #000,
    0 2px 0 #000,
    0 3px 0 #000,
    0 4px 0 #000,
    0 5px 0 #000,
    0 5px 10px rgb(0 0 0 / 65%),
    0 0 14px rgb(0 0 0 / 50%);
}
/* Body is also .start-confirm · must target the flex child, not a descendant. */
.start-confirm__ui > .modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  margin-top: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* Keep scrolled content clipped to the body band under the splitter. */
  position: relative;
  z-index: 1;
}
.start-confirm__banner {
  display: none;
}
.start-confirm__titles {
  display: grid;
  gap: 0.2rem;
}
.start-confirm__eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
  text-shadow:
    0 0 0 #000,
    0 1px 0 #000,
    0 2px 0 #000,
    0 3px 0 #000,
    0 4px 8px rgb(0 0 0 / 55%),
    0 0 12px rgb(0 0 0 / 40%);
}
.start-confirm__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr);
  gap: 0.75rem;
  align-items: stretch;
  /* Inset without 100%+margin overflow (was causing a tiny horizontal scrollbar). */
  margin: 16px auto;
  width: calc(100% - 16px);
  max-width: calc(100% - 16px);
  min-width: 0;
  box-sizing: border-box;
}
.start-confirm__grid--loot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
/* Rewards full-width on top · Drops | Crafting underneath. */
.start-confirm__grid--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}
/* Contribution rows full width, unlock bundle underneath. */
.start-confirm__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}
.start-confirm__loot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
}
/* Rewards slate · stretch usable height so orbs are not mid-box clustered. */
dialog.modal.modal--start .start-confirm__box.affinity-earn {
  min-height: 11.5rem;
  align-content: stretch;
}
dialog.modal.modal--start .start-confirm__box.affinity-earn .affinity-earn__head {
  margin-bottom: 0.15rem;
}
.start-confirm__box,
.start-confirm__finds,
dialog.modal.modal--start .activity-guide__block,
.craft-unlock .activity-guide__block {
  display: grid;
  align-content: start;
  /* Set: card (real v2 wood via .pixel-frame--beams). */
  --frame-pad-y: 0.55rem;
  --frame-pad-x: 0.65rem;
  border-radius: 0;
  border: 0 !important;
  border-image: none !important;
  /* Slate well · wood rim stays on pixel-frame beams. */
  background: var(--slate-well);
  color: #e8eef6;
  /* Drop the old 7px inset stack · outer shadow comes from .pixel-frame. */
  box-shadow: none;
}
/* Unlock bundle · one slate well. Wood rim and the mid splitter are gone. */
dialog.modal.modal--start .activity-guide__bundle,
.craft-unlock .activity-guide__bundle {
  display: grid;
  align-content: start;
  border-radius: 0;
  border: 0 !important;
  border-image: none !important;
  background: var(--slate-well);
  color: #e8eef6;
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
}
.start-confirm__box.pixel-frame,
.start-confirm__finds.pixel-frame,
dialog.modal.modal--start .activity-guide__bundle.pixel-frame,
dialog.modal.modal--start .activity-guide__block.pixel-frame,
.craft-unlock .activity-guide__bundle.pixel-frame,
.craft-unlock .activity-guide__block.pixel-frame {
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
}
.start-confirm__box.pixel-frame > .pixel-frame__fx,
.start-confirm__finds.pixel-frame > .pixel-frame__fx,
dialog.modal.modal--start .activity-guide__bundle.pixel-frame > .pixel-frame__fx,
.craft-unlock .activity-guide__bundle.pixel-frame > .pixel-frame__fx {
  z-index: 2;
}
.start-confirm__grid--stacked .start-confirm__guaranteed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.35rem 0.75rem;
}
.start-confirm__guaranteed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.start-confirm__guaranteed li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  min-width: 0;
  color: #e8dcc4;
}
.start-confirm__row-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.start-confirm__row-icon .icon,
.start-confirm__row-icon svg,
.start-confirm__row-icon img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  object-fit: contain;
}
.start-confirm__row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}
.affinity-earn__head {
  display: grid;
  gap: 0.15rem;
}
.affinity-earn__head h3 {
  margin: 0;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.affinity-earn__head p {
  margin: 0;
  color: #cbbba6;
  font-size: 0.78rem;
}
.start-confirm__total {
  margin: 10px 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  border: 1px solid #b8903a;
  background: linear-gradient(#2a1c0b, #1a1007);
  color: #ffd878;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 230 160 / 12%);
}
.start-confirm__finds-title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.start-confirm__finds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.start-confirm__find-card {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.35rem 0.2rem 0.3rem;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f6ecdc;
  min-width: 0;
}
.start-confirm__find-icon {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: fill;
  border-radius: 0;
  border: 0;
  background: transparent;
}
.start-confirm__find-card strong {
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: calc(1.15em * 2);
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;
}
.start-confirm__find-card span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd878;
  font-variant-numeric: tabular-nums;
}
.start-confirm__finds-empty {
  margin: 0;
  grid-column: 1 / -1;
}
.start-confirm__busy-note {
  /* Semicolon mattered · prior missing semicolon after margin kept this rule half-broken. */
  margin: 1.05rem 0.9rem 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, #5a3a10);
  background: color-mix(in srgb, #2a1c0b 70%, transparent);
  color: #ffd878;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}
.start-confirm__actions {
  position: absolute;
  /* Bottom of the hero band · just above the wood splitter. */
  top: calc(var(--start-hero-split) - 3.35rem);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-height: 0;
}
.start-confirm__actions .btn,
.start-confirm__actions button.btn {
  min-height: 3rem;
  margin: 0;
  font-size: 1.05rem;
  box-sizing: border-box;
  border-radius: 0.45rem;
}
/* Start confirm · animated hero (no Sip sign / still scene art). */
.start-confirm-panel--anim .start-confirm__anim-scene {
  position: absolute;
  /* Override .activity-card__walk-scene inset:0 · pin to the hero band inside the rim. */
  inset: auto;
  z-index: 1;
  left: var(--start-inner-x);
  right: var(--start-inner-x);
  top: var(--start-hero-top);
  height: calc(var(--start-hero-split) - var(--start-hero-top));
  overflow: hidden;
  pointer-events: none;
}
.start-confirm-panel--anim .start-confirm__anim-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}
.start-confirm-panel--anim .start-confirm__hero-bar {
  position: absolute;
  z-index: 3;
  left: calc(var(--start-inner-x) + 1.55rem);
  right: calc(var(--start-inner-x) + 1.55rem);
  /* Lifted a little above the splitter / hero floor. */
  top: calc(var(--start-hero-split) - 4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.start-confirm-panel--anim .start-confirm__hero-bar h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4cqw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff8e8;
  text-shadow:
    0 0 10px rgb(0 0 0 / 55%),
    0 2px 0 #1a1008,
    0 1px 2px rgb(0 0 0 / 70%);
}
.start-confirm-panel--anim .start-confirm__hero-bar .start-confirm__actions {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  right: auto;
  flex: 0 0 auto;
  pointer-events: auto;
}
.start-confirm-panel--anim .start-confirm__hero-bar .start-confirm__actions .btn {
  min-height: 2.55rem;
  font-size: 0.95rem;
  padding-inline: 1.1rem;
}
/* Start / Info popup rewards · 4 across until the dialog is at full width. */
dialog.modal .start-confirm--orbs .activity-card__orbs,
.start-confirm--orbs .activity-card__orbs {
  --reward-orb-size: 5.15rem;
  --reward-plate-w: 5.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.55rem 1rem;
  justify-items: center;
  align-content: stretch;
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.75rem 0.85rem;
  max-width: none;
  margin-inline: 0;
  width: 100%;
  min-height: 8.85rem;
  box-sizing: border-box;
}
dialog.modal .start-confirm--orbs .activity-card__orbs .reward-orb-col,
.start-confirm--orbs .activity-card__orbs .reward-orb-col {
  width: var(--reward-plate-w);
  min-width: 0;
  max-width: var(--reward-plate-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
dialog.modal .start-confirm--orbs .activity-card__orbs .reward-orb-stage,
.start-confirm--orbs .activity-card__orbs .reward-orb-stage {
  width: var(--reward-orb-size);
  min-width: 0;
  max-width: var(--reward-orb-size);
  height: var(--reward-orb-size);
  margin-bottom: 0.35rem;
  margin-inline: auto;
}
dialog.modal .start-confirm--orbs .activity-card__orbs .reward-orb,
.start-confirm--orbs .activity-card__orbs .reward-orb {
  left: 12%;
  top: 12%;
  width: 76%;
  height: 76%;
}
dialog.modal .start-confirm--orbs .activity-card__orbs .reward-orb__icon,
.start-confirm--orbs .activity-card__orbs .reward-orb__icon,
dialog.modal .start-confirm--orbs .activity-card__orbs .reward-orb__icon svg,
.start-confirm--orbs .activity-card__orbs .reward-orb__icon svg {
  width: 2rem;
  height: 2rem;
}
/* Full-width popup · major, minor, coins, items, and the egg on one row. */
@media (min-width: 60rem) {
  dialog.modal .start-confirm--orbs .activity-card__orbs,
  .start-confirm--orbs .activity-card__orbs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 28rem) {
  dialog.modal .start-confirm--orbs .activity-card__orbs,
  .start-confirm--orbs .activity-card__orbs {
    --reward-orb-size: 4.25rem;
    --reward-plate-w: 4.15rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem 0.55rem;
    min-height: 0;
  }
}
/* Drops / Crafting · match Rewards orb + plate family (equal sizes). */
.start-confirm__finds-grid--orbs {
  --reward-orb-size: 3.85rem;
  --reward-plate-w: 4.05rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.15rem, 1fr));
  gap: 0.55rem 0.55rem;
  justify-items: center;
  padding: 0.45rem 0.5rem 0.7rem;
}
.start-confirm__finds-grid--orbs .reward-orb-col--mini,
.start-confirm__finds-grid--orbs .reward-orb-col--mini-tip {
  width: var(--reward-plate-w);
  max-width: var(--reward-plate-w);
}
.start-confirm__finds-grid--orbs .reward-orb-col--mini .reward-orb-stage {
  width: var(--reward-orb-size);
  max-width: var(--reward-orb-size);
  height: var(--reward-orb-size);
  margin-bottom: 0.28rem;
}
.start-confirm__finds-grid--orbs .reward-orb-col--mini .reward-orb {
  left: 12%;
  top: 12%;
  width: 76%;
  height: 76%;
  border-width: 2px;
}
.start-confirm__finds-grid--orbs .reward-orb-col--mini .reward-orb__icon,
.start-confirm__finds-grid--orbs .reward-orb-col--mini .reward-orb__icon img,
.start-confirm__finds-grid--orbs .reward-orb-col--mini .reward-orb__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
/* Mini plates · same recipe as Rewards plates (not the tiny scrunched variant). */
.reward-orb-col--mini .reward-orb__plate {
  width: var(--reward-plate-w, 4.05rem);
  max-width: var(--reward-plate-w, 4.05rem);
  min-width: 0;
  min-height: 2.35rem;
  height: 2.35rem;
  margin-top: -0.15rem;
  padding: 0.22rem 0.2rem 0.18rem;
  border-width: 2px;
  border-radius: 0.45rem;
}
.reward-orb-col--mini .reward-orb__plate span {
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}
.reward-orb-col--mini .reward-orb__plate b {
  font-size: 0.95rem;
}
/* Recipe plates already read clearly. Same display face, previous size. */
.reward-orb-col--recipe .reward-orb__plate span {
  font-size: 0.68rem;
}
.reward-orb-col--recipe .reward-orb__plate b {
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.reward-orb-col--mini {
  width: 100%;
  max-width: var(--reward-plate-w, 4.05rem);
}
.reward-orb-col--mini .reward-orb-stage {
  max-width: var(--reward-orb-size, 3.85rem);
  margin-bottom: 0.22rem;
}
.reward-orb-col--mini-tip {
  position: relative;
  width: 100%;
  max-width: var(--reward-plate-w, 4.05rem);
  display: flex;
  justify-content: center;
}
.reward-orb-col--mini-tip .reward-orb-col--mini {
  max-width: 100%;
}
/* Affirmative CTA uses the same Cancel chassis in green. */
dialog.modal.modal--start .btn--go,
dialog.modal.modal--start button.btn.btn--go {
  --btn-face: #34a046;
  --btn-lip: #144a20;
  color: #fff;
}
/* Short pulse · glow is the green face, tight so it does not halo the modal. */
dialog.modal.modal--start .start-confirm__actions .btn.btn--go:not(:disabled),
dialog.modal.modal--start .start-confirm__actions button.btn.btn--go:not(:disabled) {
  animation: start-activity-glow 0.85s ease-in-out infinite;
}
@keyframes start-activity-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 color-mix(in srgb, var(--btn-face, #34a046) 0%, transparent));
  }
  50% {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--btn-face, #34a046) 88%, #fff));
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal.modal--start .start-confirm__actions .btn.btn--go,
  dialog.modal.modal--start .start-confirm__actions button.btn.btn--go {
    animation: none;
  }
}
dialog.modal.modal--start .btn--go:hover,
dialog.modal.modal--start button.btn.btn--go:hover {
  --btn-face: color-mix(in srgb, #34a046 88%, #fff);
  --btn-lip: #144a20;
  color: #fff;
}
dialog.modal.modal--start .btn--cancel,
dialog.modal.modal--start button.btn.btn--cancel {
  /* Inherit universal lip padding; only allow a shorter face. */
  min-height: 2.15rem;
}
@media (max-width: 45rem) {
  /* Tall phone sheet. Splitter, hero, and padding follow --start-* from the painter. */
  dialog.modal.modal--start {
    top: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
    translate: none;
    aspect-ratio: auto;
    width: auto;
    max-width: none;
    height: calc(100dvh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    overflow: visible;
  }
  .start-confirm__close {
    top: calc(var(--start-hero-top) + 0.45rem);
    right: calc(var(--start-inner-x) + 0.35rem);
  }
  .start-confirm__grid,
  .start-confirm__grid--loot,
  .start-confirm__loot-cols {
    grid-template-columns: 1fr;
  }
  .start-confirm__finds-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .start-confirm__finds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.reward-modal {
  display: grid;
  gap: var(--space-3);
  justify-items: stretch;
}
.reward-modal__group {
  display: grid;
  gap: 0.45rem;
  justify-items: stretch;
}
.reward-modal__group-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9b896;
}
.reward-modal__delta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.reward-modal__delta .icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}
.reward-modal__delta strong {
  font-variant-numeric: tabular-nums;
  color: #b6e6c4;
}
.reward-modal__delta--loss strong {
  color: #ff8a80;
}
.reward-modal__delta span:last-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}



/* Claimed payouts · single-column groups; cards wrap in a compact row. */
.reward-modal__list {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.75rem;
  font-size: 0.92rem;
  width: 100%;
}
.reward-modal__card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  box-sizing: border-box;
  --reward-rim: #e0b050;
  --reward-rim-mid: #6c4728;
  --reward-rivet-hi: #f3d98a;
  --reward-rivet: #b98a3a;
  --reward-rivet-lo: #7a5522;
  /* Fixed tile · bolt rim (gold default · skill tone overrides). */
  width: 8.6rem;
  max-width: 9.35rem;
  padding: 0.55rem 0.4rem 0.65rem;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #241810, #120b07);
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 3px var(--reward-rim),
    inset 0 0 0 5px var(--reward-rim-mid),
    inset 0 0 0 6px #4a2e1a,
    inset 0 0 0 7px #241409,
    0 3px 0 rgba(0, 0, 0, 0.55);
  text-align: center;
  color: #f0e4c8;
}
/* Rivets paint in the border band only · no layout / padding effect. */
.reward-modal__card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--reward-rivet-hi) 0 1px, var(--reward-rivet) 1px 5px, var(--reward-rivet-lo) 5px 6px, #150b05 6px 7px) 0 0 / 7px 7px no-repeat,
    linear-gradient(180deg, var(--reward-rivet-hi) 0 1px, var(--reward-rivet) 1px 5px, var(--reward-rivet-lo) 5px 6px, #150b05 6px 7px) 100% 0 / 7px 7px no-repeat,
    linear-gradient(180deg, var(--reward-rivet-hi) 0 1px, var(--reward-rivet) 1px 5px, var(--reward-rivet-lo) 5px 6px, #150b05 6px 7px) 0 100% / 7px 7px no-repeat,
    linear-gradient(180deg, var(--reward-rivet-hi) 0 1px, var(--reward-rivet) 1px 5px, var(--reward-rivet-lo) 5px 6px, #150b05 6px 7px) 100% 100% / 7px 7px no-repeat;
  box-shadow: none;
}
/* Job affinity colors on skill XP reward rims (match .skill-tint--*). */
.reward-modal__card--skill-gathering,
.reward-modal__card--skill-tree_cutting { --reward-rim: #6fbf6a; --reward-rim-mid: #2f6a2c; --reward-rivet-hi: #b8e8b4; --reward-rivet: #6fbf6a; --reward-rivet-lo: #3a7a36; }
.reward-modal__card--skill-stewardship { --reward-rim: #e0b44a; --reward-rim-mid: #7a5a18; --reward-rivet-hi: #f3d98a; --reward-rivet: #e0b44a; --reward-rivet-lo: #9a7020; }
.reward-modal__card--skill-cooking { --reward-rim: #e07a4a; --reward-rim-mid: #7a3a18; --reward-rivet-hi: #f0b898; --reward-rivet: #e07a4a; --reward-rivet-lo: #9a4820; }
.reward-modal__card--skill-fire_making { --reward-rim: #ff7a3a; --reward-rim-mid: #8a3a12; --reward-rivet-hi: #ffb890; --reward-rivet: #ff7a3a; --reward-rivet-lo: #b85018; }
.reward-modal__card--skill-fishing { --reward-rim: #4aa8e0; --reward-rim-mid: #1a4a6a; --reward-rivet-hi: #a8d8f0; --reward-rivet: #4aa8e0; --reward-rivet-lo: #2878a8; }
.reward-modal__card--skill-farming,
.reward-modal__card--skill-exploration { --reward-rim: #8bc34a; --reward-rim-mid: #3a5a18; --reward-rivet-hi: #c8e898; --reward-rivet: #8bc34a; --reward-rivet-lo: #5a8a28; }
.reward-modal__card--skill-mining { --reward-rim: #8aa0b8; --reward-rim-mid: #3a4a5a; --reward-rivet-hi: #c8d4e0; --reward-rivet: #8aa0b8; --reward-rivet-lo: #5a7088; }
.reward-modal__card--skill-smelting { --reward-rim: #e07040; --reward-rim-mid: #7a3018; --reward-rivet-hi: #f0b090; --reward-rivet: #e07040; --reward-rivet-lo: #9a4820; }
.reward-modal__card--skill-smithing { --reward-rim: #9aa4b2; --reward-rim-mid: #4a5058; --reward-rivet-hi: #d0d6de; --reward-rivet: #9aa4b2; --reward-rivet-lo: #6a7480; }
.reward-modal__card--skill-strength { --reward-rim: #e06060; --reward-rim-mid: #6a2020; --reward-rivet-hi: #f0a8a8; --reward-rivet: #e06060; --reward-rivet-lo: #9a3030; }
.reward-modal__card--skill-hacking { --reward-rim: #a070e0; --reward-rim-mid: #402060; --reward-rivet-hi: #d0b0f0; --reward-rivet: #a070e0; --reward-rivet-lo: #6840a0; }
.reward-modal__card--skill-crafting { --reward-rim: #b88850; --reward-rim-mid: #5a3a18; --reward-rivet-hi: #e0c898; --reward-rivet: #b88850; --reward-rivet-lo: #7a5828; }
.reward-modal__card--level { --reward-rim: #e0b44a; --reward-rim-mid: #7a5a18; --reward-rivet-hi: #f3d98a; --reward-rivet: #e0b44a; --reward-rivet-lo: #9a7020; }
.reward-modal__card--currency { --reward-rim: #e0b050; --reward-rim-mid: #6c4728; }
.reward-modal__card::after {
  content: none;
}
.reward-modal__card-label {
  display: grid;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.3em;
  max-height: 2.3em;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e8dcc4;
  line-height: 1.15;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.reward-modal__card-payload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}
.reward-modal__card-icon,
.reward-modal__card .icon,
.reward-modal__card img {
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.reward-modal__card--streak .reward-modal__card-icon,
.reward-modal__card--streak .reward-modal__card-icon img {
  width: 3.45rem;
  height: 3.45rem;
}
.reward-modal__card strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 800;
  color: #b6e6c4;
  line-height: 1.1;
}
.reward-modal__card--loss strong {
  color: #ff8a80;
}
.reward-modal__copy {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .reward-modal__list {
    grid-template-columns: repeat(2, minmax(0, 7.35rem));
    max-width: calc(2 * 7.35rem + 0.75rem);
  }
  .reward-modal__card {
    max-width: 7.35rem;
  }
}
.reward-modal__when {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  grid-column: 1 / -1;
  text-align: center;
}
.reward-modal__when-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #e8dcc4 78%, transparent);
}
.reward-modal__when-stamps {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}
.reward-modal__when .date-stamp {
  font-size: 0.98rem;
  padding: 0.38rem 0.9rem 0.38rem 0.7rem;
}
.reward-modal__when .date-stamp::before {
  width: 0.5rem;
  height: 0.5rem;
}
.reward-modal__when .date-stamp--remain {
  color: #f6e6c0;
}
dialog.modal.modal--earn.modal--reward,
dialog.modal.modal--earn.modal--reward .earn-stage-panel.modal__panel.pixel-frame {
  width: min(26rem, calc(100vw - 1.5rem));
  max-width: min(26rem, calc(100vw - 1.5rem));
}
dialog.modal.modal--earn.modal--reward .modal__panel.pixel-frame {
  background: var(--slate-window);
  color: #e8dcc4;
  box-shadow: none;
}
dialog.modal.modal--earn.modal--reward .earn-stage__body {
  padding: 0.85rem 0.9rem 1rem;
  background: transparent;
  max-height: min(70vh, 28rem);
}
/* Claim rows match Steward record tiles: inset bed, icon, name, amount. */
dialog.modal.modal--reward .earn-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 0.45rem;
}
dialog.modal.modal--reward .earn-stage__grid > .earn-slot,
dialog.modal.modal--reward .earn-claim-list__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 0.55rem 0.7rem;
  text-align: left;
  border: var(--inset-border, 1px solid #1a0e06);
  border-radius: 3px;
  background: var(--inset-bg, rgb(14 9 6 / 55%));
  box-shadow: var(--inset-shadow, inset 0 3px 9px rgb(0 0 0 / 65%));
}
dialog.modal.modal--reward .earn-slot::before,
dialog.modal.modal--reward .earn-slot::after { content: none; }
dialog.modal.modal--reward .earn-slot__well {
  order: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
dialog.modal.modal--reward .earn-slot__well::before { content: none; }
dialog.modal.modal--reward .earn-slot__well img,
dialog.modal.modal--reward .earn-slot__well svg,
dialog.modal.modal--reward .earn-slot__well .icon {
  width: 1.75rem;
  height: 1.75rem;
  filter: none;
}
dialog.modal.modal--reward .earn-slot__plate {
  order: 1;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #f6e6c0;
}
dialog.modal.modal--reward .earn-slot__vals {
  order: 2;
  margin: 0 0 0 auto;
}
dialog.modal.modal--reward .earn-slot__val {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 1.05rem;
  color: #f6e6c0;
  text-shadow: none;
}
/*
 * Claimed confirm · wood v2 rim (pixel-frame--beams) · slate fills the inner well.
 * Gold bolt rim stays on .reward-modal__card tiles only.
 */
dialog.modal.modal--reward .modal__panel.pixel-frame {
  position: relative;
  border-radius: 0;
  background: var(--slate-window);
  color: #e8eef6;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
dialog.modal.modal--reward .modal-wood-head {
  height: auto;
  min-height: 0;
  background: none;
  overflow: visible;
}
dialog.modal.modal--reward .modal-wood-head.pixel-frame--bar::after,
dialog.modal.modal--reward .modal-head-split { display: none; }
dialog.modal.modal--reward .modal-wood-head h2 {
  position: static;
  right: auto;
  bottom: auto;
  padding: 0.85rem 2.75rem 0.2rem 1rem;
  background: none;
}
dialog.modal.modal--reward .modal__panel.pixel-frame::before {
  content: none;
}
dialog.modal.modal--reward .modal-wood-head {
  color: #e8dcc4;
}
dialog.modal.modal--reward .modal__body.reward-modal,
dialog.modal.modal--reward .earn-stage__body {
  margin: 0;
  background: transparent;
  border-radius: 0;
  color: #e8eef6;
}
dialog.modal#admin-currency-modal .modal__panel.pixel-frame,
dialog.modal#admin-give-modal .modal__panel.pixel-frame {
  background: var(--wood-plank);
  color: #e8dcc4;
}
dialog.modal.modal--chikonomicon .chikonomicon__tabs {
  margin: 0;
  /* Keep sign-clear · earlier flat pad let the plaque overlap Affinities/Condensing. */
  justify-content: center;
  padding:
    calc(var(--set1-sign-clear, 4.75rem) + 0.35rem)
    var(--set1-vine-gutter, 52px)
    0.55rem;
}
.activity-card__claimed,
.activity-card__duration,
.activity-card__art-actions {
  position: absolute;
  /* Sit just under the top wood rim. The completion bar lives at the scene bottom. */
  --card-badge-top: 0.32rem;
  top: var(--card-badge-top);
  bottom: auto;
  z-index: 5;
}
.activity-card__claimed,
.activity-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.45rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgb(0 0 0 / 48%);
  background: rgb(6 12 22 / 84%);
  color: #e8edf4;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgb(0 0 0 / 65%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 38%);
  pointer-events: none;
}



/* Start / Unlock / Claim · centered in the art header with the counters. */
.activity-card__art-actions {
  left: 50%;
  right: auto;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 7.5rem);
  transform: translateX(-50%);
  pointer-events: auto;
}
.activity-card__art-actions .activity-card__actions {
  width: auto;
  margin: 0;
}
.activity-card__art-actions .activity-card__actions form,
.activity-card__art-actions .activity-card__start-row {
  width: auto;
  max-width: none;
  min-height: 0;
}
.activity-card__art-actions .activity-card__actions .btn {
  --btn-pad-x: 1.1rem;
  --btn-depth-rest: 5px;
  width: auto;
  min-width: 4.75rem;
  max-width: 9.5rem;
  min-height: 1.85rem;
  padding: 0.22rem var(--btn-pad-x);
  font-size: 0.82rem;
  background-image:
    var(--btn-nail),
    var(--btn-nail),
    var(--btn-nail),
    var(--btn-nail),
    var(--btn-grain-a),
    var(--btn-grain-b),
    var(--btn-plate);
  background-size:
    6px 6px,
    6px 6px,
    6px 6px,
    6px 6px,
    100% 100%,
    100% 100%,
    100% 100%;
  background-position:
    left 5px top 5px,
    left 5px bottom 5px,
    right 5px top 5px,
    right 5px bottom 5px,
    0 0,
    0 0,
    0 0;
}
.activity-card__claimed {
  left: calc(1.45rem - 6px);
}
.activity-card__duration {
  right: calc(1.45rem - 6px);
  left: auto;
}
.activity-card__duration .activity-card__clock {
  width: 0.85rem;
  height: 0.85rem;
  border-width: 1.5px;
  font-size: 0.55rem;
  margin: 0;
}
.activity-card__duration--locked {
  color: #c2ccd8;
}
.activity-card__claimed .icon {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.9;
}
.activity-card__badge--green { color: #98d46a; }
.activity-card__badge--gold { color: #f1c36a; }
.activity-card__badge--blue { color: #7fb4f7; }
.activity-card__badge--plum { color: #d090c8; }
.activity-card h3 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.1;
  color: var(--ink-strong);
}
/* Title + blurb · one inset so side border décor does not crowd copy. */
.activity-card__copy {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0 0.2rem;
  padding-inline: 1.15rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.activity-card__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}
.activity-card__title .activity-card__badge {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  align-self: center;
}
.activity-card__title h3 {
  flex: 1 1 auto;
  min-width: 0;
}
.activity-card__desc {
  margin: 0;
}
.start-confirm.activity-guide--locked .start-confirm__finds {
  opacity: 1;
  filter: none;
}
/* Circular ? help · tracks each card's scene glow under the wood beam. */
.activity-info {
  --info-face: var(--scene-glow-mid, #c4894a);
  --info-hi: var(--scene-glow-hi, #d4a060);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--info-face) 55%, #1a1008);
  border-radius: 50%;
  background: var(--info-face);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgb(0 0 0 / 45%);
  cursor: pointer;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--info-face) 40%, transparent),
    0 0 8px color-mix(in srgb, var(--info-face) 35%, transparent),
    0 0.12rem 0.3rem rgb(0 0 0 / 28%);
}
.activity-info:hover,
.activity-info:focus-visible {
  background: var(--info-hi);
  border-color: color-mix(in srgb, var(--info-hi) 60%, #1a1008);
  color: #fff;
  outline: none;
}
.activity-card--locked {
  opacity: 1;
  border-color: color-mix(in srgb, #ca7b76 62%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ca7b76 22%, transparent), color-mix(in srgb, #5a2020 28%, transparent)),
    color-mix(in srgb, #2a1216 55%, var(--panel, #121820));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #ca7b76 28%, transparent),
    inset 0 1px 0 rgb(255 200 190 / 6%),
    0 10px 22px rgb(0 0 0 / 18%);
}
.activity-card--locked.pixel-frame {
  border-color: transparent;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
.activity-card--locked .activity-card__art--dim::before {
  background: rgb(60 12 18 / 38%);
}
.activity-card--locked .activity-card__badge {
  opacity: 0.55;
  filter: saturate(0.7) brightness(0.78);
}



/* Future location unlocks · Locked Activity scene fills the card inside wood rim v2. */
.activity-card--mystery {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  aspect-ratio: 334 / 272;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  overflow: visible;
}
.activity-card--mystery.pixel-frame {
  /* Scene keeps the painting ratio. Extra height, if any, is sky above the picture. */
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  overflow: visible;
}
.activity-card--mystery::before {
  display: none;
}
.activity-card__locked-scene {
  container-type: inline-size;
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 334 / 272;
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.activity-card__locked-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.activity-card__locked-sign,
.activity-card__locked-lock,
.activity-card__locked-info {
  position: absolute;
  box-sizing: border-box;
  z-index: 2;
}
.activity-card__locked-sign {
  left: 27%;
  top: 60.5%;
  width: 45.9%;
  height: 19.5%;
}
.activity-card__locked-sign-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.6cqw 0.6cqw rgba(0, 0, 0, 0.55));
}
.activity-card__locked-nails {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 3.5% 52%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 96.5% 52%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 3.5% 88%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 96.5% 88%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw);
  pointer-events: none;
}
.activity-card__locked-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  bottom: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  font-size: 6.4cqw;
  line-height: 1;
  letter-spacing: 0.07em;
  color: #f6e6c0;
  -webkit-text-stroke: 0.55cqw #3a1d0e;
  paint-order: stroke fill;
  text-shadow: 0 0.5cqw 0 #2a1208;
  padding-top: 0.6cqw;
  pointer-events: none;
}
.activity-card__locked-info {
  left: 24%;
  top: 80.8%;
  width: 52%;
  height: 12.2%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0.7cqw;
  border: 0.25cqw solid #1c0f07;
  color: #f6e6c0;
  font-weight: 700;
  font-size: 3.15cqw;
  line-height: 1.18;
  padding: 0 3cqw;
  text-shadow: 0 0.25cqw 0 rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(circle at 3% 18%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 97% 18%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 3% 82%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    radial-gradient(circle at 97% 82%, #d8c088 0 0.3cqw, #5a4a22 0.35cqw 0.5cqw, transparent 0.55cqw),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 0.9cqw, rgba(0, 0, 0, 0.18) 0.9cqw 1cqw),
    linear-gradient(#4a2e1c, #34201a 55%, #2a1812);
  box-shadow:
    inset 0 0.25cqw 0 rgba(255, 210, 160, 0.22),
    inset 0 -0.4cqw 0 rgba(0, 0, 0, 0.35),
    0 0.7cqw 1cqw rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.activity-card__locked-lock {
  left: 44.6%;
  top: 53.6%;
  width: 10.8%;
  aspect-ratio: 60 / 66;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transform-origin: 50% 22%;
  filter:
    drop-shadow(0 0.5cqw 0.5cqw rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 1.6cqw rgba(255, 190, 70, 0.35));
}
.activity-card__locked-lock svg {
  display: block;
  width: 100%;
  height: 100%;
}
.activity-card__locked-lock:focus-visible {
  outline: 0.3cqw solid #fff2b0;
  outline-offset: 0.4cqw;
  border-radius: 1cqw;
}
.activity-card__locked-lock.shake {
  animation: locked-lock-shake 0.5s;
}
@keyframes locked-lock-shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-9deg); }
  35% { transform: rotate(8deg); }
  55% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
}
.activity-card__locked-glint {
  animation: locked-lock-glint 4.5s ease-in-out infinite;
}
@keyframes locked-lock-glint {
  0%, 60% { transform: translateX(-40px) skewX(-20deg); }
  85%, 100% { transform: translateX(70px) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__locked-lock.shake,
  .activity-card__locked-glint {
    animation: none !important;
  }
}
html:not([data-full-quality="1"]) .activity-card__locked-glint {
  animation: none !important;
}
.activity-card__status--locked,
.activity-card__status--locked .activity-card__clock,
.activity-card__status--locked .icon {
  color: var(--danger, #ca7b76);
}
.activity-card__chip--coin {
  color: #e0b45a;
  border-color: #6e5525;
}
.activity-card__chip--secondary {
  opacity: 0.88;
  font-size: 0.72rem;
}
.activity-guide {
  display: grid;
  gap: 0.85rem;
  margin: 5px;
}
.activity-guide__bundle {
  container-type: inline-size;
  margin: 0;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 0;
  border: 0 !important;
  border-image: none !important;
  background: var(--slate-well);
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
  color: #e8eef6;
}
.activity-guide__bundle-head {
  position: relative;
  min-height: 2.4rem;
  margin: 0 0 0.7rem;
}
.activity-guide__bundle-copy {
  display: grid;
  gap: 0.12rem;
  max-width: calc(50% - 0.35rem);
  min-width: 0;
  justify-self: start;
}
.activity-guide__bundle-copy h3,
.activity-guide__bundle-copy .activity-guide__bundle-meta {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-guide__bundle-head :is(.activity-guide__actions, .activity-guide__bundle-done) {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.activity-guide__bundle-head .activity-guide__submit,
.activity-guide__bundle-head .activity-guide__submit-btn,
.activity-guide__bundle-head .activity-guide__bundle-done {
  margin: 0;
}
.activity-guide__bundle-head .activity-guide__submit-btn {
  min-width: 0;
  width: auto;
  white-space: nowrap;
}
@container (max-width: 34rem) {
  .activity-guide__bundle-copy {
    max-width: none;
    width: 100%;
    padding-right: 7.4rem;
  }
  .activity-guide__bundle-head :is(.activity-guide__actions, .activity-guide__bundle-done) {
    left: auto;
    right: 0;
    transform: translateY(-50%);
  }
}
@media (max-width: 45rem) {
  .activity-guide__bundle {
    padding-inline: 0.35rem;
  }
}
.activity-guide__bundle h3,
.activity-guide__block h3 {
  margin: 0 0 0.35rem;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.activity-guide__bundle-meta {
  margin: 0 0 0.7rem;
  color: #f3e7d6;
  font-size: var(--text-sm);
  text-shadow: 0 1px 0 rgba(20, 10, 4, 0.45);
}
.activity-guide__hint {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.activity-guide__block {
  margin: 0;
  /* Set: card. */
  --frame-pad-y: 0.45rem;
  --frame-pad-x: 0.55rem;
  border-radius: 0;
  border: 0 !important;
  border-image: none !important;
  background: var(--wood-plank);
  box-shadow: 0 8px 18px rgb(0 0 0 / 32%);
  color: #e8dcc4;
}
.activity-guide__block--finds,
.activity-guide__block--recipes {
  /* Tone stays on the wood bed · rim is the shared thin stack. */
  border-color: transparent;
}
.activity-guide__bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 0.85rem 0.7rem;
  align-items: stretch;
}
/* Locked location Start/Info · fixed 4 columns (sparse rows keep left slots). */
dialog.modal.modal--start .activity-guide__bundle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.activity-guide__base {
  box-sizing: border-box;
  width: 100%;
  margin: 0.7rem 0 0;
  padding: 0;
  background: transparent;
  color: #e8eef6;
}
/* Legacy HR kept if any old markup remains. */
.activity-guide__bundle-rule {
  width: 100%;
  margin: 0.85rem 0 0.55rem;
  border: 0;
  border-top: 1px solid color-mix(in srgb, #cdb47c 45%, #3a2818);
}
.activity-guide__base-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #c5d4e6 82%, transparent);
}
.activity-guide__base-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr));
  gap: 0.45rem 0.35rem;
  justify-items: center;
}
.activity-guide__base-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.2rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.activity-guide__base-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0.2rem;
  border: 1px solid #2a3a4e;
  background: rgb(8 12 18 / 72%);
  box-shadow: inset 0 0 0 1px #0c1218;
}
.activity-guide__base-name {
  max-width: 4.8rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #e8eef6;
}
.activity-guide__base-item img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.activity-guide__base-art .activity-guide__base-qty {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 1rem;
  padding: 0 0.15rem;
  border-radius: 0;
  background: #0c1218;
  color: #e8eef6;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 0 0 1px #3a2818;
}
.activity-guide__cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}
.guide-card {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  min-width: 0;
}
/*
 * Unlock-bundle submission tile · dark well + status rim + overhanging progress pill
 * (Bundles_Earnings mock).
 */
.guide-card--bundle {
  --bundle-rim: #9a6a38;
  --bundle-rim-deep: #5a3a1c;
  /* Slate blue well · matches panel-strong (not flat black). */
  --bundle-fill: #0b1423;
  --bundle-pill-bg: #4a1410;
  --bundle-pill-rim: #c84840;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 1.15rem 0.7rem 0.7rem;
  border: 2px solid var(--bundle-rim);
  border-radius: 0.45rem;
  background: var(--bundle-fill);
  color: #f6ecdc;
  overflow: visible;
  box-shadow:
    inset 0 0 0 1px #1a1008,
    0 0 0 1px var(--bundle-rim-deep),
    0 5px 12px rgb(0 0 0 / 40%);
}
.guide-card--bundle.guide-card--met {
  --bundle-rim: #3d9a5c;
  --bundle-rim-deep: #1c4a2e;
  --bundle-pill-bg: #163524;
  --bundle-pill-rim: #4ecf70;
}
.guide-card--bundle.guide-card--short {
  --bundle-rim: #9a6a38;
  --bundle-rim-deep: #5a3a1c;
  --bundle-pill-bg: #4a1410;
  --bundle-pill-rim: #c84840;
}
/* Corner notches · mock ornament on the card rim. */
.guide-card--bundle::before,
.guide-card--bundle::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  pointer-events: none;
  border: 1.5px solid var(--bundle-rim);
  background: var(--bundle-fill);
  box-shadow: 0 0 0 1px var(--bundle-rim-deep);
}
.guide-card--bundle::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 0.2rem;
}
.guide-card--bundle::after {
  top: -2px;
  right: -2px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 0.2rem;
}
.guide-card__art {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin-top: 0.15rem;
}
.guide-card__icon {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  image-rendering: pixelated;
}
.guide-card .guide-card__qty {
  position: absolute;
  top: -0.4rem;
  right: -0.45rem;
  z-index: 2;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  border: 2.5px solid #5a1010;
  background: #c62828;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.guide-card__progress {
  justify-self: center;
  min-width: 2.5rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #5a1010;
  background: #8d2a24;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.guide-card--bundle .guide-card__progress {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12rem;
  min-width: 3.6rem;
  padding: 0.28rem 0.62rem 0.26rem;
  border: 1.5px solid var(--bundle-pill-rim);
  border-radius: 0.85rem;
  background: var(--bundle-pill-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgb(0 0 0 / 45%);
}
.guide-card__progress-have,
.guide-card__progress-need {
  font-variant-numeric: tabular-nums;
}
.guide-card__progress-slash {
  font-weight: 800;
  opacity: 0.78;
  font-size: 0.92em;
}
.guide-card__progress-need {
  opacity: 0.95;
}
.tip__qty-line {
  margin: 0.12rem 0 0;
  font-variant-numeric: tabular-nums;
}
.tip__qty-line--frac {
  font-size: 1.05em;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.guide-card__progress--met {
  border-color: #1c4028;
  background: #2f6b45;
}
.guide-card--bundle .guide-card__progress--met {
  border-color: var(--bundle-pill-rim);
  background: var(--bundle-pill-bg);
}
.guide-card__check {
  color: #6dff8a;
  font-size: 0.95em;
  font-weight: 800;
  line-height: 1;
}
.guide-card__icon--coin {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
}
.guide-card__icon--coin .icon,
.guide-card__icon--coin svg {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
}
.activity-guide__item-form {
  margin: 0.2rem 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
button.btn.activity-guide__item-submit {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  /* Same pale blue-gray as upload icon + Need materials. */
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
/* Beat .guide-card span { color: var(--muted) } on the Submit label (not Done). */
button.btn.activity-guide__item-submit:not(.activity-guide__item-submit--done) > span,
button.btn.activity-guide__item-submit:not(.activity-guide__item-submit--done) span:not(.icon) {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font-size: inherit;
}
button.btn.activity-guide__item-submit .icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
button.btn.activity-guide__item-submit--idle,
button.btn.activity-guide__item-submit--idle:hover,
button.btn.activity-guide__item-submit--idle:focus,
button.btn.activity-guide__item-submit--idle:active,
button.btn.activity-guide__item-submit--idle:disabled,
button.btn.activity-guide__item-submit--idle:disabled:hover {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: auto;
  transform: none !important;
  filter: none;
  /* Match Need materials muted ink. */
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
button.btn.activity-guide__item-submit--idle .icon,
button.btn.activity-guide__item-submit--idle > span,
button.btn.activity-guide__item-submit--idle span:not(.icon) {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.activity-guide__item-submit--done {
  --btn-face: color-mix(in srgb, var(--ok) 35%, #1a1007);
  --btn-lip: color-mix(in srgb, var(--ok) 25%, #0a2010);
  color: #b6e6c4;
}
button.btn.activity-guide__item-submit--done:hover,
button.btn.activity-guide__item-submit--done:disabled:hover {
  --btn-face: color-mix(in srgb, var(--ok) 35%, #1a1007);
  --btn-lip: color-mix(in srgb, var(--ok) 25%, #0a2010);
  color: #b6e6c4;
  transform: none !important;
}
.guide-card strong {
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: calc(1.15em * 2);
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;
}
.guide-card--bundle > strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 0;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  color: #fff8ec;
}
.guide-card span {
  font-size: 0.65rem;
  color: var(--muted);
}
/* Beat .guide-card span muted/small so the fraction stays large + white. */
.guide-card--bundle .guide-card__progress > span {
  font-size: inherit;
  color: inherit;
}
.guide-card--bundle .guide-card__check {
  color: #6dff8a;
  font-size: 0.85em;
  align-self: center;
}
.activity-guide__actions {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}
.activity-guide__actions .activity-guide__submit {
  margin: 0;
}
.activity-guide__actions .activity-guide__submit-btn {
  margin-top: 0;
}
.activity-guide__submit {
  margin: 1.15rem 0 0;
  display: flex;
  justify-content: center;
}
.activity-guide__submit + .activity-guide__submit {
  margin-top: 0.55rem;
}
.activity-guide__submit-btn {
  width: auto;
  min-width: 11rem;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.9rem;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 1;
}
.activity-guide__submit-btn:disabled,
.activity-guide__submit-btn:disabled:hover,
.activity-guide__submit-btn:disabled:focus,
.activity-guide__submit-btn:disabled:active {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  transform: none !important;
  filter: none;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.activity-guide__submit-btn--ready,
.activity-guide__submit-btn--ready:hover {
  --btn-face: var(--ok);
  --btn-lip: color-mix(in srgb, var(--ok) 45%, #0a2010);
  opacity: 1;
  color: #07140c;
}
/* Glowing light-blue Unlock · pulse family kept (Start uses green). */
.activity-guide__submit-btn--unlock,
.activity-guide__submit-btn--unlock:hover,
.btn--unlock,
button.btn--unlock {
  --btn-face: #1f6ec4;
  --btn-lip: #0d3a78;
  opacity: 1;
  color: #fff;
  border-radius: 0;
  font-family: var(--font-pixel), "Press Start 2P", "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  animation: unlock-pulse 1.8s ease-in-out infinite;
}
@keyframes unlock-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .activity-guide__submit-btn--unlock { animation: none; }
}
.activity-guide__bundle-done {
  margin: 1.15rem 0 0;
  color: color-mix(in srgb, var(--ok) 55%, #fff);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.activity-guide--locked {
  opacity: 1;
  filter: none;
}
.activity-guide--locked .activity-guide__hint {
  color: var(--muted);
}
@media (max-width: 70rem) {
  .activity-guide__cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .activity-guide__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .activity-guide__bundle-grid {
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  }
  dialog.modal.modal--start .activity-guide__bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.activity-card__desc {
  margin: 0 0 0.4rem;
  color: #d2d9e3;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 2.85rem;
}
.activity-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 0.55rem;
}
.activity-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #38506b;
  background: rgb(10 23 39 / 74%);
  color: #c8d2df;
  font-size: 0.75rem;
  white-space: nowrap;
}
.activity-card__chip--skill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-strong);
  border-color: var(--line-alt, var(--line-soft));
}
.activity-card__chip--skill .icon {
  width: 0.95em;
  height: 0.95em;
  color: var(--gold);
}
.activity-card__chip--xp { color: #ffd46c; border-color: #6e5525; }
.activity-card__chip--ep { color: #9cc6ff; border-color: #3d5f89; }
.activity-card__foot {
  /* Legacy · Start/Claim live in .activity-card__art-actions now. */
  display: none;
}
/*
 * Walk crystal-orb test · wood rim stays (.pixel-frame).
 * Orbs + border crystals from Affinity-Rewards_Redesign demo.
 */
.activity-card--crystal-orbs {
  isolation: isolate;
  overflow: visible;
}
.activity-card--crystal-orbs.pixel-frame {
  /* Body fill · each location sets --scene-body-* (demo g1/g2/g3). Header art covers the top. */
  background:
    radial-gradient(1.5px 1.5px at 22% 62%, color-mix(in srgb, var(--scene-plate-tint, #c9b6ff) 50%, transparent) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 78%, color-mix(in srgb, var(--scene-plate-tint, #c9b6ff) 40%, transparent) 50%, transparent 51%),
    radial-gradient(ellipse at 50% 70%, var(--scene-body-1, #24160c) 0%, var(--scene-body-2, #160e08) 48%, var(--scene-body-3, #0c0805) 100%);
}
.activity-card--crystal-orbs .activity-card__art {
  height: 8.5rem;
  z-index: 4;
}
.activity-card--crystal-orbs .activity-card__art--walk-scene {
  background-color: #14204a;
  background-image: none;
}
/* Holiday gallery · the painting is 472x140. A short strip was slicing the sides off. */
.activity-card--holiday-preview .activity-card__art {
  height: auto;
  aspect-ratio: 472 / 140;
  min-height: 0;
}
.activity-card--holiday-preview .activity-card__walk-scene svg {
  object-fit: contain;
}
.activity-card__walk-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.activity-card__walk-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .activity-card__walk-scene .walk-tw {
    animation: walk-scene-tw 2.8s ease-in-out infinite alternate;
  }
  .activity-card__walk-scene .walk-tw2 {
    animation: walk-scene-tw 1.9s ease-in-out infinite alternate-reverse;
  }
  .activity-card__walk-scene .walk-rain {
    animation: walk-scene-rain 0.9s linear infinite;
  }
  .activity-card__walk-scene .walk-fall {
    animation: walk-scene-fall 0.7s linear infinite;
  }
  .activity-card__walk-scene .walk-bob {
    animation: walk-scene-bob 0.5s steps(1) infinite;
  }
  .activity-card__walk-scene .walk-bob2 {
    animation: walk-scene-bob 0.5s steps(1) -0.25s infinite;
  }
  .activity-card__walk-scene .walk-smoke {
    animation: walk-scene-smoke 4s linear infinite;
  }
  .activity-card__walk-scene .walk-smoke:nth-of-type(2) { animation-delay: -1.3s; }
  .activity-card__walk-scene .walk-smoke:nth-of-type(3) { animation-delay: -2.6s; }
  .activity-card__walk-scene .walk-ff {
    animation: walk-scene-ff 6s ease-in-out infinite alternate;
  }
  .activity-card__walk-scene .walk-ff:nth-of-type(2n) {
    animation-duration: 8s;
    animation-delay: -2s;
  }
  .activity-card__walk-scene .walk-mist {
    animation: walk-scene-tw 4s ease-in-out infinite alternate;
  }
  .activity-card__walk-scene .walk-flick {
    animation: walk-scene-tw 0.8s ease-in-out infinite alternate;
  }
}
@keyframes walk-scene-tw {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
@keyframes walk-scene-rain {
  to { transform: translateY(36px); }
}
@keyframes walk-scene-fall {
  to { transform: translateY(24px); }
}
@keyframes walk-scene-bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes walk-scene-smoke {
  from { transform: translate(0, 0); opacity: 0.55; }
  to { transform: translate(8px, -26px); opacity: 0; }
}
@keyframes walk-scene-ff {
  from { transform: translate(0, 0); }
  to { transform: translate(14px, -10px); }
}
/*
 * Medium + Low · freeze Lodge board Walk headers (not open Start/Info heroes).
 * Low also freezes modal heroes · Medium/High keep modal scenes live.
 */
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-tw,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-tw2,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-rain,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-fall,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-bob,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-bob2,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-smoke,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-ff,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-mist,
html:not([data-quality="high"]) .activity-cards .activity-card__walk-scene .walk-flick,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-tw,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-tw2,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-rain,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-fall,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-bob,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-bob2,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-smoke,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-ff,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-mist,
html[data-quality="low"] dialog.modal .activity-card__walk-scene .walk-flick,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-tw,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-tw2,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-rain,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-fall,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-bob,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-bob2,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-smoke,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-ff,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-mist,
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene .walk-flick {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__walk-scene .walk-tw,
  .activity-card__walk-scene .walk-tw2,
  .activity-card__walk-scene .walk-rain,
  .activity-card__walk-scene .walk-fall,
  .activity-card__walk-scene .walk-bob,
  .activity-card__walk-scene .walk-bob2,
  .activity-card__walk-scene .walk-smoke,
  .activity-card__walk-scene .walk-ff,
  .activity-card__walk-scene .walk-mist,
  .activity-card__walk-scene .walk-flick {
    animation: none !important;
  }
}



/* Unified scenic hens inside SVG foreignObject (scenic-chiken.js). */
.activity-card__anim-scene .scenic-chiken,
.activity-card__walk-scene .scenic-chiken,
.start-confirm__anim-scene .scenic-chiken {
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.activity-card__anim-scene .scenic-chiken canvas,
.activity-card__walk-scene .scenic-chiken canvas,
.start-confirm__anim-scene .scenic-chiken canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
/* Affinity Rewards scenes (lodge / forest / harbor / farm / mine).
 * Keep fill-box off pb/ph/pk · absolute transform-origins break with fill-box.
 * Hens via ChikenScenic.slot only · no spr(W|H) hen drawers. */
.activity-card__anim-scene .acs-lf,
.activity-card__anim-scene .acs-sway,
.activity-card__anim-scene .acs-sw,
.activity-card__anim-scene .acs-swing,
.activity-card__anim-scene .acs-swing--soft,
.activity-card__anim-scene .acs-flame {
  transform-box: fill-box;
}
/* Nested rocks · fill-box center. Farm mill hub uses inline px + view-box. */
.activity-card__anim-scene .acs-spin {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.activity-card__anim-scene .acs-spin[style*="transform-origin"] {
  transform-box: view-box;
}
/*
 * Lodge cards stay still on the board by default. Settings → Graphics →
 * Board scenes (data-lodge-scenes=on) lets ACS/walk headers animate.
 * Start/claim modal heroes always animate (not under .activity-cards).
 */
html:not([data-lodge-scenes="on"]) .activity-cards > .activity-card .activity-card__anim-scene [class^="acs-"],
html:not([data-lodge-scenes="on"]) .activity-cards > .activity-card .activity-card__anim-scene [class*=" acs-"],
html:not([data-lodge-scenes="on"]) .activity-cards > .activity-card .activity-card__walk-scene [class^="walk-"],
html:not([data-lodge-scenes="on"]) .activity-cards > .activity-card .activity-card__walk-scene [class*=" walk-"],
html:not([data-lodge-scenes="on"]) .activity-cards > .activity-card .scenic-chiken-slot .scenic-chiken {
  animation: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .activity-card__anim-scene .acs-tw {
    animation: acs-twinkle 2.8s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-tw2 {
    animation: acs-twinkle 1.9s ease-in-out infinite alternate-reverse;
  }
  .activity-card__anim-scene .acs-bob {
    animation: walk-scene-bob 0.5s steps(1) infinite;
  }
  .activity-card__anim-scene .acs-bob2 {
    animation: walk-scene-bob 0.5s steps(1) -0.25s infinite;
  }
  /*
   * Do NOT bob the SVG <g> or the HTML shell around foreignObject hens.
   * CSS transform on the FO wrapper wiped translate (hens stacked at origin).
   * Whole-canvas bob also lifted planted legs · idle bounce lives in the
   * portrait paint (body vs legs) instead.
   */
  .activity-card__anim-scene .scenic-chiken-slot > .acs-bob,
  .activity-card__anim-scene .scenic-chiken-slot > .acs-bob2,
  .activity-card__walk-scene .scenic-chiken-slot > .acs-bob,
  .activity-card__walk-scene .scenic-chiken-slot > .acs-bob2,
  .start-confirm__anim-scene .scenic-chiken-slot > .acs-bob,
  .start-confirm__anim-scene .scenic-chiken-slot > .acs-bob2,
  .activity-card__anim-scene .scenic-chiken-slot .scenic-chiken,
  .activity-card__walk-scene .scenic-chiken-slot .scenic-chiken,
  .start-confirm__anim-scene .scenic-chiken-slot .scenic-chiken {
    animation: none !important;
  }
  .activity-card__anim-scene .acs-smoke {
    animation: walk-scene-smoke 4s linear infinite;
  }
  .activity-card__anim-scene .acs-smoke:nth-of-type(2) { animation-delay: -1.3s; }
  .activity-card__anim-scene .acs-smoke:nth-of-type(3) { animation-delay: -2.6s; }
  .activity-card__anim-scene .acs-ff {
    animation: walk-scene-ff 6s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-ff:nth-of-type(2n) {
    animation-duration: 8s;
    animation-delay: -2s;
  }
  .activity-card__anim-scene .acs-flick {
    animation: acs-flicker 2.2s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-wag {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: acs-wag 3.4s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-gf {
    animation: acs-gf 3s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-flame {
    transform-origin: 50% 100%;
    animation: acs-flame 0.45s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-swing {
    animation: acs-sway 3s ease-in-out infinite alternate;
  }
  /* Mine lantern · milder sway than generic swing. */
  .activity-card__anim-scene .acs-swing--soft {
    animation: acs-sway-soft 4.2s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-sway {
    transform-origin: 50% 0;
    animation: acs-sway 2.6s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-sw {
    transform-origin: 50% 100%;
    animation: acs-sway2 2.4s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-lf {
    animation: acs-lf 7s linear infinite;
  }
  .activity-card__anim-scene .acs-beam {
    animation: acs-beam 6s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-dr {
    animation: acs-dr 40s linear infinite;
  }
  .activity-card__anim-scene .acs-dr-rtl {
    animation: acs-dr-rtl 40s linear infinite;
  }
  .activity-card__anim-scene .acs-wv {
    animation: acs-wv 3s linear infinite;
  }
  .activity-card__anim-scene .acs-spin {
    animation: acs-spin 9s linear infinite;
  }
  .activity-card__anim-scene .acs-dust {
    animation: acs-dust 5s linear infinite;
  }
  .activity-card__anim-scene .acs-pk {
    animation: acs-pk 1.1s ease-in infinite;
  }
  .activity-card__anim-scene .acs-dig,
  .start-confirm__anim-scene .acs-dig {
    animation: acs-dig 1.85s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-pb {
    animation: acs-pb 2.4s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-ph {
    animation: acs-ph 2.4s ease-in-out infinite;
  }
  /* Late Affinity Rewards scenes (Neon..Desert) */
  .activity-card__anim-scene .acs-rn {
    animation: acs-rn 0.9s linear infinite;
  }
  .activity-card__anim-scene .acs-fy {
    animation: acs-fy 3.2s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-zap {
    animation: acs-zap 5s steps(1) infinite;
  }
  .activity-card__anim-scene .acs-up {
    animation: acs-up 5s linear infinite;
  }
  .activity-card__anim-scene .acs-pl {
    transform-origin: 50% 50%;
    animation: acs-pl 3s ease-in-out infinite alternate;
  }
  /* Black Hole · rings marquee inward into the event horizon, then reappear outside. */
  .activity-card__anim-scene .acs-sink {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: acs-sink 3.3s linear infinite;
  }
  .activity-card__anim-scene .acs-dsh {
    animation: acs-dsh 2.5s linear infinite;
  }
  .activity-card__anim-scene .acs-drop {
    animation: acs-dust 2.4s ease-in infinite;
  }
  .activity-card__anim-scene .acs-lsw {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: acs-sway 5.5s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-brs {
    transform-box: fill-box;
    transform-origin: 80% 80%;
    animation: acs-brs 2.8s ease-in-out infinite;
  }
  /* Sheep neck · view-box so 110,100 is the neck, not a point outside the head. */
  .activity-card__anim-scene .acs-nib {
    transform-box: view-box;
    transform-origin: 110px 100px;
    animation: acs-nib 2.4s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-fbob {
    animation: walk-scene-bob 1.2s steps(1) infinite;
  }
  .activity-card__anim-scene .acs-tl {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: acs-tl 3.4s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-chw {
    transform-box: fill-box;
    animation: acs-chw 1.4s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-shake {
    animation: acs-shake 0.45s ease-in-out infinite alternate;
  }
  /* Late scene character beats (Dojo / Volcano / Tundra / Black Hole). */
  .activity-card__anim-scene .acs-atk,
  .activity-card__anim-scene .acs-dge,
  .activity-card__anim-scene .acs-jmp,
  .activity-card__anim-scene .acs-sld {
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }
  .activity-card__anim-scene .acs-drf {
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }
  .activity-card__anim-scene .acs-atk {
    animation: acs-atk 1.8s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-dge {
    animation: acs-dge 1.8s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-hit {
    animation: acs-hit 1.8s linear infinite;
  }
  .activity-card__anim-scene .acs-dip {
    animation: acs-dip 1.8s ease-in-out infinite alternate;
  }
  .activity-card__anim-scene .acs-jmp {
    animation: acs-jmp 5s linear infinite;
  }
  .activity-card__anim-scene .acs-sld {
    /* Full round-trip · face flips a beat before the slide reverses. */
    animation: acs-sld 4.4s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-drf {
    animation: acs-drf 6s ease-in-out infinite alternate;
  }
  /* Holiday CH overlays (Christmas gift tug · Thanksgiving hop · Winter flip). */
  .activity-card__anim-scene .acs-hop {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: acs-hop 2.6s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-tug {
    animation: acs-tug 0.5s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-eat {
    animation: acs-eat 1.6s ease-in-out infinite;
  }
  .activity-card__anim-scene .acs-wr {
    animation: acs-wr 8s linear infinite;
  }
  .activity-card__anim-scene .acs-ct {
    animation: acs-ct 8s linear infinite;
  }
  .activity-card__anim-scene .acs-tr {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: acs-tr 8s linear infinite;
  }
  .activity-card__anim-scene .acs-fl {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: acs-fl-mirror 4.4s linear infinite;
  }
}
/*
 * Glow / twinkle / flicker scale off --o (each light's own opacity).
 * A flat 0.3→0.6 was painting every halo the same strength, so faint
 * lamps went solid and designed blooms went dull.
 */
@keyframes acs-gf {
  from { opacity: calc(var(--o, 1) * 0.32); }
  to { opacity: calc(var(--o, 1) * 0.62); }
}
@keyframes acs-twinkle {
  from { opacity: calc(var(--o, 1) * 0.22); }
  to { opacity: calc(var(--o, 1) * 0.55); }
}
/* 0% and 100% match so the loop does not snap. Peak stays under --o. */
@keyframes acs-flicker {
  0% { opacity: calc(var(--o, 0.35) * 0.22); }
  40% { opacity: calc(var(--o, 0.35) * 0.5); }
  70% { opacity: calc(var(--o, 0.35) * 0.32); }
  100% { opacity: calc(var(--o, 0.35) * 0.22); }
}
/* Hanging light wiggle · gentle waft, not a vertical bob. */
@keyframes acs-wag {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}
@keyframes acs-flame {
  from { transform: scale(1.05, 0.88); }
  to { transform: scale(0.95, 1.12); }
}
@keyframes acs-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}
@keyframes acs-sway-soft {
  from { transform: rotate(-1.4deg); }
  to { transform: rotate(1.4deg); }
}
@keyframes acs-sway2 {
  from { transform: rotate(-7deg); }
  to { transform: rotate(7deg); }
}
@keyframes acs-lf {
  from { transform: translate(0, -10px) rotate(0); }
  to { transform: translate(30px, 150px) rotate(260deg); }
}
@keyframes acs-dr {
  from { transform: translateX(0); }
  to { transform: translateX(580px); }
}
@keyframes acs-dr-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-580px); }
}
@keyframes acs-wv {
  to { transform: translateX(-24px); }
}
@keyframes acs-spin {
  to { transform: rotate(360deg); }
}
@keyframes acs-dust {
  from { transform: translateY(0); opacity: 0.7; }
  to { transform: translateY(110px); opacity: 0; }
}
@keyframes acs-pk {
  /* Tighter arcs so pick heads stay inside the scene frame. */
  0%, 100% { transform: rotate(calc(var(--s, 1) * -22deg)); }
  50%, 58% { transform: rotate(calc(var(--s, 1) * 8deg)); }
}
/* Desert shovel · spear thrust, lift, then pull back (not a pickaxe arc). */
@keyframes acs-dig {
  0%, 100% {
    transform: translate(0, 0) rotate(calc(var(--s, 1) * -18deg));
  }
  /* Thrust forward · tip leads into the sand. */
  28% {
    transform: translate(calc(var(--s, 1) * 14px), 4px) rotate(calc(var(--s, 1) * 6deg));
  }
  /* Pull upward · hoist the load. */
  52% {
    transform: translate(calc(var(--s, 1) * 6px), -10px) rotate(calc(var(--s, 1) * -28deg));
  }
  /* Draw back to the ready stance. */
  74% {
    transform: translate(calc(var(--s, 1) * -2px), -2px) rotate(calc(var(--s, 1) * -20deg));
  }
}
/* Farm chicken peck · match Affinity Rewards demo arcs (fill-box still off). */
@keyframes acs-pb {
  0%, 34%, 86%, 100% { transform: translateY(0) rotate(0); }
  42%, 50%, 64%, 72% { transform: translateY(5px) rotate(calc(var(--s, 1) * 18deg)); }
  56% { transform: translateY(2px) rotate(calc(var(--s, 1) * 8deg)); }
}
@keyframes acs-ph {
  0%, 34%, 86%, 100% { transform: rotate(0); }
  42%, 50%, 64%, 72% { transform: rotate(calc(var(--s, 1) * 70deg)); }
  56% { transform: rotate(calc(var(--s, 1) * 20deg)); }
}
@keyframes acs-rn {
  to { transform: translateY(36px); }
}
@keyframes acs-fy {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}
@keyframes acs-zap {
  0%, 40%, 100% { opacity: var(--o, 1); }
  42% { opacity: calc(var(--o, 1) * 0.15); }
  44% { opacity: var(--o, 1); }
  46% { opacity: calc(var(--o, 1) * 0.3); }
  48% { opacity: var(--o, 1); }
}
@keyframes acs-up {
  from { transform: translateY(0); opacity: 0.9; }
  to { transform: translateY(-70px); opacity: 0; }
}
@keyframes acs-pl {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
/* Outer r=34 → ~r=22 (event horizon). Opacity dies as the ring is swallowed. */
@keyframes acs-sink {
  0% { transform: scale(1); opacity: 0.7; }
  80% { opacity: 0.35; }
  100% { transform: scale(0.65); opacity: 0; }
}
@keyframes acs-dsh {
  to { stroke-dashoffset: -56; }
}
@keyframes acs-shake {
  from { transform: rotate(-1.3deg); }
  to { transform: rotate(1.3deg); }
}
@keyframes acs-brs {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -3px); }
}
/* Dip the muzzle into the hay in front of the sheep (same beat as the farm peck). */
@keyframes acs-nib {
  0%, 34%, 86%, 100% { transform: rotate(0); }
  42%, 50%, 64%, 72% { transform: rotate(42deg); }
  56% { transform: rotate(14deg); }
}
@keyframes acs-tl {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}
@keyframes acs-chw {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5px); }
}
@keyframes acs-atk {
  0%, 60%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  34%, 42% { transform: translateX(14px) rotate(-3deg); }
}
@keyframes acs-dge {
  0%, 30%, 52%, 80%, 100% { transform: none; }
  38% { transform: translate(8px, -18px) rotate(12deg); }
  66% { transform: translateX(-16px) rotate(-8deg); }
}
@keyframes acs-hit {
  0%, 30%, 50%, 100% { opacity: 0; }
  34%, 44% { opacity: 1; }
}
@keyframes acs-dip {
  from { transform: rotate(-14deg); }
  to { transform: rotate(22deg); }
}
@keyframes acs-jmp {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  12% { transform: translate(30px, 0); }
  46% { transform: translate(160px, -36px) rotate(-20deg); }
  60% { transform: translate(210px, -56px) rotate(-6deg); }
  76% { transform: translate(262px, -40px) rotate(8deg); }
  90% { transform: translate(290px, 0) rotate(3deg); opacity: 1; }
  100% { transform: translate(304px, 0); opacity: 0; }
}
@keyframes acs-sld {
  0% { transform: translateX(0) scaleX(1); }
  40% { transform: translateX(56px) scaleX(1); }
  46% { transform: translateX(56px) scaleX(-1); }
  90% { transform: translateX(0) scaleX(-1); }
  96%, 100% { transform: translateX(0) scaleX(1); }
}
@keyframes acs-hop {
  0%, 24%, 72%, 100% { transform: translate(0, 0); }
  12% { transform: translate(0, -18px) rotate(-8deg); }
  36% { transform: translate(10px, -14px) rotate(8deg); }
  48% { transform: translate(14px, 0); }
  60% { transform: translate(8px, -18px) rotate(-6deg); }
  84% { transform: translate(-6px, -10px) rotate(6deg); }
}
@keyframes acs-tug {
  0%, 50%, 100% { transform: translateX(0); }
  25% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 1px); }
}
@keyframes acs-eat {
  0%, 100% { transform: translate(0, 0); }
  45%, 55% { transform: translate(-3px, -9px); }
}
@keyframes acs-wr {
  0% { opacity: 0; }
  4%, 36% { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes acs-ct {
  0%, 38% { opacity: 0; }
  42%, 56% { opacity: 1; }
  62%, 100% { opacity: 0; }
}
@keyframes acs-tr {
  0%, 35% { opacity: 0; transform: none; }
  36% { opacity: 1; transform: none; }
  46% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
  100% { opacity: 0; transform: none; }
}
@keyframes acs-fl-mirror {
  0%, 49.99% { transform: scaleX(1); }
  50%, 100% { transform: scaleX(-1); }
}
@keyframes acs-drf {
  from { transform: translate(0, -3px) rotate(-5deg); }
  to { transform: translate(6px, 4px) rotate(5deg); }
}
/* Harbor beam sets --o:0.3. Other beams keep the opacity drawn on the shape. */
.activity-card__anim-scene .acs-beam {
  opacity: var(--o, 1);
}
@keyframes acs-beam {
  from { opacity: calc(var(--o, 1) * 0.28); }
  to { opacity: calc(var(--o, 1) * 0.5); }
}
/*
 * Low · freeze Lodge board headers. Medium freezes idle cards unless Board scenes
 * is On · an active (busy) run keeps its header scene alive on Medium + High.
 * Low also freezes modal heroes.
 */
html[data-quality="low"] .activity-cards .activity-card__anim-scene [class*="acs-"],
html[data-quality="medium"]:not([data-lodge-scenes="on"]) .activity-cards .activity-card:not(.activity-card--busy) .activity-card__anim-scene [class*="acs-"],
html[data-quality="low"] dialog.modal .activity-card__anim-scene [class*="acs-"] {
  animation: none !important;
}
html[data-quality="medium"] .activity-cards .activity-card--busy .activity-card__anim-scene [class*="acs-"],
html[data-quality="medium"] .activity-cards .activity-card--busy .activity-card__walk-scene [class*="walk-"],
html[data-quality="high"] .activity-cards .activity-card--busy .activity-card__anim-scene [class*="acs-"],
html[data-quality="high"] .activity-cards .activity-card--busy .activity-card__walk-scene [class*="walk-"] {
  animation-play-state: running !important;
}
/* Pause Lodge card headers only · open Start/Info dialogs stay live. */
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__anim-scene [class*="acs-"],
html[data-modal-pause="1"] .activity-cards > .activity-card .activity-card__walk-scene [class*="walk-"],
html[data-modal-pause="1"] .activity-cards > .activity-card .scenic-chiken-slot .scenic-chiken {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__anim-scene [class*="acs-"] {
    animation: none !important;
  }
}
.activity-card--crystal-orbs .activity-card__art::after {
  background: linear-gradient(180deg, transparent 40%, rgb(8 4 16 / 55%));
}
.activity-card--crystal-orbs .activity-card__glow-div {
  position: relative;
  z-index: 3;
  height: 3px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--scene-glow-mid, #9a6dff) 15%, var(--scene-glow-hi, #eadcff) 50%, var(--scene-glow-mid, #9a6dff) 85%, transparent);
  box-shadow:
    0 0 10px 1px var(--scene-glow-bloom, rgb(160 120 255 / 55%)),
    0 4px 10px var(--scene-glow-soft, rgb(150 100 255 / 25%));
}
/* Per-card header glow. Body wash is a duller version of that card's border accent. */
.activity-card--lodge.activity-card--crystal-orbs {
  --scene-body-1: #5a4032;
  --scene-body-2: #3a281c;
  --scene-body-3: #1c120c;
  --scene-glow-mid: #8a6244;
  --scene-glow-hi: #c4a070;
  --scene-glow-bloom: rgb(160 110 70 / 38%);
  --scene-glow-soft: rgb(90 60 36 / 22%);
  --scene-plate-tint: #c4a070;
}
.activity-card--forest.activity-card--crystal-orbs {
  --scene-body-1: #2a5340;
  --scene-body-2: #1a3328;
  --scene-body-3: #0e1c16;
  --scene-glow-mid: #3a8a58;
  --scene-glow-hi: #8ed48a;
  --scene-glow-bloom: rgb(90 170 100 / 36%);
  --scene-glow-soft: rgb(40 90 55 / 22%);
  --scene-plate-tint: #8ed48a;
}
.activity-card--harbor.activity-card--crystal-orbs {
  --scene-body-1: #2a4a62;
  --scene-body-2: #1a3044;
  --scene-body-3: #0e1824;
  --scene-glow-mid: #2a86c8;
  --scene-glow-hi: #6ad4ff;
  --scene-glow-bloom: rgb(106 212 255 / 50%);
  --scene-glow-soft: rgb(42 134 200 / 28%);
  --scene-plate-tint: #6ad4ff;
}
.activity-card--farm.activity-card--crystal-orbs {
  --scene-body-1: #4a5830;
  --scene-body-2: #323c20;
  --scene-body-3: #1c2212;
  --scene-glow-mid: #2a8a22;
  --scene-glow-hi: #6edc38;
  --scene-glow-bloom: rgb(90 220 50 / 52%);
  --scene-glow-soft: rgb(42 138 34 / 32%);
  --scene-plate-tint: #6edc38;
}
.activity-card--barn.activity-card--crystal-orbs {
  --scene-body-1: #5a3040;
  --scene-body-2: #3a2030;
  --scene-body-3: #1c1018;
  --scene-glow-mid: #d87890;
  --scene-glow-hi: #f4a8b8;
  --scene-glow-bloom: rgb(244 168 184 / 52%);
  --scene-glow-soft: rgb(176 90 112 / 30%);
  --scene-plate-tint: #f4a8b8;
}
.activity-card--mine.activity-card--crystal-orbs {
  --scene-body-1: #3e343c;
  --scene-body-2: #2a242c;
  --scene-body-3: #161418;
  --scene-glow-mid: #b0602c;
  --scene-glow-hi: #ff9040;
  --scene-glow-bloom: rgb(255 144 64 / 50%);
  --scene-glow-soft: rgb(176 96 44 / 28%);
  --scene-plate-tint: #ff9040;
}
.activity-card--desert.activity-card--crystal-orbs {
  --scene-body-1: #5a4030;
  --scene-body-2: #3a2c20;
  --scene-body-3: #221810;
  --scene-glow-mid: #c4883a;
  --scene-glow-hi: #f0c878;
  --scene-glow-bloom: rgb(240 200 120 / 50%);
  --scene-glow-soft: rgb(196 136 58 / 28%);
  --scene-plate-tint: #f0c878;
}
.activity-card--sewers.activity-card--crystal-orbs {
  --scene-body-1: #2a4a32;
  --scene-body-2: #1a3022;
  --scene-body-3: #101c14;
  --scene-glow-mid: #5a8a48;
  --scene-glow-hi: #a8e060;
  --scene-glow-bloom: rgb(168 224 96 / 45%);
  --scene-glow-soft: rgb(90 138 72 / 28%);
  --scene-plate-tint: #a8e060;
}
.activity-card--electric_fields.activity-card--crystal-orbs {
  --scene-body-1: #2a3a58;
  --scene-body-2: #1a2840;
  --scene-body-3: #101820;
  --scene-glow-mid: #4a6bff;
  --scene-glow-hi: #9ad0ff;
  --scene-glow-bloom: rgb(120 160 255 / 50%);
  --scene-glow-soft: rgb(74 107 255 / 28%);
  --scene-plate-tint: #9ad0ff;
}
.activity-card--volcano.activity-card--crystal-orbs {
  --scene-body-1: #5a3428;
  --scene-body-2: #3a2218;
  --scene-body-3: #221410;
  --scene-glow-mid: #e8452b;
  --scene-glow-hi: #ffd23f;
  --scene-glow-bloom: rgb(255 120 40 / 50%);
  --scene-glow-soft: rgb(232 69 43 / 28%);
  --scene-plate-tint: #ff9040;
}
.activity-card--neon.activity-card--crystal-orbs {
  --scene-body-1: #322848;
  --scene-body-2: #221c38;
  --scene-body-3: #14101c;
  --scene-glow-mid: #ff4fd8;
  --scene-glow-hi: #3ae8ff;
  --scene-glow-bloom: rgb(255 79 216 / 50%);
  --scene-glow-soft: rgb(58 232 255 / 28%);
  --scene-plate-tint: #3ae8ff;
}
.activity-card--wizard_tower.activity-card--crystal-orbs {
  --scene-body-1: #342858;
  --scene-body-2: #221840;
  --scene-body-3: #140e28;
  --scene-glow-mid: #7a4ae0;
  --scene-glow-hi: #ffd860;
  --scene-glow-bloom: rgb(184 106 255 / 50%);
  --scene-glow-soft: rgb(122 74 224 / 28%);
  --scene-plate-tint: #ffd860;
}
.activity-card--dojo.activity-card--crystal-orbs {
  --scene-body-1: #5a342c;
  --scene-body-2: #3a221c;
  --scene-body-3: #221410;
  --scene-glow-mid: #c0402a;
  --scene-glow-hi: #ffb8d0;
  --scene-glow-bloom: rgb(232 72 58 / 45%);
  --scene-glow-soft: rgb(192 64 42 / 28%);
  --scene-plate-tint: #ffb8d0;
}
.activity-card--mountains.activity-card--crystal-orbs,
.activity-card--windy_peaks.activity-card--crystal-orbs {
  --scene-body-1: #3a4e68;
  --scene-body-2: #243448;
  --scene-body-3: #141c2c;
  --scene-glow-mid: #6e88c0;
  --scene-glow-hi: #ffe2b8;
  --scene-glow-bloom: rgb(138 192 236 / 45%);
  --scene-glow-soft: rgb(110 136 192 / 28%);
  --scene-plate-tint: #ffe2b8;
}
.activity-card--tundra.activity-card--crystal-orbs {
  --scene-body-1: #2a4858;
  --scene-body-2: #1a303c;
  --scene-body-3: #101c24;
  --scene-glow-mid: #3ab8d8;
  --scene-glow-hi: #e8fcff;
  --scene-glow-bloom: rgb(168 240 255 / 50%);
  --scene-glow-soft: rgb(58 184 216 / 28%);
  --scene-plate-tint: #a8f0ff;
}
.activity-card--spirit_realm.activity-card--crystal-orbs {
  --scene-body-1: #2a4854;
  --scene-body-2: #1a303c;
  --scene-body-3: #101c24;
  --scene-glow-mid: #6a5ad8;
  --scene-glow-hi: #9affec;
  --scene-glow-bloom: rgb(154 255 236 / 45%);
  --scene-glow-soft: rgb(106 90 216 / 28%);
  --scene-plate-tint: #9affec;
}
.activity-card--prism.activity-card--crystal-orbs {
  --scene-body-1: #342858;
  --scene-body-2: #221840;
  --scene-body-3: #140e28;
  --scene-glow-mid: #8a7ae0;
  --scene-glow-hi: #fff;
  --scene-glow-bloom: rgb(184 170 255 / 50%);
  --scene-glow-soft: rgb(138 122 224 / 28%);
  --scene-plate-tint: #cfe8ff;
}
.activity-card--blackhole.activity-card--crystal-orbs {
  --scene-body-1: #3a2848;
  --scene-body-2: #241830;
  --scene-body-3: #140e1c;
  --scene-glow-mid: #6a2ac8;
  --scene-glow-hi: #ffa040;
  --scene-glow-bloom: rgb(255 160 64 / 45%);
  --scene-glow-soft: rgb(106 42 200 / 28%);
  --scene-plate-tint: #ffb870;
}
.activity-card--village.activity-card--crystal-orbs {
  --scene-body-1: #342848;
  --scene-body-2: #221830;
  --scene-body-3: #140e18;
  --scene-glow-mid: #9a6dff;
  --scene-glow-hi: #eadcff;
  --scene-glow-bloom: rgb(160 120 255 / 55%);
  --scene-glow-soft: rgb(150 100 255 / 25%);
  --scene-plate-tint: #b9a1ff;
}
.activity-card--crystal-orbs .activity-card__copy,
.activity-card--crystal-orbs .activity-card__orbs,
.activity-card--crystal-orbs .activity-card__foot {
  position: relative;
  z-index: 6;
}
/* Copy + orbs + foot clear side rim props · copy owns its own L/R pad. */
.activity-card--crystal-orbs .activity-card__copy {
  margin-top: 1rem;
  padding-inline: 1.25rem;
}
.activity-card--crystal-orbs .activity-card__orbs {
  padding-inline: 1.05rem;
  margin-bottom: 0.65rem;
}
.activity-card--crystal-orbs .activity-card__title h3 {
  color: #f6f0e6;
}
.activity-card--crystal-orbs .activity-card__desc {
  color: #e4dcf8;
}
/* ? inherits --scene-glow-* from the card (see .activity-info). */
.activity-card__orbs {
  --reward-orb-size: 3.85rem;
  --reward-plate-w: 5.55rem;
  display: grid;
  /* Lodge cards · three across. Five rewards center the last pair in that track. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem 0.08rem;
  margin: 0.55rem 0.05rem 0;
  justify-items: center;
}
.activity-cards .activity-card__orbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.activity-cards .activity-card__orbs:has(> .reward-orb-col:nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.activity-cards .activity-card__orbs:has(> .reward-orb-col:nth-child(5):last-child) > .reward-orb-col:nth-child(-n+3) {
  grid-column: span 2;
}
.activity-cards .activity-card__orbs:has(> .reward-orb-col:nth-child(5):last-child) > .reward-orb-col:nth-child(4) {
  grid-column: 2 / span 2;
}
.activity-cards .activity-card__orbs:has(> .reward-orb-col:nth-child(5):last-child) > .reward-orb-col:nth-child(5) {
  grid-column: 4 / span 2;
}
.reward-orb-col {
  --orb-hi: #f4d8ff;
  --orb-mid: rgba(170, 70, 255, 0.38);
  --orb-lo: rgba(40, 12, 80, 0.88);
  --orb-rim: #d070ff;
  --orb-glow: rgba(190, 90, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--reward-plate-w, 3.35rem);
  min-width: 0;
  max-width: var(--reward-plate-w, 3.35rem);
  color: var(--orb-rim);
}
.reward-orb-col--gathering {
  --orb-hi: #d2ffe6;
  --orb-mid: rgba(40, 220, 130, 0.38);
  --orb-lo: rgba(4, 50, 40, 0.9);
  --orb-rim: #5dffa8;
  --orb-glow: rgba(40, 255, 140, 0.5);
}
.reward-orb-col--tree_cutting {
  --orb-hi: #d6efff;
  --orb-mid: rgba(40, 150, 255, 0.38);
  --orb-lo: rgba(8, 30, 100, 0.9);
  --orb-rim: #5cc0ff;
  --orb-glow: rgba(50, 170, 255, 0.5);
}
.reward-orb-col--coin {
  --orb-hi: #fff2c4;
  --orb-mid: rgba(255, 160, 30, 0.38);
  --orb-lo: rgba(90, 35, 5, 0.9);
  --orb-rim: #ffc040;
  --orb-glow: rgba(255, 170, 40, 0.5);
}
.reward-orb-col--items {
  --orb-hi: #d8f8ff;
  --orb-mid: rgba(40, 200, 230, 0.38);
  --orb-lo: rgba(8, 50, 70, 0.9);
  --orb-rim: #4ad4f0;
  --orb-glow: rgba(60, 210, 240, 0.5);
}
/* Drop orbs · one color per weather-affected trait. Immune items stay stone. */
.reward-orb-col--wx-neutral {
  --orb-hi: #f4f7fb;
  --orb-mid: rgba(180, 190, 205, 0.4);
  --orb-lo: rgba(28, 34, 46, 0.9);
  --orb-rim: #c8ced8;
  --orb-glow: rgba(200, 206, 216, 0.4);
}
.reward-orb-col--wx-flame {
  --orb-hi: #ffe0c8;
  --orb-mid: rgba(255, 120, 50, 0.38);
  --orb-lo: rgba(80, 25, 8, 0.9);
  --orb-rim: #ff8a40;
  --orb-glow: rgba(255, 110, 40, 0.5);
}
.reward-orb-col--wx-wood {
  --orb-hi: #efe0c4;
  --orb-mid: rgba(150, 110, 50, 0.4);
  --orb-lo: rgba(48, 30, 12, 0.92);
  --orb-rim: #c4924a;
  --orb-glow: rgba(196, 146, 74, 0.48);
}
.reward-orb-col--wx-metal {
  --orb-hi: #eef3f8;
  --orb-mid: rgba(160, 176, 196, 0.4);
  --orb-lo: rgba(24, 32, 44, 0.92);
  --orb-rim: #b7c6d6;
  --orb-glow: rgba(180, 196, 214, 0.45);
}
.reward-orb-col--wx-crop {
  --orb-hi: #e8ffc8;
  --orb-mid: rgba(140, 210, 60, 0.38);
  --orb-lo: rgba(20, 55, 8, 0.9);
  --orb-rim: #8bc34a;
  --orb-glow: rgba(140, 220, 60, 0.48);
}
.reward-orb-col--wx-water {
  --orb-hi: #d8f0ff;
  --orb-mid: rgba(50, 160, 230, 0.38);
  --orb-lo: rgba(8, 40, 90, 0.9);
  --orb-rim: #4aa8e0;
  --orb-glow: rgba(70, 170, 255, 0.5);
}
.reward-orb-col--wx-dust {
  --orb-hi: #fff0d4;
  --orb-mid: rgba(210, 170, 90, 0.4);
  --orb-lo: rgba(70, 48, 18, 0.9);
  --orb-rim: #e0b56a;
  --orb-glow: rgba(224, 181, 106, 0.45);
}
.reward-orb-col--wx-cloth {
  --orb-hi: #ffe4f2;
  --orb-mid: rgba(210, 120, 170, 0.38);
  --orb-lo: rgba(60, 20, 40, 0.9);
  --orb-rim: #e090b8;
  --orb-glow: rgba(224, 144, 184, 0.45);
}
.reward-orb-col--stewardship {
  --orb-hi: #fff2c4;
  --orb-mid: rgba(255, 180, 40, 0.38);
  --orb-lo: rgba(80, 40, 8, 0.9);
  --orb-rim: #ffc040;
  --orb-glow: rgba(255, 170, 40, 0.5);
}
.reward-orb-col--cooking,
.reward-orb-col--fire_making,
.reward-orb-col--smelting {
  --orb-hi: #ffe0c8;
  --orb-mid: rgba(255, 120, 50, 0.38);
  --orb-lo: rgba(80, 25, 8, 0.9);
  --orb-rim: #ff8a40;
  --orb-glow: rgba(255, 110, 40, 0.5);
}
.reward-orb-col--fishing {
  --orb-hi: #d8f0ff;
  --orb-mid: rgba(50, 160, 230, 0.38);
  --orb-lo: rgba(8, 40, 90, 0.9);
  --orb-rim: #4aa8e0;
  --orb-glow: rgba(70, 170, 255, 0.5);
}
.reward-orb-col--farming,
.reward-orb-col--exploration {
  --orb-hi: #e8ffc8;
  --orb-mid: rgba(140, 210, 60, 0.38);
  --orb-lo: rgba(20, 55, 8, 0.9);
  --orb-rim: #8bc34a;
  --orb-glow: rgba(140, 220, 60, 0.48);
}
.reward-orb-col--mining,
.reward-orb-col--smithing {
  --orb-hi: #e0e8f0;
  --orb-mid: rgba(130, 150, 180, 0.38);
  --orb-lo: rgba(22, 30, 45, 0.92);
  --orb-rim: #8aa0b8;
  --orb-glow: rgba(140, 170, 210, 0.48);
}
.reward-orb-col--strength {
  --orb-hi: #ffd0d0;
  --orb-mid: rgba(224, 80, 80, 0.38);
  --orb-lo: rgba(60, 8, 8, 0.92);
  --orb-rim: #e06060;
  --orb-glow: rgba(255, 80, 80, 0.48);
}
.reward-orb-col--hacking {
  --orb-hi: #f0d8ff;
  --orb-mid: rgba(160, 90, 230, 0.38);
  --orb-lo: rgba(40, 12, 80, 0.92);
  --orb-rim: #a070e0;
  --orb-glow: rgba(180, 100, 255, 0.5);
}
.reward-orb-col--crafting {
  --orb-hi: #ffe8c8;
  --orb-mid: rgba(184, 130, 70, 0.38);
  --orb-lo: rgba(50, 30, 12, 0.92);
  --orb-rim: #b88850;
  --orb-glow: rgba(200, 140, 70, 0.48);
}
.reward-orb-col--rarity-common {
  --orb-hi: #f4f7fb;
  --orb-mid: rgba(180, 190, 205, 0.4);
  --orb-lo: rgba(28, 34, 46, 0.9);
  --orb-rim: #c8ced8;
  --orb-glow: rgba(200, 206, 216, 0.45);
}
.reward-orb-col--rarity-uncommon {
  --orb-hi: #d8ffe8;
  --orb-mid: rgba(52, 211, 153, 0.4);
  --orb-lo: rgba(6, 40, 28, 0.9);
  --orb-rim: #34d399;
  --orb-glow: rgba(52, 211, 153, 0.5);
}
.reward-orb-col--rarity-rare {
  --orb-hi: #dff6ff;
  --orb-mid: rgba(56, 189, 248, 0.4);
  --orb-lo: rgba(8, 36, 54, 0.9);
  --orb-rim: #38bdf8;
  --orb-glow: rgba(56, 189, 248, 0.5);
}
.reward-orb-col--rarity-legendary {
  --orb-hi: #fff2c4;
  --orb-mid: rgba(224, 176, 80, 0.42);
  --orb-lo: rgba(48, 28, 6, 0.92);
  --orb-rim: #e0b050;
  --orb-glow: rgba(224, 176, 80, 0.55);
}
.reward-orb-stage {
  position: relative;
  width: var(--reward-orb-size, 3.35rem);
  max-width: var(--reward-orb-size, 3.35rem);
  min-width: 0;
  /* Square stage · orb uses equal % so spheres stay round (not tall ovals). */
  aspect-ratio: 1;
  /* Extra air between orb and earning plate/label. */
  margin-bottom: 0.45rem;
  flex: 0 0 auto;
}
/*
 * Crystal role marks · Job XP / Affinity boost vs Skill progress.
 * Keeps the same gem art; stamp tells the lane.
 */
.orb-role {
  position: absolute;
  left: 50%;
  top: -0.15rem;
  z-index: 5;
  transform: translateX(-50%);
  padding: 0.08rem 0.28rem;
  border: 1px solid color-mix(in srgb, var(--orb-rim, #b9a1ff) 70%, #1a1008);
  border-radius: 0.2rem;
  background: color-mix(in srgb, #12081c 82%, var(--orb-lo, #1a1008));
  color: #f2e8ff;
  font-family: var(--font-ui, Georgia, serif);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 #0a0610;
}



/* Job text stamps retired · glow on .reward-orb-col--role-job instead. */
.orb-role--job {
  display: none !important;
}
.orb-role--skill {
  border-color: color-mix(in srgb, #8a7ae0 70%, #1a1008);
  background: color-mix(in srgb, #1a1030 80%, #8a7ae0);
  color: #e8e0ff;
}
/* Affinity Skill text stamps retired · crystal orbs carry the lane. */
.orb-role--aff {
  display: none !important;
}
.reward-orb-col--mini .orb-role {
  display: none;
}
/*
 * Job XP crystals · no Job stamp.
 * Neutral soft white outer glow (scene-tint was hard to see on Arcade/Lodge cards).
 */
/* Job XP · Variation A Bezel (Reward Orbs demo) · coin/loot stay glass. */
.reward-orb-col--role-job .reward-orb--bezel {
  border: 3px solid var(--orb-rim);
  background:
    radial-gradient(circle at 50% 34%, var(--orb-mid) 0, transparent 66%),
    radial-gradient(circle at 50% 104%, var(--orb-glow) 0, transparent 56%),
    color-mix(in srgb, var(--orb-lo) 92%, #0a0614);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--orb-lo) 90%, #000),
    0 0 12px 2px var(--orb-glow),
    0 0 22px 5px color-mix(in srgb, var(--orb-mid) 70%, transparent),
    inset 0 0 0 2px color-mix(in srgb, var(--orb-lo) 88%, #000),
    inset 0 0 12px 3px color-mix(in srgb, var(--orb-rim) 55%, transparent),
    inset 0 -10px 16px var(--orb-glow);
}
.reward-orb-col--role-job .reward-orb--bezel::before {
  opacity: 0.5;
}
.reward-orb-col--role-job .reward-orb--bezel .reward-orb__icon {
  filter:
    drop-shadow(0 0 0 #000)
    drop-shadow(0 1.5px 0 color-mix(in srgb, var(--orb-lo) 90%, #000))
    drop-shadow(0 0 6px var(--orb-rim));
}
.reward-orb__ring,
.reward-orb__studs {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  left: 2%;
  top: 2%;
  width: 96%;
  height: 96%;
  z-index: 1;
}
.reward-orb-col--role-job .reward-orb__ring {
  background: conic-gradient(
    from 200deg,
    color-mix(in srgb, var(--orb-hi) 88%, #fff),
    color-mix(in srgb, var(--orb-rim) 80%, #8040a0),
    color-mix(in srgb, var(--orb-lo) 85%, #000),
    color-mix(in srgb, var(--orb-rim) 80%, #8040a0),
    color-mix(in srgb, var(--orb-hi) 88%, #fff)
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 3px var(--orb-glow));
}
.reward-orb-col--role-job .reward-orb__studs {
  z-index: 4;
  background:
    radial-gradient(circle at 50% 3px, #fff 0 1.2px, var(--orb-rim) 2px, transparent 3.2px),
    radial-gradient(circle at 50% calc(100% - 3px), #fff 0 1.2px, var(--orb-rim) 2px, transparent 3.2px),
    radial-gradient(circle at 3px 50%, #fff 0 1.2px, var(--orb-rim) 2px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 3px) 50%, #fff 0 1.2px, var(--orb-rim) 2px, transparent 3.2px);
}
/* Coin · Currency Orbs Slim Bezel (glass body · metal ring). */
.reward-orb-col--role-coin .reward-orb__ring {
  left: 2%;
  top: 2%;
  width: 96%;
  height: 96%;
  background: conic-gradient(
    from 200deg,
    color-mix(in srgb, var(--orb-hi) 90%, #fff),
    color-mix(in srgb, var(--orb-rim) 85%, #a06010),
    color-mix(in srgb, var(--orb-lo) 88%, #000),
    color-mix(in srgb, var(--orb-rim) 85%, #a06010),
    color-mix(in srgb, var(--orb-hi) 90%, #fff)
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 3px var(--orb-glow));
}
.activity-card--crystal-orbs .reward-orb-col--role-job .reward-orb-ped {
  filter:
    drop-shadow(0 0 4px rgb(255 255 255 / 40%))
    drop-shadow(0 3px 5px rgb(0 0 0 / 45%));
  opacity: 0.88;
}
.reward-orb-ped {
  position: absolute;
  left: 0;
  top: 58%;
  width: 100%;
  height: 44%;
  z-index: 1;
  opacity: 0.72;
  filter: drop-shadow(0 0 3px var(--orb-rim, #b9a1ff));
}
.reward-orb {
  position: absolute;
  left: 12%;
  top: 12%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  isolation: isolate;
  border: 2px solid color-mix(in srgb, var(--orb-rim) 85%, #1a1008);
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, var(--orb-mid) 72%, var(--orb-lo) 100%),
    radial-gradient(circle at 50% 36%, var(--orb-mid) 0, transparent 58%),
    radial-gradient(circle at 50% 104%, var(--orb-glow) 0, transparent 55%),
    rgba(8, 4, 20, 0.72);
  -webkit-backdrop-filter: blur(1px) saturate(1.25);
  backdrop-filter: blur(1px) saturate(1.25);
  box-shadow:
    0 0 4px 1px color-mix(in srgb, var(--orb-rim) 70%, transparent),
    0 0 12px 2px var(--orb-glow),
    0 0 18px 4px color-mix(in srgb, var(--orb-mid) 55%, transparent),
    inset 0 0 10px 1px color-mix(in srgb, var(--orb-rim) 55%, transparent),
    inset 0 -8px 12px var(--orb-glow),
    inset 0 5px 8px rgba(255, 255, 255, 0.14);
}
/* Low quality · skip orb glass blur (compositor cost). */
html[data-quality="low"] .reward-orb {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.reward-orb::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 8%;
  width: 44%;
  height: 26%;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.04));
  transform: rotate(-26deg);
  filter: blur(0.6px);
  z-index: 3;
  pointer-events: none;
}
.reward-orb::after {
  content: "";
  position: absolute;
  left: 24%;
  bottom: 5%;
  width: 52%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #fff 0, var(--orb-hi) 32%, transparent 72%);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}
.reward-orb__facet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.reward-orb__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px var(--orb-rim))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.reward-orb__icon.icon,
.reward-orb__icon svg,
.reward-orb .reward-orb__icon > img.icon {
  width: 100%;
  height: 100%;
  margin: 0;
  vertical-align: middle;
}
/* Egg chance sits in the glass. No bag tile, no painted plate. */
.reward-orb .reward-orb__icon--egg {
  background: transparent;
  border: 0;
  box-shadow: none;
  /* drop-shadow on a canvas paints the whole bitmap as a black rectangle. */
  filter: none;
}
.reward-orb .reward-orb__icon--egg .egg-token,
.reward-orb .reward-orb__icon--egg .egg-token__art {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}
.reward-orb__drops {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  /* Match job/XP icon footprint inside the orb. */
  width: 70%;
  height: 70%;
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px var(--orb-rim));
}
.reward-orb__drops--rotate {
  grid-template-columns: 1fr;
}
.reward-orb__drop {
  width: 100%;
  height: auto;
  max-width: 2.2rem;
  max-height: 2.2rem;
  object-fit: contain;
  image-rendering: pixelated;
}
.reward-orb__drops--rotate .reward-orb__drop {
  grid-area: 1 / 1;
}
.reward-orb__sp {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 5px 1px #fff;
  right: 16%;
  top: 14%;
  width: 5px;
  height: 5px;
  pointer-events: none;
}
.reward-orb__sp--2 {
  right: auto;
  left: 14%;
  top: auto;
  bottom: 24%;
  width: 3px;
  height: 3px;
  opacity: 0.8;
}
.reward-orb__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #fff);
}
.reward-orb__plate {
  position: relative;
  z-index: 3;
  margin-top: -0.2rem;
  width: var(--reward-plate-w, 5.35rem);
  max-width: var(--reward-plate-w, 5.35rem);
  min-width: var(--reward-plate-w, 5.35rem);
  min-height: 2.35rem;
  height: 2.35rem;
  box-sizing: border-box;
  border-radius: 0.45rem;
  /* Plate rim tracks the orb theme color. */
  border: 2px solid var(--orb-rim, #b9a1ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0.22rem 0.28rem 0.18rem;
  /* Dimmer bed under earnings so icons read clearer. */
  background: linear-gradient(
    color-mix(in srgb, var(--scene-plate-tint, var(--orb-rim, #b9a1ff)) 8%, #140c28),
    color-mix(in srgb, var(--scene-plate-tint, var(--orb-rim, #b9a1ff)) 5%, #080418)
  );
  box-shadow:
    0 0 6px color-mix(in srgb, var(--orb-rim, #b9a1ff) 30%, transparent),
    inset 0 0 6px color-mix(in srgb, var(--orb-rim, #b9a1ff) 22%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 12%);
}
.reward-orb__plate span {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.1rem;
  text-align: center;
  color: #ebe4ff;
}
.reward-orb__plate b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orb-rim, #fff);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-card__crystals {
  position: absolute;
  /*
   * Flush to the painted wood rim (14px) · stretch full card height so
   * side crystals run the whole body band (art → foot).
   */
  inset: var(--frame-rim) 0 var(--frame-rim) 0;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgb(150 110 255 / 80%));
  overflow: visible;
}
@media (prefers-reduced-motion: no-preference) {
  /* Idle orbs stay still · reward-orb-nudge.js pokes a few on-screen ones. */
  /* Ring and studs sit beside the glass. Bounce the whole assembly, pedestal stays. */
  .reward-orb-stage:has(.reward-orb--nudge) > .reward-orb,
  .reward-orb-stage:has(.reward-orb--nudge) > .reward-orb__ring,
  .reward-orb-stage:has(.reward-orb--nudge) > .reward-orb__studs,
  .skill-orb__stage:has(.reward-orb--nudge) > .reward-orb,
  .skill-orb__stage:has(.reward-orb--nudge) > .skill-orb__ring {
    animation: reward-orb-float 1.15s ease-in-out 2;
  }
  .reward-orb__twinkle {
    animation: none;
  }
  .activity-card--crystal-orbs .reward-orb.reward-orb--nudge .reward-orb__twinkle {
    animation: reward-orb-twinkle 0.9s ease-in-out 2 alternate;
  }
}
@keyframes reward-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes reward-orb-twinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
/* Low · freeze crystal orbs. */
html[data-quality="low"] .reward-orb,
html[data-quality="low"] .reward-orb__ring,
html[data-quality="low"] .reward-orb__studs,
html[data-quality="low"] .skill-orb__ring,
html[data-quality="low"] .reward-orb__twinkle,
/* Pause under-page orbs only · open Start/Info keeps its crystals live. */
html[data-modal-pause="1"] .activity-cards > .activity-card .reward-orb,
html[data-modal-pause="1"] .activity-cards > .activity-card .reward-orb__ring,
html[data-modal-pause="1"] .activity-cards > .activity-card .reward-orb__studs,
html[data-modal-pause="1"] .activity-cards > .activity-card .reward-orb__twinkle,
/* Off-viewport Lodge cards · freeze CSS motion (viewport-pause.js). */
.activity-card[data-inview="0"] .reward-orb,
.activity-card[data-inview="0"] .reward-orb__ring,
.activity-card[data-inview="0"] .reward-orb__studs,
.activity-card[data-inview="0"] .reward-orb__twinkle,
.activity-card[data-inview="0"] .activity-card__anim-scene [class*="acs-"],
.activity-card[data-inview="0"] .activity-card__walk-scene [class*="walk-"],
.activity-card__anim-scene[data-inview="0"] [class*="acs-"],
.activity-card__walk-scene[data-inview="0"] [class*="walk-"] {
  animation: none !important;
}
/* Open modal hero · animate on Medium + High (board cards stay frozen below High). */
html[data-quality="medium"] dialog.modal[open] .activity-card__anim-scene [class*="acs-"],
html[data-quality="medium"] dialog.modal[open] .activity-card__walk-scene [class*="walk-"],
html[data-quality="high"] dialog.modal[open] .activity-card__anim-scene [class*="acs-"],
html[data-quality="high"] dialog.modal[open] .activity-card__walk-scene [class*="walk-"] {
  animation-play-state: running !important;
}
@media (prefers-reduced-motion: reduce) {
  .activity-card--crystal-orbs .reward-orb,
  .reward-orb__ring,
  .reward-orb__studs,
  .skill-orb__ring,
  .reward-orb__twinkle { animation: none !important; }
}
.activity-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.12rem 0.2rem;
  color: #c2ccd8;
  font-size: 0.78rem;
  line-height: 1.2;
}
.activity-card__clock {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #8197b2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  flex: 0 0 auto;
  margin-left: 0;
  color: inherit;
}
.activity-card__event {
  display: none;
}
.activity-card__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
}
.activity-card__start-row {
  /* Static so Confirm positions against .activity-card__foot (card corner). */
  position: static;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
}
.activity-card__start-row .btn {
  flex: 0 0 auto;
  width: auto;
  max-width: 15.5rem;
  min-width: 5.5rem;
  margin: 0 auto;
}
.activity-skip-tip {
  position: absolute;
  left: 0.35rem;
  bottom: 0.2rem;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1;
  pointer-events: auto;
}
.activity-skip-tip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.activity-skip-tip__track {
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, #000);
  background: color-mix(in srgb, var(--bg-elevated) 80%, #000);
  position: relative;
  flex: 0 0 auto;
}
.activity-skip-tip__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #f0e4c8;
  transition: transform 0.15s ease;
}
.activity-skip-tip input:checked + .activity-skip-tip__track {
  background: color-mix(in srgb, #2a7ed8 55%, #121820);
  border-color: color-mix(in srgb, #2a7ed8 65%, #0d3a78);
}
.activity-skip-tip input:checked + .activity-skip-tip__track::after {
  transform: translateX(1.1rem);
}
.activity-card__actions form {
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 15.5rem;
}
.activity-card__actions .btn--unlock.activity-card__unlock,
.activity-card__actions .btn.btn--unlock {
  animation: unlock-pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__actions .btn--unlock.activity-card__unlock,
  .activity-card__actions .btn.btn--unlock { animation: none; }
}
.activity-card__actions .btn {
  width: 100%;
  max-width: 15.5rem;
  min-height: 2.5rem;
  border-radius: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.activity-card--crystal-orbs .activity-card__actions form,
.activity-card--crystal-orbs .activity-card__actions .btn {
  max-width: 18.75rem;
}
.btn--unlock,
button.btn--unlock,
.activity-card__actions .btn.btn--unlock {
  --btn-face: #1f6ec4;
  --btn-lip: #0d3a78;
  color: #fff;
  border-radius: 0;
  font-family: var(--font-pixel), "Press Start 2P", "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 400;
}
.btn--unlock:hover,
button.btn--unlock:hover {
  --btn-face: #2a7ed8;
  color: #fff;
}
.activity-card__actions .btn:disabled,
.activity-card__actions .btn:disabled:hover {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  filter: none;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  text-shadow: none;
}
dialog.modal.modal--start .btn--go:disabled,
dialog.modal.modal--start button.btn.btn--go:disabled,
dialog.modal.modal--start .btn--go:disabled:hover,
dialog.modal.modal--start button.btn.btn--go:disabled:hover {
  --btn-face: color-mix(in srgb, #237c34 55%, #1a1a1a);
  --btn-lip: color-mix(in srgb, #144a20 55%, #000);
  color: color-mix(in srgb, #fff 55%, transparent);
  filter: none;
  transform: none;
  cursor: not-allowed;
}
.activity-card__claim--ready {
  --btn-face: #e0a83a;
  --btn-lip: color-mix(in srgb, #c48a22 55%, #5a3a10);
  color: #1a1204;
  box-shadow:
    0 0.28rem 0.55rem rgba(2, 8, 18, 0.28),
    0 0 10px color-mix(in srgb, #f0c45a 28%, transparent);
  animation: claim-pulse 1.8s ease-in-out infinite;
}
@keyframes claim-pulse {
  0%, 100% {
    box-shadow:
      0 0.28rem 0.55rem rgba(2, 8, 18, 0.28),
      0 0 8px color-mix(in srgb, #f0c45a 22%, transparent);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0.28rem 0.55rem rgba(2, 8, 18, 0.28),
      0 0 14px color-mix(in srgb, #f0c45a 42%, transparent);
    filter: brightness(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-card__claim--ready { animation: none; }
}
;




/* Flush rim + head are the global default (modal.css.ts). Only the book differs. */
dialog.modal.modal--chikonomicon .chikonomicon-panel.pixel-frame {
  gap: 0;
}
dialog.modal.modal--chikonomicon .modal-wood-head.chikonomicon__head {
  margin: 0;
}
dialog.modal.modal--shop-sell .modal__panel.set1-panel {
  /* Extra clear under the hanging Sell inventory sign. */
  --set1-sign-clear: 5.4rem;
}
dialog.modal.modal--shop-sell .modal__body {
  margin: 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--panel-strong);
  box-sizing: border-box;
}
/* Beat set1 padding-top so kind badges clear the plaque. */
dialog.modal.modal--shop-sell .modal__panel.set1-panel > .modal__body.set1-body {
  padding-top: calc(var(--set1-sign-clear, 5.4rem) + 0.85rem);
}
dialog.modal.modal--shop-sell .shop-sell__card .shop-card__top,
dialog.modal.modal--shop-sell .shop-sell__card .item-kind {
  position: relative;
  z-index: 4;
}
dialog.modal.modal--checkin .modal__body.checkin-board {
  margin: 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  /* Atmosphere fill is on the later modal--checkin block (luck/felt plate). */
  box-sizing: border-box;
}
dialog.modal.modal--chikonomicon {
  /* Match main page wrapper width so the matrix fits with vine gutters. */
  --set1-vine-gutter: var(--vine-gutter-wide, 58px);
  width: min(var(--content-w), calc(100vw - 1.5rem));
  max-width: min(var(--content-w), calc(100vw - 1.5rem));
  max-height: min(96vh, 58rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}
dialog.modal.modal--chikonomicon .chikonomicon-panel {
  position: relative;
  gap: 0;
  max-height: min(96vh, 58rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 4px;
  /* v35 almanac · barn timber frame, navy slate board. */
  background: #27395a;
  box-shadow:
    0 0 0 var(--frame-rim) #8a5a30,
    0 0 0 calc(var(--frame-rim) + 2px) #1c1007,
    0 28px 48px rgb(0 0 0 / 55%);
  padding: var(--frame-rim);
}
dialog.modal.modal--chikonomicon .chikonomicon-panel.set1-panel {
  /* Extra clear so the hanging sign does not crush the tab row. */
  --set1-sign-clear: 4.85rem;
}
.chikonomicon__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  /* Clear hanging title sign · then vine gutters. */
  padding: calc(var(--set1-sign-clear, 4.85rem) + 0.35rem) var(--set1-vine-gutter, 52px) 0.45rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  /* Plank header bed from the v35 almanac. */
  background-color: #94653a;
  background-image:
    repeating-linear-gradient(180deg, rgb(0 0 0 / 35%) 0 2px, rgb(255 230 180 / 16%) 2px 4px, transparent 4px 48px);
  border-bottom: 6px solid #1c0f06;
}
.chikonomicon__tab.btn {
  position: relative;
  min-height: 2.15rem;
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  --btn-face: #3a2213;
  --btn-lip: #1c1007;
  --btn-shell: #120904;
  color: #f6ecd0;
}
.chikonomicon__tab.btn::before,
.chikonomicon__tab.btn::after {
  content: "";
  position: absolute;
  top: -0.85rem;
  width: 3px;
  height: 0.95rem;
  border-radius: 2px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, #c5cad2 0 4px, #4a4e56 4px 7px);
  box-shadow: 1px 0 0 rgb(0 0 0 / 45%);
}
.chikonomicon__tab.btn::before { left: 16%; }
.chikonomicon__tab.btn::after { right: 16%; }
.chikonomicon__tab.btn .btn__face {
  padding: 0.28rem 0.85rem;
}
.chikonomicon__tab.btn[aria-selected="true"] {
  --btn-face: #e0b03a;
  --btn-lip: #6a4210;
  --btn-shell: color-mix(in srgb, #6a4210 72%, #140a04);
  color: #1a1008;
}
.chikonomicon__tab.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
dialog.modal.modal--chikonomicon .chikonomicon__body {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  /* Tabs already cleared the hanging sign · body just needs vine gutters. */
  padding: 0.45rem var(--set1-vine-gutter, 52px) 0.95rem;
  box-sizing: border-box;
  background: #1a2947;
  color: #e8dfc6;
}
dialog.modal.modal--chikonomicon .chikonomicon-panel.set1-panel > .chikonomicon__body.set1-body,
dialog.modal.modal--chikonomicon .chikonomicon-panel.set1-panel > .modal__body {
  /* Override shared Set-1 sign clear · tabs own that space. */
  padding-top: 0.45rem;
}
.chikonomicon-pane__head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.chikonomicon-pane__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f6ecd0;
}
.chikonomicon-pane__hint {
  margin: 0;
}
/* How to play · chapter rail + dry place cards / refs */
.chikonomicon-pane--howto {
  min-height: 0;
}
.chikonomicon-howto {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  min-height: min(58vh, 32rem);
}
.chikonomicon-howto__rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 0.15rem;
  padding: 0.2rem 0.15rem 0.35rem 0;
  border-right: 1px solid color-mix(in srgb, var(--gold, #c9a227) 28%, #3a2810);
}
.chikonomicon-howto__rail-btn {
  appearance: none;
  border: 1px solid color-mix(in srgb, #5a4020 70%, transparent);
  background: color-mix(in srgb, #1a120c 88%, #000);
  color: #cbb89a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.chikonomicon-howto__rail-btn:hover,
.chikonomicon-howto__rail-btn:focus-visible {
  color: #f0e4c8;
  border-color: color-mix(in srgb, var(--gold, #c9a227) 55%, #5a4020);
  outline: none;
}
.chikonomicon-howto__rail-btn[aria-selected="true"] {
  background: color-mix(in srgb, #e0b03a 22%, #1a120c);
  color: #f6e7b8;
  border-color: color-mix(in srgb, #e0b03a 65%, #5a4020);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e0b03a 35%, transparent);
}
.chikonomicon-howto__pages {
  min-width: 0;
  max-height: min(62vh, 36rem);
  overflow: auto;
  padding: 0.05rem 0.15rem 0.35rem 0;
}
.chikonomicon-howto__chapter[hidden] {
  display: none !important;
}
.chikonomicon-howto__block {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.05rem;
  padding: 0.7rem 0.8rem 0.8rem;
  background: color-mix(in srgb, #0e0a06 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 16%, #2a1c10);
  border-radius: 0.45rem;
}
.chikonomicon-wx--clear {
  margin: 0 0 1rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 28%, #2a1c10);
  background: color-mix(in srgb, #1a140c 70%, transparent);
}
.chikonomicon-wx__chips,
.chikonomicon-wx__rows,
.chikonomicon-wx__months {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.chikonomicon-wx__chips {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.chikonomicon-wx__chip,
.chikonomicon-wx__row,
.chikonomicon-wx__months li {
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  color: #d8cbb8;
  font-size: 0.86rem;
  background: color-mix(in srgb, #0e0a06 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 12%, #2a1c10);
}
.chikonomicon-wx__chip b,
.chikonomicon-wx__row b,
.chikonomicon-wx__months b {
  color: #f0e4c8;
  text-transform: capitalize;
}
.chikonomicon-howto__h {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0b03a;
}
.chikonomicon-howto__steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
  color: #d8cbb8;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chikonomicon-howto__steps strong {
  color: #f0e4c8;
}
.chikonomicon-howto__ep {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.chikonomicon-howto__ep .icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}
.chikonomicon-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.chikonomicon-place {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem 0.6rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, #24180e 78%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 55%, transparent);
  border-radius: 0.4rem;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.chikonomicon-place:hover,
.chikonomicon-place:focus-visible {
  background: color-mix(in srgb, #2e2012 82%, #000);
  border-color: color-mix(in srgb, #e0b03a 55%, #6a4a22);
  outline: none;
  transform: translateY(-1px);
}
.chikonomicon-place__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f0e4c8;
}
.chikonomicon-place__blurb {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #b8a88c;
}
.chikonomicon-ref {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0.05rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid color-mix(in srgb, #e0b03a 45%, #5a4020);
  border-radius: 0.3rem;
  background: color-mix(in srgb, #e0b03a 14%, #1a120c);
  color: #f6e7b8;
  font: inherit;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  vertical-align: baseline;
}
a.chikonomicon-ref:hover,
button.chikonomicon-ref:hover,
a.chikonomicon-ref:focus-visible,
button.chikonomicon-ref:focus-visible {
  background: color-mix(in srgb, #e0b03a 28%, #1a120c);
  border-color: #e0b03a;
  color: #fff6d4;
  outline: none;
}
.chikonomicon-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.1rem 0 0.35rem;
}
.chikonomicon-flow__step {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #6a4a22 60%, transparent);
  background: color-mix(in srgb, #24180e 80%, #000);
  color: #f0e4c8;
  font-size: 0.84rem;
  font-weight: 700;
}
.chikonomicon-flow__arrow {
  color: #e0b03a;
  font-weight: 800;
}
.chikonomicon-howto__currency {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.chikonomicon-howto__currency > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}
.chikonomicon-howto__cur-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
}
.chikonomicon-howto__cur-icon .icon {
  width: 1.85rem;
  height: 1.85rem;
}
.chikonomicon-howto__currency strong {
  color: #f0e4c8;
  font-size: 0.95rem;
}
.chikonomicon-howto__currency .meta {
  margin: 0.15rem 0 0;
}
.chikonomicon-help {
  display: grid;
  gap: 0.55rem;
  max-height: min(62vh, 36rem);
  overflow: auto;
  padding: 0.15rem 0.2rem 0.4rem;
}
.chikonomicon-help__h {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #f0e4c8;
}
.chikonomicon-help__table {
  width: min(100%, 22rem);
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #e8dcc4;
}
.chikonomicon-help__table th,
.chikonomicon-help__table td {
  border: 1px solid color-mix(in srgb, var(--gold) 22%, #3a2810);
  padding: 0.28rem 0.45rem;
  text-align: left;
}
.chikonomicon-help__table thead th {
  background: #1a140e;
  color: #f0e4c8;
  font-weight: 700;
}
.chikonomicon-help__table tbody td {
  background: #14100c;
}
.chikonomicon-pill {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0.05rem 0.28rem;
  border-radius: 2px;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
}
.chikonomicon-pill--s {
  background: rgba(111, 166, 111, 0.28);
  color: #b8d9b1;
}
.chikonomicon-pill--w {
  /* Pale blue · match +25% green brightness/saturation. */
  background: rgba(111, 150, 186, 0.28);
  color: #b1c8d9;
}
.chikonomicon-matrix-wrap {
  overflow: auto;
  max-height: min(62vh, 36rem);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, #3a2810);
  border-radius: 2px;
  background: #14100c;
}
.chikonomicon-matrix {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 52rem;
  width: 100%;
  font-size: 0.95rem;
}
.chikonomicon-matrix__type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15rem;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 9.5rem;
}
.chikonomicon-matrix__type-main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.chikonomicon-matrix__type-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chikonomicon-matrix__type .rarity-pip {
  justify-self: end;
}
.rarity-pip {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--rarity-ink, #2a1b0e);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rarity, #c8ced8) 88%, #fff) 0 1px,
    var(--rarity, #c8ced8) 1px calc(100% - 1px),
    color-mix(in srgb, var(--rarity, #c8ced8) 55%, #000) calc(100% - 1px) 100%
  );
  /* Highlight on top edge · shadow on bottom edge. */
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 42%, transparent),
    inset 0 -1px 0 color-mix(in srgb, #000 38%, transparent),
    inset 0 0 0 1px var(--rarity-border, #6a4a16);
}
.rarity-pip--common {
  --rarity: var(--rarity-common);
  --rarity-ink: var(--rarity-common-ink);
  --rarity-border: var(--rarity-common-border);
}
.rarity-pip--uncommon {
  --rarity: var(--rarity-uncommon);
  --rarity-ink: var(--rarity-uncommon-ink);
  --rarity-border: var(--rarity-uncommon-border);
}
.rarity-pip--rare {
  --rarity: var(--rarity-rare);
  --rarity-ink: var(--rarity-rare-ink);
  --rarity-border: var(--rarity-rare-border);
}
.rarity-pip--epic {
  --rarity: var(--rarity-epic);
  --rarity-ink: var(--rarity-epic-ink);
  --rarity-border: var(--rarity-epic-border);
}
.rarity-pip--legendary {
  --rarity: var(--rarity-legendary);
  --rarity-ink: var(--rarity-legendary-ink);
  --rarity-border: var(--rarity-legendary-border);
}
.rarity-pip--event {
  --rarity: var(--rarity-event);
  --rarity-ink: var(--rarity-event-ink);
  --rarity-border: var(--rarity-event-border);
}
.chikonomicon-matrix th,
.chikonomicon-matrix td {
  border-right: 1px solid #3a332b;
  border-bottom: 1px solid #3a332b;
  padding: 0.4rem 0.3rem;
  text-align: center;
}
.chikonomicon-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #211d19;
  color: #bdb2a2;
  font-weight: 700;
  vertical-align: bottom;
}
.chikonomicon-matrix th:first-child,
.chikonomicon-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #211d19;
  text-align: left;
  white-space: nowrap;
  padding-inline: 0.55rem;
}
.chikonomicon-matrix thead th:first-child {
  z-index: 4;
}
.chikonomicon-matrix__skill {
  display: grid;
  place-items: center;
  margin: 0 auto 0.15rem;
}
.chikonomicon-phone {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chikonomicon-phone__card {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  background: #211d19;
  border: 1px solid #3a332b;
  border-radius: 0.2rem;
}
.chikonomicon-phone__type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chikonomicon-phone__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-strong);
}
.chikonomicon-phone__line {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #d8cbb8;
}
.chikonomicon-phone__line span {
  display: inline-block;
  min-width: 3.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chikonomicon-phone__line--s span { color: #b8d9b1; }
.chikonomicon-phone__line--w span { color: #b1c8d9; }
@media (max-width: 45rem) {
  dialog.modal.modal--chikonomicon {
    width: min(100vw - 1rem, var(--content-w));
    max-width: min(100vw - 1rem, var(--content-w));
    max-height: min(92dvh, 54rem);
  }
  dialog.modal.modal--chikonomicon .chikonomicon-panel {
    --set1-sign-clear: 5.65rem;
    max-height: min(90dvh, 54rem);
    min-height: 0;
  }
  .chikonomicon__tabs {
    gap: 0.3rem;
    justify-content: center;
    flex: 0 0 auto;
    padding-top: calc(var(--set1-sign-clear, 5.65rem) + 0.45rem);
  }
  .chikonomicon__tab.btn {
    min-height: 1.95rem;
    padding: 0;
    font-size: 0.74rem;
  }
  .chikonomicon__tab.btn .btn__face {
    padding: 0.22rem 0.7rem;
  }
  dialog.modal.modal--chikonomicon .chikonomicon__body {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Left inset syncs title/hint with the vine-less right gutter. */
    padding-left: calc(var(--set1-vine-gutter, 52px) + 1.25rem);
  }
  .chikonomicon-pane__head {
    gap: 0.55rem;
    margin: 0 0 0.95rem;
    padding-left: 0;
  }
  .chikonomicon-pane__title {
    font-size: 1rem;
    line-height: 1.25;
  }
  .chikonomicon-pane__hint {
    line-height: 1.45;
  }
  .chikonomicon-howto {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-height: 0;
  }
  .chikonomicon-howto__rail {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--gold, #c9a227) 28%, #3a2810);
    padding: 0 0 0.45rem;
  }
  .chikonomicon-howto__rail-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
  }
  .chikonomicon-howto__pages {
    max-height: min(58dvh, 34rem);
  }
  .chikonomicon-places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chikonomicon-howto__block {
    padding: 0.6rem 0.65rem 0.7rem;
  }
  .chikonomicon-matrix-wrap { display: none; }
  .chikonomicon-phone {
    display: grid;
    gap: 0.65rem;
  }
}
.chikonomicon-matrix__skill-name {
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
  max-width: 4.5rem;
  margin: 0 auto;
}
.chikonomicon-matrix__cell--s {
  background: rgba(111, 166, 111, 0.24);
  color: #b8d9b1;
  font-weight: 800;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.chikonomicon-matrix__cell--w {
  background: rgba(111, 150, 186, 0.24);
  color: #b1c8d9;
  font-weight: 800;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.chikonomicon-matrix__cell--n {
  color: #4e473f;
}
/* Chikonomicon book: the dialog is only a window onto the iframe. The barn frame,
 * tabs and every page live inside /chikonomicon/book (public/assets/chikonomicon). */
dialog.modal.modal--chikonomicon.modal--book {
  width: min(80rem, calc(100vw - 0.5rem));
  max-width: calc(100vw - 0.5rem);
  height: min(96dvh, 70rem);
  max-height: calc(100dvh - 0.5rem);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
dialog.modal.modal--chikonomicon.modal--book .chikonomicon-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  /* Must match the book document's color-scheme or the browser paints the frame opaque. */
  color-scheme: dark;
}
/* Size locked with Check-in / Objectives in checkin-modal.css board family. */
dialog.modal.modal--achievements {
  border: 0;
  background: transparent;
  box-shadow: none;
}
dialog.modal.modal--achievements .modal__panel,
dialog.modal.modal--achievements .achievements-panel {
  position: relative;
  gap: 0;
  border: 0;
  border-image: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgb(18 12 8 / 96%), rgb(10 7 5 / 98%));
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
/* Title flush left · same read as activity start headers. */
dialog.modal.modal--achievements .set1-sign-band {
  grid-template-columns: minmax(0, 1fr) auto;
}
dialog.modal.modal--achievements .set1-sign-band__left {
  display: none;
}
dialog.modal.modal--achievements .set1-sign-band__mid {
  justify-self: start;
  justify-content: flex-start;
}
dialog.modal.modal--achievements .set1-plaque-wrap {
  transform: none;
  left: 0;
}
.achievements__head {
  min-height: 3.6rem;
}
.achievements__head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.achievements__close {
  margin: 0;
  flex: 0 0 auto;
}
dialog.modal.modal--achievements .modal__body {
  position: relative;
  z-index: 1;
  min-height: 0;
}
/* Wide board: keep the old content position; the slate now runs to the rim. */
dialog.modal.modal--achievements .modal__panel.set1-panel > .modal__body.set1-body {
  padding: calc(var(--set1-sign-clear, 4.35rem) + 0.35rem + var(--space-5)) var(--space-5) var(--space-5);
}
.ach-lead { margin: 0 0 var(--space-3); }
.ach-set__rule {
  margin: 1rem 0 1.1rem;
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 1;
}
.tip {
  position: relative;
}
.tip__bubble {
  position: absolute;
  z-index: var(--z-tip, 5000);
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(0.2rem);
  min-width: 11rem;
  max-width: 18rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-alt, var(--line));
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  box-sizing: border-box;
  transition: opacity 0.12s ease, transform 0.12s ease;
}



/* Raise the tip owner above sibling cards so the bubble is not painted under neighbors. */
.ach-set__grid .ach-card.tip:hover,
.ach-set__grid .ach-card.tip:focus-within,
.ach-set__grid .ach-card.tip:active {
  z-index: 8;
}
.tip__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 0.35rem solid transparent;
  border-top-color: var(--line-alt, var(--line));
}
.tip.tip--below .tip__bubble {
  bottom: auto;
  top: calc(100% + 0.45rem);
}
.tip.tip--below .tip__bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--line-alt, var(--line));
}
.tip.tip--open .tip__bubble,
.tip:hover .tip__bubble,
.tip:focus-within .tip__bubble,
.tip__bubble.tip-bubble--live {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Portaled tips (tip-place.js) sit above wood rim / vines inside the dialog. */
.tip__bubble.tip-bubble--live,
.affinity-tip__pop.tip-bubble--live {
  z-index: 10000;
  pointer-events: none;
}
/* Active tip owner: gold rim so the open tip stays attribution-clear when sliding to a neighbor. */
.ach-card.tip:hover,
.ach-card.tip:focus-within,
.ach-card.tip:active {
  border-color: color-mix(in srgb, var(--gold) 60%, #2a170c);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, #5a3c24),
    inset 0 0 0 2px #1a1008,
    0 0 0 1px color-mix(in srgb, var(--gold) 70%, transparent),
    0 2px 0 #140c08;
}
.tip__label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.start-confirm__find-card.tip,
.guide-card--bundle.tip {
  cursor: help;
}
.start-confirm__recipe-tip {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f0e4c8;
}
.tip__bubble ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
}
.ach-set { margin: 0 0 var(--space-2); }
.ach-set__head {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.ach-set__head .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.ach-set__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  overflow: visible;
  isolation: isolate;
}
.ach-card {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 0.35rem;
  padding: var(--space-3);
  border: 2px solid #2a170c;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgb(18 12 8 / 55%), rgb(10 7 5 / 72%)),
    repeating-linear-gradient(180deg, #2a1a10 0 10px, #24160e 10px 20px);
  box-shadow:
    inset 0 0 0 1px #5a3c24,
    inset 0 0 0 2px #1a1008,
    0 2px 0 #140c08;
  min-width: 0;
  overflow: visible;
}
.ach-card--unlocked {
  border-color: color-mix(in srgb, var(--gold) 50%, #2a170c);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, #5a3c24),
    inset 0 0 0 2px #1a1008,
    0 2px 0 #140c08;
}
.ach-card--locked {
  opacity: 0.72;
}
.ach-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  line-height: 1.25;
}
.ach-card__title .icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: var(--gold);
}
.ach-card__title span { min-width: 0; }
.ach-card__main p { margin: 0.25rem 0; }
.ach-card__state {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ach-card--unlocked .ach-card__state { color: var(--gold); }
.ach-card--claimable .ach-card__state { color: #7fb4f7; }
.ach-card__claim {
  margin: 0.35rem 0 0;
}
.ach-card__claim .btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}
.ach-card--pulse {
  animation: ach-card-pulse 0.7s ease-in-out 3;
}
@keyframes ach-card-pulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, #5a3c24),
      inset 0 0 0 2px #1a1008,
      0 2px 0 #140c08,
      0 0 0 0 rgb(127 180 247 / 0%);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px #7fb4f7,
      inset 0 0 0 2px #1a1008,
      0 2px 0 #140c08,
      0 0 0 4px rgb(127 180 247 / 45%);
  }
}
.toast__foot--split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}
.toast__mute-all {
  display: none;
}
/* Confirm = .btn--gold · Go To = .btn--go (green) · classes set in toast HTML. */
.toast__goto {
  min-height: 2rem;
  padding: 0.28rem 0.85rem;
  font-size: 0.78rem;
}

@media (max-width: 64rem) {
  .ach-set__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .ach-set__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 64rem) {
  .activity-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-cards .activity-card__orbs {
    --reward-orb-size: 3.45rem;
    --reward-plate-w: 3.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .activity-cards { grid-template-columns: 1fr; }
  .activity-card__art { height: 8.5rem; }
  .activity-cards .activity-card__orbs {
    --reward-orb-size: 3.55rem;
    --reward-plate-w: 3.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 28rem) {
  .activity-card__orbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .modal__ornate-head { padding-left: 0.5rem; padding-top: 1.25rem; }
  .modal__moon { display: none; }
  .modal__vine { opacity: 0.55; }
}



/* Daily Coop Wheel (Daily Check-in) · keep fit/width rules from head-band block. */
dialog.modal.modal--checkin {
  max-height: min(94vh, 56rem);
  overflow: hidden;
}
/*
 * Full-viewport luck / casino-felt / farm dusk plate behind the open check-in.
 * Soft and non-distracting · shop/incubator room energy without a busy photo.
 */
body:has(#checkin-modal[open]) {
  background:
    radial-gradient(ellipse 70% 45% at 50% 8%, rgb(196 150 70 / 16%), transparent 55%),
    radial-gradient(ellipse 55% 40% at 12% 88%, rgb(46 96 58 / 22%), transparent 50%),
    radial-gradient(ellipse 50% 35% at 92% 70%, rgb(120 48 70 / 12%), transparent 48%),
    linear-gradient(180deg, #141c18 0%, #10161c 42%, #0c1214 100%);
}
dialog.modal.modal--checkin::backdrop {
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgb(180 130 50 / 14%), transparent 60%),
    rgb(4 8 10 / 78%);
}
dialog.modal.modal--checkin .modal__panel.checkin-panel {
  /* Room plate under the head band · felt green + warm gold luck wash. */
  background:
    linear-gradient(180deg, rgb(10 14 12 / 28%), rgb(8 10 14 / 52%)),
    repeating-linear-gradient(
      135deg,
      transparent 0 11px,
      rgb(180 140 70 / 4%) 11px 12px
    ),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgb(200 155 70 / 14%), transparent 58%),
    linear-gradient(180deg, #1a2820, #121820 55%, #0e1418);
}
dialog.modal.modal--checkin .modal__panel.pixel-frame > .modal__body.checkin-board,
dialog.modal.modal--checkin .modal__body.checkin-board {
  /* Beats the shared transparent body rule. Dots fill the whole check-in body. */
  background: var(--slate-window);
}
dialog.modal.modal--checkin .checkin-board__earn,
dialog.modal.modal--checkin .coop-wheel,
dialog.modal.modal--checkin .coop-wheel__cols,
dialog.modal.modal--checkin .coop-wheel__col {
  background: transparent;
}
dialog.modal.modal--checkin .coop-wheel__col--wheel {
  overflow: visible;
}
dialog.modal.modal--checkin .modal__panel.pixel-frame::after,
dialog.modal.modal--checkin .modal__panel.pixel-frame > .pixel-frame__fx {
  /* Keep vines / wood rim above the treasure banner. */
  z-index: 12;
  pointer-events: none;
}
.coop-wheel {
  display: grid;
  gap: var(--space-2);
}
.coop-wheel__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  width: 100%;
}
@media (min-width: 72rem) {
  .coop-wheel__cols {
    grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
    gap: var(--space-4);
  }
}
.coop-wheel__col--wheel {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.2rem;
  /* Header flush · modest clear under the hanging sign. */
  padding-top: 0.55rem;
  margin-top: 0;
  min-width: 0;
}
.coop-wheel__col--odds {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.coop-wheel__streak-panel,
.coop-wheel__odds-panel {
  display: grid;
  gap: 0.4rem;
}
.coop-wheel__streak-row {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.coop-wheel__stage {
  position: relative;
  width: min(100%, 22rem);
  margin-top: 0;
  overflow: visible;
  padding: 0.65rem;
  border-radius: 4px;
  /* Stage is clear · body slate shows through. */
  background: transparent;
}
@media (min-width: 52rem) {
  .coop-wheel__stage { width: min(100%, 28rem); }
}
/* Streak / Best · outside the wheel disc (clear of the rim). */
.coop-wheel__corner-stat {
  position: absolute;
  top: -0.15rem;
  z-index: 4;
  width: auto;
  pointer-events: none;
}
.coop-wheel__corner-stat--streak { left: -3.15rem; }
.coop-wheel__corner-stat--best { right: -3.15rem; }
.coop-wheel__corner-stat.checkin-board__stat {
  margin: 0;
}
.coop-wheel__plate {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
}
.coop-wheel__box {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
#coop-wheel-disc {
  /* viewBox centered at origin · fill-box keeps spin circular. */
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 14px 18px rgb(74 42 18 / 35%));
}
.coop-wheel__pointer {
  position: absolute;
  left: 50%;
  top: -11px;
  z-index: 3;
  width: 52px;
  height: 66px;
  overflow: visible;
  transform: translateX(-50%);
  transform-origin: 50% 35%;
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / 30%));
  pointer-events: none;
}
.coop-wheel__hub {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 7px 0 #1d1d21, 0 12px 16px rgb(0 0 0 / 45%);
  transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}
.coop-wheel__hub svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.1s;
}
.coop-wheel__hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 rgb(0 0 0 / 0);
  transition: box-shadow 0.1s;
}
.coop-wheel__hub:hover:not(:disabled) {
  transform: translate(-50%, calc(-50% + 2px));
  box-shadow: 0 5px 0 #1d1d21, 0 9px 12px rgb(0 0 0 / 40%);
}
.coop-wheel__hub:hover:not(:disabled) svg { transform: scale(0.985); }
.coop-wheel__hub:hover:not(:disabled)::after {
  box-shadow: inset 0 3px 7px rgb(0 0 0 / 35%);
}
.coop-wheel__hub:active:not(:disabled) {
  transform: translate(-50%, calc(-50% + 6px));
  box-shadow: 0 1px 0 #1d1d21, 0 3px 5px rgb(0 0 0 / 40%);
}
.coop-wheel__hub:active:not(:disabled) svg { transform: scale(0.94); }
.coop-wheel__hub:active:not(:disabled)::after {
  box-shadow: inset 0 8px 14px rgb(0 0 0 / 60%);
}
.coop-wheel__hub:disabled {
  filter: grayscale(0.85) brightness(0.75);
  cursor: not-allowed;
}
.coop-wheel__hub:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.coop-wheel__chick {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.coop-wheel__hub:not(:disabled) .coop-wheel__chick {
  animation: coop-wheel-peck 1.8s ease-in-out infinite;
}
@keyframes coop-wheel-peck {
  0%, 62%, 100% { transform: none; }
  70% { transform: translateY(4px) rotate(5deg); }
  78% { transform: none; }
  86% { transform: translateY(3px) rotate(-4deg); }
  94% { transform: none; }
}
.coop-wheel__confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}
.coop-wheel__status {
  margin: 0.35rem 0 0;
  font-weight: 700;
  text-align: center;
  min-height: 1.4em;
  color: var(--ink);
  font-size: var(--text-sm);
}
.coop-wheel__odds-title {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.coop-wheel__odds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
/* Prize-odds rows only · do not restyle Streak/Best check-in stats. */
.coop-wheel__odds .coop-wheel__odd {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.65rem;
  padding: 0.45rem 0.55rem;
}
.coop-wheel__odd--tone-c5,
.coop-wheel__odd--tone-c10,
.coop-wheel__odd--tone-c20,
.coop-wheel__odd--tone-c50 {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, #e0b45a 70%, #e0b050),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
  border-color: color-mix(in srgb, #e0b45a 40%, #2a170c);
}
.coop-wheel__odd--tone-chips {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, #ca7b76 60%, #e89898),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
  border-color: color-mix(in srgb, #ca7b76 40%, #2a170c);
}
.coop-wheel__odd--tone-xp {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, #7fb4f7 60%, #5a3c24),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
  border-color: color-mix(in srgb, #7fb4f7 40%, #2a170c);
}
.coop-wheel__odd--tone-bundle {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, #b48cff 60%, #5a3c24),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
  border-color: color-mix(in srgb, #b48cff 40%, #2a170c);
}
.coop-wheel__odd--rare {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--gold) 70%, #e0b050),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
}
.coop-wheel__odd--egg {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, #8fb9a4 60%, #5a3c24),
    inset 0 0 0 5px #1a1008,
    0 2px 0 #140c08;
  border-color: color-mix(in srgb, #8fb9a4 45%, #2a170c);
}
.coop-wheel__odd-icon {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  image-rendering: pixelated;
}
.coop-wheel__odd-name {
  font-size: 0.92rem;
  font-weight: 700;
  min-width: 0;
  color: var(--ink);
}
.coop-wheel__odd-pct {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.coop-wheel__bulb {
  stroke: #2e1708;
  stroke-width: 1;
  fill: #7a4a14;
  animation: coop-wheel-chase 0.6s linear infinite;
}
/* Day already spun · chase bulbs go dark (no free/extra spins left). */
.coop-wheel[data-claimed="1"] .coop-wheel__bulb {
  animation: none;
  fill: #2a1a0c;
  stroke: #1a1008;
  opacity: 0.55;
}
@keyframes coop-wheel-chase {
  0%, 49% { fill: #ffe58a; }
  50%, 100% { fill: #7a4a14; }
}
.coop-wheel-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgb(8 6 4 / 72%);
}
.coop-wheel-modal.is-open { display: flex; }
.coop-wheel-modal__pop {
  position: relative;
  color: #e8eef6;
  border-radius: 0;
  padding: calc(var(--frame-rim) + 1.1rem) calc(var(--frame-rim) + 1rem) calc(var(--frame-rim) + 1rem);
  /* Width comes from earn-stage tokens (--earn-pop-w / --earn-pop-w-wide). */
  width: min(var(--earn-pop-w, calc(30rem + 50px)), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w, calc(30rem + 50px)), calc(var(--content-w) - 3rem));
  text-align: center;
  border: 0;
  box-shadow: 0 8px 22px rgb(0 0 0 / 55%);
  animation: coop-wheel-pop 0.45s cubic-bezier(.2, 1.6, .4, 1);
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
}
.coop-wheel-modal__pop.modal__panel.pixel-frame {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: unset;
  /* Set: flush (frame-set registry). */
  width: min(var(--earn-pop-w-wide, calc(32rem + 50px)), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w-wide, calc(32rem + 50px)), calc(var(--content-w) - 3rem));
  box-sizing: border-box;
  background:
    linear-gradient(180deg, color-mix(in srgb, #2a1c12 35%, var(--panel-strong)), var(--panel-strong));
  color: var(--earn-cream, #f0e2c4);
}
.coop-wheel-modal__pop::before {
  content: none;
}
.coop-wheel-modal__row-label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #c5d4e6 82%, transparent);
  text-align: center;
}
.coop-wheel-modal__wheel-block {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 0.45rem 0.55rem 0.55rem;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgb(12 8 4 / 22%), rgb(8 5 2 / 38%)),
    var(--wood-plank, #5c3a20);
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 2px color-mix(in srgb, #cdb47c 55%, #4a2e1a),
    0 3px 0 rgb(0 0 0 / 40%);
}
.coop-wheel-modal__wheel-block--rare {
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 2px color-mix(in srgb, #cdb47c 55%, #4a2e1a),
    0 0 0 3px rgb(184 77 255 / 28%),
    0 0 22px rgb(184 77 255 / 42%),
    0 3px 0 rgb(0 0 0 / 40%);
}
.coop-wheel-modal__wheel-block--egg {
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 2px color-mix(in srgb, #cdb47c 55%, #4a2e1a),
    0 0 0 3px rgb(255 215 0 / 30%),
    0 0 26px rgb(255 215 0 / 38%),
    0 3px 0 rgb(0 0 0 / 40%);
}
.coop-wheel-modal__pop .reward-modal__list {
  grid-template-columns: repeat(auto-fit, minmax(0, 7.35rem));
  justify-content: center;
  justify-items: stretch;
  max-width: calc(4 * 7.35rem + 3 * 0.75rem);
  width: 100%;
  margin-inline: auto;
}
.coop-wheel-modal__pop .reward-modal__list--wheel {
  grid-template-columns: repeat(auto-fit, minmax(0, 9.6rem));
  max-width: calc(3 * 9.6rem + 2 * 0.75rem);
}
.coop-wheel-modal__pop .reward-modal__card {
  width: 100%;
  max-width: 7.35rem;
}
.coop-wheel-modal__pop .reward-modal__card--wheel-wide {
  position: relative;
  max-width: 9.6rem;
  width: 9.6rem;
  padding-top: 0.7rem;
  padding-inline: 0.65rem;
}
.reward-modal__card-badge {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  z-index: 3;
  display: inline-block;
  padding: 0.12rem 0.38rem;
  border: 1px solid #2a170c;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #c9a24a 0%, #8a6510 55%, #5a3c18 100%);
  box-shadow:
    inset 0 1px 0 #f3d98a,
    inset 0 -1px 0 #3a2410,
    0 1px 0 rgb(0 0 0 / 45%);
  color: #1a1008;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.coop-wheel-modal__wheel-block--rare .reward-modal__card-badge {
  background: linear-gradient(180deg, #d4a0ff 0%, #b84dff 55%, #6a2a9a 100%);
  border-color: #2a1040;
  color: #fff8ff;
  box-shadow:
    inset 0 1px 0 #f0d8ff,
    inset 0 -1px 0 #3a1858,
    0 1px 0 rgb(0 0 0 / 45%);
}
.coop-wheel-modal__wheel-block--egg .reward-modal__card-badge {
  background: linear-gradient(180deg, #ffe9a0 0%, #e0b050 55%, #8a6510 100%);
  border-color: #3a2410;
  color: #1a1008;
}
.coop-wheel-modal__pop .earn-stage__actions .btn--go,
.coop-wheel-modal__pop .btn--go.earn-stage__claim {
  justify-self: center;
  margin: 0;
  --btn-face: #34a046;
  --btn-lip: #144a20;
  color: #fff;
}
/* Outer pop glow retired · rare/egg glow is on .coop-wheel-modal__wheel-block--*. */
.coop-wheel-modal__pop--rare,
.coop-wheel-modal__pop--egg {
  box-shadow: 0 8px 22px rgb(0 0 0 / 55%);
}
@keyframes coop-wheel-pop {
  from { transform: scale(0.45); opacity: 0; }
}
.coop-wheel-modal__deltas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}
.coop-wheel-modal__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 55%, transparent);
  color: #f0e4c8;
  font-size: 0.82rem;
  font-weight: 700;
}
.coop-wheel-modal__delta img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  image-rendering: pixelated;
}
.coop-wheel-modal__delta strong {
  font-variant-numeric: tabular-nums;
  color: #b6e6c4;
}
.coop-wheel-modal__delta--loss strong {
  color: #ff8a80;
}
.coop-wheel-modal__delta span:last-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
}
.coop-wheel-modal__icon {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  margin: 0.25rem auto;
}
.coop-wheel-modal__pop h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #f0e9dc;
}
.coop-wheel-modal__pop h2.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.coop-wheel-modal__pop p {
  margin: 0;
  font-weight: 600;
  color: #9aa8bc;
}
.coop-wheel-modal__meta {
  color: #d4c9ba !important;
  font-size: var(--text-sm);
  margin: 0.1rem 0 0 !important;
}
.coop-wheel-modal__tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #b84dff;
  color: #fff;
  margin-bottom: 0.35rem;
}
.coop-wheel-modal__loot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0.4rem 0 0.9rem;
}
.coop-wheel-modal__loot span {
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
  font-size: var(--text-xs);
}
@media (max-width: 51.99rem) {
  .coop-wheel__odds { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .coop-wheel__hub:not(:disabled) .coop-wheel__chick { animation: none !important; }
  .coop-wheel__bulb { animation: none; fill: #fff8dc; }
  .coop-wheel-modal__pop { animation: none; }
}
html[data-quality="low"] .coop-wheel__hub:not(:disabled) .coop-wheel__chick {
  animation: none;
}
html[data-quality="low"] .coop-wheel__bulb {
  animation: none;
  fill: #ffe58a;
}



.q-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: #120c08;
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 65%), 0 6px 10px rgb(0 0 0 / 45%);
}
.q-tools__sum { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.q-tools__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.q-tools__top b {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3cf74;
}
.q-tools__top small { color: var(--muted); font-size: 0.84rem; text-align: right; }
.q-tools__bar { display: block; height: 14px; border: 1px solid #000; border-radius: 2px; background: #05070f; overflow: hidden; }
.q-tools__bar i { display: block; height: 100%; background: linear-gradient(180deg, #8fd06a, #3f8b4a); }
.q-tools__stack { display: flex; flex-direction: column; gap: 0.45rem; }
/* Demo press-button--wood · grain over a two-stop plank, thick bottom edge that sinks on press. */
.q-tools__btn {
  padding: 0.38em 0.8em;
  border: 2px solid rgb(0 0 0 / 55%);
  border-bottom-width: 5px;
  border-radius: 5px;
  background: var(--grain, linear-gradient(transparent, transparent)), linear-gradient(180deg, #7a5230, #4a2f1a);
  border-color: #1a0e06;
  box-shadow: inset 0 1px 0 rgb(255 220 170 / 25%);
  color: #f4e8c8;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.12s, transform 0.06s, border-bottom-width 0.06s;
}
.q-tools__btn:hover { filter: brightness(1.08); }
.q-tools__btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.q-tools__btn:focus-visible { outline: 3px solid #f3cf74; outline-offset: 2px; }
.q-claimall { margin: 0; }
.q-claimall__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: linear-gradient(180deg, #56b84f, #33852f);
  color: #fff6dd;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.q-claimall__prize, .q-card .obj-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.q-sec { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 0.9rem; }
.q-sec__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0.1rem;
  border: 0;
  background: none;
  color: var(--q, #f3cf74);
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
div.q-sec__head { cursor: default; }
.q-sec__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgb(214 180 94 / 55%), transparent);
}
.q-sec__glyph { display: grid; place-items: center; width: 20px; height: 20px; color: var(--q, #f3cf74); }
.q-sec__glyph svg { width: 100%; height: 100%; }
.q-sec__title { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.q-sec__count {
  padding: 0.1rem 0.5rem;
  border: 1px solid #1a0e06;
  border-radius: 9px;
  background: rgb(14 9 6 / 70%);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 60%);
}
.q-sec__count.is-ready {
  background: linear-gradient(180deg, #56b84f, #33852f);
  color: #fff6dd;
  box-shadow: 0 0 10px rgb(95 200 80 / 40%);
}
.q-sec__chev { display: grid; width: 18px; height: 18px; color: #f3cf74; transition: transform 0.18s; }
.q-sec__chev svg { width: 100%; height: 100%; }
[data-obj-sec]:not([open]) .q-sec__chev { transform: rotate(-90deg); }
[data-obj-sec]:not([open]) .q-sec__grid { display: none; }
.q-sec__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.q-card { margin: 0; min-width: 0; }
.q-card__face {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-height: 6.6rem;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  overflow: hidden;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: var(--inset-bg);
  box-shadow: var(--inset-shadow);
  color: #f6f0d8;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.q-card__face::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--q, #f3cf74) 90%, #fff), var(--q, #f3cf74));
}
.q-card--ready .q-card__face,
a.q-card--ready {
  background: linear-gradient(180deg, #3f7a46, #275632);
}
.q-card--claimed .q-card__face,
.q-card__face.q-card--claimed { opacity: 0.72; }
.q-card--locked .q-card__face,
a.q-card--locked { opacity: 0.8; }
.q-card__top { display: flex; align-items: flex-start; gap: 0.55rem; min-width: 0; }
.q-card__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: linear-gradient(180deg, #432a15, #2c1b0d);
  box-shadow: inset 0 1px 0 rgb(255 220 170 / 16%);
  color: var(--q, #f3cf74);
}
.q-card__ic svg { width: 22px; height: 22px; }
.q-card__txt { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.q-card__title { font-size: 1.02rem; line-height: 1.15; }
.q-card__blurb { font-size: 0.84rem; line-height: 1.25; color: #d8c8a8; }
.q-card__state {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8b72;
  white-space: nowrap;
}
.q-card--ready .q-card__state { color: #f6fff0; }
.q-card__prog { display: flex; align-items: center; gap: 0.5rem; min-height: 1.2rem; }
.q-card__prog--hold { visibility: hidden; }
.q-card__track { flex: 1; height: 8px; border: 1px solid #000; border-radius: 2px; background: #05070f; overflow: hidden; }
.q-card__track i { display: block; height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--q, #e0a83a) 70%, #fff), var(--q, #e0a83a)); }
.q-card--ready .q-card__track i { background: #d7f0c8; }
.q-card__prog small { flex: none; font-size: 0.74rem; color: #d8c8a8; }
.q-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 30px;
  margin-top: auto;
}
.q-card__go {
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  background: #3a2a18;
  color: #f6e6c0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.q-card--ready .q-card__go { background: #f3cf74; color: #1a0e06; }
.q-pill {
  display: inline-flex;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: rgb(0 0 0 / 28%);
  font-size: 0.72rem;
}
@media (max-width: 720px) {
  .q-tools { flex-direction: column; align-items: stretch; }
  .q-sec__grid { grid-template-columns: 1fr; }
}

/* Achievements shelf · illustrated head, collection bar, four-up slate cards. */
dialog.modal.modal--shelf .modal-wood-head { height: 148px; }
/* Star sits in the title row, just above Your collection. The earned line is hidden; the count lives on the bar. */
dialog.modal.modal--shelf .modal-wood-head__title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  bottom: calc(2.05rem + 10px);
  left: 0;
  padding-left: 0.45rem;
  padding-bottom: 0.1rem;
}
dialog.modal.modal--shelf .modal-wood-head h2 { font-size: 1.5rem; }
dialog.modal.modal--achievements .modal-wood-head h2::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  background: linear-gradient(180deg, #ffe58a, #e0a83a);
  filter:
    drop-shadow(0.6px 0 0 #6a4a16)
    drop-shadow(-0.6px 0 0 #6a4a16)
    drop-shadow(0 0.6px 0 #6a4a16)
    drop-shadow(0 -0.6px 0 #6a4a16)
    drop-shadow(0 1px 0 rgb(0 0 0 / 80%));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
dialog.modal.modal--shelf .modal-wood-head__sub { display: none; }
dialog.modal.modal--shelf .modal__body {
  background: var(--slate-window);
  padding-top: 0.4rem;
}
/* Collection summary lives in the head (moved there by paintAchHead). Not sticky, so it takes no body space. */
dialog.modal.modal--shelf .ach-tools {
  position: static;
  align-items: stretch;
  padding: 0.65rem 0.8rem;
}
dialog.modal.modal--shelf .modal-wood-head > .ach-tools {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 10px;
  /* Above the head's wood beam, so the beam does not cut through the strip. */
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 0.2rem 0.7rem 0.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}
dialog.modal.modal--shelf .modal-wood-head > .ach-tools form { position: static; }
dialog.modal.modal--shelf .modal-wood-head .q-tools__sum {
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
dialog.modal.modal--shelf .modal-wood-head .q-tools__btn { padding: 0.28em 0.55em; font-size: 0.78rem; }
dialog.modal.modal--shelf .modal-wood-head .q-tools__meter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
dialog.modal.modal--shelf .modal-wood-head .q-tools__bar {
  width: 14rem;
  max-width: 46vw;
  height: 16px;
  flex: none;
  border-color: #1a1208;
  background: rgb(0 0 0 / 45%);
}
dialog.modal.modal--achievements .q-tools__bar i {
  background: linear-gradient(180deg, #d9fbff, #7ee0f2 55%, #3ec4dc);
}
dialog.modal.modal--objectives .q-tools__bar i {
  background: linear-gradient(180deg, #efe4ff, #c4a6f5 55%, #9a78e0);
}
dialog.modal.modal--shelf .q-tools__frac {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6e6c0;
  white-space: nowrap;
}
/* Claim all sits above Expand / Collapse. The column's bottom lines up with the collection bar. */
dialog.modal.modal--shelf .q-tools__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}
dialog.modal.modal--shelf .q-tools__stack { flex-direction: row; justify-content: flex-end; gap: 0.35rem; }
dialog.modal.modal--shelf .modal-wood-head .q-claimall { justify-self: end; }
dialog.modal.modal--shelf .modal-wood-head .q-claimall__btn,
dialog.modal.modal--shelf .modal-wood-head .q-claimall--empty {
  flex-direction: row;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0.28rem 0.6rem;
}
dialog.modal.modal--shelf .q-claimall { display: flex; }
dialog.modal.modal--shelf .q-claimall__btn {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 100%;
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
dialog.modal.modal--shelf .q-claimall--empty {
  display: grid;
  place-items: center;
  min-width: 6.5rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.74rem;
}
/* Phones: title rides the top, the summary is a thin strip along the bottom of the same head. */
@media (max-width: 900px) {
  dialog.modal.modal--shelf .modal-wood-head { height: 132px; }
  dialog.modal.modal--shelf .modal-wood-head h2 { font-size: 1.15rem; }
  dialog.modal.modal--achievements .modal-wood-head h2::before { width: 0.95rem; height: 0.95rem; }
}
@media (max-width: 560px) {
  dialog.modal.modal--shelf .q-tools__stack { display: none; }
  dialog.modal.modal--shelf .modal-wood-head .q-tools__ready { display: none; }
}
dialog.modal.modal--shelf .q-sec__count {
  border: 0;
  background: none;
  box-shadow: none;
  color: #d5d8e6;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
dialog.modal.modal--shelf .q-sec__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
/* Cards use the shared inset face and set-colored spine. The bar row pins to the bottom so a row of cards shares one baseline. */
dialog.modal.modal--shelf .q-card { display: flex; height: 100%; }
dialog.modal.modal--shelf .q-card__face {
  flex: 1;
  height: 100%;
  min-height: 0;
  padding: 0.65rem 0.75rem 0.55rem 0.95rem;
  gap: 0.4rem;
  overflow: visible;
}
dialog.modal.modal--shelf .q-card__ic .q-card__svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
dialog.modal.modal--shelf .q-card__ic:has(.q-card__svg) > svg { display: none; }
dialog.modal.modal--shelf .q-card__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5em;
  max-height: 2.5em;
}
dialog.modal.modal--shelf .q-card:hover,
dialog.modal.modal--shelf .q-card:focus-within { z-index: 2; }
dialog.modal.modal--shelf .q-card--claimed .q-card__face,
dialog.modal.modal--shelf .q-card__face.q-card--claimed { opacity: 1; }
dialog.modal.modal--shelf .q-card--locked .q-card__face,
dialog.modal.modal--shelf article.q-card--locked { opacity: 0.88; }
dialog.modal.modal--shelf .q-card__title { font-size: 1rem; color: #f6f0d8; }
dialog.modal.modal--shelf .q-card__blurb { font-size: 0.82rem; color: #c9bfa6; }
dialog.modal.modal--shelf .q-card__barline {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  margin-top: auto;
}
dialog.modal.modal--shelf .q-card__barline .q-card__prog { flex: 1; min-width: 0; }
dialog.modal.modal--shelf .q-card__act { position: relative; flex: none; display: flex; align-items: flex-end; }
dialog.modal.modal--shelf .q-card__loot {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  width: max-content;
  max-width: 14rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid #e0a83a;
  border-radius: 4px;
  background: #1a140c;
  box-shadow: 0 6px 14px rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
dialog.modal.modal--shelf .q-card__loot::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: #e0a83a;
}
dialog.modal.modal--shelf .q-card__act:hover .q-card__loot,
dialog.modal.modal--shelf .q-card__act:focus-within .q-card__loot {
  opacity: 1;
  visibility: visible;
}
dialog.modal.modal--shelf .q-card__loot .obj-prize,
dialog.modal.modal--shelf .q-card__loot .q-pill {
  padding: 0.12rem 0.5rem;
  border: 1px solid rgb(0 0 0 / 55%);
  border-radius: 999px;
  background: rgb(0 0 0 / 38%);
  color: #f6f0d8;
  font-size: 0.76rem;
  font-weight: 700;
}
dialog.modal.modal--shelf .q-card__stat {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8470;
  white-space: nowrap;
}
dialog.modal.modal--shelf .q-card__stat--ok { color: #7fd48a; }
/* Ready to claim: reward chips get a gold outline. */
dialog.modal.modal--shelf .q-card--ready .q-card__loot .obj-prize,
dialog.modal.modal--shelf .q-card--ready .q-card__loot .q-pill {
  border-color: #f3cf74;
  box-shadow: 0 0 0 1px rgb(243 207 116 / 25%);
}
dialog.modal.modal--shelf a.q-card__go--wood {
  margin-left: 0;
  padding: 0.32em 0.75em;
  border: 2px solid #1a0e06;
  border-bottom-width: 5px;
  border-radius: 5px;
  background: var(--grain, linear-gradient(transparent, transparent)), linear-gradient(180deg, #7a5230, #4a2f1a);
  box-shadow: inset 0 1px 0 rgb(255 220 170 / 25%);
  color: #f4e8c8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.12s, transform 0.06s, border-bottom-width 0.06s;
}
dialog.modal.modal--shelf a.q-card__go--wood:hover { filter: brightness(1.08); }
dialog.modal.modal--shelf a.q-card__go--wood:active { transform: translateY(3px); border-bottom-width: 2px; }
/* Same press as the hero sidebar Claim, in that green. */
dialog.modal.modal--shelf .q-card--ready .q-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 0.38em 0.7em;
  border: 2px solid #22611f;
  border-bottom-width: 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #56b84f, #3e9a3a 55%, #33852f);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 28%), 0 0 20px rgb(95 200 80 / 28%);
  color: #fff6dd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 0 rgb(0 0 0 / 40%);
  text-transform: uppercase;
  white-space: nowrap;
}
dialog.modal.modal--shelf .q-card--ready .q-card__face:active .q-card__go {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
@media (min-width: 1400px) {
  dialog.modal.modal--shelf .q-sec__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  dialog.modal.modal--shelf .q-sec__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  dialog.modal.modal--shelf .q-sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  dialog.modal.modal--shelf .q-sec__grid { grid-template-columns: minmax(0, 1fr); }
  dialog.modal.modal--shelf .q-claimall,
  dialog.modal.modal--shelf .q-claimall__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .q-sec__chev { transition: none; }
}


/* One width scale. data-size beats the 52rem dialog.modal default. */
dialog.modal[data-size="sm"] { width: var(--modal-sm); max-width: var(--modal-sm); }
dialog.modal[data-size="md"] { width: var(--modal-md); max-width: var(--modal-md); }
dialog.modal[data-size="lg"] { width: var(--modal-lg); max-width: var(--modal-lg); }
dialog.modal[data-size="xl"] { width: var(--modal-xl); max-width: var(--modal-xl); }
dialog.modal[data-size="max"] { width: var(--modal-xl); max-width: var(--modal-xl); }
@media (min-width: 1400px) {
  dialog.modal[data-size="max"] { width: var(--modal-max); max-width: var(--modal-max); }
}

@media (max-width: 45rem) {
  /* Same plate · slightly larger hit for thumbs. */
  .modal__close {
    --modal-close-size: 2.2rem;
    --modal-close-x: 1.15rem;
  }
}


/*
 * Universal earn-stage tokens · claimed / skill / arcade / wheel pop.
 * Keep vine gutters + widths here so popups stay synced.
 */
.earn-stage-panel,
dialog.modal.modal--earn,
.coop-wheel-modal__pop.earn-stage-panel {
  /* Prefer Set 1 gutter when both classes apply; keep token for legacy. */
  --earn-vine-gutter: var(--set1-vine-gutter, 52px);
  --earn-pop-w: calc(30rem + 50px);
  /* Wide enough for four prize cards · room for Coming soon on one line. */
  --earn-pop-w-wide: calc(50rem + 50px);
}
/* Claim / earn pops · narrower than Daily Check-in, +50px vs prior. */
dialog.modal.modal--earn {
  width: min(var(--earn-pop-w), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w), calc(var(--content-w) - 3rem));
  background: transparent;
  box-shadow: none;
}
dialog.modal.modal--earn.modal--earn-wide {
  width: min(var(--earn-pop-w-wide), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w-wide), calc(var(--content-w) - 3rem));
}
/* Flush wood head · overflow visible so short-rope plaque is not cropped. */
dialog.modal.modal--earn .earn-stage-panel.modal__panel.pixel-frame,
.coop-wheel-modal__pop.earn-stage-panel.modal__panel.pixel-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--earn-cream);
  overflow: hidden;
  width: min(var(--earn-pop-w), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w), calc(var(--content-w) - 3rem));
  box-sizing: border-box;
}
dialog.modal.modal--earn.modal--earn-wide .earn-stage-panel.modal__panel.pixel-frame,
.coop-wheel-modal__pop.earn-stage-panel.earn-stage--wide.modal__panel.pixel-frame {
  width: min(var(--earn-pop-w-wide), calc(100vw - 2.5rem));
  max-width: min(var(--earn-pop-w-wide), calc(var(--content-w) - 3rem));
}
/*
 * Universal claimed/prizes header · scene image in head · slate body below.
 * Title sign + compact X stay inside the head (never overlays the body).
 * Shared by earn-stage, Prizes booth, Coop wheel Claimed pop.
 */
.earn-stage-panel--claimed > .earn-stage__head,
.coop-wheel-modal__pop.earn-stage-panel > .earn-stage__head {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  /* Bleed over the flush-set rim padding so the scene runs to the beams. */
  margin: calc(-1 * var(--frame-rim)) calc(-1 * var(--frame-rim)) 0;
  width: calc(100% + 2 * var(--frame-rim));
  max-width: none;
  min-height: 5.15rem;
  /*
   * Shared vine-aware head pad · wood rim top + side gutters clear painted vines.
   * Bal / X / plaque all sit inside this inset (no per-modal overrides).
   */
  --earn-head-x: max(0.85rem, calc(var(--earn-vine-gutter, 52px) * 0.72));
  padding:
    calc(var(--frame-rim) + 0.45rem)
    var(--earn-head-x)
    0.85rem;
  box-sizing: border-box;
  overflow: visible;
  background:
    linear-gradient(180deg, rgb(10 12 20 / 42%), rgb(8 10 16 / 78%)),
    url("/assets/placeholders/scenes/claimed-rewards.webp") center / cover no-repeat,
    #121c30;
  box-shadow: none;
}
.earn-stage__head-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45rem;
  min-height: 3.65rem;
}
.earn-stage__head-start {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  align-self: start;
  /* Clear top wood rim only · side inset comes from head padding. */
  margin: var(--frame-close-gap) 0 0;
  min-height: 1.7rem;
}
.earn-stage__sign {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-inline: 0.25rem;
}
.earn-stage__plaque-wrap {
  position: relative;
  z-index: 2;
  /* Rope fills the gap, and the whole sign sits 15px higher. */
  padding-top: 1.35rem;
  margin-top: -15px;
}
.earn-stage__plaque-wrap .carved-plaque__chain {
  z-index: 0;
  height: 1.35rem;
}
.earn-stage__plaque-wrap .carved-plaque {
  position: relative;
  z-index: 2;
  margin: 0;
}
.earn-stage__close {
  position: relative;
  z-index: 5;
  /* Shared close corner: head pads rim + 0.45rem on top and --earn-head-x on the right. */
  margin: calc(var(--frame-close-top) - var(--frame-rim) - 0.45rem) calc(var(--frame-close-right) - var(--earn-head-x)) 0 0;
  padding: 0;
  display: grid;
  place-items: start end;
  align-self: start;
}
.earn-stage__close .modal__close,
button.earn-stage__close.modal__close {
  /* Compact pale-red plate · never inherit Set-1 tall pad. */
  --modal-close-size: 1.7rem;
  --modal-close-x: 1.25rem;
  margin: 0;
  padding: 0;
}
.earn-stage__lede {
  margin: 0 0 0.85rem;
  padding: 0;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--earn-straw);
  text-shadow: 0 1px 0 rgb(0 0 0 / 65%);
}
.earn-stage__body--slate > .earn-stage__lede:first-child {
  margin-top: 0.15rem;
}

.earn-stage__body {
  /* Face the slate body inward from painted vines (matches title / X gutters). */
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding: 1.25rem var(--earn-vine-gutter) 1.55rem;
  /* Room for a fourth reward row without an inner scrollbar on typical hauls. */
  max-height: min(84vh, 46rem);
  overflow: auto;
}
@media (max-width: 40rem) {
  .earn-stage__body {
    /* Less empty band above the fold on phone. */
    padding-top: 0.65rem;
    padding-bottom: 1.1rem;
    max-height: min(78vh, 40rem);
  }
}
/* Slate body under the scene head · shared by Claimed / Prizes / skill. */
.earn-stage__body--slate,
.earn-stage__body--scene {
  background: var(--page-panel-slate);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
/* Skill detail pop-up · a little more air inside the slate well. */
.earn-stage__body--scene.skill-detail,
[data-lazy-url*="skill-detail"] .earn-stage__body--scene,
.earn-stage__body--scene:has(.skill-detail__level) {
  padding: 1.45rem calc(var(--earn-vine-gutter) + 0.35rem) 1.7rem;
}

.earn-stage__sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.85rem 0 0.95rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--earn-straw);
  text-shadow: 0 2px 0 #000;
}
.earn-stage__sec:first-child { margin-top: 0.55rem; }
.earn-stage__body > .earn-stage__sec + .earn-stage__grid + .earn-stage__sec,
.earn-stage__body > section + section > .earn-stage__sec {
  margin-top: 2.1rem;
}
/* Symmetric wood rules · centered section labels. */
.earn-stage__sec::before,
.earn-stage__sec::after {
  content: "";
  flex: 1 1 0;
  height: 4px;
  max-width: 5.75rem;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--earn-wood-1) 0 8px, var(--earn-wood-3) 8px 11px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--earn-straw) 27%, transparent), inset 0 1px 1px rgb(0 0 0 / 50%);
}

.earn-stage__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.05rem 1rem;
  justify-items: center;
  /* Never paint hot rim on the grid · only on individual .earn-slot--hot cards. */
  box-shadow: none;
  background: transparent;
  padding: 0;
  border: 0;
}
.earn-stage__grid > .earn-slot {
  flex: 0 1 calc((100% - 2rem) / 3);
  width: calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
}
.earn-claim-list {
  display: grid;
  gap: 0.45rem;
  margin: 0 auto;
  max-width: 22rem;
  padding: 0.35rem 0.15rem 0.15rem;
}
.earn-claim-list__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  background: rgb(8 12 20 / 55%);
  border: 1px solid color-mix(in srgb, var(--earn-wood-2, #6a4426) 55%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}
.earn-claim-list__mark {
  flex: 0 0 auto;
  color: var(--earn-grn, #6fe09a);
  font-weight: 800;
  text-shadow: 0 1px 0 #000;
}
.earn-claim-list__name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--earn-cream, #f0e2c4);
  text-shadow: 0 1px 0 #000;
}
.earn-stage__grid.earn-slot--hot {
  box-shadow: none;
  --glow: transparent;
}

.earn-slot {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 3px;
  padding: 0.45rem 0.55rem;
  text-align: center;
  border: var(--inset-border, 1px solid #1a0e06);
  background: var(--inset-bg, rgb(14 9 6 / 55%));
  box-shadow: var(--inset-shadow, inset 0 3px 9px rgb(0 0 0 / 65%));
  list-style: none;
}
.earn-slot::before,
.earn-slot::after { content: none; }
.earn-slot__plate {
  margin: 0 0.35rem 0.28rem;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #f6e6c0;
  text-shadow: 0 1px 0 rgb(0 0 0 / 75%);
  background: none;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}
.earn-slot__well {
  position: relative;
  height: 3.4rem;
  margin: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  overflow: visible;
}
/* Rarity / lucky badge · top-right of art well (not over the plate title). */
.earn-slot__well .reward-modal__card-badge {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  z-index: 4;
}
.earn-slot__well::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 30%, var(--glow, var(--earn-glow)), transparent 65%);
  pointer-events: none;
}
.earn-slot__well img,
.earn-slot__well svg,
.earn-slot__well .icon {
  width: 3.35rem;
  height: 3.35rem;
  position: relative;
  filter: drop-shadow(0 4px 2px rgb(0 0 0 / 75%));
}
.earn-slot__vals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.4rem;
}
.earn-slot__val {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  color: #f6e6c0;
  text-shadow: none;
  background: none;
  box-shadow: none;
}
.earn-slot__bal {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--earn-mut);
  text-shadow: 0 1px 0 #000;
}
.earn-slot--hot {
  --glow: #ff9a5a88;
  box-shadow:
    var(--inset-shadow, inset 0 3px 9px rgb(0 0 0 / 65%)),
    0 0 0 1px var(--earn-hot);
}
.earn-slot--loss .earn-slot__val {
  color: var(--danger);
  text-shadow: 0 0 8px color-mix(in srgb, var(--danger) 55%, transparent), 0 2px 0 #000;
}

.earn-stage__note--weather {
  margin: 0.35rem 0 0;
  color: #9ab0c8;
  font-size: 0.85rem;
  font-style: italic;
}
.earn-stage__note {
  text-align: center;
  color: var(--earn-mut);
  font-weight: 800;
  font-size: 0.82rem;
  margin: 1.25rem 0 0;
}
.earn-stage__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.15rem 0 0;
  width: 100%;
}
.earn-stage__claim {
  display: inline-flex;
  margin: 0;
  min-width: 8.5rem;
}

.earn-lvl {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.earn-lvl h3,
.earn-lvl__n {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--earn-cream);
  text-shadow: 0 3px 0 #000;
}
.earn-lvl span {
  color: var(--earn-mut);
  font-weight: 800;
  font-size: 0.82rem;
}

.earn-bar {
  position: relative;
  height: 1.85rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  border: 4px solid var(--earn-wood-4);
  background: rgb(0 0 0 / 55%);
  box-shadow: inset 0 4px 8px #000, 0 0 0 2px var(--earn-wood-1), 0 3px 0 2px rgb(0 0 0 / 50%);
  overflow: hidden;
}
.earn-bar .meter {
  margin: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.earn-bar .meter.meter--plasma { height: 100%; }
.earn-bar__pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--earn-plate-ink);
  text-shadow: 0 1px 0 rgb(255 255 255 / 50%);
  pointer-events: none;
}
.earn-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--earn-mut);
  margin-top: 0.45rem;
}
.earn-chip {
  margin-top: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgb(0 0 0 / 38%);
  border: 2px solid var(--earn-wood-2);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 62%);
  color: var(--earn-cream);
}
.earn-chip--strong { color: #7eb0ff; }
.earn-chip--weak { color: #b6e6c4; }

.earn-loc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  border-radius: 0.55rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(0 0 0 / 13%) 3px 4px),
    linear-gradient(180deg, var(--earn-wood-1), var(--earn-wood-2));
  box-shadow:
    0 0 0 2px #9a6a38,
    0 0 0 3px #5a3a1c,
    inset 0 2px 0 color-mix(in srgb, var(--earn-straw) 47%, transparent),
    0 6px 8px rgb(0 0 0 / 55%);
}
.earn-loc + .earn-loc { margin-top: 0.55rem; }
.earn-loc .earn-slot__well {
  height: 3.35rem;
  width: 3.35rem;
  flex: none;
  margin: 0;
}
.earn-loc .earn-slot__well img,
.earn-loc .earn-slot__well svg,
.earn-loc .earn-slot__well .icon {
  width: 2.35rem;
  height: 2.35rem;
}
.earn-loc b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--earn-cream);
  text-shadow: 0 2px 0 #000;
}
.earn-loc small {
  color: var(--earn-straw);
  font-weight: 800;
  font-size: 0.75rem;
}
.earn-loc .earn-slot__val {
  margin: 0 0 0 auto;
  font-size: 1.2rem;
}
.earn-fine {
  margin: 0.85rem 0.1rem 0;
  color: var(--earn-mut);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.55;
}

.earn-stage__fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.earn-stage__fall img {
  position: absolute;
  top: -1.8rem;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.85;
  animation: earn-fall 4.5s linear infinite;
}
.earn-stage__fall img:nth-child(1) { left: 10%; animation-delay: -1s; }
.earn-stage__fall img:nth-child(2) { left: 35%; animation-delay: -3s; }
.earn-stage__fall img:nth-child(3) { left: 62%; animation-delay: -2s; }
.earn-stage__fall img:nth-child(4) { left: 88%; animation-delay: -4s; }
@keyframes earn-fall {
  to { translate: 1.25rem 35rem; rotate: 280deg; }
}
@keyframes earn-pop {
  from { transform: scale(0.85) translateY(1.5rem); opacity: 0; }
}
.earn-stage-panel { animation: earn-pop 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .earn-stage-panel,
  .earn-stage__fall img { animation: none !important; }
}

.coop-wheel-modal__pop.earn-stage-panel {
  text-align: unset;
  color: var(--earn-cream);
}
.coop-wheel-modal__pop.earn-stage-panel::before { content: none; }


dialog.modal.modal--set1,
.modal__panel.set1-panel,
.earn-stage-panel.set1-panel,
.coop-wheel-modal__pop.set1-panel,
.inventory.set1-panel {
  --set1-vine-gutter: var(--vine-gutter, 52px);
  --set1-sign-nudge: var(--frame-sign-nudge);
}
dialog.modal.modal--set1 {
  background: transparent;
  box-shadow: none;
}
.modal__panel.set1-panel.pixel-frame,
.earn-stage-panel.set1-panel.pixel-frame,
.coop-wheel-modal__pop.set1-panel.pixel-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  box-sizing: border-box;
  background: #120c08;
  color: var(--earn-cream, #f0e2c4);
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
/* Zero-height origin under the top wood rim · plaque hangs like Arcade. */
.set1-sign-band {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
  min-height: 3.35rem;
  margin: 0;
  padding: 0.15rem var(--set1-vine-gutter) 0.35rem;
  box-sizing: border-box;
  pointer-events: none;
}
.set1-sign-band__left,
.set1-sign-band__mid,
.set1-sign-band__right {
  min-width: 0;
}
.set1-sign-band__left {
  justify-self: start;
}
.set1-sign-band__mid {
  justify-self: center;
  display: flex;
  justify-content: center;
}
.set1-sign-band__right {
  justify-self: end;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
}
.set1-sign-band__mid .set1-plaque-wrap {
  left: auto;
  transform: none;
}
.set1-sign-band > * {
  pointer-events: auto;
}
.set1-plaque-wrap {
  position: relative;
  /*
   * Hang from just under the painted wood rim (not through it).
   * Chains sit below .pixel-frame__fx (z 5–6) so the rim covers the hook point.
   */
  top: var(--frame-sign-top);
  left: 0;
  z-index: 3;
  margin: 0;
  transform: translateX(var(--set1-sign-nudge));
}
.set1-plaque-wrap .carved-plaque,
.set1-plaque.carved-plaque {
  margin: 0;
  /* Dynamic width · hanging plaque face lives on .hanging-plaque. */
  width: fit-content;
  max-width: min(100%, 22rem);
  min-width: 0;
}
.set1-plaque.carved-plaque h2,
.set1-plaque-wrap .carved-plaque h2,
.set1-plaque.carved-plaque p,
.set1-plaque-wrap .carved-plaque p {
  margin: 0;
  padding: 0;
  line-height: 1.15;
}
/*
 * Hanging-sign set · X lands on the shared close corner (--frame-close-top /
 * --frame-close-right from the outer edge) whatever the band gutter is.
 * The band itself pads 0.15rem top and --set1-vine-gutter on the right.
 */
.set1-sign-band {
  /* Where the band's inner edge sits, measured from the panel's OUTER edge. */
  --set1-band-top: calc(var(--frame-rim) + 0.15rem);
  --set1-band-right: calc(var(--frame-rim) + var(--set1-vine-gutter));
}
.set1-close {
  position: relative;
  z-index: 12;
  margin: calc(var(--frame-close-top) - var(--set1-band-top)) calc(var(--frame-close-right) - var(--set1-band-right)) 0 0;
  flex: 0 0 auto;
  align-self: flex-start;
  justify-self: end;
  padding-top: 0;
}
.set1-close .modal__close,
button.set1-close.modal__close {
  --modal-close-size: 1.7rem;
  --modal-close-x: 1.25rem;
  margin: 0;
  padding: 0;
}
/* Slate body · clear of painted vines on both sides. */
.set1-body,
.earn-stage-panel.set1-panel .earn-stage__body,
.modal--set1 .modal__body,
.modal--set1 .equip-confirm {
  margin: 0;
  padding: 1.05rem var(--set1-vine-gutter) 1.35rem;
  background: var(--panel-strong, #0b1423);
  box-sizing: border-box;
  min-height: 0;
}
.earn-stage-panel.set1-panel .earn-stage__lede {
  padding-inline: var(--set1-vine-gutter);
}
/* Hide legacy wood-bar head when Set 1 sign is present. */
.set1-panel > .modal-wood-head {
  display: none;
}
/*
 * Scroll-under sign · slate runs under the hanging plaque.
 * Skip shop page (.shop-catalog) and pinned / image-header panels (.set1-panel--pin-sign).
 */
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog),
.earn-stage-panel.set1-panel:not(.set1-panel--pin-sign),
.coop-wheel-modal__pop.set1-panel:not(.set1-panel--pin-sign),
.inventory.set1-panel:not(.set1-panel--pin-sign) {
  --set1-sign-clear: 4.35rem;
}
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog) > .set1-sign-band,
.earn-stage-panel.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band,
.coop-wheel-modal__pop.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .inventory__sign-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Anchored to the outer edge (over the rim), so the X maths starts at 0. */
  --set1-band-top: 0px;
  --set1-band-right: var(--set1-vine-gutter);
  /* Under painted rim / vines so ropes tuck beneath the top border. */
  z-index: 3;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0 var(--set1-vine-gutter);
  overflow: visible;
  pointer-events: none;
}
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog) > .set1-sign-band > *,
.earn-stage-panel.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band > *,
.coop-wheel-modal__pop.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band > *,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .set1-sign-band > *,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .inventory__sign-band > * {
  pointer-events: auto;
}
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog) > .set1-body,
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog) > .modal__body,
.modal__panel.set1-panel:not(.set1-panel--pin-sign):not(.shop-catalog) > .equip-confirm,
.earn-stage-panel.set1-panel:not(.set1-panel--pin-sign) > .earn-stage__body,
.earn-stage-panel.set1-panel:not(.set1-panel--pin-sign) > .set1-body,
.coop-wheel-modal__pop.set1-panel:not(.set1-panel--pin-sign) > .set1-body,
.coop-wheel-modal__pop.set1-panel:not(.set1-panel--pin-sign) > .earn-stage__body,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .inventory__body,
.inventory.set1-panel:not(.set1-panel--pin-sign) > .set1-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: calc(var(--set1-sign-clear, 3.15rem) + 0.35rem);
}
/*
 * Compact Set 1 confirms (craft, etc.) · one height recipe for desk + phone.
 * Keep --set1-sign-clear so body clears the hanging plaque (do not override
 * padding-top with a flat short value or the sign eats the copy/buttons).
 */
dialog.modal#craft-confirm-modal {
  width: min(18.5rem, calc(100vw - 2rem));
  max-width: min(18.5rem, calc(100vw - 2rem));
}
dialog.modal#craft-confirm-modal .modal__panel.set1-panel {
  --set1-sign-clear: 4.75rem;
  --set1-vine-gutter: min(var(--vine-gutter, 52px), 3.1rem);
  width: 100%;
  min-height: 15.5rem;
}
dialog.modal#craft-confirm-modal .set1-body,
dialog.modal#craft-confirm-modal .modal__body {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  justify-items: center;
  padding:
    calc(var(--set1-sign-clear, 4.35rem) + 0.65rem)
    var(--set1-vine-gutter, 52px)
    1.25rem;
}
.craft-confirm__copy {
  margin: 0;
  color: var(--earn-cream, #f0e2c4);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  max-width: 14rem;
}
.craft-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  width: 100%;
}
.craft-confirm__actions .btn {
  min-width: 5.75rem;
  flex: 1 1 auto;
  max-width: 7.5rem;
}
/*
 * Sip title sign · Set 1 plaque DNA with deeper vine nudge (+50px).
 * Right plaque uses its own inset from the vine edge (ignores X).
 */
.set1-sign-band--sip {
  --set1-sign-nudge: var(--frame-sign-nudge-sip);
  --set1-sign-nudge-right: var(--frame-sign-nudge-sip);
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0 var(--set1-vine-gutter, 52px);
  box-sizing: border-box;
  pointer-events: none;
  overflow: visible;
}
.set1-sign-band--sip > * {
  pointer-events: auto;
}
.set1-sign-band--sip .set1-plaque-wrap {
  top: var(--frame-sign-top-sip);
  transform: translateX(var(--set1-sign-nudge));
}
.set1-sign-band--sip .set1-plaque-wrap--right {
  margin-left: auto;
  transform: translateX(calc(-1 * var(--set1-sign-nudge-right)));
}
.set1-sign-band--sip .set1-close {
  margin: 0 0 0 auto;
  padding-top: var(--frame-sign-top-sip);
}
/* Sip Start/Info · hang plaque into the hero band; hide duplicate head copy. */
.start-confirm-panel > .set1-sign-band--sip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Under painted Sip wood (start-confirm__fx) so ropes tuck behind the rim. */
  z-index: 3;
}
/*
 * Painted Sip frame above the plaque (ropes tuck under the rim) but BELOW the
 * body UI · the canvas paints an opaque well; if fx > ui, rewards disappear.
 */
dialog.modal.modal--start .start-confirm-panel > .start-confirm__fx {
  z-index: 4;
}
dialog.modal.modal--start .start-confirm-panel > .start-confirm__ui {
  z-index: 5;
}
dialog.modal.modal--start .start-confirm-panel > .start-confirm__close,
dialog.modal.modal--start .start-confirm-panel > .start-confirm__hero-bar,
dialog.modal.modal--start .start-confirm-panel > .start-confirm__hero-copy,
dialog.modal.modal--start .start-confirm-panel > .start-confirm__hero-aff {
  z-index: 6;
}
/* Activity modals · title a little lower; the X only a small step down and in. */
.start-confirm-panel > .set1-sign-band--sip .set1-plaque-wrap {
  top: calc(2.45rem + 20px);
}
.start-confirm-panel > .set1-sign-band--sip .set1-plaque-wrap.carved-plaque-wrap,
.start-confirm-panel > .set1-sign-band--sip .carved-plaque-wrap {
  padding-top: 3.35rem;
}
.start-confirm-panel > .set1-sign-band--sip .carved-plaque__chain {
  height: 3.45rem;
}
.start-confirm-panel > .set1-sign-band--sip .set1-close {
  margin: calc(2.45rem + 8px) calc(0.15rem + 8px) 0 auto;
  padding-top: 0;
}
.start-confirm-panel:has(> .set1-sign-band--sip) > .start-confirm__close {
  display: none;
}
.start-confirm-panel:has(> .set1-sign-band--sip) > .start-confirm__head .start-confirm__titles {
  visibility: hidden;
}
@media (max-width: 45rem) {
  dialog.modal.modal--set1,
  .modal__panel.set1-panel,
  .earn-stage-panel.set1-panel,
  .coop-wheel-modal__pop.set1-panel,
  .inventory.set1-panel,
  dialog.modal.modal--chikonomicon {
    --set1-vine-gutter: min(var(--vine-gutter, 64px), 10vw);
    --set1-sign-nudge: min(var(--sign-nudge, 40px), 6vw);
  }
  dialog.modal.modal--chikonomicon {
    --set1-vine-gutter: min(var(--vine-gutter-wide, 72px), 11vw);
  }
  .set1-sign-band--sip {
    --set1-sign-nudge: min(var(--frame-sign-nudge-sip), 12vw);
    --set1-sign-nudge-right: min(var(--frame-sign-nudge-sip), 12vw);
  }
}


.craft-page {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin: 0 auto;
}
/* Phone/tablet nav · reclaim vertical air; panel height tracks remaining viewport. */
body:has(.nav-rail):has(.craft-page) .page {
  padding-bottom: calc(var(--tab-h) + 0.35rem);
}
@media (max-width: 1000px) {
  body:has(.nav-rail):has(.craft-page) .page {
    padding-top: calc(var(--space-3) + 0.35rem);
  }
  body:has(.nav-rail):has(.craft-page) .craft-page {
    gap: 0.75rem;
  }
  body:has(.nav-rail):has(.craft-page) .craft-job {
    margin-bottom: 0.55rem;
  }
}
.craft-menu {
  --px:4px;--raise:inset 0 0 0 4px #05080c,inset 8px 8px 0 0 #6b7783,inset -8px -8px 0 0 #1b222b;--carve:inset 0 0 0 4px #05080c,inset 8px 8px 0 0 #090d12,inset -8px -8px 0 0 #36424f;--noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Crect x=%2220%22 y=%220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2228%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2248%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2260%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%220%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%224%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%228%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2228%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2232%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2244%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2248%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2252%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%220%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%224%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%224%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2228%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2232%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%228%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2224%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2232%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2236%22 y=%2224%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2248%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2252%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2256%22 y=%2224%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%220%22 y=%2224%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%228%22 y=%2224%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%228%22 y=%2228%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2232%22 y=%2228%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2260%22 y=%2228%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%228%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2228%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2240%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2244%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2256%22 y=%2232%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2212%22 y=%2236%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2216%22 y=%2236%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2224%22 y=%2236%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2252%22 y=%2236%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%220%22 y=%2240%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%224%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%224%22 y=%2240%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2228%22 y=%2240%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2260%22 y=%2240%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2232%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2236%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2240%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2248%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2252%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2248%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2256%22 y=%2252%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2260%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%224%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%228%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2212%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2216%22 y=%2260%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2216%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2220%22 y=%2256%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%220%22 y=%2260%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%228%22 y=%2260%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3Crect x=%2228%22 y=%2260%22 width=%224%22 height=%224%22 fill=%22%23000%22 fill-opacity=%22.22%22/%3E%3Crect x=%2244%22 y=%2260%22 width=%224%22 height=%224%22 fill=%22%239fb2c8%22 fill-opacity=%22.10%22/%3E%3C/svg%3E");--corners:linear-gradient(#05080c,#05080c),linear-gradient(#05080c,#05080c),linear-gradient(#05080c,#05080c),linear-gradient(#05080c,#05080c);--cpos:4px 4px,right 4px top 4px,left 4px bottom 4px,right 4px bottom 4px;--csize:4px 4px,4px 4px,4px 4px,4px 4px;--crep:no-repeat,no-repeat,no-repeat,no-repeat;--bg:#0a0e13;--ink:#e9e4d2;--dim:#9aa7b5;--gold:#f0b43c;--gold-lo:#c98a24;--gold-hi:#ffe08a;--red:#ff6b5a;--line:#05080c;--slab:#2b323b;--hole:#080c12;--rim:32px;--h:clamp(12rem,calc(86dvh - 16rem),26rem)
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 18px;
  line-height: 1.1;
}
.craft-menu button:not(.modal__close) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.craft-menu :focus-visible:not(.craft-menu__cat) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.craft-menu__cat:focus-visible {
  outline: none;
}
.craft-menu .pxt {
  --s: 4px;
  clip-path: polygon(0 100%, 0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0, calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2), 100% 100%);
}
.craft-menu__tab .in {
  --s: 3px;
  clip-path: polygon(0 100%, 0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0, calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2), 100% 100%);
}
/* ONE corner shape: a two-step chunky round, used by every piece */
.craft-menu__cat, .craft-menu__well, .craft-menu__arr, .craft-menu__q, .craft-menu__frame-in, .craft-menu__go, .craft-menu__ttl{--s:3px;clip-path:polygon(0 calc(var(--s)*2),var(--s) calc(var(--s)*2),var(--s) var(--s),calc(var(--s)*2) var(--s),calc(var(--s)*2) 0,calc(100% - var(--s)*2) 0,calc(100% - var(--s)*2) var(--s),calc(100% - var(--s)) var(--s),calc(100% - var(--s)) calc(var(--s)*2),100% calc(var(--s)*2),100% calc(100% - var(--s)*2),calc(100% - var(--s)) calc(100% - var(--s)*2),calc(100% - var(--s)) calc(100% - var(--s)),calc(100% - var(--s)*2) calc(100% - var(--s)),calc(100% - var(--s)*2) 100%,calc(var(--s)*2) 100%,calc(var(--s)*2) calc(100% - var(--s)),var(--s) calc(100% - var(--s)),var(--s) calc(100% - var(--s)*2),0 calc(100% - var(--s)*2))}
.craft-slot{clip-path:none}
.craft-menu__tab, .craft-menu__tab .in{--s:4px;clip-path:polygon(0 100%,0 calc(var(--s)*2),var(--s) calc(var(--s)*2),var(--s) var(--s),calc(var(--s)*2) var(--s),calc(var(--s)*2) 0,calc(100% - var(--s)*2) 0,calc(100% - var(--s)*2) var(--s),calc(100% - var(--s)) var(--s),calc(100% - var(--s)) calc(var(--s)*2),100% calc(var(--s)*2),100% 100%)}
.craft-menu__tab .in{--s:3px}
/* TWO surfaces: raised slab (holds things) and carved hole (holds items) */
.craft-menu__tab .in, .craft-menu__frame-in, .craft-menu__ttl, .craft-menu__arr{background-color:var(--slab);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .62 0 0 0 0 .7 0 0 0 .45 -.1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #6b7783,inset -4px -4px 0 0 #1b222b}
.craft-menu__cat, .craft-menu__well, .craft-menu__q{background-color:var(--hole);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .62 0 0 0 0 .7 0 0 0 .45 -.1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #090d12,inset -4px -4px 0 0 #36424f}
.craft-slot{background-color:var(--hole);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .62 0 0 0 0 .7 0 0 0 .45 -.1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #030507,inset -4px -4px 0 0 #1a222c}
.craft-menu__frame-in{--s:4px;position:relative;z-index:1;padding:20px;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #566170,inset -4px -4px 0 0 #1b222b}
.craft-menu__detail{background-color:#343c46;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #090d12,inset -4px -4px 0 0 #36424f}
/* tabs */
.craft-menu__tabs{display:flex;align-items:flex-end;gap:4px;padding-left:38px;position:relative;z-index:2;margin-bottom:-12px}
.craft-menu__tab{background:var(--line);padding:3px 3px 0}
.craft-menu__tab .in{display:flex;align-items:center;gap:8px;padding:8px 20px 9px;color:var(--dim);font-size:24px;letter-spacing:1px;background-color:#222830}
.craft-menu__tab:hover .in{color:var(--ink);background-color:#2f3843}
.craft-menu__tab[aria-selected=true] .in{background-color:#3a444f;color:var(--gold);padding-bottom:15px;box-shadow:inset 0 0 0 2px var(--line),inset 0 4px 0 0 var(--gold),inset 4px 8px 0 0 #6b7783,inset -4px -4px 0 0 #1b222b}
.craft-menu__ttl{--s:4px;margin:0 38px 14px auto;padding:2px 24px 6px;font-size:34px;font-weight:400;letter-spacing:6px;color:var(--gold);text-shadow:0 3px 0 #000,0 0 14px #f0b43c66}
/* boulder rim: eight sprite layers · no wood beams overlay */
.craft-menu__frame{position:relative;padding:32px;filter:drop-shadow(0 12px 0 #0007) drop-shadow(0 0 26px #000b)}
.craft-menu__frame > .pixel-frame__fx { display: none; }
.craft-menu__frame::before{content:"";position:absolute;inset:0;image-rendering:pixelated;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y;background-size:32px 32px,32px 32px,32px 32px,32px 32px,96px 32px,96px 32px,32px 96px,32px 96px;background-position:0 0,100% 0,0 100%,100% 100%,0 0,0 100%,0 0,100% 0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2210%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2215%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2211%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%227%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%228%22 y=%2218%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2222%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2217%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2211%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2216%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%229%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2213%22 y=%222%22 width=%222%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2215%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2217%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2221%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2225%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2227%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%238fc25a%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2218%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%226%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2218%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2224%22 y=%2210%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%227%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2224%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2223%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2213%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2218%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%226%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2218%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2224%22 y=%2210%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%227%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2224%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2223%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2213%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2210%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2215%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2211%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%227%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%228%22 y=%2218%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2222%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2217%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2211%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2216%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%229%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2213%22 y=%222%22 width=%222%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2215%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2217%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2221%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2225%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2227%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%238fc25a%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2218%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2222%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2214%22 height=%2228%22 fill=%22%23475160%22/%3E%3Crect x=%222%22 y=%224%22 width=%2218%22 height=%2224%22 fill=%22%23475160%22/%3E%3Crect x=%225%22 y=%222%22 width=%2212%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%2212%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2218%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2213%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2213%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%227%22 y=%2221%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2214%22 y=%2210%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%2214%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%226%22 y=%2222%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%225%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%225%22 y=%222%22 width=%222%22 height=%228%22 fill=%22%238fc25a%22/%3E%3Crect x=%227%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%238fc25a%22/%3E%3Crect x=%229%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2213%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2215%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%238fc25a%22/%3E%3Crect x=%2217%22 y=%222%22 width=%222%22 height=%224%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2224%22 y=%220%22 width=%2212%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2222%22 y=%222%22 width=%2216%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2226%22 y=%222%22 width=%228%22 height=%2228%22 fill=%22%2359646f%22/%3E%3Crect x=%2224%22 y=%224%22 width=%2212%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2227%22 y=%222%22 width=%226%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2224%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2227%22 y=%2228%22 width=%226%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2234%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2227%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2229%22 y=%2218%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2227%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2228%22 y=%2221%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2227%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2240%22 y=%220%22 width=%2220%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2238%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2242%22 y=%222%22 width=%2216%22 height=%2228%22 fill=%22%2359646f%22/%3E%3Crect x=%2240%22 y=%224%22 width=%2220%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2243%22 y=%222%22 width=%2214%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2240%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2243%22 y=%2228%22 width=%2214%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2258%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2249%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2249%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2253%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2246%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2249%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2244%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2246%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2244%22 y=%2214%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2241%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2243%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2245%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2247%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2249%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2251%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2253%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2255%22 y=%222%22 width=%222%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2264%22 y=%220%22 width=%2210%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2262%22 y=%222%22 width=%2214%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2266%22 y=%222%22 width=%226%22 height=%2228%22 fill=%22%2359646f%22/%3E%3Crect x=%2264%22 y=%224%22 width=%2210%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2267%22 y=%222%22 width=%224%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2264%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2267%22 y=%2228%22 width=%224%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2272%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2267%22 y=%2210%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2267%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2267%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2267%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2278%22 y=%220%22 width=%2216%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2276%22 y=%222%22 width=%2220%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2280%22 y=%222%22 width=%2212%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%2278%22 y=%224%22 width=%2216%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%2281%22 y=%222%22 width=%2210%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2278%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2281%22 y=%2228%22 width=%2210%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2292%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2287%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2282%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2284%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2286%22 y=%2216%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2288%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2288%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2287%22 y=%2210%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2214%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2218%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2210%22 height=%2228%22 fill=%22%234e5964%22/%3E%3Crect x=%222%22 y=%224%22 width=%2214%22 height=%2224%22 fill=%22%234e5964%22/%3E%3Crect x=%225%22 y=%222%22 width=%228%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2228%22 width=%228%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2214%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%227%22 y=%2212%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%226%22 y=%2211%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2210%22 y=%2222%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2210%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%229%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%225%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2220%22 y=%220%22 width=%2220%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2218%22 y=%222%22 width=%2224%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2222%22 y=%222%22 width=%2216%22 height=%2228%22 fill=%22%2359646f%22/%3E%3Crect x=%2220%22 y=%224%22 width=%2220%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2223%22 y=%222%22 width=%2214%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2220%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2223%22 y=%2228%22 width=%2214%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2238%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2231%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2234%22 y=%2217%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2229%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2227%22 y=%2221%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2234%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2226%22 y=%2220%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2233%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2224%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2244%22 y=%220%22 width=%2210%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2242%22 y=%222%22 width=%2214%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2246%22 y=%222%22 width=%226%22 height=%2228%22 fill=%22%234e5964%22/%3E%3Crect x=%2244%22 y=%224%22 width=%2210%22 height=%2224%22 fill=%22%234e5964%22/%3E%3Crect x=%2247%22 y=%222%22 width=%224%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2244%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2247%22 y=%2228%22 width=%224%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2252%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2247%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2248%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2247%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2248%22 y=%2216%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2258%22 y=%220%22 width=%2218%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2256%22 y=%222%22 width=%2222%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2260%22 y=%222%22 width=%2214%22 height=%2228%22 fill=%22%2356606e%22/%3E%3Crect x=%2258%22 y=%224%22 width=%2218%22 height=%2224%22 fill=%22%2356606e%22/%3E%3Crect x=%2261%22 y=%222%22 width=%2212%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2258%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2261%22 y=%2228%22 width=%2212%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2274%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2263%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2263%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2269%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2270%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2268%22 y=%2216%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2265%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2270%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2259%22 y=%222%22 width=%222%22 height=%224%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2261%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2263%22 y=%222%22 width=%222%22 height=%224%22 fill=%22%238fc25a%22/%3E%3Crect x=%2265%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2267%22 y=%222%22 width=%222%22 height=%226%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2271%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2273%22 y=%222%22 width=%222%22 height=%228%22 fill=%22%238fc25a%22/%3E%3Crect x=%2280%22 y=%220%22 width=%2214%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%2278%22 y=%222%22 width=%2218%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%2282%22 y=%222%22 width=%2210%22 height=%2228%22 fill=%22%23475160%22/%3E%3Crect x=%2280%22 y=%224%22 width=%2214%22 height=%2224%22 fill=%22%23475160%22/%3E%3Crect x=%2283%22 y=%222%22 width=%228%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2280%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%238591a0%22/%3E%3Crect x=%2283%22 y=%2228%22 width=%228%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2292%22 y=%225%22 width=%222%22 height=%2222%22 fill=%22%233a4552%22/%3E%3Crect x=%2286%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2287%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2283%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2286%22 y=%2215%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2288%22 y=%2223%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2286%22 y=%2219%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='96' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2222%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2218%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2218%22 fill=%22%2359646f%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%2214%22 fill=%22%2359646f%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%2212%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2218%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%2212%22 fill=%22%233a4552%22/%3E%3Crect x=%2221%22 y=%2213%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2214%22 y=%2214%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2220%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2212%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2216%22 y=%229%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2224%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%222%22 y=%2222%22 width=%2228%22 height=%2218%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2224%22 width=%2232%22 height=%2214%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2224%22 height=%2214%22 fill=%22%234e5964%22/%3E%3Crect x=%222%22 y=%2226%22 width=%2228%22 height=%2210%22 fill=%22%234e5964%22/%3E%3Crect x=%225%22 y=%2224%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2227%22 width=%222%22 height=%228%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2236%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2227%22 width=%222%22 height=%228%22 fill=%22%233a4552%22/%3E%3Crect x=%2215%22 y=%2232%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2220%22 y=%2228%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2217%22 y=%2232%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2211%22 y=%2232%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2211%22 y=%2228%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%2231%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%223%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%225%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%238fc25a%22/%3E%3Crect x=%227%22 y=%2224%22 width=%222%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%229%22 y=%2224%22 width=%222%22 height=%226%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2215%22 y=%2224%22 width=%222%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2217%22 y=%2224%22 width=%222%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2219%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2223%22 y=%2224%22 width=%222%22 height=%224%22 fill=%22%238fc25a%22/%3E%3Crect x=%2225%22 y=%2224%22 width=%222%22 height=%228%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2227%22 y=%2224%22 width=%222%22 height=%226%22 fill=%22%232f5a2a%22/%3E%3Crect x=%222%22 y=%2240%22 width=%2228%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2242%22 width=%2232%22 height=%2220%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2242%22 width=%2224%22 height=%2220%22 fill=%22%234e5964%22/%3E%3Crect x=%222%22 y=%2244%22 width=%2228%22 height=%2216%22 fill=%22%234e5964%22/%3E%3Crect x=%225%22 y=%2242%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2245%22 width=%222%22 height=%2214%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2260%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2245%22 width=%222%22 height=%2214%22 fill=%22%233a4552%22/%3E%3Crect x=%225%22 y=%2249%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%229%22 y=%2245%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%228%22 y=%2252%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2222%22 y=%2255%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2246%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2211%22 y=%2248%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2213%22 y=%2247%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%225%22 y=%2252%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%222%22 y=%2264%22 width=%2228%22 height=%2214%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2266%22 width=%2232%22 height=%2210%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2266%22 width=%2224%22 height=%2210%22 fill=%22%2359646f%22/%3E%3Crect x=%222%22 y=%2268%22 width=%2228%22 height=%226%22 fill=%22%2359646f%22/%3E%3Crect x=%225%22 y=%2266%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2269%22 width=%222%22 height=%224%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2274%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2269%22 width=%222%22 height=%224%22 fill=%22%233a4552%22/%3E%3Crect x=%2210%22 y=%2269%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2269%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%2269%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2217%22 y=%2269%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%222%22 y=%2278%22 width=%2228%22 height=%2218%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2280%22 width=%2232%22 height=%2214%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2280%22 width=%2224%22 height=%2214%22 fill=%22%23475160%22/%3E%3Crect x=%222%22 y=%2282%22 width=%2228%22 height=%2210%22 fill=%22%23475160%22/%3E%3Crect x=%225%22 y=%2280%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2283%22 width=%222%22 height=%228%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2292%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2283%22 width=%222%22 height=%228%22 fill=%22%233a4552%22/%3E%3Crect x=%2211%22 y=%2288%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2217%22 y=%2287%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2221%22 y=%2285%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2215%22 y=%2288%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2288%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%228%22 y=%2284%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='96' shape-rendering='crispEdges'%3E%3Crect x=%222%22 y=%220%22 width=%2228%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%222%22 width=%2232%22 height=%2212%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%222%22 width=%2224%22 height=%2212%22 fill=%22%23475160%22/%3E%3Crect x=%222%22 y=%224%22 width=%2228%22 height=%228%22 fill=%22%23475160%22/%3E%3Crect x=%225%22 y=%222%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%225%22 width=%222%22 height=%226%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2212%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%225%22 width=%222%22 height=%226%22 fill=%22%233a4552%22/%3E%3Crect x=%227%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2215%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%225%22 y=%227%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%227%22 y=%225%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2215%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%222%22 y=%2216%22 width=%2228%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2218%22 width=%2232%22 height=%2220%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2218%22 width=%2224%22 height=%2220%22 fill=%22%23475160%22/%3E%3Crect x=%222%22 y=%2220%22 width=%2228%22 height=%2216%22 fill=%22%23475160%22/%3E%3Crect x=%225%22 y=%2218%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2221%22 width=%222%22 height=%2214%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2236%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2221%22 width=%222%22 height=%2214%22 fill=%22%233a4552%22/%3E%3Crect x=%225%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2218%22 y=%2221%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2222%22 y=%2226%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%229%22 y=%2228%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%2232%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2219%22 y=%2228%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%227%22 y=%2224%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2221%22 y=%2229%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%222%22 y=%2240%22 width=%2228%22 height=%2218%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2242%22 width=%2232%22 height=%2214%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2242%22 width=%2224%22 height=%2214%22 fill=%22%2356606e%22/%3E%3Crect x=%222%22 y=%2244%22 width=%2228%22 height=%2210%22 fill=%22%2356606e%22/%3E%3Crect x=%225%22 y=%2242%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2245%22 width=%222%22 height=%228%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2254%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2245%22 width=%222%22 height=%228%22 fill=%22%233a4552%22/%3E%3Crect x=%2210%22 y=%2249%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2222%22 y=%2247%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2217%22 y=%2249%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2214%22 y=%2246%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2221%22 y=%2247%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2246%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%223%22 y=%2242%22 width=%222%22 height=%228%22 fill=%22%234f8a3c%22/%3E%3Crect x=%225%22 y=%2242%22 width=%222%22 height=%222%22 fill=%22%238fc25a%22/%3E%3Crect x=%229%22 y=%2242%22 width=%222%22 height=%226%22 fill=%22%238fc25a%22/%3E%3Crect x=%2213%22 y=%2242%22 width=%222%22 height=%226%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2215%22 y=%2242%22 width=%222%22 height=%222%22 fill=%22%238fc25a%22/%3E%3Crect x=%2217%22 y=%2242%22 width=%222%22 height=%226%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2219%22 y=%2242%22 width=%222%22 height=%226%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2221%22 y=%2242%22 width=%222%22 height=%226%22 fill=%22%238fc25a%22/%3E%3Crect x=%2223%22 y=%2242%22 width=%222%22 height=%222%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2225%22 y=%2242%22 width=%222%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2227%22 y=%2242%22 width=%222%22 height=%222%22 fill=%22%234f8a3c%22/%3E%3Crect x=%222%22 y=%2258%22 width=%2228%22 height=%2220%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2260%22 width=%2232%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2260%22 width=%2224%22 height=%2216%22 fill=%22%234e5964%22/%3E%3Crect x=%222%22 y=%2262%22 width=%2228%22 height=%2212%22 fill=%22%234e5964%22/%3E%3Crect x=%225%22 y=%2260%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2263%22 width=%222%22 height=%2210%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2274%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2263%22 width=%222%22 height=%2210%22 fill=%22%233a4552%22/%3E%3Crect x=%229%22 y=%2266%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2214%22 y=%2268%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2266%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2264%22 width=%222%22 height=%222%22 fill=%22%233f4955%22/%3E%3Crect x=%2223%22 y=%2264%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2224%22 y=%2267%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2211%22 y=%2269%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%222%22 y=%2278%22 width=%2228%22 height=%2218%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2280%22 width=%2232%22 height=%2214%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2280%22 width=%2224%22 height=%2214%22 fill=%22%23475160%22/%3E%3Crect x=%222%22 y=%2282%22 width=%2228%22 height=%2210%22 fill=%22%23475160%22/%3E%3Crect x=%225%22 y=%2280%22 width=%2222%22 height=%222%22 fill=%22%239aa6b2%22/%3E%3Crect x=%222%22 y=%2283%22 width=%222%22 height=%228%22 fill=%22%238591a0%22/%3E%3Crect x=%225%22 y=%2292%22 width=%2222%22 height=%222%22 fill=%22%23333d49%22/%3E%3Crect x=%2228%22 y=%2283%22 width=%222%22 height=%228%22 fill=%22%233a4552%22/%3E%3Crect x=%2218%22 y=%2287%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2210%22 y=%2287%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2222%22 y=%2288%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2221%22 y=%2284%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3Crect x=%2224%22 y=%2287%22 width=%222%22 height=%222%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%2288%22 width=%222%22 height=%222%22 fill=%22%237a8592%22/%3E%3C/svg%3E")}
.craft-menu__stud{display:none}
/* filters */
.craft-menu__bar{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.craft-menu__cats{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding-bottom:6px}
.craft-menu__close{position:absolute;z-index:12;margin:0;top:calc(var(--rim) + 16px);right:calc(var(--rim) + 16px)}
.craft-menu__close .modal__close{margin:0}
@media (max-width: 40rem){
  .craft-menu__cats{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px;-webkit-overflow-scrolling:touch}
  .craft-menu__cat{flex:0 0 auto}
}
.craft-menu__cat{width:auto;min-width:4.75rem;height:42px;padding:0 0.7rem;display:grid;place-items:center;color:var(--dim);font-size:18px;letter-spacing:0.04em;white-space:nowrap;transition:transform .08s ease,box-shadow .08s ease,background-color .08s ease;transform:translateY(0)}
.craft-menu__find{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
.craft-menu__place{flex:0 0 auto;min-width:12rem;height:46px;display:inline-flex;align-items:center;gap:0.65rem;padding:0 0.6rem}
.craft-menu__search{display:flex;align-items:center;gap:8px;padding:0 12px;height:42px;width:min(340px,100%);flex:1 1 340px;min-width:0}
.craft-menu__search input{flex:1;min-width:0;background:none;border:0;color:var(--ink);font:inherit;outline:0}
.craft-menu__search input::placeholder{color:#6f7d8c}
.craft-menu__search:focus-within{box-shadow:inset 0 0 0 2px var(--line),inset 0 0 0 4px var(--gold-lo)}
/* body */
/* Desktop · filters+grid left, detail flush top-right of the craft table. */
.craft-menu__frame-in{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  grid-template-rows:auto var(--h);
  gap:14px 16px;
  align-items:start;
}
.craft-menu__bar{grid-column:1;grid-row:1;margin-bottom:0}
.craft-menu__body{display:contents}
.craft-menu__gridwrap{position:relative;grid-column:1;grid-row:2;min-width:0;height:var(--h);overflow-y:auto;padding:12px;scrollbar-color:#6f7985 #0b1015;scrollbar-width:thin;--s:4px;background-image:radial-gradient(ellipse at 50% 35%,transparent 45%,#000b 125%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .62 0 0 0 0 .7 0 0 0 .45 -.1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:auto,160px}
.craft-menu__gridwrap::-webkit-scrollbar{width:14px}
.craft-menu__gridwrap::-webkit-scrollbar-track{background:#0b1015}
.craft-menu__gridwrap::-webkit-scrollbar-thumb{background:#6f7985;border:3px solid #0b1015;box-shadow:inset 2px 2px 0 #a5afba}
/* Fixed-ish cell size · fewer columns on narrow panels (do not shrink art). */
.craft-menu__grid{display:grid;grid-template-columns:repeat(auto-fill,4.6rem);justify-content:start;gap:12px}
.craft-slot{position:relative;aspect-ratio:1;display:grid;place-items:center;clip-path:none;background-color:var(--hole)}
.craft-slot--empty{background-color:#05080c;box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #030507,inset -4px -4px 0 0 #1a222c}
button.craft-slot:hover{background-color:#0c1118;box-shadow:inset 0 0 0 2px var(--line),inset 0 0 0 4px var(--gold-lo),inset 0 0 10px 4px #f0b43c22}
.craft-slot[aria-pressed=true]{background-color:#0a0e14;color:var(--gold);box-shadow:inset 0 0 0 2px var(--line),inset 0 0 0 4px var(--gold),inset 0 0 10px 4px #f0b43c2a;animation:rune 2.4s steps(2) infinite}
@keyframes rune{50%{box-shadow:inset 0 0 0 2px var(--line),inset 0 0 0 4px var(--gold-hi),inset 0 0 14px 4px #f0b43c66}}
.n{position:absolute;right:6px;bottom:2px;font-style:normal;font-size:19px;text-shadow:1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000}
.craft-slot--can::after{content:"";position:absolute;top:6px;right:6px;width:8px;height:8px;background:var(--gold);box-shadow:0 0 0 2px #000,inset 2px 2px 0 var(--gold-hi);animation:blink 1.6s steps(2) infinite}
@keyframes blink{50%{opacity:.3}}
.craft-menu__none{color:var(--dim);text-align:center;padding:40px 10px;grid-column:1/-1}
.craft-menu__none--overlay{position:absolute;inset:0;z-index:2;display:grid;place-items:center;margin:0;padding:1rem;pointer-events:none}
/* detail */
.craft-menu__detail{grid-column:2;grid-row:1/-1;width:280px;max-width:100%;justify-self:stretch;align-self:stretch;height:auto;min-height:0;max-height:none;overflow:auto;display:flex;flex-direction:column;padding:16px;--s:4px;clip-path:polygon(0 calc(var(--s)*2),var(--s) calc(var(--s)*2),var(--s) var(--s),calc(var(--s)*2) var(--s),calc(var(--s)*2) 0,calc(100% - var(--s)*2) 0,calc(100% - var(--s)*2) var(--s),calc(100% - var(--s)) var(--s),calc(100% - var(--s)) calc(var(--s)*2),100% calc(var(--s)*2),100% calc(100% - var(--s)*2),calc(100% - var(--s)) calc(100% - var(--s)*2),calc(100% - var(--s)) calc(100% - var(--s)),calc(100% - var(--s)*2) calc(100% - var(--s)),calc(100% - var(--s)*2) 100%,calc(var(--s)*2) 100%,calc(var(--s)*2) calc(100% - var(--s)),var(--s) calc(100% - var(--s)),var(--s) calc(100% - var(--s)*2),0 calc(100% - var(--s)*2))}
.craft-menu__hero{width:132px;height:132px;margin:0 auto 8px;flex:none;position:relative}
.craft-menu__nm{text-align:center;color:var(--gold);font-size:30px;letter-spacing:1px;margin:0 0 6px}
.craft-menu__kind{display:inline-block;margin-left:0.35rem;font-size:0.42em;letter-spacing:0.06em;color:var(--muted);vertical-align:middle}
.craft-menu__ds{text-align:center;color:var(--dim);font-size:19px;margin:2px 6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.craft-menu__lb{color:var(--gold);font-size:21px;letter-spacing:1px;border-bottom:2px solid var(--line);box-shadow:0 2px 0 #4b5662;margin:6px 0 10px;padding-bottom:2px}
.craft-menu__own{font-size:36px;text-align:center}
.craft-menu__used{color:var(--dim);font-size:20px}
/* Corner marks on the detail art · craft / origin / qty. */
.craft-menu__mark{
  position:absolute;z-index:3;pointer-events:none;
  font-size:11px;font-weight:700;letter-spacing:0.04em;line-height:1;
  text-transform:uppercase;color:var(--gold-hi);
  text-shadow:1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000;
}
.craft-menu__mark--craft{
  top:6px;left:6px;width:10px;height:10px;padding:0;
  background:var(--gold);box-shadow:0 0 0 2px #000,inset 2px 2px 0 var(--gold-hi);
  animation:blink 1.6s steps(2) infinite;
}
.craft-menu__mark--origin{
  top:5px;right:5px;max-width:3.6rem;padding:2px 4px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  background:color-mix(in srgb,#05080c 72%,transparent);
  box-shadow:inset 0 0 0 1px #05080c;
}
.craft-menu__mark--qty{
  left:5px;bottom:3px;font-size:15px;color:var(--ink);
}
/* Locked for 5 ingredient rows (current max · grows only if recipes exceed 5). */
.craft-menu__ings{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:calc(4 * 48px + 3 * 6px + 20px);height:calc(4 * 48px + 3 * 6px + 20px);max-height:calc(4 * 48px + 3 * 6px + 20px);overflow:auto;padding:10px;box-sizing:border-box;background-color:var(--hole);box-shadow:inset 0 0 0 2px var(--line),inset 4px 4px 0 0 #090d12,inset -4px -4px 0 0 #36424f;--s:3px;clip-path:polygon(0 6px,3px 6px,3px 3px,6px 3px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 3px,calc(100% - 3px) 3px,calc(100% - 3px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 3px) calc(100% - 6px),calc(100% - 3px) calc(100% - 3px),calc(100% - 6px) calc(100% - 3px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 3px),3px calc(100% - 3px),3px calc(100% - 6px),0 calc(100% - 6px))}
.craft-ing{display:flex;gap:6px}
.craft-ing .craft-slot{width:42px;height:42px;aspect-ratio:auto;flex:none}
.craft-ing__t{flex:1;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:21px}
.ok{color:var(--ink)}
.no{color:var(--red)}
.craft-menu__toast{height:22px;margin-top:6px;text-align:right;color:var(--gold-hi);font-size:20px}
.craft-menu__toast b{font-weight:400;animation:fade 2.6s steps(8) forwards}
@keyframes fade{0%,70%{opacity:1}100%{opacity:0}}
.craft-menu__make{display:flex;gap:10px;align-items:center;justify-content:center;flex:none;margin:2px 0 10px}
.craft-menu__step{display:flex;gap:4px}
.craft-menu__arr{width:32px;height:36px;position:relative}
.craft-menu__arr:hover:not(:disabled){background-color:#3a444f}
.craft-menu__arr:disabled{opacity:.4;cursor:default}
.craft-menu__arr::before{content:"";position:absolute;top:10px;border:6px solid transparent}
.craft-menu__arr.l::before{left:7px;border-right:8px solid var(--gold);border-left:0}
.craft-menu__arr.r::before{left:10px;border-left:8px solid var(--gold);border-right:0}
.craft-menu__q{width:64px;height:36px;display:grid;place-items:center;font-size:24px}
.craft-menu__go{background:var(--line);padding:3px;transition:transform .08s ease;transform:translateY(0)}
.face{display:flex;align-items:center;gap:8px;padding:5px 16px 8px;font-size:25px;letter-spacing:2px;color:#2a1b0e;background:var(--gold);box-shadow:inset 4px 4px 0 var(--gold-hi),inset -4px -4px 0 #9a5f10,inset 0 -8px 0 #b8700f}
.craft-menu__go:not(:disabled) .face{animation:ember 1.8s steps(3) infinite}
@keyframes ember{50%{filter:brightness(1.18)}}
.craft-menu__go:hover:not(:disabled){transform:translateY(1px)}
.craft-menu__go:hover:not(:disabled) .face{filter:brightness(1.12)}
.craft-menu__go:active:not(:disabled){transform:translateY(2px)}
.craft-menu__go:disabled{cursor:not-allowed}
.craft-menu__go:disabled .face{background:#566170;color:#222a33;box-shadow:inset 4px 4px 0 #718092,inset -4px -4px 0 #3b4552,inset 0 -8px 0 #434d5a}
.craft-menu__hero.craft-menu__pop{animation:pop .5s steps(3)}
@keyframes pop{50%{transform:translateY(-6px)}}
.craft-menu__spark{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;background:var(--gold-hi);box-shadow:0 0 6px var(--gold);pointer-events:none;animation:spark .6s steps(6) forwards}
@keyframes spark{from{transform:rotate(var(--a)) translateX(0)}to{transform:rotate(var(--a)) translateX(var(--d));opacity:0}}
.craft-menu__lantern{position:absolute;left:-30px;top:170px;z-index:6;animation:flick 3.2s steps(1) infinite}
.craft-menu__lantern::before{content:"";position:absolute;left:44px;top:14px;width:20px;height:8px;background:#1a2028;box-shadow:inset 0 2px #4b5662}
.craft-menu__lantern::after{content:"";position:absolute;left:-90px;top:-80px;width:240px;height:240px;background:radial-gradient(circle,#f0b43c2e,transparent 62%);pointer-events:none;z-index:-1}
@keyframes flick{0%{filter:drop-shadow(0 0 12px #f0b43ccc)}30%{filter:drop-shadow(0 0 7px #f0b43c88)}45%{filter:drop-shadow(0 0 16px #ffd36acc)}70%{filter:drop-shadow(0 0 9px #f0b43caa)}}
.craft-menu__cat, .craft-menu__well, .craft-menu__arr, .craft-menu__q, .craft-menu__frame-in, .craft-menu__go, .craft-menu__detail, .craft-menu__ings{--s:4px;clip-path:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px))}
.craft-slot{clip-path:none;background-color:var(--hole);background-image:var(--noise);background-position:0 0;background-size:64px 64px;background-repeat:repeat;box-shadow:var(--carve)}
.craft-menu__cat, .craft-menu__well, .craft-menu__q, .craft-menu__ings{background-color:var(--hole);background-image:var(--corners),var(--noise);background-position:var(--cpos),0 0;background-size:var(--csize),64px 64px;background-repeat:var(--crep),repeat;box-shadow:var(--carve)}
.craft-menu__frame-in, .craft-menu__arr{background-color:var(--slab);background-image:var(--corners),var(--noise);background-position:var(--cpos),0 0;background-size:var(--csize),64px 64px;background-repeat:var(--crep),repeat;box-shadow:var(--raise)}
.craft-menu__frame-in{box-shadow:inset 0 0 0 4px #05080c,inset 8px 8px 0 0 #566170,inset -8px -8px 0 0 #1b222b;padding:20px}
/* Recipe detail · carve inset (indented well), not raise. */
.craft-menu__detail{background-color:#343c46;background-image:var(--corners),var(--noise);background-position:var(--cpos),0 0;background-size:var(--csize),64px 64px;background-repeat:var(--crep),repeat;box-shadow:var(--carve);padding:20px}
/* padding already set on base .craft-menu__ings */
.craft-menu__gridwrap{padding:16px;background-image:var(--corners),radial-gradient(ellipse at 50% 35%,transparent 45%,#000b 125%),var(--noise);background-position:var(--cpos),0 0,0 0;background-size:var(--csize),auto,64px 64px;background-repeat:var(--crep),no-repeat,repeat}
.craft-menu__gridwrap::-webkit-scrollbar-thumb{border-width:4px}
.craft-slot--empty{background-color:#05080c;box-shadow:inset 0 0 0 4px #05080c,inset 8px 8px 0 0 #030507,inset -8px -8px 0 0 #1a222c}
button.craft-slot:hover{background-color:#0c1118;box-shadow:inset 0 0 0 4px #05080c,inset 0 0 0 8px var(--gold-lo),inset 0 0 12px 8px #f0b43c22}
.craft-slot[aria-pressed=true]{background-color:#0a0e14;box-shadow:inset 0 0 0 4px #05080c,inset 0 0 0 8px var(--gold),inset 0 0 10px 8px #f0b43c2a}
@keyframes rune{50%{box-shadow:inset 0 0 0 4px #05080c,inset 0 0 0 8px var(--gold-hi),inset 0 0 14px 8px #f0b43c66}}
.craft-menu__search:focus-within{box-shadow:inset 0 0 0 4px #05080c,inset 0 0 0 8px var(--gold-lo)}
.craft-menu__page{min-width:2.2rem;height:36px;padding:0 0.5rem;color:var(--dim);background:#222830;box-shadow:inset 0 4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c;border:0;cursor:pointer;font:inherit}
.craft-menu__page:disabled{opacity:.4;cursor:default}
.craft-menu__page--status{display:grid;place-items:center;color:var(--gold);background:#3a444f;cursor:default;box-shadow:inset 0 4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 0 8px 0 0 var(--gold)}
.craft-menu__page[aria-current=page]{color:var(--gold);background:#3a444f;box-shadow:inset 0 4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 0 8px 0 0 var(--gold)}
/* Filter chips match the Inventory / Crafting tabs. */
.craft-menu__cat{
  width:auto;min-width:0;height:auto;padding:0;background:none;box-shadow:none;clip-path:none;outline:none;
}
.craft-menu__cat .in{
  /* Equal chip width · Ready matches All / Forest / Harbor / etc. */
  display:grid;place-items:center;box-sizing:border-box;
  width:6.5rem;min-width:6.5rem;padding:8px 10px;
  background-color:#222830;
  box-shadow:inset 0 4px 0 0 #05080c,inset 0 -4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 8px 8px 0 0 #6b7783,inset -8px -8px 0 0 #1b222b;
  color:var(--dim);
}
.craft-menu__cat--ready .in{
  width:6.5rem;min-width:6.5rem;
}
.craft-menu__cat[aria-pressed=true] .in{
  background-color:#3a444f;color:var(--gold);
  box-shadow:inset 0 4px 0 0 #05080c,inset 0 -4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 0 8px 0 0 var(--gold),inset 8px 8px 0 0 #6b7783,inset -8px -8px 0 0 #1b222b;
}
.craft-menu__cat:hover .in,.craft-menu__cat:focus .in,.craft-menu__cat:focus-visible .in,.craft-menu__cat:active .in{
  outline:none;
}
/* Occupied + empty pads share the same cell size. */
.craft-menu__grid > .craft-slot{
  width:4.6rem;
  height:4.6rem;
  min-width:4.6rem;
  min-height:4.6rem;
  max-width:4.6rem;
  aspect-ratio:1 / 1;
  box-sizing:border-box;
  justify-self:start;
  align-self:start;
}
.craft-menu__grid > .craft-slot:not(.craft-slot--empty){
  transition:transform .08s ease;
  transform:translateY(0);
}
.craft-menu__grid > button.craft-slot:not(.craft-slot--empty):hover,
.craft-menu__grid > button.craft-slot:not(.craft-slot--empty):focus,
.craft-menu__grid > button.craft-slot:not(.craft-slot--empty):focus-visible{
  outline:none;
  transform:translateY(1px);
}
.craft-menu__grid > button.craft-slot:not(.craft-slot--empty):active{
  transform:translateY(2px);
}
.craft-menu__grid > .craft-slot[aria-pressed=true]:not(.craft-slot--empty){
  animation:none;
}
.craft-menu__grid > .craft-slot:not(.craft-slot--empty) .craft-slot__icon{
  width:78%;
  height:78%;
}
.craft-menu__search{height:46px}
.craft-menu__search{padding:0 16px}
.craft-ing .craft-slot{width:48px;height:48px}
.craft-ing__t{padding:0 16px}
.craft-menu__arr{width:36px;height:40px}
.craft-menu__arr::before{top:12px}
.craft-menu__q{height:40px}
.craft-menu__lb{border-bottom:4px solid #05080c;box-shadow:0 4px 0 #4b5662}
.craft-menu__go{padding:4px}
.face{clip-path:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px))}
/* tabs: flush with the panel's top edge, outline on top/left/right only so they fuse into it */
.craft-menu__tabs{padding-left:36px;margin-bottom:-28px}
.craft-menu__tab{padding:0;background:none}
.craft-menu__tab .in{--s:4px;padding:10px 22px;background-color:#222830;background-image:linear-gradient(#05080c,#05080c),linear-gradient(#05080c,#05080c),var(--noise);background-position:4px 4px,right 4px top 4px,0 0;background-size:4px 4px,4px 4px,64px 64px;background-repeat:no-repeat,no-repeat,repeat;box-shadow:inset 0 4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 8px 8px 0 0 #6b7783,inset -8px 0 0 0 #1b222b}
.craft-menu__tab[aria-selected=true] .in{padding-bottom:10px;background-color:#3a444f;box-shadow:inset 0 4px 0 0 #05080c,inset 4px 0 0 0 #05080c,inset -4px 0 0 0 #05080c,inset 0 8px 0 0 var(--gold),inset 8px 8px 0 0 #6b7783,inset -8px 0 0 0 #1b222b}
.craft-menu__ttl{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);background:none;box-shadow:none}
/* boulder rim: 4px mortar, 4px bevels, stepped corners that meet */
.craft-menu__frame{padding:var(--rim)}
.craft-menu__frame{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%2228%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%228%22 width=%2232%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23475160%22/%3E%3Crect x=%224%22 y=%228%22 width=%2224%22 height=%2216%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2216%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%228%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%238fc25a%22/%3E%3Crect x=%2216%22 y=%224%22 width=%224%22 height=%2212%22 fill=%22%238fc25a%22/%3E%3Crect x=%2220%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%238fc25a%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%2228%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%228%22 width=%2232%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%234e5964%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%234e5964%22/%3E%3Crect x=%224%22 y=%228%22 width=%2224%22 height=%2216%22 fill=%22%234e5964%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%228%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%2228%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%228%22 width=%2232%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%234e5964%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%234e5964%22/%3E%3Crect x=%224%22 y=%228%22 width=%2224%22 height=%2216%22 fill=%22%234e5964%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%228%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%2228%22 width=%2216%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%228%22 width=%2232%22 height=%2216%22 fill=%22%2305080c%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23475160%22/%3E%3Crect x=%224%22 y=%228%22 width=%2224%22 height=%2216%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2216%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2220%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%228%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%238fc25a%22/%3E%3Crect x=%2216%22 y=%224%22 width=%224%22 height=%2212%22 fill=%22%238fc25a%22/%3E%3Crect x=%2220%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%238fc25a%22/%3E%3C/svg%3E");background-position:0 0,100% 0,0 100%,100% 100%;background-size:32px 32px;background-repeat:no-repeat;image-rendering:pixelated}
.craft-menu__frame::before{inset:0 32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32' shape-rendering='crispEdges'%3E%3Crect x=%220%22 y=%220%22 width=%2236%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2228%22 width=%2236%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%22-4%22 y=%224%22 width=%2244%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%224%22 width=%2236%22 height=%2224%22 fill=%22%2356606e%22/%3E%3Crect x=%224%22 y=%224%22 width=%2228%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%220%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2228%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2232%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2212%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2228%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2228%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%224%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2212%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%224%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%238fc25a%22/%3E%3Crect x=%228%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2212%22 y=%224%22 width=%224%22 height=%2212%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2216%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2220%22 y=%224%22 width=%224%22 height=%2212%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2224%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2228%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2240%22 y=%220%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2240%22 y=%2228%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2236%22 y=%224%22 width=%2232%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%2240%22 y=%224%22 width=%2224%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%2244%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2240%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%2244%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2260%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2252%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2248%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2248%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2268%22 y=%220%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2268%22 y=%2228%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2264%22 y=%224%22 width=%2232%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%2268%22 y=%224%22 width=%2224%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2272%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2268%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%2272%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2288%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2280%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2276%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2280%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2272%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2276%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2280%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2284%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32' shape-rendering='crispEdges'%3E%3Crect x=%220%22 y=%220%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2228%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%22-4%22 y=%224%22 width=%2232%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%224%22 width=%2224%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%220%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2220%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%224%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%224%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2228%22 y=%220%22 width=%2232%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2228%22 y=%2228%22 width=%2232%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2224%22 y=%224%22 width=%2240%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%2228%22 y=%224%22 width=%2232%22 height=%2224%22 fill=%22%2359646f%22/%3E%3Crect x=%2232%22 y=%224%22 width=%2224%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2228%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%2232%22 y=%2224%22 width=%2224%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2256%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2252%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2236%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2244%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2240%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2232%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2236%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2240%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2244%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%232f5a2a%22/%3E%3Crect x=%2248%22 y=%224%22 width=%224%22 height=%228%22 fill=%22%234f8a3c%22/%3E%3Crect x=%2252%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%238fc25a%22/%3E%3Crect x=%2264%22 y=%220%22 width=%2228%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2264%22 y=%2228%22 width=%2228%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%2260%22 y=%224%22 width=%2236%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%2264%22 y=%224%22 width=%2228%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%2268%22 y=%224%22 width=%2220%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%2264%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%2268%22 y=%2224%22 width=%2220%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2288%22 y=%228%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2280%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2268%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2284%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%2272%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3C/svg%3E");background-position:0 0,0 100%;background-size:96px 32px,96px 32px;background-repeat:repeat-x,repeat-x}
.craft-menu__frame::after{content:"";position:absolute;inset:32px 0;pointer-events:none;image-rendering:pixelated;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='96' shape-rendering='crispEdges'%3E%3Crect x=%224%22 y=%22-4%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2228%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%220%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%220%22 width=%2224%22 height=%2228%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%224%22 width=%224%22 height=%2220%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2224%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%224%22 width=%224%22 height=%2220%22 fill=%22%233a4552%22/%3E%3Crect x=%2220%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%228%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2212%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%224%22 y=%2228%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2256%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2232%22 width=%2232%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2232%22 width=%2224%22 height=%2224%22 fill=%22%234e5964%22/%3E%3Crect x=%228%22 y=%2232%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%2236%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2252%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%2236%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2220%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2232%22 width=%224%22 height=%2212%22 fill=%22%238fc25a%22/%3E%3Crect x=%2220%22 y=%2232%22 width=%224%22 height=%2212%22 fill=%22%232f5a2a%22/%3E%3Crect x=%224%22 y=%2256%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2292%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2260%22 width=%2232%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2260%22 width=%2224%22 height=%2232%22 fill=%22%23636e7a%22/%3E%3Crect x=%228%22 y=%2260%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%2264%22 width=%224%22 height=%2224%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2288%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%2264%22 width=%224%22 height=%2224%22 fill=%22%233a4552%22/%3E%3Crect x=%2220%22 y=%2276%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3Crect x=%228%22 y=%2276%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2212%22 y=%2284%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2268%22 width=%224%22 height=%224%22 fill=%22%236d7885%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='96' shape-rendering='crispEdges'%3E%3Crect x=%224%22 y=%22-4%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2232%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%220%22 width=%2232%22 height=%2232%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%220%22 width=%2224%22 height=%2232%22 fill=%22%23475160%22/%3E%3Crect x=%228%22 y=%220%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%224%22 width=%224%22 height=%2224%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2228%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%224%22 width=%224%22 height=%2224%22 fill=%22%233a4552%22/%3E%3Crect x=%2216%22 y=%2220%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%224%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%228%22 y=%2212%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2216%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%224%22 y=%2232%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2260%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2236%22 width=%2232%22 height=%2224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2236%22 width=%2224%22 height=%2224%22 fill=%22%23636e7a%22/%3E%3Crect x=%228%22 y=%2236%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%2240%22 width=%224%22 height=%2216%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2256%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%2240%22 width=%224%22 height=%2216%22 fill=%22%233a4552%22/%3E%3Crect x=%2216%22 y=%2244%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%228%22 y=%2252%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2248%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%224%22 y=%2260%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2292%22 width=%2224%22 height=%224%22 fill=%22%2305080c%22/%3E%3Crect x=%220%22 y=%2264%22 width=%2232%22 height=%2228%22 fill=%22%2305080c%22/%3E%3Crect x=%224%22 y=%2264%22 width=%2224%22 height=%2228%22 fill=%22%23636e7a%22/%3E%3Crect x=%228%22 y=%2264%22 width=%2216%22 height=%224%22 fill=%22%239aa6b2%22/%3E%3Crect x=%224%22 y=%2268%22 width=%224%22 height=%2220%22 fill=%22%238591a0%22/%3E%3Crect x=%228%22 y=%2288%22 width=%2216%22 height=%224%22 fill=%22%23333d49%22/%3E%3Crect x=%2224%22 y=%2268%22 width=%224%22 height=%2220%22 fill=%22%233a4552%22/%3E%3Crect x=%2220%22 y=%2276%22 width=%224%22 height=%224%22 fill=%22%237a8592%22/%3E%3Crect x=%2216%22 y=%2276%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2216%22 y=%2280%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%2280%22 width=%224%22 height=%224%22 fill=%22%233f4955%22/%3E%3Crect x=%2212%22 y=%2264%22 width=%224%22 height=%224%22 fill=%22%234f8a3c%22/%3E%3C/svg%3E");background-position:0 0,100% 0;background-size:32px 96px,32px 96px;background-repeat:repeat-y,repeat-y}

.craft-slot {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
}
/* Corner kind/loc badges retired · details live in .tip__bubble--inv. */
.craft-slot > .item-kind,
.craft-slot > .craft-slot__loc {
  display: none !important;
}
.craft-slot__icon {
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}
.craft-slot__egg {
  object-fit: contain;
  width: 78%;
  height: 78%;
  margin: auto;
  display: block;
}
.craft-slot__n {
  position: absolute;
  right: 6px;
  bottom: 2px;
  font-style: normal;
  font-size: 19px;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
}
.craft-menu__hero.craft-slot {
  cursor: default;
}
.craft-menu__hero .craft-slot__icon {
  /* −1 craft pixel cell (--s:4px) inset on each edge. */
  width: calc(100% - (2 * var(--s, 4px)));
  height: calc(100% - (2 * var(--s, 4px)));
}
.craft-ing .craft-slot {
  cursor: default;
}
.craft-ing__t {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 21px;
}
.craft-ing__t--ok { color: var(--ink); }
.craft-ing__t--no { color: var(--red); }
.craft-menu__frame {
  position: relative;
  filter: drop-shadow(0 12px 0 #0007) drop-shadow(0 0 26px #000b);
}
.craft-menu__frame::before,
.craft-menu__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
}
.craft-menu__detail {
  min-height: 0;
}
.craft-menu .tip__bubble,
.craft-unlock .tip__bubble {
  z-index: var(--z-tip, 5000);
  min-width: 10rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.5rem 0.7rem;
  font-family: var(--font-ui, Georgia, serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-color: color-mix(in srgb, var(--gold) 45%, #121921);
  background: color-mix(in srgb, #1a2028 92%, #000);
  color: #e9e4d2;
}
.tip__bubble.tip__bubble--inv {
  display: grid;
  gap: 0;
  min-width: 13rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid #5a3c24;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgb(28 18 10 / 94%), rgb(12 8 6 / 96%)),
    url("/assets/ui/coop-inv-head-band.jpg") center / cover;
  box-shadow:
    inset 0 0 0 1px #1a1008,
    0 0.45rem 1rem rgb(0 0 0 / 50%);
  text-align: left;
  text-transform: none;
}
.tip__bubble.tip__bubble--inv .tip__label {
  display: block;
  margin: 0;
  padding: 0.4rem 0.7rem 0.32rem;
  background: rgb(12 8 4 / 62%);
  border-bottom: 1px solid rgb(240 180 60 / 35%);
  color: #f6edd8;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tip__bubble.tip__bubble--inv .tip__facts {
  display: grid;
  gap: 0.22rem;
  padding: 0.45rem 0.7rem 0.55rem;
}
.tip__bubble.tip__bubble--inv .tip__meta {
  display: block;
  margin: 0;
  color: color-mix(in srgb, #c8b89a 82%, #8a7a62);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.tip__bubble.tip__bubble--inv .tip__meta--origin {
  color: color-mix(in srgb, #9ec4ff 70%, #8a9aaa);
  font-weight: 500;
}
.tip__bubble.tip__bubble--inv .tip__fact {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
}
.tip__bubble.tip__bubble--inv .tip__fact em {
  font-style: normal;
  font-weight: 600;
  color: #b7a88e;
}
.tip__bubble.tip__bubble--inv .tip__fact b {
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.tip__bubble.tip__bubble--inv .tip__desc {
  display: block;
  margin: 0.15rem 0 0;
  color: #d9d0c0;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
}
.craft-unlock .tip__bubble .tip__label,
.craft-unlock .tip__bubble .start-confirm__recipe-tip,
.craft-unlock .tip__bubble .meta {
  margin: 0;
}
.craft-unlock .tip__bubble .tip__label { margin-bottom: 0.3rem; }
.craft-unlock .tip__bubble .start-confirm__recipe-tip { margin-bottom: 0.25rem; }

/* Next location unlock · no outer shell (inners carry their own wood). */
.craft-unlocks {
  display: grid;
  justify-items: stretch;
  width: 100%;
  gap: 1.15rem;
}
.craft-unlock {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #efe6cf;
}
.craft-unlock.pixel-frame::after,
.craft-unlock.pixel-frame > .pixel-frame__fx {
  display: none;
}
.craft-unlock--wide {
  width: 100%;
}
.craft-unlock__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  min-width: 0;
}
.craft-unlock__col {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-width: 0;
}
/* Drops/Crafting sit under Rewards in the left column · fewer cols than full-width. */
.craft-unlock .start-confirm__finds-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}
.craft-unlock .start-confirm__find-icon {
  width: 3.1rem;
  height: 3.1rem;
}
.craft-unlock .start-confirm__find-card {
  padding: 0.25rem 0.12rem 0.2rem;
  gap: 0.2rem;
}
.craft-unlock .start-confirm__find-card strong {
  font-size: 0.62rem;
  min-height: calc(1.1em * 2);
}
.craft-unlock__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  max-height: none;
  min-height: 8.5rem;
  background: #122238 center / cover no-repeat;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.craft-unlock__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgb(12 8 4 / 82%));
  pointer-events: none;
  z-index: 1;
}
.craft-unlock__hero-split {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 14px;
  pointer-events: none;
}
.craft-unlock__titles {
  position: absolute;
  z-index: 2;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(0.55rem + var(--frame-rim));
  margin: 0;
  pointer-events: none;
}
.craft-unlock__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.craft-unlock__badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a1c10, #120b07);
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 2px #e0b050,
    inset 0 0 0 3px #4a2e1a;
}
.craft-unlock__badge img {
  width: 1.35rem;
  height: 1.35rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.craft-unlock__titles h2 {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  color: #f6e6b8;
  text-shadow: 0 2px 0 #1a0f08, 1px 0 0 #1a0f08, -1px 0 0 #1a0f08;
}
.craft-unlock__eyebrow {
  margin: 0.2rem 0 0 2.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0c898;
  text-shadow: 0 1px 0 #1a0f08;
}
.craft-unlock__body {
  padding: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
}
/* Scene nests flush into the Rewards wood frame (top + L/R). */
.craft-unlock__rewards {
  padding: 0 0 0.55rem;
  gap: 0;
  overflow: visible;
  display: grid;
}
.craft-unlock__rewards > .craft-unlock__hero {
  width: 100%;
  margin: 0;
  border-radius: 0;
}
/* Title / four reward tiles / XP total · inset from the wood rim. */
.craft-unlock__rewards-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem 0.75rem;
  min-width: 0;
}
.craft-unlock__rewards-body .affinity-earn__head h3 {
  font-size: 0.92rem;
}
.craft-unlock__rewards-body .start-confirm__total {
  margin: 0;
}
.craft-unlock .start-confirm__box,
.craft-unlock .start-confirm__finds,
.craft-unlock .activity-guide__bundle {
  background: var(--wood-plank);
  margin: 0;
}

@media (max-width: 900px) {
  .craft-menu__frame-in { grid-template-columns: minmax(0, 1fr) 250px; }
  .craft-menu__detail { width: 250px; }
  .craft-unlock__cols { grid-template-columns: 1fr; }
  .craft-unlock .start-confirm__finds-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  /* Keep filters+grid left · detail right (narrower panel). */
  .craft-menu__frame-in {
    grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 38%);
    gap: 10px 10px;
  }
  .craft-menu__detail {
    width: auto;
    max-height: none;
    height: auto;
    padding: 12px;
  }
  .craft-menu__hero { width: 96px; height: 96px; }
  .craft-menu__nm { font-size: 22px; }
  .craft-menu__ds { font-size: 15px; }
  .craft-menu__lb { font-size: 16px; }
  .craft-menu__ings {
    min-height: calc(3 * 42px + 2 * 6px + 16px);
    height: auto;
    max-height: 11rem;
  }
  /*
   * Grow the item grid into leftover viewport · boulder rim stays padded;
   * page padding (above) clamps the frame flush to the bottom nav.
   * Overhead ≈ tabs + frame pad + filter bar + job banner crumbs.
   */
  .craft-menu {
    --h: clamp(
      18rem,
      calc(100dvh - var(--header-offset, 4.5rem) - var(--tab-h, 0px) - 8.75rem),
      32rem
    );
  }
  .craft-menu__gridwrap { height: var(--h); }
  /* Keep craft cells ≥3.85rem · auto-fill drops columns instead of shrinking. */
  .craft-menu__grid { grid-template-columns: repeat(auto-fill, 4.6rem); justify-content: start; gap: 12px; }
  .craft-menu__ttl,
  .craft-menu__lantern { display: none; }
  .craft-menu__frame { padding: var(--rim); }
  .craft-unlock .start-confirm__finds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .craft-unlock__eyebrow { margin-left: 0; }
}
@media (max-width: 520px) {
  .craft-menu__frame-in {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .craft-menu__bar { grid-column: 1; grid-row: 1; }
  .craft-menu {
    /* Stacked detail eats more chrome · still prefer tall grid over dead air above nav. */
    --h: clamp(
      15rem,
      calc(100dvh - var(--header-offset, 4.5rem) - var(--tab-h, 0px) - 14.5rem),
      28rem
    );
  }
  .craft-menu__gridwrap { grid-column: 1; grid-row: 2; height: var(--h); }
  .craft-menu__detail { grid-column: 1; grid-row: 3; width: auto; max-height: none; margin-top: 0; }
  .craft-menu__close { top: 0; right: 16px; transform: translateY(calc(-100% - 4px)); }
}

/* Timed craft job banner (queue of 1). */
.craft-job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid color-mix(in srgb, #cdb47c 55%, #4a2e1a);
  background:
    linear-gradient(180deg, color-mix(in srgb, #2a3a4e 72%, #0c1218), #121a24);
  color: #e8eef6;
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 2px #241409, 0 3px 0 rgb(18 9 4 / 35%);
}
.craft-job--ready {
  border-color: color-mix(in srgb, #f0b43c 70%, #4a2e1a);
}
.craft-job__claim {
  margin: 0;
  display: inline-flex;
}
.craft-job--crate {
  align-items: center;
}
.craft-job__crate-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.craft-job__crate-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
/* Painted plank behind Inventory / Crafting tabs. Not the holiday Event toggle. */
dialog.modal.modal--craft {
  width: min(var(--content-w), calc(100vw - 1.5rem));
  max-width: min(var(--content-w), calc(100vw - 1.5rem));
  max-height: min(94vh, 58rem);
}
@media (max-width: 40rem) {
  .craft-menu__find { width: 100%; margin-left: 0; }
  .craft-menu__place { flex-basis: 9.5rem; }
}
.craft-menu__tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  /* Let the frame's boulder rim show through. The flat slab was two horizontal lines. */
  background: none;
}
.craft-slot__kind {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: #c8b48a;
  box-shadow: 0 0 0 1px #1a1008;
}
.craft-slot__kind[data-mark="craft"] { background: #7dff9a; }
.craft-slot__kind[data-mark="egg"] { background: #f0d080; }
.craft-slot__kind[data-mark="crate"] { background: #e0a060; }
.craft-slot__kind[data-mark="key"] { background: #f2f2f2; }
.craft-slot__kind[data-mark="premium"] { background: #d6bbff; }
.craft-slot__kind[data-mark="drop"] { background: #8fd0ff; }
.craft-menu__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 46px;
  padding: 0 0.6rem;
}
.craft-menu__sort-lab {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.craft-menu__place select,
.craft-menu__sort select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  font: inherit;
  padding: 0.2rem 1.4rem 0.2rem 0.35rem;
  box-shadow: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-lo) 50%), linear-gradient(135deg, var(--gold-lo) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 1px), calc(100% - 7px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.craft-menu__place select:focus,
.craft-menu__sort select:focus {
  outline: none;
  box-shadow: none;
}
.craft-menu__search.craft-menu__well {
  box-shadow: inset 0 0 0 2px #05080c;
}
.craft-menu__search input[type="search"] {
  border: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.craft-menu__search input[type="search"]::-webkit-search-decoration,
.craft-menu__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.craft-menu__search:focus-within {
  box-shadow: inset 0 0 0 2px var(--gold-lo);
}
.craft-menu__place select option,
.craft-menu__sort select option {
  background: #0a0e14;
  color: #e9e4d2;
}
/* Inventory stays static. Keep carve bevels; drop lantern / pulse only. */
.craft-menu__lantern { display: none; }
.craft-menu .craft-slot,
.craft-menu .craft-slot--empty {
  animation: none;
  box-shadow: var(--carve);
}
.craft-menu button.craft-slot:hover {
  animation: none;
  background-color: #0c1118;
  box-shadow: inset 0 0 0 4px #05080c, inset 0 0 0 8px var(--gold-lo), inset 0 0 12px 8px #f0b43c22;
}
.craft-menu .craft-slot[aria-pressed="true"] {
  animation: none;
  background-color: #0a0e14;
  box-shadow: inset 0 0 0 4px #05080c, inset 0 0 0 8px var(--gold), inset 0 0 10px 8px #f0b43c2a;
}
.craft-menu .craft-slot--can::after,
.craft-menu .craft-menu__mark--craft,
.craft-menu .craft-menu__go:not(:disabled) .face {
  animation: none;
  filter: none;
}
/* Kind dots off the grid · live only on the detail hero (bottom-right). */
.craft-menu__grid .craft-slot__kind { display: none !important; }
.craft-menu__hero .craft-slot__kind {
  display: block;
  left: auto;
  top: auto;
  right: 14px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  z-index: 4;
}
.craft-menu__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 0 0 auto;
}
.craft-menu__find .craft-menu__pages { margin-right: 0.15rem; }
.craft-menu__bar .craft-menu__pages[hidden],
.craft-menu__pages:empty { display: none; }
.craft-menu__detail {
  margin-top: 52px;
  align-self: stretch;
  min-height: 0;
  max-height: none;
  background-color: #1a222c;
  background-image: var(--corners), var(--noise);
  background-position: var(--cpos), 0 0;
  background-size: var(--csize), 64px 64px;
  background-repeat: var(--crep), repeat;
  box-shadow: var(--carve);
}
.craft-menu__mark--kind {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: auto;
  top: auto;
  z-index: 4;
  width: 12px;
  height: 12px;
  padding: 0;
  background: #c8b48a;
  box-shadow: 0 0 0 1px #1a1008;
}
.craft-menu__mark--kind[data-mark="craft"] { background: #7dff9a; }
.craft-menu__mark--kind[data-mark="egg"] { background: #f0d080; }
.craft-menu__mark--kind[data-mark="crate"] { background: #e0a060; }
.craft-menu__mark--kind[data-mark="key"] { background: #f2f2f2; }
.craft-menu__mark--kind[data-mark="premium"] { background: #d6bbff; }
.craft-menu__mark--kind[data-mark="drop"] { background: #8fd0ff; }
.craft-menu__mark--origin {
  top: auto;
  right: auto;
  left: 5px;
  bottom: 13px;
  max-width: 4.2rem;
}
.craft-menu__mark--qty {
  left: auto;
  right: 13px;
  top: 5px;
  bottom: auto;
}
@media (max-width: 520px) {
  .craft-menu__detail { margin-top: 0; }
}
