/* Both app screens fit the available display; dialogs keep their own content scrolling. */
html,body{height:100%;overflow:hidden}body{height:100svh;min-height:0;padding:0;display:flex;align-items:center;justify-content:center}
.app{width:min(100%,440px);height:100svh;min-height:0;padding:clamp(12px,2.5svh,24px) 22px max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}
.app-header{margin:0;flex:0 0 auto;min-height:34px}.header-controls{display:flex;align-items:center;gap:8px}.sound-toggle{display:grid;place-items:center;background:#fff1bf14;border:1px solid #fff4cb70;width:30px;height:30px;border-radius:50%;padding:6px}.sound-toggle svg{width:16px;height:16px}.sound-muted{display:none}.sound-toggle[aria-pressed=false] .sound-muted{display:block}.sound-toggle[aria-pressed=false] .sound-waves{display:none}.brand{font-size:13px;letter-spacing:3.5px}.brand svg{width:25px;height:21px}
.result-screen{min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:clamp(12px,2.7svh,25px);animation:resultEnter .55s ease both}.artwork-heading{flex:0 1 auto;min-height:0}.portrait{width:clamp(80px,17svh,140px);height:clamp(86px,18svh,150px);margin:0 auto clamp(18px,3svh,27px);border-radius:24px}.portrait>img{border-radius:21px}.verified{width:clamp(39px,6.3svh,51px);height:clamp(39px,6.3svh,51px);right:-13px;bottom:-9px}.verified svg{width:23px;height:23px}.collection{font-size:8px;letter-spacing:1.6px;margin:0 0 7px}.match{font-size:clamp(22px,3.8svh,29px);letter-spacing:-.75px;line-height:1.2;margin:0 0 9px}h1{font-size:clamp(23px,3.6svh,29px);line-height:1.07;margin:0 0 4px}.artist{font-size:16px;margin:0}.app-actions{gap:clamp(7px,1.35svh,11px)}.video-card{height:clamp(59px,10svh,83px);border-radius:16px}.ai-card{min-height:0;height:clamp(55px,8.6svh,70px);padding:9px 13px;border-radius:16px}.ai-card strong{font-size:13px}.ai-card small{font-size:10px}.primary,.rescan{min-height:0;height:clamp(39px,6.2svh,48px);font-size:12px}.rescan{height:clamp(36px,5.6svh,43px)}.app footer{flex:0 0 auto;margin:8px 0 0;text-align:center}.app footer p{font-size:7px;line-height:1.4;margin:3px 0}.app footer p:first-child{font-size:7px;letter-spacing:.5px}.app footer p:last-child{font-size:7px;opacity:.8}
.check-screen{display:flex;flex:1;min-height:0;align-items:center;flex-direction:column;justify-content:center;text-align:center;gap:0}.scan-orbit{position:relative;display:grid;place-items:center;width:clamp(140px,27svh,220px);height:clamp(140px,27svh,220px);margin:0 auto clamp(18px,3svh,29px)}.orbit{position:absolute;border:1px solid #fff0ba53;border-radius:50%;inset:0;box-shadow:inset 0 0 25px #fff0bf09,0 0 25px #fff0bf09}.orbit-two{inset:12%;border-color:#fff3c075}.orbit-three{inset:24%;border-color:#fff3c099}.scan-emblem{position:relative;display:grid;place-items:center;width:48%;height:48%;border-radius:50%;background:linear-gradient(135deg,#fff5c94f,#6f471e25);box-shadow:inset 0 1px 1px #fff5d685,0 10px 30px #66451638;border:1px solid #ffeab093}.scan-emblem svg{width:56%;height:56%;stroke:none;filter:drop-shadow(0 4px 5px #55391342)}.scan-sweep{position:absolute;inset:0;border-radius:50%;border:2px solid transparent;border-top-color:#fff4c5;border-right-color:#fff4c522;opacity:0}.check-screen .collection{margin-bottom:13px}.check-screen h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(32px,5.4svh,43px);font-weight:500;letter-spacing:-.8px;line-height:1.1;margin:0 0 9px}.check-description{font-size:11px;line-height:1.65;margin:0 0 clamp(16px,3.4svh,28px);opacity:.85;max-width:280px;min-height:19px}.check-steps{list-style:none;padding:0;margin:0 0 18px;width:min(100%,300px);text-align:left}.check-steps li{display:flex;align-items:center;gap:12px;min-height:43px;border-bottom:1px solid #fff1c52b;font-size:11px;color:#fff6e2a1;transition:color .25s,background .25s,transform .25s}.check-steps li:last-child{border-bottom:0}.step-symbol{display:grid;place-items:center;width:24px;height:24px;font-family:Georgia,serif;font-size:17px;border:1px solid #fff3c24a;border-radius:7px}.check-steps li>svg{margin-left:auto;width:17px;height:17px;opacity:0;transform:scale(.5);transition:opacity .2s,transform .2s}.check-steps .is-current{color:#fff9e7;transform:translateX(3px)}.is-current .step-symbol{background:#fff1c429;box-shadow:0 0 0 4px #fff4c00a}.check-steps .is-complete{color:#fff9e7}.is-complete .step-symbol{background:#fff3d0d9;color:#735420;border-color:#fff9dc}.is-complete>svg{opacity:1!important;transform:scale(1)!important}.check-progress{width:min(100%,300px);height:2px;background:#ffefc026;overflow:hidden;margin-bottom:22px;border-radius:3px}.check-progress span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#fff3c06b,#fff9e8);transform:scaleX(0);transform-origin:left}.check-button{width:min(100%,300px);height:48px;letter-spacing:2px;font-size:13px;flex-shrink:0}.check-button svg{width:17px;height:17px}
[data-phase=checking] .scan-sweep{opacity:1;animation:scanTurn 1.6s linear infinite}[data-phase=checking] .orbit-one{animation:scanPulse 1.5s ease-out infinite}[data-phase=checking] .orbit-two{animation:scanPulse 1.5s .35s ease-out infinite}[data-phase=checking] .scan-emblem{animation:emblemGlow 1.5s ease-in-out infinite}[data-phase=checking] .check-progress span{animation:progressFill 2.2s linear forwards}[data-phase=completing] .check-progress span{transform:scaleX(1)}[data-phase=completing] .scan-emblem{box-shadow:0 0 35px #fff1b179,inset 0 1px #fff9d3}
[data-phase=result] .verified{animation:verifiedEnter .65s .15s both}[data-phase=result] .app-actions>*{animation:resultEnter .4s both}[data-phase=result] .app-actions>:nth-child(2){animation-delay:.08s}[data-phase=result] .app-actions>:nth-child(3){animation-delay:.14s}[data-phase=result] .app-actions>:nth-child(4){animation-delay:.2s}
dialog{max-height:calc(100svh - 20px)}.video-player{width:100%;height:auto;max-height:calc(100svh - 130px);object-fit:contain}.video-caption{text-align:center;font-size:10px;line-height:1.5;margin:12px 20px 18px;opacity:.8}
@keyframes scanTurn{to{transform:rotate(360deg)}}@keyframes scanPulse{0%{opacity:.35;transform:scale(.88)}75%{opacity:1}100%{opacity:.2;transform:scale(1.04)}}@keyframes emblemGlow{50%{box-shadow:0 0 35px #fff1b15e,inset 0 1px #fff9d3}}@keyframes progressFill{to{transform:scaleX(1)}}@keyframes resultEnter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes verifiedEnter{from{opacity:0;transform:scale(.65)}65%{transform:scale(1.08)}to{opacity:1;transform:scale(1)}}
@media(min-width:600px){.app{height:min(850px,calc(100svh - 32px));border-radius:28px;padding:20px 25px 13px}}
@media(max-height:640px){.app{padding:10px 18px 7px}.app-header{min-height:30px}.languages button{padding:4px 6px}.portrait{width:74px;height:80px;margin-bottom:17px;border-width:2px;border-radius:18px}.portrait>img{border-radius:16px}.verified{width:36px;height:36px;border-width:3px;right:-11px;bottom:-8px}.verified svg{width:20px;height:20px}.result-screen{gap:12px}.collection{font-size:7px;margin-bottom:5px}.match{font-size:22px;margin-bottom:6px}h1{font-size:24px}.artist{font-size:14px}.video-card{height:58px}.ai-card{height:53px}.app-actions{gap:7px}.primary{height:39px}.rescan{height:36px}.scan-orbit{width:126px;height:126px;margin-bottom:14px}.check-screen .collection{margin-bottom:8px}.check-screen h2{font-size:32px}.check-description{margin-bottom:14px;font-size:10px}.check-steps{margin-bottom:9px}.check-steps li{min-height:36px;font-size:10px}.check-progress{margin-bottom:14px}.check-button{height:43px}.app footer{margin-top:5px}}
@media(max-height:480px) and (orientation:landscape){.app{width:min(96vw,780px);height:calc(100svh - 12px);padding:8px 18px}.app-header{min-height:29px}.result-screen{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.artwork-heading .portrait{width:70px;height:75px;margin-bottom:14px}.check-screen{display:grid;grid-template-columns:150px 1fr;grid-template-rows:auto auto auto auto auto;column-gap:25px;align-content:center;text-align:left}.scan-orbit{grid-column:1;grid-row:1 / 7;width:140px;height:140px;margin:0}.check-screen .collection,.check-screen h2,.check-description,.check-steps,.check-progress,.check-button{grid-column:2}.check-screen h2{font-size:26px}.check-description{margin-bottom:6px}.check-steps{margin-bottom:5px}.check-steps li{min-height:28px;font-size:10px}.check-progress{margin-bottom:9px}.check-button{height:35px;min-height:35px}.app footer{margin-top:4px}.app footer p:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.check-progress span{transition:transform .1s!important}[data-phase=checking] .check-progress span{transform:scaleX(.5)}}
