.isaan-page { background: #f5ead4; color: #442d20; height: auto; min-height: 100dvh; user-select: auto; }
.isaan-shell { max-width: 480px; margin: auto; padding: calc(16px + var(--safe-top)) 20px calc(24px + var(--safe-bot)); }
.isaan-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.isaan-nav a { color: #644330; font-size: .8rem; text-decoration: none; padding: 10px 0; }
.isaan-page .lang-toggle { background: #e5d7bd; border-color: #b3a17e; }
.isaan-page .lang-toggle button { color: #634734; }
.isaan-page .lang-toggle button.active { background: #70402a; color: #fff8e8; box-shadow: none; }
.isaan-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: #945536; font-weight: 700; margin: 0 0 6px; }
.isaan-page h1 { font-size: clamp(1.8rem,8vw,2.6rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.04em; }
.isaan-intro { color: #765c48; margin: 0 0 22px; font-size: .9rem; }
.meal-tray { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; border-radius: 24px; background: #d8ba83; border: 1px solid #c29c60; }
.dish-card { background: #fcf3e1; border-radius: 15px; padding: 12px; text-align: center; }
.dish-art { position: relative; }
.dish-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; opacity: .08; filter: grayscale(1); }
.dish-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #a18b6e; font-size: 1.5rem; }
.revealed .dish-art img { opacity: 1; filter: none; }
.revealed .dish-placeholder { display: none; }
.dish-card h2 { font-size: 1.05rem; margin: 5px 0; }
.dish-card p { font-size: .72rem; line-height: 1.5; margin: 5px 0; }
.dish-card small { display: inline-block; font-size: .65rem; color: #835637; margin-top: 8px; border-top: 1px solid #dec9a9; padding-top: 6px; }
.dish-hero { grid-column: 1 / -1; padding: 16px; }
.dish-hero .dish-art { width: 82%; max-width: 290px; margin: auto; }
.dish-hero h2 { font-size: 1.6rem; }
.dish-hero .isaan-eyebrow { font-size: .65rem; }
.isaan-primary { display: block; width: 100%; margin: 22px 0 10px; padding: 14px 18px; font: inherit; font-weight: 600; background: #70402a; color: #fff8e8; border: 0; border-radius: 30px; cursor: pointer; }
.isaan-footnote { text-align: center; color: #765c48; font-size: .7rem; line-height: 1.5; }
.meal-postcard { background: #fff7e7; border: 1px solid #b49263; outline: 5px solid #e4c798; padding: 28px 18px 20px; text-align: center; margin: 8px 5px 25px; }
.meal-postcard h1 { font-size: 2rem; }
.meal-postcard > p { font-size: .8rem; }
.postcard-food { display: grid; grid-template-columns: 1fr 1fr; }
.postcard-food img { width: 100%; height: auto; mix-blend-mode: multiply; }
.postcard-food .postcard-som-tam { grid-column: 1 / -1; width: 88%; margin: 0 auto -12px; }
.postcard-menu { border-top: 1px solid #d8c2a1; padding-top: 15px; font-weight: 700; }
.postcard-signoff { color: #765c48; }
.isaan-page [hidden] { display: none !important; }
.isaan-page button:focus-visible, .isaan-page a:focus-visible { outline: 3px solid #a54229; outline-offset: 3px; }

.isaan-nav { margin-bottom: 22px; }
.isaan-primary { text-align: center; text-decoration: none; box-sizing: border-box; }
.edition-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edition-levels a { padding: 14px 8px; border: 1px solid #b39a77; border-radius: 12px; color: #70402a; text-decoration: none; text-align: center; font-size: .8rem; }

.edition-emblem { float: right; width: 80px; height: 80px; object-fit: contain; mix-blend-mode: multiply; margin: 0 0 10px 12px; border-radius: 50%; }
#edition-progress { clear: both; }

#edition.screen { padding: 0; height: auto; }
#edition .isaan-shell { width: 100%; box-sizing: border-box; }

.dish-progress { padding: 12px 14px; background: #e9d7b5; border-radius: 12px; font-size: .85rem; line-height: 1.5; }
.edition-puzzles { margin: 18px 0; border-top: 1px solid #d8c2a1; padding-top: 10px; }
.edition-puzzles summary { padding: 10px 0; cursor: pointer; }
#back-to-meal { background: transparent; color: #70402a; border: 1px solid #b39a77; }
.win-reward { margin: 8px 0 16px; }
.win-reward[hidden] { display: none; }
.win-reward img { display: block; width: 96px; height: 96px; max-height: 18dvh; object-fit: contain; margin: 0 auto 8px; border-radius: 16px; }
.win-card .win-reward p { color: #f0d6a6; margin: 0; font-weight: 700; }
.isaan-game .win-card { max-height: calc(100dvh - 100px); overflow-y: auto; }
.mixing .postcard-som-tam { animation: som-tam-mix 950ms ease-in-out 1; transform-origin: 50% 70%; }
@keyframes som-tam-mix {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-6deg) scale(.97); }
  40% { transform: rotate(6deg) scale(1.03); }
  60% { transform: rotate(-4deg) scale(1.02); }
  80% { transform: rotate(3deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mixing .postcard-som-tam { animation: none; }
}
.isaan-game #win .win-actions { flex-direction: column; align-items: stretch; }
.isaan-game #win .win-actions .pill { white-space: normal; }
