:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #66736c;
  --paper: #f2eee5;
  --paper-deep: #e8e1d5;
  --moss: #476553;
  --moss-dark: #294438;
  --moss-pale: #dbe2d7;
  --sand: #d9c6a0;
  --sand-light: #eadbbd;
  --clay: #b86043;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(30, 41, 36, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 4%, rgba(181, 193, 170, 0.42), transparent 29rem),
    radial-gradient(circle at 95% 95%, rgba(196, 167, 126, 0.24), transparent 35rem),
    var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid rgba(184, 96, 67, 0.65);
  outline-offset: 3px;
}

.app-shell {
  width: min(1480px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 64px)
    max(24px, env(safe-area-inset-bottom));
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  margin-bottom: clamp(20px, 4vh, 42px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 35, 31, 0.2);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: "";
  border: 1px solid var(--moss);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  width: 22px;
  height: 22px;
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  background: var(--moss);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.level-indicator {
  text-align: center;
}

.level-indicator span,
.level-indicator strong {
  display: block;
}

.level-indicator span,
.eyebrow {
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.level-indicator strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.restoration-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
}

.restoration-dots i {
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: rgba(71, 101, 83, 0.16);
  transition:
    width 240ms ease,
    background 240ms ease;
}

.restoration-dots i.is-restored {
  background: var(--moss);
}

.restoration-dots i.is-current {
  width: 25px;
  background: var(--clay);
}

.topbar-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 5px;
}

.leaf-balance {
  display: inline-flex;
  min-width: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 999px;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.55);
  font-size: 12px;
}

.leaf-icon {
  display: inline-block;
  width: 10px;
  height: 15px;
  border-radius: 90% 12% 85% 15%;
  background: var(--moss);
  box-shadow: inset -2px -2px rgba(16, 47, 33, 0.14);
  transform: rotate(38deg);
}

.sound-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.sound-bars {
  display: inline-flex;
  height: 16px;
  align-items: end;
  gap: 2px;
}

.sound-bars i {
  display: block;
  width: 2px;
  border-radius: 3px;
  background: var(--moss);
  animation: sound-wave 1.2s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(1) {
  height: 7px;
}

.sound-bars i:nth-child(2) {
  height: 14px;
  animation-delay: -0.4s;
}

.sound-bars i:nth-child(3) {
  height: 10px;
  animation-delay: -0.7s;
}

.sound-button.is-muted .sound-bars i {
  height: 2px;
  animation: none;
  opacity: 0.5;
}

.sound-button.is-partial .sound-bars i,
.corner-sound.is-partial .sound-bars i {
  animation-duration: 2.4s;
  opacity: 0.58;
}

.audio-settings {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 120;
  display: grid;
  width: min(260px, calc(100vw - 28px));
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(23, 35, 31, 0.13);
  border-radius: 9px 30px 9px 9px;
  background: rgba(249, 247, 239, 0.96);
  box-shadow: 0 18px 55px rgba(20, 31, 26, 0.24);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.audio-settings.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.audio-settings header {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 3px 8px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.audio-settings header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(71, 101, 83, 0.08);
  cursor: pointer;
}

.audio-setting {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 7px 18px 7px 7px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.audio-setting > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.audio-setting > span > i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(219, 226, 215, 0.76);
  font-style: normal;
}

.setting-switch {
  position: relative;
  width: 37px;
  height: 21px;
  border-radius: 999px;
  background: #b6b9b3;
  transition: background 140ms ease;
}

.setting-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  content: "";
  background: white;
  box-shadow: 0 2px 5px rgba(30, 39, 34, 0.22);
  transition: transform 140ms ease;
}

.audio-setting.is-on .setting-switch {
  background: var(--moss);
}

.audio-setting.is-on .setting-switch::after {
  transform: translateX(16px);
}

@keyframes sound-wave {
  to {
    height: 4px;
  }
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
}

.brief-card {
  position: sticky;
  top: 24px;
}

.model-frame {
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  border: 1px solid rgba(23, 35, 31, 0.09);
  border-radius: 4px 34px 4px 4px;
  background: var(--sand);
  box-shadow: 0 15px 40px rgba(69, 65, 53, 0.1);
}

#model-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.model-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 99px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(5px);
}

.brief-copy {
  padding: 21px 4px 8px;
}

.brief-copy p {
  min-height: 66px;
  margin: 0;
  color: #4f5c55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.objective-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(71, 101, 83, 0.13);
  border-radius: 4px 18px 4px 4px;
  background: rgba(219, 226, 215, 0.42);
  transition:
    border-color 220ms ease,
    background 220ms ease;
}

.objective-card.is-met {
  border-color: rgba(71, 101, 83, 0.35);
  background: rgba(198, 216, 195, 0.62);
}

.objective-card.is-missed {
  border-color: rgba(184, 96, 67, 0.22);
  background: rgba(226, 204, 190, 0.4);
}

.objective-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(71, 101, 83, 0.24);
  border-radius: 50%;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.objective-card small,
.objective-card strong {
  display: block;
}

.objective-card small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.objective-card strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objective-card i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(71, 101, 83, 0.35);
  border-radius: 50%;
  background: transparent;
}

.objective-card.is-met i {
  border-color: var(--moss);
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(71, 101, 83, 0.1);
}

.objective-card.is-missed i {
  border-color: var(--clay);
  background: var(--clay);
}

.goal-row {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 35, 31, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.goal-row strong {
  color: var(--moss-dark);
  font-variant-numeric: tabular-nums;
}

.desktop-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.secondary-button,
.complete-button {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.secondary-button:active,
.complete-button:active:not(:disabled) {
  transform: scale(0.975);
}

.secondary-button {
  border: 1px solid rgba(23, 35, 31, 0.16);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover {
  background: rgba(255, 253, 248, 0.92);
}

.secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.secondary-button.is-active {
  border-color: var(--moss);
  color: var(--white);
  background: var(--moss);
}

.secondary-button.is-active:hover {
  background: var(--moss-dark);
}

.reset-garden-button:not(:disabled) {
  color: #7c4937;
  border-color: rgba(124, 73, 55, 0.28);
}

.undo-button:not(:disabled) {
  color: var(--moss-dark);
  border-color: rgba(71, 101, 83, 0.3);
}

.button-icon {
  margin-right: 5px;
  color: var(--moss);
}

.garden-stage {
  min-width: 0;
}

.garden-meta {
  display: flex;
  min-height: 42px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.garden-meta > div:first-child strong {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.live-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.live-score strong {
  min-width: 48px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  text-align: right;
  letter-spacing: -0.04em;
}

.canvas-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 8px solid #a88a60;
  border-top-color: #b69a71;
  border-bottom-color: #806643;
  border-radius: 8px 52px 8px 8px;
  background: var(--sand);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  touch-action: none;
  user-select: none;
}

.canvas-frame::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 1px solid rgba(44, 36, 25, 0.19);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.canvas-frame.is-completing #garden-canvas {
  animation: garden-breathe 1.25s cubic-bezier(0.23, 0.78, 0.28, 1) both;
}

.canvas-frame.is-completing .grain-overlay {
  animation: settle-grain 1.1s ease-out both;
}

@keyframes garden-breathe {
  0% {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  48% {
    filter: saturate(0.9) brightness(1.08);
    transform: scale(1.012);
  }
  100% {
    filter: saturate(1.04) brightness(0.98);
    transform: scale(1);
  }
}

@keyframes settle-grain {
  0% {
    opacity: 0.08;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0.14;
    transform: translateY(0);
  }
}

#garden-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
}

#garden-canvas.is-raking {
  cursor: grabbing;
}

#garden-canvas.is-smoothing {
  cursor: crosshair;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, #4e402b 0 0.6px, transparent 0.7px);
  background-size:
    7px 8px,
    9px 11px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.start-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: 190px;
  justify-items: center;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 22px;
  color: var(--white);
  background: rgba(34, 46, 39, 0.7);
  box-shadow: 0 15px 50px rgba(26, 34, 30, 0.2);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.start-prompt.is-hidden {
  opacity: 0;
  transform: translate(-50%, -46%);
}

.completion-ceremony {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--white);
  background: radial-gradient(circle, rgba(26, 43, 35, 0.2), rgba(19, 31, 25, 0.58));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.completion-ceremony.is-visible {
  opacity: 1;
}

.completion-ceremony strong {
  margin-top: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.completion-ceremony small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ceremony-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: scale(0.5);
  transition: transform 720ms cubic-bezier(0.2, 0.95, 0.3, 1.15);
}

.ceremony-ring::before,
.ceremony-ring::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.ceremony-ring::before {
  width: 48px;
  height: 48px;
}

.ceremony-ring::after {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
}

.completion-ceremony.is-visible .ceremony-ring {
  transform: scale(1);
}

.start-prompt strong {
  margin-top: 11px;
  font-size: 13px;
}

.start-prompt small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.prompt-rake {
  position: relative;
  width: 45px;
  height: 7px;
  border-radius: 2px;
  background: #d5aa68;
}

.prompt-rake::before {
  position: absolute;
  bottom: -10px;
  left: 5px;
  width: 2px;
  height: 11px;
  content: "";
  background: #d5aa68;
  box-shadow: 8px 0 #d5aa68, 16px 0 #d5aa68, 24px 0 #d5aa68, 32px 0 #d5aa68;
}

.prompt-rake::after {
  position: absolute;
  bottom: 3px;
  left: 21px;
  width: 3px;
  height: 28px;
  border-radius: 3px;
  content: "";
  background: #9b7041;
}

.complete-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 23px;
  border: 0;
  color: var(--white);
  background: var(--moss-dark);
  box-shadow: 0 12px 32px rgba(41, 68, 56, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.complete-button:hover:not(:disabled) {
  background: #203a30;
}

.complete-button:disabled {
  color: rgba(255, 255, 255, 0.5);
  background: #aab1ac;
  box-shadow: none;
  cursor: not-allowed;
}

.complete-arrow {
  font-size: 19px;
  font-weight: 400;
}

.mobile-actions {
  display: none;
}

.result-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  visibility: hidden;
  padding: 18px;
  opacity: 0;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.result-panel.is-visible {
  visibility: visible;
  opacity: 1;
}

.result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 29, 25, 0.67);
  backdrop-filter: blur(13px);
}

.result-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: 34px 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 5px 56px 5px 5px;
  background:
    radial-gradient(circle at 87% 9%, rgba(185, 204, 183, 0.38), transparent 12rem),
    var(--white);
  box-shadow: 0 30px 90px rgba(11, 17, 14, 0.35);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 340ms cubic-bezier(0.2, 0.85, 0.3, 1.1);
}

