/* One HUD structure on desktop and touch screens: profile, finds, sound, idle hint. */
.edge-shade{background:linear-gradient(#18281612,transparent 18%,transparent 82%,#20301d24)}
.topbar{--hud-height:57px;inset:22px 25px auto;align-items:flex-start}
.profile-card{display:flex;align-items:center;gap:7px;width:max-content;max-width:calc(100vw - 84px);flex:none;height:var(--hud-height);padding:4px 10px 4px 5px;background:var(--paper);border:1.5px solid #35382c;border-radius:16px;box-shadow:var(--shadow)}
.signature-avatar{display:block;flex:none;width:calc(var(--hud-height) - 9px);height:calc(var(--hud-height) - 9px);border-radius:9px}
.signature-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.profile-info{min-width:0;display:flex;flex-direction:column;justify-content:center}
.signature-copy{font-size:11px;font-weight:800;letter-spacing:-.2px;line-height:14px;white-space:nowrap}
.profile-contacts{display:flex;align-items:center;gap:8px;margin:0;padding:0}
.profile-contacts a{display:grid;place-items:center;width:30px;height:26px;border-radius:6px;color:#555e49}
.profile-contacts a:hover{background:#ede9d7;color:#272f22}
.profile-contacts a:focus-visible,.signature-avatar:focus-visible{outline:2px solid #9b692e;outline-offset:1px}
.profile-contacts a>span{display:none}
.profile-contacts svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
.sound-button{position:relative;width:var(--hud-height);height:var(--hud-height);border:1.5px solid #35382c;border-radius:16px;transform:none;padding:5px;background:var(--paper);box-shadow:var(--shadow)}
.sound-icon{display:block;width:100%;height:100%;filter:grayscale(1);opacity:.72;transition:filter .25s,opacity .25s}
/* The original antenna slides into its socket; the radio artwork stays fixed. */
.sound-antenna{transform:translate(130px,300px);transition:transform .28s ease-in-out}
.sound-button[aria-pressed=true]{background:var(--paper)}
.sound-button[aria-pressed=true] .sound-icon{filter:grayscale(0);opacity:1}
.sound-button[aria-pressed=true] .sound-antenna{transform:translate(0,0)}
@media(prefers-reduced-motion:reduce){.sound-icon,.sound-antenna{transition:none}}
.map-caption{top:92px;left:28px;color:#363d2e;font-size:9px;background:#fff9e8e8;padding:6px 9px;border-radius:6px;text-shadow:none}
.city-stats{position:absolute;z-index:5;top:22px;right:97px;width:368px;background:var(--paper);border:1.5px solid #35382c;border-radius:16px;box-shadow:var(--shadow);overflow:visible}
.finds-summary{display:flex;align-items:center;gap:9px;width:100%;height:49px;padding:6px 14px 5px;text-align:left;border-bottom:1px solid var(--line);border-radius:15px 15px 0 0}
.finds-summary:hover{background:#eee9d6}
.finds-summary>img{width:33px;height:33px;object-fit:contain;transition:transform .2s}
.finds-summary:hover>img{transform:rotate(-6deg)}
.finds-summary>b{font-size:12px}
.finds-count{margin-left:auto;font-size:13px;font-weight:700}
.count-separator{font-weight:400;font-size:11px;color:#888775}













/* Both collections use the same heading, icon, counter and content rhythm. */
.finds-sections{display:grid;grid-template-columns:122px minmax(0,1fr);gap:12px;padding:7px 12px 9px}
.finds-section{min-width:0;background:none;border:0;border-radius:0;box-shadow:none;padding:0}
.experience-card{display:flex;flex-direction:column;width:auto;align-items:stretch;text-align:left;border-right:1px solid var(--line);padding-right:12px}
.stat-heading{display:flex;align-items:center;width:100%;height:28px;gap:6px;padding:0;text-align:left}
.stat-heading>img{width:24px;height:25px;object-fit:contain;flex:none;transition:transform .2s}
.stat-heading:hover>img,.experience-card:hover .stat-heading>img{transform:translateY(-2px)}
.stat-label{font-size:10px;font-weight:700;letter-spacing:0;line-height:1.2}
.stat-heading>b{font-size:11px;font-weight:700;line-height:1;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.chapter-progress{display:flex;flex-direction:column;justify-content:center;gap:7px;height:38px;margin-top:3px;color:#797e6b;font-size:9px}
.mini-track{display:block;width:100%;height:4px;margin:0;background:#e6e1d0;border-radius:4px;overflow:hidden}
.mini-track i{display:block;height:100%;background:#e3b33e;border-radius:4px}
.respect-card{width:auto}
.respect-dots{display:flex!important;justify-content:space-between;gap:2px;margin:3px 0 0}
.respect-slot{position:relative;width:37px;height:38px;padding:1px;flex:none;display:grid;place-items:center;transition:transform .15s}
.avatar-crop{background:#f0dfa5;border:1px solid #716d53;border-radius:50%;overflow:hidden;width:100%;height:100%}
.avatar-crop img{width:180%;height:auto;max-width:none;margin-left:-40%;margin-top:-3%;pointer-events:none}
.avatar-bro img{width:150%;margin-left:-32%;margin-top:-6%}
.unfound .avatar-crop{filter:grayscale(1);opacity:.55;background:#deded3;border-color:#aaa998}
.unfound:hover .avatar-crop{opacity:1;filter:none}
.respect-slot:hover{transform:translateY(-2px)}
.slot-check{width:14px;height:14px;right:-1px;bottom:0;font-size:9px;background:#3e5935;border:1px solid var(--paper)}
.your-slot{width:35px;height:35px;margin:1px 1px 0 2px;border:1.5px dashed #786834;border-radius:10px;background:#f6d573;font-size:21px;font-weight:bold;transform:rotate(4deg)}
.your-slot:hover{transform:rotate(0deg) translateY(-2px)}
.welcome{left:25px;top:auto;bottom:117px;width:300px;padding:27px 25px 24px;border:1.5px solid #35382c;border-radius:18px;box-shadow:var(--shadow);background:var(--paper)}
.welcome:before{content:none}
.welcome-close{right:9px;top:9px;color:#6d7064}
.welcome>.eyebrow{font-size:7px;letter-spacing:.12em;color:#7b714e}
.welcome h1{font-size:36px;line-height:1.02;letter-spacing:-1.7px;font-weight:850;margin:20px 0 16px}
.welcome p{font-size:12px;line-height:1.6;color:#676b60;margin-bottom:23px}
.materials-link{display:block;min-height:36px;padding:6px 0;color:#50564b;font-size:11px;line-height:1.5;text-align:left;text-decoration:underline;text-underline-offset:3px}
.materials-link:hover{color:#2d322a}
.welcome-materials{margin:8px 0 -6px}
.collection-materials{margin-top:16px}
.materials-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:26px 28px;border:1.5px solid #35382c;border-radius:18px;background:var(--paper);color:#30362c;box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain}
.materials-dialog::backdrop{background:rgba(18,27,23,.72)}
.materials-head{display:flex;align-items:flex-start;gap:12px;position:sticky;top:-26px;padding:8px 0 16px;background:var(--paper)}
.materials-head h2{flex:1;margin:0;font-size:28px;line-height:1.12;letter-spacing:-.7px}
.materials-close{flex:none;width:36px;height:36px;margin:-5px -10px 0 0;font-size:28px;line-height:1;border-radius:8px}
.materials-close:hover{background:#e9e5d8}
.materials-copy p{margin:0 0 16px;font-size:14px;line-height:1.6}
.materials-copy p:last-child{margin-bottom:0}
.materials-copy a{color:#35432d;text-decoration:underline;text-underline-offset:3px}
.materials-contacts{display:flex;flex-wrap:wrap;gap:4px 20px}
.materials-contacts a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
@media(max-width:650px){.materials-link{min-height:44px}.materials-dialog{padding:20px}.materials-head{top:-20px}.materials-head h2{font-size:25px}}
.start-link{background:#2d322a;border:1px solid #272b22;border-radius:11px;color:var(--paper);padding:13px 15px;font-size:12px;box-shadow:0 2px 0 #c7af61}
.welcome .start-link{width:fit-content;min-height:44px;margin-inline:auto;padding-inline:24px;justify-content:center}
.start-link>span{color:#f2d36b}
.start-link:hover{background:#454d3d}
.welcome small{font-size:9px;text-align:center;margin-top:13px;color:#868477}
.welcome .touch-guidance{display:none}
.map-tools{left:auto;right:25px;bottom:25px;display:block;z-index:3}
.map-controls{display:flex;flex-direction:column;border:1.5px solid #35382c;border-radius:14px;padding:4px;margin:0;box-shadow:var(--shadow)}
.map-controls button{width:39px;height:36px;font-size:23px}
.map-controls .overview-button{width:39px;height:42px;padding:5px 0}
.scene-return{bottom:27px;left:25px;background:var(--paper);border:1px solid #454d36;border-radius:12px;padding:12px 16px;box-shadow:var(--shadow)}
.idle-hint{position:absolute;z-index:6;bottom:25px;left:25px;display:flex;align-items:center;background:#f5d575;border:1.5px solid #35382c;border-radius:15px;box-shadow:var(--shadow);animation:panel-in .25s ease}
.idle-hint .hint-button{height:62px;width:auto;display:flex;align-items:center;gap:10px;border:0;border-radius:14px 0 0 14px;box-shadow:none;background:transparent;padding:6px 12px 6px 8px;text-align:left}
.idle-hint .hint-button img{width:44px;height:44px;flex:none}
.idle-hint .hint-button>span{display:block;font-size:12px;font-weight:700}
.hint-button small{display:block;font-size:9px;font-weight:400;color:#797042;margin-top:5px}
.hint-dismiss{width:36px;height:44px;margin-right:4px;border-left:1px solid #b69e52;color:#72613d;font-size:20px}
.panel{top:176px;bottom:30px}
.testimonial-panel{top:176px;bottom:30px}
.toast{bottom:37px}
@media(min-width:1600px){.panel,.testimonial-panel{top:176px;bottom:35px;right:30px}}
@media(min-width:651px) and (max-width:850px){
 .topbar{--hud-height:52px;inset:17px 17px auto}.signature-copy{font-size:10px}
 .city-stats{top:17px;right:85px;width:315px}.respect-slot{width:33px;height:34px}.your-slot{width:31px;height:31px}
 .map-caption{left:19px;top:82px}.welcome{left:17px;width:280px}.welcome h1{font-size:33px}
 .testimonial-panel{--panel:620px}.speech-layout{grid-template-columns:185px minmax(0,1fr)}.speech-actions{margin-left:200px}.speaker-pair>img{height:255px}.speaker-pair>img+img{height:245px}.speaker-art{height:285px}
}
@media(max-width:650px){
 .topbar{--hud-height:49px;inset:max(12px,env(safe-area-inset-top)) 12px auto;gap:10px}
 .profile-card{gap:6px;padding:3px 9px 3px 4px;border-radius:14px;box-shadow:0 2px 0 #34372a,0 6px 15px #29332724}
 .signature-copy{font-size:10px;line-height:13px}
 .profile-contacts{gap:7px}
 .profile-contacts a{width:30px;height:26px}
 .profile-contacts svg{width:15px;height:15px}
 .sound-button{border-radius:14px;padding:4px}
 .top-actions{gap:0}.map-caption{display:none}
 .city-stats{top:auto;left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));width:auto;border-radius:15px;box-shadow:0 3px 0 #34372a,0 8px 22px #29332724}
 .finds-summary{height:44px;padding:4px 12px;gap:8px;border-radius:14px 14px 0 0}
 .finds-summary>img{width:31px;height:31px}.finds-summary>b{font-size:12px}.finds-count{font-size:13px}.count-separator{font-size:10px}
 
 
 
 
 
 .respect-dots{display:flex!important;margin-top:2px;gap:2px}.respect-slot{width:37px;height:38px}.your-slot{width:35px;height:35px;margin:1px 1px 0 2px;font-size:20px;border-radius:9px}.slot-check{width:12px;height:12px;font-size:8px}
 .welcome{top:auto;left:12px;right:12px;bottom:222px;width:auto;padding:22px 23px 20px;border-radius:16px;max-width:366px}
 .welcome>.eyebrow{font-size:7px}.welcome h1{font-size:33px;letter-spacing:-1.3px;line-height:1.04;margin:15px 0 12px}.welcome h1 br{display:none}.welcome p{font-size:12px;line-height:1.5;margin:0 0 18px;max-width:290px}
 .start-link{font-size:12px;padding:12px 14px}.welcome small{font-size:8px;margin-top:11px;display:block}.welcome .desktop-guidance{display:none}.welcome .touch-guidance{display:block}
 .map-tools{display:none!important}
 .idle-hint{left:auto;right:12px;bottom:155px;border-radius:13px}
 .idle-hint .hint-button{height:54px;padding:4px 9px 4px 5px;gap:6px}.idle-hint .hint-button img{width:36px;height:36px}.idle-hint .hint-button>span{font-size:11px}.hint-button small{font-size:8px;margin-top:4px}.hint-dismiss{width:32px;height:36px;font-size:19px}
 .scene-return{left:12px;bottom:159px;font-size:10px;padding:10px 13px;border-radius:10px}
 .panel{top:max(116px,calc(env(safe-area-inset-top) + 104px));bottom:max(12px,env(safe-area-inset-bottom));right:8px;width:calc(100% - 16px)}
 .testimonial-panel{top:max(116px,calc(env(safe-area-inset-top) + 104px));bottom:max(12px,env(safe-area-inset-bottom));right:8px;width:calc(100% - 16px)}
 .toast{bottom:159px;font-size:10px;padding:10px 14px;max-width:calc(100% - 28px)}
 .panel-open .toast{bottom:25px}
}
@media(max-width:370px){
 .signature-copy{font-size:10px}
 .respect-slot{width:32px;height:34px}.your-slot{width:30px;height:31px;font-size:18px}
 .welcome{padding:20px}.welcome h1{font-size:30px}.welcome p{font-size:11px}
}
@media(max-width:650px) and (max-height:700px){
 .welcome{bottom:222px;padding:17px 21px}.welcome h1{font-size:29px;margin:12px 0 10px}.welcome p{font-size:11px;margin-bottom:13px}.welcome small{font-size:7px;margin-top:8px}
 .panel,.testimonial-panel{top:105px;bottom:10px}
}
@media(max-width:950px) and (max-height:500px){
 .topbar{--hud-height:43px;inset:10px 12px auto}.profile-card{padding:2px 8px 2px 4px}.signature-copy{font-size:10px;line-height:12px}.profile-contacts a{height:24px}.sound-button{padding:3px}
 .city-stats{top:10px;right:67px;bottom:auto;left:auto;width:300px}.finds-summary{height:36px}.respect-slot{width:30px;height:31px}.your-slot{width:28px;height:29px}
 .welcome{top:auto;bottom:20px;width:280px;right:auto;left:12px;padding:17px 20px}.welcome h1{font-size:28px;margin:10px 0}.welcome p{font-size:10px;margin-bottom:12px}.welcome small,.map-caption{display:none}.start-link{padding:10px 13px;font-size:11px}
 .idle-hint{bottom:20px;left:auto;right:75px}.map-tools{bottom:20px;right:12px}.scene-return{bottom:20px;left:12px}.panel,.testimonial-panel{top:122px;bottom:10px}.toast{bottom:20px}
}
@media(hover:none) and (pointer:coarse){.map-tools{display:none!important}.map-caption{display:none}.desktop-guidance{display:none!important}.welcome .touch-guidance{display:block}.respect-slot{touch-action:manipulation}}

@media(min-width:651px) and (max-width:850px){
 .finds-sections{grid-template-columns:102px minmax(0,1fr);gap:9px;padding-left:9px;padding-right:9px}
 .experience-card{padding-right:9px}.stat-heading{gap:4px}.stat-heading>img{width:21px;height:24px}.stat-label{font-size:9px}.stat-heading>b{font-size:10px}
}
@media(max-width:650px){
 .finds-sections{grid-template-columns:110px minmax(0,1fr);gap:10px;padding:6px 11px 8px}
 .experience-card{padding-right:10px}.stat-heading{height:27px;gap:5px}.stat-heading>img{width:23px;height:24px}.stat-label{font-size:10px}.stat-heading>b{font-size:11px}
}
@media(max-width:370px){
 .finds-sections{grid-template-columns:105px minmax(0,1fr);gap:9px;padding-left:10px;padding-right:10px}
 .experience-card{padding-right:9px}.stat-label{font-size:9px}.stat-heading>b{font-size:10px}
}
@media(max-width:950px) and (max-height:500px){
 .finds-sections{grid-template-columns:100px minmax(0,1fr);gap:8px;padding:4px 9px 6px}
 .experience-card{padding-right:8px}.stat-heading{height:25px;gap:4px}.stat-heading>img{width:21px;height:23px}.stat-label{font-size:9px}.stat-heading>b{font-size:10px}.chapter-progress{height:31px;font-size:8px;gap:5px}
}

/* Keep all five respect slots within the same inset as the mobile counters. */
@media(max-width:650px){
 .finds-sections{padding-inline:12px}
 .respect-dots{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;height:38px;align-items:center;justify-content:normal}
 .respect-slot{width:100%;max-width:37px;min-width:0;height:auto;aspect-ratio:1;justify-self:center}
 .respect-slot:first-child{justify-self:start}
 .your-slot{width:100%;max-width:35px;height:auto;margin:0;justify-self:end;transform:none}
 .your-slot:hover{transform:translateY(-2px)}
}

.map-controls button:disabled{opacity:.35;cursor:default;background:transparent}

/* Centre the close icon geometrically, independently of font metrics. */
.close-button{display:grid;place-items:center;padding:0;flex-shrink:0}
.close-button>svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:square;pointer-events:none}

/* Keep the full close-up of the service and mechanic at every screen width. */
.chapter-scene[data-scene=rossko] svg{height:auto;aspect-ratio:1}

/* Desktop dialogs sit at the viewport centre and scroll only when needed. */
@media(min-width:651px) and (hover:hover) and (pointer:fine){
 .panel[data-kind]:not(.atm-note-panel){left:50%;right:auto;top:50%;bottom:auto;max-height:calc(100dvh - 48px);transform:translate(-50%,-50%);animation-name:panel-centered-in}
 .panel[data-kind]:not(.atm-note-panel) .panel-content{flex:0 1 auto;min-height:0}
 @media(prefers-reduced-motion:reduce){.panel[data-kind]:not(.atm-note-panel){animation:none}}
}
@keyframes panel-centered-in{from{opacity:0;transform:translate(-50%,calc(-50% + 12px))}to{opacity:1;transform:translate(-50%,-50%)}}
