/* Dedicated phone layout: a clean illustration, direct category controls,
   and readable content rather than a scaled-down desktop canvas. */
.quiz-nav-mobile,.mobile-map-intro,#mobile-map-points,.mobile-system-grid{display:none}

@media(max-width:760px){
 html{scroll-padding-top:90px}
 .page{overflow-x:clip}
 .page>main{padding:0 20px}
 .topbar{height:72px;padding:0 16px;gap:10px;background:rgba(251,250,247,.97)}
 .topbar-left{gap:4px;min-width:0}
 .topbar .mobile-menu{width:44px;height:44px;justify-content:center;margin-left:-8px}
 .mini-logo{font-size:31px;letter-spacing:-1.8px}
 .topbar-actions{gap:10px}
 .quiz-nav-desktop{display:none}
 .quiz-nav-mobile{display:inline}
 .quiz-nav{font-size:12px;font-weight:500;gap:9px;min-height:44px;padding:11px 13px;background:#f4e7dc;border:1px solid #e9cfbc;border-radius:8px;color:#08747a}
 .quiz-nav:hover{background:#f1dccb}
 .topbar .shortlist-button{width:42px;height:44px;padding:0;position:relative;justify-content:center;border-radius:8px;gap:0}
 .topbar .shortlist-button>span:nth-child(2){display:none}
 .topbar .shortlist-button svg{width:17px;height:17px}
 #shortlist-count{position:absolute;top:-5px;right:-4px;display:grid;place-items:center;background:var(--accent);color:white;border:2px solid var(--paper);border-radius:50%;font-size:9px;width:19px;height:19px;min-width:0;padding:0}
 #shortlist-count[data-count="0"]{display:none}
 .sidebar{width:min(310px,calc(100vw - 42px));padding:34px 22px 30px}
 .sidebar .sidebar-close{width:44px;height:44px;right:9px;top:9px}
 .sidebar .category-button{min-height:49px;font-size:14px;padding:14px 13px}
 .sidebar .category-button svg{width:21px;height:21px}
 .sidebar .category-button b{font-size:12px}
 .sidebar .side-kicker,.sidebar .nav-label{font-size:10px}
 .hero{display:block;padding:33px 0 29px}
 .hero .eyebrow{font-size:9px;letter-spacing:1.25px;line-height:1.6;margin-bottom:20px}
 .hero h1{font-size:clamp(43px,11.9vw,67px);line-height:1.02;letter-spacing:-2.4px}
 .hero-intro{display:block;max-width:470px;margin:20px 0 0}
 .hero-intro>p{font-size:15px;line-height:1.55;letter-spacing:-.15px;margin:0;color:#545b4c}
 .hero-intro>p br{display:none}
 .hero-intro>span{display:block;font-size:13px;line-height:1.7;margin-top:8px;color:#818573}
 .hero-explore{display:inline-flex;width:auto;height:auto;font-size:12px;line-height:1.5;gap:13px;border:0;border-bottom:1px solid #d6cfbd;border-radius:0;padding:0 0 4px;margin-top:17px;color:#08747a}
 .hero-explore>span{font-size:18px}
 .atlas-heading{margin:0;padding-top:14px;font-size:9px;letter-spacing:1.2px;gap:12px}
 .atlas-heading .map-instruction{display:none}
 .atlas-heading .reset-map{font-size:11px;min-height:44px;gap:10px}
 .mobile-map-intro{display:block;font-size:23px;line-height:1.2;letter-spacing:-.65px;margin:4px 0 0;font-weight:450}
 .dog-stage{min-height:0;padding:23px 0 11px;background:var(--paper)}
 .dog-model{width:100%;max-width:485px;margin:0 auto;mix-blend-mode:multiply}
 .figure-index,.map-note,#map-points{display:none}
 .stage-grid{inset:15px -5px 0;background-size:16px 16px;opacity:.13}
 #mobile-map-points{display:block;position:absolute;inset:0;pointer-events:none}
 .mobile-map-number{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#08747a;font-size:10px;font-weight:600;line-height:1;pointer-events:auto;touch-action:manipulation}
 .mobile-map-number>span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #08747a;border-radius:50%;background:#fffcf5;box-shadow:0 0 0 3px #fbfaf780}
 .mobile-map-number:hover>span,.mobile-map-number.active>span{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 0 0 4px #df593725}
 .mobile-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0 22px}
 .mobile-system-button{display:flex;align-items:center;gap:9px;text-align:left;min-height:51px;padding:10px 11px;background:#fff;border:1px solid #e1e3d7;border-radius:7px;line-height:1.4;color:#68735b}
 .mobile-system-button>span{display:grid;place-items:center;flex:none;width:24px;height:24px;background:#f4f3ec;border-radius:50%;font-size:10px;color:#a0866a}
 .mobile-system-button>b{font-size:12px;font-weight:450;letter-spacing:-.1px}
 .mobile-system-button:hover{border-color:#d2b69b;background:#fefbf5}
 .mobile-system-button.active{background:#faf0e7;border-color:#08747a;color:#08747a}
 .mobile-system-button.active>span{background:var(--accent);color:white}
 .atlas-footer{display:block;padding:20px 0 19px}
 .selection-summary{align-items:flex-start;gap:12px}
 .selection-summary>span{padding:10px;border-radius:7px;flex:none}
 .selection-summary>span svg{width:20px;height:20px}
 .selection-summary h2{font-size:17px;letter-spacing:-.3px;margin:0 0 5px}
 .selection-summary p{font-size:12px;line-height:1.7;color:#848d75;margin:0;max-width:none}
 .selection-link{display:inline-flex;font-size:12px;gap:12px;margin:13px 0 0 52px;min-height:40px}
 .selection-link>span:last-child{width:32px;height:32px;font-size:18px}
 .map-caption{font-size:10px;line-height:1.6;text-align:left;margin:10px 0 0;max-width:none;color:#959c86}
 .quiz-invite{display:block;padding:24px;border-radius:9px;margin:29px 0 0;background:#f3ede2;border-color:#e6dac9}
 .quiz-invite>div>span{font-size:9px;letter-spacing:1.3px;color:#9e8566}
 .quiz-invite h2{font-size:28px;line-height:1.1;letter-spacing:-.9px;margin:13px 0 12px;max-width:310px}
 .quiz-invite p{font-size:13px;line-height:1.7;color:#82866e}
 .quiz-invite>a{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:19px;padding:12px 15px;border:0;border-radius:5px;background:var(--accent);color:white;font-size:13px}
 .quiz-invite>a:hover{background:#08747a}
 .library{padding:38px 0 36px}
 .section-heading{gap:14px;align-items:flex-end;margin-bottom:22px}
 .section-heading .eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:10px}
 .section-heading h2{font-size:29px;letter-spacing:-1px;line-height:1.1}
 .result-count{font-size:10px;line-height:1.5;max-width:62px;flex:none;text-align:right}
 .library-tools{gap:8px;margin-bottom:13px}
 .search{min-height:48px;padding:0 12px;gap:8px;border-radius:6px}
 .search input{font-size:16px;padding:12px 0;min-width:0}
 .search input::placeholder{font-size:12px}
 .search svg{width:18px;height:18px}
 .search kbd{display:none}
 .sort-label{width:105px;flex:none}
 .sort-label select{font-size:12px;padding:12px 22px 12px 10px;border-radius:6px;min-height:48px}
 .sort-label>span:last-child{right:7px}
 .filter-bar{gap:7px;align-items:center}
 .status-filters{min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:3px 1px 8px;scrollbar-width:none}
 .status-filters::-webkit-scrollbar{display:none}
 .filter{font-size:11px;min-height:40px;padding:10px 12px;gap:6px;white-space:nowrap;flex:none;border-radius:5px}
 .filter-help{height:40px;width:34px;margin-bottom:5px;padding:0;border:1px solid #e5e7dc;border-radius:5px}
 .active-filter-row{flex-wrap:wrap;font-size:11px;gap:9px;margin-top:14px}
 .active-chip{font-size:11px;min-height:40px;padding:10px 12px;gap:12px}
 .active-filter-row>.text-button{min-height:40px;font-size:11px}
 .profile-grid{gap:13px;margin-top:17px}
 .profile-card{min-height:0;border-radius:9px;border-color:#e0e3d6}
 .profile-card:hover{transform:none}
 .card-main{padding:22px 22px 20px}
 .card-main .status-badge{font-size:10px;padding:6px 9px;gap:6px;max-width:calc(100% - 32px)}
 .status-dot{width:5px;height:5px}
 .card-bookmark{width:44px;height:44px;top:10px;right:10px}
 .card-bookmark svg{width:17px;height:17px}
 .card-main h3{font-size:27px;line-height:1.1;letter-spacing:-.8px;margin:19px 0 8px}
 .card-subtitle{font-size:12px;line-height:1.5;margin-bottom:12px;color:#8a947b}
 .card-description{font-size:14px;line-height:1.7;max-width:none;color:#717e61}
 .card-footer{padding:10px 16px 10px 22px;font-size:10px;line-height:1.6;gap:12px}
 .card-footer>span{white-space:normal;max-width:calc(100% - 52px);color:#8a967a}
 .card-footer button{display:grid;place-items:center;flex:none;width:40px;height:40px;font-size:20px;border:1px solid #e7eadf;border-radius:50%}
 .library-footnote{font-size:11px;line-height:1.8;margin-top:22px}
 .library-footnote button{font-size:11px;min-height:36px;white-space:normal;text-align:left}
 .care-note{display:block;padding:27px 25px;border-radius:9px;margin-bottom:35px}
 .care-note .eyebrow{font-size:9px;line-height:1.6;letter-spacing:1.3px}
 .care-note h2{font-size:36px;line-height:1.05;margin-bottom:22px}
 .care-copy p{font-size:13px;line-height:1.8}
 .care-copy .primary-button{display:flex;justify-content:space-between;min-height:48px;padding:12px 15px;font-size:12px;margin-top:19px}
 .subtle-link{font-size:11px;min-height:42px;text-align:left}
 .footer{padding:27px 20px calc(75px + env(safe-area-inset-bottom,0px));gap:17px;align-items:flex-start}
 .footer-brand{font-size:30px;flex:none}
 .footer p{font-size:10px;line-height:1.8;margin:0;max-width:220px;flex:1;color:#8e997c}
 .footer .text-button{width:100%;margin:0;font-size:11px;min-height:44px;justify-content:flex-start}
 .dialog-top{padding:14px 20px 14px 24px;min-height:70px}
 .dialog-top .eyebrow{font-size:9px;letter-spacing:1.2px}
 .dialog-top .icon-button{width:44px;height:44px;background:#f0f1e8}
 .dialog-top .icon-button svg{width:18px;height:18px}
 #profile-content{padding:27px 25px calc(30px + env(safe-area-inset-bottom,0px))}
 #profile-content>.status-badge{font-size:10px;padding:7px 10px}
 .profile-title{font-size:38px;line-height:1.1;letter-spacing:-1.5px;margin-top:21px;overflow-wrap:anywhere}
 .profile-subtitle{font-size:13px;line-height:1.6}
 .profile-lead{font-size:17px;line-height:1.65}
 .profile-facts{grid-template-columns:1fr}
 .profile-facts div,.profile-facts div+div{border-left:0;padding:15px 0}
 .profile-facts div+div{border-top:1px solid var(--line)}
 .profile-facts dt{font-size:9px;letter-spacing:1.2px}
 .profile-facts dd{font-size:13px;line-height:1.6}
 .profile-section{margin:26px 0}
 .profile-section h3{font-size:16px;margin-bottom:11px}
 .profile-section p{font-size:14px;line-height:1.8;color:#778667}
 .profile-question{padding:21px}
 .profile-question .eyebrow{font-size:9px;line-height:1.5}
 .profile-question p{font-size:17px;line-height:1.6}
 .source-link{font-size:12px;line-height:1.7;padding:15px 0}
 .profile-actions{gap:10px}
 .profile-actions .secondary-button{font-size:12px;min-height:47px;padding:12px 14px}
 .profile-disclaimer{font-size:10px;line-height:1.8}
 .info-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 30px);border-radius:12px}
 .info-dialog #info-content{padding:24px 23px 28px}
 .info-dialog h2{font-size:30px;line-height:1.1}
 .info-dialog p,.info-dialog .evidence-row p{font-size:13px;line-height:1.8}
 .info-dialog .info-lead{font-size:15px}
 .info-dialog .status-badge{font-size:10px;padding:7px 10px}
 .info-dialog .secondary-button,.info-dialog .primary-button{font-size:12px;min-height:46px}
 .info-dialog .info-small{font-size:11px!important}
 .shortlist-item .icon-button{width:44px;height:44px}
 .shortlist-item h3{font-size:22px}
 .toast{font-size:12px;line-height:1.6;padding:13px 17px;bottom:calc(22px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:600px){.profile-grid{grid-template-columns:1fr}}
@media(max-width:359px){
 .page>main{padding:0 17px}.topbar{padding:0 13px;gap:6px}.topbar-actions{gap:7px}.mini-logo{font-size:28px}.quiz-nav{padding:10px;font-size:11px;gap:6px}.hero .eyebrow{font-size:8px;letter-spacing:1px}.hero h1{font-size:40px;letter-spacing:-2px}.hero-intro>p{font-size:14px}.mobile-system-button{gap:7px;padding:9px}.mobile-system-button>b{font-size:11px}.mobile-system-button>span{width:22px;height:22px}.quiz-invite{padding:23px 21px}.quiz-invite h2{font-size:26px}.section-heading h2{font-size:26px}.sort-label{width:96px}.card-main{padding:21px}.card-footer{padding-left:21px}.footer p{font-size:9px}
}