.result-panel.is-visible .result-card {
  transform: translateY(0) scale(1);
}

.result-glyph {
  position: relative;
  width: 72px;
  height: 42px;
  margin: 0 auto 14px;
}

.result-glyph span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--moss);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.result-glyph span:nth-child(1) {
  width: 68px;
  height: 36px;
}

.result-glyph span:nth-child(2) {
  width: 46px;
  height: 24px;
}

.result-glyph span:nth-child(3) {
  width: 22px;
  height: 12px;
  background: var(--moss-pale);
}

.result-card h1 {
  margin: 8px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.final-score {
  display: flex;
  justify-content: center;
  align-items: start;
  margin: 14px 0 4px;
  color: var(--moss-dark);
}

.final-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 63px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.final-score span {
  margin: 7px 0 0 5px;
  font-size: 17px;
}

.result-card > p {
  width: min(310px, 100%);
  margin: 12px auto 20px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}

.score-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(23, 35, 31, 0.11);
  border-bottom: 1px solid rgba(23, 35, 31, 0.11);
}

.score-breakdown > div:first-child {
  border-right: 1px solid rgba(23, 35, 31, 0.11);
}

.score-breakdown span,
.score-breakdown strong {
  display: block;
}

.comparison-block {
  margin-bottom: 17px;
}

.comparison-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.comparison-heading span:last-child {
  text-align: right;
}

.comparison-heading strong {
  color: var(--moss);
  font-size: 8px;
  font-weight: 800;
}

.comparison-frame {
  position: relative;
  overflow: hidden;
  border: 4px solid #a88a60;
  border-radius: 3px 23px 3px 3px;
  background: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  touch-action: none;
}

.comparison-frame:focus-within {
  outline: 3px solid rgba(184, 96, 67, 0.58);
  outline-offset: 3px;
}

#comparison-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 0 0 1px rgba(31, 46, 39, 0.18);
  pointer-events: none;
  z-index: 2;
}

.comparison-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(31, 46, 39, 0.13);
  border-radius: 50%;
  content: "↔";
  color: var(--moss-dark);
  background: var(--white);
  box-shadow: 0 5px 14px rgba(27, 40, 34, 0.18);
  font-size: 10px;
  transform: translate(-50%, -50%);
}

.comparison-slider {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}

.comparison-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comparison-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.comparison-legend .is-match {
  background: #458958;
}

.comparison-legend .is-missing {
  background: #d69736;
}

.comparison-legend .is-extra {
  background: #be4534;
}

.achievement-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(71, 101, 83, 0.15);
  border-radius: 4px 19px 4px 4px;
  background: rgba(219, 226, 215, 0.45);
  text-align: left;
}

.achievement-row.is-missed {
  border-color: rgba(184, 96, 67, 0.18);
  background: rgba(226, 204, 190, 0.35);
}

.achievement-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--moss);
  font-size: 12px;
}

.achievement-row.is-missed .achievement-icon {
  color: var(--clay);
  background: rgba(184, 96, 67, 0.13);
}

.achievement-row small,
.achievement-row > span strong {
  display: block;
}

.achievement-row small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.achievement-row > span strong {
  margin-top: 2px;
  font-size: 11px;
}

.reward-earned {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--moss-dark);
  font-size: 12px;
}

.sanctuary-preview {
  overflow: hidden;
  margin-bottom: 11px;
  border: 1px solid rgba(71, 101, 83, 0.13);
  border-radius: 4px 22px 4px 4px;
  background: var(--moss-pale);
}

#sanctuary-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.sanctuary-progress {
  margin-bottom: 18px;
  text-align: left;
}

.sanctuary-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sanctuary-progress strong {
  color: var(--ink);
  font-weight: 800;
}

.restoration-track {
  overflow: hidden;
  height: 5px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(71, 101, 83, 0.12);
}

.restoration-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), #7c987e);
  transition: width 720ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.score-breakdown span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-breakdown strong {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.career-reveal {
  display: none;
  gap: 9px;
  margin: 0 0 17px;
  text-align: left;
}

.career-reveal.is-visible {
  display: grid;
}

.career-reward-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 70px;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(184, 96, 67, 0.2);
  border-radius: 6px 22px 6px 6px;
  background: linear-gradient(110deg, rgba(244, 225, 198, 0.72), rgba(255, 253, 248, 0.88));
}

.career-reward-card > i {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: rgba(198, 174, 133, 0.34);
}

.career-reward-card > i::before,
.career-reward-card > i::after {
  position: absolute;
  content: "";
}

.career-reward-card > span {
  padding: 11px 14px;
}

.career-reward-card small,
.career-reward-card strong {
  display: block;
}

.career-reward-card small,
.career-result-progress small,
.next-property small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.career-reward-card strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.reward-stone::before {
  width: 43px;
  height: 29px;
  border-radius: 48% 54% 45% 51%;
  background: radial-gradient(circle at 33% 25%, #a5a59a, #505852 72%);
  box-shadow: 0 7px 10px rgba(39, 42, 39, 0.18);
  transform: rotate(-7deg);
}

.reward-pine::before {
  bottom: 12px;
  width: 7px;
  height: 33px;
  background: #79573c;
}

.reward-pine::after {
  top: 9px;
  width: 45px;
  height: 39px;
  border-radius: 48% 52% 45% 55%;
  background: #45674f;
  box-shadow: -13px 9px #52745a, 12px 11px #375b46;
}

.reward-lantern::before {
  width: 11px;
  height: 43px;
  background: #646861;
  box-shadow: 0 -10px 0 7px #646861;
}

.reward-lantern::after {
  top: 8px;
  width: 42px;
  height: 13px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #535851;
}

.reward-basin::before {
  width: 49px;
  height: 29px;
  border-radius: 50%;
  background: #626963;
}

.reward-basin::after {
  width: 29px;
  height: 13px;
  border-radius: 50%;
  background: #8da8a0;
}

.reward-bridge::before {
  width: 49px;
  height: 31px;
  border: 8px solid #9a6640;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.reward-gate::before {
  width: 46px;
  height: 38px;
  border-right: 7px solid #8e4f3a;
  border-left: 7px solid #8e4f3a;
}

.reward-gate::after {
  top: 14px;
  width: 58px;
  height: 8px;
  background: #8e4f3a;
  box-shadow: 0 13px 0 -2px #8e4f3a;
}

.career-result-progress {
  padding: 10px 12px;
  border: 1px solid rgba(71, 101, 83, 0.12);
  border-radius: 6px 18px 6px 6px;
  background: rgba(219, 226, 215, 0.38);
}

.career-result-progress > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.career-result-progress > span strong {
  color: var(--moss-dark);
  font-size: 10px;
}

.career-result-progress > div {
  overflow: hidden;
  height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(71, 101, 83, 0.13);
}

.career-result-progress > div i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
  transition: width 650ms ease 180ms;
}

.next-property {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px 16px 6px 6px;
  color: white;
  background: var(--moss-dark);
}

.next-property strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
}

.result-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9px;
}

.result-actions .complete-button {
  margin: 0;
}

