/* ============================== yoru v13 — phones, tablets, foldables ============================== */

/* ---------- every touch device ---------- */
a,button,[role=button],label,summary,.pc,.lc,.le,.gc{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media (hover:none){
  /* no hover-only states that "stick" after a tap */
  .pc:hover,.lc:hover,.le:hover,.gc:hover,.gt2:hover,.rm:hover,.sch-card:hover,.hot-i:hover,.wt-party:hover,a.st2:hover{transform:none!important}
  /* banner parallax is a desktop effect; on touch it only costs frames */
  .hero canvas,.hero .still{transform:none!important}
  .hero .copy{transform:none!important;opacity:1!important}
  /* comfortable targets for text links and small toggles */
  .back,.link,.auth .foot a,.guest-link,.sh .more,.lacts a,.lhero p a{min-height:42px;display:inline-flex;align-items:center}
  .tabs button,.ptabs button,.eptools .tb,.ranges button{min-height:42px}
}

/* ---------- phones ---------- */
@media (max-width:599px){
  .le-dur,.sch-ep,.sch-fin,.lc2,.ep .dur,.ep .dub,.ep .n,.sch-day em,.pr-stat small,.ach-meta{font-size:12px!important}
  .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .sec{margin:38px 0}
  .sh h2,.sh-t h2{font-size:23px!important}
  .ph h1{font-size:clamp(34px,10vw,44px)!important}
  .hero{min-height:0}
  .hero .copy h1{font-size:clamp(34px,10vw,46px)}
  .hero .cta .btn.big{height:52px;padding:0 22px}
  .rail{grid-auto-columns:40vw}
  .rail.wide{grid-auto-columns:82vw}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 10px!important}
  .gx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modal .dlg,.modal .box{width:100%!important;max-height:88vh;overflow:auto;border-radius:24px 24px 0 0;align-self:end}
  .modal{align-items:end;padding:0}
}
@media (max-width:360px){.rail{grid-auto-columns:44vw}.grid{gap:12px 8px!important}.tabbar span{font-size:10px}}

/* ---------- tablets (iPad mini → iPad Pro portrait) ---------- */
@media (min-width:600px) and (max-width:1180px){
  .rail{grid-auto-columns:clamp(150px,22vw,200px)!important;gap:14px}
  .rail.wide{grid-auto-columns:clamp(280px,43vw,400px)!important}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:22px 14px!important}
  .lgrid,.lgrid2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lfeat{grid-template-columns:1.3fr 1fr!important}
  .gx-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rooms2,.hot,.wt-live,.ach-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sch-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .strip2{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .strip2 .st2:nth-child(3){display:flex!important}
  .st2{padding:12px}
  .st2 small{white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
  .hero .copy{max-width:min(620px,80vw)}
  /* the bottom bar is a floating pill on tablets, not a full-width strip */
  .tabbar{left:50%!important;right:auto!important;width:min(560px,86vw);transform:translateX(-50%)}
  .tabbar.hide{transform:translate(-50%,calc(100% + 30px))!important}
}
/* tablets wider than the phone breakpoint get the tab bar too when they're touch devices */
@media (min-width:821px) and (max-width:1180px) and (hover:none){
  .tabbar{position:fixed;z-index:85;bottom:calc(14px + env(safe-area-inset-bottom));display:grid!important;grid-template-columns:repeat(5,1fr);height:64px;padding:6px;border-radius:22px;background:rgba(10,10,14,.96);border:1px solid rgba(255,255,255,.1);box-shadow:0 20px 50px -12px rgba(0,0,0,.85);transition:transform .4s var(--ease)}
  .tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:16px;color:var(--muted);font:600 11.5px var(--f)}
  .tabbar .on{color:#fff;background:rgba(255,255,255,.08)}
  body{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  body[data-route="watch"] .tabbar{display:none!important}
}

/* ---------- phones held sideways ---------- */
@media (max-height:500px) and (orientation:landscape){
  .hdr{height:56px!important}
  .tabbar{height:52px!important;bottom:6px!important}
  .tabbar span{display:none}
  .hero{height:100vh!important;min-height:0!important}
  .hero .copy .syn{-webkit-line-clamp:2}
  .ob5-deck{height:58vh}
  .yin-pv{display:none}
  .wrap{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}

/* ---------- foldables / very tall narrow screens ---------- */
@media (max-width:599px) and (min-height:860px){.hero{height:78vh}}
