:root {
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #4c543d; background: #548b70; font-synthesis: none;
  --ink: #4c543d; --green: #396c50; --cream: #fff8dc; --edge: #bc8c50;
  --dock-size: clamp(100px, 22dvh, 184px); --rail-size: clamp(64px, 8vw, 100px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
html, body, .app-shell, dialog { touch-action: pan-y; }
button, input, select { font: inherit; }
input, select, textarea { font-size: 16px; }
button { -webkit-appearance: none; appearance: none; border: 0; color: inherit; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s, background .15s; }
button:active { transform: translateY(3px) scale(.97); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e77543; outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; pointer-events: none; }
.app-shell {
  position: relative; isolation: isolate; width: 100%; height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: 64px minmax(0, 1fr) var(--dock-size); gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.app-shell::before, .rotate-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #bce8d9 url('assets/garden-stage-v1.webp') center / cover no-repeat; }
.night .app-shell::before, .night .rotate-screen::before { background-image: url('assets/night-stage-v1.webp'); }
.game-hud { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 24px); min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; color: #fff9de; font-size: 23px; font-weight: 850; white-space: nowrap; text-shadow: 0 2px 0 #446b44, 1px 0 0 #446b44, -1px 0 0 #446b44; }
.brand small { display: block; font-size: 10px; letter-spacing: 5px; margin: 2px 0 0 3px; }
.brand-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #fff4cc; color: #528358; font-size: 33px; border: 3px solid #d5aa65; border-radius: 17px; box-shadow: 0 4px 0 #875c37; transform: rotate(-8deg); text-shadow: none; }
.scene-picker { display: flex; gap: 3px; padding: 3px; background: #fff7dfed; border: 2px solid #bb945c; border-radius: 22px; box-shadow: 0 3px 0 #94623f; }
.scene-picker button { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 16px; color: #9e875d; }
.scene-picker button[aria-pressed="true"] { background: #ffdf83; color: #695437; box-shadow: inset 0 -3px 0 #e8bd62; }
#night-lock { position: absolute; bottom: 0; right: 1px; font-size: 17px; line-height: 1; }
.hud-button { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 2px solid #bb945c; border-radius: 17px; background: #fff7dfed; box-shadow: 0 3px 0 #94623f; }
#display-button { font-size: 29px; }
.session-badge { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 92px; height: 42px; padding: 0 10px; background: #fff8e1e8; border: 2px solid #d2aa6e; border-radius: 22px; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-badge > span:first-child { font-size: 22px; }
.volume { display: flex; align-items: center; gap: 5px; }
.volume button { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 48px; min-height: 52px; padding: 3px 0; border: 3px solid #d8bd89; border-radius: 15px; background: #fff8e5; color: #847d5e; box-shadow: 0 3px 0 #a8804d; }
.volume .volume-picture { width: 25px; height: 25px; }
.volume button > span:last-child { font-size: 9px; }
.volume button.is-selected, .volume button[aria-pressed="true"] { background: #ffe292; color: #315c42; border-color: #396c50; box-shadow: 0 3px 0 #396c50; }
.volume-check { position: absolute; right: -7px; top: -8px; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: #396c50; color: white; font-size: 14px; font-weight: 800; opacity: 0; }
.is-selected .volume-check { opacity: 1; }
.music-room { min-height: 0; display: grid; grid-template-columns: var(--rail-size) minmax(0, 1fr) var(--rail-size); gap: 8px; }
.stage { position: relative; min-height: 0; min-width: 0; }
.child-actions { display: flex; flex-direction: column; align-self: center; gap: clamp(12px, 3dvh, 24px); padding-bottom: 14px; }
.child-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 84px; padding: 2px 0 8px; border: 3px solid #c0975f; border-radius: 26px; background: #fff5d9f5; box-shadow: inset 0 3px 0 #fffdf4, 0 5px 0 #8d603d, 0 8px 12px #65492324; font-size: 12px; font-weight: 750; }
.child-button.play-button { border-color: #739b5c; background: #eff9d9; box-shadow: inset 0 3px 0 #fffdf4, 0 5px 0 #4a7146, 0 8px 12px #65492324; }
.child-button b { position: absolute; top: -7px; right: -5px; min-width: 25px; height: 25px; padding: 2px 5px; display: grid; place-items: center; border: 2px solid #fff4ce; border-radius: 50%; background: #8e7daf; color: white; font-size: 12px; }
.kawaii { display: block; flex: none; width: 68px; height: 68px; background: url('assets/controls-v1.webp') no-repeat; background-size: 300% 200%; pointer-events: none; }
.kawaii[data-icon="play"] { background-position: 0 0; }.kawaii[data-icon="pause"] { background-position: 50% 0; }.kawaii[data-icon="record"] { background-position: 100% 0; }
.kawaii[data-icon="library"] { background-position: 0 100%; }.kawaii[data-icon="help"] { background-position: 50% 100%; }.kawaii[data-icon="bye"] { background-position: 100% 100%; }
.guide-bar { display: flex; align-items: center; width: fit-content; max-width: 100%; margin: 7px auto 0; padding: 2px 5px; background: #fffbe9f2; border: 2px solid #e1c790; border-radius: 24px; box-shadow: 0 4px 0 #947c4933; }
.guide-bar p { margin: 0 4px; max-width: 350px; font-size: 12px; line-height: 1.55; }
#voice-replay, .demo-button { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border-radius: 16px; }
.guide-bar .kawaii { width: 48px; height: 48px; }
.demo-button { gap: 3px; padding: 0 8px; margin-left: 6px; font-size: 10px; background: #f7e8ba; }
.demo-button > span:first-child { font-size: 24px; }
#voice-replay.speaking { background: #ffe391; }
.slots { position: absolute; left: 0; right: 0; bottom: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 2px; }
.slot { min-width: 0; text-align: center; position: relative; border-radius: 22px; }
.slot::before { content: ""; position: absolute; bottom: 15px; left: 7%; right: 7%; height: 24px; background: #aa6e3830; border: 2px solid #fff0b95c; border-radius: 50%; pointer-events: none; }
.slot.drop-target { background: #fff5b582; outline: 3px dashed #597f46; outline-offset: -3px; }
.stage-character { display: flex; align-items: center; justify-content: flex-end; flex-direction: column; position: relative; width: 100%; height: min(36dvh, 250px); padding: 0; border-radius: 22px; }
.sprite { display: block; background: url('assets/family-characters-v1.webp') no-repeat; background-size: 300% 200%; aspect-ratio: 1; width: 190px; max-width: 100%; flex: none; pointer-events: none; }
.sprite[data-id="kid"] { background-position: 0 0; }.sprite[data-id="dad"] { background-position: 50% 0; }.sprite[data-id="mom"] { background-position: 100% 0; }
.sprite[data-id="dog"] { background-position: 0 100%; }.sprite[data-id="friend"] { background-position: 50% 100%; }.sprite[data-id="robot"] { background-position: 100% 100%; }
/* Preserve the guest atlas proportions and its original transparent gutters. */
.sprite[data-id="gray"], .sprite[data-id="computer"], .sprite[data-id="vineria"] { background-image: url('assets/guest-characters-v1.webp'); background-size: 260% auto; background-position-y: 0; }
.sprite[data-id="gray"] { background-position-x: -4.1667%; }.sprite[data-id="computer"] { background-position-x: 50%; }.sprite[data-id="vineria"] { background-position-x: 104.1667%; }
.sprite:is([data-id="oren"], [data-id="pinki"], [data-id="sky"], [data-id="durple"], [data-id="simon"], [data-id="wenda"]) { background-image: url('assets/sprunki-friends-v1.webp'); }
.sprite[data-id="oren"] { background-position: 0 0; }.sprite[data-id="pinki"] { background-position: 50% 0; }.sprite[data-id="sky"] { background-position: 100% 0; }
.sprite[data-id="durple"] { background-position: 0 100%; }.sprite[data-id="simon"] { background-position: 50% 100%; }.sprite[data-id="wenda"] { background-position: 100% 100%; }
.stage-character .sprite { width: min(135%, 33dvh, 240px); max-width: none; transform-origin: 50% 96%; will-change: transform; filter: drop-shadow(0 7px 3px #62492c23); }
.character-name { display: flex; align-items: center; gap: 5px; background: #fff8dfeb; border: 1px solid #d8ac6e; padding: 4px 10px; margin-top: -2px; border-radius: 20px; font-size: 12px; font-weight: 750; white-space: nowrap; z-index: 1; }
.character-name i { font-size: 11px; color: #6f9156; font-style: normal; }
.slot.muted .sprite { opacity: .5; }.slot.muted .character-name { background: #eee5d8; }
.empty-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 75%; height: min(22dvh, 150px); margin-bottom: 12px; background: #fff2c54d; border: 3px dashed #b3955f9c; border-radius: 60px 60px 30px 30px; color: #8b824d; }
.empty-slot b { font-size: 38px; font-weight: 400; }.empty-slot > span { font-size: 25px; }
.stage-meter { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.on-air { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #7f633f; }
.on-air > span:first-child { width: 7px; height: 7px; background: #a98b61; border-radius: 50%; }.on-air.live > span:first-child { background: #679350; box-shadow: 0 0 0 3px #eff4c988; }
.beat-rail { display: flex; align-items: center; gap: 6px; height: 18px; }.beat-rail span { width: 6px; height: 6px; background: #ac895c77; border-radius: 50%; }.beat-rail span.active { background: #70934d; transform: scale(1.5); }
.crew-section { position: relative; min-height: 0; display: flex; flex-direction: column; border: 3px solid #b98b50; border-radius: 26px; padding: 18px 12px 9px; background: #fff0cbeF; box-shadow: inset 0 3px 0 #fff9e9, 0 5px 0 #805936; }
.crew-section h2 { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 24px; background: #fce5a6; border: 2px solid #c69858; border-radius: 20px; box-shadow: 0 2px 0 #b38955; color: #86613d; font-size: 12px; white-space: nowrap; }
.crew-section h2 span { margin: 0 8px; }
.crew-picker { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; height: 100%; min-height: 0; }
.crew-arrow { align-self: center; min-height: 48px; padding: 0; border: 2px solid #c69858; border-radius: 17px; background: #ffdf83; box-shadow: 0 3px 0 #a17a44; color: #785b37; font-size: 28px; }
#crew-pages { display: inline-flex; gap: 5px; margin: 0 0 0 6px; vertical-align: middle; }
#crew-pages i { width: 7px; height: 7px; border-radius: 50%; background: #bdab81; }
#crew-pages i.current { background: #477451; box-shadow: 0 0 0 2px #fff8dc; }
.crew { display: grid; grid-template-columns: repeat(var(--crew-count, 6), minmax(0, 1fr)); gap: 8px; height: 100%; min-height: 0; }
.crew-card { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; min-height: 44px; padding: 2px 0 5px; border: 2px solid #ddc79b; border-radius: 18px; background: #fffbeb; box-shadow: 0 3px 0 #c6a572; touch-action: none; user-select: none; -webkit-user-select: none; }
/* Explicit height avoids Safari collapsing an empty background span inside a flex button. */
.crew-card .sprite { width: calc(var(--dock-size) - 56px); height: calc(var(--dock-size) - 56px); }
.crew-card .name { font-size: 12px; font-weight: 750; white-space: nowrap; }
.crew-card .sound { display: none; }.card-mark { display: none; }
.card-status { position: absolute; top: -4px; right: -3px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; font-size: 19px; border-radius: 50%; background: #e6ead0; color: #59804a; border: 2px solid #fff5d7; }
.card-status .icon { width: 15px; height: 15px; stroke-width: 3; }
.crew-card.on-stage { background: #e9f3cc; border-color: #7eaa5b; box-shadow: 0 3px 0 #65874d; }.on-stage .card-status { background: #6e9750; color: white; }
.crew-card.locked { border-style: dashed; background: #f3ebdf; }.locked .card-status { background: #ffe49b; }
.crew-card:hover { transform: translateY(-3px); }
.attention, .demo-target { outline: 3px dashed #e58b39; outline-offset: 3px; }
.guide-hand { position: fixed; z-index: 20; pointer-events: none; font-size: 43px; filter: drop-shadow(0 3px 2px #294d4233); }
.drag-ghost { position: fixed; width: 130px; height: 130px; pointer-events: none; z-index: 20; filter: drop-shadow(0 10px 8px #294d4233); opacity: .9; }.drag-ghost .sprite { width: 130px; }.dragging { cursor: grabbing; }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; border-radius: 20px; }.sparkles i { position: absolute; left: 50%; top: 48%; font-style: normal; color: #f6ac29; font-size: 22px; opacity: 0; animation: star-pop 1s var(--delay) ease-out both; }.sparkles i:nth-child(2n) { color: #e58769; }.sparkles.ensemble i { font-size: 32px; }.sparkles.ensemble i:nth-child(n+7) { left: 28%; }.sparkles.ensemble i:nth-child(-n+6) { left: 72%; }
@keyframes star-pop { 0% { opacity: 0; transform: translate(0,0) scale(.2); } 20%,80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(30deg) scale(1.2); } }
.toast { position: fixed; bottom: calc(var(--dock-size) + 24px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 15px); max-width: 80vw; padding: 10px 20px; background: #fff5d9; color: #5c6745; border: 2px solid #cca66b; border-radius: 20px; box-shadow: 0 4px 0 #89623766; font-size: 13px; text-align: center; z-index: 9; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
/* Native dialogs keep their own scrolling; the playable stage never scrolls. */
dialog { border: 3px solid #bf9659; border-radius: 28px; padding: 62px 28px 24px; width: min(470px, calc(100vw - 28px)); max-height: calc(100dvh - 24px); color: var(--ink); background: #fff9e9; box-shadow: inset 0 3px 0 white, 0 8px 0 #745436, 0 25px 90px #20352f50; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #203f3766; backdrop-filter: blur(5px); }
.modal-close, .modal-voice { position: absolute; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 16px; background: #f4e6c5; }
.modal-close { right: 12px; }.modal-voice { left: 12px; }.modal-voice .kawaii { width: 46px; height: 46px; }
h2 { margin: 0 0 8px; font-size: 23px; }.modal-heading p, .dialog-copy { font-size: 13px; line-height: 1.7; color: #7f836b; }.modal-eyebrow { font-size: 11px; color: #a28a5f; letter-spacing: 1px; }.modal-heading h2 { margin: 8px 0; }.modal-center { text-align: center; }.dialog-art { width: 150px; margin: auto; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; padding: 12px 20px; background: var(--green); color: #fff9e5; border-radius: 14px; box-shadow: 0 3px 0 #294b34; font-size: 14px; font-weight: 650; }
.text-button { min-height: 44px; padding: 10px; font-size: 12px; color: #7c826a; text-decoration: underline; text-underline-offset: 4px; }.wide { width: 100%; margin-top: 15px; }
.field { display: block; margin: 16px 0 5px; font-size: 12px; font-weight: 650; }.field-input { width: 100%; min-height: 49px; padding: 12px; border: 2px solid #dbd6bd; border-radius: 12px; background: #fffdf5; color: var(--ink); }.pin { font-size: 24px; letter-spacing: 12px; text-align: center; }.form-error { color: #a75b42; font-size: 12px; min-height: 16px; margin-top: 10px; }.form-note { font-size: 11px; color: #8a9284; line-height: 1.7; }.parent-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }.parent-actions button { min-height: 48px; background: #ecebd8; border-radius: 12px; padding: 10px 15px; font-size: 12px; }
.install-help { margin-top: 22px; border-top: 1px solid #dfd4b5; padding-top: 12px; font-size: 12px; line-height: 1.8; }.install-help summary { cursor: pointer; min-height: 52px; font-weight: 700; }.install-help img { vertical-align: middle; margin: 0 10px 0 3px; border-radius: 12px; }.install-help ol { padding-left: 22px; }.install-help li { margin: 7px 0; }[data-pwa-status] { padding: 10px 12px; border-radius: 12px; background: #e9f0d5; color: #476344; }
.word-button { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px auto; padding: 4px 20px; background: #eef0d8; border-radius: 18px; font-size: 24px; font-weight: 700; }.word-button .kawaii { width: 48px; height: 48px; }
.answers { display: flex; justify-content: center; gap: 15px; margin: 14px 0 8px; }.answer { width: 112px; height: 100px; font-size: 56px; border: 3px solid #e5cf98; border-radius: 22px; background: #fff1cc; box-shadow: 0 3px 0 #c8a871; }.answer.hint { border-color: #6a9257; background: #e7f1c9; }.task-status { min-height: 24px; margin: 8px 0 0; font-size: 12px; color: #7a8568; }
.song-album { display: grid; gap: 12px; margin-top: 18px; }.album-row { display: flex; align-items: center; gap: 8px; }.song-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; min-height: 94px; padding: 10px; background: #edf1d9; border: 2px solid #d6dcb9; border-radius: 18px; }.song-faces { display: flex; flex: 1; min-width: 0; align-items: end; }.song-faces .sprite { width: 16.66%; flex: 1; min-width: 0; max-width: 70px; }.song-play { display: flex; align-items: center; flex-direction: column; flex: none; }.song-play .kawaii { width: 54px; height: 54px; }.song-play small { font-size: 10px; }.delete-song { min-width: 48px; min-height: 48px; border-radius: 12px; background: #eee6dc; }.empty-album { text-align: center; color: #8a927b; font-size: 13px; }.empty-album .kawaii { margin: auto; width: 95px; height: 95px; }
.swap-guest { display: flex; justify-content: center; align-items: center; gap: 10px; }.swap-guest .sprite { width: 105px; }.swap-guest > span { font-size: 40px; color: #b69a62; }.swap-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }.swap-choices button { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100px; padding: 5px 3px; border: 2px solid #d8dfb9; border-radius: 17px; background: #edf2db; }.swap-choices .sprite { width: 82px; }.swap-choices button > span:last-child { font-size: 11px; }
.family-photo { margin: 16px 0; padding: 12px; background: #e2efcd; border: 6px solid white; outline: 1px solid #e3d3b0; border-radius: 16px; box-shadow: 0 4px 0 #d7c8a6; }.photo-decoration { color: #b89654; letter-spacing: 18px; font-size: 22px; }.photo-lineup { display: flex; align-items: flex-end; justify-content: center; min-height: 90px; margin: 4px 0 12px; }.photo-lineup > div { flex: 0 1 16.66%; min-width: 0; }.photo-lineup .sprite { width: 100%; }.photo-lineup > div > span:last-child { font-size: 10px; white-space: nowrap; }.family-photo figcaption { font-size: 12px; color: #677b62; }.night .family-photo { background: #344f63; }.night .photo-lineup, .night .family-photo figcaption { color: #fff4cf; }
.offline-game { background: #f0ecd7; border-radius: 16px; padding: 15px; margin: 15px 0; font-size: 13px; line-height: 1.7; }.goodbye-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; width: 100%; background: #e9f0d5; border-radius: 18px; font-weight: 650; }.goodbye-button .kawaii { width: 58px; height: 58px; }
.rotate-screen { position: fixed; inset: 0; z-index: 30; isolation: isolate; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 24px; text-align: center; }
.rotate-card { width: min(420px, 100%); padding: 35px 15px 20px; background: #fff8e4ee; border: 3px solid #c9a169; border-radius: 35px; box-shadow: 0 7px 0 #96663f; }.rotate-card h2 { font-size: 23px; }.rotate-card p { font-size: 14px; color: #87936b; }.rotate-picture { position: relative; height: 210px; display: grid; place-items: center; }.rotate-device { width: 160px; height: 112px; display: flex; align-items: center; border: 8px solid #60886a; border-radius: 22px; background: #e4efce; animation: turn-device 3.6s ease-in-out infinite; }.rotate-device .sprite { width: 72px; height: 72px; }.rotate-arrow { position: absolute; top: -30px; right: 22%; font-size: 85px; color: #d5a654; }.rotate-card button { display: flex; align-items: center; justify-content: center; margin: 20px auto 0; padding: 0 22px 0 5px; border: 2px solid #d8c489; border-radius: 22px; background: #fff0bd; font-size: 14px; }
@keyframes turn-device { 0%,15% { transform: rotate(90deg); } 45%,85%,100% { transform: rotate(0); } }
@media (orientation: landscape) {
  dialog[data-kind="task"], dialog[data-kind="swap"], dialog[data-kind="farewell"] { width: min(760px, calc(100vw - 28px)); }
  .task-dialog { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: center; gap: 20px; }.task-dialog .dialog-art { width: 200px; max-width: 100%; }.task-dialog .dialog-copy { display: none; }
  .swap-dialog { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 15px; align-items: center; }.swap-dialog .swap-guest { grid-row: 1 / 3; flex-direction: column; }.swap-dialog .swap-guest .sprite { width: 160px; }.swap-dialog h2 { margin: 0; }.swap-dialog .swap-choices { margin: 0; }
  .farewell-dialog { display: grid; grid-template-columns: 58% minmax(0, 1fr); gap: 8px 20px; align-items: center; }.farewell-dialog > .modal-eyebrow, .farewell-dialog > h2 { grid-column: 1 / -1; }.farewell-dialog .family-photo { grid-row: 3 / 6; }.farewell-dialog .dialog-copy, .farewell-dialog .offline-game { margin: 0; }.farewell-dialog .offline-game { font-size: 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --dock-size: 94px; --rail-size: 60px; }
  .app-shell { grid-template-rows: 48px minmax(0, 1fr) var(--dock-size); gap: 6px; padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .game-hud { gap: 10px; }.brand { font-size: 17px; gap: 7px; }.brand small { font-size: 8px; letter-spacing: 3px; }.brand-icon { width: 40px; height: 40px; font-size: 28px; border-radius: 14px; }
  .scene-picker { padding: 0; border-radius: 16px; }.scene-picker button { border-radius: 13px; }.volume button { width: 44px; min-height: 44px; padding: 2px 0; border-radius: 13px; }.volume button > span:last-child { display: none; }.hud-button { width: 44px; height: 44px; }.session-badge { font-size: 12px; min-width: 80px; height: 38px; }
  .music-room { gap: 5px; }.child-actions { gap: 12px; padding-bottom: 0; }.child-button { min-height: 62px; padding-bottom: 5px; border-radius: 19px; font-size: 10px; }.child-button .kawaii { width: 47px; height: 47px; }.child-button b { min-width: 22px; height: 22px; font-size: 10px; }
  .guide-bar { margin-top: 0; padding: 0 3px; border-radius: 18px; }.guide-bar p { font-size: 10px; max-width: 310px; }.guide-bar .kawaii { width: 42px; height: 42px; }.demo-button { margin-left: 2px; padding: 0 5px; }.demo-button > span:last-child { display: none; }
  .slots { bottom: 22px; }.stage-character { height: min(37dvh, 160px); }.stage-character .sprite { width: min(120%, 31dvh); }.character-name { padding: 2px 6px; font-size: 10px; gap: 3px; }.character-name i { font-size: 9px; }.slot::before { bottom: 10px; height: 16px; }.empty-slot { height: 23dvh; border-width: 2px; gap: 0; }.empty-slot b { font-size: 28px; }.empty-slot > span { font-size: 18px; }
  .stage-meter { bottom: 0; }.on-air { display: none; }.beat-rail span { width: 5px; height: 5px; }
  .crew-section { padding: 10px 8px 6px; border-radius: 19px; border-width: 2px; }.crew-section h2 { font-size: 10px; padding: 2px 16px; top: -13px; }.crew { gap: 6px; }.crew-card { border-radius: 13px; padding: 0 0 4px; }.crew-card .sprite { width: 56px; height: 56px; }.crew-card .name { font-size: 10px; }.card-status { width: 20px; height: 20px; font-size: 15px; top: -5px; }.card-status .icon { width: 12px; height: 12px; }
  .toast { bottom: calc(var(--dock-size) + 12px + env(safe-area-inset-bottom)); font-size: 11px; padding: 7px 14px; }
  dialog { max-height: calc(100dvh - 16px); padding: 48px 20px 16px; border-radius: 23px; }h2 { font-size: 21px; }.modal-close, .modal-voice { top: 6px; }.task-dialog { gap: 15px; }.task-dialog .dialog-art { width: 155px; }.task-dialog .modal-eyebrow { font-size: 10px; }.word-button { margin: 5px auto; font-size: 20px; padding: 0 12px; }.word-button .kawaii { width: 44px; height: 44px; }.answers { margin: 8px 0 4px; }.answer { width: 100px; height: 75px; font-size: 44px; }.task-status { font-size: 11px; margin: 5px 0 0; }.swap-choices { gap: 6px; }.swap-choices button { min-height: 82px; }.swap-choices .sprite { width: 62px; }.swap-dialog .swap-guest .sprite { width: 130px; }.family-photo { margin: 6px 0; padding: 8px; }.photo-decoration { font-size: 17px; }.photo-lineup { min-height: 70px; margin: 2px 0 8px; }.photo-lineup > div > span:last-child { font-size: 9px; }.offline-game { padding: 10px; }.goodbye-button { min-height: 54px; font-size: 12px; }.goodbye-button .kawaii { width: 48px; height: 48px; }
}
@media (max-width: 740px) and (orientation: landscape) {
  .brand > span:last-child { display: none; }.game-hud { gap: 8px; }.volume { gap: 3px; }.session-badge { min-width: 76px; padding: 0 7px; }.guide-bar p { max-width: 220px; }
  dialog[data-kind="task"], dialog[data-kind="swap"], dialog[data-kind="farewell"] { width: calc(100vw - 24px); }
  .task-dialog { display: grid; grid-template-columns: 28% minmax(0, 1fr); gap: 10px; align-items: center; }.task-dialog .dialog-copy { display: none; }.task-dialog .dialog-art { width: 130px; max-width: 100%; }
  .swap-dialog { display: grid; grid-template-columns: 22% minmax(0, 1fr); gap: 8px; align-items: center; }.swap-dialog .swap-guest { grid-row: 1 / 3; flex-direction: column; }.swap-dialog .swap-choices { margin-top: 0; }.swap-dialog h2 { margin: 0; }
}
@media (max-height: 340px) and (orientation: landscape) {
  :root { --dock-size: 80px; }.app-shell::before { background-position: center 65%; }.app-shell { gap: 4px; }.guide-bar p { max-width: 330px; }.guide-bar { transform: translateY(-3px); }.stage-character .sprite { width: min(115%, 28dvh); }.stage-character { height: 31dvh; }.slots { bottom: 14px; }.empty-slot { height: 21dvh; margin-bottom: 6px; }.empty-slot > span { display: none; }.stage-meter { bottom: -3px; }.child-actions { gap: 9px; }.child-button { min-height: 54px; padding-bottom: 3px; }.child-button .kawaii { width: 38px; height: 38px; }.crew-card .sprite { width: 37px; height: 37px; }.crew-card .name { font-size: 9px; }
  .task-dialog h2 { font-size: 18px; }.task-status { display: none; }.answer { height: 60px; }.swap-choices button { min-height: 68px; }.swap-choices .sprite { width: 48px; }
  .farewell-dialog > .modal-eyebrow, .farewell-dialog > .dialog-copy { display: none; }.farewell-dialog > h2 { grid-row: 1; margin: 0; }.farewell-dialog .family-photo { grid-row: 2 / 4; }.farewell-dialog .offline-game { grid-column: 2; grid-row: 2; font-size: 11px; padding: 8px; }.farewell-dialog .goodbye-button { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.stage-character .sprite { transform: none !important; }.sparkles i { opacity: 1; transform: translate(var(--x), var(--y)); }.beat-rail span.active { transform: none; }
}

.install-dialog { width: min(640px, calc(100vw - 28px)); padding: 22px; }
.install-dialog h2 { margin-top: 8px; }
.install-dialog .install-help { border: 0; padding: 0; margin-top: 12px; }
.install-dialog .install-help summary { display: none; }
.install-steps { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.install-steps li { margin: 0; padding: 12px; border-radius: 16px; background: #f3e9c9; }
.install-steps b, .install-steps span { display: block; }.install-steps b { color: #476344; font-size: 14px; }
.install-steps .icon { display: inline-block; vertical-align: middle; }
@media (orientation: landscape) { .install-steps { grid-template-columns: repeat(3, 1fr); } }
#rotate-install { min-height: 44px; margin-top: 12px; padding: 8px 15px; font-size: 12px; }

.install-dialog[open] { display: flex; flex-direction: column; }
.install-dialog > :not(#install-instructions) { flex: none; }
#install-instructions { min-height: 0; overflow-y: auto; }
.install-actions { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
.install-actions .wide { flex: 1; width: auto; margin: 0; }
#fullscreen-error { font-size: 12px; margin: 0; }