@media (max-width: 860px) {
  .app-shell {
    padding-right: 15px;
    padding-left: 15px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    margin-bottom: 20px;
  }

  .level-indicator {
    display: none;
  }

  .sound-button > span:first-child {
    display: none;
  }

  .game-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .brief-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(125px, 0.42fr) 1fr;
    gap: 16px;
    align-items: center;
  }

  .brief-card > .eyebrow,
  .desktop-actions {
    display: none;
  }

  .model-frame {
    margin: 0;
    border-radius: 3px 24px 3px 3px;
  }

  .model-label {
    display: none;
  }

  .brief-copy {
    padding: 0;
  }

  .brief-copy p {
    min-height: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .objective-card {
    margin-top: 8px;
    padding: 8px 9px;
  }

  .objective-mark {
    display: none;
  }

  .goal-row {
    margin-top: 10px;
    padding-top: 9px;
  }

  .garden-meta {
    min-height: 34px;
    margin-top: 3px;
    margin-bottom: 8px;
  }

  .live-score span {
    display: none;
  }

  .canvas-frame {
    border-width: 6px;
    border-radius: 6px 34px 6px 6px;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  .complete-button {
    margin-top: 9px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .topbar {
    min-height: 45px;
    margin-bottom: 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    display: none;
  }

  .brief-card {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }

  .leaf-balance {
    min-width: 45px;
    padding: 6px 8px;
  }

  .brief-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .objective-card {
    grid-template-columns: 1fr auto;
    gap: 5px;
    margin-top: 6px;
    border-radius: 3px 13px 3px 3px;
  }

  .objective-card small {
    display: none;
  }

  .objective-card strong {
    margin: 0;
    font-size: 9px;
  }

  .goal-row {
    font-size: 10px;
  }

  .garden-meta > div:first-child strong {
    font-size: 14px;
  }

  .live-score strong {
    font-size: 21px;
  }

  .start-prompt {
    min-width: 165px;
    padding: 16px 18px;
  }

  .secondary-button,
  .complete-button {
    min-height: 46px;
  }

  .result-card {
    padding: 31px 23px 24px;
    border-radius: 4px 42px 4px 4px;
  }

  .comparison-heading strong {
    display: none;
  }

  .comparison-heading {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-row {
    padding: 9px 10px;
  }
}

/* Hyper-casual play screen: reference above, tactile garden below. */
.app-shell {
  width: min(100%, 64svh);
  padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}

.topbar {
  grid-template-columns: auto 1fr auto;
  min-height: 42px;
  margin-bottom: 7px;
}

.brand {
  gap: 0;
}

.brand > span:last-child,
.level-indicator strong,
.restoration-dots {
  display: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
}

.level-indicator {
  justify-self: center;
}

.level-indicator span {
  font-size: 11px;
}

.sound-button > span:first-child {
  display: none;
}

.game-layout {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brief-card {
  position: static;
  display: block;
}

.brief-card > .eyebrow,
.brief-copy,
.desktop-actions,
.model-label {
  display: none;
}

.model-frame {
  width: 100%;
  aspect-ratio: 10 / 7;
  margin: 0;
  border: 5px solid #a88a60;
  border-radius: 7px 34px 7px 7px;
  box-shadow: 0 8px 24px rgba(69, 65, 53, 0.12);
}

#model-canvas,
#garden-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garden-stage {
  position: relative;
}

.garden-meta {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 8;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

.garden-meta > div:first-child,
.live-score span {
  display: none;
}

.live-score {
  display: block;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(6px);
}

.live-score strong {
  min-width: 0;
  font-size: 20px;
}

.canvas-frame {
  width: 100%;
  aspect-ratio: 10 / 7;
  border-width: 5px;
  border-radius: 7px 34px 7px 7px;
  box-shadow: 0 8px 24px rgba(30, 41, 36, 0.12);
}

.start-prompt {
  min-width: 0;
  width: 76px;
  height: 76px;
  place-content: center;
  padding: 0;
  border-radius: 50%;
}

.start-prompt strong,
.start-prompt small {
  display: none;
}

.mobile-actions {
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 8;
  display: flex;
  gap: 6px;
  margin: 0;
}

.mobile-actions .secondary-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(6px);
}

.garden-stage > .complete-button {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 8;
  width: 48px;
  min-height: 48px;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
}

.completion-ceremony small {
  display: none;
}

.model-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--sand);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform 700ms cubic-bezier(0.2, 0.86, 0.25, 1),
    opacity 620ms ease,
    border-radius 700ms ease;
  pointer-events: auto;
}

.model-intro canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-intro.is-shrinking {
  border-radius: 10px 44px 10px 10px;
  opacity: 0;
  transform: translateY(-27svh) scale(0.92);
  pointer-events: none;
}

.model-intro.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 700px) {
  .model-intro.is-shrinking {
    transform: translateY(-22svh) scale(0.4);
  }
}

.coin-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #b67a25;
  border-radius: 50%;
  background: #efbd58;
  box-shadow:
    inset 0 0 0 2px rgba(255, 235, 151, 0.58),
    0 1px 3px rgba(88, 54, 12, 0.22);
}

.job-board {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  visibility: hidden;
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(12px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 10% 5%, rgba(184, 202, 176, 0.55), transparent 32rem),
    var(--paper);
  opacity: 0;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.job-board.is-visible {
  visibility: visible;
  opacity: 1;
}

.job-sheet {
  width: min(100%, 64svh);
  max-height: 100%;
  overflow-y: auto;
}

.job-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 9px;
}

.job-header > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.job-case {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  border: 0;
  color: var(--white);
  background: var(--moss-dark);
  cursor: pointer;
}

.job-coins {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
}

.job-grid {
  display: grid;
  gap: 9px;
}

.market-status {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(71, 101, 83, 0.13);
  border-radius: 999px;
  color: var(--moss-dark);
  background: rgba(219, 226, 215, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.market-status strong {
  min-width: 42px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 rgba(184, 96, 67, 0.35);
  animation: market-pulse 1.8s ease-out infinite;
}

@keyframes market-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(184, 96, 67, 0);
  }
}

.market-loading {
  display: grid;
  min-height: 150px;
  grid-template-columns: repeat(3, 8px);
  place-content: center;
  gap: 6px;
}

.market-loading i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  animation: market-loading 800ms ease-in-out infinite alternate;
}

.market-loading i:nth-child(2) {
  animation-delay: 150ms;
}

.market-loading i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes market-loading {
  to {
    opacity: 0.25;
    transform: translateY(-5px);
  }
}

.job-card {
  display: grid;
  grid-template-columns: minmax(132px, 0.48fr) 1fr;
  min-height: 126px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 8px 28px 8px 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 9px 28px rgba(35, 45, 39, 0.08);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.market-offer .job-info {
  padding-top: 25px;
}

.offer-tag {
  position: absolute;
  top: 9px;
  right: 11px;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--moss-dark);
  background: rgba(219, 226, 215, 0.9);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.offer-tag.is-rush {
  color: #7b3e2e;
  background: rgba(244, 205, 179, 0.94);
}

.job-card:active:not(:disabled) {
  transform: scale(0.985);
}

.job-card.featured {
  border-color: rgba(71, 101, 83, 0.36);
  box-shadow: 0 12px 32px rgba(41, 68, 56, 0.13);
}

.job-card.showcase-card {
  border-color: rgba(184, 96, 67, 0.34);
}

.job-card:disabled {
  cursor: not-allowed;
}

.job-card.locked {
  filter: grayscale(0.55);
  opacity: 0.58;
}

.job-card:not(.locked) .job-lock {
  display: none;
}

.job-thumb {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 27px, rgba(98, 76, 44, 0.24) 28px 30px, transparent 31px),
    repeating-radial-gradient(ellipse at 50% 50%, #d9c39a 0 10px, #cbb184 11px 12px);
}

.job-thumb i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: linear-gradient(145deg, #858b82, #4d554f);
  box-shadow: 0 5px 9px rgba(44, 43, 37, 0.25);
}

.job-thumb i:nth-child(1) {
  top: 24%;
  left: 18%;
  width: 30px;
  height: 22px;
}

.job-thumb i:nth-child(2) {
  right: 17%;
  bottom: 18%;
  width: 22px;
  height: 18px;
}

.job-thumb i:nth-child(3) {
  top: 17%;
  right: 19%;
  width: 25px;
  height: 42px;
  border-radius: 70% 30% 64% 36%;
  background: #506f54;
}

.job-thumb i:nth-child(4) {
  bottom: 13%;
  left: 40%;
  width: 12px;
  height: 31px;
  border-radius: 2px;
  background: #74573e;
}

.estate-thumb {
  background:
    radial-gradient(circle at 32% 55%, transparent 0 21px, rgba(98, 76, 44, 0.25) 22px 24px, transparent 25px),
    radial-gradient(circle at 72% 42%, transparent 0 28px, rgba(98, 76, 44, 0.2) 29px 31px, transparent 32px),
  #d1b98d;
}

.showcase-thumb {
  background:
    repeating-radial-gradient(
      ellipse at 46% 58%,
      transparent 0 14px,
      rgba(95, 72, 41, 0.24) 15px 17px,
      transparent 18px 22px
    ),
    repeating-radial-gradient(
      ellipse at 82% 24%,
      transparent 0 8px,
      rgba(95, 72, 41, 0.22) 9px 10px,
      transparent 11px 15px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(105, 80, 46, 0.16) 0 2px,
      transparent 2px 8px
    ),
    #d4bd91;
}

.pine-thumb {
  background:
    radial-gradient(circle at 25% 35%, #4d7053 0 18px, transparent 19px),
    repeating-radial-gradient(
      ellipse at 63% 58%,
      transparent 0 14px,
      rgba(95, 72, 41, 0.25) 15px 17px,
      transparent 18px 23px
    ),
    #d4bd91;
}

.moon-thumb {
  background:
    repeating-radial-gradient(
      ellipse at 52% 50%,
      transparent 0 17px,
      rgba(95, 72, 41, 0.25) 18px 20px,
      transparent 21px 26px
    ),
    radial-gradient(circle at 52% 50%, #59615d 0 19px, transparent 20px),
    #d5bf94;
}

.lantern-thumb {
  background:
    radial-gradient(circle at 78% 27%, #efc674 0 8px, #656961 9px 15px, transparent 16px),
    repeating-linear-gradient(
      -12deg,
      rgba(103, 77, 43, 0.18) 0 2px,
      transparent 2px 10px
    ),
    #d0b789;
}

.job-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
}

.job-info > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.job-facts {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.job-facts i {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--moss-dark);
  background: var(--moss-pale);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.job-facts .coin-icon {
  width: 11px;
  height: 11px;
}

.job-lock {
  position: absolute;
  z-index: 3;
  align-self: center;
  justify-self: center;
  padding: 9px 11px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(41, 68, 56, 0.82);
}

.job-card {
  position: relative;
}

.truck-upgrade {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 8px 24px 8px 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
}

.truck-upgrade:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.truck-upgrade.is-owned {
  border-color: rgba(71, 101, 83, 0.35);
  opacity: 1;
}

.truck-art {
  position: relative;
  display: block;
  width: 55px;
  height: 31px;
  border-radius: 6px 10px 3px 3px;
  background: var(--clay);
  box-shadow: inset -15px 0 rgba(83, 48, 37, 0.22);
}

.truck-art::before,
.truck-art::after {
  position: absolute;
  bottom: -6px;
  width: 13px;
  height: 13px;
  border: 3px solid #ddd0b9;
  border-radius: 50%;
  content: "";
  background: #303b36;
}

.truck-art::before {
  left: 7px;
}

.truck-art::after {
  right: 7px;
}

.truck-art i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 9px;
  border-radius: 2px;
  background: #bdd2ce;
}

.truck-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.result-panel.is-contract .result-copy,
.result-panel.is-contract .sanctuary-preview,
.result-panel.is-contract .sanctuary-progress {
  display: none;
}

.property-map {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  visibility: hidden;
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(12px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 86% 8%, rgba(196, 167, 126, 0.26), transparent 28rem),
    var(--paper);
  opacity: 0;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.property-map.is-visible {
  visibility: visible;
  opacity: 1;
}

.property-sheet {
  width: min(100%, 64svh);
  max-height: 100%;
  overflow-y: auto;
}

.property-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.property-header button {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.76);
  font-size: 20px;
  cursor: pointer;
}

.property-header > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.property-header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.property-progress {
  height: 5px;
  overflow: hidden;
  margin-bottom: 11px;
  border-radius: 99px;
  background: rgba(71, 101, 83, 0.15);
}

.property-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
  transition: width 450ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

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

.property-plot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 10 / 7;
  padding: 0;
  border: 4px solid #a88a60;
  border-radius: 6px 24px 6px 6px;
  background: var(--sand);
  box-shadow: 0 8px 22px rgba(30, 41, 36, 0.1);
  cursor: pointer;
}

.property-plot:first-child {
  grid-column: 1 / -1;
}

.property-plot canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.62) saturate(0.72);
  opacity: 0.72;
  transition:
    filter 260ms ease,
    opacity 260ms ease;
}

