:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #2d504d;
  --muted: #6b817d;
  --paper: #fffdf7;
  --line: #ddd5b9;
  --green: #58a879;
  --green-dark: #347a59;
  --gold: #f0b944;
  --coral: #e97668;
  --blue: #62acd6;
  --purple: #8b73bd;
  --shadow: 0 20px 48px rgba(52, 79, 68, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f2f7e9; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(240, 185, 68, .2) 0 125px, transparent 127px),
    radial-gradient(circle at 92% 28%, rgba(98, 172, 214, .15) 0 170px, transparent 172px),
    linear-gradient(145deg, #eef7e9, #fffaf1 58%, #f2eef9);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .13;
  background-image: radial-gradient(#6f9186 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
}
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(240, 185, 68, .78); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 50px;
}

.topbar,
.brand,
.top-actions,
.section-heading,
.game-heading,
.panel-heading,
.feedback,
.result-actions {
  display: flex;
  align-items: center;
}

.topbar {
  min-height: 66px;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  min-width: 0;
  gap: 12px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #bf7650, #8b4936);
  border: 4px solid #f4d5b9;
  border-radius: 19px;
  box-shadow: 0 7px 16px rgba(67, 87, 78, .14);
  transform: rotate(-4deg);
}
.brand-mark b { font-family: Georgia, serif; font-size: 28px; }
.brand-mark i {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: #fff8e8;
  border: 2px solid #ddc9a5;
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
}
.brand strong,
.brand small { display: block; }
.brand strong { overflow: hidden; font-size: 23px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.top-actions { flex: 0 0 auto; gap: 10px; }
.top-spark { color: var(--gold); font-size: 25px; }
.back-button,
.calm-badge {
  min-height: 49px;
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--line);
  border-radius: 17px;
}
.back-button { width: 49px; padding: 0; font-size: 23px; font-weight: 900; }
.calm-badge { display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; color: var(--muted); font-size: 12px; font-weight: 900; }
.calm-badge span { color: var(--coral); font-size: 20px; }

