:root {
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  color: #35261c;
  background: #f3e6c9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #fbf4e5;
  --paper-deep: #efe0bf;
  --ink: #35261c;
  --ink-soft: #755b43;
  --wood: #8b6040;
  --gold: #d7b773;
  --sage: #859269;
  --line: #d9c7a4;
  --shadow: 0 15px 38px rgb(68 47 27 / 11%);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgb(255 255 255 / 52%), transparent 34rem),
    linear-gradient(135deg, #f3e6c9, #e9d8b4);
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible {
  outline: 3px solid #597050;
  outline-offset: 3px;
}

.app-shell {
  width: min(980px, calc(100% - 30px));
  min-height: min(850px, calc(100vh - 32px));
  margin: 16px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(114 80 49 / 25%);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.home-layout {
  display: grid;
  min-height: inherit;
  grid-template-columns: 224px minmax(0, 1fr);
}

.home-sidebar {
  display: flex;
  min-height: 100%;
  padding: 25px 16px;
  flex-direction: column;
  background:
    linear-gradient(180deg, #ede0c3 0%, #ead9b6 100%);
  border-right: 1px solid #c9b28d;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-stamp {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff5de;
  background: #80583b;
  border: 2px solid #f3e4c3;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
}

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

.sidebar-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.sidebar-brand small {
  color: #80684d;
  font-size: 0.73rem;
}

.sidebar-heading {
  margin: 34px 10px 9px;
  color: #876a4c;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.sidebar-link {
  display: grid;
  min-height: 46px;
  padding: 8px 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: #5f4935;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
  transition: background 150ms ease, transform 150ms ease;
}

.sidebar-link:hover {
  background: rgb(255 249 233 / 74%);
  transform: translateX(2px);
}

.sidebar-link.is-active {
  color: #fff9ec;
  background: #79573a;
  box-shadow: 0 3px 0 #5e432d;
}

.sidebar-link > span:first-child {
  font-size: 1rem;
  text-align: center;
}

.nav-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  background: rgb(255 255 255 / 23%);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
}

.sidebar-language {
  display: grid;
  margin: auto 6px 0;
  gap: 7px;
}

.sidebar-language label {
  color: #80684d;
  font-size: 0.79rem;
  font-weight: 750;
}

.sidebar-language select {
  width: 100%;
  min-height: 39px;
  padding: 5px 8px;
  color: #473526;
  background: #faf4e5;
  border: 1px solid #d0bd99;
  border-radius: 8px;
  font-size: 0.86rem;
}

.sidebar-quiet {
  margin: 18px 6px 0;
  color: #8a7254;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
}

.home-main {
  min-width: 0;
  min-height: 100%;
  background: #f8efdb;
}

.home-scene,
.study-scene,
.reveal-scene,
.served-scene,
.counter-scene {
  position: relative;
  min-height: min(820px, calc(100vh - 64px));
  padding: clamp(24px, 5vw, 54px);
  text-align: center;
}

.home-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgb(212 169 94 / 20%), transparent 21rem),
    linear-gradient(180deg, #f9f1dc 0%, #f5e8ce 66%, #e8d2aa 100%);
}

.restaurant-home {
  display: flex;
  min-height: min(850px, calc(100vh - 32px));
  padding: clamp(17px, 2.5vw, 28px);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(ellipse at 8% 20%, rgb(196 103 75 / 14%), transparent 19rem),
    radial-gradient(ellipse at 93% 44%, rgb(104 133 99 / 19%), transparent 20rem),
    radial-gradient(ellipse at 52% 80%, rgb(212 169 94 / 22%), transparent 21rem),
    linear-gradient(180deg, #f5efd9 0%, #f2e5c8 66%, #e4cca2 100%);
}

.restaurant-art {
  overflow: hidden;
  background: #dce0ca;
  border: 7px solid #684b33;
  border-radius: 19px 19px 5px 5px;
  box-shadow: 0 9px 0 #b48b5d, inset 0 0 0 2px #d2bc91;
}

.restaurant-interior {
  display: block;
  width: 100%;
  height: auto;
}

.restaurant-welcome {
  position: relative;
  z-index: 2;
  width: min(540px, 92%);
  margin: -27px auto 0;
  padding: 21px 24px 20px;
  background: rgb(251 245 229 / 96%);
  border: 1px solid #ceb58b;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgb(73 48 25 / 14%);
  text-align: center;
}

.restaurant-welcome .kicker {
  margin-bottom: 6px;
  color: #a4553e;
}

.restaurant-welcome h1 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
}

.restaurant-welcome > p:not(.kicker) {
  margin-bottom: 13px;
  color: #755b43;
}

.scene-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
}