.property-plot > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(41, 68, 56, 0.88);
  box-shadow: 0 4px 13px rgba(25, 38, 31, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.property-plot.is-complete {
  border-color: #597763;
  cursor: default;
}

.property-plot.is-complete canvas {
  filter: none;
  opacity: 1;
}

.property-plot.is-complete > span {
  width: auto;
  min-width: 38px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--clay);
}

.property-plot:disabled {
  opacity: 1;
}

.front-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  visibility: hidden;
  overflow: hidden;
  background: var(--paper);
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 260ms ease;
}

.front-screen.is-visible {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.home-screen {
  z-index: 80;
  place-items: center;
  isolation: isolate;
}

.home-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    #d8c89f
    url("assets/stillgarden-key-art.png")
    center center / cover no-repeat;
  transform: scale(1.015);
  animation: home-drift 14s ease-in-out infinite alternate;
}

.home-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(20, 33, 27, 0.08), transparent 36%),
    linear-gradient(0deg, rgba(15, 27, 22, 0.7), transparent 43%),
    radial-gradient(circle at 50% 18%, rgba(255, 247, 217, 0.3), transparent 35%);
}

@keyframes home-drift {
  to {
    transform: scale(1.055) translateY(-0.6%);
  }
}

.home-brand {
  position: absolute;
  top: max(8svh, env(safe-area-inset-top));
  display: grid;
  justify-items: center;
  color: #fffaf0;
  text-align: center;
  text-shadow: 0 3px 22px rgba(24, 32, 24, 0.42);
}

.home-brand h1 {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 10vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.home-brand small {
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0.38em;
}

.home-emblem,
.hub-emblem {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(255, 250, 240, 0.1);
}

.home-emblem::before,
.home-emblem::after,
.hub-emblem::before,
.hub-emblem::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.home-emblem::before,
.hub-emblem::before {
  inset: 9px;
}

.home-emblem::after,
.hub-emblem::after {
  inset: 17px;
  background: currentColor;
}

.home-play {
  position: absolute;
  bottom: max(7svh, calc(env(safe-area-inset-bottom) + 22px));
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid rgba(255, 250, 240, 0.76);
  border-radius: 50%;
  color: var(--white);
  background: rgba(41, 68, 56, 0.92);
  box-shadow:
    0 14px 38px rgba(18, 29, 24, 0.35),
    inset 0 0 0 7px rgba(255, 255, 255, 0.08);
  font-size: 24px;
  cursor: pointer;
  animation: play-pulse 2.3s ease-in-out infinite;
}

.home-play span {
  margin-left: 4px;
}

@keyframes play-pulse {
  50% {
    box-shadow:
      0 17px 46px rgba(18, 29, 24, 0.46),
      0 0 0 10px rgba(255, 250, 240, 0.1),
      inset 0 0 0 7px rgba(255, 255, 255, 0.08);
    transform: scale(1.035);
  }
}

.corner-sound {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.35);
  border-radius: 50%;
  color: var(--white);
  background: rgba(24, 38, 31, 0.24);
  backdrop-filter: blur(9px);
  cursor: pointer;
}

.corner-sound.is-muted .sound-bars i {
  height: 2px;
  animation: none;
  opacity: 0.55;
}

.hub-screen,
.career-screen,
.shop-screen {
  place-items: center;
  overflow-y: auto;
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(12px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 2%, rgba(177, 197, 170, 0.58), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(196, 167, 126, 0.22), transparent 28rem),
    var(--paper);
}

.hub-shell,
.career-shell,
.shop-shell {
  width: min(100%, 64svh);
}

.hub-header,
.shop-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.hub-emblem {
  width: 36px;
  height: 36px;
  color: var(--moss-dark);
  border-color: rgba(41, 68, 56, 0.5);
  box-shadow: inset 0 0 0 6px rgba(71, 101, 83, 0.07);
}

.hub-emblem::before {
  inset: 7px;
}

.hub-emblem::after {
  inset: 13px;
}

.hub-header > strong,
.shop-header > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.hub-coins,
.shop-header > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
}

.hub-hero {
  position: relative;
  display: flex;
  min-height: clamp(225px, 39svh, 370px);
  overflow: hidden;
  align-items: end;
  padding: 21px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 10px 42px 10px 10px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(21, 34, 28, 0.72), transparent 58%),
    url("assets/stillgarden-key-art.png") center 65% / cover no-repeat;
  box-shadow: 0 18px 48px rgba(31, 44, 37, 0.16);
}

#hub-courtyard-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.hub-hero span,
.hub-hero strong,
.hub-hero small {
  display: block;
}

.hub-hero > span {
  position: relative;
  z-index: 2;
}

.hub-hero small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hub-hero strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.hub-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.hub-card {
  position: relative;
  display: grid;
  min-height: 118px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 9px 28px 9px 9px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 9px 25px rgba(35, 45, 39, 0.09);
  text-align: left;
  cursor: pointer;
}

.hub-card.is-locked {
  filter: grayscale(0.65);
  opacity: 0.55;
  cursor: not-allowed;
}

.hub-card.career {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 132px;
}

.career-art {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.35) 49% 51%, transparent 52%),
    repeating-radial-gradient(ellipse at 50% 70%, #dbc79f 0 13px, #a88f67 14px 16px);
}

.career-art i {
  position: absolute;
  border-radius: 50%;
  background: #56625a;
  box-shadow: inset 9px 8px 12px rgba(255,255,255,0.17);
}

.career-art i:nth-child(1) {
  top: 31px;
  left: 22%;
  width: 45px;
  height: 34px;
}

.career-art i:nth-child(2) {
  right: 25%;
  bottom: 20px;
  width: 32px;
  height: 24px;
}

.career-art i:nth-child(3) {
  top: 17px;
  right: 10%;
  width: 8px;
  height: 62px;
  border-radius: 2px;
  background: #686c64;
}

.hub-card > span:last-child {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(7px);
}

.hub-card small,
.hub-card strong {
  display: block;
}

.hub-card small {
  color: var(--clay);
  font-size: 9px;
  font-weight: 900;
}

.hub-card strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.career-shell {
  padding-bottom: 18px;
}

.career-header {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.career-header > button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.76);
  font-size: 25px;
  cursor: pointer;
}

.career-header > span small,
.career-header > span strong {
  display: block;
}

.career-header > span small,
.career-rank small,
.career-license small,
.district-preview small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.career-header > span strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.career-rank {
  display: grid;
  min-width: 83px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
  text-align: right;
}

.career-rank b {
  margin-top: 2px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.career-license {
  display: grid;
  grid-template-columns: 47px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(71, 101, 83, 0.14);
  border-radius: 7px 24px 7px 7px;
  background:
    linear-gradient(105deg, rgba(219, 226, 215, 0.82), rgba(255, 253, 248, 0.88));
}

.career-license > span:nth-child(2) strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.license-seal {
  position: relative;
  width: 39px;
  height: 39px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(71, 101, 83, 0.09);
}

.license-seal::before,
.license-seal::after,
.license-seal i {
  position: absolute;
  border: 1px solid var(--moss);
  border-radius: 50%;
  content: "";
}

.license-seal::before { inset: 8px; }
.license-seal::after { inset: 13px; }
.license-seal i { inset: 17px; background: var(--moss); }

.career-reputation-track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(71, 101, 83, 0.13);
}

.career-reputation-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), #8da182);
  transition: width 500ms ease;
}

.career-route {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

.career-property {
  position: relative;
  display: grid;
  grid-template-columns: minmax(128px, 0.46fr) 1fr;
  min-height: 142px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 8px 30px 8px 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 9px 28px rgba(35, 45, 39, 0.08);
  text-align: left;
  cursor: pointer;
}

.career-property canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-property-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px 38px 14px 16px;
}

.career-property-copy > small {
  color: var(--clay);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.career-property-copy > strong {
  margin: 4px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.career-property-copy > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--moss);
  font-size: 10px;
  font-weight: 750;
}

.career-property-copy > span i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--moss-pale);
  font-style: normal;
}

.career-property-copy > b {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  font-size: 11px;
}

.career-property-copy > b em {
  margin-left: 5px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.07em;
}

