/* Phone-first adaptation of the approved landing, keeping desktop v16 intact. */
@media(max-width:650px) {
  body.hatchling-v2.collections-active {
    background-image:linear-gradient(180deg,#fff0 20%,#fff8ec66 49%,#fff6ebaa 74%,#fff6ebcc),url("assets/landing-mobile-v17/background.webp");
    background-attachment:scroll;
    background-size:auto 100svh;
    background-repeat:no-repeat;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  body.hatchling-v2 #collections {
    width:min(460px,calc(100% - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right))));
    padding:env(safe-area-inset-top) 0 max(16px,env(safe-area-inset-bottom));
  }
  body.hatchling-v2 #collections .collection-header {
    height:72px;align-items:center;padding:0;gap:6px;
  }
  .landing-brand {
    top:8px;width:calc(100% - 104px);max-width:232px;
    height:54px;gap:10px;margin:0;
  }
  .landing-brand img:first-child { width:32%;height:54px;min-width:0; }
  .landing-brand img:last-child { width:57%;height:29px;min-width:0; }
  .landing-brand>span { height:22px; }
  body.hatchling-v2 #collections :is(.hub-home,.collection-parent) {
    display:grid;place-items:center;flex:none;width:44px;height:44px;
    min-height:44px;padding:10px;font-size:0;gap:0;border-radius:50%;
    touch-action:manipulation;
  }
  body.hatchling-v2 #collections .hub-home span {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
  body.hatchling-v2 #collections :is(.hub-home,.collection-parent) .landing-icon {
    width:20px;height:20px;
  }
  body.hatchling-v2 #collections .collection-heading { padding:1px 0 0; }
  body.hatchling-v2 #collections .collection-heading h1 {
    font-size:clamp(27px,7.8vw,34px);line-height:1.12;margin-bottom:5px;
    letter-spacing:-.8px;
  }
  body.hatchling-v2 #collections .collection-heading p { font-size:14px;line-height:20px; }
  body.hatchling-v2 #collections .landing-divider { height:14px;width:190px; }
  body.hatchling-v2 #collections #resume-drawing {
    min-height:48px;width:100%;margin-top:8px;padding:8px 15px;gap:9px;
    font-size:15px;line-height:1.2;
  }
  body.hatchling-v2 #collections #resume-drawing>span {
    flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  body.hatchling-v2 #collections #resume-drawing::before { width:20px;height:20px; }
  body.hatchling-v2 #collections #resume-drawing::after { font-size:26px; }
  body.hatchling-v2 #collections>.profile-switch {
    min-height:44px;height:44px;max-width:100%;
    margin:8px auto 10px;padding:6px 14px;gap:9px;
  }
  body.hatchling-v2 #collections>.profile-switch>span:not(.portrait-medallion) {
    max-width:min(170px,42vw);
  }
  body.hatchling-v2 #collections>.profile-switch small { font-size:12px;padding-left:9px; }
  body.hatchling-v2 #collections #recovery-note {
    padding:8px 11px!important;margin-bottom:10px!important;gap:8px;
    font-size:11px!important;line-height:1.35!important;
  }
  body.hatchling-v2 #collections .collection-books { gap:10px;max-width:100%; }
  body.hatchling-v2 #collections .hub-card {
    grid-template-columns:42% minmax(0,1fr);align-items:center;
    gap:7px;min-height:104px;padding:7px;border-radius:16px;touch-action:manipulation;
  }
  body.hatchling-v2 #collections .hub-card-image {
    align-self:center;width:100%;height:auto;min-height:0;aspect-ratio:314/173;
  }
  body.hatchling-v2 #collections .hub-card-image img { object-fit:contain!important; }
  body.hatchling-v2 #collections .hub-card-copy {
    align-self:stretch;min-height:88px;padding:25px 19px 4px 2px;
    justify-content:center;gap:4px;
  }
  body.hatchling-v2 #collections .hub-card .hub-card-copy strong {
    font-size:17px;line-height:1.12;letter-spacing:-.3px;overflow-wrap:normal;
  }
  body.hatchling-v2 #collections .hub-card .hub-card-copy small {
    font-size:11px;line-height:1.3;padding:0;
  }
  body.hatchling-v2 #collections .landing-activity-icon {
    top:1px;left:3px;width:21px;height:21px;
  }
  body.hatchling-v2 #collections .hub-play { top:3px;right:0;width:23px;height:23px; }
  body.hatchling-v2 #collections .hub-footer { margin-top:14px;gap:10px; }
  body.hatchling-v2 #collections #hub-creations { min-height:46px;height:46px;padding:8px 26px; }
  body.hatchling-v2 #collections .hub-device-note {
    gap:7px;font-size:10.5px;line-height:1.3;
  }
  body.hatchling-v2 #collections .hub-device-note .landing-icon { width:17px;height:17px; }
  @media(max-width:350px) {
    body.hatchling-v2 #collections .hub-card .hub-card-copy strong { font-size:16px; }
    body.hatchling-v2 #collections .hub-card .hub-card-copy small { font-size:10.5px; }
  }
}
/* A rotated phone keeps all three activity images on the first short screen. */
@media(min-width:651px) and (max-width:950px) and (max-height:500px) {
  body.hatchling-v2.collections-active {
    background-image:linear-gradient(180deg,#fff0 20%,#fff8ec66 49%,#fff6ebaa 74%,#fff6ebcc),url("assets/landing-mobile-v17/background.webp");
  }
  body.hatchling-v2 #collections {
    width:calc(100% - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)));
    padding:env(safe-area-inset-top) 0 max(12px,env(safe-area-inset-bottom));
  }
  body.hatchling-v2 #collections>:not(.collection-header) { left:0; }
  body.hatchling-v2 #collections .collection-header { height:54px; }
  .landing-brand { top:0;height:54px;width:246px;margin:0;gap:12px; }
  .landing-brand img:first-child { height:54px;width:78px; }
  .landing-brand img:last-child { width:140px;height:28px; }
  body.hatchling-v2 #collections :is(.hub-home,.collection-parent) { min-height:44px;height:44px; }
  body.hatchling-v2 #collections .collection-heading { padding:0; }
  body.hatchling-v2 #collections .collection-heading h1 { font-size:29px;line-height:1.1;margin-bottom:5px; }
  body.hatchling-v2 #collections .collection-heading :is(p,.landing-divider) { display:none; }
  body.hatchling-v2 #collections>.profile-switch { min-height:44px;height:44px;margin:5px auto 9px; }
  body.hatchling-v2 #collections #resume-drawing { min-height:44px;margin-top:6px;font-size:16px;padding:6px 20px; }
  body.hatchling-v2 #collections .collection-books { width:100%;gap:10px; }
  body.hatchling-v2 #collections .hub-card { padding:7px; }
  body.hatchling-v2 #collections .hub-card-image { height:90px;aspect-ratio:auto; }
  body.hatchling-v2 #collections .hub-card-image img { object-fit:contain!important; }
  body.hatchling-v2 #collections .hub-card-copy { min-height:58px;padding:7px 24px 4px 31px; }
  body.hatchling-v2 #collections .hub-card .hub-card-copy strong { font-size:16px; }
  body.hatchling-v2 #collections .hub-card .hub-card-copy small { font-size:11px; }
  body.hatchling-v2 #collections .landing-activity-icon { left:2px;top:9px;width:23px;height:23px; }
  body.hatchling-v2 #collections .hub-footer { margin-top:12px;min-height:44px; }
  body.hatchling-v2 #collections #hub-creations { min-height:44px;height:44px; }
}
