/* Fennick try-on: the band in the finder, the "Try on" chips, and the full-screen fitting mirror. */
html.to-open{overflow:hidden}

/* card chip */
.tryb{position:absolute;right:12px;top:12px;z-index:2;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 13px 0 11px;border-radius:999px;
  background:rgba(246,241,231,.92);color:var(--ink);font:600 12px/1 var(--sans);letter-spacing:.02em;box-shadow:0 6px 16px -10px rgba(0,0,0,.5);transition:background .25s,color .25s}
.tryb svg,.ico-g{width:22px;height:10px;fill:none;stroke:currentColor;stroke-width:2.2}
.tryb:hover{background:var(--green);color:#f6f1e7}
.d-btns .ico-g{width:24px;height:11px}

/* band in the finder */
.to-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);margin-top:clamp(34px,4vw,56px);border-radius:16px;overflow:hidden;background:var(--green);color:#f6f1e7}
.to-band-pic{position:relative;min-height:300px;background:#d9cfc0}
.to-band-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.to-band-copy{padding:clamp(26px,3.4vw,52px);display:flex;flex-direction:column;justify-content:center}
.to-band .eyebrow{color:rgba(246,241,231,.78)}
.to-live{width:9px;height:9px;border-radius:50%;background:var(--brass2);box-shadow:0 0 0 0 rgba(226,194,127,.6);animation:toPulse 2.2s infinite;align-self:center}
@keyframes toPulse{70%{box-shadow:0 0 0 9px rgba(226,194,127,0)}100%{box-shadow:0 0 0 0 rgba(226,194,127,0)}}
.to-band h3{margin-top:14px;font:780 clamp(32px,3.4vw,52px)/.95 var(--disp);letter-spacing:-.035em;max-width:13em}
.to-band-copy>p:not(.eyebrow):not(.to-priv){margin-top:16px;max-width:30em;color:rgba(246,241,231,.8);font-size:clamp(15px,1.1vw,17px)}
.to-band-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.to-band .pill{border-color:rgba(246,241,231,.45);color:#f6f1e7}
.to-band .pill:hover{background:#f6f1e7;color:#15140f}
.to-band .pill.solid{background:var(--brass);border-color:var(--brass);color:#15140f}
.to-band .pill.solid:hover{background:var(--brass2);border-color:var(--brass2)}
.to-priv{display:flex;align-items:center;gap:9px;margin-top:20px;font:500 12.5px/1.45 var(--sans);color:rgba(246,241,231,.74)}
.to-priv svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
@media (prefers-reduced-motion:reduce){.to-live{animation:none}}

/* the fitting mirror */
.tryon{border:0;padding:0;margin:auto;width:min(1240px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));max-width:none;max-height:none;border-radius:18px;
  background:var(--cream);color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.tryon::backdrop{background:rgba(11,31,27,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.tryon[open]{animation:dIn .45s var(--ease)}
.to-wrap{position:relative;height:100%;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,1fr)}
.to-stage{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 50% 30%,#1d4a40,#0b1f1b 70%);color:#f6f1e7;min-height:0}
.to-stage video,.to-stage canvas{position:absolute;inset:0;width:100%;height:100%}
.to-stage video{object-fit:cover;transform:scaleX(-1);opacity:0;transition:opacity .4s}
.to-stage.live[data-mode="camera"] video{opacity:1}
.to-stage canvas{pointer-events:none}
.to-start{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:clamp(22px,4vw,56px);
  background:radial-gradient(120% 90% at 50% 30%,#1d4a40,#0b1f1b 70%)}
.to-start[hidden]{display:none}
.to-start .eyebrow{color:rgba(246,241,231,.72)}
.to-start h3{margin-top:14px;font:800 clamp(40px,4.6vw,72px)/.92 var(--disp);letter-spacing:-.04em;max-width:9em}
.to-sub{margin-top:16px;max-width:28em;color:rgba(246,241,231,.78);font-size:15.5px}
.to-choice{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin-top:28px}
.to-choice .pill{border-color:rgba(246,241,231,.45);color:#f6f1e7;cursor:pointer}
.to-choice .pill svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.to-choice .pill:hover{background:#f6f1e7;color:#15140f}
.to-choice .pill.solid{background:var(--brass);border-color:var(--brass);color:#15140f}
.to-choice .pill.solid:hover{background:var(--brass2)}
.to-choice input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.to-choice .txt{color:#f6f1e7;margin-left:4px;padding-top:6px}
.to-stage.nocam #toCam,.to-stage.nocam [data-to="camera"],.to-stage.nomodel #toCam,.to-stage.nomodel #toUp,.to-stage.nomodel [data-to="camera"],.to-stage.nomodel [data-to="photo"]{display:none}
.to-msg{position:absolute;z-index:3;left:50%;top:18px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 140px);padding:11px 16px;border-radius:14px;
  background:rgba(11,31,27,.84);color:#f6f1e7;font:500 14px/1.4 var(--sans);text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.to-msg[hidden]{display:none}
.to-start:not([hidden])~.to-msg{top:auto;bottom:18px}
.to-modes{position:absolute;z-index:3;left:14px;bottom:14px;display:flex;padding:4px;border-radius:999px;background:rgba(11,31,27,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.to-modes button{min-height:40px;padding:0 15px;border-radius:999px;color:rgba(246,241,231,.82);font:600 12.5px/1 var(--sans)}
.to-modes button[aria-pressed="true"]{background:#f6f1e7;color:#15140f}
.to-stage[data-mode=""] .to-modes,.to-stage:not([data-mode]) .to-modes{display:none}
.to-save{position:absolute;z-index:3;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:999px;background:var(--brass);color:#15140f;font:600 13px/1 var(--sans)}
.to-save svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.to-save[hidden]{display:none}
.to-x{position:absolute;z-index:5;right:16px;top:16px;width:52px;height:52px;border-radius:50%;background:#f6f1e7;box-shadow:0 8px 22px -8px rgba(0,0,0,.45)}
.to-x span::before,.to-x span::after{content:"";position:absolute;left:16px;top:25px;width:20px;height:2px;background:#15140f;transform:rotate(45deg)}
.to-x span::after{transform:rotate(-45deg)}
.to-panel{display:flex;flex-direction:column;gap:20px;padding:clamp(24px,2.6vw,38px);overflow:auto;min-width:0}
.to-head h3{margin-top:10px;font:800 clamp(40px,3.6vw,58px)/.9 var(--disp);letter-spacing:-.04em}
.to-sw{margin-top:0}
.to-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.to-strip button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;border-radius:12px;background:#ebe4d8;border:1.5px solid transparent;font:600 12.5px/1 var(--sans);transition:border-color .2s,background .2s}
.to-strip button:hover{border-color:rgba(21,20,15,.3)}
.to-strip button[aria-pressed="true"]{border-color:var(--ink);background:#fff9ef}
.to-strip img{width:100%;max-width:150px;height:auto;aspect-ratio:2.85;object-fit:contain}
.to-add{width:100%}
.to-add.on{background:var(--green);border-color:var(--green)}
.to-panel .to-priv{margin-top:0;color:var(--ink2)}

@media (max-width:900px){
  .to-band{grid-template-columns:1fr}
  .to-band-pic{min-height:0;aspect-ratio:1.35}
  .tryon{width:100vw;height:100vh;height:100dvh;border-radius:0;margin:0}
  .tryon[open]{animation:none}
  .to-wrap{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .to-panel{gap:12px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));max-height:46dvh;background:var(--cream)}
  .to-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-direction:row-reverse}
  .to-head h3{margin-top:0;font-size:32px}
  .to-head .d-kick{text-align:right}
  .to-sw legend{margin-bottom:8px}
  .to-strip{display:flex;overflow-x:auto;gap:8px;margin:0 -16px;padding:0 16px 2px;scroll-snap-type:x proximity;scrollbar-width:none}
  .to-strip::-webkit-scrollbar{display:none}
  .to-strip button{flex:none;width:112px;scroll-snap-align:center;padding:10px 6px 8px}
  .to-panel .to-priv{font-size:11.5px;margin-top:2px}
  .to-x{top:calc(12px + env(safe-area-inset-top));right:12px;width:54px;height:54px}
  .to-x span::before,.to-x span::after{left:17px;top:26px}
  .to-msg{top:calc(16px + env(safe-area-inset-top));max-width:calc(100% - 100px);left:16px;transform:none;text-align:left}
  .to-start{justify-content:flex-end;padding:24px 20px 26px}
  .to-start h3{font-size:44px}
  .to-sub{font-size:14.5px}
  .to-choice{margin-top:20px}
  .to-choice .pill{flex:1 1 100%}
  .to-save{min-height:44px;padding:0 15px}
  .to-modes button{min-height:38px;padding:0 12px}
}
@media (max-width:900px) and (max-height:700px){.to-panel{max-height:52dvh}.to-head h3{font-size:28px}}
#toSw{display:flex;gap:10px}
#toSw button{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
#toSw button i{width:32px;height:32px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
#toSw button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--ink)}
@media (min-width:901px){.to-strip button{padding:8px 8px 9px}.to-strip img{max-width:128px}.to-panel{gap:16px}}
@media (max-width:900px){#toSw button{width:40px;height:40px}#toSw button i{width:28px;height:28px}}
.to-note{margin-top:18px;max-width:30em;padding:12px 14px;border-radius:12px;background:rgba(226,194,127,.16);border:1px solid rgba(226,194,127,.4);color:#f6f1e7;font:500 14.5px/1.45 var(--sans)}
.to-note[hidden]{display:none}
.to-start{overflow-y:auto}
@media (max-width:900px){
  .tryon.starting .to-panel{display:none}
  .tryon.starting .to-wrap{grid-template-rows:minmax(0,1fr)}
  .to-start{justify-content:center;padding:calc(76px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom))}
  .to-note{font-size:14px}
}