.career-status {
  position: absolute;
  top: 11px;
  right: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(219, 226, 215, 0.9);
  font-style: normal;
}

.career-property.is-current {
  border-color: rgba(184, 96, 67, 0.48);
  box-shadow: 0 10px 31px rgba(128, 76, 54, 0.13);
}

.career-property.is-complete .career-status {
  color: white;
  background: var(--moss);
}

.career-property.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.career-property.is-locked canvas {
  filter: grayscale(1) blur(1.5px);
}

.district-preview {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 8px 30px 8px 8px;
  background: rgba(255, 253, 248, 0.72);
}

.district-preview header strong {
  display: block;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.district-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0 9px;
}

.district-options button {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 6px 17px 6px 6px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.district-options button:disabled {
  filter: grayscale(0.75);
  opacity: 0.5;
  cursor: not-allowed;
}

.district-options button.is-selected {
  border-color: var(--moss);
  box-shadow: inset 0 0 0 2px rgba(71, 101, 83, 0.25);
}

.district-options button > i {
  display: block;
  height: 72px;
}

.district-options button > span {
  display: block;
  padding: 8px 3px;
  font-size: 9px;
  font-weight: 800;
}

.district-options button em {
  display: none;
  margin-top: 3px;
  color: var(--clay);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.district-preview.is-unlocked .district-options button em {
  display: block;
}

.coastal-preview {
  background:
    radial-gradient(circle at 74% 65%, #606963 0 12px, transparent 13px),
    linear-gradient(165deg, #bccfc7 0 48%, #d7c098 49%);
}

.mountain-preview {
  background:
    linear-gradient(135deg, transparent 35%, #596c5c 36% 64%, transparent 65%) center 12px / 85px 62px,
    linear-gradient(#ccd8cc, #c7ad81);
}

.night-preview {
  background:
    radial-gradient(circle at 70% 26%, #efd48d 0 8px, transparent 9px),
    radial-gradient(circle at 38% 70%, transparent 0 22px, #b28e62 23px 25px, transparent 26px),
    linear-gradient(#263a38, #81755e);
}

.playtest-metrics {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.playtest-metrics summary {
  padding: 7px 3px;
  cursor: pointer;
}

#playtest-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

#playtest-metrics span {
  padding: 8px;
  border-radius: 8px;
  background: rgba(71, 101, 83, 0.07);
  text-align: center;
  text-transform: uppercase;
}

#playtest-metrics b {
  display: block;
  margin-bottom: 2px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.hub-card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #e1cfaa, #c9ae80);
}

.jobs-art {
  background:
    radial-gradient(circle at 70% 46%, transparent 0 29px, rgba(91, 67, 39, 0.27) 30px 33px, transparent 34px),
    repeating-radial-gradient(ellipse at 42% 58%, #ddc79e 0 12px, #bba077 13px 15px);
}

.jobs-art i {
  position: absolute;
  border-radius: 50%;
  background: #56625a;
  box-shadow: 0 5px 10px rgba(42, 40, 32, 0.3);
}

.jobs-art i:nth-child(1) {
  top: 34%;
  left: 27%;
  width: 42px;
  height: 31px;
}

.jobs-art i:nth-child(2) {
  top: 18%;
  right: 24%;
  width: 28px;
  height: 52px;
  background: #4e7257;
}

.jobs-art i:nth-child(3) {
  right: 10%;
  bottom: 12%;
  width: 24px;
  height: 19px;
}

.shop-art {
  background: linear-gradient(145deg, #b9c6b8, #718d79);
}

.shop-art::before {
  position: absolute;
  inset: 20% 25%;
  border: 8px solid rgba(255, 253, 248, 0.7);
  border-top: 0;
  border-radius: 5px 5px 16px 16px;
  content: "";
}

.shop-art::after {
  position: absolute;
  top: 19%;
  left: 39%;
  width: 22%;
  height: 22%;
  border: 7px solid rgba(255, 253, 248, 0.7);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  content: "";
}

.shop-header button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  font-size: 25px;
  cursor: pointer;
}

.shop-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 126px;
  align-items: center;
  gap: 22px;
  padding: 19px;
  border-radius: 10px 34px 10px 10px;
  color: var(--white);
  background: linear-gradient(135deg, #314f40, #617d67);
  box-shadow: 0 15px 38px rgba(31, 52, 42, 0.2);
}

.shop-banner small,
.shop-banner strong {
  display: block;
}

.shop-banner small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-banner strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.shop-truck-art {
  position: relative;
  display: block;
  width: 93px;
  height: 51px;
  border-radius: 8px 17px 5px 5px;
  background: #c56f4f;
  box-shadow: inset -27px 0 rgba(88, 46, 35, 0.24);
}

.shop-truck-art::before,
.shop-truck-art::after {
  position: absolute;
  bottom: -10px;
  width: 23px;
  height: 23px;
  border: 5px solid #dbe0d6;
  border-radius: 50%;
  content: "";
  background: #27372f;
}

.shop-truck-art::before {
  left: 11px;
}

.shop-truck-art::after {
  right: 11px;
}

.shop-truck-art i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 21px;
  height: 16px;
  border-radius: 3px;
  background: #bcd3cc;
}

.shop-grid {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.shop-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 104px;
  overflow: hidden;
  align-items: center;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 8px 27px 8px 8px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.shop-item:disabled {
  opacity: 0.53;
  cursor: not-allowed;
}

.shop-item.is-owned:disabled {
  border-color: rgba(71, 101, 83, 0.34);
  opacity: 1;
}

.shop-item > span:last-child {
  padding: 14px 17px;
}

.shop-item strong,
.shop-item small {
  display: block;
}

.shop-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.shop-item small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 800;
}

.item-picture {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, #dce4d9, #b7c6b8);
}

.mini-truck {
  position: relative;
  width: 58px;
  height: 31px;
  border-radius: 5px 10px 3px 3px;
  background: var(--clay);
  box-shadow: inset -16px 0 rgba(80, 45, 35, 0.2);
}

.mini-truck::before,
.mini-truck::after {
  position: absolute;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 3px solid #e2e4dc;
  border-radius: 50%;
  content: "";
  background: #293831;
}

.mini-truck::before {
  left: 7px;
}

.mini-truck::after {
  right: 7px;
}

.rake-item i {
  position: relative;
  width: 58px;
  height: 7px;
  border-radius: 3px;
  background: #9c6c3d;
}

.rake-item i::before {
  position: absolute;
  bottom: 2px;
  left: 27px;
  width: 6px;
  height: 49px;
  border-radius: 5px;
  content: "";
  background: #a87645;
}

.rake-item i::after {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 3px;
  height: 15px;
  content: "";
  background: #77502e;
  box-shadow: 12px 0 #77502e, 24px 0 #77502e, 36px 0 #77502e, 48px 0 #77502e;
}

.smoother-item i {
  position: relative;
  width: 49px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(90deg, #80522d, #c18a4c 48%, #774724);
  box-shadow: 0 6px 9px rgba(50, 35, 22, 0.25);
}

.smoother-item i::before {
  position: absolute;
  bottom: 10px;
  left: 21px;
  width: 7px;
  height: 34px;
  border-radius: 4px;
  content: "";
  background: #a9713d;
}

.secondary-button.is-precision {
  box-shadow:
    inset 0 0 0 2px rgba(248, 237, 205, 0.9),
    0 7px 19px rgba(43, 60, 50, 0.16);
}

.precision-icon {
  transform: scaleX(0.65);
}

.lantern-item i {
  position: relative;
  width: 29px;
  height: 34px;
  background: #676b64;
}

.lantern-item i::before {
  position: absolute;
  top: -13px;
  left: -8px;
  width: 45px;
  height: 13px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  background: #565c55;
}

.lantern-item i::after {
  position: absolute;
  inset: 7px;
  content: "";
  background: #efc676;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Personal garden */
.creative-screen {
  place-items: center;
  overflow-y: auto;
  padding:
    max(10px, env(safe-area-inset-top))
    10px
    max(10px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 2%, rgba(177, 197, 170, 0.58), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(196, 167, 126, 0.22), transparent 28rem),
    var(--paper);
}

.creative-shell {
  width: min(100%, 74svh);
}

.hub-card.creative {
  grid-column: 1 / -1;
  min-height: 108px;
}

.creative-art {
  background:
    linear-gradient(180deg, transparent 56%, rgba(43, 70, 57, 0.28)),
    repeating-radial-gradient(ellipse at 56% 74%, #ddc9a2 0 12px, #a99168 13px 15px);
}

.creative-art i {
  position: absolute;
  display: block;
}

.creative-art i:nth-child(1) {
  bottom: 16px;
  left: 18%;
  width: 46px;
  height: 33px;
  border-radius: 50%;
  background: #56615a;
  box-shadow: inset 8px 7px rgba(255,255,255,0.12);
}

.creative-art i:nth-child(2) {
  right: 21%;
  bottom: 14px;
  width: 8px;
  height: 54px;
  background: #646b62;
  box-shadow: -8px -5px 0 -2px #646b62, 8px -5px 0 -2px #646b62;
}

.creative-art i:nth-child(3) {
  top: 18px;
  left: 41%;
  width: 59px;
  height: 34px;
  border-radius: 50% 50% 42% 42%;
  background: #4e7155;
  box-shadow: -24px 12px #496b51, 23px 11px #496b51;
}

.creative-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}

.creative-header > button,
.creative-visit-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 5px 17px rgba(36, 48, 40, 0.09);
  font-size: 24px;
  cursor: pointer;
}

.creative-header > span small,
.creative-header > span strong {
  display: block;
}

.creative-header > span small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.creative-header > span strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.creative-stage {
  position: relative;
  overflow: hidden;
  border: 6px solid #a98b5d;
  border-radius: 8px 34px 8px 8px;
  background: #d7c094;
  box-shadow: 0 15px 40px rgba(52, 48, 36, 0.17);
  transition: border-color 220ms ease;
}

#creative-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  touch-action: none;
  cursor: grab;
}

.creative-stage.is-raking #creative-canvas {
  cursor: grabbing;
}

.creative-toolrail {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(38, 51, 43, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.89);
  box-shadow: 0 8px 25px rgba(35, 45, 39, 0.16);
  backdrop-filter: blur(10px);
}

.creative-toolrail button {
  display: grid;
  width: 50px;
  min-height: 48px;
  place-items: center;
  gap: 1px;
  padding: 4px 2px;
  border: 0;
  border-radius: 999px;
  color: var(--moss-dark);
  background: transparent;
  cursor: pointer;
}

.creative-toolrail button.is-active {
  color: white;
  background: var(--moss-dark);
  box-shadow: 0 5px 14px rgba(41, 68, 56, 0.26);
}

.creative-toolrail button:disabled {
  opacity: 0.38;
  cursor: default;
}

.creative-toolrail button > span {
  min-height: 20px;
  font-size: 18px;
  line-height: 20px;
}

.creative-toolrail button small {
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-rake-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 5px;
  margin-top: 5px;
  border-radius: 3px;
  background: currentColor;
}

.mini-rake-icon::before {
  position: absolute;
  bottom: 1px;
  left: 11px;
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.mini-rake-icon::after {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 2px;
  height: 7px;
  background: currentColor;
  box-shadow: 6px 0 currentColor, 12px 0 currentColor, 18px 0 currentColor;
  content: "";
}

.creative-selection {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 6px;
}

.creative-selection.is-visible {
  display: flex;
}

.creative-selection button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(38, 51, 43, 0.12);
  border-radius: 50%;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.91);
  box-shadow: 0 7px 19px rgba(35, 45, 39, 0.16);
  font-size: 19px;
  cursor: pointer;
}

.creative-visit-controls {
  position: absolute;
  top: 13px;
  right: 13px;
  display: none;
  gap: 8px;
}

.creative-visit-controls.is-visible {
  display: flex;
}

.creative-visit-controls button {
  width: 43px;
  height: 43px;
  font-size: 18px;
}

.creative-inventory {
  display: flex;
  min-height: 84px;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 5px;
  scrollbar-width: none;
}

.creative-inventory::-webkit-scrollbar {
  display: none;
}

.creative-inventory button {
  position: relative;
  display: grid;
  min-width: 108px;
  min-height: 70px;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 8px 22px 8px 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.87);
  box-shadow: 0 7px 19px rgba(36, 48, 40, 0.07);
  text-align: left;
  cursor: pointer;
}

.creative-inventory button:disabled {
  opacity: 0.42;
  cursor: default;
}

.creative-inventory button.is-placed {
  border-color: rgba(71, 101, 83, 0.35);
}

.creative-inventory .inventory-art {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: var(--moss-dark);
  background: var(--moss-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.creative-inventory small,
.creative-inventory strong {
  display: block;
}

.creative-inventory small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.creative-inventory strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
}

.creative-inventory-empty {
  display: grid;
  width: 100%;
  place-items: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  text-align: center;
}

.creative-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 7px;
  margin-top: 6px;
}

.creative-footer button {
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: 7px 17px 7px 7px;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.79);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.creative-footer button:disabled {
  opacity: 0.42;
  cursor: default;
}

.creative-footer .creative-expand {
  color: white;
  border-color: transparent;
  background: var(--moss-dark);
}

.creative-shell.is-visiting .creative-header,
.creative-shell.is-visiting .creative-toolrail,
.creative-shell.is-visiting .creative-selection,
.creative-shell.is-visiting .creative-inventory,
.creative-shell.is-visiting .creative-footer {
  display: none;
}

.creative-shell.is-visiting {
  width: min(100%, 96svh);
}

.creative-shell.is-visiting .creative-stage {
  border-color: rgba(169, 139, 93, 0.75);
  border-radius: 6px 42px 6px 6px;
}

.career-reward-choice {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7px;
}

.career-reward-choice button {
  min-height: 44px;
  border: 1px solid rgba(41, 68, 56, 0.14);
  border-radius: 6px 16px 6px 6px;
  color: var(--moss-dark);
  background: rgba(255, 253, 248, 0.88);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.career-reward-choice button:last-child {
  color: white;
  border-color: transparent;
  background: var(--moss-dark);
}

.career-reward-choice.is-hidden {
  display: none;
}

@media (max-width: 620px) {
  .creative-screen {
    place-items: start center;
    padding-right: 0;
    padding-left: 0;
  }

  .creative-shell {
    width: 100%;
  }

  .creative-header,
  .creative-inventory,
  .creative-footer {
    margin-right: 10px;
    margin-left: 10px;
  }

  .creative-stage {
    border-width: 4px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .creative-toolrail {
    bottom: 8px;
    left: 8px;
  }

  .creative-toolrail button {
    width: 45px;
    min-height: 44px;
  }

  .creative-footer button {
    min-height: 45px;
    padding: 5px;
    font-size: 8px;
  }

  .creative-selection {
    top: 8px;
    right: 8px;
  }
}

/* Atmospheric main hub */
.hub-screen {
  isolation: isolate;
  overflow-y: auto;
  background: #17231d;
}

.hub-background,
.hub-background-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hub-background {
  z-index: -3;
  background:
    #28342d
    url("assets/stillgarden-hub-dusk.png")
    center 48% / cover no-repeat;
  transform: scale(1.025);
}

.hub-background-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 20, 17, 0.54), rgba(15, 24, 20, 0.25) 33%, rgba(10, 17, 14, 0.7)),
    radial-gradient(circle at 50% 36%, transparent 0 27%, rgba(9, 16, 13, 0.25) 72%);
  backdrop-filter: saturate(0.88);
}

.hub-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 72svh);
  min-height: calc(100svh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
  flex-direction: column;
  justify-content: center;
}

.hub-header {
  margin-bottom: 12px;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(7, 13, 10, 0.38);
}

.hub-header > strong {
  color: #fffaf0;
  font-size: 25px;
}

.hub-header .hub-emblem {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.62);
  box-shadow: inset 0 0 0 6px rgba(255, 250, 240, 0.08);
}

.hub-header .hub-coins {
  color: #fffaf0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(14, 23, 19, 0.58);
  box-shadow: 0 6px 22px rgba(8, 14, 11, 0.18);
  backdrop-filter: blur(12px);
}

.hub-garden-card {
  position: relative;
  display: flex;
  min-height: clamp(285px, 47svh, 475px);
  width: 100%;
  overflow: hidden;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(255, 250, 239, 0.58);
  border-radius: 10px 42px 10px 10px;
  color: white;
  background: #d6c094;
  box-shadow:
    0 24px 64px rgba(5, 11, 8, 0.34),
    inset 0 0 0 1px rgba(255,255,255,0.14);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hub-garden-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 52%, rgba(14, 23, 19, 0.67)),
    linear-gradient(90deg, rgba(15, 24, 20, 0.14), transparent 55%);
  content: "";
  pointer-events: none;
}

.hub-garden-card:hover {
  border-color: rgba(255, 250, 239, 0.9);
  box-shadow:
    0 28px 72px rgba(5, 11, 8, 0.42),
    0 0 0 3px rgba(255, 250, 239, 0.12);
  transform: translateY(-2px);
}

.hub-garden-card:active {
  transform: translateY(0) scale(0.995);
}

.hub-garden-card:focus-visible,
.hub-menu .hub-card:focus-visible {
  outline: 3px solid rgba(255, 245, 210, 0.82);
  outline-offset: 3px;
}

.hub-garden-card #hub-courtyard-canvas {
  z-index: 0;
  opacity: 1;
}

