@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700&display=swap');
:root{--paper:#fbf5ea;--ink:#49382b;--muted:#786653;--line:#dccbb5;--green:#795337;--orange:#b77444;--soft:#f0e4d2;--serif:'Noto Serif TC',serif;--sans:'Noto Sans TC',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}a{color:inherit}button{border:0}button,summary{touch-action:manipulation}button:hover:not(:disabled){filter:brightness(.94)}.site-header{max-width:1440px;margin:auto;height:88px;padding:0 5.5%;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:30px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none}.brand strong{font-family:var(--serif);font-size:25px;font-weight:700;letter-spacing:3px}.brand-en{font-size:11px;letter-spacing:2px;margin:5px 0 0 3px}.brand-icon{display:grid;grid-template-columns:repeat(2,9px);gap:3px;transform:rotate(-8deg);margin-right:3px}.brand-icon i{height:9px;background:var(--green);border-radius:1px}.brand-icon i:nth-child(2){background:var(--orange);transform:translateY(-3px)}.header-note{color:var(--muted);font-size:12px;margin:auto}.text-button{padding:6px 0;background:transparent;font-size:12px;font-weight:500;display:inline-flex;gap:8px;align-items:center}.site-header .text-button{margin-left:auto}main{max-width:1280px;margin:auto;padding:39px 38px 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:31px}.eyebrow{font-size:10px;font-weight:500;letter-spacing:2px;margin:0 0 14px;display:flex;gap:10px;align-items:center}.orange-dot{height:6px;width:6px;background:var(--orange);border-radius:50%}.eyebrow-divider{color:#b8a48c;margin:0 4px}h1{font-family:var(--serif);font-weight:600;font-size:clamp(27px,3vw,39px);letter-spacing:1.5px;line-height:1.5;margin:0}h1 em{font-style:normal;color:var(--green)}.intro-copy{color:var(--muted);font-size:12px;letter-spacing:.4px;margin:12px 0 0}.location-stamp{display:flex;gap:13px;align-items:center;border:1px solid #d8c4a8;border-radius:3px;padding:17px 20px;transform:rotate(-2deg);margin-right:4px;background:#f5ead8}.stamp-pin{font-size:31px;color:var(--green);font-weight:400}.location-stamp strong{font-family:var(--serif);font-size:16px;display:block;letter-spacing:2px}.location-stamp div>span{font-size:9px;letter-spacing:2px;display:block;color:var(--muted);margin-top:7px}.north{display:flex;flex-direction:column;align-items:center;margin-left:15px;font-size:22px;line-height:1}.north small{font-size:9px;margin-top:5px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:31px}.board-toolbar{height:40px;display:flex;justify-content:space-between;align-items:flex-start;font-size:11px}.board-label,.stats{display:flex;gap:10px;align-items:center}.live-dot{width:5px;height:5px;background:var(--green);border-radius:50%}.toolbar-divider{color:#baa88e;margin:0 2px}#boardSize{color:var(--muted)}.stats{font-variant-numeric:tabular-nums;gap:12px;color:#75614e}.stats strong{font-size:12px;color:var(--ink);font-weight:500;margin-left:5px}.timer-icon{font-size:16px;margin-left:10px}#timer{font-size:12px;font-weight:500;min-width:36px}.board-frame{position:relative;background:#e6d5ba;border:6px solid #fff;border-radius:3px;box-shadow:0 3px 16px #63442612;aspect-ratio:1;width:100%;overflow:hidden}.board{width:100%;height:100%;display:grid;grid-template-columns:repeat(var(--n,3),1fr);grid-template-rows:repeat(var(--n,3),1fr);gap:2px;background:#fff8ec;touch-action:pan-y}.tile{padding:0;position:relative;min-width:0;min-height:0;background-color:#e9dcc8;background-repeat:no-repeat;cursor:grab;box-shadow:inset 0 0 0 1px #73533922;border-radius:0;transition:box-shadow .13s,filter .13s;touch-action:none;user-select:none;-webkit-user-select:none}.tile:hover:not(:disabled){filter:brightness(1.035);z-index:1;box-shadow:inset 0 0 0 3px #ffffffab}.tile.selected,.tile.drag-target{box-shadow:inset 0 0 0 4px var(--orange);z-index:2;filter:brightness(1.06)}.tile.selected:after{content:'↔';position:absolute;right:8px;top:8px;background:var(--orange);color:#fff;border-radius:50%;font-size:18px;width:27px;height:27px;display:grid;place-items:center}.tile:focus-visible{outline:none;box-shadow:inset 0 0 0 4px var(--orange);z-index:2}.tile.dragging{opacity:.55;cursor:grabbing}.board.solved{gap:0}.board.solved .tile{box-shadow:none;cursor:default}.board.solved .tile:after{display:none}.load-overlay,.error-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f5ead8;z-index:5;gap:15px;text-align:center;padding:25px}.load-overlay strong,.error-overlay strong{font-family:var(--serif);font-size:21px;font-weight:500}.load-overlay>span:last-child,.error-overlay p{font-size:12px;color:var(--muted);line-height:1.8}.spinner{width:29px;height:29px;border:2px solid #d8c5a7;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:10px}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}.error-symbol{font-size:38px;color:var(--green)}.map-credit{display:flex;justify-content:space-between;gap:10px;line-height:1.6;font-size:9px;color:#786653;margin:9px 2px 0}.map-credit a{text-underline-offset:2px}.map-credit>span:first-child{max-width:73%}.map-credit>span:last-child{white-space:nowrap}.board-bottom{display:flex;justify-content:space-between;align-items:center;margin:9px 0 0;gap:12px}.board-bottom p{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px;margin:0}.board-bottom p>span{font-size:21px;color:var(--green)}.board-bottom .text-button{font-size:11px;white-space:nowrap}.sidebar{padding-top:0}.settings-card{border:1px solid var(--line);padding:22px;background:#fffbf3;border-radius:4px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}.section-heading h2{font-size:15px;font-weight:500;letter-spacing:1px;margin:0}.section-heading>span{font-size:9px;letter-spacing:1.5px;color:var(--muted)}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:11px;color:#75614e;padding:0;margin-bottom:12px}.mode-options{display:flex;flex-direction:column;gap:9px}.mode-button{background:transparent;border:1px solid var(--line);border-radius:3px;display:flex;align-items:center;padding:9px 11px;text-align:left;gap:12px;position:relative}.mode-button.active{background:#f0e2cb;border-color:var(--green)}.mode-button.active:after{content:'';height:7px;width:7px;border-radius:50%;background:var(--green);margin-left:auto}.mode-button>span:last-child{font-size:12px;font-weight:500}.mode-button small{display:block;font-size:9px;letter-spacing:.4px;color:var(--muted);font-weight:400;margin-top:4px}.mode-art{height:36px;width:43px;display:block;position:relative;overflow:hidden;border-radius:2px;flex-shrink:0}.street-art{background:repeating-linear-gradient(8deg,transparent 0 9px,#fff 9px 12px),repeating-linear-gradient(102deg,#dae4d0 0 12px,#fff 12px 15px)}.mode-art:after{content:'';width:12px;height:63px;background:#a7c6cc;position:absolute;left:14px;top:-12px;transform:rotate(30deg);border-radius:60%}.satellite-art{background:repeating-linear-gradient(15deg,#666f4e 0 4px,#87916b 4px 7px,#465847 7px 9px)}.satellite-art:after{background:#516b65;width:13px}.difficulty-field{margin-top:22px}.difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.difficulty{border:1px solid var(--line);background:transparent;border-radius:3px;padding:11px 3px 9px}.difficulty span{display:block;font-size:15px;letter-spacing:.5px}.difficulty small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.difficulty.active{background:var(--green);color:#fff;border-color:var(--green)}.difficulty.active small{color:#f5e4ce}.field-note{font-size:9px;color:var(--muted);margin:11px 0 0}.hint-card{margin-top:17px;background:#f2e5cf;border:1px solid #dec8a7;border-radius:4px;padding:21px 22px 17px}.hint-card .section-heading{margin-bottom:11px}.hint-card .section-heading>span{font-size:24px;color:var(--green);line-height:1}.hint-intro{font-size:11px;line-height:1.8;color:#786653;margin:0 0 16px}.hint-card details{border-top:1px solid #decaac;border-bottom:1px solid #decaac}.hint-card summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;font-size:12px;padding:14px 0;gap:8px}.hint-card summary::-webkit-details-marker{display:none}.hint-card summary>span>span,.place-hint>span>span{margin-right:8px}.hint-card details[open] .chevron{transform:rotate(45deg)}.chevron{transition:transform .2s}.hint-content{padding-bottom:14px}.hint-content p{line-height:1.9;font-size:11px;color:#6e553e;margin:0 0 10px}.hint-content .text-button{font-size:10px}.hint-content>span{float:right;font-size:10px;color:var(--muted);padding-top:6px}.place-hint{padding:15px 0 10px;background:transparent;width:100%;display:flex;justify-content:space-between;font-size:12px;text-align:left}.hint-footnote{font-size:9px;line-height:1.9;color:#786653;margin:4px 0 0}.field-notes{padding:25px 15px 0}.field-notes .eyebrow{font-size:8px;letter-spacing:1.8px;color:#88715a;margin-bottom:11px}.field-notes h3{font-family:var(--serif);font-size:16px;font-weight:500;letter-spacing:.6px;margin:0 0 11px}.field-notes>p:last-of-type{font-size:11px;line-height:2;color:#786653;margin:0}.river-decoration{margin-top:13px;position:relative}.river-decoration svg{width:100%;height:38px;fill:none;stroke:#d1b894;stroke-width:1}.river-decoration span{display:block;font-size:8px;color:#88715a;letter-spacing:2px;text-align:right;margin-top:2px}footer{border-top:1px solid var(--line);margin-top:33px;padding:21px 0;display:flex;justify-content:space-between;align-items:center;color:#786653;font-size:9px;letter-spacing:1px}footer>span:first-child{font-size:8px;letter-spacing:2px}footer p{margin:0;font-size:10px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);padding:12px 22px;background:var(--ink);color:#fff;box-shadow:0 3px 16px #0002;border-radius:4px;opacity:0;transition:.2s;pointer-events:none;z-index:30;font-size:12px;text-align:center;max-width:90vw;width:max-content}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{background:var(--paper);border:1px solid #d9c5aa;border-radius:6px;padding:42px;max-width:490px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 20px 90px #51391e30}dialog::backdrop{background:#49332166;backdrop-filter:blur(4px)}dialog h2{font-family:var(--serif);font-size:23px;line-height:1.7;font-weight:600;margin:10px 0 15px}dialog ol{padding-left:20px;color:#75614e;font-size:12px;line-height:2}dialog li{padding-left:4px;margin:10px 0}.dialog-close{position:absolute;top:12px;right:17px;background:transparent;font-size:27px;color:var(--muted)}.primary-button{background:var(--green);color:#fff;border-radius:3px;padding:13px 22px;font-size:12px;letter-spacing:1px}.win-icon{font-size:52px;color:var(--orange);display:block;margin-bottom:16px}#winDialog{text-align:center}#winDialog .eyebrow{justify-content:center;font-size:9px}#winDialog>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.8}#winDialog h2{font-size:24px}#winDialog>.text-button{display:flex;margin:12px auto 0}#winDialog>.primary-button{width:100%}.win-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:27px 0 30px}.win-stats>div+div{border-left:1px solid var(--line)}.win-stats small{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.win-stats strong{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}
@media(min-width:761px){main{max-width:min(1180px,calc(100svh + 100px));padding-top:25px}.site-header{height:72px;max-width:1180px}.intro{margin-bottom:24px}h1{font-size:33px;line-height:1.4}.location-stamp{padding:14px}.location-stamp strong{font-size:14px}.intro-copy{font-size:11px}.board-toolbar{height:34px}.settings-card{padding:19px}.section-heading{margin-bottom:18px}.mode-art{height:30px}.difficulty-field{margin-top:18px}.field-notes{padding-top:20px}}@media(max-width:1000px){main{padding-left:28px;padding-right:28px}.game-layout{gap:22px;grid-template-columns:minmax(0,1fr) 265px}.settings-card,.hint-card{padding:19px}.field-notes{padding-left:8px;padding-right:8px}.location-stamp{padding:14px}.intro-copy{font-size:11px}.site-header{padding:0 28px}.header-note{display:none}.board-bottom p{font-size:10px}}@media(max-width:760px){.site-header{height:68px;padding:0 20px}.brand-en{font-size:8px;letter-spacing:1.5px}.brand strong{font-size:23px}.site-header .text-button{font-size:10px}main{padding:26px 18px 0}.intro{margin-bottom:24px}.intro .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:11px}h1{font-size:27px;letter-spacing:0}.intro-copy{font-size:10px;line-height:1.8;margin-top:8px}.location-stamp{display:none}.game-layout{display:flex;flex-direction:column;gap:23px}.board-toolbar{height:33px;font-size:10px}.board-frame{border-width:4px}.board-bottom{margin-top:12px}.board-bottom p{font-size:10px;gap:6px}.board-bottom .text-button{font-size:10px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.settings-card,.hint-card{margin:0;padding:17px 15px}.section-heading{margin-bottom:18px}.section-heading h2{font-size:13px}.section-heading>span{font-size:7px;letter-spacing:.5px}.hint-card .section-heading h2{font-size:13px}.mode-button{gap:7px;padding:7px}.mode-art{height:29px;width:31px}.mode-button>span:last-child{font-size:10px}.mode-button small{font-size:7px}.difficulty-options{gap:5px}.difficulty{padding:9px 2px}.difficulty span{font-size:12px}.difficulty small{font-size:9px}.difficulty-field{margin-top:18px}.field-note{font-size:8px;line-height:1.8}.hint-intro{font-size:10px}.hint-card summary,.place-hint{font-size:11px}.hint-footnote{font-size:8px}.field-notes{grid-column:1/-1;padding:9px 3px 0;display:none}.map-credit{font-size:8px}.map-credit>span:last-child{font-size:7px}footer{margin-top:25px;padding:18px 0;gap:10px}footer p{font-size:8px}footer>span:last-child{display:none}dialog{padding:35px 24px}dialog h2,#winDialog h2{font-size:21px}}@media(max-width:370px){.sidebar{grid-template-columns:1fr}.mode-options{flex-direction:row}.mode-button{flex:1}.board-label{gap:6px}.stats{gap:7px}.brand-en{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}
/* Larger play area and direct manipulation. */
@media(min-width:761px){main{max-width:1440px;padding:25px 42px 0}.site-header{max-width:1440px}.game-layout{grid-template-columns:minmax(0,1fr) 292px;gap:30px}.board-frame{max-width:1024px;margin-inline:auto}.intro{margin-bottom:25px}.puzzle-section{min-width:0}}
.board-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}.board-frame{overflow:visible}.board{overflow:visible}.tile{transition:box-shadow .15s,filter .15s,opacity .15s;isolation:isolate}.tile.dragging{opacity:.18;box-shadow:inset 0 0 0 2px #cebaa1;cursor:grabbing}.board.is-dragging,.board.is-dragging .tile{cursor:grabbing}.tile.drag-target{box-shadow:inset 0 0 0 4px var(--orange);filter:brightness(.92);z-index:2}.tile.drag-target:after{content:'放開交換';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:8px 12px;background:#6b482ded;color:#fff;border-radius:4px;white-space:nowrap;font-size:12px;pointer-events:none}.tile.hint-mark{box-shadow:inset 0 0 0 4px #2477b5;z-index:1}.hint-badge{position:absolute;top:0;left:0;display:block;background:#2477b5;color:#fff;font-size:11px;line-height:1.5;letter-spacing:1px;padding:4px 9px;border-bottom-right-radius:4px;pointer-events:none}.tile.hint-mark.selected{box-shadow:inset 0 0 0 4px var(--orange)}.tile.hint-reveal{animation:hint-reveal .8s ease-out}@keyframes hint-reveal{0%,50%{box-shadow:inset 0 0 0 6px #2477b5,0 0 0 5px #2477b52b}100%{box-shadow:inset 0 0 0 4px #2477b5}}.focus-mode{overflow:hidden}.focus-mode .game-layout{position:fixed;inset:0;z-index:20;background:var(--paper);padding:20px 28px;grid-template-columns:minmax(0,1fr) 265px;gap:25px;overflow:auto}.focus-mode .puzzle-section{min-width:0;align-self:start}.focus-mode .board-frame{width:min(100%,calc(100svh - 126px))}.focus-mode .board-toolbar,.focus-mode .board-bottom,.focus-mode .map-credit{max-width:calc(100svh - 126px);margin-inline:auto}.focus-mode .board-toolbar{align-items:center}.focus-mode .sidebar{max-height:calc(100svh - 40px);overflow:auto}.focus-mode .field-notes{display:none}.focus-mode .board-bottom{margin-top:10px}dialog{z-index:2000}
@media(max-width:1000px) and (min-width:761px){main{padding-inline:25px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:23px}.board-bottom{align-items:flex-start;flex-wrap:wrap;gap:4px}.board-actions{margin-left:auto;gap:16px}}
@media(max-width:760px){main{padding-inline:10px}.intro{padding-inline:8px}.settings-card .section-heading>span{display:none}.board-frame{border-width:3px}.board-actions{gap:12px}.board-bottom{flex-wrap:wrap;gap:6px}.board-bottom p{font-size:10px}.board-actions{margin-left:auto}.hint-badge{font-size:9px;padding:3px 6px}.tile.drag-target:after{font-size:9px;padding:6px}.focus-mode .game-layout{display:flex;flex-direction:column;padding:13px 8px;gap:22px}.focus-mode .board-frame{width:100%}.focus-mode .board-toolbar,.focus-mode .board-bottom,.focus-mode .map-credit{max-width:none}.focus-mode .sidebar{overflow:visible;max-height:none;width:100%}.focus-mode .puzzle-section{width:100%}.focus-mode .board-bottom{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.tile.hint-reveal{animation:none}}
/* Keep the map texture shared; only translate the picked tile during dragging. */
.tile{background-image:var(--map-image,none)}
.board.is-dragging .tile{transition:none;filter:none}
.board .tile.dragging,.board .tile.dragging:hover{opacity:1;z-index:50;will-change:transform;cursor:grabbing;filter:none;transition:none;box-shadow:0 6px 16px #62462640,inset 0 0 0 2px #fff}
.board .tile.drag-target{filter:none;transition:none}
.board .tile.drag-target:after{pointer-events:none}
/* Taiwan landscape collection. The small drawings are illustrative, not map tiles. */
.destinations{margin:0 0 26px}.destinations-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}.destinations-heading h2{font-size:12px;font-weight:500;letter-spacing:1px;margin:0}.destinations-heading>span{font-size:9px;color:var(--muted)}.destination-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.destination-card{min-width:0;position:relative;display:flex;align-items:center;gap:10px;padding:10px;background:#fffbf3;border:1px solid var(--line);border-radius:4px;text-align:left;transition:border-color .15s,background-color .15s}.destination-card.active{background:#f1e3cc;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.destination-art{width:44px;height:52px;flex-shrink:0;background:#f1eadc;border:1px solid #d8cdbb;border-radius:3px;overflow:hidden}.destination-art svg{width:100%;height:100%;display:block}.art-water,.art-sea{fill:#a8c8c9}.art-water-line{fill:none;stroke:#a8c8c9;stroke-width:18}.art-water-line.thin{stroke-width:7}.art-road{fill:none;stroke:#fffdf5;stroke-width:5}.art-land{fill:#d4dfbf;stroke:#9cad8d;stroke-width:1}.art-bridge{fill:none;stroke:#faf5df;stroke-width:6}.art-contour{fill:none;stroke:#b6c8a0;stroke-width:3}.art-islet,.art-park{fill:#96af7f}.art-rail{fill:none;stroke:#b4a895;stroke-width:3;stroke-dasharray:6 3}.art-shore{fill:none;stroke:#f6edca;stroke-width:5}.art-runway{fill:none;stroke:#9caa98;stroke-width:9}.destination-copy{display:block;min-width:0}.destination-copy small{display:block;font-size:8px;color:var(--muted);letter-spacing:.5px;margin-bottom:7px;white-space:nowrap}.destination-copy strong{display:block;font-size:12px;font-weight:500;line-height:1.6;white-space:nowrap}.destination-selected{display:none;font-size:7px;position:absolute;right:6px;top:5px;color:var(--green)}.destination-card.active .destination-selected{display:block}.location-stamp div>span{max-width:230px;font-size:8px;letter-spacing:1.3px}.location-switch{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;background:transparent;text-align:left;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:19px}.location-switch small{display:block;font-size:9px;color:var(--muted);font-weight:400;margin-bottom:5px}.location-switch strong{display:block;font-family:var(--serif);font-size:15px;font-weight:600;letter-spacing:1px}.location-switch>span:last-child{font-size:10px;white-space:nowrap;color:var(--green)}#locationDialog{max-width:690px}.location-dialog-note{font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:22px}#locationDialog .destination-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#locationDialog .destination-art{width:55px;height:60px}#locationDialog .destination-copy strong{font-size:14px}.intro .eyebrow{letter-spacing:1.7px}.focus-mode .location-switch{padding-bottom:12px;margin-bottom:15px}
@media(max-width:1150px) and (min-width:761px){.destination-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.destination-art{width:40px;height:40px}.destination-copy small{margin-bottom:4px}.destinations{margin-bottom:22px}}
@media(max-width:760px){.destinations{margin-bottom:23px}.destinations-heading{align-items:flex-start;padding-inline:7px;flex-direction:column;gap:7px;margin-bottom:11px}.destinations-heading h2{font-size:11px}.destinations-heading>span{font-size:8px}.destination-cards{display:flex;gap:9px;overflow-x:auto;padding:2px 3px 10px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c6ae8b transparent}.destination-card{min-width:157px;scroll-snap-align:start;gap:9px;padding:9px}.destination-art{width:39px;height:43px}.destination-copy strong{font-size:11px}.destination-copy small{font-size:7px;margin-bottom:4px}.location-switch{padding-bottom:13px;margin-bottom:16px;gap:5px}.location-switch strong{font-size:12px;letter-spacing:0}.location-switch>span:last-child{font-size:8px}.location-switch small{font-size:8px}.intro .eyebrow{font-size:7px;letter-spacing:1px}#locationDialog{padding:34px 19px;max-height:calc(100svh - 36px);overflow:auto}#locationDialog .destination-cards{display:grid;overflow:visible;padding:0;gap:8px}#locationDialog .destination-card{min-width:0;display:block;padding:10px}#locationDialog .destination-art{width:100%;height:53px;margin-bottom:7px;display:block}#locationDialog .destination-art svg{width:65px;margin:auto}#locationDialog .destination-copy strong{font-size:12px}#locationDialog .destination-copy small{font-size:8px}}

.board.solved .tile:disabled{opacity:1}
@font-face{font-family:ChenYuluoyan;src:url('./assets/fonts/ChenYuluoyan-Thin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
.secondary-button{background:transparent;color:var(--green);border:1px solid #cfbaa0;border-radius:3px;padding:11px 18px;font-size:12px}#winDialog>.secondary-button{display:block;width:100%;margin-top:10px}.postcard-link{color:#b16e44;font-weight:600}#postcardDialog{width:calc(100% - 48px);max-width:1250px;max-height:calc(100svh - 44px);padding:33px;overflow:auto;background:#fbf5ea}#postcardDialog .dialog-close{top:12px;right:20px}.postcard-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;padding-right:24px}.postcard-heading .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:7px}.postcard-heading h2{font-size:27px;letter-spacing:1px;margin:0 0 8px}.postcard-heading #postcardPlace{font-size:11px;color:var(--muted);margin:0}.postcard-format{font-size:9px;letter-spacing:2px;line-height:1.9;text-align:right;color:#88715a}.postcard-format strong{display:block;font-size:12px;font-weight:400;letter-spacing:1px}.postcard-format small{display:block;font-size:8px;letter-spacing:.5px}.postcard-editor{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px;align-items:start}.postcard-preview-panel{min-width:0;align-self:center}.postcard-preview{position:relative;aspect-ratio:4/5;background:#eee2ce;box-shadow:0 7px 30px #63442615;border-radius:2px;overflow:hidden}.postcard-preview canvas{display:block;width:100%;height:100%}.postcard-loading{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:13px;background:#f5ead8;text-align:center;padding:20px}.postcard-loading strong{font-family:var(--serif);font-size:17px;font-weight:500}.postcard-loading>span:last-child{font-size:11px;color:var(--muted)}.postcard-preview-note{font-size:10px;color:var(--muted);line-height:1.8;margin:14px 0 0}.postcard-controls{padding:4px 0 0}.postcard-controls legend{margin-bottom:12px;font-size:11px;letter-spacing:.5px}.postcard-field{margin-top:21px}.postcard-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.postcard-field label{font-size:11px;letter-spacing:.5px}.postcard-field-heading>span{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums}.postcard-field textarea,.postcard-field input{display:block;width:100%;font:400 19px/1.8 ChenYuluoyan,serif;color:var(--ink);background:#fffdf7;border:1px solid #d5bfa1;border-radius:3px;padding:10px 12px;resize:vertical}.postcard-field textarea{min-height:115px;max-height:170px}.postcard-field input{height:49px}.postcard-field textarea:focus,.postcard-field input:focus{outline:2px solid #b48a5b;outline-offset:1px}.postcard-field textarea::placeholder,.postcard-field input::placeholder{color:#8f7b65;font-size:16px}.postcard-handwriting-note{font-size:9px;color:#88715a;line-height:1.8;margin:12px 0 20px}#postcardDownload{width:100%;font-size:12px}.postcard-return{display:flex;justify-content:center;width:100%;margin-top:9px;font-size:10px}
@media(max-width:1000px){#postcardDialog{padding:28px 24px}.postcard-editor{grid-template-columns:minmax(0,1fr) 255px;gap:20px}.postcard-heading h2{font-size:25px}}
@media(max-width:760px){#postcardDialog{width:calc(100% - 22px);padding:29px 17px 20px;max-height:calc(100svh - 24px)}.postcard-heading{padding-right:15px;margin-bottom:18px;gap:8px}.postcard-heading .eyebrow{font-size:7px;letter-spacing:.8px}.postcard-heading h2{font-size:21px;letter-spacing:0}.postcard-heading #postcardPlace{font-size:10px}.postcard-format{display:none}.postcard-editor{display:flex;flex-direction:column;gap:18px}.postcard-preview-panel,.postcard-controls{width:100%}.postcard-preview-note{font-size:9px;margin-top:10px}.postcard-controls{padding:0}.postcard-controls legend{font-size:10px}.postcard-field{margin-top:17px}.postcard-field textarea{min-height:102px}.postcard-handwriting-note{font-size:8px;margin-bottom:15px}.postcard-loading strong{font-size:13px}.postcard-loading .spinner{height:23px;width:23px}.postcard-loading{gap:7px}.postcard-loading>span:last-child{font-size:9px}.board-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(min-width:761px){.postcard-preview-panel{align-self:start;position:sticky;top:0}}
/* A travel postcard hanging on a wooden noticeboard. */
.postcard-stage{isolation:isolate;position:relative;overflow:hidden;padding:85px 15% 42px;border:9px solid #806347;border-radius:3px;background:radial-gradient(ellipse at 12% 30%,#503e2929 0 2%,transparent 2.5% 8%,#503e2914 8.5% 9%,transparent 10%),repeating-linear-gradient(1deg,#d5b38a26 0 2px,transparent 3px 8px),repeating-linear-gradient(0deg,#b69770 0 118px,#957a58 119px,#d6b88f 122px,#b79872 125px,#bca17d 242px);box-shadow:inset 0 3px 12px #3e2c2940}.postcard-preview{z-index:2;box-shadow:2px 12px 16px #3c2a2a4f;transform:rotate(-1.5deg);background:#fafbf8;border-radius:0}.postcard-stage:after{content:'';position:absolute;width:18px;height:62px;left:calc(50% - 9px);top:58px;z-index:5;background:linear-gradient(90deg,#b58e5e,#e7c89d 40%,#d7b785 75%,#bd9868);box-shadow:3px 4px 5px #483d3044;transform:rotate(1deg);border-radius:1px}.postcard-stage:before{content:'';position:absolute;width:23px;height:3px;background:#978367;left:calc(50% - 12px);top:87px;z-index:6;transform:rotate(1deg)}.postcard-rope{position:absolute;left:-5%;top:26px;width:110%;height:55px;border-bottom:3px solid #dcc8a1;border-radius:0 0 50% 50%;transform:rotate(-3deg);filter:drop-shadow(0 3px 2px #49372777);z-index:4}.neighbor-card{position:absolute;top:93px;width:58%;height:68%;border:9px solid #fffdf6;border-bottom-width:49px;box-shadow:3px 10px 13px #402d2a55;background:repeating-linear-gradient(18deg,transparent 0 35px,#f9f4dd 36px 41px,transparent 42px 74px),linear-gradient(103deg,#c8d6b4 0 40%,#93bac6 41% 58%,#cbd9bb 59%);z-index:1}.neighbor-left{left:-54%;transform:rotate(8deg)}.neighbor-right{right:-54%;transform:rotate(7deg);background:repeating-linear-gradient(113deg,transparent 0 19px,#f5efdf 20px 23px,transparent 24px 40px),linear-gradient(23deg,#aeb994 0 42%,#82a7b2 43% 62%,#b9c8aa 63%)}.postcard-edition{font-size:10px;line-height:1.8;letter-spacing:1px;color:var(--muted);margin:0 0 26px}.postcard-controls .postcard-field:first-of-type{margin-top:0}.brand strong{letter-spacing:.5px;font-size:20px}.brand-game{font-family:var(--sans);font-size:14px;font-weight:500;margin-left:3px}
@media(max-width:760px){.brand strong{font-size:16px}.brand-icon{display:none}.brand-game{font-size:11px}.site-header{gap:12px;padding-inline:15px}.postcard-stage{padding:60px 12% 27px;border-width:6px}.postcard-rope{top:17px;height:44px}.postcard-stage:after{top:41px;width:13px;height:43px;left:calc(50% - 6px)}.postcard-stage:before{width:17px;left:calc(50% - 8px);top:62px}.neighbor-card{top:71px}.postcard-edition{margin-bottom:18px;font-size:9px}}
/* Fit the complete desktop game inside the current viewport. */
@media(min-width:761px){
  body{height:100svh;display:flex;flex-direction:column;overflow:hidden}.site-header{height:58px;flex-shrink:0;width:100%;max-width:none;padding-inline:28px}.brand strong{font-size:20px}.header-note{font-size:10px}main{flex:1;min-height:0;width:100%;max-width:none;padding:14px 28px 12px;display:flex;flex-direction:column}.intro{flex-shrink:0;height:48px;margin-bottom:12px}.intro .eyebrow,.intro-copy,.destinations,main>footer{display:none}h1{font-size:25px;line-height:1.3}.location-stamp{padding:7px 12px;transform:none}.location-stamp strong{font-size:12px}.location-stamp div>span{font-size:7px;margin-top:4px}.stamp-pin{font-size:22px}.north{font-size:18px}.game-layout{--board-edge:min(calc(100svh - 218px),calc(100vw - 366px));flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.puzzle-section{width:var(--board-edge);max-width:100%;margin-inline:auto;align-self:start}.board-frame{width:100%;max-width:none}.board-toolbar{height:30px;align-items:center}.map-credit{margin-top:6px;font-size:8px}.board-bottom{margin-top:5px;flex-wrap:wrap;gap:0 10px}.board-bottom p{font-size:10px}.board-bottom .text-button{font-size:10px}.board-actions{gap:15px;margin-left:auto}.sidebar{height:100%;min-height:0;overflow-y:auto;scrollbar-width:thin;padding-right:4px}.settings-card{padding:15px}.location-switch{padding-bottom:10px;margin-bottom:12px}.settings-card .section-heading{margin-bottom:12px}.mode-options{gap:6px}.mode-button{padding:6px 9px}.mode-art{height:25px}.difficulty-field{margin-top:13px}legend{margin-bottom:8px}.difficulty{padding:7px 3px}.difficulty small{margin-top:3px}.field-note{margin-top:7px}.hint-card{margin-top:12px;padding:14px 15px}.hint-intro{margin-bottom:10px}.hint-footnote{font-size:8px}.field-notes{display:none}.focus-mode .game-layout{--board-edge:min(calc(100svh - 126px),calc(100vw - 366px))}.focus-mode .puzzle-section{width:var(--board-edge)}
}
@media(min-width:761px){.game-layout{--board-edge:min(calc(100svh - 232px),calc(100vw - 366px))}.mode-options{flex-direction:row}.mode-button{flex:1;min-width:0;padding:10px 7px;gap:3px}.mode-art{display:none}.mode-button>span:last-child{font-size:11px}.mode-button small{font-size:8px;letter-spacing:0}.mode-button.active:after{height:5px;width:5px;flex-shrink:0}.hint-intro{display:none}.hint-card .section-heading{margin-bottom:8px}.hint-card summary{padding-block:11px}.hint-footnote{line-height:1.6;margin-bottom:0}}
@media(min-width:761px){#postcardDialog{padding:24px}.postcard-heading{margin-bottom:16px}.postcard-stage{padding-top:65px;padding-bottom:28px}.postcard-preview{width:min(100%,calc((100svh - 350px)*.8));margin-inline:auto}.postcard-stage:after{top:38px}.postcard-stage:before{top:67px}.postcard-rope{top:6px}}

/* The hanger holds a paper tab outside the map. */
.postcard-preview{overflow:visible}.postcard-preview:before{content:'';position:absolute;width:28px;height:10px;background:#fafbf8;left:calc(50% - 14px);top:-9px;z-index:-1}.postcard-stage:after{top:20px;height:42px}.postcard-stage:before{top:39px}.postcard-rope{top:0;height:54px}
@media(max-width:760px){.postcard-stage:after{top:15px;height:40px}.postcard-stage:before{top:34px}.postcard-rope{top:0;height:49px}}
/* Compact controls for a personal mountain-and-sea postcard. */
.ink-row{display:flex;align-items:center;gap:10px;margin-top:10px}.ink-row>span{font-size:9px;color:var(--muted);white-space:nowrap}.ink-options{display:flex;gap:4px;flex-wrap:wrap}.ink-swatch{width:29px;height:29px;position:relative;border:1px solid transparent;background:transparent;border-radius:50%;padding:4px}.ink-swatch:before{content:'';display:block;width:100%;height:100%;background:var(--swatch);border-radius:50%}.ink-swatch[aria-pressed=true]{border-color:var(--swatch);box-shadow:0 0 0 1px var(--swatch)}.ink-swatch[aria-pressed=true]:after{content:'✓';position:absolute;color:white;font:11px/1 sans-serif;left:9px;top:9px}.postcard-controls select{width:100%;border:1px solid #d5bfa1;border-radius:3px;background:#fffdf7;color:var(--ink);font:11px var(--sans);padding:10px 9px;min-height:38px}.postcard-controls select:focus-visible{outline:2px solid #b48a5b;outline-offset:1px}.postcard-motifs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.motif-button{background:#fffdf7;border:1px solid #d7c3a8;border-radius:3px;padding:7px 4px;color:#7a6045;display:flex;flex-direction:column;align-items:center;gap:4px}.motif-button svg{width:45px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.motif-none{height:25px;font-size:21px}.motif-button>span:last-child{font-size:9px}.motif-button[aria-pressed=true]{background:#f0e1c8;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);color:var(--green)}.motif-settings{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.motif-settings label{font-size:9px;color:var(--muted);display:flex;flex-direction:column;gap:7px}.postcard-detail-note{font-size:9px;line-height:1.8;color:var(--muted);margin:9px 0}.postcard-downloads{display:grid;gap:9px}.download-option{width:100%;display:flex;flex-direction:column;align-items:center;gap:7px}.download-option strong{font-size:12px;font-weight:500}.download-option>span{font-size:9px;font-weight:400;letter-spacing:.3px;opacity:.8}.postcard-controls .postcard-field textarea{min-height:82px;max-height:130px}.postcard-handwriting-note{margin-bottom:14px}.postcard-controls>.postcard-field{margin-top:19px}.postcard-controls>.postcard-field:first-of-type{margin-top:0}.postcard-controls .postcard-field legend{font-size:11px;letter-spacing:.5px}.postcard-edition{margin-bottom:19px}.postcard-format{align-self:flex-start;margin-top:5px}@media(min-width:761px){.postcard-controls{max-height:calc(100svh - 190px);overflow-y:auto;padding:4px 9px 8px 1px;scrollbar-width:thin;scrollbar-color:#c6ae8b transparent}.postcard-editor{grid-template-columns:minmax(0,1fr) 315px}.postcard-preview-panel{position:sticky;top:0}.postcard-heading{margin-bottom:16px}}@media(max-width:760px){.postcard-controls{max-height:none;overflow:visible}.ink-swatch{height:32px;width:32px}.ink-options{gap:5px}.ink-swatch[aria-pressed=true]:after{top:11px;left:11px}.postcard-motifs{gap:8px}.motif-button{padding:10px}.motif-button svg{height:29px;width:54px}.postcard-format{display:none}}
/* Clear destination entry points in the header and game controls. */
.site-header .header-note{display:none}.site-header{gap:18px}.site-header .text-button{margin-left:0}.place-picker{margin-left:auto;background:#795337;color:#fff;border:1px solid #795337;border-radius:5px;padding:9px 14px;font-size:12px;font-weight:600;display:inline-flex;gap:14px;align-items:center;min-height:37px;white-space:nowrap}.place-picker span{font-size:16px;line-height:1}.location-switch{display:flex;align-items:center;gap:10px;background:#795337;color:#fff;padding:14px 12px;border:1px solid #68472e;border-radius:5px;margin-bottom:17px;box-shadow:0 4px 10px #62462618}.location-picker-icon{width:23px;height:28px;fill:none;stroke:#fff1dd;stroke-width:1.6;flex-shrink:0}.location-switch small{color:#f5e4ce;font-size:8px;margin-bottom:6px}.location-switch strong{color:#fff;font-size:13px;letter-spacing:.3px}.location-switch .location-action{margin-left:auto;display:flex;align-items:center;gap:5px;background:#fff8ea;color:#795337;border-radius:3px;padding:8px 7px;font-size:10px;font-weight:600;white-space:nowrap}.location-action b{font-size:13px;font-weight:400}.focus-mode .location-switch{padding:13px 10px}.postcard-share{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.postcard-share h3{font:500 12px var(--sans);margin:0 0 12px}.postcard-share>.secondary-button{width:100%;font-size:12px;min-height:43px;background:#f3e7d5}.line-invite{display:flex;justify-content:center;align-items:center;text-decoration:none;border:1px solid #b59b7a;border-radius:3px;background:#fff9ed;color:#795337;font-size:11px;min-height:41px;padding:10px;margin-top:13px}.postcard-share-fallback{padding:11px 12px;background:#f3e8d7;border:1px solid #dfcdb4;border-radius:3px;font-size:10px;line-height:1.9}.postcard-share-fallback p{margin:0 0 6px}.postcard-share-fallback .text-button{font-size:10px}.postcard-share button:disabled{cursor:wait}.postcard-controls .postcard-field textarea{min-height:102px;max-height:150px}@media(max-width:760px){.site-header{gap:10px}.place-picker{padding:8px 10px;font-size:11px;gap:6px;min-height:34px}.site-header #helpOpen{font-size:0;width:27px;height:27px;min-width:27px;border:1px solid #bda88b;border-radius:50%;justify-content:center}.site-header #helpOpen:before{content:'?';font-size:14px}.site-header #helpOpen>span{display:none}.location-switch{display:grid;grid-template-columns:20px 1fr;padding:12px 10px;gap:8px}.location-picker-icon{width:19px;height:24px}.location-switch strong{font-size:12px}.location-switch .location-action{grid-column:1/-1;margin:0;justify-content:space-between;padding:7px 9px;font-size:10px}.location-switch small{font-size:8px}.postcard-share h3{font-size:13px}}
@media(max-width:360px){.brand strong{font-size:13px;white-space:nowrap}.brand-game{font-size:9px}.site-header{gap:8px}.place-picker{font-size:10px;padding-inline:8px;gap:5px}.brand{gap:5px}}
.location-switch>span.location-action{font-size:10px}

/* Allow the expanded collection to remain accessible in a short viewport. */
#locationDialog{max-height:calc(100svh - 44px);overflow-y:auto;scrollbar-width:thin}
.destinations .destination-copy strong{white-space:normal;line-height:1.5}

/* Architectural location cards use schematic building and roof shapes. */
.art-building{fill:#e3dcc8;stroke:#8d9d84;stroke-width:1.5;stroke-linejoin:round}
.art-roof{fill:#c5d2cd;stroke:#8a9e92;stroke-width:1.5;stroke-linejoin:round}
.destination-copy strong{white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* Pale oak, cream paper and walnut controls. Texture stays behind the map. */
:root{--wood:#efe3d0;--wood-edge:#c8ab82;--panel:#fffbf3}
body{
  background-color:var(--wood);
  background-image:
    repeating-linear-gradient(0deg,transparent 0 178px,rgba(150,111,65,.10) 179px,rgba(255,253,244,.65) 180px,transparent 182px),
    repeating-linear-gradient(2deg,transparent 0 7px,rgba(151,111,68,.035) 8px,transparent 10px 18px),
    radial-gradient(ellipse at 12% 25%,rgba(255,252,239,.65),transparent 65%),
    linear-gradient(100deg,#f5ead8,#ede0ca 58%,#f3e8d6);
}
.site-header{background:rgba(255,250,240,.76);border-bottom-color:#d8c3a5;box-shadow:0 2px 12px #76512b08}
.settings-card{background:var(--panel);border-color:#dcc8ab;box-shadow:0 5px 20px #79532e0a}
.hint-card{background:linear-gradient(135deg,#f8eedc,#f0e0c4);border-color:#dcc29c}
.board-frame{border-color:#fffaf1;background:#e6d5ba;box-shadow:0 5px 20px #79532e20,0 0 0 1px #d5bd99}
.location-stamp{background:#fff7e9;border-color:#d9c2a2}
.mode-button.active,.destination-card.active{background:#f1e3cc}
.place-picker,.primary-button,.difficulty.active{background:linear-gradient(135deg,#896344,#705034);border-color:#705034}
.location-switch{background:linear-gradient(115deg,#98714c,#795337);border-color:#795337;box-shadow:0 4px 12px #79532e1c}
.location-switch .location-action{background:#fff7e8;color:#68472e}
.difficulty.active small{color:#fff0dc}
.dialog-close{color:#786653}
.postcard-stage{border-color:#c6aa80;background:
  radial-gradient(ellipse at 12% 30%,#98774f10 0 2%,transparent 2.5% 8%,#98774f08 8.5% 9%,transparent 10%),
  repeating-linear-gradient(1deg,#b9956214 0 2px,transparent 3px 8px),
  repeating-linear-gradient(0deg,#ead8b9 0 118px,#cbb18a 119px,#f5e6cc 122px,#d9c09b 125px,#e6d1af 242px);
  box-shadow:inset 0 2px 10px #79532e18;
}
.sidebar,.postcard-controls,#locationDialog{scrollbar-color:#c6ae8b transparent}
@media(forced-colors:active){body,.site-header,.settings-card,.hint-card,.board-frame,.location-stamp,.mode-button.active,.destination-card.active,.place-picker,.primary-button,.difficulty.active,.location-switch{background-image:none}}

/* A self-contained practice map, separate from the timed puzzle. */
#tutorialDialog{width:calc(100% - 32px);max-width:570px;max-height:90dvh;overflow-y:auto;padding:30px 34px 22px;overscroll-behavior:contain}
#tutorialDialog [hidden]{display:none!important}
#tutorialDialog .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:10px}
#tutorialDialog h2{font-size:25px;line-height:1.45;margin:0 0 17px;text-wrap:balance}
.tutorial-guidance{padding:13px 16px;border:1px solid var(--line);border-radius:5px;background:#f1e5d3;min-height:81px}
.tutorial-step{color:#795337;font-size:11px;letter-spacing:.6px;font-weight:600}
#tutorialInstruction{font-size:15px;line-height:1.7;margin:5px 0 0}
.tutorial-selected-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tutorial-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:22px;align-items:center;margin:20px 0}
.tutorial-practice,.tutorial-copy{min-width:0}
.tutorial-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;aspect-ratio:1;padding:6px;background:#d9c5a8;border:1px solid #c8b190;border-radius:7px}
.tutorial-tile{position:relative;min-width:0;min-height:0;padding:0;border:2px solid #fff8e9;border-radius:3px;background-image:url('./assets/tutorial-map.svg');background-size:200% 200%;background-repeat:no-repeat;touch-action:manipulation;transition:box-shadow .16s,opacity .16s;box-shadow:0 1px 3px #49332120}
.tutorial-tile:disabled{opacity:1;cursor:default}
#tutorialDialog[data-stage="click"] .tutorial-tile:disabled,#tutorialDialog[data-stage="drag"] .tutorial-tile:disabled{opacity:.48}
.tutorial-tile.is-practice-target{cursor:pointer}
.tutorial-tile.is-selected{outline:3px solid #795337;outline-offset:-3px;box-shadow:inset 0 0 0 3px #fff2cf,0 0 0 2px #795337}
#tutorialDialog[data-stage="drag"] .tutorial-tile.is-practice-target{touch-action:none;cursor:grab}
.tutorial-tile.is-dragging{z-index:3;cursor:grabbing!important;box-shadow:0 10px 22px #49332155;will-change:transform}
.tutorial-tile.is-drop-target{outline:3px dashed #795337;outline-offset:-5px;box-shadow:inset 0 0 0 5px #fff2cf}
#tutorialDialog[data-stage="done"] .tutorial-board{border-color:#72906b;box-shadow:0 0 0 3px #9bb08a38}
.tutorial-map-caption,.tutorial-reference figcaption{color:var(--muted);font-size:10px;line-height:1.7;text-align:center;margin:8px 0 0}
.tutorial-reference{display:flex;align-items:center;gap:12px;margin:0}
.tutorial-reference img{display:block;width:72px;height:72px;border:3px solid #fff9ec;border-radius:3px;box-shadow:0 2px 7px #49332120}
.tutorial-reference figcaption{text-align:left;margin:0}
.tutorial-reference figcaption span{display:block;font-size:12px;margin-top:8px}
.tutorial-detail{font-size:13px;line-height:1.85;color:var(--muted);margin:12px 0 16px;min-height:72px}
.tutorial-actions,.help-actions{display:flex;flex-wrap:wrap;gap:10px}
.tutorial-actions{position:sticky;bottom:0;background:var(--paper);z-index:5;padding:8px 0}
.tutorial-actions button{min-height:46px;flex:1;padding:12px 15px;font-size:13px}
.tutorial-actions .secondary-button{background:#fff9ed}
.tutorial-footer-note{color:var(--muted);font-size:11px;line-height:1.7;margin:12px 0 0;text-align:center}
.help-actions button{min-height:44px}
@media(max-width:480px){#tutorialDialog{padding:24px 20px 18px}#tutorialDialog h2{font-size:22px}.tutorial-content{grid-template-columns:minmax(0,1fr) 68px;gap:12px 16px;align-items:center;margin:14px 0 10px}.tutorial-copy{display:contents}.tutorial-guidance{grid-row:1;grid-column:1/-1;padding:11px 12px}.tutorial-practice{grid-row:2;grid-column:1}.tutorial-reference{grid-row:2;grid-column:2;display:block}.tutorial-reference img{width:68px;height:68px}.tutorial-reference figcaption{text-align:center;margin-top:8px}.tutorial-detail{grid-row:3;grid-column:1/-1;font-size:13px;margin:0;min-height:48px}#tutorialInstruction{font-size:14px}.tutorial-actions button{font-size:12px;padding:11px 12px}.tutorial-map-caption{font-size:9px}.tutorial-reference figcaption{font-size:10px}.tutorial-footer-note{font-size:10px;margin-top:8px}}

@media(prefers-reduced-motion:reduce){.tutorial-tile{transition:none}}
@media(forced-colors:active){.tutorial-tile.is-selected,.tutorial-tile.is-drop-target{outline-color:Highlight}.tutorial-guidance{border-color:CanvasText}}
