:root{color-scheme:light;--ink:#252822;--paper:#f5f3ef;--stone:#e5dfd4;--muted:#696b62;--line:rgba(49,48,41,.18);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--paper)}
body{min-height:100vh;min-height:100dvh;display:grid;place-items:center;color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation;outline-offset:3px}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:wait}
button:focus-visible,a:focus-visible{outline:2px solid #424c37}
a{color:inherit}p,h1,h2{margin:0}svg{display:block}
[hidden]{display:none!important}
.ad{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(100vw,56.25dvh,430px);height:min(100dvh,764.444px);overflow:hidden;isolation:isolate;background:var(--stone);container-type:inline-size}
.masthead{grid-row:1;position:relative;z-index:5;text-align:center;padding:20px 48px 10px;min-width:0}
.eyebrow{font-size:9px;line-height:1.3;letter-spacing:.21em;text-transform:uppercase;font-weight:400}
.brand{display:block;width:100%;max-width:318px;height:auto;margin:12px auto 0}
h1{font-weight:400;font-size:13px;letter-spacing:.015em;margin-top:9px}
.reset{position:absolute;right:4px;bottom:0;width:44px;height:44px;display:grid;place-items:center}
.reset svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.model-stage{grid-row:2;position:relative;min-height:0;padding:0 0 28px;overflow:hidden}
.portrait{height:100%;aspect-ratio:2/5;position:relative;margin:0 auto;overflow:hidden;-webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent)}
/* All faces use the same pixels and registration; accessories reveal only their traced silhouettes. */
.look-frame,.photo-plate{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.look-frame{visibility:hidden;opacity:0;transition:none}
.look-frame.is-current{visibility:visible;opacity:1;z-index:2}
.photo-plate img{display:block;position:absolute;left:0;top:0;width:400%;height:100%;max-width:none;object-fit:fill;user-select:none;-webkit-user-drag:none}
.registration-masks{position:absolute;pointer-events:none}
.top-plate{clip-path:url(#upper-garment)}
.identity-plate{clip-path:url(#identity-round)}
.look-frame[data-top="1"] .identity-plate{clip-path:url(#identity-v)}
.hat-plate{clip-path:url(#hat-straw)}
.look-frame[data-hat="2"] .hat-plate{clip-path:url(#hat-bucket)}
.glasses-plate{clip-path:url(#glasses-tortoise)}
.look-frame[data-glasses="2"] .glasses-plate{clip-path:url(#glasses-black)}
.foot-plate{clip-path:inset(86% 0 0 0)}
.play-controls{position:absolute;inset:0 0 28px;z-index:4;pointer-events:none}
.swipe-area{position:absolute;inset:0 20%;pointer-events:auto;touch-action:pan-y;cursor:ew-resize}
.active-zone{position:absolute;left:8%;right:8%;top:var(--arrow-y,31%);height:48px;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;transition:top 200ms ease-out}
.arrow{pointer-events:auto;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#f5f3ef18;transition:background 150ms,transform 150ms}
.arrow svg{width:19px;height:19px;fill:none;stroke:var(--ink);stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.arrow:active{transform:scale(.92);background:#ffffff65}
.gesture-hint{position:absolute;left:0;right:0;bottom:5px;font-size:11px;line-height:18px;letter-spacing:.01em;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px}
.gesture-hint svg{width:22px;height:12px;fill:none;stroke:currentColor;stroke-width:.8;stroke-linecap:round;stroke-linejoin:round}
.wardrobe{grid-row:3;position:relative;z-index:7;padding:0 18px 16px;min-width:0}
.tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid var(--line);width:100%}
.tabs button{position:relative;min-width:44px;min-height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:12px;line-height:1.1;letter-spacing:.015em;color:var(--muted)}
.tabs svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.tabs button[aria-selected=true]{color:var(--ink)}
.tabs button[aria-selected=true]:after{content:'';position:absolute;height:2px;background:var(--ink);left:9px;right:9px;bottom:-1px}
#choice-panel{min-height:79px;padding:9px 0 3px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.selection-line{display:flex;align-items:center;justify-content:center;gap:12px;min-height:19px;width:100%;font-size:13px;line-height:1.35;letter-spacing:.005em}
#itemCount{font-size:10px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.swatches{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px}
.swatch{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;position:relative}
.swatch:before{content:'';display:block;width:22px;height:22px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #00000015}
.swatch[aria-pressed=true]:after{content:'';position:absolute;inset:5px;border-radius:50%;border:1px solid var(--ink)}
.swatch.is-none:before{background:transparent;border:1px solid #8c8d83;box-shadow:none}
.swatch.is-none .choice-icon{width:18px;height:18px}
.choice-icon{position:absolute;width:22px;height:22px;fill:none;stroke:var(--icon-ink,var(--ink));stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.swatch.is-accessory:before{background:#f2eee6}
.swatch.is-accessory .choice-icon{width:25px;height:25px}
.swatch:active{background:#ffffff40}
.primary{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:48px;background:var(--ink);color:#fff;text-decoration:none;font-size:13px;line-height:1.2;letter-spacing:.02em;font-weight:400;transition:background 150ms}
.primary svg{position:absolute;right:17px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.primary:disabled{opacity:.45}
.load-status{position:absolute;inset:53px 18px 65px;background:var(--stone);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;font-size:12px;line-height:1.4;z-index:4}
.load-status button{min-height:44px;min-width:80px;text-decoration:underline;text-underline-offset:4px}
.ad.is-ready .load-status{display:none}
.finished-panel{display:none;grid-row:3;position:relative;z-index:8;padding:16px 20px 10px;background:#eee9e0;min-width:0}
.finished-panel h2{font:400 26px/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin-top:6px;outline:none}
.selected-pieces{margin:10px 0 13px;font-size:12px;line-height:1.4;display:grid;grid-template-columns:1fr;gap:0}
.selected-piece{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid var(--line);padding:5px 0}
.selected-piece span:first-child{color:var(--muted);font-size:10px;letter-spacing:.04em;flex:0 0 auto}
.selected-piece span:last-child{text-align:right}
.keep-styling{display:block;min-height:44px;min-width:100px;margin:0 auto;font-size:12px;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.ad.is-finished .wardrobe,.ad.is-finished .play-controls,.ad.is-finished .gesture-hint,.ad.is-finished .reset{display:none}
.ad.is-finished .finished-panel{display:block}
.ad.is-finished .model-stage{padding-bottom:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(hover:hover){.arrow:hover,.swatch:hover{background:#ffffff40}.primary:hover{background:#3d4237}}
/* Mobile is a real viewport layout, including browser bars and notches. */
@media(max-width:600px) and (orientation:portrait){
  body{display:block;background:var(--stone);overflow:hidden}
  .ad{width:100%;height:100vh;height:100dvh;max-width:none;padding-top:var(--safe-top)}
  .masthead{padding-top:18px;padding-bottom:10px}
  .wardrobe{padding-bottom:max(14px,var(--safe-bottom))}
  .finished-panel{padding-bottom:var(--safe-bottom)}
}
@media(min-width:601px) and (min-height:501px){.ad{box-shadow:0 2px 24px #3430200b}}
@media(max-height:650px) and (orientation:portrait){
  .masthead{padding-top:10px;padding-bottom:5px}
  .eyebrow{font-size:8px}.brand{margin-top:7px;max-width:255px}h1{margin-top:6px;font-size:12px}
  .tabs button{min-height:48px;gap:3px}.tabs svg{width:17px;height:17px}
  .wardrobe{padding-left:14px;padding-right:14px;padding-bottom:max(10px,var(--safe-bottom))}
  #choice-panel{min-height:72px;padding-top:6px;padding-bottom:0}
  .selection-line{font-size:12px}.primary{min-height:44px}
  .finished-panel{padding-top:10px;padding-left:16px;padding-right:16px}
  .finished-panel h2{font-size:22px}.selected-pieces{margin:7px 0 8px;font-size:11px}.selected-piece{padding:3px 0}
  .model-stage{padding-bottom:23px}.play-controls{bottom:23px}.gesture-hint{bottom:2px;font-size:10px}
}
/* Landscape keeps controls usable instead of shrinking the portrait ad. */
@media(orientation:landscape) and (max-height:500px){
  body{display:block;overflow:hidden;background:var(--stone)}
  .ad{width:100%;max-width:none;height:100vh;height:100dvh;grid-template-columns:minmax(180px,1fr) minmax(286px,1fr);grid-template-rows:auto minmax(0,1fr);padding:var(--safe-top) max(8px,env(safe-area-inset-right,0px)) var(--safe-bottom) max(8px,env(safe-area-inset-left,0px))}
  .masthead{grid-column:1;grid-row:1;padding:8px 35px 4px}
  .eyebrow{display:none}.brand{margin:0 auto;max-width:205px}h1{font-size:11px;margin-top:4px}
  .reset{right:0;bottom:0}.model-stage{grid-column:1;grid-row:2;padding-bottom:22px}.play-controls{bottom:22px}
  .active-zone{left:2%;right:2%}.gesture-hint{font-size:10px;bottom:0}
  .wardrobe{grid-column:2;grid-row:1 / 3;align-self:center;padding:8px 12px}
  .tabs button{min-height:50px;font-size:11px}.tabs svg{width:18px;height:18px}
  #choice-panel{min-height:83px}.primary{min-height:44px}
  .finished-panel{grid-column:2;grid-row:1 / 3;align-self:center;padding:12px;background:transparent}
  .finished-panel .eyebrow{display:block}.finished-panel h2{font-size:23px}.selected-pieces{margin:8px 0;font-size:11px}.selected-piece{padding:3px 0}
  .keep-styling{min-height:44px}.ad.is-finished .model-stage{padding-bottom:0}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
