@font-face{font-family:Raleway;src:url('assets/raleway.ttf') format('truetype');font-weight:100 900;font-display:swap}@font-face{font-family:Inter;src:url('assets/inter.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--blue:#147af8;--ink:#222;--paper:#f5f5f5;--sky:#b1e9ff;--left:50%;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--blue);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background-image:radial-gradient(#ffffff12 .8px,transparent .8px);background-size:7px 7px}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #0039b4;outline-offset:5px}button{transition:background .2s,transform .2s}button:not(:disabled):active{transform:scale(.97)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.page{max-width:1600px;margin:auto;padding:22px 40px 0}.header{display:flex;align-items:center;justify-content:space-between;color:#fff;background:#ffffff14;border:1px solid #ffffff30;border-radius:60px;padding:13px 14px 13px 26px;min-height:70px}.wordmark{font:400 34px/.8 Raleway;letter-spacing:-2.8px}.wordmark-dot{color:var(--sky)}.header-caption{font-size:14px;letter-spacing:-.6px;margin-left:60px;color:#ffffffd9}.how-button{display:flex;align-items:center;gap:22px;border:1px solid #ffffff45;background:#ffffff0d;color:white;border-radius:40px;padding:10px 12px 10px 20px;font-size:14px;letter-spacing:-.5px}.how-button span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--sky);color:#0039b4}.how-button:hover{background:#ffffff26}.intro{padding:40px 12px 32px;color:white}.intro-top{display:flex;align-items:center;justify-content:space-between;padding:0 5px}.sticker{display:inline-block;transform:rotate(-5deg);font-size:15px;letter-spacing:-.9px;background:var(--ink);padding:10px 18px;border-radius:30px;font-weight:600}.tiny-note{font-size:13px;letter-spacing:-.5px;opacity:.75}h1{font-family:Raleway;font-weight:600;font-size:clamp(100px,13.9vw,205px);letter-spacing:-.083em;line-height:.85;margin:26px 0 30px;white-space:nowrap}.period{color:var(--sky)}.intro-bottom{display:flex;align-items:center;justify-content:space-between;position:relative}.intro-bottom p{font-size:16px;line-height:17px;letter-spacing:-1px;margin:0}.intro-aside{text-align:right;color:#e8f2ff}.faces{position:absolute;left:56%;top:-22px;display:flex;transform:translateX(-50%);gap:10px}.face{font-size:32px;font-weight:600;letter-spacing:-3px;width:90px;height:68px;display:grid;place-items:center;border-radius:20px;background:var(--sky);color:#0039b4;transform:rotate(-10deg);box-shadow:0 6px 0 #0039b416}.face-two{transform:rotate(12deg) translateY(-10px);background:#f5f5f5}.workspace{position:relative;border-radius:26px;background:var(--paper);padding:21px 20px 0}.arena-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:14px;letter-spacing:-.6px;gap:15px}.arena-heading>span{display:flex;gap:8px;align-items:center}.live-mark{width:7px;height:7px;background:var(--blue);border-radius:50%}.text-button{background:transparent;padding:4px 0;color:inherit;font-size:14px;letter-spacing:-.5px;text-decoration:underline;text-underline-offset:4px}.text-button:hover{color:var(--blue)}.arena{display:grid;grid-template-columns:minmax(0,var(--left)) minmax(0,1fr);gap:8px;position:relative;transition:grid-template-columns 1s cubic-bezier(.16,1,.3,1)}.contender{background:#e9e9e7;border-radius:15px;min-width:0;position:relative;border:1px solid #22222210;overflow:hidden;transition:background .3s}.contender:nth-of-type(2){background:#dcecf5}.slot-top{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;gap:8px}.name-label{min-width:0;flex:1}.design-name{color:var(--ink);font-size:16px;letter-spacing:-.8px;font-weight:400;background:transparent;border:0;border-bottom:1px solid transparent;outline-offset:2px!important;width:100%;text-overflow:ellipsis;max-width:300px;border-radius:0;padding:3px 0}.design-name:hover,.design-name:focus{border-bottom-color:#22222245}.slot-face{font-size:18px;letter-spacing:-1px;white-space:nowrap;color:#545454}.dropzone{width:100%;height:228px;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;color:inherit;padding:15px}.upload-plus{font:300 46px/1 Inter;width:64px;height:64px;background:#f5f5f5b0;border:1px solid #fff8;border-radius:50%;margin-bottom:21px;transition:transform .25s,color .25s}.dropzone:hover .upload-plus{transform:rotate(90deg);color:var(--blue)}.upload-title{font-family:Raleway;font-size:clamp(23px,2.3vw,34px);line-height:1;font-weight:600;letter-spacing:-1.5px;margin-bottom:13px}.upload-note{font-size:14px;letter-spacing:-.6px;color:#555}.upload-note u{text-underline-offset:3px}.file-types{font-size:12px;letter-spacing:-.2px;color:#666;margin-top:9px}.slot-bottom{height:49px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 20px;font-size:12px;color:#666;letter-spacing:-.3px}.file-actions{display:flex;align-items:center;gap:12px}.file-actions button{background:transparent;color:#333;padding:5px 0;font-size:12px}.file-actions button:last-child{font-size:23px;line-height:16px}.image-window{height:228px;overflow:auto;margin:0 16px;background:#fff;border-radius:5px;scrollbar-width:thin}.image-window img{width:100%;height:auto;display:block}.file-error{color:#9c2525;background:#fff3ef;padding:8px 14px;font-size:14px;margin:0}.file-error:empty{display:none}.contender.dragging{outline:3px solid var(--blue);outline-offset:-3px;background:#b1e9ff}.versus{position:absolute;z-index:3;left:var(--left);top:50%;transform:translate(-50%,-50%);transition:left 1s cubic-bezier(.16,1,.3,1)}.versus span{display:grid;place-items:center;width:54px;height:54px;background:#222;color:white;border:5px solid var(--paper);border-radius:50%;font-size:18px;font-weight:600;letter-spacing:-1px}.launch-bar{display:flex;justify-content:space-between;align-items:center;padding:22px 4px 25px;gap:18px}.demo-tag{font-size:11px;letter-spacing:.06em;font-weight:600;color:#666}.launch-copy p{font-size:16px;letter-spacing:-.8px;line-height:1.2;margin:7px 0 0}.primary-button{border-radius:60px;background:var(--ink);color:#fff;padding:20px 27px;display:inline-flex;align-items:center;justify-content:space-between;gap:32px;font-size:16px;font-weight:600;letter-spacing:-1px;min-height:60px}.primary-button span{color:var(--sky);letter-spacing:-1.5px}.primary-button:hover{background:#0039b4}.primary-button:disabled{background:#ddd;color:#777}.primary-button:disabled span{color:#888}.under-arena{display:flex;justify-content:space-between;padding:15px 10px 30px;color:#e3f0ff;font-size:12px;letter-spacing:-.3px}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff38;padding:20px 4px 24px;color:white;font-size:13px;letter-spacing:-.5px}footer a{font-weight:400;font-size:16px}footer a span{margin-left:9px;color:var(--sky)}footer a:hover{text-decoration:underline}.battle-announcement{position:absolute;z-index:5;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;font:600 clamp(35px,6vw,78px)/.95 Raleway;letter-spacing:-.06em;background:#147af8e8;color:white;border-radius:15px;pointer-events:none;animation:announce .35s both}.battling .image-window{pointer-events:none}.battling .contender{animation:stance 1s ease-in-out infinite alternate}.battling .contender:nth-of-type(2){animation-delay:.25s}.battling .file-actions,.battling .design-name{pointer-events:none}.score{position:absolute;bottom:55px;left:25px;font-size:clamp(50px,7vw,110px);font-weight:600;letter-spacing:-.085em;line-height:1;background:#f5f5f5f5;padding:10px 20px 14px;border-radius:18px;max-width:calc(100% - 50px);color:#222}.score>span{font-size:.5em;margin-left:2px}.winner .score{background:var(--blue);color:white}.finished .image-window{opacity:.65}.finished .winner .image-window{opacity:1}.finished .slot-status{display:none}.finished .slot-bottom{justify-content:flex-end}.result{padding:30px 6px 22px}.result-main{display:flex;align-items:center;justify-content:space-between;gap:20px}.result h2{font:600 clamp(30px,4.4vw,60px)/1 Raleway;letter-spacing:-.067em;margin:12px 0;overflow-wrap:anywhere}.result p{font-size:16px;line-height:1.2;letter-spacing:-.8px}.winner-face{font-size:40px;letter-spacing:-3px;padding:20px;background:var(--sky);border-radius:23px;transform:rotate(7deg)}.result-actions{display:flex;align-items:center;gap:22px;margin-top:24px;flex-wrap:wrap}.secondary-button{border:1px solid #ccc;background:transparent;border-radius:40px;padding:19px 23px;letter-spacing:-.8px;font-size:16px}.secondary-button:hover{background:#e6e6e6}.result .result-disclaimer{font-size:12px;line-height:1.4;letter-spacing:-.2px;color:#666;max-width:670px;margin:20px 0 0}dialog{border:0;border-radius:28px;padding:40px;width:min(520px,calc(100% - 32px));background:var(--paper);color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#001b4c99;backdrop-filter:blur(8px)}.close-dialog{position:absolute;right:18px;top:14px;font-size:30px;background:transparent;color:var(--ink);padding:4px 10px}.dialog-face{font-size:28px;letter-spacing:-2px;color:var(--blue)}dialog h2{font:600 48px/1 Raleway;letter-spacing:-3px;margin:25px 0}dialog ol{padding-left:21px;letter-spacing:-.7px;line-height:1.35}dialog li{padding:0 0 14px 8px}.dialog-note{font-size:14px;color:#666;line-height:1.4;letter-spacing:-.4px;margin-bottom:25px}.image-dialog{width:min(1100px,calc(100% - 32px));padding:20px}.image-dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.image-dialog h2{font-size:24px;letter-spacing:-1px;margin:0;padding-right:35px}.image-dialog img{display:block;max-width:100%;height:auto;margin:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#toast{position:fixed;z-index:20;bottom:24px;left:50%;transform:translateX(-50%);padding:15px 24px;border-radius:40px;background:var(--ink);color:white;box-shadow:0 5px 30px #0003;font-size:14px;text-align:center;max-width:90%}@keyframes stance{from{transform:scale(.99) rotate(-.3deg)}to{transform:scale(1) rotate(.3deg)}}@keyframes announce{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
@media(min-width:1500px){.intro{padding-top:55px}.dropzone,.image-window{height:280px}}
@media(max-width:900px){.page{padding:16px 22px 0}.header-caption{display:none}.intro{padding:32px 3px 28px}h1{font-size:14vw}.faces{left:54%;top:-4px}.face{width:62px;height:51px;font-size:24px;border-radius:15px}.intro-aside{font-size:14px!important}.workspace{padding:17px 13px 0}.slot-top{padding:13px}.slot-bottom{padding:10px 13px}.upload-title{font-size:25px}.file-actions{gap:8px}.slot-status{font-size:11px}.score{left:15px;max-width:calc(100% - 30px);padding:10px 14px}}
@media(max-width:600px){.page{padding:12px 12px 0}.header{padding:10px 10px 10px 19px;min-height:60px}.wordmark{font-size:29px}.how-button{font-size:12px;padding:7px 8px 7px 13px;gap:9px}.how-button span{width:23px;height:23px}.intro{padding:27px 6px 27px}.tiny-note{display:none}.sticker{font-size:12px;padding:8px 13px}h1{font-size:14.2vw;line-height:.95;letter-spacing:-.083em;margin:25px 0 22px}.intro-bottom p{font-size:15px;line-height:16px;letter-spacing:-.8px}.intro-aside{display:none}.faces{position:static;transform:none;gap:7px}.face{width:52px;height:45px;font-size:22px;border-radius:13px}.workspace{border-radius:20px;padding:15px 10px 0}.arena-heading{font-size:12px;margin:0 3px 15px;align-items:start}.arena-heading .text-button{font-size:12px;max-width:98px;text-align:right;padding:0;line-height:1.25}.arena-heading>span{max-width:180px;gap:6px}.live-mark{flex-shrink:0}.arena{grid-template-columns:1fr;grid-template-rows:minmax(0,var(--left)) minmax(0,1fr);height:530px;gap:7px;transition:grid-template-rows 1s cubic-bezier(.16,1,.3,1)}.contender{display:flex;flex-direction:column;border-radius:13px}.slot-top{padding:10px 13px}.design-name{font-size:14px}.slot-face{font-size:16px}.dropzone{height:auto;flex:1;padding:8px 10px}.upload-plus{width:40px;height:40px;font-size:30px;margin-bottom:12px}.upload-title{font-size:25px;margin-bottom:9px}.upload-note{font-size:12px}.file-types{font-size:11px;margin-top:7px}.slot-bottom{height:35px;flex-shrink:0;padding:7px 13px}.image-window{height:auto;flex:1;min-height:0;margin:0 10px}.versus{left:50%;top:var(--left);transition:top 1s cubic-bezier(.16,1,.3,1)}.versus span{width:43px;height:43px;font-size:15px;border-width:4px}.launch-bar{padding:18px 5px 20px;flex-direction:column;align-items:stretch;gap:15px}.launch-copy{display:flex;justify-content:space-between;align-items:center;gap:12px}.demo-tag{font-size:10px;white-space:nowrap}.launch-copy p{font-size:13px;margin:0;text-align:right;letter-spacing:-.5px}.primary-button{padding:17px 23px;min-height:56px;font-size:16px}.under-arena{padding:13px 5px 25px;font-size:11px;line-height:1.4;gap:25px}.under-arena span{max-width:180px}.under-arena span:last-child{text-align:right}footer{padding:18px 5px 24px;font-size:12px}footer>span:nth-child(2){display:none}footer a{font-size:14px}.score{font-size:54px;bottom:39px;left:17px;border-radius:12px;padding:7px 13px}.result{padding:22px 6px}.result h2{font-size:36px}.result-main{gap:8px}.result p{font-size:14px}.winner-face{font-size:27px;letter-spacing:-2px;padding:13px;border-radius:14px}.result-actions{gap:12px;margin-top:20px}.result-actions .primary-button,.result-actions .secondary-button{width:100%}.result-actions .text-button{margin:5px auto}.result-disclaimer{font-size:11px!important}dialog{padding:30px 25px}dialog h2{font-size:40px;letter-spacing:-2.6px}.image-dialog{padding:16px}.image-dialog h2{font-size:21px}.battle-announcement{font-size:52px}.file-error{font-size:12px;padding:5px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){.contender:has(.file-actions:not([hidden])) .slot-status{display:none}.contender:has(.file-actions:not([hidden])) .slot-bottom{justify-content:flex-end}}
/* Typography sampled from romannkalininn.ru: Inter 16/17 Regular,
   actions 16/13 SemiBold, secondary copy at 60%, Raleway headings 600. */
:root{--copy-size:16px;--copy-line:17px;--copy-track:-1px;--copy-weight:400;--action-weight:600;--muted-opacity:.6}
.header{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3);backdrop-filter:blur(10px)}
.how-button{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}
.header-caption,.tiny-note,.intro-bottom p,.arena-heading,.design-name,.upload-title,.upload-note,.file-types,.slot-bottom,.launch-copy p,.demo-tag,.under-arena,footer,footer a,.result p,.result .result-disclaimer,.dialog-note,dialog ol,#toast,#website-form label,#website-url,#website-progress{font-family:Inter,Arial,sans-serif;font-size:var(--copy-size);font-weight:var(--copy-weight);line-height:var(--copy-line);letter-spacing:var(--copy-track)}
.how-button,.text-button,.primary-button,.secondary-button,.file-actions button,.website-button{font-family:Inter,Arial,sans-serif;font-size:16px;font-weight:600;line-height:13px;letter-spacing:-1px}
.upload-title{margin-bottom:12px}.upload-note{color:var(--ink);opacity:.6}.file-types,.slot-status,.demo-tag,.result .result-disclaimer,.dialog-note{color:var(--ink);opacity:.6}.header-caption,.tiny-note,.intro-aside,.under-arena,footer>span{color:#fff;opacity:.6}.intro-bottom .intro-aside{font-size:16px!important}.demo-tag{letter-spacing:-1px}
.launch-copy p{line-height:17px}.design-name{font-weight:400}.file-types{margin-top:10px}.file-actions{gap:14px}.file-actions button:last-child{font-size:24px;line-height:20px}.file-actions button{padding:8px 0}.slot-bottom{height:50px}.result .result-disclaimer{max-width:850px}.result-actions{row-gap:18px}
h1{font-size:205px;line-height:154px;letter-spacing:-17px;font-weight:600}
.result h2,dialog h2{font-family:Raleway,Arial,sans-serif;font-size:60px;line-height:60px;letter-spacing:-4px;font-weight:600}
.faces{gap:12px;top:-23px}.face{display:block;width:80px;height:80px;object-fit:contain;background:none;border-radius:0;box-shadow:none;transform:none}.face-two{background:none;transform:none}.winner-face{display:block;width:90px;height:90px;object-fit:contain;background:none;border-radius:0;padding:0;transform:none;flex-shrink:0}.dialog-face{display:block;width:65px;height:65px;object-fit:contain}
.upload-plus{position:relative;display:block;flex-shrink:0;font-size:0;line-height:0}.upload-plus::before,.upload-plus::after{content:'';position:absolute;top:50%;left:50%;width:22px;height:2px;background:currentColor;transform:translate(-50%,-50%)}.upload-plus::after{transform:translate(-50%,-50%) rotate(90deg)}
.website-button{display:block;margin:0 auto 8px;background:none;color:var(--ink);padding:10px 15px;text-decoration:underline;text-underline-offset:4px}.website-button:hover{color:var(--blue)}
#website-form{display:grid;gap:16px}#website-url{width:100%;padding:16px;border:1px solid #b6b6b6;border-radius:12px;background:#fff;color:var(--ink)}#website-form .dialog-note{margin:0;line-height:20px}#website-form a{text-decoration:underline}#website-progress{line-height:20px;color:#0039b4}#website-form .file-error{line-height:20px}#website-form .primary-button{justify-content:center}#website-form .file-error:empty{display:none}
@media(max-width:1199px){h1{font-size:152px;letter-spacing:-16px;line-height:114px}}
@media(max-width:959px){h1{font-size:100px;letter-spacing:-10.5px;line-height:75px}.face{width:64px;height:64px}.faces{left:53%;top:-14px}}
@media(max-width:639px){h1{font-size:75px;letter-spacing:-8px;line-height:57px}.result h2,dialog h2{font-size:40px;line-height:40px;letter-spacing:-2.67px}}
@media(max-width:600px){.header{padding:10px 10px 10px 19px}.how-button{font-size:16px;gap:9px}.how-button span{display:none}.intro-bottom{gap:14px}.intro-bottom p{font-size:16px;line-height:17px;letter-spacing:-1px}.faces{gap:8px}.face{width:48px;height:48px}.arena-heading{gap:12px;flex-wrap:wrap}.arena-heading>span{max-width:none}.arena-heading .text-button{font-size:16px;max-width:none;line-height:17px}.arena{height:650px}.upload-title,.upload-note,.file-types,.design-name,.slot-status{font-size:16px}.upload-plus{width:44px;height:44px;margin-bottom:17px}.upload-plus::before,.upload-plus::after{width:18px}.dropzone{padding:12px 8px}.slot-bottom{height:45px}.slot-status{font-size:16px}.website-button{font-size:16px;padding:12px 8px;margin-bottom:2px}.file-actions{gap:14px}.launch-copy{align-items:flex-start;flex-direction:column;gap:8px}.launch-copy p{font-size:16px;line-height:17px;text-align:left}.demo-tag{font-size:16px}.under-arena{font-size:16px;gap:20px}.under-arena span{flex:1;max-width:none}footer,footer a{font-size:16px}.winner-face{width:65px;height:65px}.result .result-disclaimer{font-size:16px!important;line-height:20px}.result p{font-size:16px}.result-actions .secondary-button{font-size:16px}.image-dialog h2{font-size:24px;line-height:26px;letter-spacing:-1.5px}}
@media(max-width:479px){h1{font-size:55px;letter-spacing:-5.8px;line-height:41px}}
/* One weight hierarchy and a shared spacing rhythm. */
:root{--space-tight:8px;--space-group:16px;--space-block:32px;--space-section:64px}
body,input,textarea,select,.wordmark,.sticker,.versus span,.score,.score>span{font-weight:400}
button,button>*{font-weight:600}
.dropzone .upload-title,.dropzone .upload-note,.dropzone .file-types,.dropzone u{font-weight:400}
h1,h2,h3,h4,h5,h6,.result h2,dialog h2,.battle-announcement{font-weight:600}
.header{margin-bottom:var(--space-section)}
.intro{position:relative;padding:0 12px 136px}
.intro-top{margin-bottom:112px}
/* The tight line box needs extra space for the heading’s descenders. */
h1{margin:0 0 calc(.2em + 8px)}
.intro-bottom{gap:var(--space-block)}
.intro-bottom p{margin:0;text-wrap:pretty}
.workspace{padding:var(--space-block) var(--space-block) 0}
.arena-heading{margin:0 0 var(--space-block);gap:var(--space-group)}
.arena{gap:var(--space-group)}
.slot-top{padding:24px 24px 0;margin-bottom:var(--space-group)}
.dropzone{height:232px;padding:24px 16px 16px}
.upload-plus{margin-bottom:24px}
.upload-title{margin-bottom:var(--space-tight)}
.file-types{margin-top:var(--space-tight)}
.website-button{margin:0 auto var(--space-group);padding:var(--space-tight) 16px}
.slot-bottom{padding:0 24px 24px;height:48px}
.image-window{margin:0 24px 16px}
.launch-bar{padding:var(--space-block) 0;gap:var(--space-block)}
.launch-copy p{margin:var(--space-tight) 0 0}
.result{padding:var(--space-block) 0}
.result h2{margin:var(--space-tight) 0 16px}
.result p{margin:0}
.result-actions{gap:var(--space-group);margin-top:var(--space-block)}
.result .result-disclaimer{margin-top:var(--space-block)}
.under-arena{padding:24px 0 0;gap:var(--space-block)}
footer{margin-top:var(--space-section);padding:24px 0 32px}
#how-dialog,#website-dialog{padding:48px;width:min(600px,calc(100% - 32px))}
#how-dialog h2,#website-dialog h2{margin:0 32px 32px 0}
#how-dialog ol{margin:0;padding-left:24px;display:grid;gap:16px}
#how-dialog li{padding:0 0 0 8px;line-height:20px;text-wrap:pretty}
#how-dialog .dialog-note{margin:32px 0;line-height:20px;text-wrap:pretty}
#how-dialog .close-how{width:100%;justify-content:center}
#website-form{gap:8px}
#website-form .dialog-note{margin-top:8px;text-wrap:pretty}
#website-form .primary-button{margin-top:24px}
.faces{position:absolute;inset:0;transform:none;display:block;pointer-events:none;z-index:1}
.face{position:absolute;top:0;left:0;width:64px;height:64px;pointer-events:none;user-select:none;will-change:transform,opacity;transform:translate(var(--rest-x,0px),var(--rest-y,0px));opacity:0}
.faces.ready .face{opacity:1}
@media(max-width:959px){.header{margin-bottom:48px}.intro{padding-left:0;padding-right:0}.face{width:56px;height:56px}}
@media(max-width:600px){:root{--space-section:48px}.header{margin-bottom:32px}.intro{padding:0 6px 112px}.intro-top{margin-bottom:88px}.intro-bottom{gap:16px}.workspace{padding:24px 16px 0}.arena-heading{margin-bottom:24px;gap:16px}.arena{gap:16px;height:720px}.slot-top{padding:20px 16px 0;margin-bottom:16px}.dropzone{height:auto;min-height:0;padding:16px 8px}.upload-plus{margin-bottom:16px}.website-button{margin:0 auto 16px;padding:8px}.slot-bottom{height:40px;padding:0 16px 16px}.image-window{margin:0 16px 16px}.launch-bar{padding:24px 0;gap:24px}.result{padding:24px 0}.result-actions{margin-top:24px}.under-arena{padding-top:24px;gap:24px}footer{margin-top:48px;padding:24px 0}.face{width:48px;height:48px}#how-dialog,#website-dialog{padding:32px 24px}#how-dialog h2,#website-dialog h2{margin-bottom:24px}#how-dialog .dialog-note{margin:24px 0}.file-actions{gap:12px}}
/* Compact hero: match the footer's 64px / 48px separation. */
.wordmark{font-weight:600}
.intro{padding-bottom:64px;isolation:isolate}
.intro-top{position:relative;margin-bottom:64px}
.intro-bottom{position:relative}
.intro .face{position:absolute;display:block;width:48px;height:48px;opacity:1;transform:none;pointer-events:none;user-select:none;z-index:0}
.intro-top .face-two{top:calc(100% + 8px);left:70%;right:auto}
.intro-bottom .face-one{top:calc(100% + 8px);left:auto;right:20%}
@media(max-width:600px){.intro{padding-bottom:48px}.intro-top{margin-bottom:48px}.intro .face{width:36px;height:36px}.intro-top .face-two{top:calc(100% + 6px);left:70%}.intro-bottom .face-one{top:calc(100% + 6px);right:16%}}

#how-dialog h2{line-height:.9}

.wordmark{white-space:nowrap;font-size:30px;letter-spacing:-2px;font-weight:600}
@media(max-width:600px){.header{gap:12px;flex-wrap:wrap}.wordmark{font-size:24px;letter-spacing:-1.5px}.how-button{margin-left:auto;flex-shrink:0;gap:10px;min-height:40px}.how-button span{display:grid;flex-shrink:0;width:26px;height:26px}.header-caption{display:none}}
@media(max-width:420px){.header{border-radius:24px;padding:16px;row-gap:12px}.how-button{width:100%;justify-content:space-between;margin:0}.wordmark{font-size:26px}}

/* Mobile mascots stay in the empty strips, on opposite sides. */
@media(max-width:600px){.intro .face{width:32px;height:32px}.intro-top .face-two{left:auto;right:22%;top:calc(100% + 8px)}.intro-bottom .face-one{left:auto;right:14%;top:calc(100% + 4px)}}

/* The score belongs to the preview frame and stays fixed while the image scrolls. */
.preview {
  position: relative;
  container-type: inline-size;
  margin: 0 24px 16px;
}
.preview .image-window { margin: 0; }
.preview .score {
  inset: auto auto 8px 8px;
  max-width: calc(100% - 16px);
  padding: .1em .2em .14em;
  font-size: clamp(24px, min(7vw, 38cqi), 110px);
  white-space: nowrap;
  pointer-events: none;
}

#save .save-arrow {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #fff;
  transition: color .2s;
}
.save-arrow::before, .save-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
}
.save-arrow::before {
  left: 0;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
.save-arrow::after {
  right: 2px;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
#save:hover .save-arrow, #save:focus-visible .save-arrow { color: var(--sky); }

@media (min-width: 601px) and (max-width: 1199px) {
  .intro-bottom .face-one { right: 29%; }
}
@media (max-width: 600px) {
  .preview { flex: 1; min-height: 0; container-type: size; margin: 0 16px 16px; }
  .preview .image-window { height: 100%; }
  .preview .score { font-size: clamp(18px, 65cqh, 54px); }
}

#battle:not(:disabled) span { color: #fff; }
#battle:not(:disabled):hover span { color: var(--sky); }

@media (prefers-reduced-motion: no-preference) {
  .versus span { animation: versus-spin 6s ease-in-out infinite; }
}
@keyframes versus-spin {
  0%, 70% { transform: rotate(0deg); }
  88%, 100% { transform: rotate(360deg); }
}

/* Motion studies: File drop, Spring dropdown, Stat card, Loading to success. */
#save[aria-busy="true"] .save-arrow {
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: inherit;
}
#save[aria-busy="true"] .save-arrow::before,
#save[aria-busy="true"] .save-arrow::after { content: none; }

@media (prefers-reduced-motion: no-preference) {
  .dropzone .upload-plus { transition: transform .24s ease-out, color .2s; }
  .dragging .dropzone .upload-plus {
    animation: drop-ready .38s ease-out both;
    color: var(--blue);
  }
  .preview:not([hidden]) .image-window { animation: preview-in .3s ease-out; }
  dialog[open] { animation: dialog-in .35s cubic-bezier(.22, 1, .36, 1); }
  dialog[open]::backdrop { animation: backdrop-in .24s ease-out; }
  .finished .score:not([hidden]) { animation: score-in .42s ease-out both; }
  .finished .winner .score:not([hidden]) { animation-delay: 90ms; }
  .result:not([hidden]) .result-main { animation: result-in .4s ease-out; }
  #save[aria-busy="true"] .save-arrow { animation: export-spin .75s linear infinite; }
  #toast:not([hidden]) { animation: toast-in .32s cubic-bezier(.22, 1, .36, 1); }
}

@keyframes drop-ready {
  0% { transform: scale(1); }
  58% { transform: scale(1.18) rotate(45deg); }
  100% { transform: scale(1.1) rotate(45deg); }
}
@keyframes preview-in {
  from { opacity: .25; }
}
@keyframes dialog-in {
  0% { opacity: 0; transform: translateY(10px) scale(.96); }
  70% { opacity: 1; transform: translateY(-1px) scale(1.008); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
}
@keyframes score-in {
  0% { opacity: 0; transform: translateY(6px) scale(.9); }
  66% { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes result-in {
  from { opacity: .4; transform: translateY(8px); }
}
@keyframes export-spin { to { transform: rotate(360deg); } }
@keyframes toast-in {
  from { opacity: 0; translate: 0 8px; }
}
