@font-face{font-family:Hand;src:url('assets/patrick-hand-latin-ext-400-normal.woff2')}@font-face{font-family:Hand;src:url('assets/patrick-hand-latin-400-normal.woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Title;src:url('assets/caveat-latin-ext-700-normal.woff2')}@font-face{font-family:Title;src:url('assets/caveat-latin-700-normal.woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#193e3c;--teal:#246b62;--gold:#e9b958;--paper:#fffaf0;--muted:#65756c}*{box-sizing:border-box}body{margin:0;background:#dce5dc;color:var(--ink);font-family:Hand,'Trebuchet MS',sans-serif;font-size:19px}button{font:inherit;cursor:pointer;color:inherit;border:1px solid #c9d4c6;border-radius:10px;background:#fffaf0;padding:8px 15px;min-height:42px;touch-action:manipulation}button:hover{filter:brightness(.96)}button:focus-visible{outline:3px solid #d78d23;outline-offset:3px}button:disabled{cursor:default;opacity:.5}[hidden]{display:none!important}.notebook{max-width:1220px;margin:18px auto;padding:16px 30px 14px 48px;border-radius:18px;background:linear-gradient(90deg,transparent 29px,#eabcb5 30px,transparent 31px),repeating-linear-gradient(#fffaf1 0px,#fffaf1 31px,#dfe9df 32px);box-shadow:0 12px 50px #284c3920;border:1px solid #fefdf6}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.brand{display:flex;align-items:center;gap:13px}.compass{font-size:48px;color:#b07d34}.brand small,.eyebrow{font-family:sans-serif;font-size:10px;letter-spacing:2px;font-weight:bold}h1{font-family:Title;font-size:44px;line-height:1;margin:3px 0}h2{font-family:Title;font-size:32px;margin:0}.head-actions{display:flex;gap:6px}.stats{display:flex;justify-content:space-between;border:1px solid #d4dccd;background:#fffdf5e8;border-radius:12px;padding:10px 22px}.stats small{display:block;font:10px sans-serif;letter-spacing:1.5px;color:var(--muted)}.stats strong{font-size:28px}.stats em{font-style:normal;font-size:18px;color:#849084}.mission{display:flex;align-items:center;gap:12px;padding:10px 4px}.mission>span:first-child{font-size:35px;color:#a37422}.mission small{font:9px sans-serif;letter-spacing:1.8px;display:block}.mission b{font-size:21px}.mission-note{margin-left:auto;color:var(--muted);font-size:17px}.landscape{overflow:hidden;border:2px solid #506e53;border-radius:15px;background:#cedbc2 url('assets/manzara.png') center 56%/cover;box-shadow:0 4px 0 #294a3930;position:relative}.landscape-top{display:flex;justify-content:space-between;padding:12px 17px;font:10px sans-serif;font-weight:bold;letter-spacing:1px}.landscape-top span{background:#fff9e6dc;padding:6px 10px;border-radius:20px}#viewport{height:242px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#68836b #e1e5c8}#world{width:2376px;height:232px;position:relative}.rail{position:absolute;top:178px;left:42px;right:42px;height:4px;background:#294c40}.rail:before,.rail:after{content:'';position:absolute;top:-5px;border:7px solid transparent}.rail:before{left:-12px;border-right-color:#294c40}.rail:after{right:-12px;border-left-color:#294c40}.tick{position:absolute;top:161px;width:52px;height:61px;padding:0;border:0;border-radius:8px;background:transparent;transform:translateX(-50%);font-size:20px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:0}.tick:before{content:'';position:absolute;top:12px;width:2px;height:12px;background:#294c40}.tick.major:before{height:20px;top:8px;width:3px}.tick.zero{font-weight:bold;color:#934b2c}.tick.over{background:#f9d77cbb;outline:2px solid #fff7cf}.tick.visited{color:#fff;background:#28736480}#explorer{position:absolute;top:54px;width:82px;height:125px;margin-left:-41px;padding:0;background:none;border:none;z-index:4;touch-action:none;cursor:grab;overflow:visible}#explorer img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 2px #243c3830);pointer-events:none}#explorer.armed{filter:drop-shadow(0 0 6px #ffdb69)}#explorer.walking img{animation:walk .22s infinite alternate}#explorer.wrong{animation:shake .3s}#badge{position:absolute;top:-23px;left:20px;background:#fff4c7;border-radius:7px;font-weight:bold;padding:0 8px;z-index:2}#badge:empty{display:none}#target{position:absolute;top:55px;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;pointer-events:none}#targetArt{font-size:44px;line-height:1.2;animation:float 2s infinite ease-in-out;color:#493b1d;text-shadow:0 2px #fff}#targetLabel{font-size:15px;background:#fff4cb;padding:2px 9px;border-radius:7px;white-space:nowrap}#camp{position:absolute;top:105px;transform:translateX(-50%);color:#fff7d3;text-shadow:1px 1px #274331;display:flex;flex-direction:column;align-items:center}#camp span{font-size:28px}#camp small{font:9px sans-serif;font-weight:bold}#distanceTrail{position:absolute;top:172px;height:15px;background:#e9ba50aa;border-radius:10px;pointer-events:none}.nav{display:flex;align-items:center;justify-content:center;gap:9px;padding:7px;background:#fff9e3e8}.nav button{min-height:32px;padding:2px 13px;font-size:16px}.nav span{font-size:14px;margin:0 10px;color:#6b7867}.controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 5px 7px}.instruction{display:flex;gap:13px;align-items:flex-start}.step{display:flex;align-items:center;justify-content:center;border:1px dashed #6e8a74;width:30px;height:30px;border-radius:50%;flex-shrink:0;margin-top:5px}.instruction p{font-size:17px;margin:2px 0;color:var(--muted)}#equation{font-size:25px;line-height:1.2;color:#297469}#cards{display:flex;gap:14px;padding:3px 5px}.card{position:relative;min-width:96px;height:103px;border:2px solid #fffdf1;border-radius:12px;background:#276e65;color:#fff9e8;box-shadow:0 4px 0 #174d46,0 8px 15px #24433020;font-size:38px;touch-action:none;user-select:none}.card:nth-child(2){background:#a86643;box-shadow:0 4px 0 #774529,0 8px 15px #24433020;transform:rotate(3deg)}.card:first-child{transform:rotate(-3deg)}.card small{display:block;font:10px sans-serif;letter-spacing:2px;opacity:.8}.card.selected{outline:3px solid #e5b64f;outline-offset:3px}.card.pending{outline:3px dashed #e5b64f;outline-offset:3px}.feedback{padding:8px 14px;border-radius:9px;background:#eaf0e5;font-size:18px;min-height:42px}.feedback.error{background:#ffe5d8;color:#974529}.feedback.success{background:#e5eeb8}footer{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--muted);padding-top:10px}footer button{font-size:14px;min-height:30px;padding:3px 10px}#progress{display:flex;gap:5px}#progress i{height:7px;width:15px;border-radius:3px;background:#dce1d0}#progress i.done{background:#357769}dialog{border:1px solid #ded6b9;border-radius:20px;padding:30px;max-width:500px;width:calc(100% - 32px);color:var(--ink);background:var(--paper);box-shadow:0 20px 80px #152c3650;max-height:90dvh;overflow:auto}dialog::backdrop{background:#112f32a6;backdrop-filter:blur(5px)}dialog h2{font-size:43px;line-height:1.1;margin:10px 0}dialog p{line-height:1.4}dialog ol{padding-left:22px}dialog li{margin-bottom:9px}.primary{background:#246b62;color:white;border:0;padding:12px 24px;margin-top:18px}.note{background:#f6e8b1;border-radius:4px;padding:15px;transform:rotate(-1deg);font-size:19px}.result-score{font-size:64px;color:#246b62}.result-score small{font-size:22px}#breakdown{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:20px}details{margin-top:22px}#history{font-size:17px}.drag-ghost{position:fixed;z-index:99;pointer-events:none;width:75px;height:100px;opacity:.8;transform:translate(-50%,-70%)}.drag-ghost img{width:100%;height:100%;object-fit:contain}.drag-ghost.card{height:85px;display:grid;place-items:center}.burst{position:absolute;z-index:5;top:25px;background:#ffe89b;border-radius:15px;padding:8px 15px;white-space:nowrap;transform:translateX(-50%);animation:float 1s infinite} @keyframes float{50%{translate:0 -6px}}@keyframes walk{to{translate:0 -6px;rotate:3deg}}@keyframes shake{25%{translate:-6px}75%{translate:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.notebook{margin:0;border-radius:0;padding:14px 12px;background:repeating-linear-gradient(#fffaf1 0,#fffaf1 31px,#dfe9df 32px)}.brand small{font-size:8px;letter-spacing:1px}.compass{display:none}h1{font-size:35px}.head-actions button{padding:4px 9px;font-size:14px}.stats{padding:10px 12px}.best{display:none}.stats small{font-size:8px}.stats strong{font-size:25px}.mission-note{display:none}.controls{align-items:center}.instruction h2{font-size:26px}.instruction p{font-size:15px}.step{display:none}#cards{gap:10px}.card{min-width:67px;height:86px;padding:3px;font-size:31px}.card small{font-size:8px}.nav{gap:4px}.nav span{display:none}.feedback{font-size:16px}footer{gap:5px;font-size:12px}#progress{gap:3px}#progress i{width:8px}#viewport{height:232px}.landscape-top{font-size:8px;padding:10px}#equation{font-size:21px}}
@media(max-height:700px) and (min-width:701px){.notebook{margin:5px auto;padding-top:10px;padding-bottom:8px}header{margin-bottom:8px}h1{font-size:35px}.stats{padding:5px 20px}.mission{padding:5px}.landscape-top{padding:5px 15px}#viewport{height:213px}#world{height:213px}.controls{padding:9px 5px}.card{height:85px}.feedback{min-height:36px;padding:5px 12px}footer{padding-top:5px}}
 #targetArt{display:block;width:65px;height:57px;font-size:0!important;background:url('assets/harita.png') center/contain no-repeat}#targetArt.treasure{background-image:url('assets/hazine.png')}
 .tick{background:#fff8dedb;height:59px}.tick:hover{background:#fff0b5}.rail{z-index:1;pointer-events:none}.tick:before{z-index:2}#fullscreen{font-family:sans-serif}#world .burst{pointer-events:none}
@media(min-width:701px) and (max-height:850px){.notebook{margin:5px auto;padding-top:8px;padding-bottom:8px}header{margin-bottom:7px}h1{font-size:34px}.stats{padding:5px 20px}.mission{padding:5px}.landscape-top{padding:5px 15px}#viewport{height:230px}.controls{padding:8px 5px}.card{height:85px}.feedback{min-height:35px;padding:5px 12px}footer{padding-top:5px}}
@media(min-width:701px) and (max-height:650px){header{height:42px}.brand small{font-size:8px}h1{font-size:29px}.compass{font-size:35px}.stats strong{font-size:23px}.stats{padding:4px 18px}.mission{padding:3px}.mission b{font-size:18px}.mission>span:first-child{font-size:27px}#viewport{height:169px}#world{height:164px}.rail{top:115px}.tick{top:98px;height:61px}#explorer{top:17px;height:99px;width:70px;margin-left:-35px}#target{top:15px}#camp{top:56px}#distanceTrail{top:110px}.controls{padding:7px 3px}.instruction h2{font-size:26px}.instruction p{font-size:15px}.card{height:72px;font-size:30px}#equation{font-size:22px}.nav{padding:3px}.feedback{font-size:16px}footer{font-size:12px}}

.stats{justify-content:center;text-align:center;margin-bottom:8px}#viewport{scrollbar-width:none}#viewport::-webkit-scrollbar{display:none}

.card-panel{display:flex;flex-direction:column;align-items:stretch;gap:9px}#refreshCards{font-size:16px;padding:4px 10px;min-height:34px}.coin{position:absolute;top:137px;transform:translateX(-50%);width:27px;height:27px;display:grid;place-items:center;color:#a1620c;background:radial-gradient(circle at 30% 25%,#fff7b2,#efb936);border:2px solid #be841e;border-radius:50%;box-shadow:0 2px 0 #895621;pointer-events:none;font:17px sans-serif}.save-row{display:flex;gap:7px}.save-row input{min-width:0;flex:1;padding:9px;border:1px solid #abc2b6;border-radius:9px;font:inherit}#saveForm{margin-top:20px}#saveStatus{font-size:16px}.ranking-table{width:100%;border-collapse:collapse;text-align:left}.ranking-table td,.ranking-table th{padding:7px;border-bottom:1px solid #d8dfcd}.ranking-table td:last-child{text-align:right}.head-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-height:650px) and (min-width:701px){.coin{top:78px}.card{height:60px}.card-panel{gap:6px}.controls{padding:5px 3px}}@media(max-width:700px){.head-actions{max-width:165px;gap:3px}.head-actions button{min-height:31px;font-size:12px}#refreshCards{font-size:13px}.card-panel{flex-shrink:0}.save-row{flex-wrap:wrap}}

/* Smartboard: suppress browser menus, selection and horizontal history gestures. */
html,body{overscroll-behavior-x:none}.notebook,.notebook *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.notebook img{-webkit-user-drag:none}#viewport{overscroll-behavior-x:contain;touch-action:pan-x}.card,#explorer{touch-action:none}input,textarea{-webkit-user-select:text;user-select:text}