.hub-garden-card > span {
  position: relative;
  z-index: 2;
}

.hub-garden-card small,
.hub-garden-card strong {
  display: block;
}

.hub-garden-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-garden-card strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4.2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hub-garden-arrow {
  position: absolute;
  right: 19px;
  bottom: 19px;
  z-index: 2;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  background: rgba(20, 34, 27, 0.72);
  box-shadow: 0 7px 18px rgba(8, 14, 11, 0.22);
  font-size: 19px;
  font-style: normal;
  backdrop-filter: blur(8px);
}

.hub-mode-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 3px 7px;
  color: #fffaf0;
  text-shadow: 0 2px 12px rgba(6, 12, 9, 0.44);
}

.hub-mode-heading span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.hub-mode-heading small {
  color: rgba(255, 250, 240, 0.62);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hub-screen .hub-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px 29px 11px 11px;
  background: rgba(12, 21, 17, 0.66);
  box-shadow: 0 18px 45px rgba(6, 12, 9, 0.28);
  backdrop-filter: blur(16px) saturate(0.85);
}

.hub-screen .hub-menu .hub-card,
.hub-screen .hub-menu .hub-card.career {
  position: relative;
  display: flex;
  min-height: 91px;
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px 9px;
  border: 1px solid transparent;
  border-radius: 8px 20px 8px 8px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.hub-screen .hub-menu .hub-card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.11);
  transform: translateY(-2px);
}

.hub-screen .hub-menu .hub-card:active {
  transform: translateY(0) scale(0.97);
}

