:root{--bg:#fff7fb;--ink:#4a3152;--accent:#b48cf2;--focus:#2a7a3c;color:var(--ink);background:var(--bg);font-family:system-ui,sans-serif}body{background:var(--bg);margin:0}.page{max-width:1100px;margin:0 auto;padding:16px}.big-links{flex-wrap:wrap;gap:16px;padding:0;list-style:none;display:flex}.big-button{background:var(--accent);color:#fff;border:0;border-radius:20px;justify-content:center;align-items:center;min-width:64px;min-height:64px;padding:0 20px;font-size:1.25rem;text-decoration:none;display:inline-flex}:focus-visible{outline:4px solid var(--focus);outline-offset:3px}.game{box-sizing:border-box;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;min-height:100vh;padding:16px}.game input,.game textarea,.game[data-screen=parent],.game[data-screen=recovery]{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.tap{min-width:60px;min-height:60px;color:var(--ink);font:inherit;cursor:pointer;background:#fff;border:0;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px;display:inline-flex;box-shadow:0 4px #4a315240}.tap:disabled,.tap[aria-disabled=true]{opacity:.55;cursor:default}.tap:focus-visible{outline:4px solid var(--focus);outline-offset:3px}.tap-label{font-size:1.1rem}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.game-home{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:stretch;gap:20px;display:grid}.home-dice{background:var(--accent);color:#fff;grid-row:span 2}.people-row{align-items:flex-end;gap:4px;display:flex}.people-row svg{width:72px;height:140px}.home-grownups{place-self:end;position:relative}.badge{background:#e2483d;border-radius:50%;width:16px;height:16px;position:absolute;top:6px;right:6px}.glow{animation:2s ease-in-out infinite alternate glow;box-shadow:0 0 0 4px #ffb347,0 0 24px 8px #ffb347b3}@keyframes glow{to{box-shadow:0 0 0 4px #ffb347,0 0 36px 14px #ffb34766}}@media (prefers-reduced-motion:reduce){.glow{animation:none}}.who-grid{flex-wrap:wrap;justify-content:center;gap:20px;display:flex}.who-player{width:180px;min-height:220px}.who-player[aria-current=true]{box-shadow:0 0 0 5px var(--accent)}.who-player svg{width:110px;height:160px}.person-tile{background:#eee;border-radius:16px;justify-content:center;align-items:center;width:72px;height:120px;font-size:2rem;display:inline-flex}.error-banner{background:#fff0f0;border:3px solid #e2483d;border-radius:20px;align-items:center;gap:12px;margin-bottom:16px;padding:12px;display:flex}.banner-text{flex-direction:column;flex:1;display:flex}.game-loading{justify-content:center;align-items:center;display:flex}.spinner{transform-origin:32px 32px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.game-roll{flex-direction:column;gap:16px;display:flex}.roll-back{align-self:flex-start}.roll-stage{grid-template-columns:auto minmax(160px,1fr) auto;place-items:center;gap:20px;display:grid}.dice-row{flex-direction:column;align-items:center;gap:16px;display:flex}.age-toggle{gap:8px;display:flex}.age-button[aria-pressed=true]{box-shadow:0 0 0 5px var(--accent)}.small-dice{flex-direction:column;gap:8px;display:flex}.small-dice-button{flex-direction:row}.roll-shown svg{width:220px;height:400px}.roll-actions{flex-direction:column;gap:20px;display:flex}.roll-dice{background:var(--accent)}.roll-strip{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.strip-person svg{width:64px;height:120px}.strip-person[aria-current=true]{box-shadow:0 0 0 5px var(--accent)}@media (orientation:portrait){.roll-stage{grid-template-columns:1fr}.small-dice{flex-flow:wrap;justify-content:center}}.game-dress{grid-template-rows:auto auto 1fr;grid-template-columns:minmax(180px,2fr) 3fr;gap:16px;display:grid}.dress-back{grid-column:1/-1;justify-self:start}.dress-person{grid-area:2/1;justify-content:center;align-items:flex-start;display:flex;position:relative}.dress-person>svg{width:100%;max-width:300px;height:auto;max-height:70vh}.dress-wardrobe{grid-area:2/2/span 2;grid-template-rows:auto 1fr;grid-template-columns:auto minmax(0,1fr);gap:12px;min-width:0;display:grid}.dress-rail{flex-direction:column;grid-row:1/span 2;gap:8px;display:flex}.rail-tab[aria-selected=true]{box-shadow:0 0 0 5px var(--accent)}.dress-tab{flex-direction:column;grid-area:2/2;gap:12px;min-width:0;display:flex}.item-tiles,.style-tiles,.closet-tiles,.closet-open{flex-wrap:wrap;align-content:flex-start;gap:12px;display:flex}.item-tile,.style-tile,.closet-tile{width:112px;height:112px;position:relative}.item-tile img,.closet-tile img,.tile-blank{width:96px;height:96px}.tile-blank{background:#f1ecf5;border-radius:12px;display:block}.style-tile svg{width:96px;height:96px}.item-tile[aria-pressed=true],.style-tile[aria-pressed=true]{box-shadow:0 0 0 5px var(--accent)}.tile-badge{background:var(--ink);color:#fff;border-radius:10px;padding:2px 8px;font-size:.8rem;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.bundle-tile{background:var(--accent);flex-direction:row;min-width:236px;min-height:112px}.closet-featured{box-shadow:0 0 0 5px #f6c945}.tiles-empty{padding:24px;font-size:1.2rem}.rail-label{font-size:.75rem}.style-figure,.bundle-figure{line-height:0;display:block}.bundle-figure svg{width:72px;height:128px}.item-tile[data-selected=true]{box-shadow:0 0 0 5px var(--accent), 0 0 0 10px var(--ink)}.dress-style{flex-direction:column;grid-area:1/2;gap:10px;min-width:0;display:flex}.style-regions,.swatches,.patterns,.undo-bar,.outfit-strip{flex-wrap:wrap;gap:8px;display:flex}.swatch-dot{border:2px solid #4a31524d;border-radius:50%;width:40px;height:40px;display:block}.pattern-swatch,.pattern-none{border-radius:10px;width:44px;height:44px;line-height:0;display:block;overflow:hidden}.pattern-swatch svg{width:44px;height:44px}.pattern-none{box-sizing:border-box;border:3px dashed #4a315266}.region-button[aria-pressed=true],.swatch[aria-checked=true],.pattern-button[aria-checked=true],.tuck-toggle[aria-pressed=true]{box-shadow:0 0 0 5px var(--accent)}.tuck-toggle{align-self:flex-start}.dress-tools{flex-direction:column;grid-area:3/1;align-items:center;gap:12px;display:flex}.outfit-strip{justify-content:center}.outfit-tile{width:72px;height:112px}.outfit-figure{line-height:0;display:block}.outfit-figure svg{width:56px;height:96px}.heart-button{z-index:1;border-radius:50%;width:88px;height:88px;padding:0;position:absolute;top:0;right:0;box-shadow:0 4px #4a315240,0 0 0 4px #ffd1e3}.heart-icon{width:100%;height:auto;display:block}.heart-button[data-unsaved=true]{box-shadow:0 4px #4a315240,0 0 0 5px #ff6fa8,0 0 22px 8px #ff6fa88c}.heart-button[data-unsaved=true] .heart-icon{animation:1.6s ease-in-out infinite heart-beat}@keyframes heart-beat{0%,to{transform:scale(1)}50%{transform:scale(1.07)}}.heart-button .heart-icon.heart-pop{animation:.4s ease-out heart-pop}@keyframes heart-pop{40%{transform:scale(1.35)}}.outfit-new{animation:.45s ease-out outfit-pop}@keyframes outfit-pop{0%{opacity:0;transform:scale(.4)}70%{opacity:1;transform:scale(1.12)}}@media (prefers-reduced-motion:reduce){.heart-button[data-unsaved=true] .heart-icon,.heart-button .heart-icon.heart-pop,.outfit-new{animation:none}}@media (orientation:landscape){.dress-person>svg{max-height:min(70vh,100vh - 310px)}.dress-tools{flex-flow:wrap;place-content:flex-start center}.dress-tools .outfit-strip{flex-basis:100%}.outfit-strip{box-sizing:border-box;overscroll-behavior-x:contain;scrollbar-width:none;flex-wrap:nowrap;justify-content:safe center;margin-block:-8px;padding:8px;overflow-x:auto}.outfit-tile{flex-shrink:0}.dress-rail{gap:6px}.rail-tab{padding-block:3px}}@media (orientation:portrait){.game-dress{grid-template-columns:1fr}.dress-person>svg{max-height:40vh}.dress-person,.dress-tools,.dress-wardrobe{grid-area:auto/1}.dress-rail{flex-flow:wrap;grid-row:auto}.dress-wardrobe{order:1;grid-template-rows:auto;grid-template-columns:minmax(0,1fr)}.dress-style,.dress-tab{grid-area:auto/1}}.game-collection{flex-direction:column;gap:16px;display:flex}.collection-back{align-self:flex-start}.collection-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));align-items:end;gap:20px;margin:0;padding:0;list-style:none;display:grid}.collection-card{flex-direction:column;align-items:center;gap:8px;display:flex;position:relative}.collection-person{justify-content:flex-end;width:100%;min-height:240px}.collection-person svg[role=img]{width:120px;height:220px}div.collection-person{background:#f3eef8;border-radius:20px;flex-direction:column;align-items:center;padding:8px;display:flex}.update-badge{background:#fff;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:1rem;display:inline-flex}.collection-dice{background:var(--accent);color:#fff;align-self:center;min-width:220px;min-height:220px}.confirm-backdrop{z-index:10;background:#4a315273;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.confirm{background:#fff;border-radius:28px;flex-direction:column;align-items:center;gap:20px;padding:24px;display:flex}.confirm-picture{align-items:flex-end;gap:12px;display:flex}.confirm-picture svg[role=img]:first-child{width:140px;height:260px}.confirm-picture svg[role=img]:last-child{width:72px;height:72px}.confirm-actions{gap:32px;display:flex}.confirm-yes,.confirm-no{min-width:96px;min-height:96px}.parent-gate{flex-direction:column;align-items:center;gap:16px;display:flex}.parent-back{align-self:flex-start}.parent-gate h1{margin:0}.pin-dots{gap:16px;min-height:32px;display:flex}.pin-dot{border:3px solid var(--ink);box-sizing:border-box;border-radius:50%;width:24px;height:24px}.pin-dot.filled{background:var(--ink)}.shake{animation:.4s pin-shake}@keyframes pin-shake{0%,to{transform:translate(0)}25%{transform:translate(-12px)}75%{transform:translate(12px)}}.pin-question{margin:0;font-size:2rem}.pin-note{min-height:1.5em;margin:0}.keypad{grid-template-columns:repeat(3,60px);gap:16px;display:grid}.keypad-key{width:60px;height:60px;padding:0;font-size:1.75rem}.parent-area{flex-direction:column;gap:16px;font-size:1.1rem;line-height:1.5;display:flex}.parent-header{align-items:center;gap:16px;display:flex}.parent-header h1{flex:1;margin:0}.parent-build{font-family:monospace}.parent-menu{flex-wrap:wrap;gap:12px;display:flex}.parent-menu-item[aria-pressed=true]{background:var(--accent);color:#fff}.parent-section h2{margin-top:0}.parent-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.parent-row{background:#fff;border-radius:16px;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;display:flex}.parent-picture svg{width:64px;height:96px}.parent-row-name{flex:1;min-width:10em;font-size:1.1rem}.parent-row-actions,.parent-name-field,.parent-pictures,.parent-add{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.parent-pictures,.parent-row .parent-name-field{flex-basis:100%}.parent-picture-choice svg{width:48px;height:80px}.parent-picture-choice[aria-pressed=true]{box-shadow:0 0 0 4px var(--accent)}.parent-input{box-sizing:border-box;min-height:60px;font:inherit;border:3px solid var(--ink);border-radius:14px;padding:0 12px;font-size:1.2rem}.parent-message{background:#ffe1dd;border-radius:12px;padding:8px 12px}.parent-warning,.parent-reminder{background:#fff4d6;border-radius:12px;padding:8px 12px}.parent-facts{grid-template-columns:max-content 1fr;gap:6px 16px;display:grid}.parent-facts dd{margin:0}.parent-links{flex-wrap:wrap;gap:12px;padding:0;list-style:none;display:flex}.parent-link{text-decoration:none}.parent-styles{flex-wrap:wrap;gap:24px;display:flex}.parent-style{flex-direction:column;align-items:center;gap:8px;margin:0;display:flex}.parent-style figcaption{font-size:1.3rem;font-weight:700}.parent-style svg{background:#fff;border-radius:16px;width:140px;height:256px}.parent-file-label{flex-direction:column;gap:8px;margin-top:16px;display:flex}.parent-file{min-width:60px;max-width:100%;padding:8px}.parent-file::file-selector-button{min-width:60px;min-height:60px;font:inherit}.parent-empty-warning{max-width:28em;margin:0}.parent-trash .confirm{max-width:calc(100vw - 64px)}@page{size:letter portrait;margin:.5in}.print-controls{flex-direction:column;align-items:flex-start;gap:16px;display:flex}.print-row{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.print-toggle[aria-pressed=true]{box-shadow:0 0 0 5px var(--accent), 0 0 0 10px var(--ink)}.print-go{background:var(--accent)}.print-name-input{box-sizing:border-box;border:3px solid var(--ink);width:16em;min-width:0;max-width:100%;min-height:60px;font:inherit;border-radius:16px;padding:0 16px;font-size:1.5rem}.print-sheet{text-align:center;margin:16px auto}.print-sheet svg{width:auto;max-width:100%;height:70vh}.print-sheet figcaption{color:var(--ink);font-size:1.5rem}@media screen and (orientation:landscape){.print-screen{align-items:flex-start;gap:24px;display:flex}.print-screen .print-sheet{flex:1;margin:0}.print-screen .print-sheet svg{height:calc(100vh - 80px)}}@media print{.no-print{display:none!important}body,body .page,body .game{background:#fff;min-height:0;margin:0;padding:0}body .print-sheet{break-inside:avoid;margin:0}body .print-sheet svg{width:auto;height:9.3in;margin:0 auto;display:block}.print-sheet figcaption{margin-top:.1in;font-size:18pt}}.tabs{flex-wrap:wrap;gap:12px;margin:12px 0;display:flex}.tiles{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.tile{background:#f4eef8;border-radius:16px;justify-content:center;align-items:center;width:96px;height:96px;display:flex}.tile img{width:96px;height:96px}.runs{white-space:pre-wrap;font:1rem ui-monospace,monospace}.verdict-pass{color:#2a7a3c}.verdict-fail{color:#b3261e}
