/* Shared phone refinements for the original project and collection pages. */
@media(max-width:700px){
  html{scroll-padding-top:110px;scrollbar-gutter:auto}
  *,*::before,*::after{box-sizing:border-box}
  body{min-width:0}
  main,section,.container{min-width:0;max-width:100%}
  img,video{max-width:100%}
  p,li,dd{overflow-wrap:break-word}
  h1{font-size:clamp(40px,12vw,60px)!important;overflow-wrap:break-word}
  button,a{touch-action:manipulation}
  button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

  /* Compact project menus retain every destination. */
  body>nav[class$="-nav"],body>nav#navbar{padding:8px 16px}
  nav ul[class$="-nav-links"],nav .nav-container .nav-links{display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;width:100%;min-width:0;padding:0;margin:0}
  nav ul[class$="-nav-links"] a,nav .nav-container .nav-links a{display:flex;align-items:center;min-height:44px;padding:4px 0;font-size:13px;letter-spacing:0;white-space:normal}
  nav .nav-container{width:100%;padding:0;gap:0}
  .wc-nav__inner{padding:0 12px;min-width:0}
  .wc-nav__links{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;min-width:0}
  .wc-nav__links a{min-height:44px;display:flex;align-items:center;font-size:12px}

  /* Collection and journal menus fit in two rows beside the home link. */
  nav:has(.nav-inner){padding:0}
  .nav-inner{width:100%;max-width:100%;padding:8px 16px;gap:12px;align-items:flex-start}
  .nav-inner .nav-logo{flex:none;min-width:32px;min-height:44px;display:flex;align-items:center;font-size:24px}
  .nav-inner .nav-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px;flex:1;min-width:0;width:auto;padding:0;margin:0}
  .nav-inner .nav-links li{min-width:0}
  .nav-inner .nav-links a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:4px 0;font-size:12px;line-height:1.3;letter-spacing:0;white-space:normal}

  .safety-hero .container,.coin-hero .container{width:100%;min-width:0;padding-inline:20px}
  .safety-stats,.coin-stats,.mf-stats,.sd-stats,.sp-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%}
  .mf-stat,.sd-stat,.sp-stat{min-width:0;padding:14px 10px}
  .mf-stat-lbl,.sd-stat-lbl,.sp-stat-lbl{font-size:11px;letter-spacing:.5px;white-space:normal}
  .why-play-grid,.how-to-play-grid,.safety-features-grid{grid-template-columns:minmax(0,1fr)}
  .why-play-item{min-width:0;max-width:100%}
  .sa-hero{grid-template-columns:minmax(0,1fr);min-width:0}
  .sa-hero-content{min-width:0;width:100%;padding:2rem 20px}
  .sa-badge{max-width:100%;white-space:normal;flex-wrap:wrap;font-size:11px;letter-spacing:.5px}
  .sa-hero-actions{flex-wrap:wrap}
  .sa-hero-actions a{max-width:100%;white-space:normal}
  .blog-spawn-grid{grid-template-columns:minmax(0,1fr)}
  footer{overflow-wrap:anywhere;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:700px){
  nav:has(.nav-inner){height:auto;min-height:88px}
  .nav-inner{min-width:0}
  .nav-inner .nav-links{position:static!important;inset:auto!important;height:auto!important;transform:none!important;opacity:1;visibility:visible;background:transparent;box-shadow:none}
  .sa-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%}
  .sa-stat{min-width:0;padding:14px 10px}
  .sa-commands-grid{grid-template-columns:minmax(0,1fr)}
  .sa-commands-grid>div{min-width:0}
  .sa-cmds-list{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
  .sa-cmd{min-width:0;font-size:13px;padding:12px 8px;overflow-wrap:anywhere}
  .steel-section{overflow:clip}
}
@media(max-width:700px){
  body>nav[class$="-nav"] a,body>nav#navbar a{color:#c0cbd0}
  body>nav[class$="-nav"] a:hover,body>nav#navbar a:hover{color:#fff}
  .mf-stat-lbl,.sd-stat-lbl,.sp-stat-lbl,.sa-badge{font-size:12px}
  #lb-close{min-width:44px;min-height:44px}
  body>footer{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
}