.scene-status span {
  padding: 4px 9px;
  color: #6d5239;
  background: #efe3c8;
  border: 1px solid #ddc9a5;
  border-radius: 999px;
  font-size: 0.76rem;
}

.scene-study-button {
  min-width: 210px;
}

.home-caption {
  margin: 21px 0 0;
  color: #80684d;
  font-size: 0.83rem;
  text-align: center;
}

.vocabulary-screen,
.review-screen {
  min-height: min(850px, calc(100vh - 32px));
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(ellipse at 82% 9%, rgb(223 198 147 / 24%), transparent 21rem),
    #f8efdb;
}

.vocabulary-screen h1,
.review-screen h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.screen-intro {
  max-width: 550px;
  color: #765e45;
}

.vocabulary-form {
  display: grid;
  max-width: 560px;
  margin: 22px 0;
  padding: 20px;
  gap: 9px;
  background: #fffaf0;
  border: 1px solid #ddc9a5;
  border-radius: 14px;
  box-shadow: 0 7px 15px rgb(75 51 30 / 7%);
}

.vocabulary-form label {
  color: #695039;
  font-size: 0.86rem;
  font-weight: 750;
}

.vocabulary-form input {
  min-height: 44px;
  padding: 9px 12px;
  color: #34261c;
  background: #fffdf8;
  border: 1px solid #cfbc98;
  border-radius: 8px;
  font: inherit;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.in-world-note {
  max-width: 560px;
  margin: 12px 0;
  padding: 10px 14px;
  color: #694a2e;
  background: #f3e3bb;
  border-left: 4px solid #ad8048;
  border-radius: 4px 10px 10px 4px;
}

.pantry-list {
  max-width: 560px;
}

.pantry-list h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5e4631;
  font-family: Georgia, "Times New Roman", serif;
}

.pantry-list h2 span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: #ead9b5;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
}

.pantry-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbc8a5;
}

.word-row {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5d7bb;
}

.word-row > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.row-actions {
  display: flex;
  gap: 9px;
  white-space: nowrap;
}

