:root {
  --background: 35 64% 98%;
  --foreground: 283 15% 37%;
  --border: 328 30% 89%;
  --primary: 334 49% 66%;
  --primary-foreground: 0 0% 100%;
  --card: 36 100% 99%;
  --muted: 318 28% 94%;
  --app-font-sans: "Segoe UI", Arial, sans-serif;
  --app-font-serif: Georgia, "Times New Roman", serif;
  --app-font-mono: ui-monospace, monospace;
  --radius: 1rem;
  font-family: var(--app-font-sans);
  color: hsl(var(--foreground));
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; width: 100%; margin: 0; }
body { min-height: 100vh; overflow-x: hidden; background: #fff9f2; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #9a78b0; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.welcome-screen { min-height: 100vh; min-height: 100dvh; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding: 68px max(8vw, 30px) 82px; background: radial-gradient(ellipse at 76% 52%, #f3d8e6 0, transparent 34%), radial-gradient(ellipse at 12% 13%, #e2d8f1 0, transparent 32%), linear-gradient(120deg,#fff9f1,#fff2f6 52%,#edf7f8); }
.welcome-screen::after,.studio-screen::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:10; opacity:.12; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.welcome-copy { position:relative; z-index:2; max-width:620px; animation: rise .75s both; }
.brand-mark { display:flex; align-items:center; gap:9px; color:#9873a5; letter-spacing:.17em; font-size:11px; font-weight:700; }
.brand-gem,.gold { color:#d6b45f; font-size:21px; }
.eyebrow { text-transform:uppercase; letter-spacing:.2em; font-size:10px; font-weight:700; color:#bb6289; margin:42px 0 15px; }
.welcome-copy h1 { font:600 clamp(44px,7vw,82px)/.99 var(--app-font-serif); letter-spacing:-.04em; color:#705e7d; margin:0; }
.welcome-copy h1 span { color:#bd6f99; font-style:italic; }
.welcome-subtitle { font-size:17px; color:#8f7d94; margin:22px 0 32px; letter-spacing:.015em; }
.primary-button { border:0; border-radius:999px; padding:17px 29px; background:#d47fa4; color:white; font-weight:700; letter-spacing:.09em; font-size:13px; box-shadow:0 7px 0 #b6658d,0 16px 28px #d97ea43d; transition:transform .18s,box-shadow .18s; }
.primary-button:hover { transform:translateY(-3px); box-shadow:0 10px 0 #b6658d,0 20px 30px #d97ea440; }
.primary-button span { font-size:19px; margin-left:14px; }
.welcome-note { margin-top:27px; color:#8f7b96; font-size:11px; letter-spacing:.08em; }
.welcome-note span { color:#d6b45f; padding:0 7px; }
.welcome-doll { position:absolute; right:10%; top:50%; transform:translateY(-48%); width:min(44vw,500px); z-index:1; animation:float 5s ease-in-out infinite; }
.welcome-doll .princess-character { width:100%; height:auto; filter:drop-shadow(0 22px 13px #a76f9230); position:relative; z-index:1; }
.welcome-halo { position:absolute; inset:7% 3% 10%; border:1px solid #fff9; border-radius:50%; background:linear-gradient(140deg,#fff9,transparent 63%); box-shadow:inset 0 0 30px #fff8,0 0 0 13px #fff3; }
.welcome-caption { position:absolute; z-index:2; bottom:1%; left:50%; transform:translateX(-50%); white-space:nowrap; padding:10px 20px; border-radius:99px; background:#fffaf1d9; color:#9a7295; font:italic 14px var(--app-font-serif); box-shadow:0 4px 18px #bb92af2a; }
.decor { position:absolute; color:#d9ad5b; }.decor-star { font-size:33px; animation:twinkle 3s ease-in-out infinite; }.star-a { right:17%; top:16%; }.star-b { right:43%; bottom:18%; font-size:24px; }.decor-heart { font-size:33px; color:#e79eba; }.heart-a { right:6%; top:38%; }.heart-b { left:49%; top:13%; font-size:25px; }
.welcome-orbit { position:absolute; border:1px solid #fff9; border-radius:50%; width:39vw; height:39vw; right:7%; top:50%; transform:translateY(-50%); }.orbit-two { width:48vw; height:48vw; right:2%; border-color:#eacfe080; }
.welcome-bottom { position:absolute; bottom:26px; left:0; width:100%; text-align:center; color:#ae98ad; font-size:9px; letter-spacing:.2em; }.welcome-bottom span { color:#db91ac; margin-left:7px; }

.studio-screen { min-height:100vh; min-height:100dvh; position:relative; overflow:hidden; padding:17px 5.3vw 15px; background:radial-gradient(ellipse at 50% 42%,#fffdf9 0%,#fff9f3 45%,#f9eff4 100%); }
.studio-header { height:54px; display:flex; align-items:center; justify-content:space-between; position:relative; z-index:2; }
.studio-logo { display:flex; align-items:center; gap:9px; text-decoration:none; color:#8f7095; font-size:9px; letter-spacing:.15em; line-height:1.5; }.studio-logo b { font-size:11px; color:#705a7b; }.logo-sparkle { color:#d7b260; font-size:26px; }
.header-note { font:italic 14px var(--app-font-serif); color:#a78ba7; }.tiny-star { color:#d8b45c; margin:0 8px; }
.text-button { border:0; background:transparent; color:#927a98; font-size:10px; font-weight:700; letter-spacing:.13em; padding:11px; }.text-button span { margin-left:8px; color:#c77f9e; font-size:14px; }
.studio-heading { text-align:center; margin:17px 0 15px; position:relative; z-index:1; }.studio-heading .eyebrow { margin:0 0 5px; font-size:9px; }.studio-heading h1 { font:600 clamp(29px,3.2vw,41px)/1.1 var(--app-font-serif); margin:0; color:#705c7d; }.studio-heading h1 em { color:#c6759b; }.studio-heading>p:last-child { font-size:12px; color:#a390a3; margin:7px 0 0; }
.game-layout { position:relative; z-index:1; display:grid; grid-template-columns:minmax(250px,.95fr) minmax(350px,1.25fr) minmax(165px,.57fr); gap:clamp(13px,2.1vw,32px); max-width:1230px; margin:0 auto; align-items:center; }
.controls-panel { background:#fffdfa; border:1px solid #f0e1e7; border-radius:23px; box-shadow:0 14px 38px #885b8121; overflow:hidden; min-width:0; }
.panel-top { display:flex; justify-content:center; align-items:center; gap:12px; padding:16px 12px 13px; text-align:center; }.panel-top b { font-size:10px; letter-spacing:.18em; color:#866b8c; }.panel-top small { display:block; color:#b09bb0; font-size:10px; margin-top:3px; }.panel-star { font-size:14px; color:#d8b45f; }
.category-tabs { display:flex; gap:3px; padding:0 12px 9px; border-bottom:1px solid #f4e9ed; overflow-x:auto; scrollbar-width:none; }.category-tab { border:0; background:transparent; color:#a48da5; font-size:10px; font-weight:700; padding:9px; border-radius:20px; white-space:nowrap; transition:background .18s,color .18s; }.category-tab:hover { background:#fbf1f6; color:#b76d92; }.category-tab.is-active { background:#f5e7f2; color:#895b89; box-shadow:inset 0 0 0 1px #eed8e8; }
.option-area { min-height:207px; padding:13px 16px 11px; }.option-title { margin:0 0 10px; color:#8a748f; font-size:10px; font-weight:700; letter-spacing:.08em; }.option-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.option-button { min-height:57px; border:1px solid #f1e6eb; border-radius:13px; background:#fffaf8; color:#836f89; padding:6px 4px; font-size:9px; font-weight:600; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; transition:transform .16s,border-color .16s,background .16s,box-shadow .16s; }.option-button:hover { transform:translateY(-2px); border-color:#e7c5d6; }.option-button.selected { background:#f8e9f2; border-color:#cf94b2; box-shadow:0 0 0 2px #f5dfe9; color:#8f567a; }.option-icon { height:20px; min-width:22px; display:flex; align-items:center; justify-content:center; color:#c4779c; }.swatch-icon { width:19px; height:19px; border-radius:50%; background:var(--swatch,#e8a0b6); border:2px solid #fff; box-shadow:0 0 0 1px #e7d5df; }.line-icon { font:19px var(--app-font-serif); }
.panel-foot { display:flex; justify-content:center; gap:7px; align-items:center; padding:11px 4px; background:#fcf4f3; color:#a78b9f; font:italic 10px var(--app-font-serif); }.gold-dot { width:4px; height:4px; border-radius:50%; background:#d8b65d; }
.doll-stage { position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; }.stage-topper { position:relative; z-index:2; display:flex; gap:9px; align-items:center; color:#9a789e; font-size:9px; letter-spacing:.18em; font-weight:700; margin-bottom:-17px; }.stage-topper span { color:#d3ae59; font-size:14px; }
.mirror { position:relative; width:min(100%,390px); aspect-ratio:.9; padding:25px 21px 23px; border-radius:47% 47% 24% 24%/31% 31% 12% 12%; background:linear-gradient(145deg,#fffdfa,#f5e9ef 65%,#e9d9eb); border:8px solid #fffdfa; box-shadow:0 0 0 2px #ecd8e4,0 0 0 7px #f8edf1,0 17px 36px #a9779b22; overflow:hidden; }
.mirror:before { content:""; position:absolute; inset:12px; border:1px solid #fff; opacity:.9; border-radius:inherit; pointer-events:none; }.mirror-inner { position:relative; width:100%; height:100%; border-radius:48% 48% 18% 18%/30% 30% 8% 8%; background:radial-gradient(ellipse at 50% 34%,#fff 0%,#fff9f7 54%,#f8e6ed 100%); overflow:hidden; display:flex; align-items:flex-end; justify-content:center; }.mirror-inner:before { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 75%,#ead9f0 0,transparent 54%); pointer-events:none; }
.doll-svg-wrap { position:relative; z-index:2; height:98%; width:100%; display:flex; align-items:flex-end; justify-content:center; transform-origin:50% 100%; animation:doll-idle 5.6s ease-in-out infinite; }
.princess-character { position:relative; display:block; aspect-ratio:1; overflow:visible; }
.princess-character__overlay { position:absolute; inset:0; width:100%; height:100%; }
.princess-character__overlay { overflow:visible; pointer-events:none; }
.doll-svg-wrap .princess-character { height:auto; width:100%; max-width:100%; aspect-ratio:1; flex:0 0 auto; filter:drop-shadow(0 8px 9px #946d9630); }
.character-sparkles { animation:gem-glint 3.2s ease-in-out infinite; }
.character-gem-glint { animation:gem-glint 2.6s ease-in-out infinite; }
.mirror-ornament { position:absolute; top:18%; font-size:17px; color:#e8b9cf; z-index:1; }.ornament-left { left:7%; }.ornament-right { right:7%; }.floating-heart { position:absolute; z-index:1; color:#e5a0bc; opacity:.45; animation:float 4s ease-in-out infinite; }.heart-one { left:13%; top:33%; font-size:14px; }.heart-two { right:15%; top:52%; font-size:11px; animation-delay:-2s; }
.stage-curtain { position:absolute; z-index:-1; top:11%; height:53%; width:11%; background:linear-gradient(90deg,#edc6d9,#f7dce8); opacity:.75; }.curtain-left { left:0; border-radius:0 60% 40% 0; }.curtain-right { right:0; border-radius:60% 0 0 40%; }
.stage-plinth { margin-top:-2px; background:#f4e8f1; color:#9c809d; border-radius:0 0 20px 20px; padding:9px 18px; font:italic 12px var(--app-font-serif); box-shadow:0 7px 14px #b487a21a; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; }.plinth-star { color:#d4ae55; font-style:normal; }
.sandal-preview { display:inline-flex; align-items:center; gap:4px; border-left:1px solid #e0cde0; padding-left:8px; color:#9a789e; font:600 9px var(--app-font-sans); white-space:nowrap; }.sandal-preview svg { width:34px; height:16px; overflow:visible; }
.stage-actions { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; flex-wrap:wrap; }.secondary-button,.reset-button,.celebrate-button { border-radius:99px; font-size:10px; font-weight:700; transition:transform .16s,box-shadow .16s; }.secondary-button { background:#fffaf6; border:1px solid #e8d7e4; color:#987394; padding:10px 13px; }.secondary-button:hover,.reset-button:hover { transform:translateY(-2px); box-shadow:0 4px 10px #b18ba422; }.secondary-button span { color:#d6b05a; }.celebrate-button { border:0; background:linear-gradient(110deg,#d77fa5,#be7ab6); color:white; letter-spacing:.08em; padding:13px 17px; box-shadow:0 5px 12px #c17ba440; }.celebrate-button:hover { transform:translateY(-2px); box-shadow:0 8px 15px #c17ba445; }.celebrate-button span { color:#ffe9a4; margin-left:6px; }.reset-button { border:0; background:transparent; color:#a08ba2; padding:10px 7px; text-decoration:underline; text-decoration-color:#dfcddc; text-underline-offset:3px; }
.look-card { justify-self:stretch; align-self:center; position:relative; min-height:268px; padding:21px 16px 17px; border-radius:20px; background:#f8f0f7; border:1px solid #ebdce9; text-align:center; box-shadow:0 12px 28px #b18ba41b; transform:rotate(1deg); }.look-card-top { display:flex; align-items:center; justify-content:center; gap:8px; }.look-card-top p { margin:0; color:#ac91aa; font:italic 11px/1.45 var(--app-font-serif); }.look-card-top b { font-style:normal; color:#927095; }.look-star { color:#d6b45f; font-size:19px; }.mini-crown { color:#d2ac59; font-size:37px; margin:14px 0 6px; }.look-note { font:600 15px/1.45 var(--app-font-serif); color:#90728e; }.look-note i { color:#c0709b; }.look-divider { display:flex; align-items:center; gap:8px; color:#d7b45e; margin:13px 7px 12px; }.look-divider:before,.look-divider:after { content:""; height:1px; background:#e5d5e4; flex:1; }.dress-note { color:#a68eaa; font-size:10px; line-height:1.65; }.dress-note b { color:#8c7094; }.dress-swatch { width:24px; height:24px; background:linear-gradient(145deg,#ffd9e3,#d979a0); border-radius:50%; margin:11px auto 0; box-shadow:0 0 0 4px #fff,0 0 0 5px #e3d4e4; }
.studio-footer { text-align:center; color:#b19aab; font-size:9px; letter-spacing:.19em; margin:14px 0 0; }.studio-footer span { color:#d98ca8; margin-left:5px; }.sparkle-layer { position:absolute; inset:0; z-index:5; pointer-events:none; overflow:hidden; }.spark { position:absolute; color:#d8b75f; font-size:17px; animation:sparkle .9s ease-out forwards; }.celebration { position:fixed; inset:0; z-index:20; pointer-events:none; display:flex; align-items:center; justify-content:center; }.celebration-message { font:700 clamp(28px,5vw,58px) var(--app-font-serif); color:#a55e8c; text-align:center; background:#fffaf1ef; border:1px solid #f4d8e4; border-radius:26px; padding:24px 34px; box-shadow:0 18px 50px #a66c9530; animation:pop .45s cubic-bezier(.2,1.4,.4,1) both; }.celebration-message small { display:block; font:500 13px var(--app-font-sans); color:#9d829e; margin-top:9px; }
.welcome-screen.leaving { opacity:0; transform:scale(.985); pointer-events:none; transition:opacity .24s,transform .24s; }
@keyframes rise { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100% { transform:translateY(-48%); } 50% { transform:translateY(calc(-48% - 9px)); } }
@keyframes doll-idle { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-4px) rotate(.3deg); } }
@keyframes gem-glint { 0%,100% { opacity:.7; } 50% { opacity:1; } }
@keyframes twinkle { 0%,100% { opacity:.55; transform:scale(.92) rotate(-8deg); } 50% { opacity:1; transform:scale(1.1) rotate(8deg); } }
@keyframes sparkle { 0% { opacity:0; transform:translateY(8px) scale(.4); } 35% { opacity:1; } 100% { opacity:0; transform:translateY(-28px) scale(1.2); } }
@keyframes pop { 0% { opacity:0; transform:scale(.72); } 100% { opacity:1; transform:scale(1); } }

.princess-character.is-blinking .character-blink { display:block; }
.character-blink { display:none; }

@media(max-width:900px) {
  .welcome-doll { right:3%; width:41vw; }
  .welcome-copy { max-width:55vw; }
  .welcome-copy h1 { font-size:clamp(43px,7vw,67px); }
  .studio-screen { padding-left:3vw; padding-right:3vw; }
  .game-layout { grid-template-columns:minmax(230px,.9fr) minmax(320px,1.2fr); }
  .look-card { display:none; }
  .mirror { width:min(100%,365px); }
}
@media(max-width:650px) {
  .welcome-screen { align-items:flex-start; padding:68px 23px 410px; text-align:center; justify-content:center; }
  .welcome-copy { max-width:100%; }
  .brand-mark { justify-content:center; font-size:9px; }
  .welcome-copy .eyebrow { margin:36px 0 12px; }
  .welcome-copy h1 { font-size:clamp(40px,11vw,60px); }
  .welcome-subtitle { font-size:14px; margin:16px 0 24px; }
  .welcome-doll { width:min(58vw,240px); right:50%; top:auto; bottom:42px; transform:translateX(50%); animation:float-mobile 5s ease-in-out infinite; }
  .welcome-caption { font-size:13px; }
  .welcome-orbit { width:70vw; height:70vw; right:50%; top:auto; bottom:20px; transform:translateX(50%); }
  .orbit-two { width:83vw; height:83vw; right:50%; bottom:0; }
  .star-a { right:13%; top:51%; }.star-b { left:11%; bottom:12%; }.heart-a { right:8%; top:69%; }.heart-b { left:10%; top:14%; }
  .welcome-bottom { bottom:16px; font-size:8px; }
  .studio-screen { padding:11px 12px 12px; }
  .studio-header { height:45px; }
  .header-note { display:none; }
  .studio-logo { font-size:8px; }.studio-logo b { font-size:10px; }
  .text-button { font-size:9px; padding:8px 4px; }
  .studio-heading { margin:13px 0; }
  .studio-heading h1 { font-size:33px; }
  .studio-heading>p:last-child { font-size:11px; }
  .game-layout { display:flex; flex-direction:column; gap:12px; }
  .doll-stage { order:0; width:100%; }
  .controls-panel { order:1; width:100%; max-width:470px; }
  .stage-topper { font-size:8px; margin-bottom:-13px; }
  .mirror { width:min(76vw,310px); padding:19px 16px 17px; border-width:6px; }
  .stage-plinth { font-size:11px; padding:8px 17px; }
  .stage-actions { gap:5px; margin-top:9px; }
  .secondary-button,.reset-button { font-size:9px; padding:9px 10px; }
  .celebrate-button { font-size:9px; padding:11px 13px; }
  .panel-top { padding:10px; }
  .category-tabs { padding:0 9px 7px; justify-content:space-between; }
  .category-tab { font-size:10px; padding:8px 9px; }
  .option-area { min-height:147px; padding:10px 13px; }
  .option-title { margin-bottom:8px; }
  .option-grid { gap:6px; }
  .option-button { min-height:53px; font-size:9px; }
  .panel-foot { padding:8px; font-size:9px; }
  .studio-footer { margin-top:10px; font-size:8px; }
  .stage-curtain { top:12%; height:36%; }
}
@media(max-width:380px) {
  .studio-screen { padding-left:8px; padding-right:8px; }
  .mirror { width:78vw; }
  .category-tab { padding:8px 7px; }
  .option-area { padding-left:9px; padding-right:9px; }
  .stage-actions { gap:2px; }
  .celebrate-button { padding:10px 9px; }
  .secondary-button,.reset-button { padding:8px 7px; }
}
@keyframes float-mobile { 0%,100% { transform:translate(50%,0); } 50% { transform:translate(50%,-8px); } }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
@media(max-width:650px) and (max-height:760px) {
  .welcome-screen { flex-direction:column; align-items:center; justify-content:flex-start; padding:46px 18px 24px; }
  .welcome-copy { width:100%; }
  .welcome-doll { position:relative; right:auto; top:auto; bottom:auto; width:min(46vw,172px); margin:12px auto 22px; transform:none; animation:doll-idle 5.6s ease-in-out infinite; }
  .welcome-bottom { position:relative; bottom:auto; left:auto; }
  .welcome-orbit { top:auto; bottom:65px; }.orbit-two { bottom:25px; }
}
@media(max-width:650px) and (min-height:761px) { .welcome-doll { width:min(48vw,190px); } }
