.dressup-section{overflow-x:clip;background:linear-gradient(180deg,#f6f9fa55,#eff5f780,#fff4)}.dressup-section .wrap{width:calc(100% - 28px)}.dressup-section .section-heading{margin-bottom:22px}.dressup-section .section-heading h2{font-size:30px;line-height:1.6}.dressup-section .section-subtitle{font-size:14px}

/* Stage: the picture guests decorate. */
.dressup-stage{position:relative;aspect-ratio:720/620;isolation:isolate;border:1px solid #cedce1;border-radius:78px 78px 8px 8px;background:radial-gradient(ellipse at 45% 20%,#fff 0,#f6fbfd 50%,#edf4f5 100%);box-shadow:0 13px 35px #415b6810;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;container-type:inline-size}.dressup-couple{position:absolute;width:64%;height:auto;left:18%;top:13%;pointer-events:none;user-select:none}.dressup-items{position:absolute;inset:0;pointer-events:none;z-index:3}.game-sticker{position:absolute;padding:0;border:0;outline:0;background:transparent;aspect-ratio:1;transform:translate(-50%,-50%) rotate(var(--angle,0deg));pointer-events:auto;touch-action:none;cursor:grab;filter:drop-shadow(0 3px 2px #304a5612);-webkit-user-select:none;user-select:none}.game-sticker:active{cursor:grabbing}.game-sticker.selected:after{content:'';position:absolute;inset:3px;border:1.5px dashed #7899aa;border-radius:12px;pointer-events:none}.game-sticker:focus-visible{outline:2px solid #865967;outline-offset:4px}.game-sticker.selfie-fixed{pointer-events:auto;touch-action:pan-y;cursor:default;filter:none}.game-sticker.selfie-fixed:after{display:none}.accessory-sprite{display:block;width:100%;height:100%;background-image:url('assets/dressup-accessories-v1.png');background-repeat:no-repeat;background-size:300% 300%;pointer-events:none}.stage-names{position:absolute;inset:0;pointer-events:none;z-index:4}.stage-names span{position:absolute;transform:translate(-50%,-50%);font:5.97cqw/1 var(--serif);white-space:nowrap;color:#4F6670;-webkit-text-stroke:.21em #FFFDF9;paint-order:stroke fill}.stage-names .name-soojung{left:36.94%;top:14.19%}.stage-names .name-yongwon{left:63.06%;top:9.68%}.stage-halo{display:none}.accessory-ghost{position:fixed;width:95px;height:95px;z-index:10000;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(1px 5px 4px #334b5833)}.dressup-stage.drag-over{box-shadow:0 0 0 3px #b4cbd6}

/* Story backdrops stay behind all editable accessories. */
.dressup-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}.dressup-background[hidden]{display:none}.transparent-thumbnail,.dressup-stage[data-background=none]{background-color:#fff;background-image:conic-gradient(#eaf0f2 25%,transparent 0 50%,#eaf0f2 0 75%,transparent 0);background-size:20px 20px}.dressup-stage[data-background=none] .stage-names{display:none}

/* One-screen layout: a menu rail on the left; each menu opens a panel over the picture until "Done". */
.dressup-game{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px;align-items:start}.game-rail{display:flex;flex-direction:column;gap:8px}.rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;padding:8px 2px;border:1px solid #F5EFE6;border-radius:14px;background:#F5EFE6;color:#262C35;font:10px/1.25 var(--sans);text-align:center;word-break:keep-all;box-shadow:0 8px 20px #10161340;transition:background .18s,color .18s,transform .18s}.rail-button svg{width:22px;height:22px;stroke-width:1.5;flex:none}.rail-button:hover{background:#FFFDF9}.rail-button[aria-expanded=true]{background:#984216;border-color:#984216;color:#F5EFE6;transform:translateX(3px)}.rail-button:focus-visible{outline:2px solid var(--honey);outline-offset:3px}
.game-canvas{position:relative;min-width:0}.dressup-panel{position:absolute;top:0;left:0;right:0;min-height:100%;z-index:5;display:flex;flex-direction:column;gap:10px;padding:10px 10px 12px;border-radius:14px;background:#F5EFE6;box-shadow:0 14px 36px #10161366;animation:dressup-panel-in .18s ease-out}.dressup-panel[hidden]{display:none}.dressup-panel:focus{outline:0}.dressup-panel:focus-visible{outline:2px solid var(--honey);outline-offset:2px}.game-canvas.peeking .dressup-panel{opacity:0;transition:opacity .15s}.dressup-section[data-panel]:not([data-panel='']) :is(.game-tools,.game-bottom-actions){visibility:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-left:4px}.panel-header h3{font-size:23px;line-height:1.25;margin:0;color:var(--rose)}.panel-done{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border:1px solid #262C35;border-radius:20px;background:#262C35;color:#F5EFE6;font:12px/1.4 var(--sans)}.panel-done:hover{background:#984216;border-color:#984216}.panel-done:focus-visible{outline:2px solid #4F6670;outline-offset:2px}.panel-note{font:11px/1.6 var(--sans);color:var(--muted);margin:0 4px}
@keyframes dressup-panel-in{from{opacity:0;transform:translateY(8px)}}

/* Props panel */
.dressup-target{display:flex;background:#edf3f5;border-radius:30px;padding:3px}.dressup-target button{border:0;background:transparent;border-radius:25px;padding:6px;flex:1;font:12px/1.4 var(--sans);min-height:34px}.dressup-target button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #47616d15;color:var(--rose)}.accessory-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.accessory-choice{position:relative;border:1px solid #e1e8eb;border-radius:8px;padding:4px 2px 6px;background:#f7fafb;display:flex;flex-direction:column;align-items:center;gap:2px;touch-action:none;transition:background .18s,border-color .18s;min-width:0}.accessory-choice:hover{background:#ecf4f8;border-color:#b6ccd6}.accessory-choice>.accessory-sprite{width:44px;height:44px;flex:none}.accessory-choice strong{font:10px/1.3 var(--sans);text-align:center;word-break:keep-all}.accessory-choice small{display:none}.accessory-choice[data-count]::after{content:'×' attr(data-count);position:absolute;top:3px;right:3px;padding:1px 5px;border-radius:9px;background:#984216;color:#F5EFE6;font:9px/1.4 var(--sans)}

/* Background panel */
.background-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.background-option{border:1px solid #d4dfe3;border-radius:7px;background:#fff;padding:3px;cursor:pointer;min-width:0;color:var(--ink)}.background-option[aria-pressed=true]{outline:2px solid #8c6e7b;outline-offset:1px;background:#f4eef1}.background-option:focus-visible{outline:3px solid #597a90;outline-offset:2px}.background-thumbnail{display:block;aspect-ratio:720/620;overflow:hidden;border-radius:4px;background:#edf4f6}.background-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.background-option strong{display:block;font:10px/1.35 var(--sans);padding:4px 1px 2px;word-break:keep-all}.background-story{font:11px/1.7 var(--sans);color:#617582;min-height:20px;margin:0 4px}

/* Selfie panel: guest hairstyles share the same fixed selfie pose. */
#add-myself{align-self:flex-start;display:flex;align-items:center;gap:8px;min-height:42px;font:12px/1.5 var(--sans);padding:9px 15px}#add-myself[aria-pressed=true]{background:#edf4f6;border-color:#9fb5bf}#add-myself:disabled{opacity:.6;cursor:wait}.hair-picker{min-width:0;margin:0;padding:8px 10px 10px;border:1px solid var(--line);border-radius:10px}.hair-picker[hidden]{display:none}.hair-picker legend{padding:0 6px;font:11px/1.5 var(--sans);color:var(--muted)}.hair-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.hair-option{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:6px 2px 8px;background:#f9fbfc;border:1px solid transparent;border-radius:7px;color:var(--ink);cursor:pointer}.hair-option[aria-pressed=true]{background:#e7f0f4;border-color:#819ca9;box-shadow:0 0 0 1px #819ca9}.hair-option:hover{background:#edf3f6}.hair-option:focus-visible{outline:2px solid #657f91;outline-offset:3px}.hair-option strong{font:10px/1.35 var(--sans);text-align:center;word-break:keep-all}.hair-thumbnail{display:block;width:56px;height:60px;overflow:hidden;border-radius:50%;background:#edf1f2}.hair-thumbnail img{width:100px;max-width:none;height:100px;object-fit:contain;transform:translate(-22px,0)}

/* Compact tools under the picture */
.game-tools[hidden]{display:none}.game-tools{margin-top:12px;border:1px solid #d7e1e5;border-radius:12px;background:#ffffffa8;padding:8px 12px 6px}.tools-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.selected-accessory{font:11px/1.5 var(--sans);color:var(--muted);min-width:0}.layer-actions{display:flex;gap:14px;flex:none}.layer-actions button{border:0;background:transparent;border-bottom:1px solid #cbd6df;padding:4px 0;font:11px var(--sans);min-height:32px}.adjustments{display:flex;gap:14px}.adjustments label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:34px;font:11px var(--sans)}.adjustments input{min-width:0;width:100%;accent-color:#869eaa;cursor:pointer}.game-tools button:disabled,.game-bottom-actions button:disabled,.adjustments input:disabled{opacity:.4;cursor:default}.game-bottom-actions{display:flex;gap:8px;margin-top:10px}.game-bottom-actions button{font-size:11px;padding:10px 13px;min-height:42px}.game-bottom-actions .button-solid{margin-left:auto;gap:18px}.game-status{font:12px/1.6 var(--sans);color:var(--rose);min-height:20px;margin:6px 4px 0}

@media(prefers-reduced-motion:reduce){.accessory-choice,.rail-button{transition:none}.dressup-panel{animation:none}}
