/* Mýrdalsvík: paper, pencil and a clear separation between map and controls. */
:root{--paper:#fffbf0;--green:#397743;--pale:#e2f5dc;--sea:#3f7f9c;background:var(--sea)}
.game-screen,.map-panel{background:var(--sea)}
.game-header{left:20px;right:20px;top:max(14px,env(safe-area-inset-top));justify-content:center;align-items:center}
.game-title{max-width:calc(100% - 110px)}
.game-title h1{font-size:clamp(26px,4vw,46px);line-height:1.2;letter-spacing:.015em;transform:rotate(-2deg);color:var(--paper);text-shadow:2px 2px 0 var(--ink);white-space:nowrap}
.settings-button{width:44px;height:44px;background:var(--gul)}
.community-dock{position:absolute;right:80px;bottom:max(16px,env(safe-area-inset-bottom));z-index:4;max-width:calc(100% - 104px)}
.community-dock .role-corner{position:relative;inset:auto;width:auto;height:48px;max-width:230px;padding:6px 12px;gap:8px;background:var(--bleik);display:flex;text-align:left;justify-content:flex-start}
.community-dock .role-corner>span:not(:first-child){display:block;min-width:0}
.community-dock .role-corner b{font-size:16px;line-height:1.25;max-width:170px}
.community-dock .role-corner small{font-size:10px;color:var(--ink);max-width:170px}
.day-panel{left:auto;right:20px;top:auto;bottom:max(16px,env(safe-area-inset-bottom));width:48px;height:48px;z-index:4}
.day-panel .bag-button{width:48px;height:48px;background:var(--gul)}
.bag-button svg path{stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.inventory-menu{left:auto;right:0;top:auto;bottom:62px;max-height:calc(100dvh - 150px);transform-origin:bottom right}
.play-controls{bottom:max(80px,calc(env(safe-area-inset-bottom) + 64px));right:20px;left:20px}
.sea-hud{top:76px;left:24px;right:24px}
.resources{gap:12px}
.resource{background:var(--paper);border:1.5px solid var(--ink);border-radius:12px 8px 11px 7px;padding:3px 8px;gap:5px;text-shadow:none;box-shadow:2px 2px 0 var(--ink)}
.resource>span{font-size:19px}.resource b{font-size:19px;line-height:1.2}
.day-sky{color:var(--paper)}.day-sky b,.day-sky .weather-label{color:var(--paper)}
.island-art{stroke-linecap:round;stroke-linejoin:round}
.island-art>path:first-of-type{stroke:#2a2633;stroke-width:2.5}
.island-art>path:nth-of-type(2){stroke:#568457;stroke-width:2}
.island-art .project-illustration :is(path,rect,ellipse,circle):not([stroke]),.island-art .tree-leaves{stroke:#354b3d;stroke-width:1.1;paint-order:stroke fill}
.island-art .map-cloud{stroke:#2a2633;stroke-width:1.5;opacity:.9}
.place-pin b,.project-pin b,.npc-pin b{font-family:var(--hand);font-weight:400}
.place-pin>span{border-color:var(--ink);background:var(--paper);border-radius:48% 54% 44% 52%}
.moment-content h2{font-size:clamp(28px,3.4vw,42px);line-height:1.2}
.moment-cta.moment-cta{font-size:22px;min-height:48px;padding:13px 20px 10px}
.moment-content{padding:8px 10px 14px}
.day-moment{padding-bottom:86px}
.day-moment[data-phase=evening]{background:#2c4758f5}
.day-paused .community-dock{z-index:4}
.day-paused .day-panel{z-index:2;visibility:hidden}
#modalContent h2{font-size:clamp(24px,3.4vw,32px);line-height:1.25;overflow-wrap:anywhere}
.role-option b{line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.choice-button b,.moment-choice b{font-size:16px;line-height:1.35}
.settings-menu>button,.settings-menu>a{font-size:17px;min-height:46px;gap:12px}
.hand-card b{font-family:var(--hand);font-size:13px;white-space:normal;overflow:visible;line-height:1.25;overflow-wrap:anywhere}
.community-categories>button:nth-child(1){background:var(--gul-t)}
.community-categories>button:nth-child(2){background:var(--bleik-t)}
.community-categories>button:nth-child(3){background:var(--bla-t)}
.community-stats span:nth-child(even){background:var(--graen-t)}
button:disabled{opacity:.6}
@media(max-width:900px){.sea-hud{top:76px}.play-controls{padding-right:0}}
@media(max-width:640px){
 .game-header{left:14px;right:14px;top:max(12px,env(safe-area-inset-top))}
 .game-title{max-width:calc(100% - 80px);margin-right:30px}.game-title h1{font-size:clamp(25px,7.3vw,38px)}
 .settings-button{width:42px;height:42px}
 .sea-hud{top:70px;left:14px;right:14px;gap:6px}
 .resources{gap:6px}.resource{padding:3px 5px}.resource>span{font-size:16px}.resource b{font-size:16px}
 .day-sky{max-width:145px}.day-sky #daySkyArt{width:30px}
 .community-dock{right:76px;bottom:max(14px,env(safe-area-inset-bottom))}
 .community-dock .role-corner{height:46px;max-width:210px}.community-dock .role-corner b{font-size:15px}
 .day-panel{right:14px;bottom:max(14px,env(safe-area-inset-bottom));width:46px;height:46px}
 .day-panel .bag-button{width:46px;height:46px}
 .play-controls{left:12px;right:12px;bottom:max(76px,calc(env(safe-area-inset-bottom) + 62px))}
 .place-detail{height:min(180px,32dvh);max-height:min(180px,32dvh);padding:10px 12px}
 .inventory-menu{right:0;top:auto;bottom:60px;width:min(340px,calc(100vw - 28px))}
 .day-moment{padding:78px 12px 78px}
 .moment-content h2{font-size:30px}.moment-cta.moment-cta{font-size:20px;padding:12px 16px 9px}
 .moment-choice b{font-size:15px}
}
@media(max-width:640px) and (max-height:670px){
 .game-title h1{font-size:25px}.sea-hud{top:63px}
 .place-detail{height:min(150px,27dvh);max-height:min(150px,27dvh)}
 .moment-content h2{font-size:26px}.moment-art{height:100px}.day-moment{padding-top:68px}
}
@media(min-width:641px) and (max-height:550px){
 .game-header{top:10px}.game-title h1{font-size:29px}.sea-hud{top:65px}
 .play-controls{bottom:76px;width:280px;right:auto}.place-detail{max-height:calc(100dvh - 150px)}
 .day-moment{padding:66px 18px 12px}.moment-content h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.game-title h1{transform:none}}
@media(min-width:901px){.play-controls{bottom:max(20px,env(safe-area-inset-bottom))}}
@media(min-width:901px){.play-controls{width:330px;grid-template-columns:minmax(0,1fr)}.place-detail{max-height:225px}}
.npc-figure{stroke-linejoin:round;stroke-linecap:round}
.npc-figure .npc-idle>ellipse,.npc-figure .npc-idle>path:not([stroke]),.resident-bob :is(path,circle):not([stroke]){stroke:#354b3d;stroke-width:1;paint-order:stroke fill}
.moment-art>path[fill],.moment-art>g>path[fill]:not([fill=none]){stroke:#354b3d;stroke-width:1.2;stroke-linejoin:round;paint-order:stroke fill}

/* Community belongs with the shared stock; the bag follows the story panel. */
.community-resources{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.community-dock{position:static;max-width:100%;z-index:auto}
.community-dock .role-corner{height:42px}
.village-controls{position:relative}
.day-panel{position:absolute;left:auto;right:0;top:auto;bottom:calc(100% + 12px);width:46px;height:46px}
.day-panel .bag-button{width:46px;height:46px}
.inventory-menu{right:0;bottom:58px;top:auto;max-height:calc(100dvh - 340px);max-height:max(140px,calc(100dvh - 340px))}
.day-paused .community-dock,.day-paused #settingsButton{visibility:hidden;pointer-events:none}
.day-paused .community-dock .role-corner{pointer-events:none}
.day-moment{padding-bottom:24px}
@media(max-width:900px){.community-resources{gap:7px;flex-direction:column;align-items:flex-start}.community-dock .role-corner{height:38px;padding:4px 9px}.community-dock .role-corner small{display:none}.community-dock .role-corner b{font-size:14px}.community-dock .role-corner>span:first-child{font-size:20px;width:24px}.sea-hud{align-items:flex-start}.day-sky{margin-top:4px}}
@media(max-width:640px){.day-panel{right:0;top:auto;bottom:calc(100% + 10px)}.day-moment{padding-bottom:20px}}
.sea-hud{pointer-events:none}.community-dock .role-corner,.day-sky{pointer-events:auto}
@media(min-width:641px) and (max-height:550px){.inventory-menu{top:58px;bottom:auto;max-height:calc(100dvh - 90px);transform-origin:top right}}
@media(min-width:641px) and (max-height:550px){.inventory-menu{left:auto;right:calc(-1 * min(58px, 7vw));width:min(340px,calc(100vw - 28px))}}
/* Use the space released by moving the bottom controls into the HUD. */
.play-controls{bottom:max(12px,calc(env(safe-area-inset-bottom) + 8px))}
@media(min-width:641px) and (max-width:900px) and (min-height:551px){.place-detail{max-height:min(289px,calc(32dvh + 64px))}}
@media(max-width:640px){.place-detail{height:min(244px,calc(32dvh + 64px));max-height:min(244px,calc(32dvh + 64px))}}
@media(max-width:640px) and (max-height:670px){.place-detail{height:min(214px,calc(27dvh + 64px));max-height:min(214px,calc(27dvh + 64px))}}
@media(min-width:641px) and (max-height:550px){.place-detail{max-height:calc(100dvh - 86px)}}
@media(min-width:901px){.place-detail{max-height:min(320px,40dvh)}}
/* The same three stepping stones connect the HUD to the day journal. */
#daySky.day-sky{display:flex;flex-direction:column;align-items:center;gap:0;background:none;padding:0;color:var(--paper);max-width:150px}
#daySky #daySkyArt{width:116px;display:block;line-height:0}
#daySky .day-description{display:block;text-align:center}
#daySky b{font-family:var(--hand);font-size:18px;font-weight:400;line-height:1.2}
#daySky .weather-label{display:none}
.day-trail-mini{display:block;width:100%;height:auto;overflow:visible}
.day-journey{margin:18px 0 12px}
.journey-dawn,.journey-dusk{text-align:center}
.journey-dawn>span,.journey-dusk>span{display:block;font-size:30px;line-height:1.2}
.journey-dawn>b,.journey-dusk>b{font:18px var(--hand)}
.journey-dawn .round-log{background:var(--gul-t);border:2px dashed var(--line);border-radius:var(--r-small);padding:10px;margin:10px auto 20px;max-width:440px;text-align:left}
.day-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;position:relative}
.day-steps::before{content:'';position:absolute;left:10%;right:10%;top:46px;border-top:3px dashed var(--ink);transform:rotate(-2deg)}
.day-step{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 6px}
.step-number{position:absolute;top:5px;left:calc(50% - 37px);background:var(--ink);color:var(--paper);border-radius:50%;width:22px;height:22px;font:16px var(--hand);display:grid;place-items:center;z-index:1}
.step-picture{display:grid;place-items:center;width:66px;height:64px;font-size:32px;background:var(--paper);border:2.5px solid var(--ink);border-radius:46% 54% 42% 53%;box-shadow:3px 3px 0 var(--ink);margin-bottom:12px;transform:rotate(-5deg)}
.day-step:nth-child(2) .step-picture{transform:rotate(5deg)}
.day-step.complete:nth-child(1) .step-picture{background:var(--gul)}
.day-step.complete:nth-child(2) .step-picture{background:var(--bleik)}
.day-step.complete:nth-child(3) .step-picture{background:var(--graen)}
.day-step>b{font:18px/1.25 var(--hand);overflow-wrap:anywhere}
.day-step .round-log{margin:8px 0;display:block}.day-step p{font-size:12px;line-height:1.6;color:var(--muted)}
.day-step.waiting .step-picture{border-style:dashed;box-shadow:none;color:var(--muted)}
.journey-dusk{margin-top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){#daySky #daySkyArt{width:96px}#daySky b{font-size:16px}.day-steps{grid-template-columns:1fr;gap:8px}.day-steps::before{left:37px;right:auto;top:22px;bottom:24px;border-top:0;border-left:3px dashed var(--ink);transform:none}.day-step{display:grid;grid-template-columns:70px minmax(0,1fr);column-gap:14px;text-align:left;align-items:center;padding:8px 0}.step-picture{grid-column:1;grid-row:1 / span 2;margin:0;width:62px;height:60px}.step-number{left:-3px;top:1px}.day-step>b,.day-step>.round-log,.day-step>p{grid-column:2}.day-step .round-log{margin:4px 0}.journey-dawn>span,.journey-dusk>span{font-size:26px}}
@media(max-width:360px){#daySky #daySkyArt{width:76px}.resources{gap:4px}.resource{padding-inline:4px;gap:3px}.resource b{font-size:15px}}
/* The town name is the entrance to your own place in the community. */
.town-profile{font:inherit;letter-spacing:inherit;color:inherit;text-shadow:inherit;padding:0;pointer-events:auto;line-height:inherit}
.town-profile:disabled{opacity:1;cursor:default}
.town-profile:hover:not(:disabled){text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}
#connectionDot{display:none}
#modal[data-view=card] .modal-actions{flex-wrap:nowrap}
#modal[data-view=card] .modal-actions>.secondary-button{flex:1 1 45%}
#modal[data-view=card] .modal-actions>.primary-button{flex:1 1 55%}
#modal[data-view=dayReport]{background:#fff3c4;box-shadow:7px 8px 0 var(--bleik)}
#modal[data-view=dayReport] .modal-top .eyebrow{background:var(--fjola);color:var(--ink);border:2px solid var(--ink)}
#modal[data-view=dayReport] #modalTitle{display:inline-block;background:var(--gul);padding:5px 14px;border:2px solid var(--ink);border-radius:var(--r-btn);transform:rotate(-2deg)}
.day-journey{background:var(--paper);border:2px solid var(--ink);border-radius:24px 14px 26px 12px;padding:16px 14px;box-shadow:4px 4px 0 var(--bla)}
.journey-dawn>span{width:62px;height:62px;margin:0 auto 5px;display:grid;place-items:center;background:var(--gul);border:2px solid var(--ink);border-radius:48% 53% 45% 54%;transform:rotate(-7deg)}
.journey-dusk>span{width:54px;height:54px;margin:0 auto 5px;display:grid;place-items:center;background:var(--fjola);border:2px solid var(--ink);border-radius:54% 46% 51% 43%;transform:rotate(7deg)}
.day-step.waiting:nth-child(1) .step-picture{background:var(--gul-t)}
.day-step.waiting:nth-child(2) .step-picture{background:var(--bleik-t)}
.day-step.waiting:nth-child(3) .step-picture{background:var(--graen-t)}
.day-steps::before{border-color:#8c699b}
#modal[data-view=dayReport] .gain-grid>span:nth-child(odd){background:var(--bleik-t)}
#modal[data-view=dayReport] .gain-grid>span:nth-child(even){background:var(--graen-t)}
@media(max-width:640px){.day-journey{padding:12px 10px}.day-steps::before{left:32px}.day-step{column-gap:10px}.day-step>b{font-size:16px}}
#daySky .day-trail-mini{height:56px}
@media(max-width:640px){#daySky .day-trail-mini{height:46px}}
@media(max-width:360px){#daySky .day-trail-mini{height:42px}}
@media(min-width:641px) and (max-height:550px){#daySky .day-trail-mini{height:32px}#daySky b{font-size:16px}}
/* Three entrances: town menu, shared stock/profile, and the passing day. */
.game-header{justify-content:flex-start}
.game-title{max-width:calc(100% - 150px);text-align:left;margin:0}
.game-title h1{font-size:clamp(26px,3.4vw,42px)}
#daySky.day-sky{position:fixed;top:max(12px,env(safe-area-inset-top));right:20px;left:auto;z-index:2;margin:0;width:116px}
.sea-hud{top:76px;right:160px}
.resources .resource{pointer-events:auto}
.resource:hover{background:var(--gul-t)}
.day-paused .sea-hud{visibility:hidden}
@media(max-width:640px){.game-title{max-width:calc(100% - 88px)}.game-title h1{font-size:clamp(22px,6vw,32px)}#daySky.day-sky{top:max(8px,env(safe-area-inset-top));right:14px;width:76px}#daySky #daySkyArt{width:76px}#daySky .day-trail-mini{height:42px}#daySky b{font-size:14px}.sea-hud{top:64px;right:14px;left:14px}.resources{gap:8px}}
@media(min-width:641px) and (max-height:550px){.sea-hud{top:63px}#daySky.day-sky{top:8px}}
.game-title{transform:none}
.player-badge{position:fixed;z-index:2;top:88px;right:20px;display:flex;align-items:center;gap:7px;padding:3px 7px;background:var(--paper);border:2px solid var(--ink);border-radius:var(--r-btn);box-shadow:2px 3px 0 var(--bleik);max-width:180px;text-align:left}
.character-portrait{width:40px;height:50px;display:block;flex-shrink:0}
.player-badge b{font:16px/1.3 var(--hand);display:block;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-badge small{font-size:10px;display:block;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-avatar .character-portrait{width:50px;height:64px}.portrait-edit{font:15px var(--hand);text-decoration:underline;padding:5px 0}
.character-preview{display:grid;place-items:center;background:var(--bla-t);border:2px solid var(--ink);border-radius:var(--r-panel);margin:12px 0;box-shadow:4px 4px 0 var(--gul)}
.character-preview .character-portrait{width:100px;height:125px}
.look-options{display:grid;gap:14px}.look-options fieldset{border:0;padding:0;margin:0;min-width:0}.look-options legend{font:19px var(--hand);margin-bottom:7px}.look-options fieldset>div{display:flex;gap:7px;flex-wrap:wrap}
.look-options button{display:flex;align-items:center;gap:5px;border:2px solid var(--ink);border-radius:var(--r-small);background:var(--paper);padding:7px 9px;min-height:40px;font-size:12px}
.look-options button[aria-pressed=true]{background:var(--gul);box-shadow:2px 2px 0 var(--ink)}
.look-swatch i{display:block;width:22px;height:22px;border-radius:47% 53% 45% 51%;background:var(--swatch);border:1.5px solid var(--ink)}
#modal[data-view=appearance] .modal-actions{flex-wrap:nowrap}
@media(max-width:640px){.player-badge{top:75px;right:14px;max-width:142px;padding:2px 5px;gap:4px}.player-badge .character-portrait{width:30px;height:38px}.player-badge b{font-size:13px;max-width:91px}.player-badge small{font-size:9px;max-width:91px}.resources{gap:5px}.resource{padding-inline:4px}.character-preview .character-portrait{width:80px;height:100px}}
@media(max-width:360px){.player-badge{max-width:120px}.player-badge b,.player-badge small{max-width:70px}.resource>span,.resource b{font-size:13px}.resource{padding-inline:3px;gap:2px}.resources{gap:4px}}
@media(min-width:641px) and (max-height:550px){.player-badge{top:64px;right:20px;padding:1px 5px}.player-badge .character-portrait{width:30px;height:38px}}
.look-play{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 20px}
.look-play button{font:16px/1.3 var(--hand);border:2px solid var(--ink);border-radius:var(--r-btn);padding:8px 10px;min-height:40px;background:var(--gul);box-shadow:2px 2px 0 var(--ink)}
.look-play button[data-reset-look]{background:var(--paper);font-size:14px}
.look-play button:active{transform:translate(2px,2px);box-shadow:none}
.look-play button>span{display:inline-block;font-size:22px;vertical-align:middle;line-height:1}
/* Swipe each choice row; keep the character floating beside the passing day. */
.look-options fieldset>div{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 4px 8px;scrollbar-width:thin}
.look-options button{flex:0 0 auto;scroll-snap-align:center}
.player-badge{top:8px;right:150px;width:130px;max-width:130px;flex-direction:column;gap:0;padding:0;background:none;border:0;box-shadow:none;text-align:center;color:var(--paper)}
.player-badge .character-portrait{width:48px;height:60px}
.player-badge b{max-width:130px;font-size:14px}.player-badge small{max-width:130px;font-size:11px}
@media(max-width:640px){.player-badge{top:4px;right:100px;width:68px;max-width:68px;padding:0;gap:0}.player-badge .character-portrait{width:38px;height:48px}.player-badge b{max-width:68px;font-size:12px}.player-badge small{max-width:68px;font-size:9px}.sea-hud{top:88px}}
@media(max-width:360px){.game-title h1{font-size:18px}.game-title{max-width:calc(100% - 160px)}}
@media(min-width:641px) and (max-height:550px){.player-badge{top:4px;right:150px;padding:0}.player-badge .character-portrait{width:32px;height:40px}}
/* Hair and clothes turn on the character; colours and faces stay direct choices. */
.look-options fieldset>div{flex-wrap:wrap;overflow:visible;scroll-snap-type:none}
.character-preview.character-wheel{position:relative;height:216px;display:grid;place-items:center;overflow:hidden}
.character-wheel .character-portrait{width:144px;height:180px}
.look-wheel{position:absolute;left:8px;right:8px;height:78px;touch-action:pan-y;cursor:ew-resize}
.wheel-hair{top:20px}.wheel-outfit{top:112px}
.look-wheel button{position:absolute;top:6px;width:40px;height:40px;border:2px solid var(--ink);border-radius:var(--blob);background:var(--gul);font:30px/1 var(--hand);display:grid;place-items:center;box-shadow:2px 2px 0 var(--ink)}
.look-wheel button:first-child{left:0}.look-wheel button:last-child{right:0}
.wheel-outfit button{background:var(--bleik)}
.wheel-label{position:absolute;bottom:0;left:0;max-width:92px;font:14px/1.25 var(--hand);background:var(--paper);padding:3px 5px;border-radius:var(--r-small);pointer-events:none}
.look-wheel:focus-visible{outline:2px dashed var(--ink);outline-offset:0;border-radius:var(--r-small)}
@media(max-width:640px){.character-preview.character-wheel{height:200px}.character-wheel .character-portrait{width:128px;height:160px}.wheel-hair{top:15px}.wheel-outfit{top:101px}.wheel-label{max-width:76px;font-size:12px}}
.character-preview.character-wheel{height:264px}
.character-wheel .character-portrait{width:144px;height:180px}
.wheel-hair{top:23px}.wheel-outfit{top:102px}.wheel-shoes{top:181px;height:68px}
.wheel-shoes button{background:var(--bla)}
.colour-palette{margin:14px 0;padding:10px;background:var(--paper);border:2px solid var(--ink);border-radius:var(--r-panel)}
.palette-tabs{display:flex;gap:4px;margin-bottom:8px}
.palette-tabs button{flex:1;font:16px var(--hand);padding:5px 3px;border-radius:var(--r-small)}
.palette-tabs button[aria-selected=true]{background:var(--gul);outline:1.5px solid var(--ink)}
.palette-colours{display:flex;gap:4px;flex-wrap:wrap}
.palette-colours button{width:36px;height:36px;padding:4px;border-radius:50%;display:grid;place-items:center}
.palette-colours i{display:block;width:27px;height:27px;border:1.5px solid var(--ink);background:var(--swatch);border-radius:48% 53% 45% 51%}
.palette-colours button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:-2px;background:var(--gul-t)}
@media(max-width:640px){.character-preview.character-wheel{height:248px}.character-wheel .character-portrait{width:136px;height:170px}.wheel-hair{top:17px}.wheel-outfit{top:94px}.wheel-shoes{top:170px}.colour-palette{padding:8px}.palette-colours{gap:2px}.palette-colours button{width:32px;height:36px}.palette-colours i{width:25px;height:25px}}
.character-preview.character-wheel{height:292px}
.character-wheel .character-portrait{width:166px;height:208px}
.look-wheel{height:64px}.wheel-hair{top:16px}.wheel-face{top:80px}.wheel-outfit{top:145px}.wheel-shoes{top:212px}
.wheel-face button{background:var(--graen)}
@media(max-width:640px){.character-preview.character-wheel{height:280px}.character-wheel .character-portrait{width:156px;height:195px}.wheel-hair{top:12px}.wheel-face{top:76px}.wheel-outfit{top:140px}.wheel-shoes{top:205px}}
#modal[data-view=appearance] .modal-top .eyebrow{font-size:11px;line-height:1.35;transform:rotate(-2deg);max-width:calc(100% - 86px)}
#modalContent .resident-card-title{font-size:clamp(20px,3vw,28px);line-height:1.3;overflow-wrap:anywhere}
.character-preview.character-wheel{overflow:visible}
.wheel-label{max-width:105px;white-space:normal;overflow-wrap:normal;line-height:1.3;padding:3px 6px;font-size:13px}
@media(max-width:640px){.wheel-label{max-width:82px;font-size:11px;line-height:1.3}}
.player-position{pointer-events:none}.pet-companion{pointer-events:all;cursor:pointer}.pet-companion .pet-drawing{opacity:.95}.pet-companion.unclaimed .pet-drawing{opacity:.3}
.pet-companion:focus-visible{outline:2px dashed var(--ink);outline-offset:2px}
.pet-preview{display:grid;place-items:center;background:var(--bla-t);border:2px solid var(--ink);border-radius:var(--r-panel);margin:14px 0;padding:12px}
.pet-preview .pet-portrait{width:130px;height:130px}
.pet-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:16px 0}
.pet-options button{border:2px solid var(--ink);border-radius:var(--r-btn);padding:8px;background:var(--paper);min-width:0}
.pet-options button[aria-pressed=true]{background:var(--gul);box-shadow:3px 3px 0 var(--ink)}
.pet-options .pet-portrait{width:100%;height:64px}.pet-options b{font:16px/1.3 var(--hand)}
@media(max-width:640px){.pet-options{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-options .pet-portrait{height:54px}}

/* A quiet invitation beside the resident portrait, never over the map. */
.pet-badge{position:fixed;z-index:15;top:14px;right:114px;width:44px;height:48px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer}
.pet-badge .pet-portrait{width:44px;height:44px}.pet-question{font:42px var(--hand);color:var(--ink);opacity:.32;display:block;transform:rotate(8deg)}
.pet-badge:focus-visible{outline:2px dashed var(--ink);border-radius:45%}
@media(max-width:640px){.pet-badge{top:10px;right:78px;width:28px;height:38px}.pet-badge .pet-portrait{width:28px;height:34px}.pet-question{font-size:34px}.player-badge .character-portrait{transform:translateX(-5px)}}
.pet-life{display:flex;gap:16px;align-items:center}.pet-life .pet-preview{flex:0 0 110px}.pet-life .pet-portrait{width:88px;height:88px}.pet-life p{font-size:15px}.pet-life small{font-size:12px}
.pet-needs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pet-needs label{background:var(--paper);border:2px solid var(--ink);border-radius:var(--r-small);padding:9px;font:15px var(--hand)}
.pet-needs progress{display:block;width:100%;height:12px;margin:8px 0;accent-color:var(--graen)}.pet-needs small{font-size:12px}
.pet-feedback{background:var(--gul-t);padding:10px;border-radius:var(--r-small);font-size:15px}.pet-task{padding:12px;border:2px solid var(--ink);border-radius:var(--r-panel);background:var(--bla-t);margin:12px 0}.pet-task h3{margin:0}.pet-task p{font-size:14px}.pet-task>div{display:grid;gap:8px}.pet-task button{padding:10px;font:15px/1.35 var(--hand);text-align:left;border:2px solid var(--ink);border-radius:var(--r-small);background:var(--paper);white-space:normal}
@media(max-width:360px){.pet-life{gap:10px}.pet-life .pet-preview{flex-basis:80px}.pet-life .pet-portrait{width:66px;height:66px}.pet-needs label{font-size:12px;padding:6px}}
.pet-badge{right:142px;z-index:2}
@media(max-width:640px){.pet-badge{right:90px}}

.pet-needs .need-health{background:#e2f2d7;--need-colour:#68a34f}.pet-needs .need-comfort{background:#fff0bd;--need-colour:#d7a22c}.pet-needs .need-company{background:#fbdbea;--need-colour:#d879a4}
.pet-needs progress{accent-color:var(--need-colour)}.pet-needs progress::-webkit-progress-bar{background:#fffaf0;border-radius:6px}.pet-needs progress::-webkit-progress-value{background:var(--need-colour);border-radius:6px}.pet-needs progress::-moz-progress-bar{background:var(--need-colour)}
.pet-daily-complete{padding:16px;background:var(--graen-t);border:2px solid var(--ink);border-radius:var(--r-panel);font:18px/1.4 var(--hand)}.pet-daily-status{font:17px var(--hand)}.map-pet-gesture{transform-box:fill-box;transform-origin:50% 80%}

.pet-mood{padding:12px;border:2px solid var(--ink);border-radius:var(--r-panel);background:#e2f2d7;margin:12px 0}.pet-mood b{font:20px var(--hand)}.pet-mood p{font-size:14px;margin:6px 0}.pet-mood small{font-size:12px}.pet-mood.mood-sad{background:#e5e1f4}.pet-mood.mood-waiting{background:#fff0bd}
.pet-companion[data-mood=sad] .pet-figure,.pet-badge[data-mood=sad] .pet-figure{opacity:.72}
