/* A reading aid, including legacy character names. IDs/URLs remain untouched. */
#app { text-transform:uppercase; }
.mode-screen,.adventure-screen { min-height:100dvh; padding:28px clamp(20px,5vw,70px); background:radial-gradient(ellipse at top,#ffe4f0,transparent 70%),#fff8ed; text-align:center; }
.mode-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; max-width:940px; margin:45px auto; }
.mode-card,.adventure-card { border:3px solid #fff; border-radius:32px; padding:28px; color:#503763; background:#fff; box-shadow:0 8px 0 #e6c6dc,0 18px 35px #63436b15; cursor:pointer; font:inherit; }
.mode-card { min-height:270px; background:linear-gradient(145deg,#fff,#fce0ee); }
.mode-card:nth-child(2) { background:linear-gradient(145deg,#fff8dc,#e8e0ff); }
.mode-card>span { font-size:4rem; }.mode-card h2 { font-size:1.65rem; }.mode-card p,.adventure-card p { font-weight:800; line-height:1.5; }
.mode-card:active,.adventure-card:active { transform:translateY(4px); box-shadow:0 3px 0 #e6c6dc; }
.adventure-screen .hero h1 { font-size:clamp(2rem,4vw,3rem); margin:8px; }.adventure-screen .hero p { margin:8px; }
.adventure-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; max-width:980px; margin:24px auto; }
.adventure-card { min-height:205px; padding:20px; }.adventure-card>span { font-size:3rem; }.adventure-card h2 { font-size:1.22rem; margin:10px; }.adventure-card p { font-size:.86rem; margin:8px; }
.theme-forest { background:#e2f4dc; color:#315b3d; }.theme-birthday { background:#ffe5ee; color:#8b365a; }.theme-beach { background:#def6ff; color:#256075; }.theme-rain { background:#e7e7ff; color:#4f4879; }
.surprise-cta { min-height:56px; margin:5px auto 20px; }
.selection-context { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:center; margin:16px auto; }
.mission-badge { display:grid; gap:3px; padding:7px 12px; border-radius:14px; text-align:center; max-width:390px; }.mission-badge b { font-size:.78rem; }.mission-badge small { font-size:.62rem; font-weight:900; }
.game-header:has(.mission-badge) { grid-template-columns:auto minmax(0,1fr) auto; gap:12px; }.game-header .mission-badge { justify-self:center; }
.dressup-screen[data-adventure="forest"] .fitting-stage { background-color:#eaf2df; }.dressup-screen[data-adventure="birthday"] .fitting-stage { background-color:#ffe5ef; }.dressup-screen[data-adventure="beach"] .fitting-stage { background-color:#ddf4ff; }.dressup-screen[data-adventure="rain"] .fitting-stage { background-color:#e6e4f8; }
.runway-screen[data-adventure="forest"] { background:radial-gradient(ellipse at 25% 25%,#397b62,transparent 65%),#172e3b; }.runway-screen[data-adventure="beach"] { background:radial-gradient(ellipse at 25% 25%,#268aaf,transparent 65%),#20385f; }.runway-screen[data-adventure="birthday"] { background:radial-gradient(ellipse at 25% 25%,#a14a80,transparent 65%),#3f235c; }.runway-screen[data-adventure="rain"] { background:radial-gradient(ellipse at 25% 25%,#6865a5,transparent 65%),#282642; }
.runway-screen[data-adventure]:not([data-adventure=""]) .stage-halo::after { position:absolute; top:15%; left:5%; font-size:2.5rem; opacity:.55; }
.runway-screen[data-adventure="forest"] .stage-halo::after { content:'🌳 🍃'; }.runway-screen[data-adventure="birthday"] .stage-halo::after { content:'🎈 🎉'; }.runway-screen[data-adventure="beach"] .stage-halo::after { content:'☀️ 🌊'; }.runway-screen[data-adventure="rain"] .stage-halo::after { content:'☁️ 💧'; }
.mode-actions { display:flex; justify-content:center; gap:14px; }.mode-actions button { border:1px solid #ffffff50; border-radius:12px; background:#ffffff14; color:#fff; padding:10px 12px; min-height:44px; font:inherit; font-size:.65rem; font-weight:900; cursor:pointer; }
.grand-finale>small { text-align:center; font-size:.64rem; }.photo-controls { display:grid; justify-items:center; gap:8px; color:#fff; }.photo-controls .primary-cta { min-height:48px; font-size:.85rem; }.photo-controls .small-button { color:#fff; min-height:44px; }.photo-controls p { margin:0; font-size:.7rem; font-weight:900; text-align:center; }.photo-controls [hidden] { display:none; }.photo-controls button:disabled { opacity:.65; cursor:wait; }
.photo-overlay { gap:9px; }.photo-overlay .look-card { min-height:500px; }.photo-overlay .look-card-photo { height:310px; }
.photo-controls .small-button { color:#503763; background:#fff; }
/* Real DOM decorations are shared by the preview and SVG-to-PNG export. */
.look-card::before { content:none; }
.look-card-frame { position:absolute; inset:9px; border:2px dashed #f4aac7; border-radius:4px; pointer-events:none; }
.look-card-photo { position:relative; isolation:isolate; }
.look-card-photo.has-backdrop { background:#e7f2e8; box-shadow:none; }
.look-card-backdrop { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.look-card-photo .character-stage { z-index:1; }
/* Illustrated set behind the existing stage, performer and reveal UI.
   Every selector is adventure-only: the free pink stage remains unchanged. */
.runway-stage[data-illustrated-scene] .runway-backdrop { position:absolute; inset:0; z-index:0; pointer-events:none; }
.runway-backdrop img { width:100%; height:100%; object-fit:cover; display:block; }
.runway-backdrop::after { content:''; position:absolute; inset:0; background:linear-gradient(#271f4933,transparent 35%,#271f491a 65%,#271f4966); }
.runway-stage[data-illustrated-scene]::before { z-index:1; background:linear-gradient(90deg,var(--scene-edge),var(--scene-center) 48%,var(--scene-edge)); border-color:var(--scene-glow); box-shadow:0 -6px 30px color-mix(in srgb,var(--scene-glow),transparent 45%); }
.runway-stage[data-illustrated-scene] .catwalk-lines { z-index:2; }
.runway-stage[data-illustrated-scene] .stage-halo { z-index:2; background:radial-gradient(ellipse,color-mix(in srgb,var(--scene-glow),transparent 85%),transparent 68%); box-shadow:none; }
.runway-stage[data-illustrated-scene] .stage-halo::after { content:none; }
.runway-stage[data-illustrated-scene] .spotlight { z-index:3; top:0; height:95%; width:60%; }
.runway-stage[data-illustrated-scene] .spotlight.left { left:-10%; }
.runway-stage[data-illustrated-scene] .spotlight.right { left:45%; }
@media (min-width:800px) and (max-height:800px) { .results-panel:has(.mode-actions) { gap:10px; }.final-region:has(.mode-actions) { gap:9px; }.grand-finale h2 { font-size:1.2rem; } }
@media (max-width:799px) { .mode-options { gap:18px; margin-top:26px; }.mode-card { padding:20px; }.mode-card h2 { font-size:1.3rem; }.mode-card p { font-size:.85rem; }.game-header:has(.mission-badge) { padding:6px 12px; gap:8px; }.game-header:has(.mission-badge) .logo-button { font-size:.85rem; }.mission-badge { padding:5px 8px; }.mission-badge b { font-size:.65rem; }.mission-badge small { font-size:.52rem; }.game-header:has(.mission-badge) .small-button { padding-inline:8px; font-size:.65rem; }.mode-actions { gap:10px; }.mode-actions button { padding:7px 10px; min-height:44px; }.final-region:has(.mode-actions) { gap:6px; }.grand-finale>small { font-size:.56rem; } }
@media (max-width:540px) { .mode-options,.adventure-grid { grid-template-columns:1fr; }.mode-card { min-height:180px; }.mode-card>span { font-size:3rem; }.adventure-card { min-height:180px; }.game-header .mission-badge small { display:none; }.game-header:has(.mission-badge) .logo-button { font-size:.7rem; } }
@media (prefers-reduced-motion:reduce) { .mode-card,.adventure-card { transition:none; } }
