/* Header type is shared across the existing links, including shopping. */
.club-header .top-nav a,.club-header .top-nav button,.club-header .shop-link{font-size:14px;font-weight:700;line-height:1.4}
.mobile-mission-toggle{display:none}
.world-column>.intro{max-width:none;width:100%;top:0;left:0}
.intro>div{width:100%}
.intro-context{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.intro .intro-context p{font-size:14px;line-height:1.6;margin:5px 0;color:#525b68;text-align:left}
.intro-context #stage{font-size:14px;letter-spacing:.6px;color:#7b7f87;white-space:nowrap;text-align:right;margin-left:auto;margin-right:24px}


@media(max-width:900px){.intro{width:100%}}

@media(max-width:700px){
 :root{--mobile-dock:84px;--mobile-action:58px;--mobile-gap:8px;--mobile-bottom:env(safe-area-inset-bottom,0px)}
 body{background:#faf9f6;color:#101725;overflow:hidden}
 .club-header{position:fixed;top:0;left:0;right:0;height:65px;padding:0 20px;gap:12px;z-index:8;border:0;background:linear-gradient(#faf9f6 75%,#faf9f600)}
 .club-header .club-brand img{width:clamp(160px,45vw,210px)}
 .club-header .top-nav{display:none}
 .club-header .shop-link{margin-left:auto;white-space:nowrap;color:#111827}
 .header-profile{width:32px;height:32px;flex-shrink:0}
 .header-profile img{width:32px;height:32px}
 main{padding:0;max-width:none;height:100svh;height:100dvh}
 .intro,.save-note{display:none}
 .game-layout{display:block;position:static;margin:0}
 .world-column{position:static;padding:0;min-width:0}
 .hud{position:fixed;left:14px;right:14px;top:70px;width:auto;max-width:none;z-index:6;display:grid;grid-template-columns:1fr 1fr 44px;grid-template-rows:40px 42px;gap:10px 9px;padding:0!important;background:none!important;border-radius:0;box-shadow:none}
 .hud .level-block{order:-1;grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:auto minmax(20px,1fr) auto;align-items:center;gap:12px;width:auto;min-width:0;height:40px;padding:0 16px;background:#fffffff2;box-shadow:0 5px 20px #40352409;border-radius:24px}
 .hud .level-block strong{font-size:20px;line-height:1.2;color:#0c111a;white-space:nowrap}
 .hud .level-block small{grid-column:3;grid-row:1;font-size:11px;white-space:nowrap;color:#6c7281}
 .hud .level-block progress{grid-column:2;grid-row:1;height:7px;margin:0}
 .hud .level-block progress::-webkit-progress-bar{background:#e8e8ef}
 .hud .resource{grid-row:2;height:42px;min-width:0;padding:6px 10px;gap:8px;justify-content:flex-start;background:#fff;box-shadow:0 4px 14px #4c483b08;border-radius:28px}
 .hud .resource strong{font-size:21px}
 .hud .resource button{margin-left:auto;width:29px;height:29px;background:#edf3ff;color:#0064ff;font-size:26px;flex-shrink:0}
 .hud .resource-image{width:25px;height:25px;object-fit:contain}
 .world-wrap{position:fixed;inset:159px 0 calc(var(--mobile-dock) + var(--mobile-action) + 44px + 2*var(--mobile-gap) + var(--mobile-bottom) - 28px);height:auto;margin:0;border:0;background:transparent;overflow:hidden;border-radius:0}
 #world{width:100%;height:100%}
 .world-label,.world-bottom #space-note{display:none}
 .world-bottom{position:static}
 #motion-toggle{position:fixed;top:120px;right:14px;width:42px;height:42px;z-index:7;display:grid;place-items:center;padding:0;background:white;box-shadow:0 5px 16px #38382b0b;border-radius:50%}
 #motion-toggle img{width:19px;height:19px}
 #motion-toggle span{display:none}
 .hotspot{width:36px;height:36px;min-width:36px;min-height:36px;box-shadow:0 0 0 4px #52c9ff25,0 3px 15px #0f5bbe35;border-color:#8edbff}
 .mission-panel{position:fixed;left:16px;right:16px;bottom:calc(var(--mobile-dock) + var(--mobile-action) + 2*var(--mobile-gap) + var(--mobile-bottom));z-index:7;border:0;border-radius:23px;background:#fffffff5;box-shadow:0 5px 25px #4c483b09;padding:0;max-height:calc(100dvh - 240px);overflow:auto;overscroll-behavior:contain}
 .mission-panel .today-title{position:sticky;top:0;margin:0;font-size:0;background:#fff;border-radius:23px;z-index:1}
 .mobile-mission-toggle{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:9px 16px;background:none;color:#0b111d;text-align:left;font-size:16px;font-weight:800}
 .desktop-mission-title{display:none}
 .mobile-mission-gift{color:#0064ff;width:24px;height:24px;flex-shrink:0}
 .mobile-mission-count{color:#6c7382;font-size:14px;font-weight:650;margin-left:2px;white-space:nowrap}
 .mobile-mission-chevron{margin-left:auto;width:22px;height:22px;flex-shrink:0;transform:rotate(180deg);transition:transform .2s}
 .mobile-missions-open .mobile-mission-chevron{transform:rotate(0deg)}
 .mission-panel #missions{display:none;padding:4px 12px 12px;gap:8px}
 .mission-panel.mobile-missions-open #missions{display:grid}
 .mission-panel .mission{min-height:66px;padding:8px 10px;grid-template-columns:40px 1fr 24px;border:1px solid #f1f2f5;border-radius:16px;box-shadow:none}
 .mission-panel .mission img{width:40px;height:40px}
 .mission-panel .mission span{font-size:14px}
 .mission-panel .mission small{font-size:11px}
 .mission-panel .next-space,.mission-panel .more-missions,.mission-date{display:none}
 .game-layout>.training-cta{position:fixed;left:16px;right:16px;bottom:calc(var(--mobile-dock) + var(--mobile-gap) + var(--mobile-bottom));z-index:7;width:calc(100% - 32px);height:var(--mobile-action);min-height:var(--mobile-action);margin:0;border:0;border-radius:20px;padding:10px 24px;display:flex;justify-content:center;gap:16px;background:#0064ff;box-shadow:0 8px 23px #0064ff21}
 .game-layout>.training-cta strong{font-size:23px;font-weight:800}
 .game-layout>.training-cta small{margin:0 0 0 12px;padding-left:16px;border-left:1px solid #ffffff70;font-size:11px;text-align:left;font-weight:600;line-height:1.5}
 .game-layout>.training-cta:after{content:'→';font-size:27px;font-weight:400;margin-left:6px}
 /* Existing dock assets, button labels and interactions stay intact. */
 .activity-dock{position:fixed;bottom:0;left:0;right:0;z-index:8;max-width:none;width:100%;height:calc(var(--mobile-dock) + var(--mobile-bottom));margin:0;padding:0 10px calc(17px + var(--mobile-bottom));border:0;border-radius:0;gap:0;box-shadow:none;background:linear-gradient(#faf9f6eb,#faf9f6 45%)}
 .activity-dock button{min-height:0;font-size:10px;gap:3px;padding:3px 0;white-space:nowrap;align-content:center}
 .activity-dock button img{width:38px;height:38px}
 .activity-dock button.is-active:after{bottom:0}
 #world-error{position:absolute;left:20px;right:20px;bottom:20px;font-size:12px}
 #toast{bottom:calc(var(--mobile-dock) + var(--mobile-bottom) + 8px);z-index:25}
}
@media(max-width:360px){.club-header{padding:0 14px;gap:8px}.club-header .club-brand img{width:150px}.club-header .shop-link{font-size:14px}.hud{left:10px;right:10px;padding-left:0!important;padding-right:0!important}.hud .level-block strong{font-size:18px}.hud .level-block{gap:8px}.hud .level-block small{font-size:10px}.hud .resource strong{font-size:18px}.game-layout>.training-cta{padding-left:14px;padding-right:14px;gap:10px}.game-layout>.training-cta strong{font-size:21px}.game-layout>.training-cta small{margin-left:4px;padding-left:10px}}
@media(max-width:700px) and (max-height:700px){:root{--mobile-dock:72px;--mobile-action:52px}.club-header{height:57px}.hud{top:58px;grid-template-rows:36px 38px;gap:8px}.hud .resource{height:38px}.hud .level-block{height:36px}.hud .level-block strong{font-size:18px}.world-wrap{top:141px}#motion-toggle{top:102px;width:38px;height:38px}.activity-dock button img{width:32px;height:32px}.mobile-mission-toggle{min-height:40px}.game-layout>.training-cta strong{font-size:21px}}

/* One mobile status row: energy, level, points, then the existing motion button. */
@media(max-width:700px){
 .hud{right:60px;grid-template-columns:74px minmax(90px,1fr) 68px;grid-template-rows:44px;gap:6px}
 .hud .resource{grid-row:1;height:44px;padding:5px 7px;gap:4px}
 .hud .resource:first-child{grid-column:1}
 .hud .resource:nth-child(2){grid-column:3}
 .hud .resource strong{font-size:14px}
 .hud .resource-image{width:19px;height:23px}
 .hud .resource button{width:20px;height:24px;font-size:20px}
 .hud .level-block{order:0;grid-column:2;grid-row:1;height:44px;padding:7px 10px;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 5px;gap:4px 5px}
 .hud .level-block strong{font-size:14px;grid-column:1;grid-row:1}
 .hud .level-block small{grid-column:2;grid-row:1;font-size:8px;text-align:right}
 .hud .level-block progress{grid-column:1/-1;grid-row:2;height:5px}
 #motion-toggle{top:70px;right:14px;width:38px;height:44px}
 .world-wrap{top:117px}
}
@media(max-width:360px){
 .hud{right:54px;grid-template-columns:64px minmax(90px,1fr) 60px}
 .hud .resource{padding:5px;gap:3px}
 .hud .resource-image{width:16px}
 .hud .resource strong{font-size:13px}
 .hud .resource button{width:18px;font-size:18px}
 .hud .level-block{padding:7px 8px;gap:4px}
 .hud .level-block strong{font-size:13px}
 #motion-toggle{right:10px;width:38px}
}
@media(max-width:700px) and (max-height:700px){.hud{grid-template-rows:44px}#motion-toggle{top:58px;height:44px}.world-wrap{top:105px}}
/* Keep the desktop mission sidebar aligned with the bottom of the activity dock. */
@media(min-width:901px){
 .mission-panel{align-self:stretch;display:flex;flex-direction:column;padding:20px}
 .mission-panel .today-title{margin-bottom:14px}
 .mission-panel #missions{gap:8px}
 .mission-panel .mission{min-height:70px;padding:8px 10px;grid-template-columns:42px 1fr 24px;gap:9px;border-radius:16px}
 .mission-panel .mission>img:first-child{width:42px;height:42px}
 .mission-panel .training-cta{min-height:58px;margin:12px 0 16px;padding:10px 12px}
 .mission-panel .next-space{padding-top:14px}
 .mission-panel .next-space h3{margin-bottom:10px}
 .mission-panel .next-space h4{margin:10px 0 6px}
 .mission-panel .more-missions{margin-top:auto;padding-top:12px}
}
.activity-dock button:hover{background:transparent}
.shop-link .shop-icon{display:none}
@media(max-width:700px){
 .club-header .shop-link{display:flex;align-items:center;justify-content:center;width:40px;height:44px;flex:0 0 40px;text-decoration:none}
 .club-header .shop-link .shop-label{display:none}
 .club-header .shop-link .shop-icon{display:block;width:26px;height:26px}
 .hud{right:14px;grid-template-columns:90px minmax(80px,1fr) 84px}
 #motion-toggle{position:fixed;top:auto;right:18px;bottom:calc(var(--mobile-dock) + var(--mobile-action) + var(--mobile-bottom) + 76px);width:42px;height:42px;z-index:7}
}
@media(max-width:360px){.hud{grid-template-columns:76px minmax(80px,1fr) 70px}}
/* Mobile activities use the whole screen, with their existing interactions. */
@media(max-width:700px){
 #panel{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:#fffdf9;box-shadow:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 #panel::backdrop{background:#fffdf9;backdrop-filter:none}
 #panel .dialog-head{position:sticky;top:0;z-index:10;align-items:center;gap:12px;margin:0;padding:calc(16px + env(safe-area-inset-top,0px)) 20px 16px;background:#fffdf9;border-bottom:1px solid #e8e9ed}
 #panel .dialog-head>div{min-width:0;flex:1}
 #panel .dialog-head h2{margin:6px 0 0;padding-right:0;font-size:24px;line-height:1.35;overflow-wrap:anywhere}
 #panel #close-panel{width:40px;height:40px;flex:0 0 40px;margin:0}
 #panel #panel-body{padding:22px 20px calc(28px + env(safe-area-inset-bottom,0px))}
}
/* Mobile status cards use explicit corners so level text has clear inset space. */
@media(max-width:700px){
 .hud .resource,.hud .level-block{border-radius:8px}
 .hud .level-block{padding-left:12px;padding-right:12px}
}
@media(max-width:360px){.hud .level-block{padding-left:10px;padding-right:10px}}
/* Shared status-card corners on desktop and mobile. */
.hud .resource,.hud .level-block{border-radius:12px}
