/* Little Paws Rescue — original storybook interface.
   Edit these design tokens to refresh the whole experience. */
:root {
  color-scheme: light;
  --paper: #faf6ed;
  --card: #fffcf6;
  --ink: #41343c;
  --muted: #73676b;
  --teal: #39756b;
  --teal-dark: #285d55;
  --teal-light: #e7efe5;
  --apricot: #edaf7a;
  --apricot-light: #fae6cd;
  --rose: #d88d86;
  --rose-light: #f9e6df;
  --line: #e5ded1;
  --shadow: 0 12px 32px #59443208;
  --round: 24px;
  --sans: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: var(--teal-dark); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a, button, input, select, summary { touch-action: manipulation; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #a75624; outline-offset: 4px; }
main:focus, h2[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; font-weight: 500; text-wrap: balance; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.6rem; letter-spacing: -.025em; }
p { overflow-wrap: break-word; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; }
.art { display: inline-flex; flex: 0 0 auto; }
.art > svg { display: block; width: 100%; height: auto; }
.art.icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.art.icon > svg { width: auto; max-width: 100%; height: auto; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#app-shell { min-height: 100dvh; display: flex; flex-direction: column; transform-origin: center center; }
#main { width: min(1240px, calc(100% - 80px)); margin: 0 auto; flex: 1; padding: 48px 0 72px; }
#site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; min-height: 96px; padding: 16px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.game-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.game-brand strong { display: block; font-family: var(--serif); font-size: 29px; font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.game-brand small { display: block; margin-top: 6px; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .18em; }
.brand-paw { width: 47px; height: 47px; display: grid; place-items: center; color: var(--teal); border: 1px solid #cdd8c8; border-radius: 16px 16px 19px 19px; background: #ecf0e4; transform: rotate(-7deg); }
.brand-paw > .art { transform: rotate(7deg); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 5px; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 12px; border-radius: 10px; color: #70656a; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--teal-dark); background: #eeeede; }
.main-nav a.active { color: var(--teal-dark); background: #e7ece0; }
.header-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.star-wallet { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 55px; min-height: 40px; padding: 6px 10px; color: #755226; background: #f7e9c9; border: 1px solid #e9d9b2; border-radius: 30px; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.star-wallet .icon { color: #ad7a34; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid transparent; border-radius: 50%; color: var(--muted); }
.icon-button:hover { background: #eeebe1; color: var(--teal-dark); }
.icon-button[aria-pressed="true"] { color: var(--teal-dark); background: var(--teal-light); }
.button, .text-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; padding: 13px 21px; border-radius: 12px; border: 1px solid transparent; font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; text-align: center; transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.button { color: #fffdf6; background: var(--teal); border-color: var(--teal); box-shadow: 0 3px 0 #23584f; }
.button:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #23584f; }
.button-light { color: var(--teal-dark); background: var(--card); border-color: #d7ded1; box-shadow: 0 2px 0 #e4e8dc; }
.button-light:hover:not(:disabled) { color: var(--teal-dark); background: #edf1e7; border-color: #bdcdbb; }
.text-button { background: transparent; color: var(--teal-dark); padding-inline: 10px; box-shadow: none; }
.text-button:hover:not(:disabled) { background: #edf0e5; }
.button:disabled, .text-button:disabled { opacity: .55; box-shadow: none; }
.eyebrow { color: var(--teal); font-size: 10px; line-height: 1.55; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow .icon { margin-right: 7px; }
.tag { display: inline-flex; gap: 6px; align-items: center; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: #eef0e3; color: #566e52; font-size: 9px; font-weight: 750; line-height: 1.5; letter-spacing: .10em; text-transform: uppercase; }
.warm-ink { color: #a36144; }
.home-hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 14px; min-height: 498px; margin-top: -22px; }
.hero-copy { padding: 14px 0 26px; position: relative; z-index: 1; }
.hero-copy h1 { margin: 20px 0 25px; font-size: clamp(3rem, 4.4vw, 4.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.hero-description { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 390px; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-buttons > .button { padding-inline: 18px; }
.hero-buttons > .text-button { font-size: 12px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: #82766e; font-size: 10px; line-height: 1.5; }
.mini-paw { display: inline-flex; color: #ac775d; }
.hero-world { width: 100%; min-width: 0; position: relative; align-self: center; padding: 0 0 18px; }
.scene-art { display: block; width: 100%; max-width: 100%; margin-left: 0; }
.scene-caption { position: absolute; bottom: 30px; left: 17%; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; background: #fffdf8; border: 1px solid #e4d9c6; border-radius: 30px; box-shadow: 0 4px 10px #59443207; color: #806754; font-size: 10px; transform: rotate(-3deg); }
.scene-caption .icon { color: #ba8479; }
.scene-sticker { position: absolute; top: 32px; right: -1px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 91px; height: 91px; padding: 10px; border: 1px dashed #c1ad80; outline: 5px solid #f2e6c6; background: #f2e6c6; border-radius: 50%; color: #847044; font-family: var(--serif); font-style: italic; font-size: 12px; line-height: 1.2; text-align: center; transform: rotate(10deg); }
.scene-sticker .icon { margin-top: 3px; }
.home-progress { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 0; align-items: center; padding: 24px 29px; margin: 24px 0 65px; background: #f0f1e5; border: 1px solid #e0e4d2; border-radius: 17px; }
.progress-intro { display: flex; gap: 13px; align-items: center; padding-right: 18px; }
.progress-intro > .icon { color: #759078; }
.progress-intro strong { display: block; font-size: 12px; font-weight: 650; }
.progress-intro span:not(.art) { display: block; color: #818174; font-size: 10px; }
.home-stat { text-align: center; border-left: 1px solid #d9dfcc; }
.home-stat strong { display: block; color: var(--teal); font-family: var(--serif); font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.home-stat span { display: block; margin-top: 3px; color: #7f8071; font-size: 10px; }
.section-intro { text-align: center; }
.section-intro h2 { margin: 12px 0 13px; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.section-intro > p:last-child { color: var(--muted); font-size: 12px; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; margin-top: 32px; }
.path-card { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 28px 25px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.path-card:hover { transform: translateY(-4px); border-color: #c8d3be; box-shadow: 0 14px 32px #59443210; }
.path-card h3 { margin: 12px 0 10px; font-size: 26px; }
.path-card p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 260px; }
.path-art { display: flex; gap: 7px; align-items: center; justify-content: center; height: 83px; margin: 2px 0 25px; }
.word-mini { position: relative; font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--teal); letter-spacing: 13px; padding: 9px 21px; background: repeating-linear-gradient(90deg, #f1ead9 0 43px, #fffcf6 43px 50px); background-size: 150px 50px; background-repeat: no-repeat; background-position: center; transform: rotate(-5deg); }
.word-mini > .icon { position: absolute; right: -15px; top: 1px; color: #c78678; transform: rotate(17deg); }
.crush-mini { gap: 9px; padding-left: 0; }
.crush-mini > .icon { width: 51px; height: 51px; padding: 11px; border-radius: 16px; color: #a96058; background: #f6ded5; transform: rotate(-10deg); box-shadow: inset 0 -3px 0 #dfb4a733; }
.crush-mini > .icon:nth-child(2) { color: #a47735; background: #f8e8c2; transform: translateY(-8px) rotate(8deg); }
.crush-mini > .icon:nth-child(3) { color: #577f5d; background: #e2eace; transform: rotate(9deg); }
.path-pet { display: block; width: 111px; height: 106px; margin: -11px 0 15px; }
.path-pet svg { max-height: 115px; }
.crush-path .tag { background: #f9e6d9; color: #9a6649; }
.sanctuary-path .tag { background: #ede5f0; color: #7e6884; }
.path-cta { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.kindness-note { display: flex; align-items: center; gap: 17px; margin-top: 43px; padding: 25px 28px; border-top: 1px dashed #d9d0bf; border-bottom: 1px dashed #d9d0bf; }
.kindness-note > .icon { color: #af8b61; }
.kindness-note strong { font-size: 12px; font-weight: 650; }
.kindness-note p { max-width: 650px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.kindness-note > a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 600; text-decoration: none; }
#site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 93px; width: min(1240px, calc(100% - 80px)); margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px 25px; padding: 20px 0; font-size: 10px; color: #7d726e; }
.footer-inner > p { display: inline-flex; gap: 7px; align-items: center; }
.footer-inner > p .icon { color: #b78879; }
.footer-inner a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #756b67; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.company-credit { font-weight: 600; }
.company-credit img { display: block; border-radius: 5px; flex-shrink: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 35px; }
.page-heading h1 { margin-top: 12px; font-size: clamp(2.15rem, 3.5vw, 3.1rem); }
.page-description { margin-top: 13px; font-size: 13px; color: var(--muted); max-width: 710px; }
.page-heading > .button { flex-shrink: 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .85fr); align-items: start; gap: 32px; max-width: 1050px; margin: 0 auto; }
.puzzle-card { min-width: 0; padding: 27px; background: var(--card); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.puzzle-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.puzzle-topline .tag { font-size: 9px; }
.puzzle-count { color: #82766e; font-size: 11px; font-variant-numeric: tabular-nums; }
.word-board, .crush-board { --size: 6; display: grid; gap: 7px; width: 100%; max-width: 480px; margin-inline: auto; padding: 10px; border: 1px solid #e7dfce; border-radius: 15px; background: #f4eedf; touch-action: none; user-select: none; -webkit-user-select: none; }
.board-row { display: grid; grid-template-columns: repeat(var(--size), minmax(0, 1fr)); gap: 7px; min-width: 0; }
.board-row > [role="gridcell"] { min-width: 0; display: flex; }
.word-tile, .crush-tile { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 1; border: 1px solid #e6dcc7; border-radius: 10px; background: #fffcf4; box-shadow: 0 2px 0 #e2d7c2; font-family: var(--sans); font-size: clamp(14px, 2vw, 23px); font-weight: 600; line-height: 1; padding: 0; color: #5d524d; touch-action: none; -webkit-user-select: none; user-select: none; transition: background-color 110ms, color 110ms, border-color 110ms, transform 110ms, box-shadow 110ms; }
.word-tile:hover { background: #f9e4c7; border-color: #d2b48b; }
.word-tile.solved { color: #2d655a; background: #dcead6; border-color: #b6c8a9; box-shadow: 0 2px 0 #b6c8a9; }
.word-tile.selected, .crush-tile.selected { color: #fffdf4; background: var(--teal); border-color: var(--teal-dark); box-shadow: 0 2px 0 var(--teal-dark), inset 0 0 0 2px #b8d7ba; transform: translateY(-1px); }
.word-tile.hinted, .crush-tile.hinted { border: 2px dashed #9c6330; box-shadow: 0 0 0 2px #e8c18a; background: #f9dfb1; color: #674622; }
.word-tile:focus-visible, .crush-tile:focus-visible { position: relative; z-index: 2; outline: 3px solid #96531f; outline-offset: 2px; }
.selection-preview { min-height: 43px; display: flex; align-items: center; justify-content: center; text-align: center; margin: 11px 0 7px; font-size: 11px; font-weight: 500; color: #8b7561; overflow-wrap: anywhere; }
.word-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 5px 0 25px; }
.word-list li { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e5dece; border-radius: 8px; color: #776c5e; background: #faf7ee; font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.word-list li .icon { color: #9b9f84; }
.word-list li.found { color: #2e6357; background: #e5eee0; border-color: #cad9bf; text-decoration: line-through; text-decoration-color: #719369; }
.word-list li.found .icon { color: #427341; }
.puzzle-buttons { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 5px 9px; }
.puzzle-buttons .button, .puzzle-buttons .text-button { font-size: 11px; padding: 11px 10px; gap: 7px; }
.puzzle-buttons .icon svg { width: 17px; height: 17px; }
.control-note { margin: 19px auto 0; max-width: 440px; color: #81766e; font-size: 10px; line-height: 1.75; text-align: center; }
.friend-panel { padding: 25px 23px; min-width: 0; text-align: center; }
.friend-panel > .eyebrow { font-size: 9px; }
.friend-portrait { width: 205px; height: 215px; max-width: 100%; position: relative; margin: 27px auto 16px; border-radius: 48% 48% 42% 42%; background: #f4e8cf; }
.friend-art { width: 195px; max-width: 100%; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.pet-dog { background: #e8ead9; }
.portrait-spark { position: absolute; right: 1px; top: 25px; color: #b38a5d; font-size: 35px; transform: rotate(12deg); }
.friend-panel h2 { font-size: 34px; }
.friend-trait { margin-top: 6px !important; font-size: 10px !important; font-weight: 700; color: #9d7156 !important; text-transform: uppercase; letter-spacing: .10em; }
.friend-panel > p:not(.eyebrow) { margin: 14px auto 0; max-width: 270px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.friend-progress { display: flex; justify-content: center; gap: 11px; margin-top: 25px; }
.progress-paw { display: grid; place-items: center; width: 37px; height: 37px; color: #c0bba9; background: #f0eddf; border: 1px dashed #d3cebb; border-radius: 50%; }
.progress-paw.done { color: var(--teal); background: #e1ead9; border: 1px solid #bfceaf; }
.friend-caption { font-size: 10px !important; }
.care-mini-note { margin-top: 28px; padding: 17px; background: #eeeee1; border: 1px solid #e0e3d2; border-radius: 14px; display: flex; align-items: flex-start; text-align: left; gap: 10px; }
.care-mini-note > .icon { color: #788e73; padding-top: 3px; }
.care-mini-note p { color: #6f7566; font-size: 10px; line-height: 1.8; }
.crush-board { gap: 8px; padding: 11px; background: #f1eadd; }
.crush-board .board-row { gap: 8px; }
.crush-tile { border-radius: 15px; border-color: #decdc0; transition: transform 140ms ease, box-shadow 140ms ease; }
.crush-tile > .icon { width: 48%; max-width: 32px; }
.crush-tile > .icon > svg { width: 100%; height: auto; stroke-width: 1.8; }
.supply-0 { color: #a05657; background: #f6d9d0; border-color: #e9b7ac; box-shadow: 0 3px 0 #dfb2a5; }
.supply-1 { color: #4b795d; background: #dfeace; border-color: #bacd9e; box-shadow: 0 3px 0 #bed1a3; }
.supply-2 { color: #597993; background: #d8e7eb; border-color: #aecad5; box-shadow: 0 3px 0 #aecbd2; }
.supply-3 { color: #a27b32; background: #f7e5b8; border-color: #e5ca89; box-shadow: 0 3px 0 #e4c987; }
.supply-4 { color: #82617f; background: #e9ddea; border-color: #cfb6d0; box-shadow: 0 3px 0 #cdb7cf; }
.crush-tile:hover:not(:disabled):not(.selected) { transform: translateY(-2px) rotate(-2deg); filter: brightness(1.025); }
.crush-tile.selected { transform: translateY(-2px); outline: 2px solid #244f45; outline-offset: 2px; }
.crush-tile.matching { animation: match-pop 330ms ease both; }
.crush-tile:disabled:not(.matching) { opacity: .85; }
.crush-scoreline { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.crush-scoreline > div { display: flex; flex-direction: column; }
.crush-scoreline > div > span { color: #85786a; font-size: 8px; font-weight: 650; letter-spacing: .1em; }
.crush-scoreline strong { color: var(--teal); font-family: var(--serif); font-weight: 500; font-size: 33px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.goal-meter { overflow: hidden; height: 9px; border-radius: 20px; background: #ede4d2; border: 1px solid #e6dac1; }
.goal-meter > span { display: block; height: 100%; min-width: 0; max-width: 100%; border-radius: inherit; background: #8fa681; transition: width 200ms ease; }
.goal-label { margin: 8px 0 20px; color: #8c7963; font-size: 10px; text-align: center; }
.basket-pet { width: 172px; max-width: 100%; margin: 16px auto 8px; }
.crush-side h2 { font-size: 29px; }
.supply-key { display: grid; grid-template-columns: 1fr; list-style: none; gap: 10px; width: fit-content; margin: 23px auto 0; text-align: left; }
.supply-key li { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #756c66; }
.supply-symbol { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 9px; border-width: 1px; border-style: solid; }
.empty-sanctuary { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 20px 40px; }
.empty-world { display: block; width: min(440px, 100%); }
.empty-sanctuary h2 { margin: 14px 0; }
.empty-sanctuary p { max-width: 480px; color: var(--muted); font-size: 13px; }
.empty-sanctuary .button { margin-top: 26px; }
.sanctuary-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 28px; }
.pet-roster { display: grid; gap: 13px; min-width: 0; }
.pet-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 12px 15px 17px; background: #f6f0e4; border: 1px solid #e7decd; border-radius: 17px; text-align: center; transition: background-color 140ms, border-color 140ms; }
.pet-card:hover { background: #f2eddd; border-color: #c8cfb8; }
.pet-card.active { border: 2px solid #7b9b7d; background: #edf0e0; padding: 11px 14px 16px; }
.roster-art { width: 89px; height: 91px; }
.pet-card > strong { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.4; }
.pet-card > span:not(.art) { font-size: 10px; color: #7c776d; }
.care-panel { padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); min-width: 0; }
.care-pet-intro { display: flex; align-items: center; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.care-pet-art { width: 131px; max-width: 30%; }
.care-pet-intro h2 { margin: 10px 0; font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
.care-pet-intro p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.care-stamps { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0; }
.care-stamp { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px dashed #d8d0c0; border-radius: 8px; color: #887e6f; font-size: 10px; }
.care-stamp .icon { color: #b6a991; }
.care-stamp.earned { background: #e8efdf; color: var(--teal-dark); border: 1px solid #becdb1; }
.care-stamp.earned .icon { color: var(--teal); }
.care-question h3 { margin: 15px 0 13px; font-size: 28px; }
.question-text { font-size: 14px; line-height: 1.85; color: #665960; }
.care-options { display: grid; gap: 12px; margin: 23px 0; }
.care-option { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 66px; padding: 13px 17px; border: 1px solid #e2d9c8; border-radius: 13px; background: #faf6ed; font-size: 12px; line-height: 1.65; text-align: left; }
.care-option:hover:not(:disabled) { background: #edf1e3; border-color: #adbf9e; }
.care-option:disabled { opacity: .67; }
.option-marker { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ded2bd; background: #fffcf4; color: #8d725a; font-family: var(--serif); font-size: 15px; }
.care-feedback { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; padding: 20px; border: 1px solid #c9d7be; border-radius: 14px; background: #eaf0e2; color: #47684c; }
.care-feedback > .icon { margin-top: 3px; }
.care-feedback strong { font-size: 13px; }
.care-feedback p { margin-top: 8px; font-size: 12px; line-height: 1.85; }
.care-feedback .button { margin-top: 18px; }
.care-feedback.retry { background: #fbebd9; border-color: #e9d0ae; color: #846248; }
.source-links { display: flex; align-items: center; gap: 5px 12px; flex-wrap: wrap; margin-top: 20px; color: #8a7c70; font-size: 9px; }
.source-links a { display: inline-flex; align-items: center; min-height: 28px; font-size: 9px; }
.learning-boundary { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; color: #8b7f74; font-size: 10px; line-height: 1.8; }
.learning-boundary > .icon { padding-top: 2px; }
.care-complete { padding: 15px 0; }
.care-complete h3 { margin: 12px 0 16px; font-size: 30px; }
.care-complete p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: var(--muted); }
.care-complete .button { margin: 22px 8px 0 0; }
.badge-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.badge-shelf h2 { grid-column: 1 / -1; text-align: center; font-size: 27px; margin-bottom: 6px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 23px 14px; border: 1px dashed #d9d1c1; border-radius: 16px; color: #968b78; text-align: center; }
.badge > .icon { padding: 13px; width: 55px; height: 55px; margin-bottom: 3px; border-radius: 50%; background: #eee8d9; color: #a89a81; }
.badge > span:not(.art) { font-size: 12px; font-weight: 600; }
.badge small { font-size: 9px; }
.badge.earned { background: #f4eedb; border: 1px solid #e0d6b8; color: #7c6b42; }
.badge.earned > .icon { color: #9d7838; background: #efdeb4; }
.guide-notice { display: flex; align-items: flex-start; gap: 17px; padding: 23px 26px; border: 1px solid #e1d4b9; border-radius: 15px; background: #f5ecd9; margin-bottom: 28px; color: #7b684b; }
.guide-notice > .icon { padding-top: 3px; }
.guide-notice strong { font-size: 12px; }
.guide-notice p { font-size: 11px; line-height: 1.85; margin-top: 7px; }
.guide-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
input[type="search"], select { min-width: 0; min-height: 46px; padding: 11px 14px; color: var(--ink); background: var(--card); border: 1px solid #dcd4c6; border-radius: 10px; font-size: 13px; }
input[type="search"] { width: min(390px, 100%); }
input::placeholder { color: #8c8177; opacity: 1; }
.filter-buttons { display: flex; gap: 5px; padding: 4px; background: #eeeade; border: 1px solid #e2ddcf; border-radius: 12px; }
.filter-button { min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #7a7165; font-size: 11px; font-weight: 600; }
.filter-button:hover { color: var(--teal-dark); background: #f6f5eb; }
.filter-button.active { color: var(--teal-dark); background: var(--card); border-color: #e0dacb; box-shadow: 0 2px 5px #42362205; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.guide-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); box-shadow: var(--shadow); }
.guide-icon { display: grid; place-items: center; width: 45px; height: 45px; background: #edf0e1; color: #76916e; border-radius: 14px; margin-bottom: 20px; }
.guide-card h2 { font-size: 23px; line-height: 1.25; margin-bottom: 12px; }
.guide-card > p, .guide-card details p { font-size: 12px; line-height: 1.85; color: var(--muted); }
.guide-card details { margin-top: 14px; border-top: 1px solid #ece6d9; padding-top: 4px; }
.guide-card summary { cursor: pointer; padding: 11px 0; min-height: 44px; color: var(--teal-dark); font-size: 11px; font-weight: 650; }
.guide-card details p { margin: 8px 0 14px; }
.guide-card details[open] summary { margin-bottom: 5px; }
.empty-search { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.guide-references { margin-top: 56px; padding-top: 35px; border-top: 1px dashed #dcd1bf; }
.guide-references h2 { margin: 13px 0 14px; font-size: 32px; }
.guide-references > p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.guide-references ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; list-style: none; margin-top: 24px; }
.guide-references li { padding: 14px 0; border-bottom: 1px solid #e9e1d3; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.guide-references li a { display: inline-flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 32px; font-size: 11px; font-weight: 600; text-decoration: none; }
.guide-references li a:hover { text-decoration: underline; }
.guide-references li > span { color: #8a7f73; font-size: 9px; }
#game-dialog { color: var(--ink); background: var(--card); width: min(570px, calc(100% - 32px)); max-height: min(88dvh, 880px); margin: auto; padding: 29px; border: 1px solid #e0d8c8; border-radius: 25px; box-shadow: 0 30px 90px #30272c35; overscroll-behavior: contain; }
#game-dialog::backdrop { background: #443b385c; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-header h2 { font-size: 29px; line-height: 1.23; padding: 5px 0; }
.dialog-header .icon-button { margin: -5px -9px 0 0; }
.dialog-content { color: var(--muted); font-size: 13px; }
.dialog-content > p { margin: 13px 0; line-height: 1.85; }
.dialog-content > .icon { display: flex; justify-content: center; width: fit-content; margin: 25px auto 20px; color: #789471; }
.dialog-pet { display: block; width: 158px; margin: 12px auto 20px; }
.dialog-lead { color: var(--ink); font-family: var(--serif); font-size: 21px; line-height: 1.5 !important; text-align: center; }
.dialog-pet ~ p { text-align: center; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-actions > .button { flex: 1 1 190px; }
.dialog-actions > .text-button { width: 100%; }
.small-print { color: #8d8174; font-size: 10px; line-height: 1.8; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid #ebe5d9; min-width: 0; }
.setting-row > span { min-width: 0; }
.setting-row strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.setting-row small { display: block; max-width: 255px; margin-top: 3px; color: #8b8175; font-size: 10px; line-height: 1.75; }
.setting-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 49px; width: 49px; height: 28px; margin: 8px 0; border-radius: 25px; border: 1px solid #cec7b7; background: #ded8ca; cursor: pointer; position: relative; }
.setting-row input[type="checkbox"]::before { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fffcf7; box-shadow: 0 1px 3px #40382e22; transition: transform 140ms; }
.setting-row input[type="checkbox"]:checked { background: var(--teal); border-color: var(--teal); }
.setting-row input[type="checkbox"]:checked::before { transform: translateX(21px); }
.setting-row input[type="range"] { flex: 0 1 130px; width: 130px; min-width: 80px; height: 44px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.setting-row select { max-width: 215px; width: 48%; font-size: 11px; padding-inline: 9px; }
.danger-text { color: #a35f55; font-size: 11px; }
.danger-text:hover { color: #8f4f45; background: #faebe2; }
.danger-button { background: #a35f55; border-color: #a35f55; box-shadow: 0 3px 0 #754940; }
.danger-button:hover:not(:disabled) { background: #8c4f46; border-color: #8c4f46; }
.learned-note { padding: 20px 0; border-bottom: 1px solid var(--line); }
.learned-note h3 { font-size: 23px; margin-bottom: 10px; }
.learned-note p { font-size: 12px; line-height: 1.85; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 14px 22px; transform: translateX(-50%); color: #fff9ed; background: #3e6357; border: 1px solid #71907b; border-radius: 14px; box-shadow: 0 8px 30px #253b2924; font-size: 12px; line-height: 1.65; text-align: center; pointer-events: none; }
#celebration-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.confetti { position: absolute; top: 16vh; left: var(--x); opacity: 0; font-size: 25px; line-height: 1; animation: confetti-fall 1300ms cubic-bezier(.15,.65,.4,1) var(--delay) both; will-change: transform, opacity; }
.confetti-0 { color: #dca365; }
.confetti-1 { color: #d99691; }
.confetti-2 { color: #87a486; font-size: 16px; }
.confetti-3 { color: #9f91b0; font-size: 23px; }
.gentle-celebration { position: absolute; top: 20%; left: 50%; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); padding: 15px 24px; border: 1px solid #d6c7aa; border-radius: 50px; background: #fff8e9; box-shadow: 0 5px 20px #5d432719; color: #8f6352; font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.crush-shake { animation: joy-shake 420ms ease-out both; }
.noscript { margin: 30px; padding: 25px; border: 1px solid var(--line); border-radius: 15px; text-align: center; }
@keyframes joy-shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 15% { transform: translate(-5px, 2px) rotate(-.25deg); } 30% { transform: translate(5px, -3px) rotate(.25deg); } 45% { transform: translate(-4px, -2px) rotate(-.18deg); } 60% { transform: translate(3px, 2px) rotate(.12deg); } 75% { transform: translate(-2px, 0); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0); } 12% { opacity: .95; } 80% { opacity: .85; } 100% { opacity: 0; transform: translate3d(var(--drift), 68vh, 0) rotate(var(--turn)); } }
@keyframes match-pop { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(1.1); opacity: 1; filter: brightness(1.09); } 100% { transform: scale(.6); opacity: .35; } }
@media (min-width: 1500px) { .home-hero { min-height: 525px; } .hero-copy h1 { font-size: 71px; } }
@media (max-width: 1180px) {
  .header-inner { gap: 15px; padding-inline: 28px; }
  .main-nav { gap: 0; }
  .main-nav a { font-size: 11px; padding-inline: 8px; }
  .game-brand strong { font-size: 26px; }
  .game-brand { gap: 9px; }
  .brand-paw { width: 42px; height: 42px; }
  .header-actions { gap: 3px; }
  #main, .footer-inner { width: calc(100% - 64px); }
  .hero-copy h1 { font-size: 54px; }
  .hero-description { font-size: 14px; }
  .hero-buttons { gap: 8px; }
  .hero-buttons .button { font-size: 12px; padding-inline: 13px; }
  .scene-sticker { top: 12px; width: 80px; height: 80px; right: 4px; font-size: 11px; }
  .scene-caption { bottom: 18px; }
  .home-progress { padding-inline: 22px; }
  .path-card { padding: 23px; }
  .game-layout { gap: 23px; }
  .puzzle-card { padding: 23px; }
  .guide-card { padding: 23px; }
}
@media (max-width: 1010px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; padding-top: 18px; padding-bottom: 9px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 12px; }
  .main-nav a { font-size: 11px; padding-inline: 13px; }
  #main { padding-top: 35px; }
  .home-hero { min-height: 425px; gap: 8px; }
  .hero-copy h1 { font-size: 46px; margin-block: 17px 20px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero-description { max-width: 360px; font-size: 13px; }
  .hero-buttons { margin-top: 20px; }
  .hero-buttons .button { font-size: 11px; }
  .hero-buttons .text-button { font-size: 11px; padding-block: 7px; }
  .hero-note { font-size: 9px; margin-top: 14px; }
  .scene-sticker { width: 69px; height: 69px; font-size: 10px; top: 1px; }
  .scene-sticker .icon { display: none; }
  .scene-caption { bottom: 11px; left: 12%; padding: 7px 11px; font-size: 9px; }
  .home-progress { grid-template-columns: 1.3fr repeat(3, 1fr); padding: 20px; margin: 13px 0 49px; }
  .progress-intro { gap: 10px; }
  .progress-intro > .icon { display: none; }
  .progress-intro strong { font-size: 11px; }
  .progress-intro span:not(.art) { font-size: 9px; }
  .home-stat span { font-size: 9px; }
  .path-grid { gap: 17px; }
  .path-card { padding: 22px 19px; }
  .path-card h3 { font-size: 25px; }
  .path-card p { font-size: 11px; }
  .crush-mini { gap: 6px; }
  .crush-mini > .icon { width: 42px; height: 42px; padding: 9px; }
  .path-cta { font-size: 10px; gap: 8px; }
  .kindness-note { padding-inline: 17px; }
  .kindness-note > a { max-width: 160px; }
  .friend-panel { padding: 23px 12px; }
  .game-layout { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .85fr); gap: 20px; }
  .puzzle-card { padding: 20px; }
  .word-board, .crush-board { gap: 5px; padding: 8px; }
  .board-row, .crush-board .board-row { gap: 5px; }
  .crush-scoreline { gap: 10px; }
  .crush-scoreline > .tag { font-size: 8px; padding: 4px 7px; }
  .crush-scoreline > .tag .icon { display: none; }
  .sanctuary-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 20px; }
  .care-panel { padding: 25px; }
  .care-pet-intro { gap: 15px; }
  .care-stamps { gap: 6px; }
  .care-stamp { font-size: 9px; padding-inline: 7px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #main, .footer-inner { width: calc(100% - 40px); }
  #main { padding: 32px 0 45px; }
  .header-inner { padding-inline: 20px; }
  .home-hero { grid-template-columns: 1fr; gap: 0; margin-top: 0; min-height: auto; }
  .hero-copy { padding: 4px 0 0; text-align: center; }
  .hero-copy > .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .hero-copy h1 { font-size: clamp(42px, 7.8vw, 60px); line-height: 1.06; max-width: 600px; margin: 19px auto 22px; }
  .hero-description { margin: 0 auto; max-width: 430px; font-size: 14px; }
  .hero-buttons { justify-content: center; margin-top: 23px; gap: 10px; }
  .hero-buttons .button { font-size: 12px; padding-inline: 17px; }
  .hero-note { justify-content: center; margin-top: 19px; font-size: 10px; }
  .hero-world { width: min(500px, 100%); margin: 8px auto 0; padding: 0 0 8px; }
  .scene-art { width: 100%; margin: 0; }
  .scene-sticker { right: 6px; top: 19px; width: 79px; height: 79px; font-size: 11px; }
  .scene-sticker .icon { display: inline-flex; }
  .scene-caption { bottom: 14px; left: 21%; font-size: 10px; }
  .home-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 23px 0 43px; padding: 18px 10px 21px; row-gap: 20px; }
  .progress-intro { grid-column: 1 / -1; padding: 0 0 17px; margin-inline: 10px; justify-content: center; border-bottom: 1px solid #d9dfcc; }
  .progress-intro > .icon { display: inline-flex; }
  .progress-intro strong { font-size: 12px; }
  .progress-intro span:not(.art) { font-size: 10px; }
  .home-stat:nth-child(2) { border-left: 0; }
  .home-stat { padding: 0 6px; }
  .home-stat strong { font-size: 27px; }
  .home-stat span { font-size: 9px; line-height: 1.5; }
  .section-intro h2 { font-size: 31px; max-width: 400px; margin-inline: auto; }
  .section-intro > p:last-child { max-width: 360px; margin-inline: auto; font-size: 12px; }
  .path-grid { grid-template-columns: 1fr; max-width: 510px; margin: 27px auto 0; gap: 18px; }
  .path-card { padding: 26px; }
  .path-card h3 { font-size: 28px; }
  .path-card p { max-width: 340px; font-size: 12px; }
  .path-card .tag { font-size: 9px; }
  .path-art { margin-bottom: 16px; height: 68px; }
  .path-pet { width: 100px; height: 97px; margin-bottom: 6px; }
  .path-cta { padding-top: 20px; font-size: 12px; }
  .crush-mini > .icon { width: 49px; height: 49px; padding: 10px; }
  .kindness-note { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 23px 9px; margin-top: 35px; }
  .kindness-note > div { flex: 1; min-width: 220px; }
  .kindness-note > .icon { padding-top: 4px; }
  .kindness-note > a { margin-left: 34px; max-width: none; justify-content: flex-start; }
  .footer-inner { justify-content: center; gap: 2px 25px; padding-block: 21px; text-align: center; }
  .footer-inner > p { flex-basis: 100%; justify-content: center; margin-bottom: 7px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 25px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .page-heading h1 { font-size: clamp(31px, 5.1vw, 40px); margin-top: 10px; }
  .page-description { font-size: 12px; margin-top: 11px; }
  .page-heading > .button { min-height: 44px; padding: 10px 12px; gap: 6px; font-size: 11px; margin-top: 22px; }
  .page-heading > .button .icon { display: none; }
  .game-layout { grid-template-columns: minmax(0, 1fr); max-width: 570px; gap: 23px; }
  .puzzle-card { padding: 25px; }
  .word-board, .crush-board { gap: 7px; padding: 10px; }
  .board-row, .crush-board .board-row { gap: 7px; }
  .word-tile { font-size: 22px; }
  .friend-panel { padding: 21px; border: 1px solid #e7dfce; border-radius: 22px; background: #f7f2e5; }
  .friend-portrait { margin-top: 21px; width: 170px; height: 172px; }
  .friend-art { width: 160px; }
  .friend-panel h2 { font-size: 31px; }
  .friend-panel > p:not(.eyebrow) { max-width: 360px; }
  .friend-progress { margin-top: 20px; }
  .care-mini-note { max-width: 380px; margin-inline: auto; margin-top: 23px; }
  .basket-pet { width: 140px; margin-block: 11px 6px; }
  .supply-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 25px; }
  .sanctuary-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pet-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
  .pet-card { padding: 13px 11px; }
  .pet-card.active { padding: 12px 10px; }
  .roster-art { width: 75px; height: 77px; }
  .pet-card > strong { font-size: 22px; }
  .pet-card > span:not(.art) { font-size: 9px; }
  .care-panel { padding: 27px; }
  .care-pet-intro h2 { font-size: 28px; }
  .care-stamp { font-size: 10px; padding-inline: 10px; }
  .care-question h3 { font-size: 27px; }
  .badge-shelf { gap: 12px; margin-top: 34px; }
  .badge { padding: 20px 10px; }
  .badge > span:not(.art) { font-size: 10px; }
  .badge small { font-size: 8px; }
  .guide-tools { flex-direction: column; align-items: stretch; gap: 13px; }
  input[type="search"] { width: 100%; }
  .filter-buttons { justify-content: stretch; }
  .filter-button { flex: 1; }
  .guide-notice { padding: 20px; gap: 12px; }
  .guide-grid { gap: 16px; }
  .guide-card { padding: 20px; }
  .guide-card h2 { font-size: 22px; }
  .guide-references { margin-top: 40px; }
}
@media (max-width: 480px) {
  #main, .footer-inner { width: calc(100% - 32px); }
  #main { padding-top: 26px; }
  .header-inner { padding: 16px 13px 10px; gap: 12px 5px; }
  .game-brand { gap: 7px; }
  .brand-paw { width: 35px; height: 38px; border-radius: 12px; }
  .brand-paw .icon svg { width: 23px; height: 23px; }
  .game-brand strong { font-size: 24px; }
  .game-brand small { font-size: 6px; letter-spacing: .12em; margin-top: 5px; }
  .header-actions { gap: 0; }
  .star-wallet { min-width: 42px; padding: 5px 7px; gap: 4px; font-size: 11px; }
  .star-wallet .icon svg { width: 16px; height: 16px; }
  .main-nav { flex-wrap: wrap; column-gap: 3px; row-gap: 1px; }
  .main-nav a { font-size: 10px; min-height: 40px; padding: 8px 11px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .hero-copy > .eyebrow .icon { margin-right: 3px; }
  .hero-copy h1 { font-size: 42px; margin-top: 19px; }
  .hero-description { font-size: 13px; line-height: 1.85; max-width: 342px; }
  .hero-buttons { flex-direction: column; gap: 3px; margin-top: 23px; }
  .hero-buttons .button { width: auto; padding: 14px 17px; font-size: 12px; }
  .hero-buttons .text-button { min-height: 44px; }
  .hero-note { font-size: 8px; gap: 6px; margin-top: 13px; }
  .hero-world { margin-top: 16px; }
  .scene-sticker { top: 8px; width: 61px; height: 61px; padding: 8px; font-size: 9px; right: 4px; outline-width: 3px; }
  .scene-sticker .icon { display: none; }
  .scene-caption { font-size: 8px; bottom: 4px; left: 17%; gap: 5px; padding: 6px 10px; }
  .scene-caption .icon svg { width: 12px; height: 12px; }
  .home-progress { margin-top: 23px; padding-inline: 8px; }
  .progress-intro { gap: 10px; margin-inline: 3px; }
  .progress-intro strong { font-size: 11px; }
  .progress-intro span:not(.art) { font-size: 9px; }
  .home-stat strong { font-size: 26px; }
  .home-stat span { font-size: 8px; }
  .section-intro .eyebrow { font-size: 8px; }
  .section-intro h2 { font-size: 29px; max-width: 285px; }
  .section-intro > p:last-child { font-size: 11px; max-width: 285px; }
  .path-card { padding: 25px; }
  .kindness-note { padding-inline: 3px; }
  .kindness-note > div { min-width: 200px; }
  .kindness-note strong { font-size: 11px; }
  .kindness-note p { font-size: 10px; }
  .footer-inner { gap: 0; padding-block: 19px; }
  .footer-inner > a { flex-basis: 100%; justify-content: center; }
  .page-heading h1 { font-size: 32px; }
  .page-heading .eyebrow { font-size: 7px; letter-spacing: .08em; }
  .page-heading > .button { padding-inline: 10px; margin-top: 19px; }
  .page-description { font-size: 11px; }
  .puzzle-card { padding: 16px 12px 20px; border-radius: 18px; }
  .puzzle-topline { gap: 8px; padding-inline: 3px; margin-bottom: 17px; }
  .puzzle-topline .tag { font-size: 8px; padding-inline: 7px; letter-spacing: .05em; }
  .puzzle-count { font-size: 9px; }
  .word-board, .crush-board { gap: 5px; padding: 7px; border-radius: 12px; }
  .board-row, .crush-board .board-row { gap: 5px; }
  .word-tile { font-size: 18px; border-radius: 8px; }
  .crush-tile { border-radius: 11px; }
  .selection-preview { min-height: 36px; font-size: 9px; margin-block: 9px 7px; }
  .word-list { gap: 6px; margin-bottom: 18px; }
  .word-list li { padding: 6px 7px; gap: 5px; font-size: 9px; }
  .word-list .icon svg { width: 13px; height: 13px; }
  .puzzle-buttons { gap: 4px; }
  .puzzle-buttons .button, .puzzle-buttons .text-button { font-size: 10px; padding-inline: 8px; gap: 5px; }
  .puzzle-buttons .icon svg { width: 16px; height: 16px; }
  .control-note { font-size: 9px; margin-top: 16px; padding-inline: 5px; }
  .crush-scoreline { gap: 10px; padding-inline: 3px; margin-bottom: 13px; }
  .crush-scoreline > div > span { font-size: 7px; letter-spacing: .05em; }
  .crush-scoreline strong { font-size: 28px; }
  .crush-scoreline > .tag { font-size: 7px; letter-spacing: .04em; }
  .goal-label { font-size: 9px; margin-bottom: 16px; }
  .friend-panel { padding: 22px 18px; }
  .friend-panel > p:not(.eyebrow) { font-size: 11px; }
  .friend-progress { gap: 9px; }
  .progress-paw { width: 34px; height: 34px; }
  .supply-key { gap: 11px 19px; }
  .supply-key li { font-size: 10px; gap: 8px; }
  .care-panel { padding: 20px 17px; border-radius: 19px; }
  .care-pet-intro { gap: 10px; }
  .care-pet-intro h2 { font-size: 25px; }
  .care-pet-intro p:not(.eyebrow) { font-size: 10px; }
  .care-pet-intro .eyebrow { font-size: 7px; letter-spacing: .07em; }
  .care-pet-art { max-width: 29%; }
  .care-stamps { gap: 6px; padding-block: 19px; }
  .care-stamp { gap: 5px; padding: 7px; font-size: 8px; }
  .care-stamp .icon svg { width: 15px; height: 15px; }
  .care-question h3 { font-size: 24px; }
  .question-text { font-size: 12px; }
  .care-option { padding: 12px; gap: 10px; font-size: 11px; }
  .option-marker { width: 27px; height: 27px; flex-basis: 27px; font-size: 13px; }
  .care-feedback { padding: 15px 13px; gap: 9px; }
  .care-feedback strong { font-size: 12px; }
  .care-feedback p { font-size: 11px; }
  .care-feedback .button { font-size: 11px; padding-inline: 13px; }
  .learning-boundary { font-size: 9px; }
  .care-complete h3 { font-size: 26px; }
  .care-complete p:not(.eyebrow) { font-size: 12px; }
  .care-complete .button { margin-right: 0; width: 100%; font-size: 11px; }
  .badge-shelf { grid-template-columns: 1fr; gap: 10px; }
  .badge-shelf h2 { font-size: 25px; }
  .badge { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 3px 13px; padding: 15px 18px; text-align: left; }
  .badge > .icon { grid-row: 1 / 3; width: 45px; height: 45px; padding: 11px; margin: 0; }
  .badge > span:not(.art) { align-self: end; font-size: 11px; }
  .badge small { align-self: start; font-size: 9px; }
  .guide-notice { padding: 17px; gap: 11px; }
  .guide-notice > .icon svg { width: 20px; height: 20px; }
  .guide-notice strong { font-size: 11px; }
  .guide-notice p { font-size: 10px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 24px; }
  .guide-card h2 { font-size: 25px; }
  .filter-button { font-size: 10px; padding-inline: 10px; }
  .guide-references ul { grid-template-columns: 1fr; }
  .guide-references h2 { font-size: 29px; }
  .guide-references > p:not(.eyebrow) { font-size: 11px; }
  #game-dialog { width: calc(100% - 24px); padding: 22px 19px; border-radius: 21px; max-height: 88dvh; }
  .dialog-header h2 { font-size: 25px; }
  .dialog-header .icon-button { margin-right: -7px; }
  .dialog-content { font-size: 12px; }
  .dialog-lead { font-size: 20px; }
  .dialog-actions { gap: 11px; }
  .dialog-actions .button { font-size: 12px; }
  .setting-row { gap: 12px; padding-block: 16px; }
  .setting-row strong { font-size: 11px; }
  .setting-row small { font-size: 9px; }
  .setting-row select { font-size: 10px; padding-inline: 7px; max-width: 155px; }
  .setting-row input[type="range"] { width: 105px; flex-basis: 105px; }
  .toast { font-size: 11px; padding: 13px 17px; bottom: max(15px, env(safe-area-inset-bottom)); }
  .gentle-celebration { font-size: 19px; padding: 12px 19px; }
}
@media (max-width: 350px) {
  #main, .footer-inner { width: calc(100% - 24px); }
  .header-inner { padding-inline: 10px; }
  .game-brand strong { font-size: 22px; }
  .game-brand small { font-size: 5.5px; }
  .brand-paw { width: 31px; height: 35px; }
  .game-brand { gap: 6px; }
  .header-actions .icon-button { width: 44px; padding-inline: 9px; }
  .star-wallet { min-width: 38px; padding-inline: 5px; }
  .main-nav a { font-size: 10px; padding-inline: 9px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy > .eyebrow { font-size: 7px; }
  .hero-description { font-size: 12px; padding-inline: 2px; }
  .hero-note { font-size: 7px; }
  .hero-note .icon svg { width: 12px; height: 12px; }
  .scene-caption { left: 13%; }
  .puzzle-card { padding-inline: 7px; }
  .word-board, .crush-board { gap: 3px; padding: 5px; }
  .board-row, .crush-board .board-row { gap: 3px; }
  .word-tile { font-size: 16px; border-radius: 7px; }
  .crush-tile { border-radius: 9px; }
  .word-list li { padding-inline: 6px; font-size: 8px; }
  .puzzle-buttons { gap: 3px; }
  .puzzle-buttons .button, .puzzle-buttons .text-button { font-size: 9px; padding-inline: 6px; gap: 4px; }
  .puzzle-buttons .icon svg { width: 14px; height: 14px; }
  .pet-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-panel { padding-inline: 14px; }
  .care-stamp { font-size: 7px; padding-inline: 6px; }
  .care-pet-intro h2 { font-size: 23px; }
  .setting-row select { width: 48%; max-width: 135px; }
  .filter-button { font-size: 9px; padding-inline: 8px; }
  .guide-card { padding: 22px; }
}
@media (orientation: landscape) and (max-height: 550px) {
  .header-inner { min-height: 74px; padding-block: 10px; }
  #main { padding-top: 24px; }
  .page-heading { margin-bottom: 22px; }
  #game-dialog { max-height: calc(100dvh - 24px); margin-block: 12px; }
  .toast { bottom: 10px; max-width: min(630px, calc(100% - 32px)); padding-block: 10px; }
}
/* Bounding-box pivots keep the puppets attached inside standalone and nested SVGs. */
.pet-character .pet-tail, .pet-character .pet-ear, .pet-character .pet-head, .pet-character .pet-body, .pet-character .pet-eyes { transform-box: fill-box; }
.pet-character .pet-tail { transform-origin: 12% 85%; animation: pet-tail-swish 4.8s ease-in-out infinite; }
.pet-dog .pet-tail { animation: pet-tail-wag 2.8s ease-in-out infinite; }
.pet-character .pet-ear-left { transform-origin: 70% 72%; animation: pet-ear-twitch 9s ease-in-out infinite; }
.pet-character .pet-ear-right { transform-origin: 43% 70%; animation: pet-ear-twitch 9s ease-in-out -4.5s infinite; }
.pet-dog .pet-ear-left { transform-origin: 84% 12%; }
.pet-dog .pet-ear-right { transform-origin: 7% 12%; }
.pet-character .pet-head { transform-origin: 50% 90%; animation: pet-head-tilt 10s ease-in-out infinite; }
.pet-character .pet-body { transform-origin: 50% 100%; animation: pet-breathe 4s ease-in-out infinite; }
.pet-character .pet-eyes { transform-origin: 50% 50%; animation: pet-blink 6.5s ease-in-out infinite; }
.pet-dog .pet-head { animation-delay: -3s; }
.pet-dog .pet-eyes { animation-delay: -2.8s; }
.pet-sleeping .pet-eyes { animation: none; }
.pet-sleeping .pet-tail { animation-duration: 12s; }
@keyframes pet-tail-swish { 0%, 45%, 100% { transform: rotate(0deg); } 55% { transform: rotate(-7deg); } 70% { transform: rotate(5deg); } 85% { transform: rotate(-3deg); } }
@keyframes pet-tail-wag { 0%, 40%, 100% { transform: rotate(0deg); } 50%, 70% { transform: rotate(-10deg); } 60%, 80% { transform: rotate(8deg); } }
@keyframes pet-ear-twitch { 0%, 73%, 100% { transform: rotate(0deg); } 78% { transform: rotate(-6deg); } 83% { transform: rotate(5deg); } 88% { transform: rotate(-2deg); } }
@keyframes pet-head-tilt { 0%, 35%, 100% { transform: rotate(0deg); } 46%, 58% { transform: rotate(-3deg); } 68%, 78% { transform: rotate(2deg); } }
@keyframes pet-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes pet-blink { 0%, 43%, 48%, 100% { transform: scaleY(1); } 45%, 46% { transform: scaleY(.08); } }
html[data-pet-motion="paused"] .pet-character * { animation-play-state: paused !important; }

/* Comfortable motion is a first-class presentation, including OS preference. */
.control-note, .learning-boundary, .small-print, .goal-label, .puzzle-count,
.selection-preview, .friend-caption, .hero-note, .setting-row small {
  color: var(--muted);
  font-size: max(11px, .72rem);
}
.guide-notice p { font-size: 12px; }
.puzzle-buttons .button, .puzzle-buttons .text-button { font-size: max(11px, .72rem); }
html[data-motion="gentle"] *, html[data-motion="gentle"] *::before, html[data-motion="gentle"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="gentle"] #app-shell.crush-shake { transform: none !important; }
html[data-motion="gentle"] .confetti { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #app-shell.crush-shake { transform: none !important; }
  .confetti { display: none; }
}
@media (forced-colors: active) {
  .button, .word-tile, .crush-tile, .care-option, .pet-card, .filter-button, .icon-button { border: 1px solid ButtonText; }
  .word-tile.selected, .crush-tile.selected, .word-tile.solved, .pet-card.active, .filter-button.active { outline: 2px solid Highlight; outline-offset: -3px; }
  .word-tile.hinted, .crush-tile.hinted { outline: 2px dashed Highlight; outline-offset: -3px; }
  .setting-row input[type="checkbox"] { appearance: auto; }
  .setting-row input[type="checkbox"]::before { display: none; }
}

/* Readable vocabulary cards and keyboard/tap alternatives to finding a word. */
.word-list li { padding: 0; }
.word-meaning-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-decoration: inherit; }
.word-meaning-button[aria-pressed="true"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.word-meaning { margin: 0 0 24px; padding: 18px; border: 1px solid #cfdbc4; border-radius: 14px; background: #edf2e5; text-align: left; }
.word-meaning h3 { margin: 8px 0; font-size: 22px; }
.word-meaning p:not(.eyebrow) { color: #53684e; font-size: 12px; line-height: 1.8; }
.word-meaning .source-links { margin-bottom: 0; font-size: 11px; }
.word-meaning .eyebrow { font-size: 9px; }
@media (max-width: 480px) { .word-meaning { padding: 14px; } .word-meaning h3 { font-size: 20px; } .word-meaning-button { gap: 5px; padding-inline: 8px; } }
.practice-invite { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 25px; margin: 26px 0; border: 1px solid #d3ddc7; border-radius: 20px; background: #edf2e5; }
.practice-invite h2 { margin: 9px 0; font-size: 26px; }
.practice-invite p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.practice-invite .button { flex-shrink: 0; }
@media (max-width: 700px) { .practice-invite { flex-direction: column; align-items: stretch; padding: 20px; } .practice-invite h2 { font-size: 24px; } }

/* Adoption resources and an international, privacy-preserving shelter search. */
.adoption-promise { display: flex; align-items: center; gap: 21px; margin: 32px 0; padding: 28px; background: #f5e9d5; border: 1px solid #e6d3b6; border-radius: 20px; }
.adoption-promise > .icon { color: #ac6957; flex-shrink: 0; }
.adoption-promise > div { flex: 1; min-width: 0; }
.adoption-promise h2 { margin: 8px 0 12px; font-size: 28px; }
.adoption-promise p:not(.eyebrow) { font-size: 12px; color: #716052; line-height: 1.8; }
.adoption-promise .button { flex-shrink: 0; }
.adoption-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 35px 0; }
.adoption-resource { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-decoration: none; }
.adoption-resource > .icon { color: var(--teal); }
.adoption-resource h2 { font-size: 25px; line-height: 1.25; }
.adoption-resource p { font-size: 12px; color: var(--muted); flex: 1; }
.adoption-resource .path-cta { width: 100%; }
.shelter-finder, .shelter-checks { padding: 32px; margin: 32px 0; border: 1px solid var(--line); border-radius: 23px; background: var(--card); min-width: 0; }
.shelter-finder h2, .shelter-checks h2 { font-size: 30px; margin: 10px 0 18px; }
.shelter-finder > p:not(.eyebrow), .shelter-checks > p, .shelter-checks li { color: var(--muted); font-size: 13px; line-height: 1.85; }
.shelter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 27px 0 18px; }
.shelter-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; font-size: 12px; font-weight: 650; }
.shelter-field input, .shelter-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #cfc8b8; border-radius: 10px; background: #fffdf8; color: var(--ink); font: inherit; font-weight: 400; }
.shelter-field input:disabled { opacity: .65; background: #efeade; }
.shelter-preview { margin: 22px 0; padding: 20px; border-radius: 15px; background: #edf2e5; border: 1px solid #d0ddc5; }
.shelter-query { overflow-wrap: anywhere; margin: 10px 0 17px; font-size: 13px; }
.shelter-form > .small-print { margin-top: 16px; }
.shelter-checks ol { padding-left: 23px; }
.shelter-checks li { padding-left: 5px; margin: 13px 0; }
@media (max-width: 1080px) and (min-width: 701px) { .header-inner { flex-wrap: wrap; } .header-inner .main-nav { order: 3; flex-basis: 100%; justify-content: center; } .header-actions { margin-left: auto; } }
@media (max-width: 850px) { .adoption-links { gap: 14px; } .adoption-resource { padding: 20px; } .adoption-resource h2 { font-size: 22px; } .adoption-promise { flex-wrap: wrap; } .adoption-promise .button { margin-left: 49px; } }
@media (max-width: 600px) { .adoption-links { grid-template-columns: 1fr; } .adoption-promise { padding: 20px; gap: 14px; } .adoption-promise > .icon { display: none; } .adoption-promise > div { flex-basis: 100%; } .adoption-promise .button { margin-left: 0; width: 100%; } .adoption-promise h2 { font-size: 25px; } .shelter-finder, .shelter-checks { padding: 20px 17px; } .shelter-fields { grid-template-columns: 1fr; gap: 17px; } .shelter-finder h2, .shelter-checks h2 { font-size: 26px; } .shelter-preview { padding: 15px; } .shelter-preview .button { width: 100%; font-size: 12px; } }