.hub-screen .hub-menu .hub-card > span:last-child {
  position: static;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hub-screen .hub-menu .hub-card small {
  color: rgba(255, 250, 240, 0.58);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-screen .hub-menu .hub-card strong {
  margin-top: 2px;
  color: #fffaf0;
  font-size: clamp(12px, 2.5vw, 16px);
}

.hub-mode-glyph {
  display: grid;
  width: 34px;
  height: 29px;
  place-items: center;
  color: #e9d4a4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-style: normal;
  line-height: 1;
}

.hub-screen .hub-menu .hub-card.is-locked {
  opacity: 0.38;
}

@media (max-width: 540px) {
  .hub-screen {
    padding-right: 9px;
    padding-left: 9px;
  }

  .hub-shell {
    width: 100%;
    min-height: calc(100svh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .hub-header {
    min-height: 42px;
    margin-bottom: 8px;
  }

  .hub-header > strong {
    font-size: 21px;
  }

  .hub-garden-card {
    min-height: clamp(270px, 45svh, 390px);
    padding: 17px;
    border-radius: 8px 34px 8px 8px;
  }

  .hub-garden-arrow {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }

  .hub-mode-heading {
    margin-top: 13px;
  }

  .hub-screen .hub-menu {
    gap: 4px;
    padding: 5px;
  }

  .hub-screen .hub-menu .hub-card,
  .hub-screen .hub-menu .hub-card.career {
    min-height: 78px;
    gap: 4px;
    padding: 7px 2px;
    border-radius: 6px 15px 6px 6px;
  }

  .hub-mode-glyph {
    width: 29px;
    height: 25px;
    font-size: 22px;
  }

  .hub-screen .hub-menu .hub-card strong {
    font-size: 11px;
  }
}

@media (max-height: 670px) and (min-width: 541px) {
  .hub-garden-card {
    min-height: 42svh;
  }

  .hub-mode-heading {
    margin-top: 10px;
  }

  .hub-screen .hub-menu .hub-card,
  .hub-screen .hub-menu .hub-card.career {
    min-height: 76px;
  }
}

/* Career level map */
.career-screen {
  background:
    linear-gradient(rgba(236, 220, 184, 0.74), rgba(239, 231, 210, 0.9)),
    url("assets/stillgarden-map-sunrise.png") center / cover fixed;
}

.career-route {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(51, 70, 59, 0.13);
  border-radius: 12px 42px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 231, 177, 0.06), rgba(61, 49, 32, 0.13)),
    url("assets/stillgarden-map-sunrise.png") center top / cover no-repeat;
  box-shadow:
    inset 0 0 80px rgba(63, 48, 28, 0.13),
    0 18px 46px rgba(33, 44, 38, 0.18);
}

.career-route::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(35, 39, 26, 0.09), transparent 23% 77%, rgba(35, 39, 26, 0.09)),
    radial-gradient(rgba(79, 63, 39, 0.2) 0.55px, transparent 0.8px);
  background-size: auto, 8px 8px;
  content: "";
  pointer-events: none;
}

.career-path-step {
  position: absolute;
  z-index: 1;
  display: block;
  height: 10px;
  border: 1px solid rgba(255, 252, 241, 0.54);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.62) 0 8px, rgba(255,255,255,0.08) 8px 15px),
    rgba(93, 93, 72, 0.43);
  box-shadow: 0 2px 6px rgba(43, 41, 29, 0.16);
  transform-origin: 0 50%;
}

.career-path-step.is-complete {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.54) 0 8px, transparent 8px 15px),
    #496d58;
}

.career-map-stop {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
}

.career-map-node {
  position: relative;
  display: block;
  width: 86px;
  height: 86px;
  overflow: visible;
  padding: 5px;
  border: 3px solid rgba(255, 252, 241, 0.88);
  border-radius: 50%;
  color: var(--ink);
  background: #efe6d0;
  box-shadow:
    0 0 0 3px rgba(58, 78, 64, 0.5),
    0 9px 18px rgba(42, 41, 29, 0.25);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.career-map-node:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 4px rgba(58, 78, 64, 0.58),
    0 13px 23px rgba(42, 41, 29, 0.28);
}

.career-map-node canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.career-map-stop.is-milestone .career-map-node {
  width: 96px;
  height: 96px;
  margin: -5px;
  border-color: #f2d28a;
  box-shadow:
    0 0 0 4px rgba(128, 85, 48, 0.66),
    0 10px 23px rgba(49, 39, 24, 0.31);
}

.career-level-number {
  position: absolute;
  right: -7px;
  bottom: -5px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  color: #fffaf0;
  background: var(--moss-dark);
  box-shadow: 0 4px 9px rgba(33, 43, 37, 0.22);
  font-size: 10px;
  font-weight: 900;
}

.career-map-node .career-status {
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  border: 2px solid #fffaf0;
  font-size: 12px;
}

.career-map-stop.is-complete .career-map-node {
  box-shadow:
    0 0 0 4px rgba(49, 100, 72, 0.75),
    0 9px 18px rgba(42, 41, 29, 0.23);
}

.career-map-stop.is-complete .career-status {
  color: #fff;
  background: #376a4d;
}

.career-map-stop.is-locked {
  opacity: 0.58;
}

.career-map-stop.is-locked .career-map-node {
  cursor: not-allowed;
  filter: grayscale(0.86);
}

.career-map-stop.is-locked .career-map-node canvas {
  filter: blur(1.5px);
}

.career-map-copy {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  display: flex;
  width: 176px;
  min-height: 83px;
  justify-content: center;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid rgba(39, 52, 44, 0.12);
  border-radius: 7px 20px 7px 7px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.89);
  box-shadow: 0 7px 18px rgba(43, 42, 30, 0.12);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.career-map-stop.is-label-left .career-map-copy {
  right: calc(100% + 14px);
  left: auto;
  border-radius: 20px 7px 7px 7px;
  text-align: right;
}

.career-map-copy small,
.career-map-copy strong,
.career-map-copy span,
.career-map-copy b {
  display: block;
}

.career-map-copy small {
  color: var(--clay);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.career-map-copy strong {
  overflow: hidden;
  margin: 3px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-map-copy > span {
  color: var(--moss-dark);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.career-map-copy > span i {
  margin-right: 5px;
  font-style: normal;
}

.career-map-copy > b {
  margin-top: 7px;
  font-size: 9px;
}

.career-map-copy > b .coin-icon {
  margin-right: 4px;
  vertical-align: -2px;
}

.career-map-copy > b em {
  margin-left: 7px;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.career-player-marker {
  position: absolute;
  bottom: auto;
  display: grid;
  z-index: 4;
  justify-items: center;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 5px 7px rgba(34, 37, 28, 0.22));
  pointer-events: none;
  transition:
    left 1.32s cubic-bezier(0.33, 0.02, 0.22, 1),
    top 1.32s cubic-bezier(0.33, 0.02, 0.22, 1);
}

.career-player-marker i {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(255, 250, 240, 0.9);
  border-radius: 50%;
  background: #d2a879;
  box-shadow: inset -4px -3px 0 rgba(105, 70, 40, 0.12);
}

.career-player-marker i::before,
.career-player-marker i::after {
  position: absolute;
  content: "";
}

.career-player-marker i::before {
  top: -13px;
  left: -8px;
  width: 35px;
  height: 14px;
  border-radius: 50% 50% 20% 20%;
  background: #d3b169;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.career-player-marker i::after {
  top: 19px;
  left: 1px;
  width: 17px;
  height: 21px;
  border: 2px solid rgba(255, 250, 240, 0.8);
  border-radius: 7px 7px 4px 4px;
  background: var(--moss-dark);
}

.career-player-marker b {
  margin-top: 25px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--moss-dark);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.career-player-marker.is-moving i {
  animation: career-walk 320ms ease-in-out infinite alternate;
}

.career-player-marker.is-moving b {
  opacity: 0.72;
}

@keyframes career-walk {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-6px) rotate(3deg); }
}

.career-map-stop.is-current .career-map-node {
  animation: career-current-pulse 1.8s ease-in-out infinite;
}

@keyframes career-current-pulse {
  50% {
    box-shadow:
      0 0 0 7px rgba(239, 196, 102, 0.27),
      0 0 0 3px rgba(58, 78, 64, 0.62),
      0 12px 24px rgba(42, 41, 29, 0.3);
  }
}

.career-route.is-advancing .career-map-node {
  cursor: default;
}

.career-shell {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.career-brand-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px !important;
}

.career-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px 22px 8px 8px;
  background: rgba(239, 236, 222, 0.86);
  box-shadow: 0 8px 24px rgba(38, 48, 42, 0.09);
  backdrop-filter: blur(14px);
}

.map-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 110;
  display: grid;
  visibility: hidden;
  width: min(100%, 64svh);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(25, 41, 33, 0.9);
  box-shadow: 0 16px 38px rgba(15, 24, 19, 0.32);
  opacity: 0;
  transform: translate(-50%, 110%);
  backdrop-filter: blur(18px) saturate(0.82);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 220ms ease;
}

.map-bottom-nav.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.map-bottom-nav button {
  display: grid;
  min-width: 0;
  min-height: 57px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 5px 2px;
  border: 0;
  border-radius: 8px 18px 8px 8px;
  color: rgba(255, 250, 240, 0.62);
  background: transparent;
  cursor: pointer;
}

.map-bottom-nav button:hover,
.map-bottom-nav button:focus-visible {
  color: #fffaf0;
  background: rgba(255,255,255,0.1);
}

.map-bottom-nav button.is-active {
  color: #fffaf0;
  background: rgba(226, 203, 148, 0.16);
}

.map-bottom-nav button.is-locked {
  position: relative;
  opacity: 0.42;
  cursor: not-allowed;
}

#nav-jobs.is-locked::after {
  position: absolute;
  top: 5px;
  right: 17%;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #263c31;
  content: "5";
  background: #e7cf98;
  font-size: 8px;
  font-weight: 900;
}

