body.town-world-active{background:#138bd0}
.town-world-active .town-app main{width:100%;max-width:none;padding:0;margin:0}
.town-world-active .town-header,.town-world-active .town-app footer{display:none}
.town-world-active #content{padding:0;margin:0}
.town-world-active .profile-status:not([hidden]){position:fixed;left:50%;top:max(8px,env(safe-area-inset-top,0px));transform:translateX(-50%);width:min(92vw,780px);z-index:40;box-shadow:0 6px 24px #06121b70}
.town-world{position:relative;width:100%;height:100svh;min-height:420px;isolation:isolate;overflow:hidden;background:#1595d6}
.town-world-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;cursor:grab;touch-action:auto;outline-offset:-4px}
.town-world-viewport::-webkit-scrollbar{display:none}.town-world-viewport:focus-visible{outline:3px solid #c3f6df}.town-world-dragging{cursor:grabbing}
.town-world-plane{width:var(--town-plane-width,100%);height:var(--town-plane-height,100%);min-width:100%;min-height:100%;display:grid;place-items:center;background:linear-gradient(#33b5ef,#0876c5)}
.town-map.town-world-canvas{width:var(--town-canvas-width,100%);min-width:0;aspect-ratio:3/2;line-height:0;position:relative;flex-shrink:0;user-select:none}
.town-world-canvas>img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.town-world-canvas .map-place{border:0;padding:0;width:23%;height:27%;color:#fff;border-radius:24px}
.town-world-canvas .map-place:focus-visible{outline:3px solid #f3ffcf;outline-offset:3px}
.town-world-canvas .place-target{border-width:2px;border-radius:22px}
.town-world-canvas .map-place:hover .place-target,.town-world-canvas .map-place:focus-visible .place-target{border-color:#f2ffe5a6;background:#fff8d00d;box-shadow:0 0 24px #efffd633}
.town-world-canvas .place-label{gap:9px;bottom:-12px;background:#102d42f0;color:#f2f8f8;border:1px solid #c6eefc7a;border-radius:13px;padding:10px 13px;box-shadow:0 4px 10px #04234155;backdrop-filter:blur(10px);white-space:nowrap}
.town-world-canvas .place-label strong{font-size:16px;line-height:1.35;font-weight:700;color:#f3f9f7}.town-world-canvas .place-label small{font-size:12px;line-height:1.5;color:#c0d9e0;margin-top:2px}.town-world-canvas .place-symbol{display:flex;align-items:center;justify-content:center;width:25px;color:#a8dbff;font-size:24px}.town-world-canvas .place-bank .place-symbol{color:#f7d38a}.town-world-canvas .place-classroom .place-symbol{color:#ffbe9d}.town-world-canvas .place-playground .place-symbol{color:#c8ee9b}.town-world-canvas .place-museum .place-symbol{color:#d1c7ff}
.town-world-canvas .place-symbol svg{width:25px;height:25px;flex-shrink:0}.town-world-currency,.town-world-star{font-size:24px;font-weight:700;line-height:1}.town-world-ball{font-size:23px;line-height:1}
.town-world-hud{position:absolute;left:max(22px,env(safe-area-inset-left,0px));right:max(22px,env(safe-area-inset-right,0px));top:max(16px,env(safe-area-inset-top,0px));display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none;z-index:10}
.town-world-heading,.town-world-status{display:flex;align-items:center;gap:10px;min-width:0}.town-world-heading h2{font-size:22px;font-weight:750;line-height:1.3;letter-spacing:-.025em;margin:0;color:#fff;text-shadow:0 2px 6px #053959b3;background:#12344fcf;border:1px solid #c5e2ee45;border-radius:12px;padding:12px 15px;backdrop-filter:blur(12px)}
.town-world-home,.town-world-wallet,.town-world-level,.town-world-camera,.town-world-dock{background:#102c42e8;border:1px solid #caeef354;color:#ecf5f5;backdrop-filter:blur(16px);box-shadow:0 4px 16px #062c454d}
.town-world-home,.town-world-wallet,.town-world-level{pointer-events:auto;border-radius:12px;min-height:48px;font:inherit}
.town-world-home{display:flex;align-items:center;gap:9px;padding:6px 12px 6px 7px;font-size:14px;font-weight:650}.town-world-home .profile-token{width:36px;height:36px;box-shadow:none;flex-shrink:0}.town-world-wallet{display:flex;flex-direction:column;text-align:left;padding:7px 13px}.town-world-wallet small{font-size:12px;color:#c8dfe3;line-height:1.3}.town-world-wallet strong{font-size:18px;font-variant-numeric:tabular-nums;line-height:1.4}.town-world-level{display:flex;align-items:center;justify-content:center;padding:3px;width:50px}.town-world-level .town-world-level-ring{--ring-size:42px;background:#173e52;box-shadow:none}.town-world-level .level-orbit-face>small,.town-world-level .level-orbit-face>span,.town-world-level .level-ring-xp-stamp{display:none}.town-world-level .level-orbit-face>strong{font-size:17px}
.town-world-camera{position:absolute;left:max(22px,env(safe-area-inset-left,0px));bottom:max(117px,calc(env(safe-area-inset-bottom,0px) + 108px));display:flex;align-items:center;border-radius:12px;padding:5px;gap:3px;z-index:10}.town-world-camera button{background:transparent;border:0;color:#e7f5f5;font:inherit;font-size:22px;min-height:44px;min-width:44px;border-radius:8px}.town-world-camera button:hover{background:#ffffff15}.town-world-camera button:disabled{opacity:.4;cursor:default}.town-world-camera output{min-width:47px;text-align:center;font-size:13px;color:#cae4e8;font-variant-numeric:tabular-nums}.town-world-camera .town-world-overview{font-size:14px;font-weight:650;padding:0 10px;border-left:1px solid #bbd8e13d;border-radius:0 8px 8px 0}.town-world-camera .town-world-reset{font-size:23px}
.town-world-help{position:absolute;right:max(24px,env(safe-area-inset-right,0px));bottom:127px;z-index:8;color:#f0fbff;background:#164663cc;border:1px solid #c0e4ef44;padding:7px 12px;border-radius:9px;font-size:14px;line-height:1.5;pointer-events:none;margin:0;backdrop-filter:blur(10px)}.town-world-touch-help{display:none}
.town-world-dock{position:absolute;bottom:max(17px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:10;width:min(740px,calc(100% - 36px));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;border-radius:20px;padding:8px}
.town-world-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;color:#e3f2f5;border:0;border-radius:12px;font:inherit;font-size:14px;line-height:1.4;min-height:60px;padding:7px 4px;min-width:0}.town-world-dock button:hover{background:#ffffff15}.town-world-dock button svg{width:25px;height:25px;color:#bcebdc}.town-world-dock button:first-child{background:#b9f0d9;color:#183e41}.town-world-dock button:first-child svg{color:inherit}
.town-world-hud button:focus-visible,.town-world-camera button:focus-visible,.town-world-dock button:focus-visible{outline:3px solid #f3ffd4;outline-offset:2px}
@media(max-width:700px){
 .town-world-hud{top:max(10px,env(safe-area-inset-top,0px));left:max(9px,env(safe-area-inset-left,0px));right:max(9px,env(safe-area-inset-right,0px));gap:7px}.town-world-heading,.town-world-status{gap:6px}.town-world-home{width:44px;min-height:44px;padding:3px;justify-content:center}.town-world-home>span:last-child:not(.profile-token){display:none}.town-world-heading h2{font-size:17px;padding:12px 9px;border-radius:10px}.town-world-wallet{padding:6px 8px;min-height:44px}.town-world-wallet small{font-size:10px}.town-world-wallet strong{font-size:15px}.town-world-level{width:44px;min-height:44px}.town-world-level .town-world-level-ring{--ring-size:36px}
 .town-world-dock{width:calc(100% - 18px);grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px;border-radius:16px;bottom:max(10px,env(safe-area-inset-bottom,0px))}.town-world-dock button{flex-direction:row;gap:6px;min-height:44px;padding:6px;font-size:13px;white-space:nowrap}.town-world-dock button svg{width:21px;height:21px}.town-world-dock .town-world-currency,.town-world-dock .town-world-star,.town-world-dock .town-world-ball{font-size:21px}
 .town-world-camera{left:9px;bottom:max(128px,calc(env(safe-area-inset-bottom,0px) + 122px));padding:3px;gap:0}.town-world-camera output{min-width:40px;font-size:12px}.town-world-camera button{min-width:40px;min-height:44px}.town-world-camera .town-world-overview{font-size:13px;padding:0 7px}.town-world-camera .town-world-reset{min-width:38px}
 .town-world-help{right:10px;bottom:191px;font-size:12px;padding:5px 9px}.town-world-drag-help{display:none}.town-world-touch-help{display:inline}
 .town-world-canvas .place-label{padding:8px 10px;gap:6px;bottom:-9px}.town-world-canvas .place-label strong{font-size:14px}.town-world-canvas .place-label small{display:none}.town-world-canvas .place-symbol,.town-world-canvas .place-symbol svg{width:21px;height:21px;font-size:21px}
}
@media(max-width:370px){.town-world-heading h2{font-size:15px;padding:12px 7px}.town-world-level{display:none}.town-world-dock button{font-size:12px;gap:4px;padding:6px 4px}.town-world-wallet strong{font-size:14px}}
@media(max-height:600px) and (min-width:701px){.town-world{min-height:360px}.town-world-camera{bottom:104px}.town-world-help{bottom:115px;font-size:12px}.town-world-dock{bottom:10px}.town-world-dock button{min-height:52px}}
@media(prefers-reduced-motion:reduce){.town-world *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Player town names can be longer than the default map heading. */
.town-world-heading{min-width:0}.town-world-heading h2{min-width:0;max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The map Home shortcut shares Home's medallion, saved portrait and optical crop. */
.town-world-home .map-profile-badge{width:48px;height:48px;padding:4px;min-width:44px;min-height:44px;box-shadow:0 3px 7px #15244750,inset 0 1px 1px #fff9e9}
.town-world-home .map-profile-badge .player-avatar.profile-token{width:38px;height:38px}
.town-world-home .map-profile-badge:has(.room-profile-default){padding:0;box-shadow:0 3px 7px #15244745}
.town-world-home .map-profile-badge:has(.room-profile-default) .player-avatar.profile-token{width:100%;height:100%}
@media(max-width:750px){.town-world-home .map-profile-badge{width:44px;height:44px}.town-world-home .map-profile-badge .player-avatar.profile-token{width:34px;height:34px}}

/* The sea continues beyond the island when the camera is zoomed out. */
.town-world .town-world-plane{background-color:#138ed0;background-image:url('town-ocean.webp');background-repeat:repeat;background-position:center;background-size:calc(var(--town-canvas-width,100vw)*.42) auto}
.town-world{background:#138ed0 url('town-ocean.webp') center/640px auto repeat}
.town-world-canvas>img{mask-image:linear-gradient(to right,transparent,#000 1.5%,#000 98.5%,transparent),linear-gradient(to bottom,transparent,#000 4%,#000 94%,transparent);mask-composite:intersect}
