@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&display=swap");
:root {
  --ink: #193f3b;
  --muted: #68746b;
  --cream: #faf8ee;
  --paper: #fffef8;
  --line: #e2e5d7;
  --accent: #eb7454;
  --accent-dark: #cc5335;
  --green: #26725c;
  --yellow: #f6ce64;
  --shadow: 0 10px 25px #203c3010;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.43;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #418eaa;
  outline-offset: 4px;
}
button {
  transition:
    transform 0.15s,
    background 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.counter-title {
  font-family: "Bricolage Grotesque", sans-serif;
}
h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1.8px;
}
h2 {
  font-size: 22px;
}
p {
  line-height: 1.6;
}
a {
  color: inherit;
}
.topbar {
  height: 96px;
  max-width: 1360px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.05;
}
.brand-sub {
  display: block;
  font-size: 20px;
  letter-spacing: 1.4px;
  margin-top: 4px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--accent);
  border-bottom: 6px solid var(--ink);
  border-radius: 5px;
  transform: rotate(-5deg);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.tag {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
}
.quiet {
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.home {
  max-width: 1360px;
  padding: 65px 48px 0;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 48px;
}
.hero-copy {
  padding: 15px 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 18px;
}
.tiny-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
.hero-copy h1 {
  font-size: clamp(48px, 4.5vw, 66px);
  letter-spacing: -2.8px;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero-copy h1 span {
  color: var(--accent-dark);
}
.hero-description {
  font-size: 17px;
  max-width: 410px;
  color: var(--muted);
  margin-bottom: 28px;
}
.mode-options {
  display: flex;
  gap: 12px;
  margin: 8px 0 18px;
}
.mode {
  flex: 1;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: transparent;
  padding: 15px 16px;
  color: var(--ink);
  position: relative;
}
.mode.selected {
  border-color: var(--ink);
  background: #eaf0e5;
  box-shadow: inset 0 0 0 0.5px var(--ink);
}
.mode.selected:after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--ink);
  color: white;
  width: 18px;
  height: 18px;
  font-size: 11px;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
}
.mode > span {
  display: block;
  font-size: 23px;
  margin-bottom: 10px;
}
.mode b {
  display: block;
  font-size: 13px;
}
.mode small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.primary,
.secondary {
  min-height: 48px;
  border-radius: 11px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
}
.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 0 #0c2825;
}
.primary:hover:not(:disabled) {
  background: #28534c;
}
.primary span {
  margin-left: 14px;
}
.secondary {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover:not(:disabled) {
  background: #eef1e6;
}
.start-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.home-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.text-button,
.resume-link {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
}
.resume-link {
  display: block;
  margin-top: 18px;
  font-size: 14px;
}
.hero-art {
  padding-top: 16px;
}
.art-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.art-caption span {
  font-size: 23px;
  color: #c99a22;
}
.steps {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 0;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
.steps > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f0eddc;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex-shrink: 0;
}
.steps b {
  font-size: 14px;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
footer {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.scene {
  height: 340px;
  position: relative;
  overflow: hidden;
  background: #d8eee9;
  border-radius: 20px;
  isolation: isolate;
}
.hero-scene {
  height: 470px;
  border-radius: 120px 120px 24px 24px;
  background: #e4eddb;
}
.sun {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: #f6ce64;
  position: absolute;
  top: 30px;
  right: 60px;
  box-shadow: 0 0 0 13px #f6ce6420;
}
.cloud {
  position: absolute;
  width: 88px;
  height: 23px;
  background: #fffef9;
  border-radius: 30px;
  opacity: 0.85;
  top: 55px;
  left: 35px;
}
.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  bottom: 4px;
  background: inherit;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  left: 12px;
}
.cloud:after {
  width: 32px;
  height: 32px;
  left: 44px;
}
.cloud-two {
  left: auto;
  right: -10px;
  top: 103px;
  transform: scale(0.7);
}
.ground {
  position: absolute;
  bottom: 0;
  width: 110%;
  height: 90px;
  background: #b9cc91;
  border-radius: 50% 50% 0 0;
  left: -5%;
  z-index: -1;
}
.hero-scene .ground {
  height: 145px;
}
.tree {
  position: absolute;
  width: 85px;
  height: 120px;
  border-radius: 50%;
  background: #a9c696;
  top: 110px;
  left: -27px;
  z-index: -1;
}
.tree:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 120px;
  background: #789276;
  top: 75px;
  left: 41px;
}
.tree-right {
  left: auto;
  right: -30px;
  transform: scale(1.2);
  top: 160px;
  background: #91b58b;
}
.pennants {
  position: absolute;
  left: 30px;
  right: 10px;
  top: 35px;
  transform: rotate(8deg);
  font-size: 28px;
  letter-spacing: 10px;
  color: #d88869;
  opacity: 0.6;
  white-space: nowrap;
}
.stall {
  position: absolute;
  width: 72%;
  max-width: 390px;
  left: 8%;
  bottom: 34px;
  height: 235px;
  z-index: 1;
}
.hero-scene .stall {
  height: 270px;
  bottom: 74px;
  left: 9%;
  width: 80%;
}
.stall-top {
  height: 32px;
  position: absolute;
  top: 0;
  left: -2%;
  right: -2%;
  background: var(--ink);
  border-radius: 7px 7px 0 0;
  display: grid;
  place-items: center;
  color: #fff8de;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.awning {
  position: absolute;
  top: 30px;
  height: 51px;
  left: -5%;
  right: -5%;
  background: repeating-linear-gradient(
    90deg,
    #e97b59 0,
    #e97b59 12.5%,
    #fff2d7 12.5%,
    #fff2d7 25%
  );
  border-radius: 2px 2px 14px 14px;
  border-bottom: 6px solid #00000010;
  z-index: 3;
  box-shadow: 0 8px 7px #39381a12;
}
.color-teal .awning {
  background: repeating-linear-gradient(
    90deg,
    #428e89 0,
    #428e89 12.5%,
    #fff2d7 12.5%,
    #fff2d7 25%
  );
}
.color-purple .awning {
  background: repeating-linear-gradient(
    90deg,
    #9576b3 0,
    #9576b3 12.5%,
    #fff2d7 12.5%,
    #fff2d7 25%
  );
}
.stall-post {
  position: absolute;
  top: 65px;
  bottom: 0;
  width: 9px;
  background: #b78c60;
}
.stall-post.left {
  left: 0;
}
.stall-post.right {
  right: 0;
}
.shelf {
  position: absolute;
  bottom: 78px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #ead5b3;
  border-bottom: 7px solid #b88b5d;
  padding: 12px 3px 4px;
  border-radius: 4px;
}
.hero-scene .shelf {
  bottom: 90px;
}
.bin {
  width: 16.66%;
  text-align: center;
  position: relative;
}
.bin > span:first-child {
  font-size: 32px;
  display: block;
  filter: drop-shadow(0 4px 1px #00000010);
}
.bin-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  background: #fff8e9;
  border: 1px solid #dfcca9;
  border-radius: 3px;
  margin: 4px 1px -1px;
  padding: 3px 1px;
  white-space: nowrap;
}
.bin.empty > span:first-child {
  opacity: 0.25;
}
.bin.empty .bin-label {
  font-size: 6px;
  color: #965335;
}
.counter {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 74px;
  background: #eab665;
  border: 6px solid #d3a05e;
  box-shadow: 0 5px 0 #9b7650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.hero-scene .counter {
  height: 86px;
}
.counter-title {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 800;
  color: #544636;
  transform: rotate(-3deg);
}
.counter-flower {
  font-size: 42px;
  color: #fff2d6;
}
.stall-foot {
  position: absolute;
  bottom: -10px;
  left: -2%;
  right: -2%;
  height: 9px;
  border-radius: 4px;
  background: #a37850;
}
.hero-customer {
  position: absolute;
  width: 110px;
  right: 4%;
  bottom: 21px;
  z-index: 3;
  transform: rotate(5deg);
}
.customer-avatar {
  width: 100%;
  height: auto;
  display: block;
}
.hero-sticker {
  position: absolute;
  bottom: 20px;
  left: 22px;
  width: 150px;
  transform: rotate(-7deg);
  background: #fff9e7;
  padding: 13px;
  border: 1px solid #dedbbf;
  box-shadow: 0 4px 8px #00000009;
  z-index: 4;
}
.hero-sticker b {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 31px;
  letter-spacing: -1px;
}
.hero-sticker span {
  font-size: 9px;
}
.visiting-customer {
  position: absolute;
  right: 4%;
  bottom: 6px;
  width: 103px;
  z-index: 4;
  animation: arrive 0.6s ease-out;
}
.speech-bubble {
  position: absolute;
  right: 14px;
  bottom: 150px;
  z-index: 5;
  max-width: 135px;
  background: white;
  border-radius: 14px 14px 0 14px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.theme-beach {
  background: #d8edf2;
}
.theme-beach .ground {
  background: #efd8a4;
}
.ocean {
  position: absolute;
  bottom: 80px;
  background: #81bfc9;
  height: 60px;
  width: 100%;
  z-index: -2;
}
.scene-prop {
  position: absolute;
  font-size: 90px;
  left: -15px;
  top: 110px;
}
.theme-space {
  background: #333954;
}
.theme-space .ground {
  background: #8588a8;
}
.theme-space .sun {
  background: #b9b9d9;
  box-shadow: none;
}
.theme-space .cloud {
  opacity: 0.15;
}
.planet {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #de9c84;
  position: absolute;
  top: 50px;
  left: 40px;
}
.planet:after {
  content: "";
  position: absolute;
  inset: 18px -18px;
  border: 5px solid #e7b39c;
  transform: rotate(-20deg);
  border-radius: 50%;
}
.rocket {
  font-size: 55px;
  top: 155px;
}
.storm {
  filter: saturate(0.65);
  background: #9eabb3;
}
.storm .cloud {
  background: #697882;
  opacity: 1;
  transform: scale(1.8);
}
.storm .sun {
  opacity: 0.2;
}
.storm-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #233f4266;
  color: white;
  font-weight: 800;
  font-size: 23px;
  z-index: 10;
}
.rain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    110deg,
    transparent 0,
    transparent 30px,
    #fff5 31px,
    transparent 32px
  );
  z-index: 5;
  pointer-events: none;
  animation: rain 0.6s linear infinite;
}
.workspace {
  max-width: 1280px;
  margin: auto;
  padding: 38px 48px 50px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.section-top p {
  color: var(--muted);
  margin-top: 10px;
}
.number-label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  min-width: 160px;
}
.number-label span {
  font-weight: 400;
  color: var(--muted);
}
input,
select {
  color: var(--ink);
  background: white;
  border: 1px solid #d5ddcf;
  border-radius: 8px;
  padding: 9px;
  min-width: 0;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.number-label input {
  display: block;
  margin-top: 8px;
  width: 100%;
}
.forecast {
  margin: 26px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #e4d9b5;
  background: #fff5da;
  border-radius: 13px;
}
.forecast > span {
  font-size: 30px;
}
.forecast b {
  font-size: 14px;
}
.forecast p {
  font-size: 12px;
  color: #777052;
}
.forecast small {
  margin-left: auto;
  font-size: 11px;
  color: #777052;
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  align-items: start;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.product-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--product-color);
  padding: 16px;
}
.product-top h2 {
  font-size: 20px;
}
.product-top > div > span {
  font-size: 11px;
  color: #536257;
}
.product-emoji {
  font-size: 35px;
}
.product-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
}
.product-controls label {
  font-size: 11px;
  font-weight: 700;
  display: block;
}
.stepper {
  display: flex;
  align-items: center;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.stepper button {
  width: 32px;
  height: 38px;
  color: var(--ink);
  background: #f0f1e8;
  font-size: 20px;
}
.stepper input {
  width: 43px;
  border: 0;
  text-align: center;
  padding: 8px 2px;
}
.price-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-top: 7px;
}
.price-field > span {
  padding-left: 12px;
  font-size: 14px;
}
.price-field input {
  border: 0;
  width: 52px;
  font-weight: 700;
  text-align: center;
  padding: 10px 6px;
}
.product-subtotal {
  margin: 0 16px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.product-subtotal b {
  color: var(--ink);
}
.budget-card {
  background: #edf1e5;
  border-radius: 16px;
  padding: 25px 20px;
  position: sticky;
  top: 20px;
}
.budget-card h2 {
  font-size: 44px;
  letter-spacing: -2px;
}
.budget-card > span {
  font-size: 12px;
  color: var(--muted);
}
.budget-bar {
  height: 10px;
  border-radius: 9px;
  background: #d7dfca;
  margin: 23px 0 8px;
  position: relative;
}
.budget-bar > span {
  display: block;
  background: var(--green);
  height: 100%;
  border-radius: 9px;
}
.budget-bar i {
  position: absolute;
  left: 75%;
  top: -3px;
  height: 16px;
  border-left: 2px solid var(--ink);
}
.budget-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 25px;
}
.budget-info {
  display: flex;
  gap: 9px;
  margin: 15px 0;
}
.budget-info > span {
  font-size: 18px;
}
.budget-info p {
  font-size: 11px;
  color: #5e6b5a;
  line-height: 1.6;
}
.budget-card .primary {
  width: 100%;
}
.form-message {
  min-height: 30px;
  font-size: 12px;
  color: #9c563b;
  margin: 12px 0;
}
.small-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}
.ready-page {
  max-width: 700px;
  margin: 70px auto;
  text-align: center;
  padding: 0 24px;
}
.ready-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.ready-page > p {
  max-width: 480px;
  color: var(--muted);
  margin: 20px auto;
}
.ready-facts {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin: 40px 0;
}
.ready-facts span {
  font-size: 12px;
  color: var(--muted);
}
.ready-facts b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 33px;
  display: block;
  color: var(--ink);
  margin-bottom: 7px;
}
.ready-page > .primary {
  min-width: 260px;
}
.play-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.play-top h1 {
  font-size: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.open-badge {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  background: #e0ecd5;
  color: #46783b;
  padding: 7px 10px;
  border-radius: 7px;
  transform: rotate(-5deg);
}
.clock {
  text-align: right;
}
.clock span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.clock b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 34px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 0;
  margin-bottom: 22px;
}
.scoreboard > div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.scoreboard > div:last-child {
  border: 0;
}
.scoreboard span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.scoreboard strong {
  font-size: 25px;
  font-family: "Bricolage Grotesque", sans-serif;
}
.scoreboard small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.positive {
  color: #28724e;
}
.negative {
  color: #b2573a;
}
.play-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}
.customer-progress {
  padding: 18px 4px;
}
.customer-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
}
.customer-progress span {
  color: var(--muted);
}
.progress-track {
  height: 6px;
  background: #e1e6d9;
  border-radius: 5px;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 5px;
}
.stock-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.stock-strip > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 3px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.stock-strip > div > span:first-child {
  font-size: 25px;
}
.stock-strip b {
  font-size: 19px;
}
.stock-strip small {
  font-size: 9px;
  color: var(--muted);
}
.stock-price {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
  font-weight: 700;
}
.stock-strip .sold-out {
  opacity: 0.45;
}
.receipt-panel {
  padding: 23px 21px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.receipt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.receipt-heading h2 {
  font-size: 21px;
}
.receipt-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.receipt-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 18px;
}
.receipt-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0;
}
.receipt-icon {
  font-size: 23px;
}
.receipt-item > div {
  flex: 1;
}
.receipt-item b {
  font-size: 12px;
}
.receipt-item small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.receipt-item small.negative {
  color: #b2573a;
}
.receipt-item small.positive {
  color: #28724e;
}
.receipt-item > strong {
  font-size: 13px;
}
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed var(--line);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 12px;
}
.receipt-total b {
  font-size: 24px;
}
.customer-remark {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}
.manager-box {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.manager-box .secondary {
  width: 100%;
  font-size: 12px;
  padding: 11px 10px;
  min-height: 43px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.manager-box .secondary span {
  font-size: 10px;
  color: var(--muted);
}
.manager-box p {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
}
.sales-history {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
.sales-history > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.sales-history[open] {
  max-height: 190px;
  overflow: auto;
}
.waiting {
  text-align: center;
  padding: 25px 5px;
}
.waiting > span {
  font-size: 40px;
}
.waiting h3 {
  font-size: 18px;
  margin: 15px 0 8px;
}
.waiting p {
  font-size: 12px;
  color: var(--muted);
}
.play-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #193f3b85;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 20px;
  overflow: auto;
}
.modal {
  background: var(--paper);
  width: min(100%, 470px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 90px #0d29284d;
}
.modal-icon {
  font-size: 37px;
  margin-bottom: 15px;
}
.modal h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 13px;
}
.modal > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.modal > .primary,
.modal > .secondary,
.modal form > .primary {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.modal .small-note {
  font-size: 11px;
  margin: 15px 0 0;
}
.rules-list {
  padding-left: 19px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.rules-list li {
  margin: 12px 0;
  padding-left: 4px;
}
.rules-list b {
  color: var(--ink);
}
.callout {
  background: #f4edd3;
  border-radius: 10px;
  padding: 14px;
}
.settings-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 15px 0;
}
.settings-label select {
  width: 100%;
  margin-top: 6px;
}
.checkbox-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 23px 0 10px;
}
.checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}
.math-label {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin: 20px 0 12px;
}
.math-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.math-input span {
  font-size: 23px;
  padding-left: 15px;
}
.math-input input {
  border: 0;
  width: 100%;
  font-size: 27px;
}
.math-feedback {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding: 14px 0;
  min-height: 55px;
}
.cancel-challenge {
  display: block;
  margin: 20px auto 0;
}
.adjust-prices > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.adjust-prices small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.results-page {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 30px;
  text-align: center;
}
.result-decoration {
  font-size: 52px;
  margin-bottom: 12px;
}
.results-page > p {
  color: var(--muted);
  margin: 15px 0 25px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  text-align: left;
}
.results-grid.single {
  max-width: 440px;
  margin: auto;
  grid-template-columns: 1fr;
}
.result-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.result-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.result-card h2 {
  font-size: 20px;
}
.achievement {
  font-size: 9px;
  font-weight: 800;
  background: #f5db80;
  padding: 7px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.profit-number {
  font-size: 47px;
  font-weight: 800;
  letter-spacing: -2px;
  font-family: "Bricolage Grotesque", sans-serif;
  margin: 23px 0;
}
.profit-number > span {
  display: block;
  letter-spacing: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
dl {
  margin: 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
}
dd {
  margin: 0;
  font-weight: 700;
}
dt {
  color: var(--muted);
}
.cash-total {
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 14px;
}
.cash-total dt,
.cash-total dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.result-stock {
  display: flex;
  gap: 20px;
  background: #f0f2e7;
  padding: 13px;
  border-radius: 9px;
  margin: 20px 0;
  font-size: 11px;
}
.breakdown {
  font-size: 11px;
  color: var(--muted);
}
.breakdown table {
  border-collapse: collapse;
  font-size: 10px;
  width: 100%;
  margin-top: 15px;
}
.breakdown td,
.breakdown th {
  padding: 8px 3px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.breakdown td:first-child,
.breakdown th:first-child {
  text-align: left;
}
.breakdown p {
  font-size: 9px;
  margin-top: 8px;
}
.result-tip {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.record-note {
  font-size: 12px;
}
.results-page > .small-note {
  font-size: 11px;
}
.theme-space .speech-bubble {
  color: var(--ink);
}
@keyframes arrive {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes rain {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -30px 60px;
  }
}
@media (min-width: 1450px) {
  .home {
    padding-top: 85px;
    gap: 50px 70px;
  }
  .hero-scene {
    height: 490px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 28px;
  }
  .home {
    padding: 40px 28px 0;
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
  .hero-scene {
    height: 450px;
  }
  .hero-scene .stall {
    left: 8%;
    width: 84%;
  }
  .mode {
    padding: 12px;
  }
  .mode b {
    font-size: 11px;
  }
  .mode small {
    font-size: 10px;
  }
  .workspace {
    padding: 30px 28px;
  }
  .shop-layout {
    grid-template-columns: 1fr 235px;
    gap: 18px;
  }
  .product-controls {
    gap: 8px;
    padding: 15px 12px;
  }
  .stepper button {
    width: 26px;
  }
  .stepper input {
    width: 32px;
  }
  .price-field input {
    width: 41px;
  }
  .play-layout {
    grid-template-columns: 1fr 285px;
    gap: 18px;
  }
  .counter-title {
    font-size: 23px;
  }
  .stall {
    width: 76%;
    left: 5%;
  }
  .stock-strip small {
    font-size: 8px;
  }
  .top-actions {
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 77px;
    padding: 0 20px;
  }
  .desktop-only {
    display: none;
  }
  .home {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 0;
    gap: 25px;
  }
  .hero-copy h1 {
    font-size: 53px;
  }
  .hero-description {
    font-size: 16px;
  }
  .mode b {
    font-size: 13px;
  }
  .mode small {
    font-size: 11px;
  }
  .hero-art {
    padding: 0;
  }
  .hero-scene {
    height: 370px;
    border-radius: 80px 80px 20px 20px;
  }
  .hero-scene .stall {
    max-width: 330px;
    left: calc(50% - 165px);
    height: 240px;
    bottom: 60px;
    width: 82%;
  }
  .hero-customer {
    right: 4%;
    width: 95px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 0;
  }
  .steps b {
    font-size: 14px;
  }
  .steps p {
    font-size: 12px;
  }
  footer {
    font-size: 10px;
    gap: 12px;
    flex-direction: column;
  }
  .workspace {
    padding: 26px 20px;
  }
  .section-top {
    align-items: start;
  }
  .section-top h1 {
    font-size: 33px;
  }
  .section-top p {
    font-size: 12px;
  }
  .number-label {
    min-width: 95px;
    max-width: 115px;
    font-size: 10px;
  }
  .number-label span {
    display: block;
  }
  .forecast {
    padding: 12px;
    gap: 10px;
  }
  .forecast small {
    display: none;
  }
  .shop-layout {
    display: flex;
    flex-direction: column;
  }
  .products {
    width: 100%;
    gap: 12px;
  }
  .product-top {
    padding: 12px;
    gap: 8px;
  }
  .product-top h2 {
    font-size: 18px;
  }
  .product-emoji {
    font-size: 28px;
  }
  .product-controls {
    flex-direction: column;
    padding: 13px;
  }
  .product-controls label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    font-size: 10px;
  }
  .stepper,
  .price-field {
    margin: 0;
  }
  .stepper button {
    width: 25px;
    height: 34px;
  }
  .stepper input {
    width: 30px;
    padding: 8px 0;
  }
  .price-field input {
    width: 42px;
    padding: 8px 4px;
  }
  .price-field > span {
    padding-left: 8px;
  }
  .budget-card {
    position: static;
    width: 100%;
  }
  .budget-info {
    margin: 10px 0;
  }
  .budget-info p {
    font-size: 12px;
  }
  .budget-card h2 {
    font-size: 37px;
  }
  .play-top h1 {
    font-size: 29px;
    gap: 10px;
  }
  .clock b {
    font-size: 28px;
  }
  .clock span {
    font-size: 8px;
  }
  .play-layout {
    grid-template-columns: 1fr;
  }
  .scoreboard {
    padding: 13px 0;
  }
  .scoreboard > div {
    padding: 0 11px;
  }
  .scoreboard span {
    font-size: 9px;
  }
  .scoreboard strong {
    font-size: 22px;
  }
  .scoreboard small {
    font-size: 10px;
  }
  .scene {
    height: 320px;
  }
  .hero-scene {
    height: 370px;
  }
  .stock-strip small {
    font-size: 9px;
  }
  .receipt-panel {
    padding: 20px;
  }
  .receipt-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .receipt-item:last-child {
    grid-column: 1/-1;
    max-width: 48%;
  }
  .receipt-item {
    margin: 9px 0;
  }
  .receipt-item b {
    font-size: 11px;
  }
  .receipt-item small {
    font-size: 9px;
  }
  .play-footnote {
    font-size: 10px;
  }
  .ready-page {
    margin: 45px auto;
  }
  .ready-page h1 {
    font-size: 37px;
  }
  .ready-facts {
    gap: 30px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .results-page {
    padding: 0 20px;
  }
  .results-page h1 {
    font-size: 36px;
  }
  .result-actions {
    flex-direction: column;
  }
  .modal {
    padding: 25px;
  }
  .modal h2 {
    font-size: 26px;
  }
  .modal > p {
    font-size: 13px;
  }
  .hero-sticker {
    left: 15px;
    bottom: 13px;
  }
  .quiet {
    padding: 10px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 420px) {
  .product-controls label {
    display: block;
  }
  .product-controls .stepper {
    margin-top: 7px;
    width: fit-content;
  }
  .product-controls .price-field {
    margin-top: 7px;
    width: 78px;
  }
}