.map-bottom-nav button i {
  color: #e7cf98;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}

.map-bottom-nav button span {
  overflow: hidden;
  max-width: 100%;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-screen,
.creative-screen {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.job-board,
.property-map {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.job-sheet,
.property-sheet {
  padding-bottom: 8px;
}

/* Jobs: a small street of commissions rather than a utility list. */
.job-board {
  place-items: stretch center;
  padding:
    max(8px, env(safe-area-inset-top))
    8px
    calc(88px + env(safe-area-inset-bottom));
  background:
    linear-gradient(
      180deg,
      rgba(35, 45, 35, 0.08) 0%,
      rgba(30, 42, 34, 0.12) 32%,
      rgba(24, 35, 29, 0.68) 72%,
      rgba(21, 31, 26, 0.92) 100%
    ),
    url("assets/stillgarden-jobs-house.png") center 38% / cover no-repeat,
    #b47b42;
}

.job-sheet {
  width: min(100%, 64svh);
  max-height: 100%;
  padding: 0 4px 12px;
  scrollbar-width: none;
}

.job-sheet::-webkit-scrollbar {
  display: none;
}

.job-header {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 50px;
  margin-bottom: min(22svh, 180px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px 24px 9px 9px;
  background: rgba(244, 239, 221, 0.82);
  box-shadow: 0 10px 30px rgba(27, 34, 28, 0.12);
  backdrop-filter: blur(15px) saturate(0.8);
}

.job-welcome {
  margin-bottom: 9px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px 27px 9px 9px;
  color: #fff9ea;
  background: rgba(30, 47, 38, 0.79);
  box-shadow: 0 14px 34px rgba(20, 27, 22, 0.25);
  backdrop-filter: blur(14px);
}

.job-welcome small,
.job-welcome strong,
.job-welcome span {
  display: block;
}

.job-welcome small {
  color: #e7ca91;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.job-welcome strong {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.job-welcome span {
  margin-top: 3px;
  color: rgba(255, 249, 234, 0.72);
  font-size: 11px;
}

.job-board .market-status {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff9ea;
  background: rgba(28, 43, 35, 0.7);
  backdrop-filter: blur(12px);
}

.job-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
}

.job-card.market-offer {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  border-color: rgba(255, 255, 255, 0.35);
  border-radius: 9px 27px 9px 9px;
  background: rgba(250, 245, 229, 0.93);
  box-shadow: 0 16px 34px rgba(17, 25, 20, 0.28);
  backdrop-filter: blur(12px);
}

.job-card.market-offer canvas {
  display: block;
  width: 100%;
  height: 104px;
  flex: none;
  background: #d8c49d;
}

.market-offer .job-info {
  flex: 1;
  justify-content: flex-start;
  padding: 17px 11px 11px;
}

.market-offer .job-info > strong {
  min-height: 35px;
  font-size: 16px;
  line-height: 1.05;
}

.market-offer .job-facts {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.market-offer .job-facts i {
  min-height: 22px;
  padding: 3px 6px;
  font-size: 8px;
}

.job-pay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: auto;
  padding-top: 9px;
}

.job-pay > i {
  min-width: 0;
  padding: 6px;
  border-radius: 7px 14px 7px 7px;
  background: rgba(218, 225, 211, 0.72);
  font-style: normal;
}

.job-pay small,
.job-pay b {
  display: flex;
  align-items: center;
}

.job-pay small {
  color: rgba(38, 58, 47, 0.65);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-pay b {
  gap: 4px;
  margin-top: 2px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
}

.job-pay .coin-icon {
  width: 10px;
  height: 10px;
  border-width: 1px;
}

.offer-tag {
  top: 9px;
  right: 8px;
  color: #fff8e8;
  background: rgba(37, 61, 48, 0.88);
}

.offer-tag i {
  margin-right: 4px;
  color: #e9c77f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
}

.job-card.is-standard {
  border-color: rgba(227, 189, 106, 0.6);
}

.job-card.is-prestige {
  grid-column: 1 / -1;
  display: grid;
  min-height: 166px;
  grid-template-columns: minmax(150px, 0.8fr) 1fr;
}

.job-card.is-prestige canvas {
  height: 100%;
  min-height: 166px;
}

.job-card.is-prestige .job-info {
  padding-top: 28px;
}

.job-card.is-prestige .job-info > strong {
  min-height: 0;
  font-size: 20px;
}

.job-card.is-prestige .job-pay {
  max-width: 220px;
}

.job-card.is-prestige.featured {
  border-color: rgba(232, 197, 119, 0.82);
  box-shadow:
    0 0 0 1px rgba(105, 76, 34, 0.22),
    0 18px 40px rgba(17, 25, 20, 0.34);
}

.job-board .truck-upgrade {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff9ea;
  background: rgba(28, 43, 35, 0.82);
  box-shadow: 0 14px 34px rgba(18, 27, 21, 0.24);
  backdrop-filter: blur(14px);
}

.job-board .truck-price {
  color: #edcf8f;
}

/* Shop catalogue */
.shop-section {
  margin-top: 18px;
}

.shop-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 4px;
}

.shop-section > header small,
.shop-section > header strong {
  display: block;
}

.shop-section > header small {
  color: var(--moss);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-section > header strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.shop-section > header > i {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff7e7;
  background: var(--clay);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.shop-decoration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-decoration {
  min-height: 142px;
  grid-template-columns: 1fr;
  grid-template-rows: 86px 1fr;
}

.shop-decoration > span:last-child {
  padding: 10px 11px 12px;
}

.shop-decoration strong {
  font-size: 15px;
}

.decoration-item {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 83%, rgba(80, 61, 39, 0.22) 0 24%, transparent 25%),
    linear-gradient(145deg, #e4d4ad, #b8c5a7);
}

.decoration-item::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  height: 26%;
  border-radius: 50% 50% 0 0;
  content: "";
  background: repeating-radial-gradient(
    ellipse at 50% 110%,
    transparent 0 8px,
    rgba(103, 78, 45, 0.22) 9px 10px,
    transparent 11px 15px
  );
}

.decoration-item i {
  position: relative;
  z-index: 2;
  color: #355c43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-style: normal;
  text-shadow: 0 7px 12px rgba(33, 48, 38, 0.2);
}

.expansion-item {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,0.85) 48% 52%, transparent 53%),
    linear-gradient(#c9d6c5 48%, #ddc696 49%);
}

.expansion-item i::before,
.expansion-item i::after {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 2px solid rgba(45, 73, 57, 0.72);
  border-radius: 3px 11px 3px 3px;
  content: "";
}

.expansion-item i::before {
  right: 4px;
  bottom: 4px;
}

.expansion-item i::after {
  top: 4px;
  left: 4px;
}

@media (max-width: 380px) {
  .job-header {
    margin-bottom: min(18svh, 130px);
  }

  .job-card.market-offer {
    min-height: 222px;
  }

  .job-card.market-offer canvas {
    height: 88px;
  }

  .market-offer .job-info {
    padding-right: 8px;
    padding-left: 8px;
  }

  .job-card.is-prestige {
    grid-template-columns: 42% 58%;
  }
}

/* Career pressure: Zen is health, Match is progress. */
.live-score {
  display: grid;
  min-width: 154px;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 8px;
  padding: 7px 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px 20px 8px 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 7px 20px rgba(32, 43, 36, 0.1);
  backdrop-filter: blur(9px);
}

.live-score > #zen-label {
  display: block;
  color: var(--moss);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-score > #zen-value {
  min-width: 0;
  color: var(--moss-dark);
  font-size: 22px;
  line-height: 1;
}

.coverage-live {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 4px;
  color: rgba(38, 58, 47, 0.68);
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.coverage-live[hidden] {
  display: none;
}

.coverage-live i {
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-live b {
  color: var(--moss-dark);
  font-size: 11px;
}

.coverage-live em {
  color: rgba(38, 58, 47, 0.48);
  font-size: 8px;
  font-style: normal;
}

.live-score > .zen-track {
  position: relative;
  display: block;
  overflow: hidden;
  height: 4px;
  grid-column: 1 / -1;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(45, 72, 57, 0.13);
}

.zen-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d9377, #365d48);
  transition:
    width 130ms linear,
    background 180ms ease;
}

.live-score.is-low > #zen-value {
  color: #9b672d;
}

.live-score.is-low .zen-track i {
  background: linear-gradient(90deg, #e4bd64, #b77732);
}

.live-score.is-critical {
  animation: zen-warning 850ms ease-in-out infinite alternate;
}

.live-score.is-critical > #zen-value,
.live-score.is-depleted > #zen-value {
  color: var(--clay);
}

.live-score.is-critical .zen-track i,
.live-score.is-depleted .zen-track i {
  background: var(--clay);
}

.live-score.is-score-only {
  min-width: 92px;
  grid-template-columns: auto auto;
}

.live-score.is-score-only > .zen-track {
  opacity: 0.42;
}

@keyframes zen-warning {
  to {
    box-shadow:
      0 0 0 3px rgba(184, 96, 67, 0.13),
      0 7px 20px rgba(32, 43, 36, 0.1);
  }
}

.canvas-frame.is-zen-failed {
  box-shadow:
    0 0 0 3px rgba(184, 96, 67, 0.2),
    var(--shadow),
    inset 0 0 44px rgba(126, 63, 43, 0.16);
}

.result-panel.is-zen-failure .result-card {
  border-color: rgba(184, 96, 67, 0.35);
}

.result-panel.is-zen-failure .result-glyph {
  color: var(--clay);
}

.career-reward-card.is-hidden {
  display: none;
}

@media (max-width: 420px) {
  .career-map-copy {
    width: 148px;
    padding: 9px 10px;
  }

  .career-map-copy strong {
    font-size: 15px;
  }

  .career-map-copy > span {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-map-node,
  .career-player-marker {
    transition: none;
  }

  .career-player-marker.is-moving i,
  .career-map-stop.is-current .career-map-node {
    animation: none;
  }
}
