.camera-world{display:grid;place-items:center;grid-area:1/1;align-self:stretch;width:100%;min-width:0;transform-origin:50% 34%;transition:transform .6s cubic-bezier(.22,.7,.24,1)}
.scene[data-camera=face] .camera-world{transform:translateY(13%) scale(2.02)}
.scene[data-camera=hair] .camera-world{transform-origin:50% 17%;transform:translateY(13%) scale(1.85)}
.scene[data-camera=nails] .camera-world{visibility:hidden;pointer-events:none}
.scene[data-camera]:not([data-camera=full]) .pet-touch{display:none}
.scene .badge,.scene .family-name{z-index:2}
.salon-done{min-height:56px;padding:8px 13px;border:0;border-radius:15px;background:#238357;color:#fff;font-weight:800;box-shadow:inset 0 -3px #186540}
.salon-done span{font-size:26px;margin-right:6px;vertical-align:middle}
.salon-voice{align-self:end;font-size:12px;min-height:38px;padding:5px 9px}
.salon-burst{position:absolute;inset:0;pointer-events:none;z-index:6}
.salon-burst span{position:absolute;left:var(--sx);top:var(--sy);color:#fff2a5;font-size:24px;text-shadow:0 0 8px #f29ece;animation:family-burst .8s var(--delay) both}
#nail-desk{position:relative;z-index:1;grid-area:1/1;align-self:center;width:100%;min-width:0;padding:14px;text-align:center;color:#4c2c62}
#nail-desk .studio-tools{justify-content:center;background:#fff9;border-radius:14px;padding:7px}
.nail-pillow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-radius:40% 35% 24% 26%;padding:13px 9px 8px;background:radial-gradient(ellipse at 45% 29%,#f1d5ff,#b878ce 91%);box-shadow:inset 0 0 0 3px #ebc7f3,inset 0 -17px 25px #8245a83d,0 6px 13px #763c9436}
.nail-pillow .studio-hand{width:100%;height:190px;background:transparent;border:0;isolation:isolate;overflow:hidden}
.nail-pillow .studio-finger{min-height:67px;height:84px}
.nail-pillow .studio-finger:nth-of-type(3){height:103px}
.nail-pillow .studio-finger:nth-of-type(4){height:93px}
.nail-pillow .studio-nail{height:34px;min-width:16px;color:#531a79}
.nail-pillow .hand-palm{bottom:-66px;height:164px}
#studio-right-hand{transform:scaleX(-1)}
#studio-right-hand .studio-nail{transform:scaleX(-1)}
.studio-nail[data-ring=true]{outline:2px solid #fff4a5;outline-offset:2px}
.studio-hand[data-bracelet=true]::after{content:"✧ ✦ ✧";position:absolute;bottom:13px;left:24%;width:52%;background:#ffd475;border:2px solid #fff5b7;border-radius:12px;color:#784573;pointer-events:none}
@media(max-width:760px){.scene[data-camera=face] .camera-world{transform:translateY(12%) scale(1.88)}.scene[data-camera=hair] .camera-world{transform:translateY(13%) scale(1.76)}#nail-desk{padding:10px}.nail-pillow{padding:3px;gap:2px}.nail-pillow .studio-hand{height:172px}.nail-pillow .studio-nail{height:29px}.salon-done{min-height:50px}}
@media(prefers-reduced-motion:reduce){.camera-world{transition:none}.salon-burst span{animation:none}}
.panel[data-nail-view] #apply,.panel[data-nail-view] .studio-extra,.panel[data-nail-view] #color-picker{display:none!important}
.scene[data-camera=nails] .badge,.scene[data-camera=nails] .family-name{display:none}
.panel .tools{max-height:min(42vh,330px);overflow-y:auto;overscroll-behavior:contain;padding:3px}
@media(max-width:760px){.panel .tools{max-height:205px}}
.salon-shoes{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:13px}
.salon-shoes .soft{min-height:41px;padding:4px 8px}

/* The game shell fits the visible viewport. The tool tray changes pages without scrolling. */
body.salon-shell{height:100vh;height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}
.salon-shell>footer{display:none}
.salon-shell .top-inner{min-height:52px;gap:7px}
.salon-shell .brand{margin-right:auto}
.salon-shell .brand p{display:none}
.salon-shell .logo{width:33px;height:33px;font-size:21px}
.salon-shell .top .soft{min-height:38px;padding:5px 10px}
.salon-menu-button{font-size:21px;line-height:1}
.salon-shell main{min-height:0;margin:0 auto;padding:8px 0 max(8px,env(safe-area-inset-bottom));display:grid;grid-template-rows:minmax(0,1fr)}
.salon-shell .layout{height:100%;min-height:0;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}
.salon-shell .layout>.tabs{grid-column:2;grid-row:1;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0}
.salon-shell .layout>.tabs .activity{display:grid;place-items:center;min-height:49px;padding:3px;line-height:1}
.salon-shell .layout>.tabs .activity span:first-child{font-size:25px}
.salon-shell .layout>.tabs .activity span:nth-child(2){position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.salon-shell .layout>.stage{grid-column:1;grid-row:1/-1;min-height:0}
.salon-shell .scene{min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.salon-shell .camera-world{height:100%;min-height:0}
.salon-shell .avatar-action{height:100%;min-height:0}
.salon-shell .avatar-action canvas{height:100%;min-height:0;max-height:100%}
.salon-shell #nail-desk{max-height:100%;overflow:auto;overscroll-behavior:contain}
.salon-shell .layout>.panel{grid-column:2;grid-row:2;display:flex;flex-direction:column;min-height:0;padding:10px;gap:6px}
.salon-shell .panel-heading{display:none}
.salon-shell .panel .tools{display:grid;grid-template-columns:repeat(var(--tool-columns,3),minmax(80px,1fr));gap:8px;flex:none;max-height:none;overflow:visible;padding:0}
.salon-shell #tools .tool{position:relative;justify-content:center;align-items:center;width:80px;height:80px;min-width:80px;min-height:80px;margin:auto;padding:0;border-radius:22px;background:#fff8fe}
.salon-shell #tools .tool[aria-pressed=true]{background:#e9d8ff;border:2px solid #8957c8}
.salon-shell #tools .tool-icon{font-size:43px;line-height:1}
.salon-shell #tools .tool span:nth-child(2){display:none}
.salon-shell #tools .tool-done{position:absolute;right:4px;bottom:1px;font-size:16px}
.salon-pages{display:flex;justify-content:center;align-items:center;gap:11px;color:#6a4c82;font-size:13px}
.salon-pages .soft{min-height:29px;line-height:1;padding:2px 14px;font-size:22px}
.salon-shell .panel .mission,.salon-shell .family-hair-spa,.salon-shell #apply{display:none}
.salon-shell #msg{min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 6px;margin:0;font-size:12px;background:transparent}
.salon-dock{display:flex;justify-content:center;align-items:stretch;gap:8px;margin-top:auto;padding-top:4px;flex:none}
.salon-dock .salon-done{min-width:83px;min-height:55px;font-size:35px;line-height:1;padding:3px 16px}
.salon-dock .salon-done span{font-size:36px;margin:0}
.salon-dock .soft{min-width:52px;font-size:25px}
#salon-menu,#salon-colors{max-height:calc(100dvh - 22px);overflow:auto}
#salon-menu>.soft:last-child,#salon-colors>.soft:last-child{display:block;margin:9px 0 0 auto;min-width:42px}
@media(max-width:760px){
  .salon-shell main{width:calc(100% - 16px);padding-top:4px}
  .salon-shell .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:5px}
  .salon-shell .layout>.tabs{grid-column:1;grid-row:1}
  .salon-shell .layout>.stage{grid-column:1;grid-row:2}
  .salon-shell .layout>.panel{grid-column:1;grid-row:3;padding:6px;gap:3px;border-radius:15px}
  .salon-shell .layout>.tabs .activity{min-height:40px}
  .salon-shell .layout>.tabs .activity span:first-child{font-size:22px}
}
@media(max-height:550px) {
  .salon-shell .top-inner{min-height:42px}
  .salon-shell #msg{font-size:11px}
  .salon-dock .salon-done{min-height:45px}
}
/* Portrait play area and horizontal tool dock on phones and desktops. */
body.salon-shell{grid-template-rows:minmax(0,1fr)}
.salon-shell>.top{position:absolute;z-index:8;top:0;left:0;right:0;background:transparent;border:0;pointer-events:none}
.salon-shell .top-inner{width:100%;padding:max(5px,env(safe-area-inset-top)) 10px 0;min-height:0}
.salon-shell .top-inner button{pointer-events:auto;background:#fffc}
.salon-shell .brand{padding:4px 7px;border-radius:15px;background:#fffd}
.salon-shell .brand h1{font-size:clamp(14px,4vw,20px)}
.salon-shell main{width:100%;height:100%;padding:0;max-width:none}
.salon-shell .layout{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,3fr) minmax(133px,1fr);gap:0}
.salon-shell .layout>.stage{grid-column:1;grid-row:1;border:0;border-radius:0}
.salon-shell .scene{touch-action:none}
.salon-shell .layout>.tabs{position:absolute;z-index:7;bottom:calc(max(25%,133px) + 6px);left:50%;width:min(calc(100% - 24px),460px);transform:translateX(-50%);background:#fffc;border-radius:14px;padding:4px}
.salon-shell .layout>.tabs .activity{min-height:35px;border-radius:10px}
.salon-shell .layout>.panel{grid-column:1;grid-row:2;min-width:0;border-radius:0;position:relative;padding:7px 9px max(6px,env(safe-area-inset-bottom));gap:4px;box-shadow:0 -4px 18px #60388f21;display:grid;grid-template-rows:auto minmax(0,1fr)}
.salon-shell .panel #msg{grid-row:1;padding-right:120px;align-self:center;min-height:34px;line-height:34px}
.salon-shell .panel .tools{grid-row:2;display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-inline:contain;padding:4px 1px 7px;scroll-snap-type:x proximity;touch-action:pan-x}
.salon-shell .panel .tools::-webkit-scrollbar{display:none}
.salon-shell #tools .tool{flex:0 0 64px;width:64px;height:64px;min-width:64px;min-height:64px;border-radius:50%;margin:0;scroll-snap-align:start}
.salon-shell #tools .tool-icon{font-size:33px}
.salon-shell .salon-pages{display:none}
.salon-shell .salon-dock{position:absolute;top:5px;right:8px;margin:0;padding:0;z-index:1;gap:4px}
.salon-shell .salon-dock .salon-done{min-width:49px;min-height:37px;padding:0 8px}
.salon-shell .salon-dock .salon-done span{font-size:29px}
.salon-shell .salon-dock .soft{min-width:41px;min-height:37px;padding:0 5px;font-size:20px}
.salon-shell .stage .badge,.salon-shell .family-name{top:max(52px,calc(env(safe-area-inset-top) + 47px))}
.salon-shell #nail-desk{padding-top:52px;padding-bottom:51px}
.nail-hand-switch{display:flex;justify-content:center;gap:6px;margin:3px 0}
.nail-hand-switch button{min-height:38px;padding:2px 13px}
.nail-pillow[data-side=left] #studio-right-hand,.nail-pillow[data-side=right] #studio-hand{display:none}
.nail-pillow[data-side]{grid-template-columns:minmax(0,1fr);width:min(95%,410px);margin:auto}
.nail-pillow[data-side] .studio-hand{max-width:340px}
@media(min-width:761px){
  .salon-shell .layout>.panel{padding-inline:max(14px,calc((100vw - 740px)/2))}
  .salon-shell .salon-dock{right:max(14px,calc((100vw - 740px)/2))}
}
.salon-shell .avatar-action{width:min(100%,58dvh,560px)}
.salon-shell .scene[data-camera=face] .camera-world{transform:translateY(12%) scale(1.68)}
.salon-shell .scene[data-camera=hair] .camera-world{transform:translateY(10%) scale(1.52)}
@media(max-width:760px){
  .salon-shell .scene[data-camera=face] .camera-world{transform:translateY(10%) scale(1.37)}
  .salon-shell .scene[data-camera=hair] .camera-world{transform:translateY(10%) scale(1.33)}
}
.salon-shell .scene[data-camera=nails]{touch-action:pan-y}
.salon-shell #tools .tool-icon svg{display:block;width:46px;height:46px}
.salon-next-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;margin:12px 0}
.salon-next-grid button{padding:7px;font-size:25px;background:#f5ebff}
.salon-next-grid button span{display:block;font-size:13px}
.salon-next-summary{color:#694c80}
.salon-dock .salon-done[data-done=true]{background:#187c52;box-shadow:0 0 0 3px #c9f5d8,inset 0 -3px #186540}
.salon-shell .panel #msg{padding-right:155px}
.salon-stage-shortcuts{position:absolute;z-index:6;left:50%;bottom:49px;transform:translateX(-50%);width:min(calc(100% - 22px),510px);display:grid;gap:4px}
#salon-primary-actions,#salon-utility-actions{display:grid;gap:4px;background:#fffdfbdf;border-radius:13px;padding:4px;backdrop-filter:blur(6px)}
#salon-primary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
#salon-utility-actions{grid-template-columns:repeat(6,minmax(0,1fr))}
.salon-stage-shortcuts button{min-width:0;min-height:44px!important;border:0;padding:3px 2px;border-radius:8px;background:#f3e9ff;color:#4a3267;font-weight:750;font-size:12px;line-height:1.1;display:flex;align-items:center;justify-content:center;gap:2px}
#salon-primary-actions #family-save{background:#e0f5ea;color:#216447}
#salon-primary-actions #family-cast{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#salon-primary-actions #family-cast button{min-height:44px;border-radius:14px}
#salon-primary-actions #family-show{background:#fff0ca;color:#7b4d24}
#salon-utility-actions button{background:transparent;font-size:11px}
#salon-utility-actions #family-scenes span:last-child{font-size:0}
#salon-utility-actions #family-scenes span:last-child::after{content:"Cảnh nền";font-size:11px}
#salon-utility-actions #family-share span:last-child{font-size:0}
#salon-utility-actions #family-share span:last-child::after{content:"Chụp ảnh";font-size:11px}
.salon-shell #nail-desk{padding-bottom:130px}
@media(max-width:480px){
  .salon-stage-shortcuts{width:calc(100% - 12px);bottom:47px}
  .salon-stage-shortcuts button{font-size:10.5px}
  .salon-stage-shortcuts button span:first-child{font-size:15px}
  #salon-utility-actions button{font-size:10px}
}

.salon-shell .nail-mode-fallback{display:none}
.studio-nail[data-finish=matte]{box-shadow:inset 0 -2px 2px #60304423}
.studio-nail[data-finish=shine]{box-shadow:inset 3px 4px 5px #fffe,0 0 5px #fff8}
.salon-shell .layout>.salon-stage-shortcuts{z-index:7}
@media(min-width:920px){
  .salon-shell .layout{grid-template-rows:minmax(0,1fr) auto minmax(150px,30dvh)}
  .salon-shell .layout>.stage{grid-column:1;grid-row:1}
  .salon-shell .layout>.salon-stage-shortcuts{position:static;left:auto;right:auto;top:auto;grid-column:1;grid-row:2;width:min(calc(100% - 16px),860px);margin-inline:auto;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:auto}
  .salon-shell #salon-primary-actions,.salon-shell #salon-utility-actions{inline-size:min(100%,280px);grid-template-columns:minmax(0,1fr);pointer-events:auto}
  .salon-shell .layout>.panel{grid-column:1;grid-row:3}
  .salon-shell #nail-desk{width:min(68%,760px);padding-bottom:12px}
}
@media(max-width:919px){
  .salon-shell .layout{grid-template-rows:minmax(0,1fr) auto auto minmax(128px,22dvh)}
  .salon-shell .layout>.stage{grid-column:1;grid-row:1}
  .salon-shell .layout>.tabs{position:static;grid-column:1;grid-row:2;transform:none;justify-self:center;width:min(calc(100% - 10px),460px);padding:3px}
  .salon-shell .layout>.salon-stage-shortcuts{grid-column:1;grid-row:3;position:static;transform:none;justify-self:center;width:min(calc(100% - 12px),510px);margin-block:0 4px}
  .salon-shell .layout>.panel{grid-column:1;grid-row:4}
  .salon-shell #nail-desk{padding-bottom:10px}
}
.salon-shell .top-inner .salon-save-top{display:flex;align-items:center;gap:4px;background:#dff6e9;color:#166343;font-weight:800;min-height:39px;white-space:nowrap}
.salon-shell #salon-primary-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.salon-shell .layout>.tabs .activity{position:relative}
.salon-shell .layout>.tabs .activity[data-suggested=true]{outline:2px solid #d1a9f7;background:#fff0ce}
.salon-shell .tool-done,.salon-shell #tools .tool-done{position:absolute;right:3px;bottom:2px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#168551;color:white;font-size:13px;line-height:1;margin:0}
.salon-shell .panel{grid-template-rows:auto auto minmax(0,1fr)}
.salon-shell .panel .tools{grid-row:3;cursor:grab}
.salon-inline-colors{grid-row:2;display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
.salon-inline-colors .colors{display:flex;flex-wrap:nowrap;justify-content:flex-start;margin:0;gap:4px}
.salon-inline-colors .color-label,.salon-inline-colors #studio-progress,.salon-inline-colors #studio-nails{display:none}
.salon-inline-colors .swatch{min-width:31px;min-height:31px}
.salon-inline-colors .studio-extra{flex:none;padding:0;background:transparent;font-size:11px}
.salon-inline-colors #studio-colors label{white-space:nowrap}
.salon-inline-colors .salon-shoes{flex-wrap:nowrap;white-space:nowrap}
.salon-shell .panel #msg{padding-right:115px}
.salon-shell [data-dragging=true]{cursor:grabbing!important;scroll-snap-type:none!important;user-select:none}
.salon-shell #tools,.salon-shell .tabs{user-select:none}
#salon-spotlight{position:absolute;z-index:6;width:var(--spot-size,110px);aspect-ratio:1;border:3px solid #fff5b7;border-radius:50%;box-shadow:0 0 0 200vmax #21134590,0 0 18px #fff7bb;transform:translate(-50%,-50%);display:grid;place-items:end;font-size:28px;pointer-events:none}
@media(min-width:920px){
  .salon-shell .salon-left-rail #tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .salon-shell #salon-primary-actions{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:450px){
  .salon-shell .top-inner .salon-save-top{padding-inline:6px;font-size:11px}
  .salon-shell .brand h1{max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .salon-shell .panel{min-height:133px}
  .salon-shell .layout{grid-template-rows:minmax(0,1fr) auto auto minmax(146px,25dvh)}
}
.salon-shell #salon-wardrobe{grid-row:3;min-width:0;min-height:0;display:flex;flex-direction:column;gap:4px}
.salon-shell .panel[data-accessories] #tools{display:none}
.wardrobe-groups,.wardrobe-items{display:flex;align-items:center;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;touch-action:pan-x;scrollbar-width:none;user-select:none;cursor:grab;padding:2px}
.wardrobe-groups .soft{flex:0 0 auto;min-height:44px;padding:3px 9px;font-size:12px}
.wardrobe-groups .soft[aria-pressed=true]{background:#ead9ff;border-color:#a479d1}
.wardrobe-items .tool{position:relative;flex:0 0 65px;min-height:58px;border:1px solid #e3d4ee;border-radius:14px;background:#f6edfc;display:grid;place-items:center;align-content:center;padding:2px;font-size:9px;line-height:1.1;text-align:center}
.wardrobe-items .tool .tool-icon{font-size:24px}
.wardrobe-items .tool .tool-icon svg{width:27px;height:27px}
.salon-shell .panel[data-accessories] #msg{min-height:27px;line-height:27px}
@media(max-width:480px){.salon-shell .panel[data-accessories] .salon-inline-colors{max-height:30px}}
.salon-shell .layout>.tabs .activity[aria-label="Phụ kiện"]{font-size:24px}
@media(max-width:919px){
  .salon-shell .layout>.tabs{grid-template-columns:repeat(7,minmax(0,1fr))}
}

.salon-skin-picker{position:relative;min-width:0}
.salon-skin-picker>#salon-skin-button{width:100%;height:100%}
.salon-stage-shortcuts .salon-skin{position:absolute;z-index:12;left:calc(100% + 8px);top:50%;transform:translateY(-50%);display:flex;gap:5px;padding:6px;border:1px solid #ddd0ec;border-radius:999px;background:#fff;box-shadow:0 7px 20px #43265b29;pointer-events:auto}
.salon-stage-shortcuts .salon-skin button{display:block;width:44px;height:44px;min-height:44px!important;flex:0 0 44px;border:3px solid #fff;padding:0;border-radius:50%;background:var(--skin-swatch);box-shadow:0 0 0 1px #e7d8ef}
.salon-stage-shortcuts .salon-skin button[aria-pressed=true]{box-shadow:0 0 0 2px #6242a4}
@media(max-width:919px){
  .salon-stage-shortcuts .salon-skin{left:50%;top:auto;bottom:calc(100% + 7px);transform:translateX(-50%)}
}
#family-tools #family-design{display:none}

/* Máy tính: nhân vật một bên, nút một bên. Điện thoại: nhân vật trên, nút dưới. Không đè lên mặt. */
.salon-shell .layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(232px,320px) !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  height:100%;
  gap:0 !important;
}
.salon-shell .layout>.stage{grid-column:1 !important;grid-row:1 !important;min-height:0}
.salon-shell .layout>.salon-stage-shortcuts{
  position:static !important;transform:none !important;inset:auto !important;
  left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
  width:auto !important;max-height:100%;overflow:auto;
  grid-column:2 !important;grid-row:1 !important;
  display:flex !important;flex-direction:column;gap:8px;
  margin:0 !important;padding:8px;background:#fff8fc;z-index:2;
}
.salon-shell .layout>.panel{grid-column:1 / -1 !important;grid-row:2 !important;max-height:32dvh}
.salon-shell .layout>.tabs{display:none}
.salon-shell #salon-primary-actions #family-cast{grid-column:1 / -1}
.salon-shell #salon-utility-actions{grid-template-columns:1fr 1fr}
.salon-shell .salon-left-rail #tabs .activity,
.salon-shell #salon-primary-actions button,
.salon-shell #salon-utility-actions button{min-height:44px}
@media(max-width:800px){
  .salon-shell .layout{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(48dvh,1fr) auto auto !important;
  }
  .salon-shell .layout>.stage{grid-column:1 !important;grid-row:1 !important}
  .salon-shell .layout>.salon-stage-shortcuts{
    grid-column:1 !important;grid-row:2 !important;
    max-height:none;padding:6px 8px 0;background:#fff;
  }
  .salon-shell .layout>.panel{grid-row:3 !important;max-height:36dvh}
  .salon-shell #salon-primary-actions{grid-template-columns:1fr 1fr}
  .salon-shell #salon-utility-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .salon-shell .salon-left-rail #tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .salon-shell #tools .tool{min-width:56px;min-height:56px;width:56px;height:56px}
}
.salon-left-rail{display:grid;gap:6px;pointer-events:auto;width:100%;min-width:0}
.salon-activity-heading{font-size:13px;color:#513369;padding:4px 9px;border-radius:10px;background:#fffaf2e8}
.salon-shell .salon-left-rail #tabs{position:static;transform:none;width:100%;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:#fffffff1}
.salon-shell .salon-left-rail #tabs .activity{display:grid;position:relative;place-items:center;gap:3px;padding:4px 2px;min-height:44px;line-height:1}
.salon-shell .salon-left-rail #tabs .activity span:first-child{font-size:22px}
.salon-shell .salon-left-rail #tabs .activity span:nth-child(2){position:static;clip-path:none;width:auto;height:auto;overflow:visible;font-size:10px;line-height:1.12;text-align:center}
.salon-shell .salon-left-rail #tabs .activity[data-suggested=true]{outline:2px solid #d1a9f7;background:#fff0ce}
.salon-shell .panel[data-expanded-tools] .tools,.salon-shell .panel[data-expanded-tools] .wardrobe-items{flex-wrap:wrap;align-content:start;overflow-y:auto;touch-action:pan-y}
.salon-shell .panel #msg{padding-right:12px}
@media(min-width:920px){
  .salon-shell .salon-left-rail{width:clamp(144px,16vw,218px)}
  .salon-shell .salon-left-rail #salon-primary-actions{width:100%}
  .salon-shell .salon-left-rail #tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .salon-shell .salon-left-rail #tabs .activity{min-height:46px}
}
@media(max-width:919px){
  .salon-shell .layout{grid-template-rows:minmax(0,1fr) auto minmax(128px,22dvh)}
  .salon-shell .layout>.salon-stage-shortcuts{grid-row:2}
  .salon-shell .layout>.panel{grid-row:3}
  .salon-shell .salon-activity-heading{display:none}
}
@media(max-width:450px){
  .salon-shell .layout{grid-template-rows:minmax(0,1fr) auto minmax(146px,25dvh)}
  .salon-shell .salon-left-rail #tabs .activity span:nth-child(2){font-size:9px}
}
/* Illustrated hand. The buttons are hit areas above the existing nails. */
.salon-shell .nail-pillow .studio-hand{width:min(100%,32dvh,270px);max-width:none;height:auto;aspect-ratio:var(--hand-aspect,4/5);overflow:visible;border-radius:0;background:url("nail-hand.png") center / 100% 100% no-repeat;filter:drop-shadow(0 7px 8px #5e347630)}
.salon-shell .nail-pillow .hand-palm{display:none}
.salon-shell .nail-pillow .studio-finger{left:var(--finger-x);top:var(--finger-y);bottom:auto;width:16%;height:15%;min-height:0;padding:0;transform:translate(-50%,-50%);rotate:none;background:none;border:0;display:grid;place-items:center}
.salon-shell .nail-pillow .studio-nail{width:var(--nail-width,58%);height:var(--nail-height,62%);min-width:0;background-color:transparent;border-color:transparent;box-shadow:none;rotate:var(--nail-angle,0deg)}
.salon-shell .nail-pillow .studio-finger:is(:hover,:focus-visible) .studio-nail{outline:2px solid #a470d0;outline-offset:1px}
.salon-shell .nail-pillow .studio-nail[data-finish=matte]{box-shadow:inset 0 -2px 2px #60304423}
.salon-shell .nail-pillow .studio-nail[data-finish=shine]{box-shadow:inset 3px 4px 5px #fffe,0 0 5px #fff8}
.salon-shell .nail-pillow .studio-hand[data-bracelet=true]::after{left:38%;bottom:7%;width:26%}
.salon-shell .nail-pillow .studio-hand{--hand-aspect:2/3}
.salon-shell .nail-pillow .studio-finger:nth-of-type(1){--finger-x:86.3%;--finger-y:47.45%;--nail-width:48%;--nail-height:85%;--nail-angle:29deg}
.salon-shell .nail-pillow .studio-finger:nth-of-type(2){--finger-x:63.1%;--finger-y:14.8%;--nail-width:51%;--nail-height:83%;--nail-angle:3deg}
.salon-shell .nail-pillow .studio-finger:nth-of-type(3){--finger-x:46.1%;--finger-y:7.42%;--nail-width:53%;--nail-height:88%}
.salon-shell .nail-pillow .studio-finger:nth-of-type(4){--finger-x:30.15%;--finger-y:13.7%;--nail-width:50%;--nail-height:83%;--nail-angle:2deg}
.salon-shell .nail-pillow .studio-finger:nth-of-type(5){--finger-x:14.05%;--finger-y:27.55%;--nail-width:38%;--nail-height:69%;--nail-angle:-2deg}
.salon-shell .nail-pillow .studio-nail[data-ring=true]{outline-color:#ffda77}
.salon-shell .nail-pillow[data-side]{background:radial-gradient(ellipse at 47% 32%,#fff1fa,#f4b9d7 70%,#da84b5);border-radius:43% 41% 26% 27%;box-shadow:inset 0 0 0 3px #fbe2f0,inset 0 -14px 20px #9e477e42,0 6px 14px #652f6b2b}
.salon-shell .nail-pillow .studio-nail[data-shape=almond]{border-radius:51% 51% 43% 43% / 67% 67% 31% 31%}


.salon-shell .nail-pillow .studio-hand{--hand-aspect:0.72}
.salon-shell .scene[data-live-runway=on] .camera-world{visibility:visible;pointer-events:none;transform:none;transform-origin:50% 50%}
.scene[data-live-runway=on] #nail-desk,.scene[data-live-runway=on] #salon-spotlight{display:none}
.scene[data-live-runway=on] .avatar-action{animation:live-catwalk 5.2s ease-in-out both}
.live-runway-audience{position:absolute;z-index:8;bottom:2%;left:50%;translate:-50% 0;padding:6px 14px;background:#fff3d1;color:#633675;font-weight:800;border-radius:24px;white-space:nowrap;pointer-events:none}
@keyframes live-catwalk{
  0%{transform:translate(-18%,7%) scale(.74) rotate(-3deg)}
  14%{transform:translate(-10%,2%) scale(.85) rotate(3deg)}
  28%{transform:translate(-3%,3%) scale(.93) rotate(-2deg)}
  44%{transform:translate(5%,0) scale(1) rotate(2deg)}
  58%{transform:translate(13%,2%) scale(1) rotate(4deg)}
  75%{transform:translate(7%,-1%) scale(1) rotate(-4deg)}
  92%,100%{transform:translate(0,0) scale(1)}
}
@media(prefers-reduced-motion:reduce){.scene[data-live-runway=on] .avatar-action{animation:none}}

.may-3d-view{position:absolute;inset:0;z-index:3;width:100%;height:100%;touch-action:none;cursor:grab}
.may-3d-view:active{cursor:grabbing}
.may-3d-controls{position:absolute;z-index:7;top:5.7rem;right:12px;display:flex;align-items:center;justify-content:end;flex-wrap:wrap;gap:5px;max-width:min(220px,48vw)}
.may-3d-controls button{min-width:44px;min-height:44px;border:1px solid #e5d9f8;border-radius:14px;background:#fff7ff;color:#532282;font-weight:800;padding:0 9px}
.may-3d-controls button[aria-pressed=true]{background:#6035a0;color:white}
.may-3d-controls span:not(:empty){position:absolute;top:calc(100% + 3px);right:0;white-space:nowrap;background:#fff7ff;color:#542984;border-radius:10px;padding:4px 8px;text-align:right;font-size:12px}
.scene[data-avatar-3d] .camera-world,.scene[data-avatar-3d] #nail-desk,.scene[data-avatar-3d] .pet-touch{visibility:hidden;pointer-events:none}
.scene[data-avatar-3d][data-live-runway] .camera-world{visibility:hidden}
.scene[data-avatar-3d][data-live-runway] .may-3d-controls button:not(:first-child),.scene[data-avatar-3d][data-live-runway] .may-3d-controls span{visibility:hidden}
.scene[data-avatar-3d][data-live-runway]{background-image:radial-gradient(ellipse at 50% 0%,#f9a3de,#66419e 52%,#351b64) !important}
@media(max-width:650px){.may-3d-controls{top:6.6rem;right:7px}.may-3d-controls button{min-width:40px;min-height:40px}}

iframe.may-3d-view{border:0}

#family-show[data-may-ready]{box-shadow:0 0 0 2px #ffce6f,0 0 18px #ffdb8390}
#family-show[data-may-ready]::after{content:"✓";color:#187247;margin-inline-start:auto;font-weight:900}


body.salon-shell:has(.scene[data-avatar-3d]) .layout{grid-template-rows:minmax(0,1fr)}
body.salon-shell:has(.scene[data-avatar-3d]) .layout>.panel,
body.salon-shell:has(.scene[data-avatar-3d]) .layout>.salon-stage-shortcuts,
body.salon-shell:has(.scene[data-avatar-3d]) .layout>#tabs{display:none}
.scene[data-avatar-3d] .live-runway-audience{bottom:unset;top:58px}
.scene[data-avatar-3d] .may-3d-controls{top:58px}

.tool svg{filter:drop-shadow(0 2px 2px #57358048) drop-shadow(0 -1px 0 #fff5);background:radial-gradient(ellipse at 33% 23%,#ffffffbd,transparent 67%);border-radius:12px}
