@import url('fonts.css');
:root{--cream:#fff9ef;--ink:#342044;--purple:#6940d8;--purple-dark:#5430b8;--coral:#d65c45;--green:#197847;--line:#e8dfd3;--muted:#776b7d;--lavender:#f0e9ff;--shadow:0 5px 0 #34204407}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Escape Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.5}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.65}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--purple);outline-offset:4px}input{width:100%;border:1.5px solid var(--line);border-radius:11px;padding:13px 15px;background:#fffcf7;color:var(--ink);min-height:48px}input:focus{outline:2px solid #a583ed;outline-offset:1px}input::placeholder{color:#a197a4}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.04em}h1{font-size:clamp(34px,4.5vw,60px);font-weight:850}h2{font-size:23px;font-weight:800}h3{font-size:19px}p{line-height:1.6}small,.small{font-size:13px}.muted{color:var(--muted)}.coral{color:var(--coral)}.icon{width:21px;height:21px;flex:none;vertical-align:middle}.site-header{max-width:1280px;margin:auto;min-height:104px;padding:20px 48px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:850;letter-spacing:-1px;line-height:1}.brand-escape{display:block;color:var(--purple)}.brand-icon{display:flex;width:42px;height:44px;align-items:center;justify-content:center;background:var(--purple);border-radius:13px;color:white;font-size:36px;font-weight:600;transform:rotate(-7deg)}.header-note{color:var(--muted);font-size:13px;margin-left:auto;margin-right:26px}.how-button{display:flex;gap:10px;align-items:center;background:none;border:none;font-size:14px;font-weight:650;color:var(--ink)}.how-button span{border:1.5px solid #b9aabe;border-radius:100%;width:21px;height:21px;line-height:18px;font-size:13px}main{max-width:1120px;margin:auto;padding:22px 32px 40px;min-height:calc(100dvh - 190px)}.intro{text-align:center;margin:4px auto 38px}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:2px;color:var(--purple);margin-bottom:18px}.mini-spark{font-size:20px;line-height:10px}.intro h1{line-height:1.1;letter-spacing:-2.8px}.laugh{font-size:.75em;display:inline-block;transform:rotate(10deg)}.intro>p{color:var(--muted);margin:18px auto 0;max-width:510px;font-size:16px}.create-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}.card{background:#fffdf9;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.create-card{padding:29px 30px 22px}.card-title{display:flex;align-items:center;gap:12px;margin-bottom:26px}.card-title h2{font-size:21px;letter-spacing:-.7px}.card-title p{font-size:13px;color:var(--muted);margin-top:5px}.step-badge{background:var(--lavender);color:var(--purple);border-radius:12px;display:grid;place-items:center;width:39px;height:42px;font-size:13px;font-weight:800;flex:none}.field-label{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;font-weight:700;margin:19px 0 9px}.field-label span{font-weight:400;font-size:12px;color:#8b7d91}.upload-row{display:flex;align-items:center;gap:17px;margin:12px 0}.avatar{width:78px;height:78px;display:grid;place-items:center;background:#f4dc78;border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #e2d3b2;overflow:hidden;flex:none}.avatar img{height:100%;width:100%;object-fit:cover}.avatar>span{font-size:43px;line-height:1}.upload-button{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px dashed #c0aad9;background:#faf7ff;padding:9px 15px;border-radius:9px;font-size:13px;font-weight:700;cursor:pointer;margin-bottom:5px}.upload-button .icon{width:17px}.emoji-options{display:flex;gap:7px;justify-content:space-between;margin-top:15px}.emoji-button{width:40px;height:40px;background:#f8f3ec;border:1.5px solid transparent;border-radius:11px;font-size:23px;padding:0}.emoji-button.selected{border-color:var(--purple);background:var(--lavender)}.permission-note{display:flex;gap:7px;font-size:11px;color:var(--muted);line-height:1.55;margin:13px 0 19px}.permission-note .icon{width:13px;height:16px;margin-top:2px}.difficulty{border:0;padding:0;margin:0}.difficulty legend{margin-bottom:10px;padding:0}.difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.difficulty label{cursor:pointer;position:relative}.difficulty input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.difficulty label>span{display:flex;flex-direction:column;border:1.5px solid var(--line);border-radius:10px;padding:11px 6px;text-align:center;background:#fffcf6;gap:4px}.difficulty b{font-size:13px}.difficulty small{font-size:11px;color:var(--muted)}.difficulty input:checked+span{border-color:var(--purple);background:#f1eaff;box-shadow:0 0 0 .5px var(--purple)}.difficulty input:focus-visible+span{outline:3px solid var(--purple);outline-offset:3px}.button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:51px;padding:13px 20px;border:0;border-radius:11px;font-size:15px;font-weight:750;line-height:1.4;text-align:center;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.primary{background:var(--purple);color:#fff;box-shadow:0 3px 0 var(--purple-dark)}.primary:hover{background:var(--purple-dark)}.secondary{background:var(--lavender);color:var(--purple);border:1px solid #dacbef}.whatsapp{background:var(--green);color:white;box-shadow:0 3px 0 #116138}.whatsapp:hover{background:#11683b}.create-submit{width:100%;margin-top:19px}.form-foot{text-align:center;font-size:11px;color:var(--muted);margin-top:14px}.error-message{font-size:14px;color:#b33534;margin:8px 0}.error-message:empty{display:none}.preview-panel{position:relative;background:#efe7fb;border:1px solid #e4d6f4;border-radius:24px;padding:28px 26px 22px;display:flex;align-items:center;flex-direction:column;overflow:hidden}.preview-label{align-self:flex-start;font-size:10px;font-weight:800;letter-spacing:1.6px;display:flex;gap:7px;align-items:center;position:relative;width:100%;margin:0 0 21px;color:#7d5a98}.live-dot{width:6px;height:6px;border-radius:50%;background:#b099c8}.tilted-label{position:absolute;right:-3px;top:22px;transform:rotate(10deg);font-size:14px;letter-spacing:-.2px;font-weight:600;background:#fff8df;border:1px solid #e8d8a5;padding:7px 11px;border-radius:6px;z-index:2;color:#7b6446}.board{width:100%;aspect-ratio:1;position:relative;background-color:#fcfaff;background-image:radial-gradient(#d9cce6 1.3px,transparent 1.3px);background-size:calc(100% / var(--size)) calc(100% / var(--size));border:1px solid #e3d6ec;border-radius:19px;isolation:isolate;box-shadow:0 5px 0 #dac9e63b;overflow:hidden;--size:8}.preview-panel .board{width:min(100%,356px);margin-top:5px;transform:rotate(-3deg);border:5px solid #fff;box-shadow:0 12px 25px #6d46991a}.piece{position:absolute;border:0;background:none;padding:2px;border-radius:8px;opacity:1!important;color:#6d3eda;transition:transform .23s ease-in,opacity .2s;z-index:2}.piece svg{width:100%;height:100%;overflow:visible;display:block}.piece path{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.piece.color-1{color:#d6674c}.piece.color-2{color:#d49124}.piece.color-3{color:#8665b1}.interactive .piece{cursor:pointer}.interactive .piece:hover:not(:disabled){background:#eadffb}.piece[hidden]{display:none}.board .avatar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(200% / var(--size) - 4px);height:calc(200% / var(--size) - 4px);z-index:3;pointer-events:none;border:4px solid white;box-shadow:0 3px 9px #4d30702b}.board .avatar>span{font-size:clamp(28px,4vw,49px)}.help-bubble{position:absolute;top:calc(50% - 100% / var(--size) - 15px);left:52%;background:#fff9ed;border:1px solid #d9c7ae;border-radius:7px 7px 7px 0;padding:1px 6px;transform:rotate(8deg);font-size:11px;font-weight:800;z-index:4;pointer-events:none}.preview-copy{text-align:center;margin-top:31px}.preview-copy h3{font-size:21px;letter-spacing:-.7px}.preview-copy p{color:#856e95;font-size:14px;margin-top:10px;line-height:1.6}.loop-steps{display:flex;align-items:center;justify-content:space-between;width:100%;gap:5px;margin-top:auto;padding-top:25px;font-size:10px;color:#76548c}.loop-steps div{display:flex;flex-direction:column;align-items:center;gap:8px;white-space:nowrap}.loop-steps span{width:24px;height:24px;border:1px solid #cebbdf;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.loop-steps i{margin-top:-14px;font-style:normal;letter-spacing:3px}.bottom-note{display:flex;align-items:center;justify-content:center;gap:9px;color:#8c7a95;font-size:13px;margin:30px 0 4px}.bottom-note .icon{width:16px}footer{max-width:1184px;margin:0 auto;padding:24px 16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#948697;font-size:11px;gap:15px}#crop-controls{padding:10px;background:#f5eefb;border-radius:9px}#crop-controls label{display:flex;align-items:center;gap:12px;font-size:12px}#crop-controls input{padding:0;min-height:28px;accent-color:var(--purple);width:65%;margin-left:auto}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:none;background:none;color:var(--purple);font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:7px 0}.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}[hidden]{display:none!important}.loading{display:flex;align-items:center;justify-content:center;gap:15px;min-height:50vh;color:var(--muted)}.loader{display:inline-block;width:25px;height:25px;border:3px solid #dfd2ef;border-top-color:var(--purple);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-page{text-align:center;padding:80px 15px}.error-page h1{font-size:36px;margin:20px 0}.error-page p{max-width:520px;margin:auto;color:var(--muted)}.error-page .button{max-width:300px;margin:25px auto}.big-emoji{font-size:70px}.page-heading{text-align:center;margin:10px 0 35px}.page-heading h1{font-size:42px}.page-heading p{color:var(--muted);margin-top:14px}.dashboard-layout{display:grid;grid-template-columns:400px 1fr;gap:28px}.share-card{padding:23px;align-self:start;text-align:center}.share-card .board{margin:auto}.share-card .button{font-size:14px}.share-prompt{font-size:14px;font-weight:650;margin:22px 0 17px}.copy-row{display:flex;gap:8px;margin:16px 0 8px}.copy-row input{min-width:0;font-size:12px;padding:10px;min-height:42px}.icon-button{border:1px solid var(--line);background:var(--cream);border-radius:9px;width:45px;flex:none;display:grid;place-items:center}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.stats-row>div{border:1px solid #e2d6eb;border-radius:15px;padding:17px 8px;text-align:center;background:#f3ecfa}.stats-row span{font-size:27px;font-weight:850;letter-spacing:-1px;display:block;color:var(--purple)}.stats-row small{font-size:11px;color:var(--muted)}.leaderboard-card{padding:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.section-heading h2{font-size:19px;display:flex;gap:8px;align-items:center}.section-heading .small{font-size:10px}.empty-state{text-align:center;padding:34px 10px}.empty-state .icon{width:38px;height:38px;color:#b799d1;margin-bottom:15px}.empty-state h3{font-size:17px}.empty-state p{font-size:14px;color:var(--muted);margin-top:7px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:10px;color:var(--muted);font-weight:600;padding:8px 8px 13px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 8px;border-bottom:1px solid #eee5e0}.rank{width:25px;height:25px;display:grid;place-items:center;background:#f2ede6;border-radius:7px;font-weight:700}.rank.first{background:#f5dea2;color:#8d5c0d}.score-time{font-weight:750;color:var(--purple);white-space:nowrap}.assisted{display:block;color:var(--muted);font-size:10px}.table-note{font-size:11px;color:var(--muted);margin-top:14px}.recent-card{margin-top:18px;padding:22px}.recent-card h3{font-size:17px;margin-bottom:13px}.recent-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 0;font-size:13px}.recent-row small{display:block;color:var(--muted);font-size:11px}.recent-card>p{font-size:14px}.dashboard-tools{padding:22px 26px;margin-top:28px}.dashboard-tools details{border-bottom:1px solid var(--line);padding:8px 0 18px;margin-bottom:12px}.dashboard-tools summary{cursor:pointer;font-size:14px;font-weight:700}.dashboard-tools summary .icon{width:17px;margin-right:6px}.dashboard-tools details p{font-size:14px;margin:12px 0;max-width:760px;color:var(--muted)}.dashboard-tools .button{max-width:340px;font-size:13px}.dashboard-tools li{font-size:13px}.danger{color:#af3f3f}.challenge-page{max-width:520px;margin:5px auto 20px;text-align:center}.challenge-page h1{font-size:38px}.challenge-page>p{color:var(--muted);margin:16px 0 25px}.arrival-card{padding:23px}.arrival-card .board{max-width:370px;margin:auto}.challenge-meta{font-size:13px;margin:19px 0;display:flex;align-items:center;flex-direction:column;gap:11px}.challenge-meta>span:last-child{display:flex;gap:6px;align-items:center}.difficulty-pill{display:inline-block;white-space:nowrap;font-size:11px;font-weight:700;border-radius:30px;background:var(--lavender);color:var(--purple);padding:6px 12px}.challenge-page form{text-align:left;border-top:1px solid var(--line);padding-top:1px}.challenge-page .button{width:100%;margin:16px 0}.game-page{max-width:510px;margin:auto}.game-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 18px}.game-title .eyebrow{font-size:10px;margin-bottom:8px}.game-title h1{font-size:29px}.game-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin-bottom:19px}.game-stats>div{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;border-right:1px solid var(--line)}.game-stats>div:last-child{border:0}.game-stats strong{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.1;letter-spacing:-.7px}.game-stats .icon{color:var(--purple);width:19px}.game-stats span{flex-basis:100%;font-size:11px;color:var(--muted)}.game-card{padding:14px;background:#fffdfa;border-radius:21px}.game-card .board{box-shadow:none;border-radius:12px}.game-card .board .avatar>span{font-size:44px}.game-progress{height:5px;border-radius:3px;overflow:hidden;background:#eee5f6;margin:19px 5px 10px}.game-progress span{display:block;height:100%;background:var(--purple);transition:width .25s}.game-status{text-align:center;font-size:12px;min-height:36px;display:flex;align-items:center;justify-content:center;color:var(--muted)}.game-controls{display:flex;justify-content:space-between;gap:9px;margin:19px 0}.control-button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 7px;background:#fffdf7;color:var(--ink);font-size:12px;min-height:45px}.control-button .icon{width:17px}.control-button span{font-size:10px;background:var(--lavender);border-radius:10px;padding:1px 5px}.game-tip{text-align:center;color:var(--muted);font-size:12px;line-height:1.65}.piece.hinted{background:#faeabb;box-shadow:inset 0 0 0 2px #dbab33}.piece.leaving[data-direction=up]{transform:translateY(-550px);opacity:0!important}.piece.leaving[data-direction=down]{transform:translateY(550px);opacity:0!important}.piece.leaving[data-direction=left]{transform:translateX(-550px);opacity:0!important}.piece.leaving[data-direction=right]{transform:translateX(550px);opacity:0!important}.piece.shake{animation:shake .28s}.board.rescued .avatar{animation:rescue .8s both}.board.rescued{background-color:#ebf8e9}.network-error{padding:18px;border-radius:12px;background:#fff0de;border:1px solid #e3bf96;font-size:14px;text-align:center;margin-bottom:18px}.network-error .button{margin-top:12px}@keyframes shake{25%,75%{translate:-4px 0}50%{translate:4px 0}}@keyframes rescue{50%{transform:translate(-50%,-50%) scale(1.3) rotate(-7deg)}100%{transform:translate(-50%,-50%) scale(1.5)}}.result-page{max-width:500px;text-align:center;margin:0 auto 20px}.result-page>.eyebrow{margin-bottom:15px}.result-avatar{position:relative;width:180px;margin:0 auto 20px}.result-avatar .avatar{margin:auto;width:100px;height:100px;border-width:5px}.result-avatar .avatar span{font-size:58px}.result-avatar>span{position:absolute;top:6px;left:4px;color:#d7972c;font-size:25px}.result-avatar>i{position:absolute;bottom:4px;right:2px;color:var(--purple);font-size:36px;font-style:normal}.result-avatar>b{position:absolute;right:-2px;top:0;font-size:28px;transform:rotate(15deg)}.result-page h1{font-size:42px}.result-page>p{color:var(--muted);margin:15px 0 24px}.result-card{padding:25px 26px 16px}.result-time{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;color:var(--purple)}.result-time .icon{width:29px;height:29px}.result-time strong{font-size:57px;letter-spacing:-2px;line-height:1}.result-time>span{flex-basis:100%;font-size:12px;color:var(--muted)}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin:24px 0 18px}.result-metrics div{border-right:1px solid var(--line)}.result-metrics div:last-child{border:0}.result-metrics b{display:block;font-size:25px}.result-metrics span{font-size:11px;color:var(--muted)}.personal-best{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;background:#f8f1df;border-radius:8px;padding:9px;margin:0 0 20px;color:#896419}.personal-best .icon{width:17px}.download-button{font-size:12px;text-decoration:none;margin-top:15px}.download-button .icon{width:16px}.return-challenge h2{font-size:23px;line-height:1.3;margin:27px 0 19px}.return-challenge .button{max-width:350px;margin:auto}.return-challenge>.text-button{margin-top:12px;text-decoration:none;font-size:12px}.assisted-label{font-size:12px;color:var(--muted);margin-bottom:15px}dialog{width:min(92vw,470px);border:1px solid #e1d3e8;border-radius:22px;background:var(--cream);color:var(--ink);padding:32px;box-shadow:0 20px 80px #34204430}dialog::backdrop{background:#291c3b66;backdrop-filter:blur(3px)}dialog h2{font-size:27px;margin-bottom:15px}dialog p{font-size:14px;color:var(--muted);margin-bottom:20px}.dialog-close{position:absolute;right:13px;top:10px;border:0;background:none;font-size:28px;color:var(--muted);padding:3px 8px}.instructions{padding-left:20px;font-size:15px;line-height:1.65}.instructions li{margin:18px 0;padding-left:7px}.instructions b{display:block}.dialog-done{width:100%;margin-top:20px}.dialog-actions{display:flex;justify-content:end;gap:10px}.dialog-actions .button{font-size:13px}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:white;padding:13px 20px;border-radius:12px;font-size:14px;max-width:90vw;width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1200px){.create-layout{grid-template-columns:465px 1fr}.intro{margin-bottom:38px}.preview-panel{padding-top:32px}.preview-panel .board{width:365px;margin-top:20px}.preview-copy{margin-top:40px}}
@media(max-width:800px){.site-header{padding:20px 24px;min-height:85px}.header-note{display:none}main{padding:15px 20px 35px}.intro h1{font-size:43px;letter-spacing:-1.9px}.create-layout{gap:18px}.create-card{padding:22px 20px}.card-title h2{font-size:19px}.step-badge{display:none}.preview-panel{padding:24px 18px}.preview-label{font-size:8px;letter-spacing:1px}.tilted-label{font-size:11px;right:0;top:30px}.emoji-options{gap:4px}.emoji-button{width:32px;height:34px;font-size:20px}.upload-row{gap:10px}.upload-button{padding:8px;font-size:11px}.upload-row .small{font-size:10px}.loop-steps{font-size:8px;gap:2px}.preview-copy h3{font-size:20px}.dashboard-layout{grid-template-columns:330px 1fr;gap:18px}.leaderboard-card,.recent-card{padding:16px}.section-heading{align-items:start;flex-direction:column;gap:5px}.stats-row{gap:7px}.stats-row small{font-size:10px}.stats-row span{font-size:23px}.stats-row>div{padding:14px 4px}.page-heading h1{font-size:36px}footer{margin:0 20px;padding:20px 0;font-size:10px}}
@media(max-width:600px){.site-header{padding:18px 21px;min-height:79px}.brand{font-size:20px}.brand-icon{width:36px;height:39px;font-size:30px;border-radius:11px}.how-button{font-size:12px;gap:7px}main{padding:13px 18px 28px}.intro{margin:7px 0 27px}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:15px}.intro h1{font-size:38px;line-height:1.12;letter-spacing:-1.9px}.intro>p{font-size:14px;max-width:320px;margin-top:16px}.create-layout{display:flex;flex-direction:column;gap:23px}.create-card{padding:25px 22px 22px}.card-title{margin-bottom:23px;gap:11px}.card-title h2{font-size:21px}.card-title p{font-size:12px}.step-badge{display:grid}.field-label{font-size:13px}.emoji-options{gap:6px}.emoji-button{width:36px;height:38px;font-size:22px}.upload-row{gap:17px}.upload-button{padding:10px 15px;font-size:13px}.upload-row .small{font-size:11px}.permission-note{font-size:11px}.difficulty label>span{padding:12px 5px}.difficulty b{font-size:13px}.preview-panel{padding:24px 28px 22px}.preview-label{font-size:10px;letter-spacing:1.5px}.tilted-label{font-size:12px;top:28px}.preview-panel .board{width:290px;margin-top:10px}.preview-copy{margin-top:25px}.preview-copy h3{font-size:21px}.preview-copy p{font-size:13px}.loop-steps{font-size:10px;max-width:320px;padding-top:22px}.bottom-note{font-size:11px;gap:6px;margin-top:25px}.bottom-note .icon{width:14px}footer{flex-direction:column;text-align:center;gap:5px;font-size:10px;padding:17px 0}.page-heading{margin:5px 0 25px}.page-heading h1{font-size:31px}.page-heading p{font-size:14px}.dashboard-layout{display:block}.share-card{padding:21px}.share-card .board{max-width:340px}.squad-panel{margin-top:23px}.stats-row{gap:9px}.stats-row>div{padding:18px 6px}.stats-row span{font-size:27px}.stats-row small{font-size:11px}.leaderboard-card{padding:22px 16px}.section-heading{flex-direction:row;align-items:center}.section-heading h2{font-size:17px}.recent-card{padding:20px}.dashboard-tools{padding:19px}.challenge-page{margin-top:5px}.challenge-page h1{font-size:33px}.challenge-page>p{font-size:14px;margin-top:12px}.arrival-card{padding:17px}.challenge-meta{font-size:12px}.board .avatar>span{font-size:39px}.game-page{margin-top:-2px}.game-title{margin-bottom:17px}.game-title h1{font-size:24px}.game-title .eyebrow{font-size:9px}.game-stats{margin-bottom:16px}.game-stats strong{font-size:24px}.game-card{padding:9px 9px 5px;border-radius:17px}.game-card .board .avatar>span{font-size:36px}.game-controls{gap:7px;margin:16px 0}.control-button{font-size:11px;gap:6px;padding:11px 5px}.game-progress{margin-top:14px}.game-status{font-size:11px;min-height:35px}.game-tip{font-size:11px}.game-page .board{border-radius:10px}.game-page .help-bubble{font-size:9px;top:calc(50% - 100% / var(--size) - 10px)}.game-page .piece path{stroke-width:4.7}.result-page h1{font-size:35px}.result-page>p{font-size:14px}.result-card{padding:23px 19px 16px}.result-time strong{font-size:54px}.result-avatar{margin-bottom:17px}.result-page .eyebrow{margin-top:5px}.return-challenge h2{font-size:22px}.error-page{padding:50px 0}.error-page h1{font-size:30px}.error-page p{font-size:14px}}
@media(max-width:360px){.intro h1{font-size:32px}.create-card{padding:22px 17px}.card-title h2{font-size:19px}.emoji-options{gap:3px}.emoji-button{width:32px}.step-badge{width:33px;height:36px}.field-label{font-size:12px}.field-label span{font-size:10px}.upload-row{gap:10px}.game-title h1{font-size:21px}.game-card .board .avatar>span{font-size:29px}.board .avatar{border-width:3px}.game-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
#create-board{width:100%;display:flex;justify-content:center;flex:none}
/* Winding, interlocking arrow paths: geometry and hit areas share one SVG. */
.winding-board{background:#fffdfa;border:1px solid #e7dccb;border-radius:13px}
.puzzle-svg{display:block;width:100%;height:100%;overflow:hidden}
.winding-board .piece{position:static;padding:0;pointer-events:none;transform-box:view-box;transform-origin:center}
.winding-board .piece path{fill:none;stroke-width:5.3;stroke-linecap:round;stroke-linejoin:round}
.winding-board .piece .piece-hit{stroke:transparent;stroke-width:29;pointer-events:stroke;cursor:pointer}
.winding-board:not(.interactive) .piece .piece-hit{pointer-events:none}
.winding-board .piece .piece-line,.winding-board .piece .arrow-head{pointer-events:none;stroke:currentColor}
.winding-board .piece .arrow-head{stroke-width:5.3}
.winding-board .color-0{color:#db5750}.winding-board .color-1{color:#288ab8}.winding-board .color-2{color:#38a77f}.winding-board .color-3{color:#ab55c2}.winding-board .color-4{color:#d7a717}.winding-board .color-5{color:#6550c1}
.winding-board .piece:hover .piece-line,.winding-board .piece:focus-visible .piece-line{stroke-width:7.2;filter:brightness(.85)}
.winding-board .piece:focus-visible{outline:none}.winding-board .piece:focus-visible .piece-hit{stroke:#e2d5fc;stroke-width:24}
.winding-board .piece.hinted .piece-hit{stroke:#f8df84;stroke-width:24}
.winding-board .piece.hinted{background:none;box-shadow:none}
.winding-board .avatar{width:calc(200% / var(--size) - 2px);height:calc(200% / var(--size) - 2px);border-width:3px}
.winding-board .avatar>span,.game-card .winding-board .avatar>span{font-size:clamp(23px,5vw,39px)}
.winding-board .help-bubble{font-size:9px;padding:0 4px;top:calc(50% - 100% / var(--size) - 8px)}
.game-card .winding-board{border-radius:9px}
@media(prefers-reduced-motion:reduce){.winding-board .piece.leaving{opacity:0!important}}
body.playing .site-header{min-height:66px;padding-top:12px;padding-bottom:12px}
body.playing main{padding-top:5px;padding-bottom:14px;min-height:0}
body.playing footer{display:none}
body.playing .game-card .board{max-width:calc(100svh - 280px);margin-inline:auto}
@media(max-width:600px){body.playing .site-header{min-height:59px;padding-top:10px;padding-bottom:10px}body.playing .game-title{margin-bottom:12px}body.playing .game-stats{margin-bottom:12px}body.playing .game-controls{margin:12px 0}body.playing .game-tip{font-size:10px}body.playing .game-card .board{max-width:calc(100svh - 270px)}}
.board-scene{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}
.interactive.winding-board{touch-action:none;user-select:none;-webkit-user-select:none}
.board-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 2px 10px;font-size:12px;color:var(--muted)}
.board-tools>div{display:flex;gap:4px}.board-tools button{height:34px;min-width:34px;border:1px solid var(--line);border-radius:8px;background:#fffaf2;color:var(--ink);font-weight:700;font-size:18px}.board-tools #zoom-reset{font-size:11px;min-width:49px}
.winding-board .piece.escaping .piece-hit{pointer-events:none}
.winding-board .piece.escaping{transition:none}
body.playing .game-card .board{max-width:calc(100svh - 320px)}
@media(max-width:600px){.board-tools{font-size:11px}body.playing .game-card .board{max-width:calc(100svh - 305px)}}
.visitor-create{margin:24px 0 0;padding:22px;background:var(--lavender);border:1px solid #ded0f3;border-radius:18px}.visitor-create h2{font-size:21px}.visitor-create p{font-size:14px;color:var(--muted);margin:10px 0 16px}.visitor-create .button{width:100%}
.rescue-create{border-top:1px solid var(--line);padding-top:19px;margin:0 0 18px}.rescue-create h2{font-size:23px;line-height:1.2}.rescue-create p{font-size:14px;color:var(--muted);margin:10px 0 16px}.rescue-create .button{min-height:54px;font-size:16px;width:100%}
.status-share{background:#eef8ec;border:1px solid #cfe3cf;border-radius:14px;padding:17px;margin:18px 0;text-align:left}.status-share h3{font-size:18px;line-height:1.3;letter-spacing:-.4px}.status-share>p{font-size:13px;color:#49634f;margin:9px 0 14px}.status-copy{background:#fff;color:#186e41;border:1px solid #bcd5bf;font-size:14px;width:100%}.status-instructions{margin-top:12px;font-size:13px}.status-instructions summary{cursor:pointer;color:#275e39;font-weight:650}.status-instructions textarea{display:block;resize:vertical;width:100%;min-height:145px;margin:12px 0;border:1px solid #bcd5bf;border-radius:8px;padding:10px;font:inherit;background:white;color:var(--ink)}.status-instructions ol{padding-left:20px;line-height:1.6}.status-instructions li{margin:7px 0}.status-instructions .small{font-size:12px}
/* Status-first invitation: one ready-made message and one primary share action. */
.status-first{text-align:center;background:#edfaed;border:2px solid #b9dabc;padding:22px 18px;margin:0 0 20px}.status-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:1.3px;color:#307149;margin-bottom:11px}.status-first h3{font-size:23px;line-height:1.2;letter-spacing:-.6px}.status-first>p{font-size:15px;line-height:1.55;margin:13px 0 18px}.status-first .whatsapp{min-height:57px;font-size:16px;width:100%;box-shadow:0 4px 0 #105b34}.status-first .status-route-note{font-size:11px;line-height:1.45;margin:12px 0;color:#56725b}.status-first details{border-top:1px solid #cde4ce;padding-top:12px;text-align:left;font-size:12px}.status-first .status-instructions .small{margin-top:12px}.share-card>.board{max-width:270px}.result-card .status-first{margin-top:4px}.result-card .rescue-create{padding-top:20px;margin-bottom:8px}
@media(max-width:600px){.share-card{padding:16px}.status-first{padding:20px 15px}.status-first h3{font-size:22px}.status-first .whatsapp{font-size:15px}.share-card>.board{max-width:245px}}
.result-card>.result-time{margin-bottom:20px}.result-page .result-avatar{margin-bottom:14px}.result-page .result-avatar .avatar{width:78px;height:78px}.result-page .result-avatar .avatar>span{font-size:45px}.result-page>p{margin-top:10px;margin-bottom:18px}
body{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}.bottom-nav{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 28px));display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#fffdf9f5;backdrop-filter:blur(16px);border:1px solid #e5d9ee;border-radius:23px;padding:7px 9px;box-shadow:0 5px 30px #37204b20;z-index:50}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border-radius:16px;color:#84758b;font-size:11px;font-weight:700;transition:background .15s,color .15s}.nav-icon{display:grid;place-items:center;width:40px;height:28px;border-radius:10px}.nav-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{color:var(--purple);background:#efe7fb}.nav-item:hover{background:#f4eef9;color:var(--purple)}#toast{bottom:calc(100px + env(safe-area-inset-bottom,0px))}.library-page{max-width:650px;margin:auto}.library-page .page-heading h1{font-size:39px}.library-list{display:flex;flex-direction:column;gap:13px}.library-item{display:flex;align-items:center;gap:16px;padding:20px;transition:border-color .15s,transform .15s}.library-item:hover{border-color:#b999df;transform:translateY(-1px)}.library-item .avatar{width:62px;height:62px}.library-item .avatar>span{font-size:34px}.library-item-copy{min-width:0;flex:1}.library-item h2{font-size:19px;letter-spacing:-.6px;overflow-wrap:anywhere}.library-item p{font-size:12px;color:var(--muted);margin:6px 0}.library-item-copy>span{font-size:12px;font-weight:700;color:var(--purple)}.library-time{font-size:22px;color:var(--purple);white-space:nowrap;letter-spacing:-.6px}.library-note{font-size:12px;color:var(--muted);text-align:center;margin:22px auto;max-width:500px}.library-empty{text-align:center;padding:42px 25px}.library-empty>.icon{width:45px;height:45px;color:#a784cc;margin-bottom:20px}.library-empty h2{font-size:24px}.library-empty p{font-size:15px;color:var(--muted);margin:14px 0 24px}.library-empty .button,.library-create{max-width:330px;margin-inline:auto}body.playing .game-card .board{max-width:min(100%,max(260px,calc(100svh - 400px)))}
@media(max-width:600px){.library-item{padding:16px 13px;gap:12px}.library-item h2{font-size:17px}.library-time{font-size:19px}.library-item .avatar{width:50px;height:50px;border-width:3px}.library-item .avatar>span{font-size:28px}.library-item p{font-size:11px}.library-page .page-heading h1{font-size:34px}.bottom-nav{border-radius:20px}body.playing .game-card .board{max-width:min(100%,max(250px,calc(100svh - 385px)))}}

/* A single name field keeps the homepage quick to use and share. */
body.home-page{padding-bottom:env(safe-area-inset-bottom,0px)}
.home-page #toast{bottom:24px}
.simple-create{max-width:570px;margin:0 auto}
.simple-create .intro{text-align:center;margin:12px auto 28px}
.simple-create .intro h1{font-size:clamp(34px,7vw,48px);line-height:1.12}
.simple-create .intro>p{max-width:450px;margin:18px auto 0;font-size:16px;line-height:1.6}
.simple-create .create-card{max-width:460px;margin:0 auto;padding:30px}
.simple-create .field-label{margin:0 0 10px}
.simple-create .name-help{font-size:13px;color:var(--muted);margin:10px 0 18px}
.simple-create .create-submit{width:100%;min-height:56px;font-size:17px}
.simple-create .form-foot{margin-bottom:0}
@media(max-width:600px){.simple-create .intro{margin-top:8px;margin-bottom:24px}.simple-create .create-card{padding:24px 20px}.simple-create .intro>p{font-size:15px}.home-page main{padding-top:24px}}

.dashboard-nav{grid-template-columns:repeat(2,1fr)}
.simple-dashboard{max-width:600px;margin:auto}
.simple-dashboard .page-heading h1{font-size:clamp(28px,6vw,40px);overflow-wrap:anywhere}
.simple-dashboard .page-heading p{line-height:1.6}
.simple-dashboard [hidden]{display:none!important}
.simple-dashboard .share-card{width:100%}
.dashboard-nav .nav-item{font:inherit;font-size:13px;font-weight:700}

.rescue-name-dialog{width:min(440px,calc(100% - 32px));padding:28px 24px}
.rescue-name-dialog h2{font-size:27px;line-height:1.2;overflow-wrap:anywhere}
.rescue-name-dialog>p{line-height:1.6;color:var(--muted);margin:14px 0 22px}
.rescue-name-dialog .button{width:100%;min-height:54px}
.rescue-name-dialog .small{text-align:center;margin:14px 0 0}
#open-rescue{width:100%;margin-top:20px}

body.challenge-route{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
.challenge-route #toast{bottom:calc(94px + env(safe-area-inset-bottom,0px))}
body.challenge-route.playing .game-card .board{max-width:min(100%,max(260px,calc(100svh - 396px)))}
@media(max-width:600px){body.challenge-route.playing .game-card .board{max-width:min(100%,max(250px,calc(100svh - 381px)))}}

.challenge-create-bar{position:fixed;bottom:0;left:0;right:0;z-index:50;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff9eff5;border-top:1px solid var(--line);backdrop-filter:blur(12px)}
.challenge-create-bar .button{width:100%;max-width:480px;min-height:54px;margin:0 auto;font-size:16px}