.eyebrow {
  margin: 0 0 8px;
  color: #397b62;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.hint-button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  font-weight: 900;
  border-radius: 17px;
}
.primary-button { color: white; background: var(--green-dark); border: 0; box-shadow: 0 8px 0 #286248; }
.primary-button:hover:not(:disabled) { background: #2f704f; transform: translateY(-1px); }
.primary-button:active:not(:disabled) { box-shadow: 0 4px 0 #286248; transform: translateY(4px); }
.primary-button:disabled { opacity: .45; box-shadow: none; }
.primary-button.compact { min-height: 47px; padding-inline: 16px; box-shadow: none; }
.secondary-button { background: white; border: 3px solid var(--line); }
.hint-button { color: #5e563c; background: #fff1bd; border: 2px solid #e3c86a; }
.hint-button:disabled { opacity: .58; }

.hero {
  display: grid;
  min-height: 535px;
  align-items: center;
  grid-template-columns: 1.02fr .98fr;
  gap: 42px;
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.hero h1 {
  max-width: 640px;
  margin-bottom: 19px;
  font-size: clamp(50px, 6.2vw, 73px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .96;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.52;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hero-facts span { color: var(--muted); font-size: 13px; font-weight: 900; }
.hero-facts strong { margin-right: 4px; color: var(--ink); font-size: 24px; }

.cafe-preview {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7e3 0 66%, #d6b589 66%);
  border: 8px solid white;
  border-radius: 41px 34px 46px 33px;
  box-shadow: 0 20px 42px rgba(55, 76, 68, .18);
  transform: rotate(1.5deg);
}
.preview-awning,
.cafe-awning,
.result-awning {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: grid;
  height: 58px;
  grid-template-columns: repeat(6, 1fr);
}
.preview-awning i,
.cafe-awning i,
.result-awning i { background: #dd765d; border-radius: 0 0 17px 17px; }
.preview-awning i:nth-child(even),
.cafe-awning i:nth-child(even),
.result-awning i:nth-child(even) { background: #fff7dc; }
.preview-sign {
  position: absolute;
  top: 77px;
  right: 23px;
  z-index: 3;
  padding: 8px 13px;
  color: white;
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: .12em;
  background: #4c8a68;
  border: 4px solid white;
  border-radius: 12px;
  transform: rotate(3deg);
}
.cafe-preview > img {
  position: absolute;
  bottom: 52px;
  left: 17px;
  z-index: 2;
  width: 205px;
  height: 245px;
  object-fit: contain;
}
.preview-bubble {
  position: absolute;
  top: 105px;
  right: 18px;
  z-index: 4;
  width: 225px;
  padding: 14px;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 22px 22px 5px 22px;
  box-shadow: 0 8px 0 rgba(92, 76, 119, .1);
}
.preview-bubble strong,
.preview-bubble span { display: block; }
.preview-bubble strong { color: #67567f; font-family: Georgia, serif; font-size: 17px; line-height: 1.25; }
.preview-bubble span { margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.preview-counter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background: #a86f4c;
  border-top: 7px solid #7c513b;
  font-size: 37px;
}
.preview-counter b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 19px;
}

.how-section { margin-top: 45px; }
.section-heading { justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 47px); font-weight: 900; letter-spacing: -.035em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.45; text-align: right; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode-card {
  display: grid;
  min-height: 210px;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 24px;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 10px 0 rgba(102, 91, 62, .1);
  transition: transform 150ms ease, border-color 150ms ease;
}
.mode-card:hover { border-color: var(--green); transform: translateY(-3px); }
.mode-icon { display: grid; width: 78px; height: 78px; place-items: center; background: #e7f4e8; border-radius: 25px 20px 28px 21px; font-size: 39px; }
.mode-orders .mode-icon { background: #fff0cf; }
.mode-copy small,
.mode-copy strong,
.mode-copy span,
.mode-status small { display: block; }
.mode-copy > small { margin-bottom: 4px; color: #397b62; font-family: Georgia, serif; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mode-copy strong { margin-bottom: 7px; font-size: 25px; }
.mode-copy span { color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.4; }
.mode-status {
  display: flex;
  grid-column: 1 / -1;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  background: #f3f2e9;
  border-radius: 15px;
}
.mode-status b { font-size: 19px; }
.mode-status small { color: var(--muted); font-weight: 900; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.steps-grid article {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 25px;
}
.steps-grid article > b {
  display: grid;
  flex: 0 0 51px;
  height: 51px;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 25px;
  background: var(--green);
  border: 5px solid #d8efe0;
  border-radius: 50%;
}
.steps-grid article:nth-child(2) > b { background: #dca33e; border-color: #fff0bd; }
.steps-grid article:nth-child(3) > b { background: var(--purple); border-color: #e9e0f7; }
.steps-grid strong,
.steps-grid small { display: block; }
.steps-grid strong { margin-bottom: 6px; font-size: 18px; }
.steps-grid small { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; }
.grownup-tip {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  padding: 18px 22px;
  background: #fff9e6;
  border: 2px solid #eadcb1;
  border-radius: 22px;
}
.grownup-tip > span { font-size: 28px; }
.grownup-tip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.grownup-tip strong { display: block; color: var(--ink); }

.game-heading { justify-content: space-between; gap: 24px; margin: 15px 0 14px; }
.game-heading h1 { margin-bottom: 7px; font-size: clamp(39px, 5vw, 58px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.game-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 15px; font-weight: 800; }
.round-badge {
  display: grid;
  flex: 0 0 auto;
  min-width: 95px;
  min-height: 76px;
  place-items: center;
  padding: 9px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 24px;
}
.round-badge strong { font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.round-badge span { color: var(--muted); font-size: 11px; font-weight: 900; }
.progress-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.progress-dots i { height: 8px; flex: 1; background: #ddd8ca; border-radius: 10px; }
.progress-dots i.current { background: var(--gold); }
.progress-dots i.done { background: var(--green); }

.word-game,
.order-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  gap: 18px;
  align-items: stretch;
}
.word-customer,
.menu-choice-panel,
.customer-stage,
.service-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}
.word-customer {
  min-height: 700px;
  background: linear-gradient(180deg, #e9f4e8 0 70%, #d2b083 70%);
  border-radius: 40px 31px 45px 33px;
}
.word-customer > img {
  position: absolute;
  bottom: 72px;
  left: 50%;
  z-index: 2;
  width: min(82%, 440px);
  height: 510px;
  object-fit: contain;
  transform: translateX(-50%);
}
.word-bubble {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4;
  width: min(315px, calc(100% - 48px));
  padding: 15px 18px;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 22px 22px 22px 5px;
  box-shadow: 0 8px 0 rgba(92, 76, 119, .1);
}
.word-bubble small,
.word-bubble strong,
.word-bubble span { display: block; }
.word-bubble small { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.word-bubble strong { margin: 3px 0; color: #67567f; font-family: Georgia, serif; font-size: 27px; }
.word-bubble span { color: var(--muted); font-size: 12px; font-weight: 900; }
.table-shadow { position: absolute; right: 12%; bottom: 67px; left: 12%; height: 25px; border-radius: 50%; background: rgba(55, 78, 65, .15); filter: blur(8px); }

.menu-choice-panel,
.service-panel {
  padding: 24px;
  background: rgba(255, 253, 247, .98);
  border-radius: 34px 27px 39px 29px;
}
.menu-choice-panel::before,
.service-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 27px, #fff0c0 27px 54px, var(--green) 54px 81px);
  content: "";
}
.panel-heading { justify-content: space-between; gap: 16px; margin: 7px 0 18px; }
.panel-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.panel-heading > span { font-size: 39px; }
.picture-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.picture-option {
  position: relative;
  display: grid;
  min-height: 202px;
  place-items: center;
  padding: 15px 10px;
  background: #fffaf1;
  border: 3px solid #e6ddcc;
  border-radius: 25px 20px 28px 21px;
  transition: transform 140ms ease, border-color 140ms ease;
}
.picture-option:hover:not(:disabled) { border-color: #c5b3df; transform: translateY(-2px); }
.picture-option.wrong { border-color: var(--coral); background: #fff0ed; animation: shake 360ms ease; }
.picture-option.hinted { border-color: var(--gold); background: #fff7d8; animation: hintPulse 1s ease-in-out infinite; }
.picture-option.correct { border-color: var(--green); background: #e9f6e8; }
.food-icon { display: grid; min-height: 92px; place-items: center; font-size: 70px; filter: drop-shadow(0 6px 4px rgba(68, 74, 61, .13)); }
.option-copy { text-align: center; }
.option-copy strong,
.option-copy small { display: block; }
.option-copy strong { font-size: 20px; }
.option-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 900; }
.picture-option > b {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: white;
  background: #bdb3a2;
  border-radius: 50%;
}
.picture-option.correct > b { background: var(--green); }

.feedback {
  min-height: 76px;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f3f1e9;
  border-radius: 19px;
}
.feedback > span {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 50%;
  font-weight: 900;
}
.feedback p { min-width: 0; flex: 1; margin: 0; }
.feedback strong,
.feedback small { display: block; }
.feedback strong { margin-bottom: 3px; font-size: 14px; }
.feedback small { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.feedback.try { background: #fff0ed; }
.feedback.try > span { background: var(--coral); }
.feedback.hint { background: #fff6d7; }
.feedback.hint > span { background: #dca33e; }
.feedback.good { background: #e9f6e8; }
.feedback.good > span { background: var(--green); }
.menu-choice-panel > .hint-button,
.service-panel > .hint-button { width: 100%; margin-top: 13px; }

.customer-stage {
  min-height: 730px;
  background: linear-gradient(180deg, #fff7e3 0 68%, #d6b589 68%);
  border-radius: 40px 31px 45px 33px;
}
.customer-stage > img {
  position: absolute;
  bottom: 92px;
  left: 50%;
  z-index: 2;
  width: min(80%, 410px);
  height: 430px;
  object-fit: contain;
  transform: translateX(-50%);
}
.dialogue-bubble {
  position: absolute;
  top: 78px;
  right: 22px;
  left: 22px;
  z-index: 4;
  padding: 16px 18px;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 22px 22px 6px 22px;
  box-shadow: 0 8px 0 rgba(92, 76, 119, .1);
}
.dialogue-bubble small,
.dialogue-bubble strong,
.dialogue-bubble span { display: block; }
.dialogue-bubble small { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dialogue-bubble strong { margin: 4px 0 7px; color: #67567f; font-family: Georgia, serif; font-size: 22px; line-height: 1.28; }
.dialogue-bubble span { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.serving-counter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #9a6749;
  border-top: 7px solid #74503b;
}
.tray {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 12px;
  background: #ece8dc;
  border: 4px solid #6e5b4b;
  border-radius: 50% / 22%;
}
.tray em { color: var(--muted); font-size: 12px; font-weight: 900; }
.tray span { display: grid; min-width: 70px; place-items: center; }
.tray span b { font-size: 35px; }
.tray span small { color: var(--muted); font-size: 10px; font-weight: 900; }
.bell { flex: 0 0 auto; font-size: 37px; }

.order-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.menu-item {
  position: relative;
  display: grid;
  min-height: 113px;
  grid-template-columns: 54px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 7px;
  padding: 9px;
  text-align: left;
  background: #fffaf1;
  border: 3px solid #e6ddcc;
  border-radius: 20px 16px 22px 17px;
}
.menu-item > span { grid-column: 1; grid-row: 1 / 3; font-size: 38px; text-align: center; }
.menu-item strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.menu-item small {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  align-self: start;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.menu-item > b {
  display: grid;
  grid-column: 3;
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  place-items: center;
  color: white;
  background: #bdb3a2;
  border-radius: 50%;
}
.menu-item:hover { border-color: #c5b3df; }
.menu-item.selected { border-color: var(--purple); background: #f0eafa; }
.menu-item.selected > b { background: var(--green); }
.menu-item.wrong { border-color: var(--coral); background: #fff0ed; animation: shake 360ms ease; }
.menu-item.hinted { border-color: var(--gold); background: #fff7d8; animation: hintPulse 1s ease-in-out infinite; }
.service-actions { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 13px; }
.service-actions .hint-button { padding-inline: 15px; }
.check-order { width: 100%; }

.reply-list { display: grid; gap: 11px; }
.reply-option {
  display: grid;
  min-height: 90px;
  grid-template-columns: 38px minmax(0, 1fr) 29px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  text-align: left;
  background: #fffaf1;
  border: 3px solid #e6ddcc;
  border-radius: 21px 17px 23px 18px;
}
.reply-option > span,
.reply-option > b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
}
.reply-option > span { color: white; background: var(--purple); font-family: Georgia, serif; font-weight: 900; }
.reply-option > b { color: white; background: #bdb3a2; }
.reply-option strong { font-size: 15px; line-height: 1.35; }
.reply-option:hover:not(:disabled) { border-color: #c5b3df; }
.reply-option.wrong { border-color: var(--coral); background: #fff0ed; animation: shake 360ms ease; }
.reply-option.hinted { border-color: var(--gold); background: #fff7d8; animation: hintPulse 1s ease-in-out infinite; }
.reply-option.correct { border-color: var(--green); background: #e9f6e8; }
.reply-option.correct > b { background: var(--green); }

.result-card {
  display: grid;
  min-height: 735px;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.result-art {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7e3 0 72%, #d6b589 72%);
  border: 7px solid white;
  border-radius: 39px;
}
.result-art > img {
  position: absolute;
  right: 7%;
  bottom: 58px;
  left: 7%;
  z-index: 2;
  width: 86%;
  height: 440px;
  object-fit: contain;
}
.result-tray {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  height: 92px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background: #9a6749;
  border-top: 7px solid #74503b;
  font-size: 36px;
}
.result-tray b { display: grid; width: 37px; height: 37px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 18px; }
.medal {
  position: absolute;
  top: 75px;
  right: 17px;
  z-index: 5;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  background: white;
  border: 4px solid #c9badd;
  border-radius: 24px;
  font-size: 34px;
  transform: rotate(3deg);
}
.result-copy h1 { margin-bottom: 12px; font-size: clamp(46px, 6vw, 68px); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; font-weight: 800; }
.learned-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 17px 0; }
.learned-strip span {
  display: grid;
  min-width: 0;
  min-height: 83px;
  place-items: center;
  padding: 7px 4px;
  text-align: center;
  background: #f3f2e9;
  border: 2px solid #e2dcc9;
  border-radius: 14px;
}
.learned-strip b { font-size: 25px; }
.learned-strip strong,
.learned-strip small { display: block; overflow-wrap: anywhere; }
.learned-strip strong { font-size: 11px; }
.learned-strip small { color: var(--muted); font-size: 9px; font-weight: 800; }
.result-stars { margin: 15px 0; color: #e3a82f; font-size: 42px; letter-spacing: .08em; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-stats span { display: grid; min-height: 70px; place-items: center; padding: 8px; background: #f3f2e9; border-radius: 16px; }
.result-stats strong { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.result-stats small { color: var(--muted); font-size: 10px; font-weight: 900; }
.result-actions { flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.loading-card { display: grid; min-height: 300px; place-items: center; padding: 40px; background: var(--paper); border: 3px solid var(--line); border-radius: 35px; }
.loading-card span { font-size: 50px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 68, 0); }
  50% { box-shadow: 0 0 0 7px rgba(240, 185, 68, .24); }
}

@media (max-width: 980px) {
  .word-game,
  .order-workspace { grid-template-columns: 1fr; }
  .word-customer { min-height: 630px; }
  .menu-choice-panel,
  .service-panel { width: min(100%, 760px); margin: 0 auto; }
  .customer-stage { min-height: 670px; }
  .result-card { grid-template-columns: 1fr; }
  .result-art { min-height: 520px; }
  .result-art > img { height: 390px; }
}

@media (max-width: 760px) {
  .hero { min-height: 820px; grid-template-columns: 1fr; align-items: start; padding: 32px 25px; }
  .cafe-preview { min-height: 410px; }
  .mode-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 9px; text-align: left; }
  .game-heading { align-items: flex-end; }
}

@media (max-width: 520px) {
  .app { width: min(100% - 18px, 1120px); padding-top: 11px; }
  .topbar { align-items: flex-start; margin-bottom: 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 50px; height: 50px; }
  .brand strong { max-width: 178px; font-size: 18px; white-space: normal; line-height: 1.05; }
  .brand small,
  .calm-badge { display: none; }
  .back-button { width: 50px; min-height: 50px; }
  .hero { min-height: 750px; padding: 27px 20px; border-radius: 34px; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .cafe-preview { min-height: 375px; }
  .cafe-preview > img { width: 165px; height: 205px; }
  .preview-bubble { top: 90px; right: 12px; width: 190px; }
  .preview-bubble strong { font-size: 15px; }
  .mode-card { min-height: 194px; grid-template-columns: 69px minmax(0, 1fr); gap: 12px; padding: 17px; }
  .mode-icon { width: 66px; height: 66px; font-size: 32px; }
  .mode-copy strong { font-size: 22px; }
  .mode-status { display: grid; gap: 2px; }
  .mode-status small { font-size: 11px; }
  .steps-grid article { min-height: 103px; }
  .game-heading { gap: 9px; }
  .game-heading h1 { font-size: 34px; overflow-wrap: anywhere; }
  .game-heading > div > p:last-child { font-size: 13px; }
  .round-badge { min-width: 78px; min-height: 67px; padding: 7px; }
  .round-badge strong { font-size: 21px; }
  .progress-dots { gap: 3px; }
  .word-customer { min-height: 565px; }
  .word-customer > img { bottom: 62px; height: 410px; }
  .word-bubble { top: 14px; left: 14px; width: calc(100% - 28px); }
  .word-bubble strong { font-size: 23px; }
  .menu-choice-panel,
  .service-panel { padding: 19px 12px; }
  .panel-heading h2 { font-size: 27px; }
  .panel-heading > span { font-size: 32px; }
  .picture-options { gap: 8px; }
  .picture-option { min-height: 166px; padding: 10px 5px; }
  .food-icon { min-height: 78px; font-size: 57px; }
  .option-copy strong { font-size: 17px; }
  .customer-stage { min-height: 630px; }
  .dialogue-bubble { top: 71px; right: 12px; left: 12px; padding: 12px 13px; }
  .dialogue-bubble strong { font-size: 18px; }
  .customer-stage > img { bottom: 92px; height: 360px; }
  .serving-counter { padding-inline: 10px; }
  .tray { padding-inline: 6px; }
  .tray span { min-width: 58px; }
  .tray span b { font-size: 30px; }
  .order-menu { gap: 7px; }
  .menu-item { min-height: 105px; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 4px; padding: 7px; }
  .menu-item > span { font-size: 32px; }
  .menu-item strong { font-size: 13px; overflow-wrap: anywhere; }
  .menu-item > b { width: 24px; height: 24px; }
  .service-actions { grid-template-columns: 1fr; }
  .service-actions .hint-button { order: 2; }
  .reply-option { min-height: 88px; grid-template-columns: 34px minmax(0, 1fr) 27px; gap: 7px; padding: 9px; }
  .reply-option strong { font-size: 13px; }
  .reply-option > span,
  .reply-option > b { width: 29px; height: 29px; }
  .feedback { align-items: flex-start; flex-wrap: wrap; }
  .feedback .primary-button { width: 100%; }
  .result-card { padding: 18px 13px 27px; border-radius: 34px; }
  .result-art { min-height: 455px; }
  .result-art > img { height: 350px; }
  .result-copy h1 { font-size: 44px; }
  .learned-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
}

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