.text-button {
  padding: 5px 2px;
  color: #715439;
  background: transparent;
  border: 0;
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-danger {
  color: #9a4e3d;
}

.empty-note,
.temporary-note {
  color: #80684d;
  font-size: 0.88rem;
}

.temporary-note {
  max-width: 560px;
  margin-top: 25px;
  padding: 10px 13px;
  background: #efe3c8;
  border-radius: 8px;
}

.review-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.review-count {
  color: #80684d;
  font-size: 0.89rem;
}

.review-card {
  display: flex;
  width: min(540px, 100%);
  min-height: 255px;
  margin: 18px 0;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff8e8;
  border: 1px solid #d2bd94;
  border-radius: 17px;
  box-shadow: 0 9px 20px rgb(65 45 25 / 10%), inset 0 0 0 5px #f1e5ca;
}

.review-card .button {
  margin-top: 17px;
}

.review-card .rating-row {
  margin-bottom: 4px;
}

.home-scene::before,
.home-scene::after {
  position: absolute;
  z-index: 0;
  width: 185px;
  height: 190px;
  content: "";
  opacity: 0.48;
  background: #b9a274;
  border: 8px solid #76523b;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
  pointer-events: none;
}

.home-scene::before {
  bottom: 0;
  left: -93px;
}

.home-scene::after {
  right: -93px;
  bottom: 0;
}

.home-scene > * {
  position: relative;
  z-index: 1;
}

.lantern {
  display: grid;
  width: 54px;
  height: 62px;
  margin-bottom: 13px;
  place-items: center;
  color: #84563b;
  font-size: 1.6rem;
  background: #f0d595;
  border: 2px solid #9a704c;
  border-radius: 42% 42% 48% 48%;
  box-shadow: 0 0 32px rgb(221 173 92 / 35%);
}

.kicker {
  margin: 0 0 10px;
  color: #76583d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-intro {
  max-width: 490px;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.home-bowl {
  position: relative;
  display: flex;
  width: 146px;
  height: 82px;
  margin: 8px 0 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ba7350;
  background: #fff7e4;
  border: 4px solid #9a704c;
  border-top: 7px solid #a87952;
  border-radius: 12px 12px 74px 74px;
  box-shadow: 0 10px 0 #d1b17c;
}

.home-bowl span {
  position: absolute;
  top: -36px;
  left: 59px;
  color: #b98b56;
  font-size: 2.25rem;
  transform: rotate(180deg);
}

.home-bowl i {
  font-size: 1.05rem;
  font-style: normal;
}

.home-controls {
  display: flex;
  width: min(310px, 100%);
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.home-controls label {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.home-controls select {
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.rating-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf0;
  background: #745339;
  box-shadow: 0 5px 0 #553d2a;
}

.button-primary:hover {
  background: #654730;
  box-shadow: 0 7px 0 #553d2a;
}

.button-quiet {
  min-height: 40px;
  padding: 7px 13px;
  color: #684d35;
  background: rgb(255 253 247 / 72%);
  border-color: var(--line);
}

.home-note,
.study-footnote,
.page-footer {
  color: #80684d;
  font-size: 0.84rem;
}

.pronunciation-control {
  display: flex;
  margin: 7px 0 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
}

.pronunciation-button {
  min-height: 37px;
  padding: 6px 13px;
  font-size: 0.84rem;
}

.audio-status {
  margin: 0;
  color: #80684d;
  font-size: 0.76rem;
}

.home-note {
  margin: 18px 0 0;
}

.missed-teaser {
  margin: 12px 0 0;
  padding: 8px 13px;
  color: #694832;
  background: #f4e5c3;
  border-radius: 999px;
  font-size: 0.89rem;
}

.page-footer {
  padding: 15px 20px 19px;
  background: #f5ead3;
  text-align: center;
}

.study-scene {
  background:
    radial-gradient(ellipse at center 45%, rgb(191 149 89 / 20%), transparent 28rem),
    linear-gradient(145deg, #d9b78c, #b98a5e);
}

.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.session-progress {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 7px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  background: #ead9ba;
  border: 1px solid #886343;
  border-radius: 50%;
}

.progress-dot.is-current {
  background: #fff4d5;
  box-shadow: 0 0 0 3px rgb(255 245 215 / 26%);
}

.progress-dot.is-done {
  background: #778461;
  border-color: #46543a;
}

.round-count {
  color: #fff8e9;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.dish-heading {
  margin: 23px 0 3px;
  color: #fff8e9;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  text-shadow: 0 2px 0 rgb(79 51 31 / 18%);
}

.dish-instruction {
  margin-bottom: 0;
  color: #fff2dc;
}

.plate-progress {
  width: min(570px, 100%);
  margin: 1px auto 3px;
  padding: 3px 8px;
  background: rgb(255 249 231 / 48%);
  border-radius: 50%;
}

.dish-art {
  margin: 0 auto;
  text-align: center;
}

.dish-art svg {
  display: block;
  width: 100%;
  max-width: 510px;
  margin: 0 auto;
  filter: saturate(var(--dish-tone, 1));
}

.dish-art figcaption {
  margin-top: -3px;
  color: #6b5037;
  font-size: 0.91rem;
  font-weight: 700;
}

.dish-art-small svg {
  max-height: 220px;
}

.ingredient-art text {
  fill: #30251e;
  font-family: system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
}

.final-dish-art {
  position: relative;
  width: min(620px, 100%);
  margin: 2px auto 15px;
  padding: 9px 12px 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7e9c4, #edcf91);
  border: 1px solid #c5a675;
  border-radius: 22px;
  box-shadow: 0 10px 20px rgb(82 55 27 / 12%);
  animation: dish-arrive 360ms ease-out both;
}

.final-dish-art svg {
  display: block;
  width: 100%;
  max-height: 350px;
  margin: auto;
  filter: saturate(1.12) contrast(1.02);
}

.final-dish-art figcaption {
  color: #76583b;
  font-size: 0.86rem;
  font-weight: 700;
}

.dish-sparkles {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: #b87820;
  pointer-events: none;
}

.dish-sparkles span {
  position: absolute;
  opacity: 0;
  animation: sparkle-pop 820ms ease-out both;
}

.dish-sparkles span:nth-child(1) {
  top: 15%;
  left: 12%;
}

.dish-sparkles span:nth-child(2) {
  top: 12%;
  right: 13%;
  animation-delay: 90ms;
}

.dish-sparkles span:nth-child(3) {
  right: 16%;
  bottom: 29%;
  animation-delay: 170ms;
}

.dish-sparkles span:nth-child(4) {
  bottom: 31%;
  left: 15%;
  animation-delay: 240ms;
}

.ingredient-note {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 8px 13px;
  color: #704d27;
  background: #fff1ca;
  border: 1px solid #d9b975;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.study-card {
  position: relative;
  display: flex;
  width: min(560px, 100%);
  min-height: 225px;
  margin: 10px auto 0;
  padding: 24px 26px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 35%), transparent 48%),
    #fbf2dc;
  border: 1px solid #a77b51;
  border-radius: 17px;
  box-shadow: 0 10px 25px rgb(56 35 19 / 21%), inset 0 0 0 5px rgb(233 213 174 / 60%);
}

.card-label {
  margin-bottom: 6px;
  color: #806247;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-word {
  margin: 0;
  color: #3c2a1e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 8vw, 3.25rem);
  line-height: 1.12;
}

.card-hint,
.card-pair {
  margin: 10px 0 0;
  color: #806c53;
  font-size: 0.88rem;
}

.card-pair {
  padding: 3px 11px;
  background: #efe2c6;
  border-radius: 99px;
}

.flip-button {
  position: absolute;
  right: 23px;
  bottom: 18px;
  min-height: 42px;
  padding: 8px 18px;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 15px;
}

.rating-label {
  width: 100%;
  color: #806247;
  font-size: 0.84rem;
}

.rating-button {
  width: 43px;
  height: 43px;
  color: #fffaf0;
  background: #78583c;
  border: 2px solid #98764f;
  border-radius: 50%;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease;
}

.rating-button:nth-of-type(4),
.rating-button:nth-of-type(5) {
  background: #74815c;
}

.study-footnote {
  margin: 12px 0 0;
  color: #fff4df;
}

.reveal-scene,
.served-scene,
.counter-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgb(215 185 123 / 24%), transparent 25rem),
    #f8efd9;
}

.reveal-scene h1,
.counter-scene h1,
.served-scene h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.reveal-scene h1 span {
  color: #bd9256;
}

.reveal-subtitle,
.counter-reaction,
.served-scene > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.dish-art-reveal {
  width: min(590px, 100%);
  margin: 0 auto 14px;
  padding: 9px 12px 13px;
  background: linear-gradient(#eddfbd, #e3cca0);
  border: 1px solid #c8ad79;
  border-radius: 20px;
}

.dish-art-reveal svg {
  max-height: 280px;
}

.fact-paper {
  width: min(590px, 100%);
  margin: 8px auto 22px;
  padding: 17px 24px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 26px, rgb(147 111 61 / 10%) 27px),
    #f4e6bf;
  border: 1px solid #d2b983;
  border-left: 5px solid #a97a45;
  box-shadow: 3px 4px 0 rgb(130 94 50 / 11%);
  text-align: left;
  transform: rotate(-0.5deg);
}

.fact-label {
  color: #886744;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-paper p {
  margin: 6px 0 0;
  color: #493626;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.served-scene {
  min-height: 350px;
}

.served-scene h1 {
  max-width: 560px;
}

.steam {
  margin-top: 24px;
  color: #b78b58;
  font-size: 2.5rem;
  letter-spacing: 0.18em;
  animation: drift 1.6s ease-in-out infinite alternate;
}

.counter-scene {
  min-height: min(650px, calc(100vh - 64px));
  background:
    linear-gradient(180deg, #f8efd9 0 62%, #b9895f 62% 68%, #e8d2ab 68%);
}

.counter-scene .kicker {
  margin-top: 12px;
}

.counter-reaction {
  max-width: 560px;
}

.aunties-counter-art {
  display: block;
  width: 100%;
  max-width: 730px;
  margin: 10px auto 0;
  border: 4px solid #76533a;
  border-radius: 18px;
  box-shadow: 0 9px 0 #a1744f;
}

.notice {
  position: fixed;
  z-index: 10;
  top: 22px;
  left: 50%;
  max-width: calc(100% - 28px);
  padding: 10px 15px;
  background: #fff7e9;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.notice-error {
  color: #782e29;
  border-color: #c77e71;
}

@keyframes drift {
  from { transform: translateY(4px); opacity: 0.68; }
  to { transform: translateY(-5px); opacity: 1; }
}

@keyframes dish-arrive {
  from { transform: scale(.92) translateY(9px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes sparkle-pop {
  0% { transform: scale(.15) rotate(-25deg); opacity: 0; }
  45% { transform: scale(1.2) rotate(8deg); opacity: 1; }
  100% { transform: scale(.8) rotate(0); opacity: .35; }
}

@media (max-width: 640px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }

  .home-sidebar {
    min-height: auto;
    padding: 11px 13px 10px;
    border-right: 0;
    border-bottom: 1px solid #c9b28d;
  }

  .sidebar-brand {
    align-self: center;
  }

  .sidebar-heading,
  .sidebar-quiet {
    display: none;
  }

  .sidebar-language {
    width: min(250px, 100%);
    margin: 8px auto 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .sidebar-language label {
    font-size: 0.75rem;
  }

  .sidebar-nav {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    gap: 5px;
  }

  .sidebar-link {
    min-height: 40px;
    padding: 6px 9px;
    grid-template-columns: auto auto;
    font-size: 0.83rem;
  }

  .nav-count {
    display: none;
  }

  .home-scene,
  .study-scene,
  .reveal-scene,
  .served-scene,
  .counter-scene {
    min-height: 100vh;
    padding: 23px 17px;
  }

  .restaurant-home {
    min-height: calc(100vh - 120px);
    padding: 16px 12px;
  }

  .restaurant-art {
    border-width: 5px;
  }

  .restaurant-welcome {
    width: 96%;
    margin-top: -16px;
    padding: 16px 14px;
  }

  .restaurant-welcome > p:not(.kicker) {
    font-size: 0.9rem;
  }

  .vocabulary-screen,
  .review-screen {
    min-height: calc(100vh - 120px);
    padding: 24px 18px;
  }

  .study-header {
    gap: 7px;
  }

  .round-count {
    font-size: 0.74rem;
  }

  .dish-heading {
    margin-top: 19px;
  }

  .dish-art-small svg {
    max-height: 156px;
  }

  .study-card {
    min-height: 230px;
    padding: 20px 14px 66px;
  }

  .flip-button {
    right: 14px;
    bottom: 13px;
  }

  .counter-scene {
    justify-content: center;
  }

  .aunties-counter-art {
    width: 100%;
    border-width: 2px;
  }
}

@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;
  }
}
