/* Isolated learning pages and the pixel-cat academy entrance. */
body:not(.auth-gated) header{height:auto;min-height:82px;padding-top:14px;padding-bottom:12px;flex-wrap:wrap;gap:12px 28px}
body header .account-nav{margin-left:auto}
.journey-nav{display:flex;align-items:center;justify-content:flex-end;gap:14px;width:100%;padding-top:12px;border-top:1px solid #ffffff0d}


body.auth-gated .journey-nav{display:none!important}
body.home-view>footer{display:none}
body.home-view .crypto-hero{border-bottom:0!important}
body.home-view .pixel-cat-scene{height:calc(100svh - var(--hero-header-height,140px));min-height:350px;max-height:none}
.academy-entry{position:absolute;top:clamp(30px,8vh,90px);left:50%;transform:translateX(-50%);z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(260px,76vw);padding:14px 16px;color:#ddd;text-decoration:none;border:0;border-radius:0;background:transparent;transition:opacity .3s}
.academy-entry:hover{opacity:.85}.academy-entry:focus-visible{outline:1px dashed #777;outline-offset:6px}
.entry-label{font-family:'Academy Pixel',monospace;font-size:clamp(28px,7vw,38px);font-weight:400;letter-spacing:.04em;text-shadow:2px 2px #000;animation:entry-glow 4s ease-in-out infinite}
.entry-track{position:relative;display:block;height:48px;width:100%;margin-top:6px;border-bottom:0;overflow:hidden}
.entry-track picture{position:absolute;width:32px;height:38.4px;bottom:0;left:0;animation:cat-entry-run 4s linear infinite}
.entry-track img{width:100%;height:100%;image-rendering:pixelated}
.entry-track>span{position:absolute;right:0;bottom:4px;font:24px monospace;color:#aaa}
.academy-entry.entering .entry-track picture{animation:cat-entry-leap .65s ease-in forwards}
@keyframes cat-entry-run{0%{left:0;transform:scaleX(1)}48%{left:calc(100% - 48px);transform:scaleX(1)}50%{left:calc(100% - 48px);transform:scaleX(-1)}98%{left:0;transform:scaleX(-1)}100%{left:0;transform:scaleX(1)}}
@keyframes cat-entry-leap{from{left:0;transform:translateY(0)}55%{transform:translateY(-9px)}to{left:110%;transform:translateY(0)}}
@keyframes entry-glow{0%,100%{color:#a8a8a8}50%{color:#eee;text-shadow:0 0 15px #ffffff25}}
body.learning-view main{min-height:calc(100svh - var(--hero-header-height,140px))}
body.learning-view .section{border-top:0;padding-top:40px;padding-bottom:40px}
.journey-completion{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;width:100%;margin-top:48px;padding-top:28px;border-top:1px solid #303030;color:#ccc}
.journey-review{min-width:0;max-width:760px}
.journey-review fieldset{border:0;margin:0;padding:0;min-width:0}
.journey-review legend{font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:#888;margin-bottom:12px}
.journey-review p{font-size:14px;line-height:1.7;margin:0 0 16px;white-space:normal}
.journey-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.journey-options label{display:flex;align-items:center;gap:12px;border:1px solid #333;background:#101010;border-radius:9px;padding:14px;cursor:pointer;font-size:12px;line-height:1.6;position:relative}
.journey-options label:has(input:checked){background:#202020;border-color:#b6b6b6;color:#fff}
.journey-options input{position:absolute;opacity:0;width:1px;height:1px}
.journey-options label:has(input:focus-visible){outline:2px solid #eee;outline-offset:3px}
.journey-letter{font:12px ui-monospace,monospace;flex:0 0 22px;color:#aaa}
.journey-submit{margin:16px 0;padding:12px 18px;background:#deded9;color:#111;border:0;border-radius:7px;min-height:44px;font:12px Manrope,Arial,sans-serif;cursor:pointer}
.journey-review fieldset:disabled{opacity:.45}
.journey-note,.journey-feedback{color:#939393;font-size:12px!important;margin:10px 0!important}
.journey-feedback:empty{display:none}
.journey-next-wrap{align-self:end;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:48px}
.journey-next-wrap>span{font-size:11px;color:#888;max-width:180px;line-height:1.5;text-align:right}
.journey-next{width:48px;height:48px;border:1px solid #666;border-radius:50%;display:grid;place-items:center;color:#eee;background:#161616;transition:background .2s,transform .2s;flex:0 0 48px}
.journey-next:hover{background:#333;transform:translateX(3px)}
.journey-next[aria-disabled]{opacity:.25;pointer-events:none}
.journey-next svg,.learning-gate svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.learning-gate{min-height:60svh;align-content:center;text-align:center;color:#bbb}
.learning-gate h2{font-size:clamp(24px,5vw,40px);margin:20px 0}
.learning-gate .button{display:inline-flex;gap:20px;align-items:center;margin-top:24px}
#accountTitle[hidden]{display:none!important}
body.learning-view .back-to-top{bottom:20px}
@media(max-width:700px){
 body header{gap:12px;padding-bottom:12px}
 .journey-nav{gap:8px;padding-top:10px}
 
 
 body.home-view .pixel-cat-scene{min-height:310px}
 .academy-entry{top:26px}
 .journey-completion{grid-template-columns:1fr;gap:20px;margin-top:32px;padding-top:24px}
 .journey-options{grid-template-columns:1fr}
 .journey-options label{padding:12px;min-height:48px}
 .journey-next-wrap{width:100%;padding-right:0}
 body.learning-view .section{padding-top:28px;padding-bottom:80px}
}
@media(prefers-reduced-motion:reduce){.entry-label,.entry-track picture,.academy-entry.entering .entry-track picture{animation:none}.journey-next{transition:none}}

.entry-track>span .ui-arrow{width:20px;height:20px}

@font-face{font-family:'Academy Pixel';src:url('academy-pixel.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
.journey-nav{position:relative;border-top-color:#ffffff0a}
.journey-menu{position:relative;width:min(360px,100%);color:#c7c7c7}
.journey-menu>summary{display:flex;align-items:center;gap:16px;min-height:46px;padding:10px 12px;list-style:none;cursor:pointer;border-radius:6px;background:#ffffff03;font:12px Manrope,Arial,sans-serif;box-sizing:border-box}
.journey-menu>summary::-webkit-details-marker{display:none}
.journey-menu>summary:focus-visible{outline:1px solid #aaa;outline-offset:3px}
.journey-menu-caption{color:#777;letter-spacing:.1em;text-transform:uppercase;font-size:9px;flex-shrink:0}
#journeyCurrent{margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.journey-chevron{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#999;stroke-width:1.4;transition:transform .25s}
.journey-menu[open] .journey-chevron{transform:rotate(180deg)}
header .journey-menu-panel{position:absolute;top:calc(100% + 12px);right:0;width:360px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;gap:0;padding:8px 16px;background:#111111fa;border:1px solid #ffffff12;border-radius:12px;box-shadow:0 20px 50px #0009;max-height:calc(100dvh - var(--hero-header-height,150px) - 32px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;z-index:50}
header .journey-menu-row{display:flex;align-items:center;gap:16px;padding:14px 4px;min-height:66px;border-bottom:1px solid #ffffff0c;text-decoration:none;color:#c7c7c7;box-sizing:border-box;transition:color .2s,background .2s;font:12px Manrope,Arial,sans-serif}
header .journey-menu-row:last-child{border-bottom:0}
header a.journey-menu-row:hover,header a.journey-menu-row[aria-current]{color:#fff;background:#ffffff04}
header a.journey-menu-row:focus-visible{outline:1px solid #888;outline-offset:-1px;border-radius:4px}
.journey-index{font:10px ui-monospace,monospace;color:#555;flex:0 0 22px}
.journey-row-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.journey-row-copy>span{line-height:1.4;letter-spacing:.015em}
.journey-row-copy small{font-size:9px;letter-spacing:.06em;color:#737373}
.journey-lock{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#888;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;margin-right:4px}
.journey-menu-row.is-locked{color:#656565}
.journey-menu-row.is-locked .journey-lock{stroke:#505050}
@media(max-width:700px){
 .journey-menu{width:min(100%,360px)}
 .journey-menu>summary{gap:10px;padding:8px 6px;min-height:44px}
 header .journey-menu-panel{top:calc(100% + 8px);width:100%;padding:6px 14px;border-radius:10px}
 header .journey-menu-row{min-height:58px;padding:10px 2px;gap:12px}
 .journey-menu-caption{font-size:9px;letter-spacing:.08em}
 .academy-entry{width:min(230px,74vw);padding:12px 10px}
}
@media(prefers-reduced-motion:reduce){.journey-chevron,header .journey-menu-row,.academy-entry{transition:none}}

/* Fill the changing mobile viewport all the way through the landscape floor. */
@media(max-width:700px){
 body.home-view{background:#0e0e0e}
 body.home-view main{min-height:0;padding-bottom:0;margin-bottom:0}
 body.home-view .hero.crypto-hero{--mobile-scene-height:max(560px,calc(100svh - var(--hero-header-height,150px)));position:relative;display:block;width:100%;height:var(--mobile-scene-height);min-height:var(--mobile-scene-height);max-height:none;padding:0;margin:0;overflow:visible;background:#0e0e0e}
 body.home-view .hero.crypto-hero .pixel-cat-scene{width:100%;max-width:none;height:var(--mobile-scene-height);min-height:var(--mobile-scene-height);margin:0;--duel-ground:max(12%,calc(env(safe-area-inset-bottom,0px) + 30px))}
 body.home-view .hero.crypto-hero:before{display:block;inset:0;bottom:0;height:100%;background-image:url('crypto-scenery.webp');background-size:100% 100%;background-position:center bottom;background-repeat:no-repeat;mask:none;-webkit-mask:none;opacity:.7}
 @supports(height:100dvh){body.home-view .hero.crypto-hero{--mobile-scene-height:max(560px,calc(100dvh - var(--hero-header-height,150px)))}}
}

/* Signature above the right edge of the header wordmark. */
.header-wordmark{display:inline-flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.header-byline{font-family:Manrope,Arial,sans-serif;font-size:9px;line-height:1.2;letter-spacing:.12em;font-weight:400;color:#8b8b8b;padding-right:1px;white-space:nowrap}
.header-wordmark .brand{line-height:1}
body>footer.utility-footer{height:0;min-height:0;margin:0;padding:0;border:0;gap:0;overflow:visible}
@media(max-width:700px){.header-wordmark{gap:4px}.header-byline{font-size:8px;letter-spacing:.1em}}

/* Centered wordmark: the companion hops onto each of the seven letters. */
body.home-view .academy-entry{top:50%;left:50%;transform:translate(-50%,-50%);width:auto;max-width:calc(100% - 64px);padding:24px 12px;background:none;border:0;overflow:visible}
.entry-word{position:relative;display:block;font-size:clamp(36px,8vw,48px);width:4.76em}
.entry-word .entry-label{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;font-size:inherit;line-height:1;letter-spacing:0;text-align:center}
.entry-word .entry-label>span{display:block}
.entry-hopper{position:absolute;left:7.1429%;bottom:calc(100% - .16em);width:36px;height:43.2px;transform:translateX(-50%);animation:cat-letter-hop 5.4s linear infinite alternate;pointer-events:auto}
.entry-hopper picture,.entry-hopper img{display:block;width:100%;height:100%;image-rendering:pixelated}
.cat-chat{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);width:max-content;padding:7px 10px;background:#d8d8d8;color:#171717;border-radius:3px;font:10px/1.1 ui-monospace,monospace;letter-spacing:.03em;box-shadow:3px 3px 0 #0005;animation:cat-chat-pulse 3s ease-in-out infinite}
.cat-chat:after{content:'';position:absolute;top:100%;left:calc(50% - 3px);width:6px;height:6px;background:#d8d8d8;clip-path:polygon(0 0,100% 0,0 100%)}
body.home-view .academy-entry:hover{opacity:1}
.academy-entry:hover .entry-label{color:#fff}
.academy-entry.entering .entry-hopper{animation-duration:1.2s}
@keyframes cat-letter-hop{
 0%{left:7.1429%;transform:translate(-50%,0)}
 8.333%{left:14.2857%;transform:translate(-50%,-26px)}
 16.667%{left:21.4286%;transform:translate(-50%,0)}
 25%{left:28.5714%;transform:translate(-50%,-26px)}
 33.333%{left:35.7143%;transform:translate(-50%,0)}
 41.667%{left:42.8571%;transform:translate(-50%,-26px)}
 50%{left:50%;transform:translate(-50%,0)}
 58.333%{left:57.1429%;transform:translate(-50%,-26px)}
 66.667%{left:64.2857%;transform:translate(-50%,0)}
 75%{left:71.4286%;transform:translate(-50%,-26px)}
 83.333%{left:78.5714%;transform:translate(-50%,0)}
 91.667%{left:85.7143%;transform:translate(-50%,-26px)}
 100%{left:92.8571%;transform:translate(-50%,0)}
}
@keyframes cat-chat-pulse{0%,100%{opacity:.8}50%{opacity:1}}
@media(max-width:700px){.entry-hopper{width:30px;height:36px}.cat-chat{font-size:9px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.entry-hopper,.academy-entry.entering .entry-hopper,.cat-chat{animation:none}.entry-hopper{left:50%}}

/* Compact learning-path control alongside the top-right navigation. */
body header .journey-nav{width:auto;flex:0 0 44px;padding:0;border:0;margin:0;align-self:center}
body header .journey-menu{width:44px}
body header .journey-menu>summary{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;gap:0;background:transparent;border-radius:8px}
body header .journey-menu>summary:hover{background:#ffffff06}
body header .journey-chevron{width:19px;height:19px;stroke:#aaa}
body header .journey-menu-panel{width:360px;max-width:calc(100vw - 32px);right:0;top:calc(100% + 10px)}
@media(max-width:700px){body:not(.auth-gated) header{column-gap:10px}body header .journey-nav{flex-basis:40px}body header .journey-menu,body header .journey-menu>summary{width:40px}body header .account-nav{flex:1 1 auto;justify-content:flex-end}}

/* Keep the landscape floor at the viewport edge, beyond the source's dark tail. */
body.home-view .hero.crypto-hero{--full-scene-height:max(560px,calc(100svh - var(--hero-header-height,100px)));height:var(--full-scene-height);min-height:var(--full-scene-height);max-height:none;padding:0;margin:0;position:relative;display:block}
body.home-view .hero.crypto-hero .pixel-cat-scene{height:var(--full-scene-height);min-height:var(--full-scene-height);max-height:none;width:100%;max-width:none;margin:0}
body.home-view .hero.crypto-hero:before{content:'';display:block;inset:0;width:100%;height:100%;background-image:url('crypto-scenery.webp');background-size:100% 110%;background-position:center top;background-repeat:no-repeat;mask:none;-webkit-mask:none;opacity:.7}
body.home-view .hero.crypto-hero:after{display:none}
body.home-view main{padding-bottom:0;margin-bottom:0}
@supports(height:100dvh){body.home-view .hero.crypto-hero{--full-scene-height:max(560px,calc(100dvh - var(--hero-header-height,100px)))}}

/* Place the owner signature directly against the small-cap wordmark. */
body header .header-wordmark{position:relative;display:inline-flex;gap:0;padding:0}
body header .header-byline{position:absolute;right:1px;bottom:calc(50% + 3px);padding:0;margin:0;font-size:8px;line-height:1;letter-spacing:.1em;color:#a0a0a0;pointer-events:none}
@media(max-width:700px){body header .header-byline{font-size:7px;bottom:calc(50% + 1px);letter-spacing:.08em}}

/* Keep return-to-top separate from the next-section control. */
body footer .back-to-top{left:max(28px,env(safe-area-inset-left,0px));right:auto;bottom:calc(28px + env(safe-area-inset-bottom,0px))}
@media(max-width:700px){body footer .back-to-top{left:max(18px,env(safe-area-inset-left,0px));right:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px))}}

/* Password confirmation and the account-created verification screen. */
#authForm .password-match-status{font-size:11px;line-height:1.5;color:#aaa;margin:-8px 0 18px;min-height:0}
#authForm .password-match-status:empty{display:none}
#authForm input[aria-invalid="true"]{border-color:#888}
#accountPanel .auth-verification-card{width:100%;min-width:0;box-sizing:border-box;padding:clamp(24px,4vw,44px);border:1px solid #303030;border-radius:16px;background:linear-gradient(145deg,#141414,#0b0b0b);color:#d4d4d4;outline:none;align-self:center}
.verification-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:24px;border:1px solid #3b3b3b;border-radius:12px;background:#191919}
.verification-icon svg{width:30px;height:30px;fill:none;stroke:#ccc;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.verification-kicker{font-size:9px;letter-spacing:.16em;color:#888}
.auth-verification-card h2{font:400 clamp(26px,4vw,36px)/1.2 Manrope,Arial,sans-serif;letter-spacing:-.04em;margin:12px 0 20px;color:#eee}
.auth-verification-card .verification-description{font-size:13px;line-height:1.6;color:#999;margin:0}
.auth-verification-card .verification-address{font-size:14px;line-height:1.6;color:#ddd;overflow-wrap:anywhere;margin:6px 0 24px}
.verification-steps{list-style:none;padding:0;margin:0 0 28px;border-top:1px solid #292929}
.verification-steps li{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid #292929;font-size:13px;line-height:1.5}
.verification-steps li>span{font:10px/1.8 ui-monospace,monospace;color:#666}
.verification-steps small{display:block;margin-top:5px;font-size:11px;line-height:1.7;color:#888}
.auth-verification-card .verification-signin{width:100%;justify-content:center;min-height:46px;background:#ddd;color:#111;border:0;border-radius:7px;font-size:12px}
.verification-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:12px}
.verification-actions button{background:none;border:0;color:#aaa;font:11px Manrope,Arial,sans-serif;min-height:44px;padding:8px 0;cursor:pointer}
.verification-actions button:hover{color:#fff}
.verification-actions button:focus-visible{outline:1px solid #aaa;outline-offset:4px}
.verification-actions button:disabled{opacity:.5;cursor:wait}
.verification-status{font-size:12px!important;line-height:1.6!important;color:#aaa;margin:12px 0 0!important;overflow-wrap:anywhere}
.verification-status:empty{display:none}
@media(max-width:700px){#accountPanel .auth-verification-card{padding:24px 20px;border-radius:12px}.verification-steps li{gap:12px;padding:16px 0}.verification-icon{margin-bottom:18px}}

/* A soft cloud follows the hopping companion. */
.cat-chat{isolation:isolate;border-radius:48% 52% 44% 50% / 58% 55% 46% 48%;background:#ddd;padding:10px 15px;box-shadow:0 3px 12px #0003;animation:cloud-breathe 3.6s ease-in-out infinite;transform-origin:50% 100%}
.cat-chat:before{content:'';position:absolute;z-index:-1;width:19px;height:17px;left:8px;top:-4px;border-radius:50%;background:#ddd;box-shadow:16px -3px 0 1px #ddd,29px 3px 0 -1px #ddd}
.cat-chat:after{top:calc(100% + 3px);left:calc(50% - 4px);width:7px;height:6px;background:#ddd;clip-path:none;border-radius:50%;box-shadow:5px 8px 0 -1px #ddd}
@keyframes cloud-breathe{0%,100%{transform:translateX(-50%) translateY(0) scale(1);opacity:.88}50%{transform:translateX(-50%) translateY(-3px) scale(1.04);opacity:1}}
@media(max-width:700px){
 .cat-chat{padding:9px 13px;font-size:9px}
 .cat-chat:before{width:17px;height:15px;left:6px;box-shadow:14px -3px 0 1px #ddd,27px 3px 0 -1px #ddd}
 body.home-view .hero.crypto-hero{--full-scene-height:max(640px,calc(100vh - var(--hero-header-height,120px) + 100px + env(safe-area-inset-bottom,0px)));overflow:hidden}
 body.home-view .hero.crypto-hero:before{background-size:auto 115%;background-position:center top;inset:0;height:100%;mask:none;-webkit-mask:none}
 @supports(height:100lvh){body.home-view .hero.crypto-hero{--full-scene-height:max(640px,calc(100lvh - var(--hero-header-height,120px) + 100px + env(safe-area-inset-bottom,0px)))}}
}
@media(prefers-reduced-motion:reduce){.cat-chat{animation:none}}

/* Center the signature directly above the complete wordmark. */
body header .header-wordmark{display:inline-flex;flex-direction:column;align-items:center;gap:0}
body header .header-byline{position:static;inset:auto;align-self:center;font-size:8px;line-height:1;margin:0 0 -2px;padding:0;letter-spacing:.08em}
@media(max-width:700px){body header .header-byline{position:static;font-size:7px;line-height:1;margin-bottom:-1px}}
body.home-view>footer.utility-footer{display:block}

.journey-menu-heading{padding:18px 4px 16px;border-bottom:1px solid #ffffff18;font:400 16px/1.3 Manrope,Arial,sans-serif;color:#ddd;letter-spacing:-.02em}
.journey-index{flex-basis:30px;white-space:nowrap}

/* Friends and the member directory share one community destination. */
.community-tabs{display:flex;gap:28px;align-items:center;border-bottom:1px solid #ffffff14;margin:0 0 28px;padding:0}
.community-tabs a{display:block;position:relative;padding:12px 0 16px;text-decoration:none;color:#777;font:13px/1.4 Manrope,Arial,sans-serif}
.community-tabs a[aria-current]{color:#eee}
.community-tabs a[aria-current]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:1px;background:#ddd}
.community-tabs a:focus-visible{outline:1px solid #aaa;outline-offset:4px}
#friends .friends-toolbar{width:100%;max-width:560px;min-width:0;margin:0 0 24px}
#friends .friends-toolbar .friend-search-label{display:block;width:100%;max-width:none;margin:0 0 12px;padding:0;box-sizing:border-box}
#friends .friends-toolbar #friendSearch{display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box}
#friends .friends-toolbar .friends-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 44px;width:100%;max-width:none;gap:8px;margin:0;box-sizing:border-box}
#friends .friends-toolbar .friends-tabs>button{min-width:0;width:100%;min-height:44px;box-sizing:border-box;margin:0;padding:10px 6px;white-space:normal;text-align:center;font-size:12px}
body.member-view #friends #members{padding:18px 0 0;margin:0;min-height:0;background:transparent;width:100%;border:0}
#friends #members #memberGrid{max-width:none}
#friends #members #loadMembers{margin-top:28px}
@media(max-width:700px){.community-tabs{gap:24px;margin-bottom:22px}.community-tabs a{font-size:12px}#friends .friends-toolbar .friends-tabs{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr)) 40px}#friends .friends-toolbar .friends-tabs>button{font-size:11px;padding:10px 3px}body.member-view #friends #members{padding-top:20px}}

/* Keep desktop navigation close to the right edge of the viewport. */
@media(min-width:701px){body:not(.auth-gated)>header{padding-right:max(18px,env(safe-area-inset-right,0px));column-gap:18px}body:not(.auth-gated)>header>.account-nav{margin-left:auto}body:not(.auth-gated)>header>.journey-nav{margin-right:0}}

/* One visible mobile screen: no minimum-height extension beneath Safari. */
@media(max-width:700px){
 body.home-view .hero.crypto-hero{--full-scene-height:var(--mobile-home-height,calc(100dvh - var(--hero-header-height,90px)));height:var(--full-scene-height);min-height:0;max-height:var(--full-scene-height);padding:0;margin:0;overflow:hidden}
 body.home-view .hero.crypto-hero .pixel-cat-scene{height:100%;min-height:0;max-height:none;--duel-ground:12%}
 body.home-view .hero.crypto-hero:before{height:100%;background-size:auto 108%;background-position:center top}
 body.home-view main{min-height:0;height:auto;padding:0;margin:0}
 body.home-view .academy-entry{top:48%}
}

.cat-chat{font-family:'Academy Pixel',monospace;font-size:14px;line-height:1.2;letter-spacing:.02em;animation:cloud-breathe 3.6s ease-in-out infinite}
@keyframes cloud-breathe{0%,100%{transform:translateX(-50%) translateY(0) scale(1);opacity:.66}50%{transform:translateX(-50%) translateY(-3px) scale(1.04);opacity:.84}}
@media(max-width:700px){.cat-chat{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cat-chat{animation:none;opacity:.76}}

.journey-options label.review-correct{border-color:#aaa;background:#222}
.journey-options label.review-incorrect{border-style:dashed;border-color:#777}
.journey-feedback:focus{outline:none}
.journey-feedback>strong{display:block;margin:18px 0;color:#ddd;font-size:13px;line-height:1.6}
.journey-answer-explanations{display:grid;gap:0;border-top:1px solid #333}
.journey-answer-explanations article{padding:18px 0;border-bottom:1px solid #292929}
.journey-answer-explanations b{display:block;font-size:9px;letter-spacing:.12em;color:#999;margin-bottom:8px}
.journey-answer-explanations span{display:block;font-size:12px;line-height:1.6;color:#ccc}
.journey-review .journey-answer-explanations p{font-size:12px;line-height:1.7;margin:7px 0 0;color:#999}

/* Anchor the signature to AIRE itself, independently of wordmark size. */
body header .brand .brand-ending{position:relative;display:inline-block;font:inherit;letter-spacing:inherit}
body header .brand .brand-ending .header-byline{position:absolute;top:auto;bottom:calc(100% - 1px);right:0;left:auto;margin:0;padding:0;width:max-content;align-self:auto;font:400 7px/1 Manrope,Arial,sans-serif;letter-spacing:.06em;color:#999}
@media(max-width:700px){body header .brand .brand-ending .header-byline{font-size:5.5px;letter-spacing:.04em;bottom:calc(100% - 1px)}}

/* A single dark canvas prevents cut-out edges around mobile browser chrome. */
@media(max-width:700px){
 html,html:has(body.home-view){background:#0e0e0e;color-scheme:dark}
 body,body.home-view,body.member-view,body.learning-view{background:#0e0e0e;min-height:100svh}
 body.home-view .hero.crypto-hero{background:#0e0e0e;box-sizing:border-box}
 body.home-view .hero.crypto-hero:before{background-size:auto 100%;background-position:center bottom;mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 28px),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 28px),transparent 100%)}
 body.home-view .hero.crypto-hero .pixel-cat-scene{--duel-ground:14%}
 body>footer.utility-footer{background:#0e0e0e}
}

/* Quiet, compact auth titles within the existing black sign-in design. */
body #accountPanel .auth-form-intro h2.category-title,body #accountPanel .auth-form-intro h2{font-family:Manrope,'DM Sans',Arial,sans-serif!important;font-size:clamp(21px,2vw,27px)!important;font-weight:400!important;line-height:1.25!important;letter-spacing:-.025em!important;color:#b8babd!important;margin:0!important;padding:0!important;text-wrap:balance}
body #accountPanel .auth-form-intro{margin:20px 0 22px;padding:0}
@media(max-width:700px){body #accountPanel .auth-form-intro h2.category-title,body #accountPanel .auth-form-intro h2{font-size:22px!important}body #accountPanel .auth-form-intro{margin:18px 0 20px}}

/* All community destinations remain visible at every breakpoint. */
#friends .community-tabs{display:flex;flex-wrap:nowrap;gap:24px;min-width:0}
#friends .community-tabs>a{display:block;min-height:44px;flex:0 0 auto}
#friends .friends-toolbar .friends-tabs{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:6px;align-items:stretch;overflow:visible}
#friends .friends-toolbar .friends-tabs>[data-friend-tab]{display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;gap:3px 6px;padding:7px 4px;min-height:44px;line-height:1.2}
#friends .friend-tab-label{white-space:nowrap}
#friends .friend-tab-count{font-size:10px;line-height:1;opacity:.65;white-space:nowrap}
#friends .friends-toolbar .friends-tabs #refreshFriends{width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;margin:0;align-self:center;justify-self:center;display:grid;place-items:center}
#friends .friends-toolbar #refreshFriends svg{width:18px;height:18px;flex:none;margin:0}
#friendPanel,#friends .community-members,#friends .friend-card-content{min-width:0;max-width:100%}
@media(max-width:380px){#friends .friends-toolbar .friends-tabs>[data-friend-tab]{flex-direction:column;gap:4px;font-size:11px}#friends .friends-toolbar #friendSearch{padding-left:13px;padding-right:13px;font-size:14px}}

/* The compact Academy selector retains its label and chevron. */
body header .journey-nav{flex:0 0 auto;width:auto}
body header .journey-menu{width:116px}
body header .journey-menu>summary{display:flex;align-items:center;justify-content:space-between;width:116px;height:44px;gap:10px;padding:0 9px}
.academy-menu-label{font:12px/1.3 Manrope,Arial,sans-serif;color:#bababa;white-space:nowrap;letter-spacing:.01em}
@media(max-width:700px){body header .journey-nav{flex:0 0 auto}body header .journey-menu,body header .journey-menu>summary{width:100px}body header .journey-menu>summary{padding:0 5px;gap:7px}.academy-menu-label{font-size:11px}body header .journey-chevron{width:16px;height:16px;flex-basis:16px}}

/* Mutual friends: quiet count below the name, on-demand profile list. */
#friends .friend-identity>.friend-identity-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;flex:1}
.friend-avatar-link{flex:0 0 66px;display:block}
.friend-display-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;line-height:1.4}
.mutual-trigger,#friends .mutual-trigger{display:block;width:auto;min-height:32px;padding:4px 0;margin:0;background:transparent;border:0;border-radius:4px;color:#8e8e8e;font:400 12px/1.5 Arial,Helvetica,sans-serif;letter-spacing:0;text-align:left;cursor:pointer}
.mutual-trigger:hover{color:#ddd}.mutual-trigger:focus-visible{outline:1px solid #999;outline-offset:3px}
#friends .friend-identity{margin-bottom:16px}
.profile-friendship{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:2px 0 18px;padding:0;border:0;background:none}
.profile-friendship .friendship-heading{margin-left:auto}.profile-friendship .friend-action-status{width:100%}
.mutual-dialog{box-sizing:border-box;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 64px);padding:54px 18px 18px;border:1px solid #343434;border-radius:18px;background:#141414;color:#eee;box-shadow:0 24px 90px #0009;overflow:auto}
.mutual-dialog::backdrop{background:rgb(0 0 0 / .72);backdrop-filter:blur(5px)}
.mutual-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#999;font:300 26px/1 Arial;cursor:pointer}
.mutual-close:hover{background:#222;color:#fff}
.mutual-dialog-list{display:grid;gap:4px;min-width:0}
.mutual-dialog .mutual-person{display:flex;align-items:center;gap:14px;min-height:60px;padding:10px;border:0;border-radius:10px;min-width:0;text-decoration:none}
.mutual-dialog .mutual-person:hover{background:#202020}.mutual-dialog .mutual-avatar{width:40px;height:40px;flex:0 0 40px}
.mutual-person-name{min-width:0;overflow-wrap:anywhere;font:400 14px/1.5 Arial,Helvetica,sans-serif}
.mutual-dialog a:focus-visible,.mutual-close:focus-visible{outline:1px solid #aaa;outline-offset:2px}
.mutual-empty{padding:12px;color:#999;font-size:13px}.mutual-retry{margin-top:12px}

#account>.section-heading:has(#accountTitle[hidden]){display:none}

/* Keep the Academy label and chevron together as one quiet control. */
body header .journey-menu{width:auto}
body header .journey-menu>summary{width:auto;min-width:0;justify-content:center;gap:5px;padding:0 7px;border-radius:7px;transition:background .2s,color .2s}
body header .journey-menu>summary:hover,body header .journey-menu[open]>summary{background:#ffffff08}
body header .journey-chevron{width:14px;height:14px;flex:0 0 14px;margin:0}
@media(max-width:700px){body header .journey-menu,body header .journey-menu>summary{width:auto}body header .journey-menu>summary{gap:4px;padding:0 4px}.academy-menu-label{font-size:11px}}

/* One continuous mobile landscape, including the area behind browser chrome.
   Oversize the image slightly so its dark lower margin is outside the viewport. */
@media(max-width:700px){
 html:has(body.home-view){background-color:#0e0e0e;background-image:linear-gradient(#0e0e0e4d,#0e0e0e4d),url('crypto-scenery.webp');background-size:auto 112lvh;background-position:center 35%;background-repeat:no-repeat;background-attachment:fixed}
 body.home-view,body.home-view main,body.home-view .hero.crypto-hero,body.home-view .hero.crypto-hero .pixel-cat-scene,body.home-view>footer.utility-footer{background:transparent}
 body.home-view .hero.crypto-hero:before{display:none;mask:none;-webkit-mask:none}
}

/* Center the list heading independently of row numbers and lock icons. */
body header .journey-menu-heading{display:block;width:100%;box-sizing:border-box;text-align:center;padding:16px 12px;margin:0;font-size:14px;line-height:1.4;letter-spacing:.01em}
@media(max-width:700px){body header .journey-menu-heading{padding:14px 10px;font-size:13px}}

/* Explicit header slots prevent Academy wrapping alone on narrow Android screens. */
@media(max-width:850px){
 body:not(.auth-gated)>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:14px max(12px,env(safe-area-inset-right,0px)) 12px max(12px,env(safe-area-inset-left,0px));height:auto;min-height:76px}
 body:not(.auth-gated)>header>.brand-group{grid-column:1;min-width:0;width:auto;margin:0}
 body:not(.auth-gated)>header>.account-nav{grid-column:2;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:8px;width:auto;min-width:0;margin:0;font-size:11px}
 body:not(.auth-gated)>header>.journey-nav{grid-column:3;display:flex;justify-content:flex-end;width:auto;min-width:0;margin:0;padding:0;justify-self:end}
 body:not(.auth-gated)>header .owner-line{display:none}
 body:not(.auth-gated)>header .account-nav #accountLink{white-space:nowrap;padding:8px}
 body:not(.auth-gated)>header .journey-menu>summary{white-space:nowrap;min-height:44px}
}
@media(max-width:700px){
 body:not(.auth-gated)>header{grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:8px}
 body:not(.auth-gated)>header>.brand-group{grid-column:1 / -1;grid-row:1}
 body:not(.auth-gated)>header>.account-nav{grid-column:1;grid-row:2;justify-content:flex-start;gap:clamp(8px,3vw,14px)}
 body:not(.auth-gated)>header>.journey-nav{grid-column:2;grid-row:2;align-self:center}
 body:not(.auth-gated)>header .journey-menu-panel{width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
}

/* Give mobile Safari real scenery beyond its compact visible viewport. */
@media(max-width:700px), (max-width:1024px) and (pointer:coarse){
 body.home-view .hero.crypto-hero{--full-scene-height:max(var(--mobile-home-height,240px),calc(100lvh - var(--hero-header-height,100px)));height:var(--full-scene-height);min-height:var(--full-scene-height);max-height:none;padding:0;margin:0;background:#0e0e0e;overflow:hidden}
 body.home-view .hero.crypto-hero:before{display:block;position:absolute;inset:0;z-index:0;height:100%;width:100%;background-image:url('crypto-scenery.webp');background-size:auto 116%;background-position:center 35%;background-repeat:no-repeat;opacity:.7;mask:none;-webkit-mask:none;pointer-events:none}
 body.home-view .hero.crypto-hero .pixel-cat-scene{height:var(--full-scene-height);min-height:0;max-height:none;--duel-ground:18%;background:transparent}
 body.home-view main{min-height:0;padding-bottom:0;margin-bottom:0}
 body.home-view>footer.utility-footer{height:0;min-height:0;margin:0;padding:0;border:0}
}
/* Keep menus and overlays usable on short laptop and landscape viewports. */
body header .journey-menu-panel{max-height:max(120px,calc(100dvh - var(--hero-header-height,100px) - 24px));overscroll-behavior:contain;scrollbar-width:thin}
@media(max-height:500px) and (pointer:coarse){
 body.home-view .academy-entry{top:40%;transform:translate(-50%,-50%) scale(.72)}
 body.home-view .hero.crypto-hero .pixel-cat-scene{--duel-ground:8%}
}

/* Six frame collections stay visible without horizontal scrolling. */
.frame-picker .frame-categories{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:7px}
.frame-picker .frame-categories button,.frame-picker .frame-categories button:last-child{grid-column:auto;min-width:0;white-space:normal;padding:11px 5px;min-height:44px}
@media(min-width:1200px){.frame-picker .frame-categories{grid-template-columns:repeat(6,minmax(0,1fr))}.frame-picker .frame-categories button{font-size:10px}}
@media(max-width:380px){.frame-picker .frame-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Minimal dumbbell navigation, with a full-size touch target. */
body header .account-nav .fitness-nav{display:grid;place-items:center;width:34px;height:38px;min-height:38px;flex:0 0 34px;padding:7px;margin:0;border:1px solid #444;border-radius:8px;background:#171717;color:#c8c8c8}
body header .fitness-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body header .account-nav .fitness-nav:hover,body header .account-nav .fitness-nav[aria-current]{color:#fff;border-color:#777;background:#242424}
@media(pointer:coarse){body header .account-nav .fitness-nav{height:44px;min-height:44px}}

/* A consistent, optically centered dark icon set for member navigation. */
body header .account-nav :is(.fitness-nav,.leaderboard-link,.friends-link){display:grid;place-items:center;align-self:center;width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;box-sizing:border-box;margin:0;padding:0;border:1px solid #444;border-radius:8px;background:#171717;color:#c8c8c8;line-height:1}
body header .account-nav :is(.fitness-nav,.leaderboard-link,.friends-link) svg{display:block;width:21px;height:21px;flex:none;margin:0;padding:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform:none}
body header .account-nav :is(.fitness-nav,.leaderboard-link,.friends-link):hover,body header .account-nav :is(.fitness-nav,.leaderboard-link,.friends-link)[aria-current]{background:#242424;border-color:#777;color:#fff}
@media(pointer:coarse){body header .account-nav :is(.fitness-nav,.leaderboard-link,.friends-link){width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px}}
/* Retain the landscape on a true black mobile canvas. */
@media(max-width:700px), (max-width:1024px) and (pointer:coarse){
 html:has(body.home-view){background-color:#000;background-image:linear-gradient(#0005,#0005),url('crypto-scenery.webp')}
 body.home-view,body.home-view main,body.home-view .hero.crypto-hero,body.home-view>header,body.home-view>footer.utility-footer{background-color:#000}
 body.home-view .hero.crypto-hero:before{background-color:#000}
 body.home-view .hero.crypto-hero .pixel-cat-scene{background:transparent}
}
