:root {
  color-scheme: light;
  --ink: #3d2930;
  --muted: #8f6e72;
  --line: #f0d8d0;
  --surface: rgba(255, 251, 247, 0.86);
  --surface-strong: #fffaf6;
  --accent: #d96e65;
  --accent-soft: #ffe1d5;
  --accent-deep: #a85557;
  --gold: #e1a45a;
  --shadow: 0 24px 70px rgba(137, 83, 78, 0.14);
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 217, 190, .58), transparent 28%),
    radial-gradient(circle at 92% 2%, rgba(255, 239, 200, .66), transparent 25%),
    #fff8f2;
}

button { font: inherit; }

.desktop-notice { display: grid; place-items: center; min-height: 100vh; padding: 32px; text-align: center; background: radial-gradient(circle at 50% 20%, #ffe5d4, transparent 42%), #fff8f2; }
.desktop-notice > * { max-width: 520px; }
.desktop-notice[hidden] { display: none; }
.notice-mark { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 20px; border-radius: 25px; background: #fff0e7; font-size: 34px; box-shadow: 0 12px 32px rgba(137, 83, 78, .12); }
.desktop-notice h1 { margin-bottom: 12px; font-size: clamp(28px, 5vw, 42px); }
.desktop-notice p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.notice-platforms { display: flex; justify-content: center; gap: 8px; margin-top: 21px; }
.notice-platforms span { padding: 7px 11px; border-radius: 999px; color: var(--accent-deep); background: #ffe8dc; font-size: 11px; font-weight: 800; }
body.is-desktop-blocked { min-height: 100vh; }
body.is-desktop-blocked .app-shell { display: none; }

.name-setup { position: fixed; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(91, 52, 49, .28); backdrop-filter: blur(8px); z-index: 20; }
.name-setup[hidden] { display: none; }
.name-setup-card { width: min(100%, 390px); padding: 28px 24px 24px; border: 1px solid rgba(238, 210, 202, .9); border-radius: 26px; background: #fffaf6; box-shadow: 0 24px 70px rgba(91, 52, 49, .2); text-align: center; }
.name-setup-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 21px; background: #fff0e7; font-size: 30px; }
.name-setup-card h1 { margin-bottom: 10px; font-size: 27px; }
.name-setup-card > p:not(.eyebrow):not(.name-error) { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.name-setup-card label { display: block; margin-bottom: 7px; color: var(--accent-deep); font-size: 11px; font-weight: 800; text-align: left; }
.name-setup-card input { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid #edcec3; border-radius: 12px; color: var(--ink); background: #fffdfb; font: inherit; font-size: 15px; outline: none; }
.name-setup-card input:focus { border-color: #d77c76; box-shadow: 0 0 0 3px rgba(215, 124, 118, .15); }
.name-setup-card select { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid #edcec3; border-radius: 12px; color: var(--ink); background: #fffdfb; font: inherit; font-size: 13px; outline: none; }
.name-setup-card select:focus { border-color: #d77c76; box-shadow: 0 0 0 3px rgba(215, 124, 118, .15); }
.breed-description { min-height: 42px; margin: 9px 0 4px; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: left; }
.name-error { min-height: 18px; margin: 7px 0 3px; color: #b4565a; font-size: 11px; text-align: left; }
.name-save-button { width: 100%; min-height: 45px; border: 0; border-radius: 13px; color: #fffaf6; background: linear-gradient(135deg, #d96e65, #bd6d56); cursor: pointer; font-size: 13px; font-weight: 800; box-shadow: 0 10px 22px rgba(189, 109, 86, .2); }
.name-save-button:hover, .name-save-button:focus-visible { filter: brightness(1.04); outline: 3px solid rgba(215, 124, 118, .2); outline-offset: 2px; }

.app-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 56px; }
.app-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.header-status { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.free-app-note { margin: 7px 0 0; color: #7f6a62; font-size: 11px; font-weight: 800; }
.platform-tag { color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.035em; }
.intro { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-deep); background: rgba(255, 250, 246, .74); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-dot, .caption-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e7a354; box-shadow: 0 0 0 4px rgba(231, 163, 84, .15); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .78fr); gap: 20px; align-items: start; }
.stage-card, .control-card { border: 1px solid rgba(238, 210, 202, .84); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.stage-card { padding: 22px; border-radius: 30px; }
.control-card { padding: 24px; border-radius: 26px; }
.stage-toolbar, .control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.event-readout { max-width: 205px; padding-top: 21px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.scene { position: relative; overflow: hidden; margin-top: 18px; border-radius: 23px; background: #ffe8d5; isolation: isolate; }
.scene-glow { position: absolute; inset: 9% 18% auto; height: 46%; border-radius: 50%; background: rgba(255, 255, 255, .38); filter: blur(30px); pointer-events: none; }
#puppySvg { position: relative; display: block; width: 100%; height: auto; z-index: 1; }
.scene-caption { position: absolute; left: 17px; bottom: 14px; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 999px; color: #9b6d65; background: rgba(255, 249, 242, .72); font-size: 11px; backdrop-filter: blur(7px); z-index: 2; }
.caption-dot { width: 6px; height: 6px; box-shadow: none; background: #d9776c; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.action-button { min-height: 45px; padding: 8px 13px; border: 1px solid #efcfc5; border-radius: 14px; color: var(--accent-deep); background: #fff9f4; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.action-button:hover, .action-button:focus-visible { transform: translateY(-2px); border-color: #dc9b91; background: #fff0e6; outline: none; }
.action-button span { margin-left: 4px; color: #e09f68; }
.voice-button:disabled { cursor: not-allowed; opacity: .55; }
.voice-button.is-listening { border-color: #d0a160; color: #9d6b2f; background: #fff3d9; }
.interaction-hint { margin: 13px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.voice-status { margin: 6px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.state-count { padding: 5px 9px; border-radius: 999px; color: var(--accent-deep); background: var(--accent-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.state-button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 60px; padding: 11px 12px; border: 1px solid #f0ddd7; border-radius: 15px; color: var(--ink); background: rgba(255, 253, 250, .78); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.state-button span { font-size: 13px; font-weight: 800; }
.state-button small { color: var(--muted); font-size: 11px; }
.state-button:hover, .state-button:focus-visible { transform: translateY(-2px); border-color: #e1a196; outline: none; }
.state-button.is-selected { border-color: #d77c76; background: #fff0e7; box-shadow: inset 3px 0 0 #d77c76; }
.implementation-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.note-title { margin-bottom: 12px; color: var(--accent-deep); font-size: 12px; font-weight: 800; }
.part-list { display: flex; flex-wrap: wrap; gap: 7px; }
.part-list span { padding: 6px 8px; border-radius: 9px; color: #996a61; background: #fff0e7; font-size: 11px; }
.note-copy { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.game-dashboard { margin-top: 22px; padding: 25px; border: 1px solid rgba(238, 210, 202, .84); border-radius: 28px; background: rgba(255, 251, 247, .8); box-shadow: var(--shadow); }
.game-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.game-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.mood-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 999px; color: var(--accent-deep); background: #fff0e7; font-size: 12px; font-weight: 800; white-space: nowrap; }
.mood-face { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff8f2; background: #e5a061; font-size: 16px; }
.care-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }
.game-stat { padding: 14px; border: 1px solid #f0ddd7; border-radius: 16px; background: rgba(255, 255, 255, .58); }
.game-stat > span { display: block; color: var(--muted); font-size: 11px; }
.game-stat strong { display: block; margin-top: 4px; color: var(--accent-deep); font-size: 19px; letter-spacing: -.04em; }
.game-stat small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.meter { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #f5e5df; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e39b64, #d8736d); transition: width .35s ease; }
.game-card { padding: 19px; border: 1px solid #f0ddd7; border-radius: 19px; background: rgba(255, 255, 255, .53); }
.routine-card { margin-top: 12px; }
.game-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.game-card-heading .section-kicker { margin-bottom: 5px; }
.game-card h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.routine-note, .calendar-mark { color: var(--muted); font-size: 11px; white-space: nowrap; }
.routine-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.routine-action { display: flex; min-height: 87px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1px solid #f0ddd7; border-radius: 14px; color: var(--ink); background: #fffaf6; cursor: pointer; text-align: left; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.routine-action:hover, .routine-action:focus-visible { transform: translateY(-2px); border-color: #dc9b91; outline: none; }
.routine-action span { font-size: 12px; font-weight: 800; }
.routine-action small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.routine-action b { color: var(--accent-deep); font-size: 10px; font-weight: 800; }
.routine-action.is-done { border-color: #e7c493; background: #fff3db; }
.routine-action.is-done b { color: #bd7b36; }
.routine-action.is-locked { cursor: not-allowed; opacity: .56; }
.step-import { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f2e3de; }
.step-import label { color: var(--accent-deep); font-size: 11px; font-weight: 800; }
.step-import input { width: 86px; min-height: 31px; padding: 5px 8px; border: 1px solid #edcec3; border-radius: 9px; color: var(--ink); background: #fffdfb; font-size: 12px; }
.step-import input:focus-visible { outline: 2px solid #e7aa9d; outline-offset: 2px; }
.small-button { min-height: 31px; padding: 5px 10px; border: 1px solid #e5b9ad; border-radius: 9px; color: var(--accent-deep); background: #fff0e7; cursor: pointer; font-size: 11px; font-weight: 800; }
.small-button:hover, .small-button:focus-visible { border-color: #cf8178; outline: none; }
.pedometer-button.is-active { border-color: #d0a160; color: #9d6b2f; background: #fff3d9; }
.step-source { color: var(--muted); font-size: 10px; }
.play-feedback { margin-top: 12px; padding: 9px 11px; border-radius: 10px; color: #9c6a62; background: #fff2e8; font-size: 11px; line-height: 1.5; }
.install-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.install-guide { margin: 0 2px; color: var(--muted); font-size: 10px; text-align: center; }
.cloud-save-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(181, 128, 107, .25); }
.cloud-save-status { margin: 0 2px; color: var(--muted); font-size: 10px; text-align: center; }
.cloud-save-status[data-tone="ok"] { color: #4c8a67; }
.cloud-save-status[data-tone="warning"] { color: #a36d45; }
.link-card { margin-top: 14px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.external-link { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; text-decoration: none; text-align: center; }
.affiliate-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(181, 128, 107, .25); }
.affiliate-heading { margin: 0 3px 0 0; color: var(--ink); font-size: 11px; font-weight: 800; }
.affiliate-link { min-height: 32px; }
.install-button { display: inline-flex; align-items: center; justify-content: center; }
.install-button[hidden] { display: none; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; margin-top: 12px; }
.food-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.food-option { position: relative; display: flex; min-height: 77px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 11px; border: 1px solid #f0ddd7; border-radius: 13px; color: var(--ink); background: #fffaf6; cursor: pointer; text-align: left; }
.food-option:hover, .food-option:focus-visible { border-color: #dc9b91; outline: none; }
.food-option.is-selected { border-color: #d77c76; box-shadow: inset 3px 0 0 #d77c76; background: #fff0e7; }
.food-option.is-locked { background: #fbf5f2; }
.food-option.is-canned { background: #fffaf0; }
.food-option.is-canned.is-selected { background: #fff1d7; }
.food-name { font-size: 12px; font-weight: 800; }
.food-detail, .food-price { color: var(--muted); font-size: 10px; }
.food-price { color: var(--accent-deep); font-weight: 800; }
.meal-mix-status, .grooming-status, .toilet-status, .treat-status { margin: 9px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.meal-mix-status { color: #8b6f5b; }
.treat-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.treat-option { display: flex; min-height: 77px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 11px; border: 1px solid #f0ddd7; border-radius: 13px; color: var(--ink); background: #fffaf6; cursor: pointer; text-align: left; }
.treat-option:hover, .treat-option:focus-visible { border-color: #dc9b91; outline: none; }
.treat-option.is-selected { border-color: #d77c76; box-shadow: inset 3px 0 0 #d77c76; background: #fff0e7; }
.treat-option.is-locked { background: #fbf5f2; }
.treat-name { font-size: 11px; font-weight: 800; }
.treat-detail, .treat-price { color: var(--muted); font-size: 10px; }
.treat-price { color: var(--accent-deep); font-weight: 800; }
.treat-button, .grooming-button { margin-top: 12px; }
.coin-balance { color: #bb7f35; font-size: 12px; font-weight: 800; white-space: nowrap; }
.calendar-mark { padding: 5px 8px; border-radius: 8px; background: #fff0e7; color: var(--accent-deep); }
.vaccine-list { display: grid; gap: 8px; margin-top: 15px; }
.vaccine-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #f0ddd7; border-radius: 12px; background: #fffaf6; }
.vaccine-item.is-done { border-color: #d7e2ca; background: #f3f8ed; }
.vaccine-name { display: block; font-size: 11px; font-weight: 800; }
.vaccine-date { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.vaccine-item button { min-height: 28px; padding: 4px 8px; border: 1px solid #e5b9ad; border-radius: 8px; color: var(--accent-deep); background: #fff0e7; cursor: pointer; font-size: 10px; font-weight: 800; }
.vaccine-item button:disabled { border-color: #d7e2ca; color: #6d9566; background: #eaf3e1; cursor: default; }
.small-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.home-space { margin-top: 12px; }
.home-room { position: relative; min-height: 180px; margin-top: 15px; overflow: hidden; border: 1px solid #efd4c6; border-radius: 16px; background: linear-gradient(180deg, #ffe9d9 0 58%, #dba982 58% 100%); }
.home-room::after { position: absolute; inset: auto 0 0; height: 44%; background: repeating-linear-gradient(90deg, rgba(151, 99, 71, .08) 0 2px, transparent 2px 54px); content: ""; }
.room-window { position: absolute; top: 20px; left: 22px; display: grid; grid-template-columns: repeat(3, 1fr); width: 92px; height: 55px; border: 6px solid #fdf6ed; border-radius: 8px; background: #b9d9d9; box-shadow: 0 5px 0 rgba(151, 99, 71, .12); z-index: 1; }
.room-window span { border-right: 2px solid rgba(255, 255, 255, .6); }
.room-window span:last-child { border-right: 0; }
.room-rug { position: absolute; right: 15%; bottom: 19px; width: 48%; height: 45px; border-radius: 50%; background: rgba(255, 236, 204, .78); z-index: 1; }
.room-bed { position: absolute; right: 18px; bottom: 42px; display: grid; place-items: center; width: 74px; height: 42px; border: 4px solid #c98776; border-radius: 20px 20px 14px 14px; color: #fff1e4; background: #e9a293; font-size: 24px; z-index: 2; }
.room-bowl { position: absolute; left: 28%; bottom: 34px; color: #fff4df; font-size: 29px; z-index: 2; }
.room-toy { position: absolute; right: 42%; bottom: 63px; display: grid; place-items: center; width: 27px; height: 27px; border: 4px solid #f4c35f; border-radius: 50%; color: #fff; background: #e98578; font-size: 12px; z-index: 2; }
.room-puppy-mark { position: absolute; left: 47%; bottom: 43px; font-size: 34px; filter: drop-shadow(0 4px 2px rgba(109, 72, 57, .16)); z-index: 3; animation: room-puppy-breathe 2.55s ease-in-out infinite; }
@keyframes room-puppy-breathe { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-actions .small-button { flex: 1 1 150px; }
.meal-timing, .water-status { margin: 10px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.food-condition { margin: 8px 2px 0; color: #5d9270; font-size: 11px; font-weight: 800; line-height: 1.6; }
.food-condition[data-tone="warning"] { color: #a36d45; }
.food-condition[data-tone="critical"] { color: #a15f65; }
.food-condition[data-tone="danger"] { color: #8f4f55; }
.food-condition[data-tone="danger"]::before { content: "♡ "; }
.routine-action:disabled, .small-button:disabled, .state-button:disabled, .action-button:disabled, .food-option:disabled, .medicine-option:disabled { cursor: not-allowed; opacity: .55; }
body[data-food-condition="danger"] .stage-card { filter: saturate(.62); transition: filter .8s ease; }
body[data-food-condition="danger"] .scene-glow { opacity: .2; }
body[data-food-condition="danger"] .mood-badge { background: #f1e6e2; }
.water-status { color: #708b91; }
.toilet-status { color: #8a6b79; }
.grooming-status[data-tone="warning"] { color: #a36d45; font-weight: 800; }
.grooming-status[data-tone="danger"] { color: #8f4f55; font-weight: 800; }
.addon-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; margin-top: 12px; }
.medicine-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.medicine-option { display: flex; min-height: 76px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 11px; border: 1px solid #f0ddd7; border-radius: 13px; color: var(--ink); background: #fffaf6; cursor: pointer; text-align: left; }
.medicine-option:hover, .medicine-option:focus-visible { border-color: #dc9b91; outline: none; }
.medicine-option.is-owned { border-color: #d7e2ca; background: #f5faef; }
.medicine-name { font-size: 12px; font-weight: 800; }
.medicine-detail, .medicine-price { color: var(--muted); font-size: 10px; }
.medicine-price { color: var(--accent-deep); font-weight: 800; }
.hotel-copy, .trick-copy { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.hotel-button { margin-top: 14px; }
.trick-card { margin-top: 12px; }
.trick-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.trick-list span { padding: 6px 9px; border-radius: 9px; color: #996a61; background: #fff0e7; font-size: 11px; }
.trick-list span.is-locked { color: #a99b98; background: #f5eeeb; }

@media (max-width: 840px) {
  .workspace { grid-template-columns: 1fr; }
  .control-card { order: 2; }
  .routine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .addon-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .app-shell { width: min(100% - 22px, 1180px); padding-top: 25px; }
  .app-header { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .header-status { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px 13px; }
  .status-pill { align-self: flex-start; }
  .stage-card, .control-card { padding: 16px; border-radius: 22px; }
  .game-dashboard { padding: 16px; border-radius: 22px; }
  .game-headline { align-items: flex-start; flex-direction: column; gap: 12px; }
  .care-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: 1fr; }
  .treat-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-toolbar { gap: 10px; }
  .event-readout { max-width: 145px; padding-top: 17px; font-size: 11px; }
  .quick-actions { gap: 7px; }
  .action-button { padding: 7px 5px; font-size: 11px; }
  .scene-caption { right: 14px; max-width: calc(100% - 28px); overflow: hidden; white-space: nowrap; }
}

@media (max-width: 360px) {
  .routine-grid, .food-options, .treat-options { grid-template-columns: 1fr; }
  .step-import { align-items: flex-start; flex-direction: column; }
}

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