/* Artwork comes from the theme's original, locally hosted painted atlas. */
.tactile-game{width:min(100%,560px);margin:0 auto;--ink:#355e50;--paper:#fff9e8;color:var(--ink)}
.tactile-game button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer;border:0;color:var(--ink)}
.tactile-game button:focus-visible{outline:4px solid #355e50;outline-offset:4px}
.tactile-game button[hidden],.tactile-game [hidden]{display:none!important}
.tactile-game svg{display:block;max-width:100%}
.tactile-pond,.tactile-picnic,.tactile-stream{position:relative;isolation:isolate;overflow:hidden;border-radius:46% 42% 40% 36% / 20% 24% 19% 22%;background:#e9f2df url('../painted-games/meadow.webp') center/cover;box-shadow:inset 0 0 24px 8px #fff9e8;min-height:300px}
.tactile-pond:before,.tactile-stream:before{content:'';position:absolute;inset:24% 4% 6%;border-radius:46%;background:radial-gradient(ellipse at 40% 35%,#d8eeea 0,#94c5c7 75%);box-shadow:inset 0 0 22px #edf6e8;opacity:.94;z-index:-1}
.pond-pad{position:absolute;width:24%;aspect-ratio:1;background:transparent;padding:4px;min-height:64px;min-width:64px;display:grid;place-items:center}
.pond-pad>svg{grid-area:1/1;width:100%;height:100%;filter:drop-shadow(0 5px 3px #3f787529)}
.pond-pad .pond-reveal{visibility:hidden}.pond-pad.is-open>svg:first-child{visibility:hidden}.pond-pad.is-open .pond-reveal{visibility:visible}
.pond-pad.is-open:after{content:'';position:absolute;inset:55% -4% 4%;border:3px solid #eaf9ec;border-radius:50%;z-index:-1}
.pad-0{left:7%;top:28%}.pad-1{left:40%;top:18%}.pad-2{right:4%;top:43%}.pad-3{left:19%;bottom:3%}.pad-4{left:49%;bottom:0}
.tactile-picnic{min-height:290px}.picnic-friend{position:absolute;top:4%;left:calc(50% - 48px)}.picnic-friend svg{width:96px;height:96px}
.picnic-blanket{position:absolute;bottom:7%;left:8%;width:84%;padding:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:repeating-linear-gradient(90deg,#eab9a54d 0 16px,transparent 16px 32px),repeating-linear-gradient(0deg,#eab9a54d 0 16px,#fff4dc 16px 32px);border-radius:38% 30% 24% 20%;box-shadow:0 8px 0 #6d775321}
.picnic-place{border-radius:50%;background:#fff9e8;box-shadow:inset 0 0 0 3px #d9c5a3;aspect-ratio:1;display:grid;place-items:center;padding:4px}.picnic-place svg{width:100%;height:auto;opacity:.28;filter:grayscale(1)}
.picnic-place.is-filled svg{opacity:1;filter:none}.picnic-place.is-target{outline:4px solid #b77528;outline-offset:3px}.picnic-place.is-target svg{opacity:.65;filter:none}
.tactile-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px auto 0;width:94%}
.tactile-choices button{display:grid;place-items:center;min-height:88px;aspect-ratio:1;background:radial-gradient(ellipse,#fffdf0 40%,#ead8ae 98%);border-radius:35% 42% 34% 38%;box-shadow:0 5px 0 #91734326;padding:8px}
.tactile-choices button svg{width:100%;height:100%;max-height:100px}.tactile-choices button:disabled{opacity:.25;cursor:default;box-shadow:none}
.tactile-stream{min-height:300px}.tactile-stream:before{inset:0 19%;border-radius:32% 22%;transform:rotate(12deg)}
.bridge-slots{position:absolute;display:flex;align-items:center;justify-content:space-between;left:12%;right:8%;top:38%;gap:4px}.bridge-slot{display:grid;place-items:center;width:33%;height:104px;border-bottom:3px dashed #497d7b}
.bridge-slot svg{opacity:.25;filter:grayscale(1);width:100%;height:100%;object-fit:contain}.bridge-slot.is-target{border-bottom:5px solid #8b5d25}.bridge-slot.is-filled svg{opacity:1;filter:none}.bridge-slot.size-0 svg{width:46%;height:46%}.bridge-slot.size-1 svg{width:70%;height:70%}
.bridge-choices button[data-size="0"] svg{width:42%;height:42%}.bridge-choices button[data-size="1"] svg{width:68%;height:68%}.bridge-choices button[data-size="2"] svg{width:100%;height:100%}
.bridge-friend{position:absolute;top:12%;left:calc(3% + var(--bridge-step,0)*24%)}.bridge-friend svg{width:72px;height:72px}.bridge-home{position:absolute;right:1%;bottom:3%}.bridge-home svg{width:76px;height:76px}
.bridge-rounds{display:flex;justify-content:center;gap:12px;margin:20px}.bridge-rounds i{width:18px;height:18px;border:2px solid #6d8b66;border-radius:50%;background:#fff9e8}.bridge-rounds i.is-done{background:#6d8b66}
.tactile-actions{min-height:76px;display:flex;justify-content:center;padding-top:12px}.tactile-actions button,[data-tactile-next]{display:grid;place-items:center;min-width:64px;min-height:64px;margin:0 auto;border-radius:50%;background:#e5edcf;padding:8px}
.tactile-finish{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 0 0}.tactile-finish svg{width:64px;height:64px}.tactile-check{font-size:38px;font-weight:bold;color:#3e7155}
@media(max-width:360px){.tactile-pond,.tactile-stream{min-height:260px}.tactile-picnic{min-height:230px}.picnic-blanket{padding:10px;gap:6px;left:5%;width:90%}.tactile-choices{gap:10px}.tactile-choices button{min-height:70px}.bridge-friend svg{width:60px;height:60px}}
@media(prefers-reduced-motion:reduce){.tactile-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
