@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/dm-sans-400.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/dm-sans-500.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/dm-sans-600.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/dm-sans-700.ttf") format("truetype")}

:root{color-scheme:light;--paper:#fff;--surface:#f6f7f8;--ink:#343434;--muted:#786973;--line:#efdee5;--primary:#ed2365;--focus:#244bdd;font-family:'DM Sans',sans-serif;background:#fff;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.65}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}a{color:inherit;text-underline-offset:3px}[hidden]{display:none!important}p{margin:0}svg{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-scene{position:relative;isolation:isolate;max-width:1280px;margin:0 auto}.experience{position:relative;z-index:1;max-width:408px;margin:0 auto;padding:24px;}.camera-column{width:100%}.viewfinder{position:relative;width:100%;border-radius:30px;overflow:hidden;background:#fff2f7;box-shadow:0 0 0 1px var(--line),0 12px 35px #581d3914;container-type:inline-size}.recording-frame{position:relative;width:100%;aspect-ratio:9/16;isolation:isolate}.media-source{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.recording-frame canvas{position:relative;display:block;width:100%;height:100%;object-fit:contain}#stage:focus-visible{outline:3px solid var(--focus);outline-offset:-4px}
.welcome-screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;padding:7.22cqw 6.1cqw 4.72cqw;background:radial-gradient(ellipse at 50% 29%,#ffe0ec 0,#fff5f9 52%,#fff 95%)}.welcome-header{text-align:center}.welcome-header img{display:block;width:42.5cqw;height:auto;margin:auto}.welcome-header p{margin-top:3.33cqw;font-size:clamp(11px,3.61cqw,13px);line-height:1.3;color:var(--muted)}
.mystery-deck{position:relative;width:45.56cqw;height:58.33cqw;flex:none;margin:9.44cqw 0 8.06cqw}.deck-back{position:absolute;inset:4px 0 2px;border:1px solid #f6bed1;border-radius:6.1cqw;transform-origin:50% 85%}.deck-back-one{background:#ffd4e4;transform:rotate(-10deg) translateX(-5px)}.deck-back-two{background:#ffecf3;transform:rotate(9deg) translateX(6px)}.mystery-card{position:absolute;inset:0;border:2px solid #fff;border-radius:6.1cqw;background:linear-gradient(145deg,#ffacc9,#ffe3ed);box-shadow:0 9px 20px #b73c6621;display:flex;align-items:center;justify-content:center;overflow:hidden}.story-bars{position:absolute;top:3.05cqw;left:3.05cqw;right:3.05cqw;display:flex;gap:4px}.story-bars span{height:3px;flex:1;border-radius:3px;background:#ffffff70}.story-bars span:first-child{background:white}.question-mark{font-size:30cqw;line-height:1;font-weight:700;color:#bd2459;margin-top:-3cqw;text-shadow:0 3px 0 #ffffff40}.secret-name{position:absolute;bottom:5.3cqw;left:0;right:0;text-align:center;font-size:clamp(11px,3.61cqw,13px);font-weight:700;color:#7c2347}.heart-seal{position:absolute;right:-8.33cqw;bottom:-4.72cqw;width:14.72cqw;height:14.72cqw;border-radius:50%;background:white;display:grid;place-items:center;box-shadow:0 4px 12px #79324816}.heart-seal img{width:9cqw;height:auto}
.welcome-promise{text-align:center;width:100%}h1{margin:0;font-size:7.78cqw;line-height:1.1;letter-spacing:-.03em;font-weight:700}h1 em{font-style:normal;color:var(--primary)}.welcome-promise p{margin-top:3.61cqw;font-size:clamp(12px,3.89cqw,14px);line-height:1.4;color:var(--muted)}.welcome-actions{width:100%;margin-top:auto;padding-top:6cqw;text-align:center}.primary{width:100%;min-height:54px;border:0;border-radius:30px;background:var(--primary);color:white;display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 10px;font-size:clamp(13px,4.44cqw,16px);line-height:1.2;font-weight:700;box-shadow:0 5px 13px #e51c6024}.primary:hover:not(:disabled){background:#d21c57}.primary:active:not(:disabled){transform:translateY(1px)}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.welcome-actions>p{margin-top:2.78cqw;font-size:clamp(10px,3.06cqw,11px);line-height:1.4;color:var(--muted)}.frame-parody{font-size:clamp(10px,3.06cqw,11px);line-height:1.35;text-align:center;color:var(--muted);margin-top:5.83cqw}.text-button{background:none;border:0;color:var(--muted);font-size:13px;line-height:18px;min-height:44px;padding:10px 8px;text-decoration:underline;text-underline-offset:4px}.permission-skip{font-size:11px;min-height:40px;padding:8px}.welcome-screen:has(.permission-skip:not([hidden])) .mystery-deck{margin-top:6cqw;margin-bottom:4cqw}.welcome-screen:has(.permission-skip:not([hidden])) .frame-parody{margin-top:2cqw}
.ready-screen{position:absolute;inset:0}.preview-tools{position:absolute;top:13px;left:13px;right:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.preview-status{background:white;border-radius:24px;padding:11px 13px;font-size:12px;line-height:18px;color:#5c535a}.camera-flip{width:46px;height:46px;border:0;border-radius:50%;background:white;display:grid;place-items:center;box-shadow:0 2px 8px #2c142716}.camera-flip svg{width:23px;height:23px}.ready-sheet{position:absolute;inset:55% 0 0;background:#fff2f7;border-radius:27px 27px 0 0;padding:7cqw 6.1cqw 4.5cqw;text-align:center;display:flex;flex-direction:column;align-items:center}.ready-heart{position:absolute;top:-24px;left:calc(50% - 23px);width:46px;height:46px;background:white;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 12px #6c1a4310}.ready-heart img{width:28px;height:auto}.ready-sheet h2{margin:0;font-size:8.05cqw;line-height:1.08;letter-spacing:-.025em;text-wrap:balance}.ready-sheet>p:not(.frame-parody){margin-top:2.78cqw;font-size:clamp(11px,3.61cqw,13px);line-height:1.4;color:var(--muted)}.ready-sheet .primary{margin-top:5cqw}.ready-sheet .record-note{font-size:clamp(10px,3.05cqw,11px)!important}.ready-sheet .frame-parody{margin-top:auto}.fallback-art{position:absolute;inset:0 0 45%;display:grid;place-items:center;background:radial-gradient(ellipse,#ffe0ec,#fff3f7)}.fallback-art .mystery-deck{margin:0;transform:scale(.85)}.countdown-overlay{position:absolute;inset:0 0 45%;z-index:3;display:grid;place-items:center;font-size:90px;line-height:1;font-weight:700;color:var(--primary);text-shadow:0 2px 20px white;pointer-events:none}.play-overlay{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);max-width:90%;min-height:52px;border:0;border-radius:28px;padding:12px 20px;background:var(--primary);color:white;font-size:14px;font-weight:600;box-shadow:0 4px 24px #34343420}
.control-column{text-align:center}.capture-status{padding:0 16px 6px}.status-row{display:flex;justify-content:center;align-items:center;gap:8px;min-height:40px;font-size:13px}.status-orb{width:7px;height:7px;border-radius:50%;background:var(--primary)}.progress-track{height:3px;background:var(--line);border-radius:4px;overflow:hidden}.progress-track>div{height:100%;background:var(--primary);width:0}.secondary{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:26px;background:white;color:var(--ink);min-height:48px;padding:10px 8px;font-size:12px;line-height:18px;font-weight:500}.secondary svg{width:17px;height:17px}.permission-note{font-size:12px;line-height:18px;color:var(--muted);margin-top:12px}.message{font-size:13px;line-height:19px;padding:12px 18px;background:white}.message:empty{display:none}.message[role=alert]{color:#a4143b;background:#fff2f7}
.site-footer{max-width:408px;padding:0 24px 32px;margin:0 auto;color:var(--muted);font-size:13px;line-height:1.65}.site-footer>details:last-child{border-bottom:1px solid var(--line)}.site-footer>details>summary{min-height:54px;gap:16px;font-weight:500}.site-footer>details>summary:after{flex:none}.footer-content{padding:3px 0 8px;overflow-wrap:anywhere}.footer-content h3{font-size:13px;color:var(--ink);line-height:1.4;margin:6px 0 10px}.footer-content p+h3{margin-top:8px}.footer-content a{color:#a91f4e}details{border-top:1px solid var(--line)}summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;cursor:pointer;list-style:none;color:var(--ink)}summary::-webkit-details-marker{display:none}summary:after{content:'+';font-size:20px;color:var(--muted)}details[open]>summary:after{content:'−'}details p{padding-bottom:12px}#portrait-credits{display:grid;gap:12px;padding:0 0 16px;overflow-wrap:anywhere}noscript{display:block;text-align:center;padding:16px}
@media(max-width:420px){.experience{padding:16px;max-width:392px}.primary{min-height:48px}.viewfinder{border-radius:26px}}
@media(max-width:350px){.experience{padding:12px}.welcome-screen>.mystery-deck{margin-top:7cqw;margin-bottom:6cqw}.welcome-actions{padding-top:4cqw}.frame-parody{margin-top:4cqw}.ready-sheet{padding-top:6cqw}.ready-sheet .primary{margin-top:3.5cqw}.preview-status{font-size:11px;padding:9px 10px}.secondary{gap:4px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.watch-button{width:100%;min-height:50px;margin-top:10px;font-size:15px;font-weight:700;border-color:#f0b6cb;background:#fff7fa;color:#b71e50}.watch-button svg{width:20px;height:20px}

/* End-of-replay actions sit in the camera area, above the candidate card. */
.result-overlay{position:absolute;inset:8% 0 auto;height:38%;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:0 7.5cqw;z-index:2}.result-overlay .primary,.result-overlay .watch-button{min-height:50px;font-size:clamp(13px,4.2cqw,15px);margin:0}.result-overlay .watch-button{background:#fff;color:#a91f4e;border-color:#fff;box-shadow:0 3px 14px #00000015}.result-overlay button:focus-visible{outline-color:#fff;outline-offset:4px}.result-overlay .watch-button:focus-visible{outline-color:#ff8db5}.result-overlay .watch-button:hover:not(:disabled){background:#fff0f6}.result-overlay:not([hidden])~.play-overlay{top:43%;z-index:3;min-height:36px;padding:7px 13px;font-size:12px}
@media(max-width:350px){.result-overlay{gap:8px;padding-left:6cqw;padding-right:6cqw}.result-overlay .primary,.result-overlay .watch-button{min-height:46px}.result-overlay:not([hidden])~.play-overlay{top:43%;min-height:30px;padding:5px 10px;font-size:11px}}

.image-credit-pending{color:#815412}.image-credit-summary{font-size:12px;line-height:1.6;overflow-wrap:anywhere}

/* Real, keyboard-accessible controls sit above the composition before a take. */
.theme-bar{position:absolute;top:3.7cqw;right:3.7cqw;width:max-content;max-width:calc(100% - 7.4cqw);z-index:4;min-height:36px;padding:2px 4px;border-radius:22px;background:#ffffffed;display:flex;align-items:center;justify-content:space-between;gap:6px;box-shadow:0 1px 8px #7a365a0c}
.theme-switch{display:flex;align-items:center;border:0;margin:0;padding:0;gap:2px;min-width:0}.theme-label{font-size:10px;color:#776574;margin-right:3px}.theme-switch label{position:relative;display:flex;cursor:pointer}.theme-switch input{position:absolute;opacity:0;width:100%;height:44px;left:0;top:50%;transform:translateY(-50%);margin:0;cursor:pointer}.theme-switch label>span{min-height:32px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 7px;border-radius:20px;font-size:11px;font-weight:600;color:#68545e}.theme-switch input:checked+span{background:#ed2365;color:white;box-shadow:0 2px 6px #ad14442b}.theme-switch input:focus-visible+span{outline:3px solid #38234b;outline-offset:1px}.theme-loading{position:absolute;z-index:4;top:calc(3.7cqw + 51px);left:6cqw;right:6cqw;text-align:center;color:#684151;font-size:10px;line-height:1.3;pointer-events:none}
body:not([data-phase=idle]):not([data-phase=error]):not([data-phase=requesting]):not([data-phase=ready]) .theme-loading{display:none}
.welcome-screen{padding-top:23cqw}.welcome-header img{width:44cqw}.welcome-header p{margin:2cqw auto 0;font-size:clamp(13px,4.2cqw,15px);line-height:1.45;white-space:pre-line}.welcome-screen>.mystery-deck{width:40cqw;height:51cqw;margin:5cqw 0 6cqw}.welcome-actions{padding-top:3cqw}.welcome-screen .frame-parody{margin-top:3cqw}.preview-tools{top:calc(3.7cqw + 67px)}.fallback-art .mystery-deck{transform:translateY(8cqw) scale(.78)}
.result-overlay{height:27.5%;inset:8% 0 auto}.status-orb{display:none}
@media(max-width:350px){.theme-bar{gap:3px}.theme-switch label>span{font-size:10px;padding:0 6px}.theme-label{font-size:9px}.welcome-screen>.mystery-deck{margin-top:4cqw;margin-bottom:5cqw}.welcome-screen:has(.permission-skip:not([hidden]))>.mystery-deck{height:45cqw;margin-top:2cqw;margin-bottom:3cqw}}

.result-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.result-secondary-actions .watch-button{padding-left:8px;padding-right:8px;gap:6px}

/* Keep result actions above the square card, which starts at 40.5%. */
.result-overlay{inset:10.5% 0 auto;height:24%}

/* The approved presidential illustration is exclusive to the welcome card. */
.welcome-screen>.presidential-deck{width:48cqw;height:64cqw;aspect-ratio:3/4}
.presidential-deck .deck-back-one{transform:rotate(-7deg) translateX(-5px)}
.presidential-deck .deck-back-two{transform:rotate(6deg) translateX(5px)}
.presidential-deck .mystery-card{background:#ecd2c0;box-shadow:0 10px 23px #8b334824}
.welcome-illustration{display:block;width:100%;height:100%;object-fit:contain}
.presidential-deck .secret-name{bottom:0;padding:14px 4px 9px;background:linear-gradient(transparent,#301710bf);color:#fff;font-size:clamp(11px,3.35cqw,13px);line-height:1.2;text-shadow:0 1px 4px #24162380}
.presidential-deck .heart-seal{right:-12cqw;bottom:-3cqw;width:14cqw;height:14cqw;transform:rotate(8deg)}
.presidential-deck .heart-seal img{width:8.8cqw}
.welcome-screen:has(.permission-skip:not([hidden]))>.presidential-deck{width:42cqw;height:56cqw}

@media(max-width:420px){.site-footer{max-width:392px;padding-left:16px;padding-right:16px}}
@media(max-width:350px){.site-footer{padding-left:12px;padding-right:12px}}

.result-feedback{max-width:360px;margin:0 auto}.result-feedback .message{padding:0 12px 18px;text-align:center;background:transparent}

/* The display viewport ends after the square card once a match is revealed.
   Its inner composition and recording canvas always retain their 540 × 960 ratio.
   Only this HTML reading area grows; it never becomes part of the video stream. */
.composition-window{width:100%}
.has-result-profile .composition-window{height:162cqw;overflow:hidden}
.result-profile{background:#fff2f7}
.profile-reading{margin:0 6%}
.profile-disclosure{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:8px 0;border:0;background:transparent;color:#ae2052;text-align:left;font-size:clamp(12px,3.65cqw,14px);line-height:1.35}
.profile-disclosure>span{flex:1;min-width:0}
.profile-disclosure>svg{width:20px;height:20px;flex:none}
.profile-chevron{transition:transform .2s ease}
.profile-disclosure[aria-expanded=true] .profile-chevron{transform:rotate(180deg)}
.profile-content{padding:13px 0 10px;border-top:1px solid #efd6e0}
.profile-full-name{margin:0 0 16px;font-size:clamp(20px,6cqw,23px);line-height:1.2;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere;color:var(--ink)}
.profile-content h3{margin:0 0 10px;font-size:18px;line-height:1.3;font-weight:700}
.profile-biography{font-size:14px;line-height:1.65;color:#54404b}
.profile-demo-label{display:block;margin-top:10px;color:#846571;font-size:11px;line-height:1.4}
.profile-actions{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:8px;margin-top:19px}
.profile-actions button,.profile-actions a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;min-width:0;border:1px solid #e7bdcd;border-radius:24px;padding:10px 8px;color:#a51c4b;background:#fff8fb;font-size:12px;line-height:1.3;font-weight:700;text-decoration:none}
.profile-actions button:hover,.profile-actions a:hover{background:#ffe8f1}
.profile-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.profile-position-content,.profile-site-notice{margin:12px 0 0;background:#f9e4ee;padding:13px 14px;border-radius:12px;color:#654454;font-size:12px;line-height:1.5}
.profile-position-content p{margin:5px 0 0}
.profile-actions [data-family="extreme-gauche"]{--political:#ac123b;--political-wash:#fbe8ed}
.profile-actions [data-family="gauche"]{--political:#ed3570;--political-wash:#ffe9f0}
.profile-actions [data-family="centre"]{--political:#e99300;--political-wash:#fff1d9}
.profile-actions [data-family="droite"]{--political:#215dc6;--political-wash:#eaf0ff}
.profile-actions [data-family="extreme-droite"]{--political:#2d3e70;--political-wash:#e9ecf5}
.profile-actions [data-family="divers"]{--political:#696970;--political-wash:#eeeef1}
.profile-actions button[data-family]{color:#343434;background:var(--political-wash);border-color:var(--political)}
.profile-actions button[data-family] svg{color:var(--political)}
.profile-actions button[data-family]:hover,.profile-actions button[data-family][aria-expanded=true]{box-shadow:inset 0 0 0 1px var(--political)}
.profile-position-content a{color:inherit;text-decoration:underline}
.love-archived{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.result-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 5% 0;padding-bottom:15px}
.result-brand img{display:block;width:34%;height:auto}
.result-brand span{font-size:clamp(10px,3.05cqw,11px);line-height:1.3;color:#65535f;white-space:nowrap}
@media(max-width:360px){.profile-actions{grid-template-columns:1fr}}
