:root{--ink:#173f3c;--muted:#6b7872;--paper:#faf8f2;--line:#e2e5dc;--coral:#e96045;--cream:#fff8e8;--teal:#287b75;--gold:#e9ac4f;--sans:'Segoe UI',system-ui,-apple-system,sans-serif;--serif:Georgia,'Times New Roman',serif;color-scheme:light;font-family:var(--sans);color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #cf7730;outline-offset:4px}button{border:0;background:transparent}button,summary{touch-action:manipulation}[hidden]{display:none!important}.masthead{height:99px;max-width:1392px;margin:auto;padding:0 52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:850;line-height:1.15;letter-spacing:1.5px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--ink);color:#ffbd6c;font-size:36px;border-radius:50%}.brand-dot{color:var(--coral)}.header-location{font-size:11px;letter-spacing:2px;font-weight:600;color:var(--muted)}.header-location span{margin:0 14px;color:var(--coral)}.header-actions{display:flex;gap:10px;align-items:center}.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font-size:24px;background:var(--paper)}.group-button{border:1px solid #bfc9bd;border-radius:9px;padding:10px 16px;font-size:14px;font-weight:650;display:flex;align-items:center;gap:8px}.group-button span{font-size:21px}.layout{max-width:1250px;margin:36px auto 24px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:54px;padding:0 30px}.sidebar{min-width:0}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;margin:0 0 12px;color:#647b6d}.intro h1{font-family:var(--serif);font-size:43px;font-weight:normal;line-height:1.08;letter-spacing:-1.5px;margin:0 0 18px}.intro h1 span{color:var(--coral)}.intro>p:last-child{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:25px}.groom-card{background:var(--cream);border:1px solid #e6ddc7;border-radius:16px;overflow:hidden;position:relative}.character-stage{height:245px;position:relative;overflow:hidden}.character-stage>img{height:252px;width:168px;object-fit:contain;position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);mix-blend-mode:multiply}.stamp{position:absolute;left:17px;top:19px;border:1px solid #cdbc9b;color:#927c54;font-size:9px;line-height:1.45;letter-spacing:1.6px;text-align:center;border-radius:50%;padding:12px 8px;transform:rotate(-13deg);height:69px;width:69px}.stamp b{display:block;font-size:11px}.stamp span{font-size:8px}.groom-caption{border-top:1px solid #e6ddc7;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.groom-caption small{font-size:9px;letter-spacing:1.4px;color:#827e65;font-weight:600}.groom-caption h2{margin:3px 0 0;font-family:var(--serif);font-size:25px;font-weight:normal;overflow-wrap:anywhere}.groom-caption>span{max-width:94px;font-size:11px;line-height:1.4;text-align:right;color:#84603b}.mission{margin-top:22px;padding:21px;background:var(--ink);border-radius:14px;color:white}.mission .eyebrow{color:#b6c9b7;font-size:10px;margin-bottom:10px}.mission h3{font-family:var(--serif);font-weight:normal;font-size:24px;line-height:1.16;margin:0 0 10px}.mission p:not(.eyebrow){font-size:13px;color:#c3d1c7;line-height:1.6;margin:0 0 18px}.primary{background:var(--coral);color:#fff;border-radius:8px;min-height:47px;padding:12px 20px;font-weight:650;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:14px;width:100%;transition:background .15s,transform .15s}.primary:hover{background:#d94c34;transform:translateY(-1px)}.mission .primary{background:#fff7e7;color:var(--ink);font-size:14px}.sidebar-footer{font-size:12px;line-height:1.8;color:#7b8377;text-align:center;padding:20px 0}.sidebar-footer>span:last-child{font-size:11px}.small-spark{display:block;color:#b58a50;font-size:25px;margin-bottom:4px}.game-board{min-width:0}.chapter-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding:6px;background:#eeeee5;border-radius:13px;margin-bottom:29px}.chapter-tabs button{min-height:61px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;color:#727c72;font-size:14px;font-weight:650;padding:8px}.chapter-tabs button.active{background:var(--paper);box-shadow:0 2px 6px #2444300a;color:var(--ink)}.chapter-tabs button>span:first-child{font-size:27px}.chapter-tabs small{display:block;font-size:9px;font-weight:650;letter-spacing:1.1px;text-align:left;margin-bottom:4px;color:#778578}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 1px 22px}.board-heading .eyebrow{color:#af6241;font-size:10px;margin-bottom:8px}.board-heading h2{font-family:var(--serif);font-size:34px;letter-spacing:-.7px;font-weight:normal;margin:0 0 7px}.board-heading p:last-child{font-size:13px;color:var(--muted);margin:0}.score{display:grid;grid-template-columns:25px 30px;align-items:center;justify-content:center;row-gap:2px;border:1px solid #e4dbc4;border-radius:12px;background:#fbf3e1;min-width:83px;padding:10px}.score>span{color:#ba8834;font-size:25px}.score>b{font-size:23px;font-weight:700}.score small{font-size:8px;letter-spacing:1px;grid-column:1/-1;text-align:center;color:#887442}.progress-row{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);margin-bottom:22px}.progress-track{height:7px;background:#e7e9df;border-radius:10px;flex:1;overflow:hidden}.progress-track>div{height:100%;width:0;background:var(--coral);border-radius:10px;transition:width .5s}.progress-row>span{white-space:nowrap}.map-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;font-size:12px;gap:8px}.view-tabs{display:flex;gap:5px}.view-tabs>button{padding:8px 13px;border-radius:7px;font-size:12px}.view-tabs .active{background:#e4ebe1;color:var(--ink);font-weight:700}.text-button{font-size:12px;color:#597366;padding:9px 0}.text-button span{margin-left:6px}.map-viewport{height:650px;height:clamp(520px,68vh,750px);overflow-y:auto;overflow-x:hidden;border:1px solid #ddd7bd;border-radius:15px;position:relative;background:#f6eacb;scrollbar-width:thin;scrollbar-color:#b4aa86 transparent;isolation:isolate;scroll-behavior:smooth}.map-backdrop{height:100%;position:sticky;top:0;background:url('/assets/sevilla.webp') center center/cover no-repeat;margin-bottom:calc(-1 * clamp(520px,68vh,750px));z-index:-1;pointer-events:none}.map-canvas{position:relative;width:100%;min-height:700px}.map-canvas svg.path{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 2px 0 #90775125)}.map-start{position:absolute;top:28px;left:50%;transform:translateX(-50%) rotate(-3deg);padding:8px 16px;background:var(--ink);border:2px solid #fff5d9;border-radius:6px;color:white;font-size:9px;letter-spacing:1.4px;white-space:nowrap;box-shadow:0 4px 0 #123b3520}.level{position:absolute;width:70px;height:70px;transform:translate(-50%,-50%);border:5px solid #fff7df;border-radius:50%;background:#eac997;box-shadow:0 5px 0 #b79762,0 9px 15px #3b37232e;font-size:28px;display:grid;place-items:center;z-index:2;transition:box-shadow .2s,background .2s}.level:hover{box-shadow:0 5px 0 #b79762,0 9px 18px #3b37234e}.level .level-number{position:absolute;right:-6px;top:-4px;min-width:22px;height:22px;display:grid;place-items:center;padding:0 3px;border-radius:50%;background:var(--ink);color:white;border:2px solid #fff8e8;font-size:10px;font-weight:750}.level.locked{background:#e8dec0;box-shadow:0 5px 0 #b7ac8b,0 9px 15px #3b372322}.level.locked .level-icon{filter:grayscale(.8);opacity:.65}.level.locked .level-number{background:#857f65}.level.current{background:var(--coral);box-shadow:0 5px 0 #a7462f,0 0 0 7px #fff7df77,0 10px 22px #75422540}.level.done{background:#3c8571;box-shadow:0 5px 0 #276953,0 9px 15px #3b372322}.level.skipped{background:#7e877d;box-shadow:0 5px 0 #5b645b}.level-title{position:absolute;top:73px;left:50%;transform:translateX(-50%);width:170px;font-size:11px;line-height:1.25;font-weight:650;color:#3e4937;background:#fff9e9eb;border:1px solid #e5d7b3;border-radius:6px;padding:6px 8px;box-shadow:0 2px 3px #3a392009}.level .lock-tag{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);font-size:10px;background:#ece4c9;border-radius:8px;line-height:17px;width:25px;color:#625e4f}.level .difficulty-dot{position:absolute;bottom:0;right:0;width:11px;height:11px;border:2px solid #fff8e8;border-radius:50%;background:var(--difficulty)}.map-avatar{position:absolute;top:-65px;left:-65px;width:64px;height:78px;pointer-events:none;transform:rotate(-7deg);filter:drop-shadow(0 3px 2px #2222)}.map-avatar img{width:64px;height:78px;object-fit:cover;border-radius:32px 32px 20px 20px;border:3px solid #fff7df}.map-avatar::after{content:'TÚ';position:absolute;bottom:-5px;left:17px;background:var(--ink);color:white;border-radius:4px;padding:3px 6px;font-size:8px;letter-spacing:1px}.finish-label{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#fff6de;border:1px solid #c2a76a;border-radius:50px;font-size:12px;font-weight:700;white-space:nowrap}.board-footer{display:flex;justify-content:center;gap:22px;padding:17px 0 4px;font-size:10px;color:#747c6d}.board-footer>span{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-dot.done{background:#3c8571}.legend-dot.current{background:var(--coral)}.legend-dot.locked{background:#a9ac99}.map-note{text-align:center;font-size:10px;color:#858b7c;margin:8px 0}.statusbar{max-width:1190px;margin:24px auto 0;padding:18px 0 25px;border-top:1px solid var(--line);display:flex;align-items:center;gap:22px;font-size:11px;color:#6d7a6c}.statusbar>span{margin-right:auto}.statusbar>button{font-size:12px}.statusbar #history-count{display:inline-block;margin-left:3px;background:#e7eade;border-radius:4px;padding:2px 5px}.challenge-list{min-height:450px;max-height:650px;overflow:auto;padding:3px}.challenge-row{width:100%;display:flex;align-items:center;gap:14px;padding:15px 12px;text-align:left;border-bottom:1px solid var(--line);border-radius:6px}.challenge-row:hover{background:#f0f0e7}.challenge-row .row-icon{font-size:26px;width:43px;height:43px;border-radius:10px;background:#efe9d9;display:grid;place-items:center;flex:none}.row-title{flex:1;min-width:0}.row-title b{display:block;font-size:14px;font-weight:650}.row-title small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.row-status{font-size:12px;color:#57766a}.difficulty{font-size:11px;display:inline-flex;align-items:center;gap:6px;color:var(--difficulty)}.difficulty::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--difficulty)}dialog{border:1px solid #e4e4d8;border-radius:22px;box-shadow:0 24px 90px #12382b40;background:var(--paper);color:var(--ink);padding:35px;width:min(520px,calc(100% - 28px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#102f2bbb;backdrop-filter:blur(5px)}.dialog-close{position:absolute;top:16px;right:16px;width:35px;height:35px;font-size:25px}.dialog-icon{font-size:42px;background:#f3e7d1;border-radius:20px;width:80px;height:80px;display:grid;place-items:center;margin:6px 0 24px}.dialog-eyebrow{font-size:10px;letter-spacing:1.5px;color:#788571;font-weight:700;margin:0 38px 9px 0}.dialog h2{font-family:var(--serif);font-size:32px;line-height:1.12;font-weight:normal;letter-spacing:-.7px;margin:0 0 17px;overflow-wrap:anywhere}.dialog-meta{display:flex;gap:16px;align-items:center;margin-bottom:24px}.dialog-meta>span:last-child{font-size:12px;color:#aa782c}.description{font-size:17px;line-height:1.7;margin:0 0 24px}.helper{font-size:13px;line-height:1.65;color:var(--muted)}.result-banner{border-radius:10px;background:#e6ecdf;padding:16px;margin:20px 0;font-size:14px;line-height:1.6}.secondary{border:1px solid #cbd2c3;border-radius:8px;padding:11px 14px;min-height:44px;font-size:14px}.dialog-actions{display:grid;gap:10px;margin-top:20px}.dialog-actions .secondary{width:100%}.timer{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:20px 0}.timer output{font-size:29px;font-variant-numeric:tabular-nums;font-weight:650;margin-right:auto}.timer button{padding:8px 10px;border-radius:6px;background:#e7ecdf;font-size:12px;min-height:37px}.timer-note{font-size:11px;color:var(--muted);margin-top:-12px}label.field{display:block;margin:20px 0;font-size:13px;font-weight:650}label.field input{display:block;width:100%;margin-top:7px;border:1px solid #cbd2c3;padding:12px;border-radius:8px;background:#fffef9;color:var(--ink);font-size:16px}.link-box{display:block;width:100%;font-family:var(--sans);font-size:12px;border:1px solid #cbd2c3;border-radius:8px;background:white;padding:12px;resize:none;color:var(--ink);margin:12px 0;overflow-wrap:anywhere}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);padding:13px 20px;border-radius:10px;background:var(--ink);color:#fff;box-shadow:0 6px 24px #16372833;font-size:14px;max-width:calc(100% - 28px);width:max-content;opacity:0;transition:.2s;z-index:50;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.history-item{display:flex;gap:12px;margin:18px 0;padding-bottom:15px;border-bottom:1px solid var(--line);font-size:14px}.history-item>span{font-size:24px}.history-item small{display:block;font-size:11px;margin-top:6px;color:var(--muted)}.empty{padding:35px 10px;text-align:center;color:var(--muted);font-size:15px;line-height:1.7}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:100}.confetti i{position:absolute;top:-20px;width:8px;height:15px;animation:fall 1.9s ease-in both;background:var(--coral)}@keyframes fall{to{transform:translateY(105vh) rotate(620deg)}}
@media(min-width:1400px){.layout{margin-top:44px}.map-viewport{height:710px}.map-backdrop{margin-bottom:-710px}}
@media(max-width:1100px){.layout{grid-template-columns:270px minmax(0,1fr);gap:30px;padding:0 24px}.masthead{padding:0 28px}.intro h1{font-size:38px}.header-location{font-size:9px}.statusbar{margin:20px 24px 0}.chapter-tabs{gap:3px}.chapter-tabs button{gap:6px;font-size:13px}.chapter-tabs small{font-size:8px}}
@media(max-width:760px){.masthead{height:75px;padding:0 18px;gap:10px}.brand{font-size:10px;gap:8px;letter-spacing:1.2px}.brand-mark{width:35px;height:35px;font-size:28px}.header-location{display:none}.header-actions{gap:7px}.group-button{font-size:12px;padding:8px 10px}.icon-button{width:36px;height:36px;font-size:21px}.layout{display:flex;flex-direction:column;padding:0 14px;margin:18px 0 0;gap:16px}.sidebar{display:contents}.intro,.groom-card,.sidebar-footer{display:none}.game-board{order:1}.mission{order:2;margin:0;display:flex;align-items:center;gap:12px;padding:15px;border-radius:12px}.mission>div{flex:1}.mission h3{font-size:20px;margin:0;line-height:1.2}.mission .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:5px}.mission p:not(.eyebrow){display:none}.mission .primary{width:auto;flex-shrink:0;padding:10px 15px;font-size:12px;min-height:43px}.chapter-tabs{margin-bottom:21px;border-radius:10px;padding:4px;gap:2px}.chapter-tabs button{min-height:54px;padding:6px 3px;gap:5px;font-size:11px}.chapter-tabs button>span:first-child{font-size:22px}.chapter-tabs small{font-size:7px;letter-spacing:.6px}.board-heading{margin:0 5px 18px}.board-heading h2{font-size:29px}.board-heading .eyebrow{font-size:9px}.board-heading p:last-child{font-size:11px}.score{min-width:66px;padding:8px;grid-template-columns:21px 25px;border-radius:9px}.score b{font-size:20px}.score>span{font-size:22px}.score small{font-size:7px}.progress-row{margin:0 5px 16px;font-size:10px}.map-toolbar{margin:0 3px 10px}.text-button{font-size:11px}.view-tabs>button{font-size:11px;padding:7px 10px}.map-viewport{height:570px;height:65svh;min-height:400px;border-radius:12px}.map-backdrop{height:max(65svh,400px);margin-bottom:calc(-1 * max(65svh,400px));background-position:50% 50%}.map-start{font-size:8px;top:23px}.level{width:62px;height:62px;font-size:25px;border-width:4px}.level-title{top:63px;font-size:10px;width:139px;padding:5px 6px}.level-number{font-size:9px}.map-avatar{top:-61px;left:-47px;width:49px;height:66px}.map-avatar img{width:49px;height:66px;border-width:2px}.map-avatar::after{left:11px;font-size:7px}.board-footer{gap:11px;font-size:9px;padding-top:12px}.map-note{font-size:9px;padding:0 15px;line-height:1.4}.statusbar{margin:20px 14px 0;padding:12px 0 max(18px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:10px}.statusbar>span{width:100%;margin:0}.statusbar>button{font-size:11px;padding:5px 0}.dialog{padding:28px 22px}dialog{padding:28px 22px}.dialog h2{font-size:29px}.description{font-size:16px}.dialog-icon{width:65px;height:65px;font-size:34px;margin-bottom:18px}.toast{bottom:20px;font-size:13px}.challenge-list{max-height:65svh;min-height:400px}.row-title b{font-size:13px}.row-title small{font-size:10px}.row-status{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.confetti{display:none}}
/* Readable labels outdoors, and backgrounds matched to the character artwork. */
.character-stage{background:#fcf6e2}.character-stage>img{mix-blend-mode:normal}body[data-chapter="ski"] .character-stage{background:#fdf4e2}
dialog h2{font-family:var(--serif);font-size:32px;line-height:1.12;font-weight:normal;letter-spacing:-.7px;margin:0 0 17px;overflow-wrap:anywhere}
.eyebrow,.chapter-tabs small,.board-heading .eyebrow,.mission .eyebrow,.groom-caption small,.groom-caption>span,.progress-row,.map-toolbar,.view-tabs>button,.text-button,.board-footer,.map-note,.statusbar,.level-title,.dialog-eyebrow,.difficulty,.timer-note,.row-title small,.score small{font-size:12px}
.intro>p:last-child,.board-heading p:last-child,.mission p:not(.eyebrow){font-size:14px}.chapter-tabs small{letter-spacing:.8px}.groom-caption small{letter-spacing:.7px}.groom-caption{gap:8px}.level-title{width:180px}.map-note{line-height:1.5}.header-location{font-size:12px;letter-spacing:1.1px}.score small{font-size:10px}.stamp,.stamp span{font-size:10px}.map-start{font-size:11px}.board-footer{gap:16px}
@media(max-width:1100px) and (min-width:761px){.header-location{display:none}.chapter-tabs small{font-size:10px}}
@media(max-width:760px){.chapter-tabs button{font-size:12px;flex-direction:column;gap:2px;padding:8px 2px}.chapter-tabs small{font-size:10px;text-align:center;letter-spacing:.2px;margin-bottom:2px}.chapter-tabs button>span:first-child{font-size:24px}.chapter-tabs{margin-bottom:17px}.board-heading p:last-child{font-size:12px}.level-title{width:146px;font-size:12px}.map-start{font-size:10px}.board-footer{font-size:10px;gap:10px}.map-note{font-size:11px}.mission .eyebrow{font-size:10px}.groom-caption small{font-size:11px}.statusbar{font-size:12px}.header-actions .icon-button{width:40px;height:40px}.chapter-tabs button{min-height:82px}.view-tabs>button,.text-button{font-size:12px}.score small{font-size:9px}dialog h2{font-size:29px}}
