:root {
  color-scheme: light;
  --cream: #f8f4eb;
  --paper: #fffdfa;
  --ink: #252b24;
  --olive: #354b3e;
  --muted: #677064;
  --yellow: #f1cc55;
  --coral: #efae98;
  --mint: #dde6d4;
  --line: #dedfd2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select { font-family: var(--sans); }
button, input, textarea, select { font-size: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, textarea, select { border-radius: 0; }
a { color: inherit; }
button, a { touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
svg { width: 21px; height: 21px; flex: 0 0 auto; }
button svg, a svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(36px, 5.2vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 17px; font-weight: 650; line-height: 1.35; }
p { margin-bottom: 16px; }
small { font-size: 12px; }
label { font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 48px; padding: 13px 15px; color: var(--ink); background: var(--paper); border: 1px solid #ccd1c4; border-radius: 13px; outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #777c70; opacity: 1; }
textarea { min-height: 112px; resize: vertical; line-height: 1.6; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 18px; transform: translateY(-160%); background: var(--olive); color: white; border-radius: 12px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 26px 24px 23px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.2; }
.brand img { flex: 0 0 auto; width: 43px; height: 43px; border-radius: 12px; }
.brand > span { font-family: var(--serif); font-size: 22px; letter-spacing: -.04em; }
.brand strong { font-weight: 400; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .02em; line-height: 1.4; }
.connection-pill { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 7px; min-height: 44px; padding: 7px 12px; border: 1px solid #d6dccc; border-radius: 30px; background: #eef0e5; color: var(--olive); font-size: 11px; font-weight: 650; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #668053; }
main { max-width: 1120px; margin: 0 auto; padding: 35px 24px 140px; outline: none; }
.loading-state { min-height: 60vh; padding-top: 44px; }
.eyebrow { display: block; margin-bottom: 15px; color: var(--olive); font-size: 10px; font-weight: 750; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.muted, .subtle { color: var(--muted); }
.page-heading { margin-bottom: 28px; }
.page-heading > p { max-width: 550px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-heading > p, .section-heading > span { margin: 0; color: var(--muted); font-size: 12px; }
.section-heading > a, .text-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; color: var(--olive); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.button-dark { background: var(--olive); color: var(--paper); }
.button-light { border-color: #ffffff9c; background: #ffffffa8; color: var(--ink); }
.button-ghost { border-color: #ced1c4; background: transparent; color: var(--olive); }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.button-full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 1px solid #d6d9cd; border-radius: 50%; background: transparent; }
.icon-button.is-active, .icon-button[aria-pressed="true"] { background: var(--olive); color: white; border-color: var(--olive); }
.button-row, .card-actions, .phrase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.bottom-nav { position: fixed; z-index: 20; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); width: min(440px, calc(100% - 36px)); padding: 6px; transform: translateX(-50%); border: 1px solid #e0e1d5; border-radius: 23px; background: var(--paper); box-shadow: 0 5px 30px #27372312; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; border-radius: 17px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 550; line-height: 1.3; }
.bottom-nav a[aria-current="page"], .bottom-nav a.active, .bottom-nav a.is-active { background: var(--mint); color: var(--olive); font-weight: 750; }
.bottom-nav svg { width: 21px; height: 21px; }
.login-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 36px 28px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 80px #15251d30; }
.login-dialog::backdrop { background: #1f2c266b; backdrop-filter: blur(3px); }
.login-dialog form { position: relative; }
.login-dialog h2 { margin-bottom: 14px; font-size: 34px; }
.login-dialog p { color: var(--muted); font-size: 14px; }
.login-dialog label { display: block; margin-bottom: 6px; }
.login-dialog .button { width: 100%; }
.login-dialog small { display: block; margin-top: 16px; color: var(--muted); }
.dialog-close { position: absolute; top: -23px; right: -15px; width: 35px; height: 35px; border: 0; font-size: 25px; font-weight: 300; }
.login-dialog .eyebrow { padding-right: 30px; font-size: 9px; }
.form-error { min-height: 21px; margin: 8px 0 !important; color: #a43b2e !important; font-size: 12px !important; }
.toast { position: fixed; z-index: 80; bottom: calc(108px + env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100% - 36px); padding: 12px 19px; transform: translate(-50%, 12px); border-radius: 13px; background: var(--olive); color: white; box-shadow: 0 5px 24px #24302725; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show, .toast.visible, .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript { margin: 24px; padding: 20px; border-radius: 16px; background: var(--yellow); }

.page-heading { position: relative; }
.page-heading:has(.trip-stamp) { padding-right: 165px; }
.trip-stamp { position: absolute; top: 0; right: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 126px; height: 126px; padding: 17px; transform: rotate(8deg); border: 1px dashed #8c997d; border-radius: 50%; color: var(--olive); text-align: center; }
.stamp-plane { font-size: 24px; line-height: 1; }
.stamp-plane svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.stamp-copy { font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.stamp-copy strong { display: block; font-size: 13px; }
.home-layout { display: grid; grid-template-columns: 1.18fr 1fr; align-items: start; gap: 28px; margin-top: 30px; }
.home-feature, .home-aside { min-width: 0; }
.phrase-card { position: relative; min-width: 0; padding: 26px; border: 1px solid #dfdfd2; border-radius: var(--radius); background: var(--paper); }
.phrase-card.featured { min-height: 340px; padding: 29px 31px 24px; border-color: var(--yellow); background: var(--yellow); }
.phrase-card.tone-yellow { background: var(--yellow); border-color: var(--yellow); }
.phrase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.phrase-context { color: var(--olive); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.phrase-card .favourite { width: 44px; height: 44px; padding: 11px; background: #fffdfb85; border-color: transparent; }
.phrase-card .favourite[aria-pressed="true"] { background: var(--olive); color: var(--paper); }
.favourite[aria-pressed="true"] svg { fill: currentColor; }
.phrase-es, .phrase-es h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.035em; line-height: 1.13; overflow-wrap: anywhere; }
.phrase-card.featured .phrase-es, .phrase-card.featured .phrase-es h2 { font-size: clamp(38px, 4.5vw, 55px); }
.phrase-de, .phrase-de p { margin-bottom: 15px; color: #424c3d; font-size: 16px; line-height: 1.5; }
.phrase-card.featured .phrase-de { font-size: 19px; }
.phrase-hint { max-width: 360px; margin-bottom: 25px; color: #5e6556; font-size: 12px; line-height: 1.7; }
.phrase-actions { margin-top: 20px; }
.phrase-card .phrase-actions .button { min-height: 46px; padding: 11px 16px; }
.phrase-footnote { margin: 17px 0 0; color: #59614e; font-size: 10px; line-height: 1.6; }
.button-soft { border-color: transparent; background: #ffffff94; color: var(--olive); }
.button-outline { border-color: #b7c0ae; background: transparent; color: var(--olive); }
.button-coral { background: var(--coral); color: var(--ink); }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 0; border: 0; background: transparent; color: var(--olive); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.button-link svg { width: 16px; height: 16px; }
.next-phrase { display: flex; width: max-content; max-width: 100%; margin: 7px auto 0; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.home-aside .section-heading { display: block; }
.home-aside .section-heading .eyebrow { margin-bottom: 6px; color: var(--olive); font-size: 10px; }
.collection-list { display: grid; gap: 10px; }
.collection-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1px solid #dce0d3; border-radius: 17px; background: var(--paper); text-align: left; transition: border-color .15s ease, transform .15s ease; }
.collection-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 13px; background: var(--mint); font-size: 22px; }
.collection-row[data-color="yellow"] .collection-icon { background: #f5dfa0; }
.collection-row[data-color="mint"] .collection-icon { background: var(--mint); }
.collection-row[data-color="coral"] .collection-icon { background: #f3c8b9; }
.collection-row[data-color="cream"] .collection-icon { background: #f0ebdc; }
.collection-copy { flex: 1; min-width: 0; }
.collection-copy strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.35; }
.collection-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.collection-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.collection-arrow { color: var(--olive); font-size: 19px; }
.collection-arrow svg { width: 17px; height: 17px; }
.goodbye-feature { position: relative; display: block; width: 100%; margin-top: 24px; padding: 24px 26px 21px; border: 1px solid transparent; border-radius: var(--radius); background: var(--coral); text-align: left; }
.goodbye-feature .eyebrow { margin-bottom: 10px; color: #604736; font-size: 9px; }
.goodbye-feature h2 { margin-bottom: 9px; font-size: 31px; }
.goodbye-feature p { max-width: 360px; margin-bottom: 20px; color: #614b40; font-size: 13px; }
.goodbye-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 650; }
.goodbye-bottom svg { width: 29px; height: 29px; padding: 5px; border: 1px solid #252b2440; border-radius: 50%; }
.offline-nudge { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 23px; padding: 18px 20px; border: 1px solid #d5ddc9; border-radius: 18px; background: #e9eddc; text-align: left; }
.nudge-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 12px; background: #f9faf1; color: var(--olive); font-size: 21px; }
.nudge-copy { flex: 1; }
.nudge-copy strong { display: block; font-size: 12px; font-weight: 650; }
.nudge-copy small { display: block; margin-top: 3px; color: #616b56; font-size: 11px; line-height: 1.5; }
.nudge-arrow { color: var(--olive); }
.nudge-arrow svg { width: 16px; height: 16px; }
.little-note { margin: 20px 5px 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }

.search-field { position: relative; display: flex; align-items: center; max-width: 560px; margin-bottom: 18px; }
.search-field > svg { position: absolute; left: 16px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-field input { min-height: 49px; padding-left: 46px; border-color: #d6dace; background: var(--paper); font-size: 14px; }
.filter-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid #d5dace; border-radius: 30px; background: transparent; color: #606a59; font-size: 11px; font-weight: 550; line-height: 1.4; }
.filter-chip svg { width: 15px; height: 15px; }
.filter-chip[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--paper); }
.phrase-results-meta { margin: 5px 0 17px; color: var(--muted); font-size: 11px; }
.phrase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.phrase-list .phrase-card { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.phrase-list .phrase-top { margin-bottom: 20px; }
.phrase-list .phrase-hint { flex: 1; margin-bottom: 5px; }
.phrase-list .phrase-de { font-size: 15px; }
.phrase-list .phrase-footnote { flex: 0 0 auto; }
.phrase-list .phrase-actions .button-soft { background: #eef0e7; }
.empty-state { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed #c8cebd; border-radius: 24px; color: var(--muted); text-align: center; }
.empty-state h2 { color: var(--ink); }
.empty-state p { max-width: 400px; margin-right: auto; margin-left: auto; font-size: 13px; }

.scene-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 26px; }
.scene-card { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; }
.scene-card:nth-child(2) { background: #e7ecdE; }
.scene-card:nth-child(3) { background: #f6dfd3; }
.scene-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: #f3e7be; font-size: 25px; }
.scene-card:nth-child(2) .scene-icon { background: #f4f6ed; }
.scene-card:nth-child(3) .scene-icon { background: #fff5eb; }
.scene-copy { flex: 1 1 100%; min-width: 0; }
.scene-copy strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.scene-copy p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.scene-arrow { display: flex; justify-content: flex-end; width: 100%; margin-top: 2px; color: var(--olive); }
.scene-arrow svg { width: 18px; height: 18px; }
.dialogue-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 730px; margin-bottom: 20px; }
.dialogue-label { color: var(--muted); font-size: 11px; }
.chat-stack { display: flex; flex-direction: column; gap: 16px; max-width: 730px; margin: 24px 0; }
.chat-bubble { align-self: flex-start; width: min(92%, 580px); padding: 24px 27px; border: 1px solid #dce0d2; border-radius: 23px 23px 23px 7px; background: var(--paper); }
.chat-bubble.from-user { align-self: flex-end; border-color: var(--mint); border-radius: 23px 23px 7px 23px; background: var(--mint); }
.chat-speaker { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.chat-es { margin: 0 0 9px; font-family: var(--serif); font-size: 29px; letter-spacing: -.025em; line-height: 1.3; }
.chat-de { margin-bottom: 13px; color: #596451; font-size: 13px; }
.chat-feedback { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #b9c5ad; color: #4d5e44; font-size: 12px; }
.chat-bubble .button { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.chat-bubble .button-soft { background: #eef0e5; }
.reply-hint { max-width: 730px; margin: 22px 0 12px; color: var(--muted); font-size: 12px; }
.reply-options { display: grid; gap: 10px; max-width: 730px; }
.reply-option { position: relative; display: block; padding: 17px 54px 17px 20px; border: 1px solid #cdd7c3; border-radius: 16px; background: transparent; text-align: left; }
.reply-option > svg { position: absolute; top: 50%; right: 20px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--olive); }
.reply-option .es, .reply-option strong { display: block; color: var(--olive); font-size: 15px; font-weight: 650; line-height: 1.5; }
.reply-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.dialogue-finish { max-width: 730px; margin-top: 22px; padding: 26px; border: 1px solid #e2d6a5; border-radius: 22px; background: #f7e8b7; }
.dialogue-finish h2 { margin-bottom: 10px; }
.dialogue-finish p { font-size: 13px; }
.ai-invite { max-width: 730px; margin-top: 28px; padding: 26px 28px; border: 1px solid #d3d9c8; border-radius: var(--radius); background: #eef0e5; }
.ai-invite h2 { margin-bottom: 11px; }
.ai-invite p { max-width: 550px; color: var(--muted); font-size: 13px; }
.ai-invite .eyebrow { margin-bottom: 10px; }
.online-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #65715b; font-size: 10px; }
.online-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #85916d; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 23px; }
.settings-card { min-width: 0; padding: 28px; border: 1px solid #daded1; border-radius: var(--radius); background: var(--paper); }
.settings-card h2 { margin-bottom: 14px; }
.settings-card > p { color: var(--muted); font-size: 13px; }
.download-card { background: var(--mint); border-color: var(--mint); }
.download-title { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.download-title h2 { margin: 0; }
.settings-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: #f5f7ed; color: var(--olive); font-size: 23px; }
.download-note { color: #5c694e; font-size: 12px; line-height: 1.7; }
.download-progress { margin: 18px 0 7px; }
progress { display: block; width: 100%; height: 8px; margin: 12px 0; overflow: hidden; border: 0; border-radius: 10px; background: #c4cfb7; accent-color: var(--olive); }
progress::-webkit-progress-bar { border-radius: 10px; background: #c4cfb7; }
progress::-webkit-progress-value { border-radius: 10px; background: var(--olive); }
progress::-moz-progress-bar { border-radius: 10px; background: var(--olive); }
.download-status { margin: 14px 0 0; color: #4e6143; font-size: 12px; line-height: 1.6; }
.field-label { display: block; margin: 17px 0 7px; color: #56624d; font-size: 12px; font-weight: 650; }
.text-area { margin-bottom: 12px; font-size: 14px; }
.translation-output { margin-top: 19px; padding: 21px; border: 1px solid #e6ddb4; border-radius: 17px; background: #fbf0c8; }
.translation-output:empty { display: none; }
.translation-output .phrase-es { margin-bottom: 12px; font-size: 30px; }
.translation-output .phrase-de { font-size: 13px; }
.translator-divider { height: 1px; margin: 25px 0 21px; border: 0; background: var(--line); }
.native-link { margin-top: 5px; }
.small-copy { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.settings-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; margin-top: 27px; padding: 23px 0; border-top: 1px solid var(--line); }
.subtle-link { display: inline-block; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.version-note { margin: 14px 0; color: #78816e; font-size: 10px; }
.is-playing { outline: 2px solid #718b57; outline-offset: 3px; opacity: .85; }
.is-playing:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }

@media (hover: hover) {
  .button-dark:hover { background: #24382d; }
  .button-light:hover { background: var(--paper); }
  .button-ghost:hover { background: #e9ecdf; }
  .icon-button:hover { background: #dde4d6; }
  .icon-button.is-active:hover, .icon-button[aria-pressed="true"]:hover { background: #24382d; }
  .bottom-nav a:hover { color: var(--olive); background: #eef0e5; }
  .button-soft:hover { background: var(--paper); }
  .button-outline:hover { background: #e5eadc; }
  .collection-row:hover { transform: translateX(2px); border-color: #a5b497; }
  .goodbye-feature:hover { border-color: #ba7d68; }
  .offline-nudge:hover { border-color: #a4b494; }
  .scene-card:hover { border-color: #9aad8b; }
  .reply-option:hover { border-color: #8ea27d; background: #eef1e5; }
  .filter-chip:hover { border-color: #8b9d7e; }
}

@media (max-width: 860px) {
  .home-layout { grid-template-columns: 1.06fr 1fr; gap: 21px; }
  .phrase-card.featured { padding: 24px; }
  .phrase-card.featured .phrase-es, .phrase-card.featured .phrase-es h2 { font-size: 43px; }
  .collection-row { gap: 10px; padding: 13px; }
  .collection-icon { width: 38px; height: 38px; font-size: 20px; }
  .collection-count { display: none; }
  .scene-list { gap: 13px; }
  .scene-card { padding: 20px; }
  .scene-copy strong { font-size: 24px; }
  .settings-grid { gap: 18px; }
  .settings-card { padding: 23px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .app-header { margin: 0 20px; padding: 19px 0 18px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 37px; height: 37px; border-radius: 10px; }
  .brand > span { font-size: 20px; }
  .brand small { max-width: 175px; font-size: 8px; }
  .connection-pill { min-height: 44px; padding: 6px 9px; font-size: 10px; }
  main { padding: 27px 20px 120px; }
  h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .eyebrow { font-size: 9px; }
  .page-heading { margin-bottom: 25px; }
  .page-heading > p { font-size: 13px; }
  .bottom-nav { bottom: 0; width: 100%; padding: 7px 14px calc(8px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .bottom-nav a { min-height: 53px; border-radius: 14px; }
  .toast { bottom: calc(85px + env(safe-area-inset-bottom)); }
  .page-heading:has(.trip-stamp) { padding-right: 0; }
  .trip-stamp { display: none; }
  .home-layout { grid-template-columns: 1fr; gap: 25px; margin-top: 26px; }
  .phrase-card.featured { min-height: 0; padding: 24px 23px 22px; border-radius: 23px; }
  .phrase-card.featured .phrase-top { margin-bottom: 22px; }
  .phrase-card.featured .phrase-es, .phrase-card.featured .phrase-es h2 { font-size: 43px; }
  .phrase-card.featured .phrase-de { font-size: 17px; }
  .phrase-hint { margin-bottom: 20px; font-size: 12px; }
  .phrase-actions { margin-top: 19px; }
  .phrase-card .phrase-actions .button { padding: 11px 14px; font-size: 12px; }
  .phrase-footnote { margin-top: 17px; font-size: 10px; }
  .next-phrase { margin-top: 6px; }
  .home-aside .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 26px; }
  .collection-row { min-height: 76px; gap: 13px; padding: 14px 15px; }
  .collection-icon { width: 42px; height: 42px; font-size: 22px; }
  .collection-count { display: block; }
  .goodbye-feature { margin-top: 22px; padding: 24px; }
  .goodbye-feature h2 { font-size: 31px; }
  .offline-nudge { margin-top: 19px; padding: 17px; }
  .little-note { margin-top: 17px; font-size: 10px; }
  .filter-strip { flex-wrap: nowrap; gap: 7px; margin-right: -20px; margin-left: -20px; padding: 1px 20px 8px; overflow-x: auto; scrollbar-width: none; }
  .filter-strip::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-height: 44px; padding: 8px 13px; font-size: 11px; }
  .phrase-list { grid-template-columns: 1fr; gap: 15px; }
  .phrase-list .phrase-card { padding: 23px; }
  .phrase-list .phrase-es, .phrase-list .phrase-es h2 { font-size: 31px; }
  .phrase-list .phrase-de { font-size: 14px; }
  .scene-list { grid-template-columns: 1fr; gap: 13px; }
  .scene-card { flex-wrap: nowrap; align-items: center; gap: 15px; padding: 22px 19px; border-radius: 20px; }
  .scene-icon { flex: 0 0 auto; width: 43px; height: 43px; border-radius: 13px; font-size: 23px; }
  .scene-copy { flex: 1; }
  .scene-copy strong { margin-bottom: 5px; font-size: 25px; }
  .scene-copy p { font-size: 11px; }
  .scene-arrow { flex: 0 0 auto; width: auto; }
  .scene-arrow svg { width: 16px; height: 16px; }
  .dialogue-header { gap: 10px; margin-bottom: 17px; }
  .dialogue-label { font-size: 10px; text-align: right; }
  .chat-stack { gap: 13px; margin: 20px 0; }
  .chat-bubble { width: 94%; padding: 21px; }
  .chat-es { font-size: 27px; }
  .chat-de { font-size: 12px; }
  .reply-option { padding: 16px 52px 16px 18px; }
  .reply-option .es, .reply-option strong { font-size: 14px; }
  .reply-option small { font-size: 11px; }
  .dialogue-finish, .ai-invite { padding: 23px; }
  .settings-grid { grid-template-columns: 1fr; gap: 19px; }
  .settings-card { padding: 24px 22px; }
  .download-title h2 { font-size: 26px; }
  .download-title { gap: 12px; }
  .settings-links { margin-top: 22px; padding-top: 18px; }
}

@media (max-width: 360px) {
  .app-header { margin-right: 16px; margin-left: 16px; }
  .brand small { max-width: 155px; font-size: 7px; }
  .connection-pill { gap: 5px; padding: 6px 8px; font-size: 9px; }
  main { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 35px; }
  .phrase-card.featured { padding: 21px; }
  .phrase-card.featured .phrase-es, .phrase-card.featured .phrase-es h2 { font-size: 38px; }
  .collection-count { display: none; }
  .collection-row { gap: 11px; }
  .scene-card { gap: 12px; padding: 20px 16px; }
  .scene-copy strong { font-size: 23px; }
}

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