:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: #2d4b46;
  background: #f6f0df;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 88% 2%,rgba(255,251,229,.96) 0 12%,transparent 37%),radial-gradient(circle at 7% 42%,rgba(230,215,178,.34) 0 8%,transparent 29%),#f6f0df; }
button { font: inherit; }
button:focus-visible { outline: 4px solid #efb64c; outline-offset: 3px; }

.app { width: min(1120px,calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 22px 0 48px; }
.topbar { min-height: 66px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { padding: 0; display: inline-flex; align-items: center; gap: 12px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { width: 64px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 17px; color: #fff; background: #3f9475; box-shadow: 0 6px 0 #2e6d56; transform: rotate(-2deg); }
.brand-mark::before { content: ""; width: 54px; height: 13px; position: absolute; margin-top: -61px; border-radius: 9px 9px 2px 2px; background: repeating-linear-gradient(90deg,#df735d 0 11px,#fff3d8 11px 22px); }
.brand-mark b { font-size: 20px; }
.brand-mark i { font-size: 20px; font-style: normal; }
.brand strong,.brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 2px; color: #6e7b75; font-size: 12px; }
.top-actions { display: flex; gap: 10px; }
.sound-button,.quiet-button,.hint-button,.next-level-button { min-height: 44px; padding: 0 16px; border: 1px solid #ded3bb; border-radius: 14px; color: #53655f; background: rgba(255,255,255,.76); font-weight: 800; cursor: pointer; transition: transform .16s ease,background .16s ease,box-shadow .16s ease; }
.sound-button { display: flex; align-items: center; gap: 8px; }
.sound-button:hover,.quiet-button:hover,.hint-button:hover,.next-level-button:hover { background: #fff; transform: translateY(-1px); }
.sound-button:active,.quiet-button:active,.hint-button:active,.next-level-button:active { transform: translateY(1px); }
.eyebrow { margin: 0 0 8px; color: #79877f; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.primary-button { min-height: 54px; padding: 0 24px; border: 0; border-radius: 17px; color: #fff; background: #438f70; box-shadow: 0 6px 0 #2f7258; font-weight: 900; cursor: pointer; transition: transform .14s ease,box-shadow .14s ease; }
.primary-button span { margin-left: 8px; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #2f7258; }
.primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #2f7258; }

.hero { min-height: 470px; display: grid; grid-template-columns: 1.06fr .94fr; overflow: hidden; border: 1px solid #ded3bc; border-radius: 34px; background: #fffaf0; box-shadow: 0 22px 65px rgba(75,67,45,.12); }
.hero-copy { padding: 62px 28px 56px 58px; position: relative; z-index: 2; }
.hero h1 { max-width: 620px; margin: 0; color: #2f4d46; font-family: Georgia,serif; font-size: clamp(47px,5vw,64px); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 24px 0 30px; color: #65766f; font-size: 18px; line-height: 1.55; }
.hero-scene { min-width: 0; position: relative; overflow: hidden; background: linear-gradient(150deg,#f3dca6,#d9ac73); }
.hero-scene::after { content: ""; width: 100%; height: 105px; position: absolute; right: 0; bottom: 0; background: #8f6848; box-shadow: inset 0 14px 0 #79543b; }
.hero-awning { height: 74px; position: absolute; z-index: 5; inset: 0 0 auto; display: grid; grid-template-columns: repeat(5,1fr); filter: drop-shadow(0 8px 0 rgba(79,55,38,.15)); }
.hero-awning i { background: #df735d; }
.hero-awning i:nth-child(even) { background: #fff4d5; }
.hero-awning i::after { content: ""; height: 29px; position: absolute; top: 58px; width: 20%; border-radius: 0 0 22px 22px; background: inherit; }
.hero-menu { width: 176px; padding: 16px; position: absolute; z-index: 2; top: 112px; left: 27px; border: 7px solid #b88358; border-radius: 19px; color: #fff5d4; background: #355f51; box-shadow: 0 9px 0 rgba(98,66,43,.16); transform: rotate(-2deg); }
.hero-menu small { margin-bottom: 9px; display: block; color: #efc35e; font-weight: 900; text-align: center; text-transform: uppercase; }
.hero-menu span { padding: 6px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,.3); }
.hero-menu b { font-size: 12px; }
.hero-table { width: 238px; height: 180px; padding: 25px 20px; position: absolute; z-index: 4; right: 22px; bottom: 75px; display: grid; grid-template-columns: repeat(3,1fr); place-items: center; border: 7px solid #fff1d1; border-radius: 28px; background: #fff9e8; box-shadow: 0 10px 0 rgba(87,58,41,.16); transform: rotate(2deg); }
.hero-table > span { font-size: 48px; }
.hero-table > b { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: #3f9475; font-family: Georgia,serif; font-size: 30px; }
.hero-table > small { grid-column: 1 / 4; color: #786c58; font-weight: 900; }
.hero-cash { position: absolute; z-index: 6; left: 32px; bottom: 23px; display: flex; align-items: center; gap: 6px; }
.hero-cash i { width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid #e9b849; border-radius: 50%; color: #7c5b24; background: #ffd96c; font-style: normal; font-weight: 900; }
.hero-cash strong { padding: 10px 13px; border-radius: 13px; color: #fff; background: #3f9475; }

.how { padding: 58px 8px 38px; }
.how > .eyebrow { text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.how-grid article { padding: 18px; text-align: center; }
.how-grid article > span { width: 66px; height: 66px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 21px; background: #fffaf0; box-shadow: 0 7px 20px rgba(76,73,56,.09); font-size: 29px; }
.how-grid strong { display: block; font-size: 17px; }
.how-grid p { margin: 7px 0 0; color: #71807a; font-size: 14px; line-height: 1.45; }
.levels { padding: 42px; border: 1px solid #dfd6c2; border-radius: 32px; background: rgba(255,251,241,.75); }
.section-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.section-heading h2 { margin: 0; color: #2f4d46; font-family: Georgia,serif; font-size: 39px; }
.section-heading > p { max-width: 430px; margin: 0; color: #71807a; line-height: 1.45; }
.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.level-card { min-width: 0; min-height: 340px; padding: 17px; position: relative; display: flex; flex-direction: column; overflow: hidden; border: 2px solid #e3dbc8; border-radius: 25px; color: inherit; background: #fffdf7; text-align: left; cursor: pointer; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.level-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 15px 32px rgba(67,70,50,.12); }
.level-card:active { transform: translateY(-1px); }
.level-number { width: 38px; height: 38px; position: absolute; z-index: 3; top: 14px; left: 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb,var(--accent) 65%,#253b35); font-weight: 900; }
.level-preview { min-height: 150px; margin-bottom: 17px; padding: 18px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: color-mix(in srgb,var(--accent) 14%,#fff8e7); }
.preview-order,.preview-quantity { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.preview-order i,.preview-quantity i { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 15px; background: #fffaf0; box-shadow: 0 4px 0 rgba(65,78,58,.12); font-size: 27px; font-style: normal; }
.preview-order b,.preview-quantity em { color: #7d725d; font-style: normal; }
.preview-order strong,.preview-quantity strong { width: 100%; color: var(--accent); font-family: Georgia,serif; font-size: 24px; text-align: center; }
.preview-order.three i { width: 42px; height: 42px; font-size: 23px; }
.preview-quantity b { padding: 5px 8px; border-radius: 9px; color: #fff; background: var(--accent); }
.level-copy { min-height: 105px; }
.level-copy small,.level-copy strong,.level-copy em { display: block; }
.level-copy small { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.level-copy strong { margin-top: 6px; color: #354f49; font-family: Georgia,serif; font-size: 23px; }
.level-copy em { margin-top: 8px; color: #75827d; font-size: 13px; font-style: normal; line-height: 1.4; }
.level-status { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #7a8580; font-size: 12px; font-weight: 800; }
.level-status > b { color: var(--accent); font-size: 24px; }
.mini-stars { color: #efb64c; font-size: 17px; letter-spacing: 1px; }
.adult-note { margin: 22px 0 0; padding: 20px 26px; display: flex; align-items: center; gap: 15px; border: 1px solid #ddd5bd; border-radius: 22px; background: rgba(255,253,246,.74); }
.adult-note > span { font-size: 27px; }
.adult-note p { margin: 0; color: #6b7c75; font-size: 13px; line-height: 1.45; }
.adult-note strong { margin-right: 8px; color: #3d5b53; }

.game-shell { padding: 34px 40px 40px; border: 1px solid #ded3bc; border-radius: 30px; background: #fffaf0; box-shadow: 0 18px 55px rgba(75,67,45,.1); }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.game-head h1 { margin: 0; color: #2e4a43; font-family: Georgia,serif; font-size: clamp(28px,3.4vw,43px); line-height: 1.06; }
.round-count { min-width: 80px; display: flex; align-items: baseline; justify-content: flex-end; color: #728079; }
.round-count strong { color: var(--level-accent); font-size: 34px; }
.round-count span { font-weight: 800; }
.progress-track { margin: 24px 0 28px; display: grid; grid-template-columns: repeat(10,1fr); gap: 7px; }
.progress-track i { height: 7px; border-radius: 10px; background: #e6dfcd; }
.progress-track i.done { background: #69a386; }
.progress-track i.current { background: var(--level-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--level-accent) 20%,transparent); }

.cafe-stage { min-height: 700px; padding: 34px; position: relative; overflow: hidden; border: 6px solid #fff; border-radius: 27px; background: linear-gradient(155deg,#f2dba7,#d9ab75); box-shadow: inset 0 0 0 1px #dbb984,0 8px 20px rgba(80,66,49,.11); }
.cafe-stage::after { content: ""; height: 100px; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; background: #926a49; box-shadow: inset 0 13px 0 #7e583d; }
.cafe-wall i { position: absolute; z-index: 0; border-radius: 50%; background: rgba(255,255,255,.25); }
.cafe-wall i:nth-child(1) { width: 50px; height: 50px; top: 22px; left: 40px; }
.cafe-wall i:nth-child(2) { width: 24px; height: 24px; top: 85px; right: 70px; }
.cafe-wall i:nth-child(3) { width: 38px; height: 38px; bottom: 150px; left: 15px; }
.cafe-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 22px; align-items: start; }
.menu-board { padding: 20px; border: 8px solid #ad7954; border-radius: 24px; color: #fff8d8; background: #355f51; box-shadow: 0 10px 0 rgba(92,60,40,.18); }
.menu-heading { display: flex; align-items: end; justify-content: space-between; }
.menu-heading .eyebrow { margin: 0; color: #efc765; }
.menu-heading h2 { margin: 0; font-family: Georgia,serif; font-size: 27px; }
.menu-list { margin-top: 15px; display: grid; gap: 7px; }
.menu-card { min-width: 0; min-height: 52px; padding: 7px 9px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px dashed rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.06); }
.menu-card.ordered { border-color: #efc765; background: rgba(239,199,101,.13); }
.menu-card > span { font-size: 27px; }
.menu-card strong,.menu-card small { display: block; }
.menu-card strong { font-size: 13px; }
.menu-card small { margin-top: 2px; color: #bcd1c8; font-size: 8px; text-transform: uppercase; }
.menu-card.ordered small { color: #f4d98e; }
.menu-card > b { color: #ffd66f; font-size: 16px; white-space: nowrap; }
.menu-note { margin: 13px 0 0; color: #b9cec5; font-size: 9px; text-align: center; }
.order-counter { min-width: 0; padding: 62px 23px 24px; position: relative; overflow: hidden; border: 7px solid #fff0cf; border-radius: 27px; background: #fff9e9; box-shadow: 0 11px 0 rgba(91,61,41,.16); }
.counter-awning { height: 55px; position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: repeat(6,1fr); }
.counter-awning i { background: var(--level-accent); }
.counter-awning i:nth-child(even) { background: #fff0cf; }
.counter-awning i::after { content: ""; height: 20px; width: 16.67%; position: absolute; top: 42px; border-radius: 0 0 18px 18px; background: inherit; }
.order-ticket { padding: 18px; border: 3px solid #e3d5b8; border-radius: 18px; background: #fffdf7; box-shadow: 0 5px 0 rgba(95,76,53,.1); }
.ticket-head { padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px dashed #d9caaa; }
.ticket-head .eyebrow { margin: 0; color: var(--level-accent); }
.ticket-head > span { color: #8b806a; font-size: 11px; font-weight: 900; }
.order-list { margin-top: 11px; display: grid; gap: 8px; }
.order-line { min-height: 68px; padding: 8px 11px; display: grid; grid-template-columns: minmax(78px,auto) 1fr auto; align-items: center; gap: 10px; border-radius: 14px; background: #f7efdc; }
.order-icons { min-width: 0; display: flex; align-items: center; gap: 0; }
.order-icons span { width: 36px; height: 42px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 12px; background: #fffaf0; font-size: 24px; box-shadow: 0 3px 0 rgba(85,74,54,.1); }
.order-icons span + span { margin-left: -9px; }
.order-line strong,.order-line small { display: block; }
.order-line strong { color: #3c5a52; }
.order-line small { margin-top: 2px; color: #8a8578; font-size: 10px; }
.order-line > b { padding: 7px 10px; border-radius: 10px; color: #fff; background: var(--level-accent); white-space: nowrap; }
.covered-total,.calculation-strip { min-height: 58px; margin-top: 12px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px dashed #d9caaa; }
.covered-total span { color: #756e5e; font-weight: 900; }
.covered-total strong { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #7d8a82; font-family: Georgia,serif; font-size: 27px; }
.calculation-strip { display: block; color: #3c5f55; background: #ecf5ea; border: 2px solid #c8dfca; border-radius: 13px; text-align: center; }
.calculation-strip small,.calculation-strip strong { display: block; }
.calculation-strip small { color: #718078; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.calculation-strip strong { margin-top: 4px; font-size: 19px; }
.cashier-question { margin-top: 17px; }
.cashier-question > p { margin: 0 0 12px; color: #49635b; text-align: center; font-weight: 900; }
.receipt-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.receipt-option { min-width: 0; min-height: 95px; padding: 10px 6px; position: relative; overflow: hidden; border: 3px solid #e3d5b8; border-radius: 15px 15px 8px 8px; color: #3d5a52; background: #fffdf7; cursor: pointer; transition: transform .14s ease,border-color .14s ease,box-shadow .14s ease; }
.receipt-option::after { content: ""; height: 8px; position: absolute; right: 0; bottom: -4px; left: 0; background: radial-gradient(circle at 4px 0,transparent 4px,#fffdf7 4.5px) repeat-x; background-size: 8px 8px; }
.receipt-option:hover { transform: translateY(-3px); border-color: var(--level-accent); box-shadow: 0 6px 0 rgba(74,73,55,.12); }
.receipt-option:active { transform: translateY(1px); }
.receipt-option small,.receipt-option strong,.receipt-option > span { display: block; }
.receipt-option small { color: #968b72; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.receipt-option strong { margin: 5px 0 0; font-family: Georgia,serif; font-size: 30px; }
.receipt-option strong i { font-size: 16px; font-style: normal; }
.receipt-option > span { color: #cabd9e; letter-spacing: 2px; }
.receipt-option.wrong { border-color: #df8977; background: #fff0e9; animation: nudge .25s ease; }
.receipt-option.correct { border-color: #55a97d; background: #e7f5eb; }
.receipt-option:disabled { cursor: default; }
.game-tools { margin-top: 18px; display: flex; justify-content: center; }
.hint-button:disabled { opacity: .5; cursor: default; }
.feedback-card { min-height: 88px; margin-top: 22px; padding: 15px 16px 15px 19px; display: flex; align-items: center; gap: 14px; border: 1px solid #d6e4d2; border-radius: 20px; background: #eef5ec; }
.feedback-icon { width: 49px; height: 49px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: #fff; font-size: 24px; }
.feedback-card p { margin: 0; }
.feedback-card strong,.feedback-card small { display: block; }
.feedback-card small { margin-top: 4px; color: #6b7b74; line-height: 1.35; }
.feedback-card.correct { border-color: #b7dbc5; background: #e3f3e9; }
.feedback-card.wrong { border-color: #edc9bb; background: #fff0e9; }
.feedback-card.hint { border-color: #ead491; background: #fff7d9; }
.feedback-card .compact { min-height: 48px; margin-left: auto; }

.result-wrap { min-height: 650px; padding: 28px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ded3bc; border-radius: 31px; background: linear-gradient(145deg,#f1d9a4,#d5aa75); box-shadow: 0 18px 55px rgba(75,67,45,.1); }
.result-card { width: min(650px,100%); padding: 44px; border: 7px solid #fff4d6; border-radius: 30px; background: #fffaf0; box-shadow: 0 15px 0 rgba(94,62,41,.14); text-align: center; }
.result-tray { margin-bottom: 20px; display: flex; justify-content: center; gap: 8px; }
.result-tray span { width: 62px; height: 62px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 20px; background: #f3e0b8; box-shadow: 0 5px 0 rgba(84,66,43,.13); font-size: 32px; }
.result-card h1 { margin: 0; color: #2e4b44; font-family: Georgia,serif; font-size: 48px; line-height: 1.05; }
.result-card > p:not(.eyebrow) { max-width: 500px; margin: 16px auto; color: #6c7b75; line-height: 1.5; }
.result-stars { margin: 22px 0; color: #efb64c; font-size: 49px; letter-spacing: 5px; }
.result-stats { margin: 22px 0 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.result-stats span { padding: 13px 7px; border-radius: 16px; background: #f4ecd8; }
.result-stats strong,.result-stats small { display: block; }
.result-stats strong { color: #3e695b; font-size: 27px; }
.result-stats small { margin-top: 2px; color: #817a68; font-size: 11px; }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.next-level-button { min-height: 54px; }

@keyframes nudge { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }

@media (max-width: 1000px) {
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 230px; display: grid; grid-template-columns: 205px 1fr; grid-template-rows: 1fr auto; column-gap: 20px; }
  .level-preview { grid-row: 1 / 3; margin: 0; }
  .level-copy { min-height: 0; align-self: center; }
  .level-status { align-self: end; }
  .cafe-layout { grid-template-columns: 280px minmax(0,1fr); gap: 14px; }
  .cafe-stage { padding: 25px 18px; }
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 47px 44px; }
  .hero-scene { min-height: 400px; }
  .cafe-layout { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .menu-board { padding: 17px; }
}

@media (max-width: 700px) {
  .app { width: min(1120px,calc(100% - 20px)); padding-top: 12px; }
  .topbar { margin-bottom: 14px; }
  .brand small,.sound-button span:last-child,.quiet-button { display: none; }
  .sound-button { width: 46px; padding: 0; justify-content: center; }
  .hero { border-radius: 25px; }
  .hero-copy { padding: 36px 26px 31px; }
  .hero h1 { font-size: 43px; }
  .hero-copy > p:not(.eyebrow) { margin: 19px 0 25px; font-size: 16px; }
  .hero-scene { min-height: 365px; }
  .hero-menu { top: 98px; left: 13px; transform: rotate(-2deg) scale(.9); transform-origin: top left; }
  .hero-table { right: 9px; bottom: 69px; transform: rotate(2deg) scale(.88); transform-origin: bottom right; }
  .hero-cash { left: 14px; }
  .how { padding: 42px 0 26px; }
  .how-grid { grid-template-columns: 1fr; gap: 7px; }
  .how-grid article { display: grid; grid-template-columns: 66px 1fr; column-gap: 14px; text-align: left; }
  .how-grid article > span { grid-row: 1 / 3; margin: 0; }
  .levels { padding: 28px 16px; border-radius: 24px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { margin-top: 12px; }
  .level-card { min-height: 322px; display: flex; }
  .level-preview { min-height: 128px; margin-bottom: 16px; }
  .level-copy { min-height: 103px; }
  .adult-note { align-items: flex-start; }
  .game-shell { padding: 24px 12px 28px; border-radius: 24px; }
  .game-head { align-items: flex-start; }
  .game-head h1 { font-size: 29px; }
  .round-count { min-width: 57px; }
  .round-count strong { font-size: 27px; }
  .progress-track { margin: 18px 0 22px; gap: 4px; }
  .cafe-stage { min-height: 760px; padding: 18px 9px 25px; border-width: 4px; }
  .menu-board { border-width: 6px; }
  .menu-card { grid-template-columns: 33px minmax(0,1fr) auto; padding: 6px; gap: 5px; }
  .menu-card > span { font-size: 23px; }
  .menu-card strong { font-size: 11px; }
  .menu-card > b { font-size: 13px; }
  .order-counter { padding: 58px 10px 17px; border-width: 5px; }
  .order-ticket { padding: 12px; }
  .order-line { min-height: 62px; grid-template-columns: minmax(68px,auto) 1fr auto; padding: 7px; gap: 6px; }
  .order-icons span { width: 32px; height: 38px; font-size: 21px; }
  .order-line > b { padding: 6px 8px; }
  .receipt-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .receipt-option { min-height: 88px; }
  .feedback-card { align-items: flex-start; }
  .feedback-card.correct { flex-wrap: wrap; }
  .feedback-card.correct p { flex: 1; }
  .feedback-card .compact { width: 100%; margin: 11px 0 0; }
  .result-wrap { min-height: 590px; padding: 13px; border-radius: 24px; }
  .result-card { padding: 30px 15px; }
  .result-card h1 { font-size: 40px; }
  .result-stars { font-size: 40px; }
  .result-stats small { font-size: 10px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .quiet-button.large { display: inline-block; }
}

@media (max-width: 430px) {
  .app { width: min(1120px,calc(100% - 16px)); }
  .brand-mark { width: 59px; }
  .game-shell { padding-left: 9px; padding-right: 9px; }
  .cafe-stage { padding-left: 6px; padding-right: 6px; }
  .menu-board { padding: 13px 8px; }
  .menu-list { gap: 5px; }
  .menu-card { min-height: 49px; }
  .menu-card small { display: none; }
  .calculation-strip strong { font-size: 16px; }
}

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