@font-face
{
    font-family: Silkscreen;
    src: url("./fonts/silkscreen-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: Silkscreen;
    src: url("./fonts/silkscreen-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face
{
    font-family: "Nunito Variable";
    src: url("./fonts/nunito-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 1000;
    font-display: swap;
}
:root
{
    color-scheme: dark;
    --plum: #241D31;
    --panel: #372A49;
    --paper: #FFF3D6;
    --muted: #B9AEC5;
    --leaf: #8AC926;
    --coral: #FF7B6B;
    --sky: #69C3D4;
    --lavender: #A78BFA;
    --honey: #F6C453;
    --mint: #BFE3C0;
    --line: #574665;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
    background: var(--plum);
    color: var(--paper);
    font: 16px/1.5 "Nunito Variable", system-ui, sans-serif;
}
a
{
    color: inherit;
    text-underline-offset: 4px;
}
button, a
{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button
{
    cursor: pointer;
    min-height: 48px;
    border: 2px solid var(--plum);
    border-radius: 4px;
    padding: 10px 16px;
    background: var(--panel);
    color: var(--paper);
    font: 12px/1.4 Silkscreen, monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button:hover:not(:disabled), .wardrobe-callout a:hover
{
    filter: brightness(1.09);
}
button:active:not(:disabled)
{
    translate: 2px 2px;
    box-shadow: 1px 1px 0 var(--plum);
}
button:disabled
{
    opacity: .6;
    cursor: default;
}
:focus-visible
{
    outline: 3px solid var(--honey);
    outline-offset: 4px;
}
svg
{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
p
{
    margin: 0;
}
h1, h2, h3, .brand, .eyebrow, .quiet-label
{
    font-family: Silkscreen, monospace;
    font-weight: 400;
}
h1
{
    font-size: clamp(24px, 3.2vw, 36px);
    letter-spacing: -1px;
    margin: 4px 0 8px;
    line-height: 1.3;
}
h2
{
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}
h3
{
    font-size: 12px;
}
.shell
{
    width: min(1280px, 100%);
    margin: 0 auto;
    padding-inline: 24px;
}
header
{
    min-height: 67px;
    background: var(--panel);
    border-bottom: 3px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-inner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}
.brand
{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.15;
    min-height: 48px;
}
nav
{
    display: flex;
    align-self: stretch;
    gap: 12px;
}
nav a
{
    display: flex;
    gap: 8px;
    padding: 0 16px;
    min-height: 48px;
    align-items: center;
    text-decoration: none;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 800;
}
nav a:hover
{
    transform: translateY(-1px);
}
nav a[aria-current]
{
    color: var(--leaf);
    border-bottom-color: var(--leaf);
}
.wallet
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--honey);
}
.wallet strong
{
    font: 18px Silkscreen, monospace;
}
.wallet svg
{
    width: 24px;
    height: 24px;
}
main
{
    padding-top: 24px;
    padding-bottom: 28px;
    min-height: 75vh;
    animation: arrive 140ms linear;
}
.view-heading
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}
.view-heading p:not(.eyebrow)
{
    color: var(--muted);
}
.eyebrow
{
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--leaf);
}
.quiet-label
{
    font-size: 9px;
    color: var(--muted);
    text-align: right;
    max-width: 150px;
    line-height: 1.8;
}
.workspace
{
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
    gap: 20px;
    align-items: stretch;
}
.panel
{
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}
.scene
{
    position: relative;
    min-width: 0;
    width: 100%;
    border: 3px solid var(--plum);
    outline: 2px solid var(--line);
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    min-height: 460px;
    overflow: hidden;
    background: var(--mint);
    isolation: isolate;
}
.habitat-art
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.sunbeam
{
    position: absolute;
    top: 0;
    left: 7%;
    width: 58%;
    height: 100%;
    clip-path: polygon(0 0, 32% 0, 100% 100%, 55% 100%);
    background: var(--paper);
    opacity: .10;
    pointer-events: none;
}
.pet-button
{
    position: absolute;
    width: 34%;
    min-width: 192px;
    aspect-ratio: 1;
    top: 34%;
    left: 33%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    z-index: 3;
}
.pet-button:hover
{
    filter: none !important;
}
.pet-sprite
{
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    overflow: visible;
}
.pet-body
{
    animation: idle 760ms steps(1, end) infinite alternate;
}
.eyes
{
    animation: blink 4.2s steps(1, end) infinite;
}
.sleep-eyes
{
    display: none;
}
.thought
{
    position: absolute;
    top: 26%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--plum);
    background: var(--paper);
    color: var(--plum);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 3px 3px 0 #574665;
}
.thought::after
{
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    bottom: -7px;
    left: 24px;
    background: var(--paper);
    border-bottom: 2px solid var(--plum);
    border-right: 2px solid var(--plum);
}
.scene-caption
{
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
    z-index: 5;
}
.scene-caption span
{
    background: var(--panel);
    padding: 5px 8px;
    font-size: 10px;
}
.scene-caption span:first-child
{
    font-family: Silkscreen, monospace;
}
.prop
{
    position: absolute;
    background: transparent;
    border: 2px solid transparent;
    padding: 0;
    width: 15%;
    min-height: 48px;
    z-index: 5;
}
.prop:hover
{
    border: 2px dashed var(--plum);
}
.bowl
{
    top: 65%;
    left: 8%;
    height: 17%;
}
.ball
{
    top: 77%;
    right: 7%;
    width: 15%;
    height: 18%;
}
.wash
{
    top: 48%;
    right: 10%;
    height: 24%;
    width: 27%;
}
.panel-title
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.panel-title > svg
{
    color: var(--coral);
}
.live-dot
{
    width: 6px;
    height: 6px;
    background: var(--leaf);
    box-shadow: 0 0 0 4px #8ac92616;
}
.small
{
    font-size: 12px;
}
.muted
{
    color: var(--muted);
}
.meters
{
    margin-top: 12px;
}
.meter
{
    background: transparent !important;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    color: var(--paper) !important;
}
.meter:last-child
{
    border: 0;
}
.meter-label
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
}
.meter-label strong
{
    margin-left: auto;
    font: 14px Silkscreen, monospace;
}
.meter-label svg
{
    width: 16px;
    height: 16px;
    color: var(--accent);
}
.meter-bottom
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}
.meter-bottom > span
{
    width: 61px;
    text-align: right;
    font-size: 10px;
    color: var(--muted);
    line-height: 14px;
}
.track
{
    background: var(--plum);
    height: 8px;
    flex: 1;
}
.track i
{
    display: block;
    height: 100%;
    background: var(--accent);
    transition: width 180ms steps(6, end);
}
.leaf { --accent: var(--leaf); }
.coral { --accent: var(--coral); }
.sky { --accent: var(--sky); }
.lavender { --accent: var(--lavender); }
button.leaf, button.coral, button.sky, button.lavender
{
    color: var(--plum);
    background: var(--accent);
    box-shadow: 4px 4px 0 var(--plum);
}
.recommendation
{
    font-size: 12px;
    color: var(--paper);
    margin: 8px 0 12px;
}
.care-actions
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.care-actions button
{
    min-height: 52px;
    justify-content: flex-start;
    padding: 8px 12px;
}
kbd
{
    margin-left: auto;
    border: 1px solid #241d3150;
    padding: 1px 4px;
    font-size: 10px;
}
.cooldown
{
    min-height: 18px;
    margin-top: 12px;
    font-size: 11px;
}
.below-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 20px;
    margin-top: 20px;
}
.moments ul
{
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    font-size: 13px;
    display: grid;
    gap: 12px;
}
.moments li
{
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.moment-dot
{
    flex: 0 0 5px;
    height: 5px;
    background: var(--line);
}
.moment-dot.new
{
    background: var(--leaf);
}
.next .eyebrow
{
    font-size: 8px;
    margin-bottom: 4px;
    color: var(--honey);
    letter-spacing: .5px;
}
.next-content
{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
}
.next-art
{
    width: 80px;
    height: 80px;
    background: var(--plum);
    flex-shrink: 0;
    padding: 4px;
}
.next-art .pet-body, .game-thumb .pet-body, .outfit-image .pet-body
{
    animation: none;
}
.next-content p
{
    font-size: 11px;
}
.next a, .dressing-preview a, .closet a, .wardrobe-callout a
{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    color: var(--leaf);
    font-weight: 800;
    font-size: 12px;
}
.how
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding: 24px 0 16px;
}
.how strong
{
    color: var(--paper);
    font-size: 12px;
}
.how span, .game-notes span
{
    display: flex;
    align-items: center;
    gap: 8px;
}
.how svg
{
    width: 14px;
    height: 14px;
}
.save-row
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}
.text-button
{
    background: none;
    border: 0;
    font: 12px "Nunito Variable", sans-serif;
    color: var(--muted);
    text-decoration: underline;
    padding-right: 0;
}
.text-button svg
{
    width: 14px;
    height: 14px;
}
footer
{
    border-top: 1px solid var(--line);
}
.footer-inner
{
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 11px;
    color: var(--muted);
}
.footer-inner strong
{
    color: var(--paper);
    font-family: Silkscreen, monospace;
    font-size: 10px;
}
.footer-inner > div:last-child
{
    text-align: right;
}
.footer-inner a
{
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    font-size: 10px;
}
.dressing
{
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: start;
}
.dressing-preview
{
    position: sticky;
    top: 92px;
    text-align: center;
    padding: 12px 12px 20px;
}
.dressing-stage
{
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: var(--mint);
    border: 3px solid var(--plum);
    border-radius: 4px;
}
.dressing-stage .pet-sprite
{
    width: 224px;
    height: 224px;
    z-index: 2;
}
.checker
{
    position: absolute;
    bottom: 16px;
    width: 80%;
    height: 56px;
    background: repeating-conic-gradient(#a78bfa 0 25%, #b9aec5 0 50%) 0 / 24px 24px;
    border: 4px solid var(--line);
}
.room-label
{
    position: absolute;
    top: 16px;
    font: 10px Silkscreen, monospace;
    color: var(--panel);
}
.nameplate
{
    margin: 16px auto 12px;
    padding: 12px 24px;
    background: var(--paper);
    color: var(--plum);
    width: fit-content;
    min-width: 200px;
}
.nameplate p
{
    font-size: 12px;
}
.dressing-preview > button, .dressing-preview > a
{
    display: flex;
    width: fit-content;
    margin-inline: auto;
}
.dressing-preview > button
{
    background: var(--plum);
    margin-bottom: 8px;
}
.outfit-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.outfit
{
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.outfit.equipped
{
    border-color: var(--lavender);
}
.outfit-image
{
    height: 96px;
    width: 96px;
    margin: 0 auto 12px;
}
.outfit-title
{
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: space-between;
}
.outfit h2
{
    font-size: 11px;
}
.outfit-title > span
{
    font-size: 10px;
    color: var(--honey);
}
.outfit p
{
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 16px;
    flex: 1;
}
.outfit button
{
    width: 100%;
    font-size: 10px;
}
.outfit button svg
{
    width: 16px;
    height: 16px;
}
.unaffordable
{
    color: var(--muted);
}
.closet
{
    margin-top: 24px;
    font-size: 13px;
}
.closet h2
{
    margin-bottom: 12px;
}
.closet a
{
    margin-top: 8px;
}
.game-selectors
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.game-selector
{
    text-align: left;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px;
    border: 3px solid var(--line);
}
.game-selector.selected
{
    border-color: var(--leaf);
}
.game-selector > span
{
    display: grid;
    gap: 6px;
}
.game-selector strong
{
    font: 14px Silkscreen, monospace;
}
.game-selector span span
{
    font: 12px "Nunito Variable", sans-serif;
    color: var(--muted);
}
.game-selector span span:last-child
{
    color: var(--honey);
}
.game-selector > svg
{
    margin-left: auto;
    color: var(--leaf);
}
.game-thumb
{
    width: 80px;
    height: 80px;
    background: var(--mint);
    position: relative;
    flex: 0 0 80px;
    overflow: hidden;
}
.game-thumb .pet-sprite
{
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: -4px;
    left: 6px;
}
.snack-pixel
{
    position: absolute;
    top: 6px;
    left: 34px;
    width: 10px;
    height: 10px;
    background: var(--honey);
    border-top: 4px solid #689b51;
}
.bubble-art
{
    width: 36px;
    height: 36px;
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sky);
    border: 3px solid var(--line);
    border-radius: 50%;
}
.bubble-art::after
{
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: var(--paper);
}
.small-bubble
{
    width: 24px;
    height: 24px;
    top: 42px;
    left: 44px;
    background: var(--honey);
}
.game-workspace
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}
.game-panel
{
    padding: 16px;
}
.game-hud
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 16px;
}
.game-hud h2
{
    font-size: 13px;
}
.game-hud > div:not(.game-hud-actions)
{
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--muted);
}
.game-hud strong
{
    color: var(--honey);
    font: 12px Silkscreen, monospace;
    margin-left: 4px;
}
.game-hud-actions
{
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.game-hud-actions button
{
    padding: 8px;
    font-size: 10px;
    min-width: 48px;
}
.canvas-wrap
{
    position: relative;
    border: 3px solid var(--plum);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
canvas
{
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    touch-action: none;
}
.game-overlay
{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #241d3130;
    text-align: center;
}
[hidden]
{
    display: none !important;
}
.game-overlay > div
{
    padding: 20px;
    max-width: 90%;
    background: var(--panel);
    border: 3px solid var(--plum);
    box-shadow: 4px 4px 0 var(--plum);
}
.game-overlay h2
{
    margin: 8px 0;
    font-size: 18px;
}
.game-overlay p
{
    font-size: 13px;
    margin-bottom: 12px;
}
.game-overlay button
{
    min-width: 128px;
}
.game-overlay a
{
    display: block;
    padding-top: 12px;
    min-height: 48px;
    font-size: 13px;
}
.touch-controls
{
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.touch-controls p
{
    font-size: 11px;
    text-align: center;
    color: var(--muted);
}
.touch-controls button
{
    min-width: 100px;
}
.game-instructions p
{
    margin-top: 12px;
    font-size: 13px;
}
.game-instructions h2
{
    margin-top: 8px;
}
hr
{
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}
.reward-note
{
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--honey);
    margin-top: 16px;
}
.reward-note p
{
    margin: 0;
}
.game-notes
{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
}
.game-notes svg
{
    width: 16px;
    height: 16px;
    color: var(--honey);
}
.wardrobe-callout
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #a78bfa16;
    border-left: 3px solid var(--lavender);
}
.wardrobe-callout p
{
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}
.wardrobe-callout a
{
    color: var(--lavender);
}
dialog
{
    background: var(--panel);
    color: var(--paper);
    border: 3px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    max-width: min(440px, calc(100% - 32px));
    box-shadow: 8px 8px 0 var(--plum);
}
dialog::backdrop
{
    background: #241d31dc;
}
dialog p
{
    color: var(--muted);
    margin: 16px 0 24px;
}
.dialog-actions
{
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.dialog-actions button
{
    font-size: 10px;
}
#toast
{
    display: none;
    position: relative;
    width: min(1232px, calc(100% - 48px));
    margin: 12px auto 0;
    padding: 12px 20px;
    background: var(--paper);
    color: var(--plum);
    border: 3px solid var(--plum);
    box-shadow: 4px 4px 0 var(--line);
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
}
#toast.visible
{
    display: block;
}
.particles, .zzz
{
    display: none;
}
.scene[data-reaction="rest"] .sunbeam
{
    inset: 0;
    width: 100%;
    clip-path: none;
    background: var(--plum);
    opacity: .18;
    z-index: 6;
}
.scene[data-reaction="rest"] .zzz
{
    display: block;
    position: absolute;
    top: 35%;
    left: 62%;
    color: var(--paper);
    font: 20px Silkscreen, monospace;
    z-index: 6;
    animation: snooze 900ms steps(3, end);
}
.zzz span
{
    display: inline-block;
    transform: translateY(-20px);
}
.scene[data-reaction="rest"] .eyes, .scene[data-reaction="happy"] .eyes, .scene.needy .eyes
{
    display: none;
}
.scene[data-reaction="rest"] .sleep-eyes, .scene[data-reaction="happy"] .sleep-eyes, .scene.needy .sleep-eyes
{
    display: block;
}
.scene[data-reaction="happy"] .pet-body, .scene[data-reaction="play"] .pet-body
{
    animation: bounce 450ms steps(3, end) 2;
}
.scene[data-reaction="feed"] .pet-body
{
    animation: chew 300ms steps(2, end) 3;
}
.scene[data-reaction="blocked"] .pet-body
{
    animation: nudge 160ms linear;
}
.scene[data-reaction="clean"] .particles
{
    display: block;
    position: absolute;
    inset: 30% 25% 20%;
    z-index: 7;
    pointer-events: none;
}
.particles i
{
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--paper);
    background: var(--sky);
    left: 10%;
    bottom: 0;
    animation: bubbles 900ms steps(6, end);
}
.particles i:nth-child(2) { left: 25%; animation-delay: 50ms; }
.particles i:nth-child(3) { left: 40%; animation-delay: 100ms; }
.particles i:nth-child(4) { left: 55%; animation-delay: 150ms; }
.particles i:nth-child(5) { left: 70%; animation-delay: 100ms; }
.particles i:nth-child(6) { left: 85%; animation-delay: 50ms; }
.scene[data-reaction="feed"] .bowl::after
{
    content: "";
    width: 6px;
    height: 6px;
    background: var(--honey);
    position: absolute;
    left: 40%;
    top: -50px;
    box-shadow: 12px -20px 0 var(--leaf);
    animation: snack 700ms steps(5, end) forwards;
}
.scene[data-reaction="play"] .ball
{
    background: var(--coral);
    clip-path: polygon(30% 30%, 70% 30%, 70% 40%, 80% 40%, 80% 70%, 70% 70%, 70% 80%, 30% 80%, 30% 70%, 20% 70%, 20% 40%, 30% 40%);
    animation: bounce 900ms steps(5, end);
}
.sparkle::after
{
    content: "";
    position: absolute;
    left: 25%;
    top: 45%;
    width: 4px;
    height: 4px;
    background: var(--honey);
    box-shadow: 16px -60px var(--honey), 60px -80px var(--paper), 120px -60px var(--honey), 150px 0 var(--honey), 120px 60px var(--paper), 60px 80px var(--honey), 16px 60px var(--paper);
    animation: sparkle 500ms steps(3, end) forwards;
    z-index: 3;
}
.sr-only, .skip:not(:focus)
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.skip:focus
{
    position: fixed;
    top: 0;
    left: 0;
    padding: 16px;
    z-index: 50;
    background: var(--paper);
    color: var(--plum);
}
@keyframes idle
{
    to { transform: translateY(-1px); }
}
@keyframes blink
{
    0%, 96%, 100% { opacity: 1; }
    97%, 99% { opacity: 0; }
}
@keyframes arrive
{
    from { opacity: .4; }
    to { opacity: 1; }
}
@keyframes bounce
{
    50% { transform: translateY(-5px); }
}
@keyframes chew
{
    50% { transform: translateY(1px) scaleX(1.02); }
}
@keyframes nudge
{
    50% { transform: translateX(1px); }
}
@keyframes snooze
{
    to { transform: translateY(-12px); }
}
@keyframes bubbles
{
    to { transform: translateY(-90px); opacity: 0; }
}
@keyframes snack
{
    to { transform: translateY(70px); opacity: 0; }
}
@keyframes sparkle
{
    to { opacity: 0; transform: scale(1.2); }
}
@media (min-width: 1400px)
{
    .scene { min-height: 460px; }
}
@media (max-width: 1050px)
{
    .quiet-label { display: none; }
    .header-inner { gap: 12px; }
    nav { gap: 4px; }
    nav a { padding-inline: 12px; }
    .care-actions button { padding-inline: 8px; }
    .how { gap: 16px; flex-wrap: wrap; }
    .how strong { width: 100%; }
}
@media (max-width: 899px)
{
    .workspace, .game-workspace { grid-template-columns: 1fr; }
    .scene { min-height: 0; }
    .console { padding: 20px; }
    .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
    .meter:nth-child(3) { border-bottom: 0; }
    .care-actions { grid-template-columns: repeat(4, 1fr); }
    .game-notes { flex-wrap: wrap; }
    .dressing { grid-template-columns: 1fr; }
    .dressing-preview { position: static; }
    .dressing-stage { min-height: 300px; }
    .game-selector { gap: 12px; padding: 12px; }
    .game-thumb { width: 64px; height: 64px; flex-basis: 64px; }
}
@media (max-width: 819px)
{
    .below-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px)
{
    .shell { padding-inline: 12px; }
    #toast { width: calc(100% - 24px); }
    header { position: relative; }
    .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
    .brand { font-size: 12px; gap: 8px; }
    .brand br { display: none; }
    .brand img { width: 28px; height: 28px; }
    .wallet { margin-left: auto; font-size: 11px; }
    .wallet strong { font-size: 15px; }
    .wallet svg { width: 18px; height: 18px; }
    nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
    nav a { justify-content: center; flex: 1; padding-inline: 4px; font-size: 13px; }
    nav svg { width: 16px; height: 16px; }
    main { padding-top: 24px; }
    h1 { font-size: 25px; }
    .eyebrow { font-size: 9px; }
    .view-heading { margin-bottom: 20px; }
    .view-heading p:not(.eyebrow) { font-size: 13px; }
    .workspace { gap: 16px; }
    .scene { aspect-ratio: 4 / 3; }
    .pet-button { width: 46%; min-width: 0; left: 27%; top: 31%; }
    .thought { top: 18%; font-size: 11px; padding: 6px 10px; }
    .scene-caption { bottom: 8px; left: 8px; right: 8px; gap: 4px; }
    .scene-caption span { font-size: 8px; padding: 4px 5px; }
    .prop { min-width: 48px; }
    .panel { padding: 16px; }
    .console { padding: 16px; }
    .meters { gap: 0 20px; margin-top: 8px; }
    .meter-label { font-size: 12px; gap: 5px; }
    .meter-label svg { width: 14px; height: 14px; }
    .meter-label strong { font-size: 12px; }
    .meter-bottom { gap: 8px; }
    .meter-bottom > span { width: 48px; font-size: 9px; }
    .care-actions { grid-template-columns: 1fr 1fr; gap: 12px; }
    .care-actions button { font-size: 11px; padding-inline: 12px; }
    .below-grid { gap: 16px; margin-top: 16px; }
    .how { display: grid; gap: 12px; padding-top: 24px; }
    .how strong { width: auto; }
    .footer-inner { flex-direction: column; gap: 12px; font-size: 10px; }
    .footer-inner > div:last-child { text-align: left; }
    .game-selectors { grid-template-columns: 1fr; gap: 12px; }
    .game-selector { min-height: 96px; padding: 12px; }
    .game-selector strong { font-size: 13px; }
    .game-hud { gap: 8px; margin-bottom: 12px; }
    .game-hud h2 { width: 100%; }
    .game-hud > div:not(.game-hud-actions) { gap: 8px; font-size: 10px; flex-wrap: wrap; max-width: 60%; }
    .game-hud strong { font-size: 11px; }
    .game-hud-actions { gap: 8px; }
    .game-hud-actions button { padding: 6px; }
    #pause span { display: none; }
    .game-panel { padding: 12px; }
    .canvas-wrap { border-width: 2px; }
    .game-overlay > div { padding: 8px 12px; max-width: 95%; }
    .game-overlay h2 { font-size: 13px; margin: 4px 0; }
    .game-overlay p { font-size: 10px; margin-bottom: 6px; }
    .game-overlay .eyebrow { font-size: 7px; }
    .game-overlay button { font-size: 10px; min-height: 48px; padding-block: 6px; }
    .game-overlay a { font-size: 10px; padding-top: 8px; }
    .touch-controls { gap: 8px; }
    .touch-controls button { min-width: 88px; padding-inline: 8px; font-size: 10px; }
    .touch-controls p { font-size: 9px; }
    .game-instructions { display: block; }
    .game-notes { flex-direction: column; gap: 12px; font-size: 11px; }
    .wardrobe-callout { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
    .wardrobe-callout h2 { font-size: 13px; }
    .wardrobe-callout a { font-size: 11px; }
    .outfit-grid { grid-template-columns: 1fr; }
    .dressing-stage { min-height: 240px; }
    .dressing-stage .pet-sprite { width: 176px; height: 176px; }
    .outfit-image { margin-bottom: 16px; }
    .outfit h2 { font-size: 13px; }
    .outfit p { font-size: 13px; }
    .outfit-title > span { font-size: 12px; }
    .outfit button { font-size: 11px; }
    .dressing-preview { padding: 12px; }
    dialog { padding: 20px; }
    dialog h2 { font-size: 13px; }
    dialog p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .particles, .zzz, .sparkle::after, .bowl::after { display: none !important; }
}
