@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#355447;background:#f5eedc;font-synthesis:none;--ink:#355447;--cream:#fff9e9;--line:#d7d7b9}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #b65f49;outline-offset:4px}a{color:inherit}.shell{height:100dvh;min-height:500px;display:flex;flex-direction:column;padding:16px 24px 14px;max-width:1700px;margin:auto}.top{height:80px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:0 4px 14px}.brand{color:#292626;text-decoration:none;display:flex;align-items:center;gap:12px;font-family:Fraunces,Georgia,serif;font-size:29px;font-weight:600;line-height:1}.brand b{color:#b87e48;font-weight:500}.brand small{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:2.7px;margin-top:10px}.brand-dog{width:60px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f0dfc5;font-size:65px;padding-bottom:10px}.top-right{display:flex;align-items:center;gap:16px}.connection{font-size:12px;color:#758575}.connection:before{content:'';display:inline-block;width:7px;height:7px;background:#82966b;border-radius:50%;margin-right:7px}.wallet{display:inline-flex;align-items:center;gap:7px;background:#f0dfaa;padding:10px 15px;border:1px solid #d6bd7f;border-radius:24px;font-weight:700;font-size:17px}.wallet small{font-size:11px;font-weight:500}.wallet svg{width:19px;height:19px}.icon-button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #cccdb7;background:transparent;border-radius:50%}.icon-button svg{width:19px;height:19px}.world{isolation:isolate;position:relative;flex:1;overflow:hidden;border:2px solid #739581;border-radius:23px;background:#b4dcd1;box-shadow:0 5px 0 #d6dbbf;min-height:280px}#scene{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.room-heading{position:absolute;left:28px;top:24px;pointer-events:none;text-shadow:0 1px 5px #e8f0d7}.eyebrow{font-size:9px;font-weight:800;letter-spacing:2.4px}h1,h2,h3{font-family:Fraunces,Georgia,serif;letter-spacing:-.6px;font-weight:600}h1{font-size:35px;margin:6px 0}p{line-height:1.6} .room-heading p{font-size:12px;margin:0}.room-info{position:absolute;right:20px;top:25px;display:flex;flex-direction:column;align-items:flex-end;gap:7px;font-size:11px}.room-info span:first-child{padding:8px 12px;background:#fff8e6c9;border:1px solid #8aa49155;border-radius:20px}.saved{color:#466c56}.walk-hint{position:absolute;left:50%;bottom:69px;transform:translateX(-50%);font-size:11px;background:#fff8e6cc;border-radius:20px;padding:7px 14px;pointer-events:none;white-space:nowrap}.places{position:absolute;bottom:15px;left:14px;right:14px;display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.places button{background:#fff9e9e8;border:1px solid #66837175;border-radius:16px;padding:8px 13px;font-size:11px;box-shadow:0 2px 0 #53745e22}.toolbar{display:flex;align-items:center;justify-content:center;gap:26px;min-height:81px;padding-top:13px;flex-shrink:0}.toolbar button{width:93px;border:0;background:none;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 12px;border-radius:16px}.toolbar button:hover{background:#e3e7cc}.toolbar svg{width:23px;height:23px}.toolbar .my-dog{background:#355447;color:#fff9e4;box-shadow:0 3px 0 #203b30;padding:11px 20px}.toast{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#355447;color:#fff9e9;padding:14px 24px;max-width:90%;border-radius:16px;text-align:center;box-shadow:0 8px 35px #243c3833;z-index:5}.toast[hidden]{display:none}dialog{border:1.5px solid #607c68;border-radius:25px;padding:34px;width:min(650px,calc(100% - 28px));max-height:calc(100dvh - 36px);background:var(--cream);color:var(--ink);box-shadow:0 24px 100px #233b3d55;overflow:auto}dialog::backdrop{background:#263d3b66;backdrop-filter:blur(5px)}.panel-close{position:absolute;right:16px;top:16px;border:1px solid var(--line);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;background:#f5edda;z-index:2}.panel-close svg{width:16px}.modal-top{padding-right:26px}.modal-top h2{font-size:35px;margin:8px 0 10px}.modal-top p{font-size:13px;color:#6c7b66;margin-top:0}#panel-error{color:#a34c3e;font-size:13px;margin:12px 0 0}.primary{border:1px solid #244c3b;background:#355447;color:#fff8e2;border-radius:12px;padding:13px 20px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px}.secondary{border:1px solid #c5c9ac;border-radius:12px;padding:12px 16px;background:#f3ecd5;font-weight:600}.full{width:100%}.center{text-align:center}.welcome-art{width:100%;height:155px;border-radius:18px;background:linear-gradient(#cfe4d4,#e9ecd0);margin:12px 0}.fine{font-size:11px;color:#7b816b}.color-grid{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 22px}.color{border:3px solid transparent;border-radius:50%;height:33px;width:33px;box-shadow:inset 0 0 0 1px #35544744}.color[aria-pressed=true]{border-color:#355447;outline:2px solid #fff9e9;outline-offset:-5px}label{display:block;font-size:12px;font-weight:700;margin:18px 0 6px}input{width:100%;border:1px solid #b3bfa5;border-radius:10px;padding:13px 14px;background:#fffdf5;color:#355447}input::placeholder{color:#88947b}.split{display:flex;justify-content:space-between;gap:10px;align-items:center}.section-label{font-size:10px;font-weight:800;letter-spacing:2px;margin:23px 0 10px}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.item{border:1px solid #d4d7bd;border-radius:16px;padding:10px;text-align:center;background:#f5f0dc}.item canvas{width:100%;height:85px;display:block}.item strong{font-size:12px;display:block;min-height:28px}.item button{border:1px solid #c6caa8;border-radius:10px;padding:7px 12px;background:#fff9e6;font-size:11px;width:100%}.item button:hover{background:#dce6c6}.island{position:relative;width:100%;height:345px;background:#a5d3cc;border-radius:20px;overflow:hidden;border:1px solid #86b0a0}.island:before{content:'';position:absolute;inset:36px 25px 30px;transform:rotate(-7deg);border-radius:42% 55% 45% 47%;background:#b8ce8c;border:12px solid #f0dfaf;box-shadow:0 0 0 9px #bce0d1}.island:after{content:'SADIE’S ISLAND';position:absolute;bottom:18px;left:0;right:0;text-align:center;letter-spacing:3px;font-size:10px;color:#4c7a70}.map-stop{position:absolute;transform:translate(-50%,-50%);border:2px solid #78937a;border-radius:12px;padding:9px 12px;background:#fff7df;font-size:11px;font-weight:700;z-index:1;box-shadow:0 3px 0 #78937a55}.map-stop small{display:block;font-size:9px;font-weight:500;margin-top:4px}.map-stop.current{background:#355447;color:#fff9e4}.game-list{display:grid;gap:12px}.game-card{display:flex;gap:15px;align-items:center;text-align:left;border:1px solid #ccd3b8;border-radius:16px;background:#eff0d9;padding:16px}.game-card svg{width:36px;height:36px;flex-shrink:0}.game-card strong{font-family:Fraunces,serif;font-size:21px}.game-card small{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:#73816b}.greetings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.greetings button{border:1px solid #c6ceb2;background:#edf0d8;border-radius:14px;padding:17px;font-size:14px}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.memory-card{height:79px;border:2px solid #77937a;border-radius:13px;background:#9fbea0;box-shadow:0 3px 0 #78967a;color:#fef5dc;font-family:Fraunces;font-size:31px}.memory-card.revealed{background:#fff0ce;color:#355447}.memory-card.matched{background:#e2e9c9;border-color:#b5c69c;box-shadow:none;color:#839a72}.round-info{font-size:12px;font-weight:700;display:flex;justify-content:space-between;margin:15px 0}.order{padding:22px;background:#f1e7cd;border:1px dashed #b49c77;border-radius:12px;text-align:center;margin:14px 0}.order strong{display:block;font-family:Fraunces;font-size:24px;margin:8px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 20px}.choice{border:1px solid #b8c4a7;border-radius:10px;background:#f7f2df;padding:12px 5px;font-size:12px}.choice.selected{background:#cddfb6;border-color:#587d57;box-shadow:0 0 0 1px #587d57}.catch-canvas{width:100%;aspect-ratio:8/5;background:#c4dfca;border-radius:16px;touch-action:none;display:block}.catch-controls{display:flex;gap:12px;margin-top:12px}.catch-controls button{flex:1;padding:15px;touch-action:none}.result{padding:20px;text-align:center}.result h3{font-size:42px;margin:12px 0}.coin-large{font-family:Fraunces;font-size:60px;color:#af8340}.welcome-actions{display:flex;gap:10px;margin-top:18px}.welcome-actions>*{flex:1}button:hover{filter:brightness(.98)}
@media(max-width:700px){.shell{padding:8px 9px max(7px,env(safe-area-inset-bottom));min-height:480px}.top{height:67px;padding:2px 4px 10px}.brand{font-size:21px;gap:7px}.brand-dog{width:38px;height:38px;font-size:45px}.brand small{font-size:6.5px;letter-spacing:1.4px;margin-top:7px}.top-right{gap:6px}.connection,.wide-only{display:none}.wallet{font-size:13px;padding:8px 10px;gap:4px}.wallet small{display:none}.world{border-radius:19px}.room-heading{left:16px;top:18px}.room-heading h1{font-size:27px;margin:5px 0}.room-heading p{font-size:10px;max-width:230px}.room-heading .eyebrow{font-size:7px;letter-spacing:1.8px}.room-info{right:12px;top:115px;font-size:9px}.saved{display:none}.toolbar{gap:4px;min-height:78px;justify-content:space-around;padding-top:11px}.toolbar button{width:62px;padding:7px 5px;font-size:10px}.toolbar .my-dog{padding:10px 8px}.toolbar svg{width:21px;height:21px}.places{gap:4px;bottom:10px;left:6px;right:6px}.places button{font-size:9px;padding:7px 8px}.walk-hint{font-size:10px;bottom:80px}.shop-grid{grid-template-columns:repeat(2,1fr)}dialog{padding:25px 20px}.modal-top h2{font-size:29px}.island{height:320px}.map-stop{font-size:9px;padding:9px 8px}.memory-card{height:65px}.memory-grid{gap:8px}.welcome-actions{flex-direction:column}.icon-button{height:30px;width:30px}}
@media(max-height:560px) and (min-width:700px){.shell{padding:5px 14px}.top{height:52px}.brand small{display:none}.brand{font-size:23px}.brand-dog{height:35px;width:40px}.toolbar{min-height:55px;padding-top:5px;gap:14px}.toolbar button{flex-direction:row;width:auto;gap:8px}.toolbar .my-dog{padding:7px 15px}.room-heading h1{font-size:26px}.room-heading{top:14px}.room-heading .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.memory-card:disabled{opacity:1;cursor:default}.memory-card.matched{opacity:.7}.brand-dog{padding:0}
@media(min-width:701px) and (min-height:561px){.world{width:100%;max-width:calc((100dvh - 193px)*1.6);align-self:center}.room-heading{top:18px;left:20px}.room-heading h1{font-size:29px}.room-heading p{font-size:11px}}
.coat-label{font-size:12px;font-weight:700;margin:14px 0 8px}.color-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.coat-option{border:1.5px solid #d5d8c4;border-radius:12px;background:#fffdf2;padding:9px 5px;display:flex;align-items:center;gap:8px;font-size:11px;text-align:left}.coat-option[aria-pressed=true]{border-color:#355447;background:#e4ecd3;box-shadow:0 0 0 1px #355447}.coat-swatch{width:28px;height:28px;border-radius:50%;flex-shrink:0;border:1px solid #0002}.island.illustrated{height:auto;aspect-ratio:1000/680;border-radius:20px;overflow:hidden;background:#52b7dd;border:3px solid #fff;box-shadow:0 3px 0 #c4d5c6}.island.illustrated:before,.island.illustrated:after{display:none}.illustrated canvas{position:absolute;width:100%;height:100%;inset:0}.illustrated .map-stop{width:max-content;max-width:35%;font-size:12px;padding:7px 10px;border:2px solid #426d66;background:#fffae8;box-shadow:0 3px 0 #234f4d66}.illustrated .map-stop.current{background:#ffe395;color:#244a43;border-color:#9d7134}.illustrated .map-stop small{font-size:9px;color:inherit}.embedded .shell{padding:8px;min-height:470px}.embedded .top{height:57px;padding:0 4px 7px}.embedded .brand{font-size:22px}.embedded .brand small{display:none}.embedded .brand-dog{width:44px;height:40px}.embedded .toolbar{min-height:64px;padding-top:6px}.embedded .world{max-width:none;width:100%}.embedded .connection{display:none}
@media(max-width:700px){.coat-option{flex-direction:column;gap:5px;text-align:center}.illustrated .map-stop{font-size:10px;padding:6px}.illustrated .map-stop small{font-size:8px}.embedded .brand{font-size:19px}.embedded .wallet{font-size:13px;padding:8px}.embedded .toolbar{gap:6px}.embedded .toolbar button{width:61px;padding:8px 4px}.embedded .room-heading{left:14px;top:14px}.embedded .room-heading h1{font-size:24px}}
@media(min-width:701px) and (min-height:561px){.embedded .world{max-width:calc((100dvh - 137px)*1.6);margin-inline:auto}}
/* Bone Island: an immersive account-linked world. */
.embedded .shell{padding:12px 16px;max-width:none}.embedded .top{height:65px}.embedded .toolbar{min-height:76px}.embedded .brand{font-size:27px}.embedded .brand-dog{width:54px;height:48px}.embedded .world{max-width:calc((100dvh - 165px)*1.6);margin-inline:auto;width:100%}.room-heading{color:#234b48}.room-info .saved{padding:3px 6px;background:#fff9e6b0;border-radius:6px}.shop-tabs,.map-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.shop-tabs button,.map-tabs button{border:1px solid #a8baa0;border-radius:20px;padding:9px 13px;background:#fff9e9;font-size:12px}.shop-tabs [aria-pressed=true],.map-tabs [aria-pressed=true]{background:#355447;color:#fff9e9}.item-theme{display:block;font-size:10px;margin:0 0 10px;color:#647462}.item strong{min-height:0;margin:4px 0}.multiplayer-entry{margin-bottom:17px}.table-list{display:grid;gap:8px}.table-players{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:18px 0}.table-players span{padding:10px 14px;border-radius:20px}.seat-one{background:#f0d990}.seat-two{background:#a8d5da}.match-board{display:grid;gap:8px;padding:16px;border-radius:20px;background:#3a6171;margin:18px auto;max-width:430px}.match-board.lines{grid-template-columns:repeat(3,1fr)}.match-board.four{grid-template-columns:repeat(7,1fr);gap:5px;padding:10px}.match-board button{aspect-ratio:1;border:0;border-radius:50%;padding:10%;background:#183e50;display:grid;place-items:center}.match-board button:disabled{opacity:1;cursor:default}.pebble{width:100%;height:100%;border-radius:50%;display:block}.pebble-1{background:radial-gradient(circle at 30% 25%,#ffe9a3,#d0a446);box-shadow:inset 0 -4px 0 #a87d35}.pebble-2{background:radial-gradient(circle at 30% 25%,#d7ffff,#66adb6);box-shadow:inset 0 -4px 0 #41818c}.waiting-art{padding:35px 20px;border:1px dashed #b5b895;border-radius:18px;text-align:center;background:#f2edd7;margin:20px 0}.passport{display:grid;gap:12px;margin:22px 0}.passport-stamp{border:1px dashed #a8b59b;border-radius:16px;padding:18px}.passport-stamp>span{float:left;width:42px;height:42px;display:grid;place-items:center;margin-right:14px;border:2px solid #95a98c;border-radius:50%;font:20px Georgia}.passport-stamp strong{font-size:15px}.passport-stamp p{font-size:12px;margin-bottom:0}.passport-stamp.discovered{background:#e5ecd3}.arrival-panel{width:min(1000px,calc(100% - 30px));padding:0;border-radius:28px;overflow:auto}.arrival{display:grid;grid-template-columns:1.1fr 1fr;min-height:520px}.arrival-art{position:relative;background:#429cc4;display:flex;align-items:center;overflow:hidden}.arrival-art canvas{width:100%;height:auto;transform:scale(1.1)}.arrival-badge{position:absolute;left:25px;right:25px;top:28px;text-align:center;border:1px solid #e6ffff80;background:#ffffff1c;color:#fff7df;border-radius:30px;padding:12px;font-size:9px;letter-spacing:2px}.arrival-copy{padding:68px 35px 32px}.arrival-copy h2{font-size:45px;line-height:1.1;margin:17px 0}.arrival-copy>p{font-size:13px;color:#6c7b66}.arrival-features{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.arrival-features span{font-size:11px;border:1px solid #c7d3b4;border-radius:20px;padding:8px 10px}.arrival-enter{margin-top:18px;font-size:15px;padding:16px}.welcome-stats{display:flex;gap:12px;margin:22px 0}.welcome-stats span{font-size:10px;flex:1}.welcome-stats b{display:block;font:25px Georgia;margin-bottom:4px}.archive-link{font-size:11px;color:#71816a}.arrival-panel #panel-error{padding:0 24px}.pulse-track{height:160px;position:relative;background:linear-gradient(#213c54,#4f6385);border-radius:20px;margin:24px 0;overflow:hidden}.pulse-zone{position:absolute;left:42%;width:16%;height:100%;background:#eed38d44;border-inline:2px solid #f5da8b}.pulse-track>span{position:absolute;bottom:17px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:3px;color:#f1dfac}#pulse-crystal{position:absolute;top:50px;width:30px;height:40px;transform:translateX(-50%) rotate(20deg);background:linear-gradient(100deg,#e7ffff,#8e9fe9);clip-path:polygon(50% 0,100% 35%,80% 100%,20% 100%,0 35%);filter:drop-shadow(0 0 12px #acf5ff)}.skill-tap{padding:19px}.signal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.signal{border:2px solid #a9b79d;border-radius:18px;background:#e7e9d4;padding:20px;font-size:12px;transition:background .1s,box-shadow .1s}.signal span{display:block;width:42px;height:55px;margin:0 auto 14px;border:3px solid #536e63;border-radius:13px;background:var(--lamp);opacity:.4;box-shadow:inset 0 0 0 4px #fff4}.signal-0{--lamp:#f5a574}.signal-1{--lamp:#a3e7b8}.signal-2{--lamp:#c4b4ff}.signal-3{--lamp:#f8db74}.signal.lit{box-shadow:0 0 22px var(--lamp);background:#fffbed}.signal.lit span{opacity:1;box-shadow:0 0 20px var(--lamp)}.signal:disabled{opacity:1}.signal-status{text-align:center;font-weight:bold}
@media(max-width:700px){.embedded .shell{padding:7px}.embedded .top{height:58px}.embedded .brand{font-size:20px;gap:6px}.embedded .brand-dog{width:37px;height:37px}.embedded .top-right{gap:4px}.embedded .top-right .icon-button{width:28px;height:28px}.embedded .wallet{padding:6px;font-size:12px;gap:3px}.embedded .world{max-width:none;min-height:240px}.embedded .toolbar{min-height:70px}.arrival{grid-template-columns:1fr;min-height:0}.arrival-art{height:180px}.arrival-art canvas{max-height:280px;object-fit:contain;transform:scale(1.1)}.arrival-badge{top:13px;padding:8px;font-size:7px;left:35px;right:35px}.arrival-copy{padding:25px}.arrival-copy h2{font-size:34px}.arrival-panel .panel-close{background:#fff8e5}.arrival-copy .eyebrow{font-size:8px}.arrival-copy>p{font-size:12px}.arrival-enter{margin-top:10px}.welcome-stats{margin:15px 0}.arrival-panel{max-height:calc(100dvh - 20px)}.map-tabs button{font-size:10px;padding:8px 9px}.match-board{padding:10px}.match-board.four{gap:4px}.signal-grid{gap:10px}.signal{padding:15px}}
@media(prefers-reduced-motion:reduce){.signal{transition:none}}
.secret-entrances{position:absolute;inset:0;pointer-events:none}.secret-door{pointer-events:auto;position:absolute;width:54px;height:40px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent}.secret-door:hover,.secret-door:focus-visible{background:#e5ffc533;box-shadow:0 0 0 2px #fff3bd,0 0 20px #c3e5b8;outline:0}.secret-door[hidden]{display:none}
.underground .room-heading{color:#f3f3db;text-shadow:0 2px 6px #102430}.underground .room-heading p{color:#d4e1db}.underground .walk-hint{background:#fff9e6e0;color:#24463d}
.dog-profile{border:1px solid #9db49e;border-radius:20px;overflow:hidden;margin:18px 0;background:#fff5df}.profile-scene{width:100%;aspect-ratio:600/330;display:block}.profile-nameplate{padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.profile-nameplate strong{font:23px Fraunces,Georgia,serif}.profile-nameplate span{font-size:11px;color:#677967}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 28px}.profile-stats span{font-size:10px;text-align:center}.profile-stats b{display:block;font:28px Georgia;margin-bottom:5px}.background-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0 18px}.background-choices button{border:1px solid #bec8ac;border-radius:12px;background:#fff8e8;padding:6px;overflow:hidden}.background-choices [aria-pressed=true]{outline:2px solid #456a55;background:#e0e8cf}.background-choices canvas{display:block;width:100%;aspect-ratio:600/330;border-radius:8px}.background-choices span{display:block;padding:8px 3px;font-size:11px}.profile-dressing{margin-top:24px;padding:18px;border:1px dashed #a7b59a;border-radius:15px;background:#eef0dd}.profile-dressing h3{font-size:24px;margin:0}.profile-dressing p{font-size:12px}.item canvas[data-item-art^="bg-"]{height:auto;aspect-ratio:600/330;border-radius:9px}.profile-nameplate strong{overflow-wrap:anywhere}
@media(max-width:700px){.profile-nameplate{align-items:flex-start;flex-direction:column;gap:5px}.profile-stats{gap:6px}.profile-dressing{padding:14px}}
/* Responsive mini-game controls and restrained feedback. */
.catch-canvas{touch-action:none}.catch-controls button{touch-action:none;user-select:none}.memory-card{transition:background-color .16s,transform .16s,opacity .16s}.memory-card.revealed{transform:translateY(-3px)}.memory-card.matched{transform:scale(.94)}.choice{transition:background-color .12s,box-shadow .12s}.choice.selected{box-shadow:inset 0 0 0 2px #6d9479}.signal{transition:background-color .1s,box-shadow .1s}.pebble{transition:transform .18s,background-color .18s}.secret-door{border:none!important;box-shadow:none!important;background:transparent!important}.secret-door:focus-visible{outline:3px solid #f6d78a;outline-offset:6px}
@media(prefers-reduced-motion:reduce){.memory-card,.choice,.signal,.pebble{transition:none}}
.collection-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 12px}.collection-tabs button{border:1px solid #b7bea3;border-radius:14px;background:#fff8e9;padding:12px 15px;font-weight:700}.collection-tabs button[aria-pressed=true]{background:#355447;color:#fff8e9}.collection-banner{border-radius:16px;padding:18px 20px;background:#e5ebd5;margin-bottom:18px}.collection-banner p{margin:7px 0 0;font-size:14px}.collection-banner.halloween{background:#eee0cc;border-left:5px solid #896594}.collection-banner.christmas{background:#e1e9db;border-left:5px solid #b56658}
.view-toggle{border:1px solid #a3b59b;border-radius:18px;padding:8px 13px;background:#fff9e8;color:#355447;font-size:11px;font-weight:700;pointer-events:auto;min-height:34px}.view-toggle[aria-pressed=true]{background:#355447;color:#fff9e8}.room-info{pointer-events:none}.room-info .view-toggle{pointer-events:auto}
@media(max-width:700px){.room-info{top:auto;bottom:110px;right:12px}.room-info #online,.room-info #saved{display:none}.view-toggle{min-height:38px}.places button{min-height:38px;font-size:11px}.room-heading h1{font-size:27px}.room-heading p{max-width:250px}}
/* Illustrated rooms: keep navigation outside the walking surface. */
.shell,.embedded .shell{height:100dvh;min-height:0;padding:max(7px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));max-width:1700px;gap:0;overflow:hidden}
.top,.embedded .top{height:53px;padding:0 5px 7px}.embedded .brand,.brand{font-size:25px}.brand small{display:none}.embedded .brand-dog,.brand-dog{width:47px;height:42px;padding:0}.top-right{gap:10px}
.room-bar{flex:0 0 65px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:5px 8px 10px}.room-heading,.embedded .room-heading{position:static;color:#294b43;text-shadow:none;min-width:0}.room-heading h1,.embedded .room-heading h1{font-size:25px;line-height:1.15;margin:4px 0 0}.room-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.room-heading p{display:none}.room-info{position:static;flex-direction:row;gap:12px;align-items:center;pointer-events:auto}.room-info .saved{display:none}.room-info span:first-child{font-size:10px;background:#e4e8d6}.view-toggle{min-height:38px;white-space:nowrap}
.world,.embedded .world{width:100%;max-width:none;min-height:0;flex:1;border:1px solid #566e61;border-radius:18px;box-shadow:0 3px 0 #d0d6bd;background:#182c31;margin:0;overflow:hidden}
#scene{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.scene-door{pointer-events:auto;position:absolute;transform:translate(-50%,-100%);padding:6px 10px;max-width:145px;border:1px solid #536c59;border-radius:10px;background:#fff9e8ee;color:#304b3e;font-size:11px;font-weight:700;box-shadow:0 2px 6px #15251835;min-height:28px;white-space:nowrap}.scene-door:after{content:'';position:absolute;left:calc(50% - 4px);bottom:-5px;width:7px;height:7px;background:#fff9e8;transform:rotate(45deg);border-right:1px solid #536c59;border-bottom:1px solid #536c59}.scene-door.walking{background:#f7d685}.scene-door.walking:after{background:#f7d685}.scene-door[hidden]{display:none}.scene-door.secret-door{width:44px;height:40px;transform:translate(-50%,-70%)}.scene-door.secret-door:after{display:none}
.places{position:static;min-height:49px;flex:0 0 auto;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:7px;padding:8px 2px 4px;overflow-x:auto;scrollbar-width:none;max-width:100%}.places button{flex-shrink:0;min-height:35px;border-radius:11px;background:#f9f4e4;font-size:11px;padding:8px 12px}.places button:hover{background:#e4ead5}.walk-hint{bottom:12px;font-size:11px;background:#fffae7e8;max-width:calc(100% - 18px);white-space:normal;text-align:center;padding:7px 13px}.toolbar,.embedded .toolbar{min-height:64px;flex:0 0 64px;padding:5px 0 0;gap:24px}.toolbar button,.embedded .toolbar button{width:83px;min-height:50px;padding:6px 10px}.toolbar .my-dog{padding:8px 14px}.travel-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:700px){.top,.embedded .top{height:49px}.brand,.embedded .brand{font-size:19px;gap:5px}.brand-dog,.embedded .brand-dog{width:36px;height:35px}.top-right{gap:5px}.wallet,.embedded .wallet{font-size:12px;padding:6px 8px}.room-bar{flex-basis:60px;padding:6px 2px 9px;gap:7px}.room-heading h1,.embedded .room-heading h1{font-size:24px}.room-heading .eyebrow{font-size:7px;letter-spacing:.6px}.room-info #online{display:none}.view-toggle{padding:8px 10px;font-size:10px}.world,.embedded .world{border-radius:13px;min-height:0}.places{justify-content:flex-start;min-height:51px;padding-top:9px}.places button{min-height:38px;font-size:11px}.toolbar,.embedded .toolbar{min-height:61px;flex-basis:61px;justify-content:space-around;gap:2px}.toolbar button,.embedded .toolbar button{width:63px;padding:6px 5px;min-height:47px}.toolbar .my-dog{padding:7px 10px}.scene-door{font-size:10px;max-width:125px;min-height:32px}.walk-hint{font-size:10px}}
@media(orientation:landscape) and (max-height:520px){.shell,.embedded .shell{display:grid;grid-template-columns:minmax(0,1fr) 67px;grid-template-rows:37px minmax(0,1fr) 41px;column-gap:6px;padding:5px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left))}.top,.embedded .top{grid-row:1;grid-column:1/3;height:37px;padding:0 0 5px}.brand,.embedded .brand{font-size:19px}.brand-dog,.embedded .brand-dog{width:32px;height:29px}.brand span,.top-right .connection{display:none}.top-right{gap:7px}.room-bar{position:absolute;top:8px;left:max(55px,calc(env(safe-area-inset-left) + 45px));right:220px;height:28px;padding:0;z-index:1;pointer-events:none}.room-heading h1,.embedded .room-heading h1{font-size:19px;margin:0}.room-heading .eyebrow{display:none}.room-info #online{display:none}.room-info{pointer-events:auto}.view-toggle{min-height:28px;padding:5px 9px;font-size:10px}.world,.embedded .world{grid-row:2;grid-column:1;height:100%;width:100%;border-radius:11px}.places{grid-row:3;grid-column:1/3;min-height:0;height:41px;padding:5px 0 0;justify-content:center}.places button{min-height:31px;font-size:10px;padding:5px 11px}.toolbar,.embedded .toolbar{grid-row:2;grid-column:2;height:100%;min-height:0;flex-direction:column;justify-content:space-around;gap:0;padding:0}.toolbar button,.embedded .toolbar button{flex-direction:column;gap:3px;min-height:0;width:62px;font-size:9px;padding:5px}.toolbar .my-dog{padding:7px 5px}.toolbar svg{width:20px;height:20px}.walk-hint{font-size:9px;bottom:7px;padding:5px 10px}.scene-door{font-size:10px;min-height:27px;padding:4px 8px}}
.scene-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#f4eddd;color:#355447;font-size:14px;z-index:3}.scene-loading[hidden]{display:none}.scene-loading button{padding:12px 20px;background:#355447;color:#fff9e8;border:0;border-radius:12px}
@media(min-width:901px) and (min-height:521px){.world,.embedded .world,.room-bar{max-width:calc((100dvh - 245px)*1.6);align-self:center}.room-bar{width:100%}}
@media(orientation:landscape) and (max-height:520px){.room-bar{right:265px}}

.scene-door:after{left:calc(50% + var(--tip-offset,0px) - 4px)}
/* Expanded player cards and account-backed island friendships. */
.profile-panel{width:min(1000px,calc(100% - 24px));padding:28px;overscroll-behavior:contain}.profile-panel .modal-top h2{font-size:35px;overflow-wrap:anywhere}.profile-tabs{display:flex;gap:8px;margin:16px 0 20px;flex-wrap:wrap}.profile-tabs button{padding:11px 17px;border:1px solid #a8b99d;border-radius:12px;background:#fff7e3;font-size:12px;font-weight:700}.profile-tabs [aria-pressed=true]{background:#355447;color:#fff9e9}.profile-layout{display:block}.profile-panel .dog-profile{margin:0;border-radius:20px;border:1px solid #819a84}.profile-panel .profile-scene{width:100%;height:auto;aspect-ratio:600/330}.profile-panel .profile-nameplate{padding:17px 22px;background:#fff9e7}.profile-nameplate .level-badge{background:#e6ecd5;color:#355447;border:1px solid #b4c5a0;border-radius:20px;padding:8px 12px;font-weight:700;font-size:12px}.profile-details{padding:3px 4px 17px}.profile-details>.section-label{margin:20px 0 8px}.outfit-chips{display:flex;flex-wrap:wrap;gap:7px}.outfit-chips span{padding:8px 12px;background:#eee8d4;border-radius:10px;font-size:12px}.profile-panel .profile-stats{margin:19px 0 0}.profile-background-section{margin-top:20px;border-top:1px solid #d7d7bd;padding-top:20px}.profile-background-section h3,#friends-panel h3{font-size:26px;margin:5px 0}.profile-panel .background-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.profile-panel .background-choices button{padding:7px;border-radius:15px}.profile-panel .background-choices span{font-size:12px;padding:10px}.friend-actions{display:flex;flex-wrap:wrap;gap:8px}#friend-controls{margin:24px 0 12px}#friend-controls>.primary{width:100%;min-height:44px}.friend-status{font-weight:600;font-size:13px}.back-to-my-dog{margin-top:10px}.friend-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f2eedc;border:1px solid #d1d8be;border-radius:14px;padding:12px;margin:9px 0}.friend-person{border:0;background:none;text-align:left;min-width:0;padding:8px;flex:1}.friend-person strong{display:block;font-size:16px;overflow-wrap:anywhere}.friend-person span{display:block;font-size:12px;margin-top:5px;color:#6b7c67}.friend-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.friend-row-actions button{padding:10px 13px;font-size:12px;min-height:40px}.friend-chip{font-size:11px;padding:8px 11px;background:#e0e8ce;border-radius:16px}.empty-friends{font-size:13px;color:#6e7f66;border:1px dashed #c6ceb2;padding:18px;border-radius:12px}#friends-panel h4{margin:25px 0 10px;font-size:13px}.profile-panel #panel-error{position:sticky;bottom:0;background:#fff9e9}.profile-panel .profile-dressing{margin-top:22px}
@media(max-width:700px){.profile-panel{width:calc(100% - 12px);padding:22px 12px;max-height:calc(100dvh - 12px);border-radius:20px}.profile-panel .modal-top{padding:0 25px 0 5px}.profile-panel .modal-top h2{font-size:29px}.profile-tabs{gap:6px}.profile-tabs button{flex:1;padding:11px 7px;font-size:11px}.profile-panel .dog-profile{border-radius:15px}.profile-panel .profile-nameplate{flex-direction:row;align-items:center;gap:8px;padding:12px}.profile-nameplate strong{font-size:22px}.profile-nameplate .level-badge{font-size:10px;padding:7px 9px;white-space:nowrap}.profile-panel .background-choices{gap:9px;grid-template-columns:1fr}.profile-panel .background-choices span{font-size:13px}.profile-details{padding-inline:5px}.friend-row{padding:9px;gap:6px}.friend-person{padding:5px}.friend-person strong{font-size:14px}.friend-row-actions{max-width:155px;gap:5px}.friend-row-actions button{padding:9px;font-size:11px}.profile-panel .profile-stats{gap:10px}.outfit-chips span{font-size:11px}}
@media(orientation:landscape) and (max-height:520px){.profile-panel{padding:19px;max-height:calc(100dvh - 14px);width:calc(100% - 20px)}.profile-panel .modal-top h2{font-size:25px;margin:5px 0}.profile-panel .modal-top p{font-size:11px;margin-bottom:8px}.profile-tabs{margin:9px 0 14px}.profile-tabs button{padding:8px 14px}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:18px;align-items:start}.profile-details{padding:0}.profile-details>.section-label:first-child{margin-top:3px}.profile-details>.section-label{margin-top:13px}.profile-details>strong{font-size:13px}.profile-panel .profile-nameplate{padding:10px 13px;flex-direction:row;align-items:center}.profile-nameplate strong{font-size:20px}.profile-nameplate .level-badge{font-size:10px;padding:6px}.profile-panel .profile-stats b{font-size:23px}.profile-panel .profile-stats{gap:5px}#friend-controls{margin-top:15px}.profile-panel .background-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.outfit-chips span{padding:5px 8px;font-size:10px}.friend-actions{gap:6px}.friend-actions button{padding:9px 12px;font-size:11px}.profile-details .back-to-my-dog{font-size:11px;padding:9px}}
/* Café tabletop: large counters in portrait, board beside players in landscape. */
.connect-panel .match-board.four{width:min(100%,430px);margin:16px auto;background:#3f736e;border:5px solid #2e5651;box-shadow:0 7px 0 #b58c5e;gap:5px}
.connect-panel .match-board.four button{min-width:0;min-height:0;touch-action:manipulation}
.connect-panel .match-board.four button:disabled{opacity:1;cursor:default}
.connect-panel .table-players span{overflow-wrap:anywhere}
.connect-panel .pebble-1{background:#edbd5d;box-shadow:inset 0 0 0 4px #f8d88e}
.connect-panel .pebble-2{background:#72abc8;box-shadow:inset 0 0 0 4px #a6d3e5}
@media(orientation:landscape) and (max-height:520px){.connect-panel{width:min(850px,calc(100% - 20px));padding:18px 24px}.connect-panel #panel-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,44%);gap:8px 24px;align-items:start}.connect-panel .modal-top{grid-column:1;grid-row:1}.connect-panel .modal-top h2{font-size:28px}.connect-panel .table-players{grid-column:1;grid-row:2;flex-wrap:wrap}.connect-panel .match-board.four{grid-column:2;grid-row:1 / span 5;width:min(100%,calc((100dvh - 84px)*7/6));margin:0 auto;padding:8px;gap:3px}.connect-panel #panel-content>button,.connect-panel #panel-content>p{grid-column:1}.connect-panel .waiting-art{grid-column:1 / -1}}
/* Touch controls: captions sit outside buttons; no browser text-selection callout. */
body,button,canvas,svg,.world{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea{-webkit-user-select:text;user-select:text}button{touch-action:manipulation}button svg{pointer-events:none}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.toolbar button span{display:none}.toolbar button svg{width:28px;height:28px}.game-icon-row{display:flex;align-items:center;gap:14px;padding:8px 0;min-width:0}.game-icon-row .icon-only-game{flex:0 0 48px;width:48px;min-width:48px;height:48px;padding:11px;border-radius:15px;margin:0;display:grid;place-items:center}.icon-only-game svg{width:26px;height:26px}.game-control-caption{font-size:12px;line-height:1.55;text-align:left}.choices .game-icon-row{flex:1;flex-direction:column;gap:6px}.choices .game-control-caption{text-align:center}.choices .selected{outline:3px solid #d4a65c}.game-list .game-icon-row{border-bottom:1px solid #d6d7c4}
.battle-panel{width:min(1000px,calc(100% - 20px));padding:25px;max-height:calc(100dvh - 20px);background:#eef5ed;color:#244954}.battle-heading h2{margin:7px 0;font-size:32px}.battle-heading>p{margin:8px 0;font-size:14px}.battle-captains{display:flex;justify-content:space-between;gap:12px;margin:15px 0;padding:12px;border-radius:12px;background:#d9e8e3;font-size:12px;overflow-wrap:anywhere}.fleet-planner,.battle-boards{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.battle-panel h3{font-size:17px;margin:10px 0}.battle-panel .fine{font-size:11px;margin:8px 0;line-height:1.5}.sea-chart{display:grid;grid-template-columns:18px repeat(10,minmax(0,1fr));gap:3px;background:#1c4d61;padding:9px;border-radius:15px;box-shadow:inset 0 0 0 2px #57898e;color:#d6ece7;width:100%;aspect-ratio:1;box-sizing:border-box}.chart-axis{display:grid;place-items:center;font-size:10px;line-height:1}.sea-cell{border:1px solid #5c96a0;background:#276477;border-radius:4px;padding:0!important;min-width:0;min-height:0;position:relative;aspect-ratio:1;touch-action:manipulation}.sea-cell:disabled{opacity:1;cursor:default}.sea-cell.ship{background:#b6c8bd;border-color:#f0eed2;box-shadow:inset 0 0 0 2px #7e9a96}.sea-cell.selected-ship{outline:2px solid #edcb69;outline-offset:-2px}.sea-cell.hit{background:#ad5b46;border-color:#f0bb82}.sea-cell.hit:after{content:'';position:absolute;inset:25%;border-radius:50%;background:#ffda88;box-shadow:0 0 0 2px #eb8761}.sea-cell.miss:after{content:'';position:absolute;inset:35%;border-radius:50%;background:#ecf5ec}.sea-cell.sunk{background:#793f38;border-color:#f0cb83}.sea-cell:not(:disabled):hover{outline:2px solid #f5da8d;outline-offset:-2px}.fleet-picker{display:flex;flex-wrap:wrap;gap:8px}.fleet-picker>div{display:flex;flex-direction:column;align-items:center;gap:5px;width:calc(50% - 5px)}.fleet-picker button{background:#d1e3df;border:2px solid #8eafaa;border-radius:12px;min-height:49px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px}.fleet-picker button[aria-pressed=true]{background:#f4dfaa;border-color:#a2824d}.fleet-picker>div>span{font-size:10px}.ship-preview{display:flex;gap:2px}.ship-preview i{width:13px;height:19px;border-radius:3px;background:#3f6b72}.fleet-picker svg{width:16px;height:16px}.battle-tools{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.battle-control{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:85px;margin:10px 0}.battle-control button{display:grid;place-items:center;width:48px;height:48px;border:1px solid #698e88;border-radius:14px;background:#285c65;color:#fff7d8}.battle-control button:disabled{opacity:.4}.battle-control svg{width:25px;height:25px}.battle-control>span{font-size:10px;text-align:center}.fleet-direction{font-size:12px;font-weight:bold}.battle-result{font-size:17px;font-weight:bold}.battle-panel .game-icon-row{margin-top:8px}.battle-panel .panel-close{background:#dce9df}
@media(max-width:600px) and (orientation:portrait){.battle-panel{padding:18px 12px;width:calc(100% - 10px);max-height:calc(100dvh - 10px)}.fleet-planner,.battle-boards{grid-template-columns:1fr;gap:15px}.fleet-picker>div{width:calc(33.33% - 6px)}.battle-heading h2{font-size:27px}.battle-heading>p{font-size:12px}.sea-chart{gap:2px;padding:6px;grid-template-columns:15px repeat(10,minmax(0,1fr))}.battle-captains{font-size:10px;padding:8px;gap:8px}.fleet-planner aside{padding-bottom:10px}.battle-tools{justify-content:space-between;gap:5px}.battle-control{max-width:70px}.battle-boards section{max-width:450px;width:100%;margin:auto}}
@media(orientation:landscape) and (max-height:520px){.battle-panel{padding:16px 24px;width:calc(100% - 14px);max-height:calc(100dvh - 12px)}.battle-heading h2{font-size:24px}.battle-heading>p{font-size:12px}.battle-captains{margin:7px 0;padding:7px}.fleet-planner,.battle-boards{grid-template-columns:1fr 1fr;gap:20px}.sea-chart{max-width:330px;margin:auto}.battle-panel h3{font-size:14px}.battle-panel .panel-close{top:8px;right:8px}}
.catch-controls svg{width:30px;height:30px;pointer-events:none}
@media(orientation:landscape) and (max-height:520px){.battle-heading{display:grid;grid-template-columns:155px 1fr;align-items:center;gap:3px 10px}.battle-heading>.eyebrow{display:none}.battle-heading h2{font-size:22px;margin:0}.battle-heading>p{font-size:11px;margin:0}.battle-captains{grid-column:1 / -1;padding:5px 8px;margin:3px 0;font-size:10px}.battle-boards h3{margin:3px 0;font-size:13px}.battle-boards .fine{font-size:9px;margin:3px 0}.battle-boards .sea-chart{max-width:min(100%,calc(100dvh - 140px));gap:2px;padding:5px;grid-template-columns:13px repeat(10,minmax(0,1fr))}.battle-boards .chart-axis{font-size:8px}}
.map-panel{width:min(1000px,calc(100% - 20px));padding:24px}.map-panel .island{max-width:850px;margin:18px auto}.map-panel .map-stop{width:34px!important;min-width:34px!important;height:34px!important;padding:7px!important;border-radius:50%;display:grid;place-items:center;border:2px solid #fff8da;box-shadow:0 2px 4px #21483e55;background:#3c6b5b;color:#fff8dc}.map-panel .map-stop svg{width:18px;height:18px}.map-pin-label{position:absolute;transform:translate(-50%,20px);font-size:11px;font-weight:bold;color:#244a45;background:#fff9e6e8;padding:3px 6px;border-radius:5px;pointer-events:none;white-space:nowrap}.map-panel .map-stop.current{background:#9e743d}.map-panel .modal-top h2{font-size:30px}@media(max-width:600px){.map-panel{width:calc(100% - 8px);padding:15px 10px}.map-pin-label{font-size:9px;padding:2px 3px;transform:translate(-50%,17px)}.map-panel .map-stop{width:28px!important;min-width:28px!important;height:28px!important;padding:5px!important}.map-panel .map-stop svg{width:16px;height:16px}}@media(orientation:landscape) and (max-height:520px){.map-panel .modal-top h2{font-size:24px}.map-panel .island{max-width:650px}}

/* Painted scenery carries the navigation; the island render keeps its full coastline. */
.island-render{display:block;width:100%;height:auto;object-fit:contain}.arrival-art .island-render{width:100%;height:auto;transform:none}.island.illustrated{aspect-ratio:1000/680;overflow:hidden}.arrival-art{background:#165b78}

/* Standalone game viewport: one coordinate space, with iPhone cutouts reserved. */
html,body{height:100%;overscroll-behavior:none}body{overflow:hidden}
.shell,.embedded .shell{height:var(--game-height,100dvh)}
@media(orientation:landscape) and (max-height:520px){
 .shell,.embedded .shell{grid-template-columns:minmax(0,1fr) 60px;grid-template-rows:36px minmax(0,1fr) 38px;gap:0 7px;padding:max(5px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 .top,.embedded .top{height:36px;min-width:0}.top-right{gap:6px}.wallet,.embedded .wallet{font-size:12px;padding:5px 9px}.wallet small{display:none}.top-right .icon-button{width:30px;height:30px}
 .room-bar{top:max(8px,env(safe-area-inset-top));left:calc(max(10px,env(safe-area-inset-left)) + 40px);right:calc(max(10px,env(safe-area-inset-right)) + 190px);gap:6px}.room-heading h1,.embedded .room-heading h1{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-heading{flex:1}.room-info{flex-shrink:0}
 .world,.embedded .world{min-width:0;min-height:0;align-self:stretch;justify-self:center;width:min(100%,calc((var(--game-height,100dvh) - max(5px,env(safe-area-inset-top)) - max(7px,env(safe-area-inset-bottom)) - 74px)*1.6));max-width:none;border-radius:10px;box-shadow:none}
 .toolbar button,.embedded .toolbar button{width:58px;min-height:42px;padding:7px}.toolbar svg{width:25px;height:25px}
 .places{height:38px;min-width:0;justify-content:center;gap:5px;padding:5px 0 0}.places button{min-height:30px;padding:5px 10px}
 .walk-hint{bottom:7px;font-size:9px;padding:4px 9px}
}

#coin-gift-form{display:grid;gap:12px;margin:20px 0}#gift-amount{width:100%;font-size:18px;padding:14px;border:1px solid #9aaf96;border-radius:12px;background:#fffdf5;color:#294b43}#friend-controls .primary{margin-bottom:12px}[data-gift-back]{margin-top:12px}

/* Owned wardrobe: a steady fitting-room preview beside searchable pieces. */
.wardrobe-panel{width:min(1060px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;overscroll-behavior:contain;scrollbar-gutter:stable}
.wardrobe-panel .panel-close{z-index:8}
.wardrobe-heading{padding-right:38px}
.wardrobe-heading h2{font-size:34px;margin:7px 0}
.wardrobe-heading p{margin:0 0 20px;font-size:13px}
.wardrobe-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.wardrobe-preview-column{position:sticky;top:0;min-width:0}
.wardrobe-preview-card{border:1.5px solid #93a68a;border-radius:20px;overflow:hidden;background:#e9edd8;box-shadow:0 3px 0 #d0dbc0}
.wardrobe-preview-card>canvas{display:block;width:100%;height:165px;background:linear-gradient(#dfead7,#f2eed9)}
.wardrobe-preview-actions{display:grid;gap:6px;padding:12px 14px 14px;border-top:1px solid #c9d5b8}
.wardrobe-preview-kicker{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#63765c}
.wardrobe-preview-actions>strong{font:600 23px Fraunces,Georgia,serif}
.wardrobe-preview-actions .primary{width:100%;min-height:44px;margin-top:5px;font-size:13px}
.wardrobe-look-status{min-height:16px;margin:12px 2px 8px;font-size:11px;line-height:1.45;color:#66775e}
.wardrobe-look-status.is-dirty{color:#8a5b29;font-weight:700}
.wardrobe-look-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.wardrobe-look-slot{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 15px;gap:3px 5px;align-content:center;min-width:0;min-height:52px;padding:8px;border:1px solid #c2cdb4;border-radius:11px;background:#f2f0df;text-align:left}
.wardrobe-look-slot>span{grid-column:1;font-size:9px;line-height:1.25;color:#6a7c64}
.wardrobe-look-slot>strong{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600;line-height:1.35}
.wardrobe-look-slot>svg{grid-column:2;grid-row:1 / span 2;align-self:center;width:15px;height:15px;color:#7a634f;pointer-events:none}
.wardrobe-look-slot.is-empty{background:#faf7e9;border-style:dashed;border-color:#d7d9c3;color:#849179}
button.wardrobe-look-slot:hover{border-color:#8f9d7b;background:#e9ecd5}
.wardrobe-coat{margin-top:12px;border:1px solid #c7cfb6;border-radius:13px;background:#f8f5e7;overflow:hidden}
.wardrobe-coat summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:12px;list-style:none;cursor:pointer;font-size:12px;font-weight:700}
.wardrobe-coat summary::-webkit-details-marker{display:none}
.wardrobe-coat summary>span{font-size:18px;line-height:1;transition:transform .15s}
.wardrobe-coat[open] summary>span{transform:rotate(180deg)}
.wardrobe-coat-label{margin:7px 12px;font-size:10px;font-weight:700;color:#62745b}
.wardrobe-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 10px 13px}
.wardrobe-color{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;padding:7px 3px;border:1px solid #d5d8c4;border-radius:10px;background:#fffdf3;font-size:10px;line-height:1.25;text-align:center}
.wardrobe-color[aria-pressed=true]{border-color:#355447;background:#e4ecd3;box-shadow:inset 0 0 0 1px #355447}
.wardrobe-color .coat-swatch{width:25px;height:25px}
.wardrobe-inventory-column{min-width:0}
.wardrobe-search-label{margin:0 0 6px;font-size:12px}
.wardrobe-search-field{position:relative}
.wardrobe-search-field>svg{position:absolute;left:13px;top:13px;width:19px;height:19px;color:#74856c;pointer-events:none}
.wardrobe-search-field input{min-height:45px;padding:11px 12px 11px 41px;font-size:16px;border-color:#adbea2;background:#fffdf3}
.wardrobe-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 15px}
.wardrobe-filters button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:8px 10px;border:1px solid #b6c5aa;border-radius:13px;background:#faf7e9;font-size:11px;font-weight:600;white-space:nowrap}
.wardrobe-filters button>span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:7px;background:#e8edd8;color:#607956;font-size:10px}
.wardrobe-filters button[aria-pressed=true]{border-color:#355447;background:#355447;color:#fff9e6}
.wardrobe-filters button[aria-pressed=true]>span{background:#52715b;color:#fff9e6}
.wardrobe-result-count{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;min-height:20px}
.wardrobe-result-count>strong{font-size:11px;font-weight:700}
.wardrobe-result-count>span{font-size:10px;color:#728269}
.wardrobe-clear-search{min-height:32px;padding:5px 0;border:0;background:transparent;font-size:11px;color:#637c52;text-decoration:underline;text-underline-offset:3px}
.wardrobe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wardrobe-item{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:100%;padding:8px;border:1.5px solid #d0d5bb;border-radius:15px;background:#f6f2e1;color:#355447;text-align:left}
.wardrobe-item.is-selected{border-color:#476e4e;background:#eaf0d9;box-shadow:0 0 0 1px #476e4e}
.wardrobe-item-art{position:relative;display:block;height:112px;border-radius:10px;background:#fffbed;overflow:hidden}
.wardrobe-item-art>canvas{display:block;width:100%;height:100%;pointer-events:none}
.wardrobe-item-detail{display:flex;align-items:center;min-width:0;min-height:22px;margin:0 2px 2px}
.wardrobe-item-badge{display:inline-flex;max-width:100%;padding:4px 6px;border-radius:7px;background:#486b52;color:#fffbed;font-size:9px;font-weight:700;line-height:1.2;pointer-events:none}
.wardrobe-item-badge.is-preview{background:#efcf8b;color:#725227}
.wardrobe-item>strong{display:block;min-height:2.6em;margin:8px 2px 3px;font-size:12px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
.wardrobe-item-theme{font-size:10px;line-height:1.3;color:#738069}
.wardrobe-empty{padding:28px 20px;border:1px dashed #b9c5a9;border-radius:17px;background:#f2f0df;text-align:center}
.wardrobe-empty>strong{display:block;font:600 21px Fraunces,Georgia,serif;line-height:1.35;overflow-wrap:anywhere}
.wardrobe-empty>p{font-size:12px;line-height:1.6;color:#6a7a61}
.wardrobe-empty>button{margin-top:7px;min-height:44px;font-size:12px}
.wardrobe-panel #panel-error{position:sticky;bottom:-24px;z-index:5;margin-top:12px;background:#fff9e9}
.wardrobe-panel #panel-error:not(:empty){padding:12px;border:1px solid #d6b399;border-radius:12px}
@media(min-width:1200px){.wardrobe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:900px){.wardrobe-layout{grid-template-columns:220px minmax(0,1fr);gap:18px}.wardrobe-grid{gap:8px}.wardrobe-item-art{height:100px}.wardrobe-item>strong{font-size:11px}}
@media(max-width:700px){
 .wardrobe-panel{width:calc(100% - 10px);max-height:calc(100dvh - 10px);padding:18px 12px;border-radius:20px;scrollbar-gutter:auto}
 .wardrobe-heading h2{font-size:28px}.wardrobe-heading p{font-size:11px;margin-bottom:14px}
 .wardrobe-layout{display:block}.wardrobe-preview-column{display:contents}
 .wardrobe-preview-card{position:sticky;top:-18px;z-index:3;display:grid;grid-template-columns:minmax(125px,.95fr) minmax(130px,1fr);border-radius:15px;box-shadow:0 4px 10px #526a4220}
 .wardrobe-preview-card>canvas{height:124px}
 .wardrobe-preview-actions{align-content:center;padding:10px;border-top:0;border-left:1px solid #c9d5b8;gap:5px}
 .wardrobe-preview-kicker{font-size:8px;letter-spacing:1.3px}.wardrobe-preview-actions>strong{font-size:20px}
 .wardrobe-preview-actions .primary{min-height:42px;margin-top:3px;padding:10px 8px;font-size:12px}
 .wardrobe-look-status{margin:9px 1px 6px;font-size:10px}
 .wardrobe-look-slots{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
 .wardrobe-look-slot{flex:0 0 132px;min-height:49px}.wardrobe-look-slot>strong{font-size:10px}
 .wardrobe-coat{margin:9px 0 15px}.wardrobe-coat summary{min-height:41px;padding:10px 12px}
 .wardrobe-colors{grid-template-columns:repeat(4,minmax(0,1fr))}
 .wardrobe-search-label{font-size:11px}.wardrobe-filters{gap:5px;margin:10px 0 12px}
 .wardrobe-filters button{min-height:37px;padding:7px 9px;font-size:10px;gap:5px}.wardrobe-filters button>span{min-width:18px;height:18px;font-size:9px}
 .wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wardrobe-item-art{height:106px}
 .wardrobe-item>strong{font-size:11px}.wardrobe-result-count>span{font-size:9px}
 .wardrobe-empty{padding:23px 15px}.wardrobe-empty>strong{font-size:20px}
 .wardrobe-panel #panel-error{bottom:-18px}
}
@media(orientation:landscape) and (max-height:520px){
 .wardrobe-panel{width:calc(100% - 14px);max-height:calc(100dvh - 12px);padding:18px}
 .wardrobe-heading h2{font-size:25px;margin:5px 0 12px}.wardrobe-heading p{display:none}
 .wardrobe-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:17px;align-items:start}
 .wardrobe-preview-column{display:block;position:sticky;top:0}
 .wardrobe-preview-card{display:block;position:static;border-radius:14px}.wardrobe-preview-card>canvas{height:105px}
 .wardrobe-preview-actions{padding:8px;border-left:0;border-top:1px solid #c9d5b8}.wardrobe-preview-actions>strong,.wardrobe-preview-kicker{display:none}
 .wardrobe-preview-actions .primary{margin:0;min-height:40px;padding:8px 10px;font-size:11px}
 .wardrobe-look-status{font-size:9px;margin:8px 0 5px}.wardrobe-look-slots{display:flex;overflow-x:auto;padding-bottom:3px}
 .wardrobe-look-slot{flex:0 0 110px;min-height:45px}.wardrobe-look-slot>strong{font-size:9px}
 .wardrobe-coat{margin-top:8px}.wardrobe-coat summary{min-height:37px;padding:9px 10px;font-size:11px}
 .wardrobe-search-label{display:none}.wardrobe-search-field input{min-height:42px;padding-block:9px}.wardrobe-search-field>svg{top:12px}
 .wardrobe-filters{margin:9px 0;gap:5px}.wardrobe-filters button{min-height:34px;padding:6px 8px;font-size:10px}
 .wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wardrobe-item-art{height:92px}.wardrobe-item>strong{font-size:10px}.wardrobe-item-theme{font-size:9px}
 .wardrobe-result-count{margin-bottom:8px}.wardrobe-result-count>span{font-size:9px}
}

/* Shop previews on the player's dog and an explicit single-item purchase. */
.item .item-preview{display:block;width:100%;min-height:120px;padding:0;border:0;border-radius:10px;background:transparent;line-height:normal;cursor:pointer}
.item .item-preview:hover{background:#edf0db}
.item .item-preview:focus-visible{outline:3px solid #b65f49;outline-offset:3px}
.item .item-preview canvas{display:block;width:100%;height:120px;pointer-events:none}
.product-panel{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:28px;overscroll-behavior:contain}
.product-preview{border:1px solid #bfccb0;border-radius:20px;overflow:hidden;background:linear-gradient(#eaf0df,#f8f1dd);margin:16px 0}
.product-preview canvas{display:block;width:100%;height:210px}
.product-preview figcaption{padding:0 12px 12px;font-size:12px;font-weight:600;text-align:center;color:#63775c}
.product-info h2{font-size:32px;line-height:1.15;margin:8px 0;overflow-wrap:anywhere}
.product-info p{font-size:13px;line-height:1.55;color:#6b7d64;margin:8px 0}
.product-price{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-block:1px solid #dadcc4;margin:14px 0}
.product-price>strong{font-size:21px;color:#896230}.product-price>span{font-size:12px;text-align:right;color:#697b61}
.product-status{font-size:12px;line-height:1.55;padding:12px 14px;border-radius:12px;background:#eaf0dc;color:#4d6847}
.product-status.is-insufficient,.product-status[data-state="insufficient"]{background:#f6e9d6;color:#875e32}
.product-actions{display:flex;flex-direction:column;gap:10px;margin:17px 0 8px}
.product-actions>button,.product-actions>a{width:100%;min-height:45px;text-align:center}
.product-back{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 0;border:0;background:transparent;font-size:12px;color:#617b56;text-decoration:underline;text-underline-offset:3px}
.product-panel button:disabled{opacity:.65;cursor:default}
@media(max-width:700px){.product-panel{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:22px 16px}.product-preview canvas{height:185px}.product-info h2{font-size:28px}.product-price>strong{font-size:19px}.product-price>span{font-size:11px}}
@media(orientation:landscape) and (max-height:520px){.product-panel{width:min(760px,calc(100% - 16px));padding:20px}.product-preview{float:left;width:42%;margin:8px 20px 12px 0}.product-preview canvas{height:185px}.product-info h2{font-size:27px}.product-price{padding:10px 0;margin:10px 0}.product-actions{margin-top:12px}.product-panel #panel-error{clear:both}}
