/* Group selfie (group-selfie.js): the camera with outlines and a coach line over the picture, the controls under it,
   the picture once taken, and the tips with the shapes that work. The cards are .card, so the workspace's glass applies;
   everything here is layout and the pieces that are this page's own. Nothing is styled inline: faces and outlines are SVG. */
.gs-page{display:grid;gap:18px}
.gs-hero h1{margin:4px 0 8px;font-size:clamp(1.6rem,3vw,2.1rem);letter-spacing:-.02em}
.gs-hero p:last-child{margin:0;max-width:62ch;color:var(--muted)}
.gs-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media(min-width:960px){.gs-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}}
.gs-card{padding:18px;border-radius:22px}
.gs-card h2{margin:0 0 10px;font-size:1.05rem;letter-spacing:-.01em}
/* The picture: tall on a phone, as a selfie is held; wider on a desk. */
.gs-viewport{position:relative;aspect-ratio:3/4;max-height:min(74vh,640px);margin-inline:auto;overflow:hidden;border-radius:18px;background:#0b1416;display:grid;place-items:center;isolation:isolate}
@media(min-width:960px){.gs-viewport{aspect-ratio:4/3}}
@media(orientation:landscape) and (max-height:520px){.gs-viewport{aspect-ratio:16/9;max-height:78vh}}
.gs-viewport video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gs-viewport video.is-mirrored{transform:scaleX(-1)}
.gs-overlay,.gs-faces{position:absolute;inset:0;pointer-events:none}
.gs-overlay svg,.gs-faces svg{display:block;width:100%;height:100%}
.gs-slot ellipse,.gs-slot path{fill:none;stroke:rgba(255,255,255,.86);stroke-width:2.5px;stroke-dasharray:9 8;stroke-linecap:round;vector-effect:non-scaling-stroke;transition:stroke .2s}
.gs-slot.is-holder ellipse,.gs-slot.is-holder path{stroke:#ffd166}
.gs-slot.is-filled ellipse,.gs-slot.is-filled path{stroke:#5ee6a0;stroke-dasharray:none;stroke-width:3px}
.gs-slot text{fill:#ffd166;font:700 34px/1 system-ui,sans-serif;paint-order:stroke;stroke:rgba(0,0,0,.55);stroke-width:6px}
.gs-faces ellipse{fill:none;stroke:rgba(255,255,255,.5);stroke-width:1.5px;vector-effect:non-scaling-stroke}
.gs-page .gs-viewport .gs-coach{position:absolute;z-index:2;left:10px;right:10px;top:10px;margin:0 auto;width:fit-content;max-width:calc(100% - 20px);padding:8px 13px;border-radius:14px;background:rgba(9,20,24,.78);color:#fff;font-size:.9rem;font-weight:650;line-height:1.35;text-align:center;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.gs-page .gs-viewport .gs-coach[data-tone=good]{background:rgba(12,120,74,.92)}
.gs-page .gs-viewport .gs-coach[data-tone=warn]{background:rgba(122,68,4,.94)}
.gs-page .gs-viewport .gs-coach[data-tone=hint]{background:rgba(20,66,110,.92)}
.gs-flash{position:absolute;inset:0;z-index:3;background:#fff;opacity:0;pointer-events:none}
.gs-flash.is-shot{animation:gs-shot .22s ease-out}
/* Screen light: for the last second the whole screen turns white to light the faces. */
.gs-flash.is-light{position:fixed;z-index:80;opacity:1}
.gs-page .gs-viewport .gs-flash.is-light+.gs-count{position:fixed;z-index:81;inset:0;color:#111;text-shadow:none}
@keyframes gs-shot{from{opacity:.9}to{opacity:0}}
.gs-page .gs-viewport .gs-count{position:absolute;z-index:4;inset:0;display:grid;place-items:center;margin:0;font-size:clamp(5rem,28vw,9rem);font-weight:800;color:#fff;text-shadow:0 4px 24px rgba(0,0,0,.6);pointer-events:none}
.gs-idle{display:grid;justify-items:center;gap:14px;padding:24px;text-align:center;color:rgba(255,255,255,.84)}
.gs-idle>svg{width:56px;height:56px;color:#9ee7cb}
.gs-page .gs-idle p{margin:0;max-width:34ch;font-size:.9rem;line-height:1.5;color:rgba(255,255,255,.84)}
.gs-page svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gs-page .button{display:inline-flex;align-items:center;gap:8px}.gs-page .button svg{width:18px;height:18px;flex:none}
.gs-status{min-height:1.2em;margin:10px 0 0;font-size:.9rem;color:var(--muted)}.gs-status[data-tone=warn]{color:var(--danger,#b42318)}
.gs-status:empty{display:none}
.gs-controls{display:grid;gap:14px;margin-top:14px}
.gs-people{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gs-label{flex:1 1 100%;font-size:.86rem;font-weight:650}
.gs-step,.gs-round{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line,#d5dde0);background:var(--theme-surface,#fff);color:var(--ink,#102a33);cursor:pointer}
.gs-step svg,.gs-round svg{width:20px;height:20px}
.gs-people output{min-width:2.4ch;text-align:center;font-size:1.15rem;font-weight:750;font-variant-numeric:tabular-nums}
.gs-auto{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line,#d5dde0);background:var(--theme-surface,#fff);color:var(--ink,#102a33);font-weight:650;cursor:pointer}
.gs-auto[aria-pressed=true]{background:var(--theme-accent,#08776e);border-color:transparent;color:#fff}
.gs-shoot{display:flex;align-items:center;justify-content:center;gap:26px}
.gs-shutter{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;border:4px solid var(--theme-accent,#08776e);background:none;cursor:pointer;padding:0}
.gs-shutter i{width:56px;height:56px;border-radius:50%;background:var(--theme-accent,#08776e);transition:border-radius .15s,width .15s,height .15s}
.gs-camera[data-ready=true] .gs-shutter{box-shadow:0 0 0 6px color-mix(in srgb,#5ee6a0 45%,transparent)}
.gs-camera[data-counting=true] .gs-shutter i{width:28px;height:28px;border-radius:7px;background:var(--danger,#b42318)}
.gs-options{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.gs-toggle,.gs-timer{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 12px;border-radius:999px;border:1px solid var(--line,#d5dde0);font-size:.84rem;font-weight:600;cursor:pointer}
.gs-toggle input{width:18px;height:18px;margin:0;accent-color:var(--theme-accent,#08776e)}
.gs-timer select{min-height:30px;border:0;background:none;color:inherit;font:inherit;font-weight:700}
/* The idea in play, named over the foot of the picture; the deck of ideas, a row to swipe through right under it. */
.gs-page .gs-viewport .gs-idea-now{position:absolute;z-index:2;left:0;right:0;bottom:0;display:grid;gap:1px;margin:0;padding:22px 14px 11px;background:linear-gradient(transparent,rgba(5,14,17,.82));color:#fff;font-size:.8rem;line-height:1.4;text-align:left;pointer-events:none}
.gs-page .gs-viewport .gs-idea-now strong{font-size:.98rem;letter-spacing:-.01em;color:#fff}.gs-page .gs-viewport .gs-idea-now span{color:rgba(255,255,255,.86)}
.gs-viewport{scroll-margin-top:88px}
/* After a few seconds the how-to steps aside: the chosen card in the deck below still names the idea. */
.gs-camera[data-note=brief] .gs-viewport .gs-idea-now{display:none}
.gs-deck{display:flex;align-items:stretch;gap:8px;margin:12px -4px 0;padding:2px 4px 8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain}
.gs-surprise{flex:0 0 84px;display:grid;place-content:center;justify-items:center;gap:6px;padding:8px 6px;border-radius:16px;border:0;background:var(--theme-accent,#08776e);color:#fff;font:inherit;font-size:.76rem;font-weight:750;line-height:1.2;text-align:center;cursor:pointer}
.gs-surprise svg{width:26px;height:26px}
.gs-idea-card{flex:0 0 88px;display:grid;gap:2px;align-content:start;justify-items:center;padding:5px 5px 7px;border:2px solid transparent;border-radius:16px;background:color-mix(in srgb,var(--theme-accent,#08776e) 7%,transparent);color:inherit;font:inherit;text-align:center;cursor:pointer;scroll-snap-align:center}
.gs-idea-card svg{width:100%;aspect-ratio:3/4;border-radius:11px;background:#0f2f3d}
.gs-idea-card strong{font-size:.72rem;line-height:1.2}.gs-idea-card small{font-size:.64rem;color:var(--muted);font-weight:650}
.gs-idea-card[aria-pressed=true]{border-color:var(--theme-accent,#08776e);background:color-mix(in srgb,var(--theme-accent,#08776e) 16%,transparent)}
/* What an idea draws besides people. */
.gs-place rect{fill:rgba(255,255,255,.07);stroke:rgba(255,255,255,.7);stroke-width:2px;stroke-dasharray:4 9;vector-effect:non-scaling-stroke}
.gs-place text{fill:rgba(255,255,255,.85);font:700 40px/1 system-ui,sans-serif;paint-order:stroke;stroke:rgba(0,0,0,.45);stroke-width:6px}
.gs-phone rect{fill:rgba(255,255,255,.12);stroke:#ffd166;stroke-width:2px;vector-effect:non-scaling-stroke}.gs-phone circle{fill:#ffd166;stroke:none}
.gs-arrow{fill:none;stroke:#ffd166;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.gs-slot.is-star ellipse,.gs-slot.is-star>path:not(.gs-star){stroke:#ff9ec4}
.gs-slot .gs-star{fill:#ffd166;stroke:none}
/* The call as the picture is taken. */
.gs-page .gs-viewport .gs-call{position:absolute;z-index:5;left:6%;right:6%;top:50%;transform:translateY(-50%);margin:0;padding:14px 16px;border-radius:20px;background:rgba(9,20,24,.72);color:#fff;font-size:clamp(1.5rem,7vw,2.4rem);font-weight:800;line-height:1.2;text-align:center;pointer-events:none}
/* Frames for the finished picture. */
.gs-frames{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.gs-frame{min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid var(--line,#d5dde0);background:var(--theme-surface,#fff);color:var(--ink,#102a33);font:inherit;font-size:.86rem;font-weight:650;cursor:pointer}
.gs-frame[aria-pressed=true]{background:var(--theme-accent,#08776e);border-color:transparent;color:#fff}
.gs-caption{flex:1 1 100%;display:grid;gap:4px;font-size:.8rem;font-weight:650}
.gs-caption input{min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid var(--line,#d5dde0);background:var(--theme-surface,#fff);color:var(--ink,#102a33);font:inherit}
.gs-tips ol{margin:0;padding-left:1.2em;display:grid;gap:8px;font-size:.9rem;line-height:1.5}
.gs-note{margin:12px 0 0;font-size:.82rem;line-height:1.5;color:var(--muted)}
.gs-shot{display:block;width:100%;height:auto;max-height:74vh;object-fit:contain;border-radius:16px;background:#0b1416}
.gs-review-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.gs-page :is(button,a,select,input):focus-visible{outline:2px solid var(--theme-accent,#08776e);outline-offset:3px}
@media(max-width:560px){.gs-card{padding:14px}.gs-review-actions .button{flex:1 1 calc(50% - 10px);justify-content:center}}
@media(prefers-reduced-motion:reduce){.gs-flash.is-shot{animation:none}.gs-slot ellipse,.gs-slot path,.gs-shutter i{transition:none}}
