@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Rye&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#f5eddb;background:#102e38;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#244b52,#102e38 75%);min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ffd271;outline-offset:4px}.app{max-width:1440px;margin:auto;padding:0 42px}header{height:94px;display:flex;align-items:center;gap:28px}.brand{color:#fff5df;text-decoration:none;font-size:26px;font-weight:700;letter-spacing:2px}.brand b{color:#ffbb63}.star{color:#f4a94e;font-size:34px;vertical-align:-2px;margin-right:9px}.edition{font-size:12px;letter-spacing:3px;color:#a8c2c5}.tools{margin-left:auto;display:flex;gap:10px}.tools button,footer button{background:none;border:1px solid #ffffff28;border-radius:8px;padding:9px 13px}.tools button:hover,footer button:hover{background:#ffffff12}.stage{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;box-shadow:0 22px 60px #001b2870;border:1px solid #ffffff20;background:#63aab0}canvas{width:100%;height:100%;display:block}.overlay{position:absolute;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#082f38ef 0%,#123e42bc 37%,#163a3a20 74%);padding:6%}.intro{max-width:580px}.eyebrow{font-size:13px;letter-spacing:4px;color:#ffce7a;font-weight:700;margin-bottom:20px}h1{font-family:'Rye',Georgia,serif;font-size:clamp(48px,6.9vw,98px);font-weight:400;line-height:1;margin:0;color:#fff2cf;text-shadow:0 5px 0 #173b39}h1 span{color:#ffbe61}h1 i{font-family:Georgia,serif;font-size:clamp(20px,2.7vw,36px);display:block;margin-top:15px;font-weight:400}p{font-size:17px;line-height:1.65;color:#e3ebe1}.primary{background:#f8b956;border:0;border-bottom:4px solid #cc8737;border-radius:8px;color:#263b31;font-size:18px;font-weight:700;padding:17px 24px;min-width:220px;margin-top:15px;box-shadow:0 5px 20px #082f3830}.primary span{margin-left:30px}.primary:hover{background:#ffce7a;transform:translateY(-1px)}.secondary{display:block;background:none;border:0;text-decoration:underline;padding:12px 0;color:#fff2cf}.intro-foot{font-size:13px;color:#bdd0c9;margin-top:22px;letter-spacing:1px}.postmark{position:absolute;right:5%;top:8%;border:1px solid #fff0c981;border-radius:50%;width:128px;height:128px;text-align:center;padding-top:22px;transform:rotate(12deg);font-size:12px;letter-spacing:2px;color:#fff3cd}.postmark b{line-height:2}.postmark span{display:block;font-size:24px}.hud{position:absolute;top:22px;left:24px;right:24px;display:flex;gap:20px;pointer-events:none;text-shadow:0 2px 3px #123}.hud>div{background:#102e38d9;border:1px solid #ffffff25;border-radius:10px;padding:12px 16px;min-width:130px}.hud small{display:block;font-size:11px;font-weight:700;letter-spacing:1.6px;margin-bottom:5px}.hud strong{font-size:22px;color:#ffd27b}.hud #hearts{color:#ff8680;letter-spacing:3px}.hud #powers{margin-left:auto;background:none;border:0;padding:0;font-size:14px;min-width:0}.power{background:#183c42ed;padding:8px 12px;border-radius:6px;margin-bottom:6px}#toast{position:absolute;bottom:22%;left:50%;transform:translateX(-50%);text-align:center;background:#10323be8;border:1px solid #ffe1a75c;border-radius:9px;padding:12px 20px;font-weight:600;pointer-events:none;opacity:0;transition:opacity .2s;max-width:90%;white-space:pre-line}#toast.show{opacity:1}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 0;font-size:13px;color:#c1d2d0}footer>div:first-child{display:flex;align-items:center;gap:9px}.live-dot{height:6px;width:6px;background:#eab769;border-radius:50%}kbd{font-family:inherit;background:#ffffff0c;border:1px solid #ffffff20;border-radius:4px;padding:3px 6px;margin:0 3px;font-size:11px}.trail{display:grid;grid-template-columns:repeat(5,1fr);padding:20px 0 30px;border-top:1px solid #ffffff16;gap:15px}.trail-item{font-size:13px;color:#8cacae;line-height:1.5}.trail-item span{display:block;font-size:11px;letter-spacing:2px;margin-bottom:9px}.trail-item.active{color:#ffd089}.trail-item.done{color:#d5e4d0}.hidden{display:none!important}.touch{position:absolute;bottom:18px;left:18px;right:18px;display:flex;justify-content:space-between;pointer-events:none}.touch>div{display:flex;gap:10px}.touch button{pointer-events:auto;touch-action:none;user-select:none;width:57px;height:57px;border:1px solid #fff8;border-radius:50%;background:#173a429c;backdrop-filter:blur(3px);font-size:22px}.touch .action{font-size:12px;font-weight:bold;background:#d193369e}.touch .jump{background:#d19336da}.touch button:active{background:#ffcc77;color:#123}.result{text-align:center;width:100%;max-width:640px;margin:auto}.result h2,dialog h2{font-family:'Rye',Georgia,serif;font-size:36px;color:#ffd183;font-weight:400}.result .eyebrow{margin:0}.result p{margin:12px 0}.result .big{font-size:45px;color:#ffc967}dialog{background:#133943;color:#eaf0e8;border:1px solid #72918b;border-radius:18px;padding:34px;max-width:640px;width:calc(100% - 30px);max-height:85svh}dialog::backdrop{background:#041d2cc7;backdrop-filter:blur(5px)}dialog h2{margin:10px 0 20px;font-size:28px}.close{position:absolute;top:12px;right:15px;border:0;background:none;font-size:29px}.info-row{padding:12px 0;border-bottom:1px solid #ffffff16;line-height:1.6}.info-row strong{color:#ffd183}.badge{color:#ffd183}.cue-buttons{display:flex;gap:12px;justify-content:center;margin-top:20px}.cue-buttons button{font-size:28px;background:#f2bb5f;color:#173a42;border:0;border-radius:10px;width:66px;height:58px}.cue-track{position:absolute;bottom:16%;left:15%;right:15%;height:75px;background:#12333eea;border:1px solid #fff5;border-radius:12px}.cue-note{position:absolute;top:12px;width:48px;height:48px;background:#f4bd63;color:#123;border-radius:8px;text-align:center;font-size:32px}.cue-target{position:absolute;left:calc(20% - 8px);top:3px;height:67px;width:64px;border:3px solid #fff2cc;border-radius:10px}.cue-hint{position:absolute;top:105%;width:100%;text-align:center;font-size:14px}
@media(hover:hover) and (pointer:fine){.touch{display:none}}@media(max-width:900px){.app{padding:0 18px}header{height:75px}.edition{display:none}.keyboard{display:none}.trail{gap:10px}.postmark{width:100px;height:100px;font-size:9px;padding-top:13px}.intro p{font-size:14px}.eyebrow{font-size:10px;margin-bottom:12px}.primary{font-size:16px;padding:12px 18px;margin-top:5px}.intro-foot{margin-top:12px;font-size:11px}.hud{top:12px;left:12px;right:12px;gap:10px}.hud>div{padding:7px 10px;min-width:90px}.hud strong{font-size:17px}.hud small{font-size:9px}.hud #powers{font-size:11px}.power{padding:5px 7px}}@media(max-width:600px){.app{padding:0 10px}.brand{font-size:22px}.tools button span{display:none}header{height:65px}.stage{aspect-ratio:auto;height:min(73svh,650px);min-height:410px}canvas{object-fit:cover}.overlay{padding:7%;align-items:center;background:linear-gradient(90deg,#082f38ed,#123e4285)}h1{font-size:62px}h1 i{font-size:25px}.intro p{font-size:16px}.postmark{display:none}.eyebrow{font-size:11px}.intro-foot{font-size:12px}.primary{font-size:17px;padding:16px 22px}.trail{display:flex;overflow:auto;padding:16px 0;gap:25px}.trail-item{min-width:130px;font-size:12px}footer{font-size:11px;padding:15px 0}footer button{font-size:11px;padding:8px}.result h2{font-size:30px}.result p{font-size:15px}.hud #powers{position:absolute;top:65px;left:0}.hud .score{margin-left:auto}.touch button{width:58px;height:58px}.cue-track{left:5%;right:5%;bottom:29%}#toast{bottom:25%;font-size:13px}.cue-buttons button{width:56px}}
/* Illustrated traditions and the return journey */
.art-icon{display:inline-block;width:42px;height:42px;background-image:url('tradiciones.png');background-size:200% 200%;background-repeat:no-repeat;flex-shrink:0;vertical-align:middle}.art-icon.empanada{background-position:0 0}.art-icon.copihue{background-position:100% 0}.art-icon.chilenito{background-position:0 100%}.score-line{display:flex;align-items:center;gap:7px}.score-line .art-icon{width:28px;height:28px}.hud .score{min-width:115px}.chapter-button{display:block;margin-top:18px;background:#163e42dc;border:1px solid #cfddbb75;border-radius:7px;padding:11px 14px;color:#f5edd8;font-size:14px;text-align:left}.chapter-button:hover{background:#2d5754}.chapter-button span{font-size:10px;letter-spacing:1px;color:#f9cd85;margin-left:10px}.overlay{z-index:5;overflow:auto}.hud{z-index:2}.touch{z-index:3}#toast{z-index:4}.touch .team{background:#497c74dd;font-size:11px;font-weight:700;border-color:#c5eee0}.power.objective{color:#fff0c4;border:1px solid #edc4776b}.power.team-status{color:#d8f1e5}.challenge-features{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px auto;max-width:420px;text-align:left;font-size:14px;color:#fae4b8}.challenge-features span{padding:8px;background:#ffffff0a;border-radius:5px}.power-guide{display:flex;gap:14px;padding:20px 0;justify-content:space-between}.power-guide>div{flex:1;text-align:center;font-size:12px}.power-guide strong{display:block;font-size:15px;color:#ffd183;margin-bottom:4px}.power-guide .art-icon{display:block;margin:auto;width:75px;height:75px}.result .secondary{margin:5px auto}.result .big{font-size:30px}.result h2{margin:15px 0}#cueControls{position:absolute;bottom:4%;left:0;right:0;margin:0;z-index:3}#cueControls button{touch-action:manipulation}.hud #powers{max-width:260px}.info-row h3{color:#f7cd88;margin:10px 0}.intro-foot{margin-top:13px}.intro .secondary{padding:9px 0}.overlay .primary{max-width:100%}
@media(max-width:600px){.touch{left:12px;right:12px;bottom:15px}.touch>div{gap:6px}.touch button{width:48px;height:48px}.touch .action,.touch .team{font-size:10px}.hud #powers{top:72px;font-size:10px}.power{padding:5px 8px}.hud{right:9px;left:9px}.hud small{font-size:8px;letter-spacing:1px}.hud>div{padding:7px 8px}.hud .score{min-width:88px}.chapter-button{font-size:12px;padding:10px 11px}.chapter-button span{display:block;margin:5px 0 0;font-size:9px}.challenge-features{font-size:12px;gap:5px;margin:12px auto}.result p{font-size:14px}.result h2{font-size:27px}.result .primary{font-size:14px;padding:13px 15px;min-width:0}.result .secondary{font-size:12px}.power-guide{gap:5px}.power-guide .art-icon{width:60px;height:60px}.power-guide>div{font-size:11px}.power-guide strong{font-size:13px}.overlay{padding:6%}.intro-foot{font-size:11px}.intro p{font-size:14px}.eyebrow{margin-bottom:12px}.intro .primary{padding:12px 18px}.intro h1{font-size:54px}.intro h1 i{font-size:23px}.intro .chapter-button{margin-top:10px}}
@media(max-height:550px) and (min-width:601px){.overlay{padding:3% 5%}.intro h1{font-size:48px}.intro h1 i{font-size:20px;margin-top:8px}.intro p{font-size:13px;line-height:1.4;margin:10px 0}.eyebrow{margin-bottom:8px}.intro .primary{padding:9px 16px;font-size:14px}.chapter-button{margin-top:8px;padding:8px 12px;font-size:12px}.intro-foot{display:none}.result h2{font-size:25px;margin:8px}.result p{font-size:13px;line-height:1.4}.result .primary{font-size:13px;padding:10px}.challenge-features{margin:8px auto;font-size:12px}}
/* Personal results and sharing */
.footer-actions{display:flex;gap:8px}.result-share{display:block;margin:15px auto 0;padding:9px 14px;border:1px solid #f8d99f75;border-radius:7px;background:#143c43;color:#ffe0a4;font-size:14px}.result-share:hover{background:#2b5355}.stats-scope{font-size:13px;color:#bbcecb;margin:0 0 18px;line-height:1.5}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stats-grid>div{background:#ffffff08;border:1px solid #ffffff19;border-radius:9px;padding:14px 9px;text-align:center}.stats-grid strong{display:block;font-size:26px;color:#ffd182;margin-bottom:7px}.stats-grid span{font-size:12px;color:#dbe4da;display:block;line-height:1.35}.achievement-row{display:flex;flex-wrap:wrap;gap:10px 24px;margin:15px 0;font-size:13px;color:#cde2d6}.share-result{padding:20px;border-radius:10px;border:1px solid #f7d18566;background:linear-gradient(120deg,#26524f,#12323f)}.share-result small{color:#ffe3a5;font-size:13px}.share-result h3{font-family:Georgia,serif;font-size:38px;margin:9px 0;color:#fff1ce}.share-result p{margin:0;font-size:14px;color:#d3e7df;line-height:1.7}.cue-records{font-size:12px;line-height:1.6;color:#bfd2cc;margin:13px 0 20px}.share-label{display:block;font-size:14px;color:#eedfc3;margin-bottom:8px}.share-message{box-sizing:border-box;display:block;width:100%;background:#092831;color:#e4eddf;border:1px solid #ffffff36;border-radius:8px;padding:12px;font:14px/1.6 'DM Sans',sans-serif;resize:vertical;min-height:130px}.share-message:focus{outline:2px solid #f3c976}.share-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}.share-actions .primary{font-size:14px;padding:11px 15px;min-width:0;margin:0}.copy-share{font-size:13px;padding:11px 12px;border:1px solid #ffffff32;border-radius:7px;background:none}.copy-share:hover{background:#ffffff0c}.share-status{font-size:13px;line-height:1.5;color:#c8e4d9;margin:12px 0 0}.share-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:900px){.tools{gap:6px}.tools button{padding:8px 10px}header{gap:15px}.tools #stats span{display:none}}
@media(max-width:600px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid strong{font-size:27px}.stats-grid span{font-size:13px}.share-result{padding:15px}.share-result h3{font-size:32px}.share-actions .primary{width:100%}.copy-share{flex:1}.footer-actions{gap:5px}.footer-actions button{font-size:10px;padding:8px}footer{flex-wrap:wrap}footer>div:first-child{flex:1;min-width:140px}.result-share{font-size:12px;margin-top:9px}.tools{gap:5px}.tools button{padding:8px 9px}.brand{font-size:20px}.brand .star{margin-right:4px}.share-message{font-size:16px}dialog{padding:25px 20px}}
