/* ─────────────────────────────────────────────────────────────────────────────
   KinPella Play Hub — BIG-scale rebuild (owner verdict 2026-11-26: the
   one-screen hub "looks nice but it's too small, very small" on his phone).
   The design system is unchanged (deep navy→violet band, pill search, the
   overlapping Continue card, chips, flat bordered cards, slim bottom nav);
   what changed is SCALE and FLOW:
   • Type and targets up ~+25–30% across the hub — a comfortable middle:
     body/labels ≥13px, card titles 17px, icon tiles 48px, chips 40px,
     search 17px in a 50px pill, Continue/Start buttons ≥52px tall.
   • The hub is a normal scrolling page again, budgeted hard: at 360×740
     two scroll gestures reveal EVERYTHING (total height ≈1.4–1.6 viewport
     heights; the packs ride their sideways rail, chips scroll sideways).
   • The shared masthead is compressed on the Play page only (the
     body.hub-mode rules at the bottom of the hub section): one slim brand
     row + toggles, nav links in ONE sideways row — other pages keep the
     full header.
   • The Continue card's "PICK UP WHERE YOU LEFT OFF" label wraps cleanly
     (it was clipped behind the Continue button at the old scale).
   All hub classes are ph- prefixed; the learn/fun compaction at the bottom
   is scoped to those two shells only.
   ───────────────────────────────────────────────────────────────────────────── */

/* The hub flows top to bottom at natural height; the shell stretches so
   the bottom nav rests at the foot on tall screens. */
body.hub-mode #app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.ph-shell{flex:1;display:flex;flex-direction:column;background:#f4f5fb;color:#17244b}
.ph-col{width:100%;max-width:720px;margin:0 auto;padding:0 16px}

/* ── Premium band ─────────────────────────────────────────────────────────── */
.ph-band{background:linear-gradient(135deg,#131f42 0%,#2c2a6e 58%,#6c57d8 130%);color:#fff;padding:14px 0 42px;flex:none}
.ph-eyebrow{font-size:13px;font-weight:800;letter-spacing:2.2px;color:#76e1d2}
.ph-band h1{font-size:30px;line-height:1.1;font-weight:800;letter-spacing:-.8px;margin:4px 0 0;color:#fff}
.ph-band h1 em{font-style:normal;color:#ffca71}
.ph-search{margin-top:11px;background:#fff;border-radius:999px;height:50px;display:flex;align-items:center;gap:10px;padding:0 10px 0 18px;color:#8b96ad}
.ph-search svg{flex:none;width:21px;height:21px}
.ph-search input{flex:1;min-width:0;border:0;background:none;font-size:17px;font-weight:500;color:#17244b;height:100%;font-family:inherit}
.ph-search input::placeholder{color:#8b96ad}
.ph-search input:focus{outline:none}
.ph-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
.ph-search:focus-within{box-shadow:0 0 0 3px #76e1d2}
.ph-search-clear{flex:none;border:0;background:#f2f4fa;color:#43536d;width:32px;height:32px;border-radius:50%;font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;position:relative}
.ph-search-clear::after{content:"";position:absolute;inset:-6px;border-radius:50%}
.ph-search input:placeholder-shown ~ .ph-search-clear{display:none}

/* ── Continue card (sm2-continue classes) + review strip ──────────────────── */
.ph-shell .sm2-continue{padding:15px 16px;gap:14px;border-radius:22px}
.ph-shell .sm2-ring{width:66px;height:66px}
.ph-shell .sm2-ring svg{width:66px;height:66px;display:block}
.ph-shell .sm2-ring b{font-size:15px}
.ph-shell .sm2-cont-label{font-size:12.5px;letter-spacing:1.3px;line-height:1.35;white-space:normal}
.ph-shell .sm2-cont-skill{font-size:19px;margin-top:3px;white-space:normal;line-height:1.15}
.ph-shell .sm2-cont-meta{font-size:13.5px;margin-top:3px;white-space:normal;line-height:1.35}
.ph-shell .sm2-chips{margin-top:7px;gap:6px}
.ph-shell .sm2-chip{font-size:12px;padding:4px 9px}
.ph-shell .sm2-go{font-size:17px;padding:13px 17px;min-height:54px;display:inline-flex;align-items:center}
.ph-review-strip{margin-top:10px;width:100%;display:flex;align-items:center;gap:8px;background:#fff4dd;border:1.5px solid #ffe3ae;color:#8a5d00;border-radius:16px;padding:12px 14px;font-size:14.5px;font-weight:700;cursor:pointer;font-family:inherit;text-align:left}
.ph-review-strip b{font-weight:800}
.ph-review-strip span{margin-left:auto;font-size:19px;font-weight:800}

/* Narrow phones: the Continue card's button takes its own row (right
   aligned) so the label, skill name and meta get the full card width —
   the "PICK UP WHERE YOU LEFT OFF" label wraps in two clean lines and
   nothing is ever clipped behind the button. */
@media(max-width:560px){
  .ph-shell .sm2-continue{flex-wrap:wrap}
  .ph-shell .sm2-cont-mid{flex:1 1 140px}
  .ph-shell .sm2-go{margin-left:auto}
}

/* ── Section caps ─────────────────────────────────────────────────────────── */
.ph-cap{display:flex;align-items:baseline;justify-content:space-between;padding:13px 0 8px}
.ph-cap h2{font-size:15px;font-weight:800;letter-spacing:1.6px;color:#43536d;margin:0}
.ph-cap-note{font-size:13px;font-weight:700;letter-spacing:.2px;color:#8b96ad;margin-left:8px}
.ph-cap>span{font-size:13px;font-weight:700;color:#8b96ad}
.ph-seeall{color:#6c57d8;font-size:14.5px;font-weight:800;background:none;border:0;cursor:pointer;font-family:inherit;padding:0;min-height:44px;display:inline-flex;align-items:center}

/* ── Game modes 2×2 ───────────────────────────────────────────────────────── */
.ph-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ph-modes>*{min-width:0}
.ph-mode{min-width:0}
@media(max-width:340px){.ph-modes{grid-template-columns:1fr}}
.ph-mode{border-radius:20px;border:1.5px solid #e3e6f2;background:#fff;padding:12px 13px;display:flex;align-items:center;gap:12px;cursor:pointer;font-family:inherit;text-align:left;color:#17244b}
.ph-mtile{flex:none;width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px}
.ph-mtile.tv{background:#efeaff}.ph-mtile.ta{background:#fff1d6}.ph-mtile.tp{background:#ffe4ef}.ph-mtile.tt{background:#e2f6f1}
.ph-mmid{display:block;min-width:0}
.ph-mmid b{display:block;font-size:17px;font-weight:800;letter-spacing:-.2px;line-height:1.15}
.ph-mmid span{display:block;font-size:12.5px;font-weight:600;color:#8b96ad;margin-top:2px;line-height:1.25}

/* ── Daily Challenge tile ─────────────────────────────────────────────────── */
.ph-daily{margin-top:10px;width:100%;display:flex;align-items:center;gap:12px;flex-wrap:wrap;row-gap:10px;background:#fff;border:1.5px solid #e3e6f2;border-radius:18px;padding:12px 14px;cursor:pointer;font-family:inherit;text-align:left;color:#17244b}
a.ph-daily{text-decoration:none;box-sizing:border-box}
.ph-daily-ic{font-size:27px;flex:none}
.ph-daily-mid{flex:1 1 140px;min-width:0;display:block}
.ph-daily-mid b{display:block;font-size:17px;font-weight:800;line-height:1.2}
.ph-daily-mid span{display:block;font-size:13px;font-weight:600;color:#8b96ad;margin-top:1px;white-space:normal;overflow:visible;text-overflow:clip}
.ph-daily-streak{flex:none;font-size:13px;font-weight:800;color:#8a5d00;background:#fff4dd;border:1px solid #ffe3ae;border-radius:999px;padding:5px 10px;white-space:nowrap}
.ph-daily-go{flex:none;background:#6c57d8;color:#fff;font-size:16px;font-weight:800;padding:13px 16px;border-radius:999px;min-height:48px;display:inline-flex;align-items:center;margin-left:auto}

/* ── Category chips ───────────────────────────────────────────────────────── */
.ph-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:none}
.ph-chips::-webkit-scrollbar{display:none}
.ph-cat{flex:none;height:44px;padding:0 16px;display:flex;align-items:center;background:#fff;border:1.5px solid #dfe3f0;border-radius:999px;font-size:14.5px;font-weight:700;color:#43536d;cursor:pointer;font-family:inherit}
.ph-cat.sel{background:#17244b;border-color:#17244b;color:#fff;font-weight:800}

/* ── Sideways rail (packs / fun / together) ─────────────────────────────────
   The rail keeps its fixed, generous height and carries the catalogue
   sideways — that is what keeps the page inside the two-scroll budget
   while every card stays big. */
.ph-railwrap{flex:none}
#hub-rail{display:block}
.ph-track{display:flex;gap:12px;height:196px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 16px 8px;margin:0 -16px;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,#000 94%,transparent 100%)}
.ph-track::-webkit-scrollbar{display:none}
.ph-pack{flex:none;width:160px;height:100%;overflow:hidden;scroll-snap-align:start;background:#fff;border:1.5px solid #e3e6f2;border-radius:20px;padding:12px 13px;cursor:pointer;font-family:inherit;text-align:left;color:#17244b;display:flex;flex-direction:column}
.ph-ptile{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:25px;background:#ffeadf}
.ph-ptile.mint{background:#dbf8ef}.ph-ptile.peach{background:#ffeadf}.ph-ptile.lavender{background:#ebe7ff}
.ph-pack h3{font-size:17px;font-weight:800;letter-spacing:-.2px;margin:9px 0 0;line-height:1.2;color:#17244b}
.ph-pmeta{font-size:12.5px;font-weight:600;color:#8b96ad;margin-top:3px;white-space:normal;overflow:visible;text-overflow:clip}
.ph-stars{font-size:13.5px;color:#f5a623;letter-spacing:1px;margin-top:auto}
.ph-stars .off{color:#dfe3f0}
.ph-bar{display:block;height:6px;border-radius:99px;background:#eceef7;margin-top:6px;overflow:hidden}
.ph-bar i{display:block;height:100%;background:#6c57d8;border-radius:99px}
.ph-newtag{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:800;letter-spacing:.3px;white-space:nowrap;color:#0ea47a;background:#e2f6f1;border-radius:99px;padding:3px 8px;margin-top:auto}

/* Fun + Together cards on the rail */
.ph-fcard{flex:none;width:230px;height:100%;overflow:hidden;scroll-snap-align:start;background:#fff;border:1.5px solid #e3e6f2;border-radius:20px;padding:13px 14px;display:flex;flex-direction:column;text-align:left}
.ph-ftile{font-size:26px;line-height:1}
.ph-fcard h3{font-size:17px;font-weight:800;margin:7px 0 0;color:#17244b;letter-spacing:-.2px}
.ph-fcard p{font-size:13px;font-weight:600;color:#718096;line-height:1.4;margin:4px 0 0;flex:1;overflow:hidden}
.ph-fcard .btn{padding:10px 14px;font-size:13.5px;border-radius:999px;align-self:flex-start;min-height:44px}
.ph-factions{display:flex;gap:7px}
.ph-factions .btn{padding:10px 14px;font-size:13.5px;border-radius:999px;min-height:44px}
.ph-name-card .name-field{width:100%}
.ph-name-card .name-field span{font-size:13.5px}
.ph-name-card .name-field input{width:100%;font-size:16px}
.ph-badge-note{display:block;font-size:12.5px;font-weight:700;color:#718096;line-height:1.35;margin-top:auto}

/* ── Search results (replace the rail) ────────────────────────────────────── */
.ph-results{display:flex;flex-direction:column;gap:8px;padding:2px 2px 6px}
.ph-result{display:flex;align-items:center;gap:12px;width:100%;background:#fff;border:1.5px solid #e3e6f2;border-radius:18px;padding:11px 14px;cursor:pointer;font-family:inherit;text-align:left;color:#17244b}
.ph-result .ph-ptile{width:44px;height:44px;font-size:22px}
.ph-result-mid{flex:1;min-width:0;display:block}
.ph-result-mid b{display:block;font-size:16.5px;font-weight:800;white-space:normal;overflow:visible;text-overflow:clip}
.ph-result-mid span{display:block;font-size:13px;font-weight:600;color:#8b96ad;margin-top:1px}
.ph-result .ph-chev{flex:none;color:#b9c0d8;font-size:22px;font-weight:800}
.ph-noresults{background:#fff;border:1.5px solid #e3e6f2;border-radius:20px;padding:22px 18px;text-align:center;color:#43536d;font-weight:600;font-size:15px;line-height:1.5;margin:2px 0 6px}

/* ── Bottom nav — REMOVED (owner 2026-11-28: tab row gone everywhere;
   see skill-map.css). The hub foot is plain shell now. ─────────────────── */

/* ── Sheets (catalogue + review): one tap away, over the hub ──────────────── */
.ph-sheet{position:fixed;inset:0;z-index:80;background:#f4f5fb;color:#17244b;overflow-y:auto}
.ph-sheet-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e6e8f2;display:flex;align-items:center;justify-content:space-between;padding:13px 16px}
.ph-sheet-head h2{font-size:19px;font-weight:800;margin:0;color:#17244b}
.ph-sheet-x{width:44px;height:44px;border-radius:50%;border:1.5px solid #e3e6f2;background:#fff;font-size:16px;font-weight:800;color:#43536d;cursor:pointer;font-family:inherit}
.ph-sheet-body{max-width:1180px;margin:0 auto;padding:18px 24px 48px}
.ph-sheet-note{color:#5c6d86;font-size:15px;margin:0 0 6px}
@media(max-width:720px){.ph-sheet-body{padding:14px 18px 40px}}

/* ── Masthead compression — PLAY PAGE ONLY (body.hub-mode) ──────────────────
   The shared header stacks brand + toggles + two wrapped nav rows on a
   phone (~28% of the screen before PLAY starts). On the Play page it
   becomes one slim brand row (logo + compact toggles) and ONE sideways
   nav row. Every link and both toggles stay; other pages are untouched. */
@media(max-width:900px){
  body.hub-mode .topbar .nav{min-height:0;padding:7px 0 8px;gap:7px 12px;row-gap:7px}
  body.hub-mode .brand{font-size:19px;gap:9px}
  body.hub-mode .brand-logo{width:31px;height:31px;border-radius:10px}
  body.hub-mode .mode-toggles{gap:6px;margin-left:auto}
  body.hub-mode .mode-toggle{height:32px;padding:0 6px 0 9px;gap:5px;font-size:13px}
  body.hub-mode .mode-toggle .mt-ic{width:20px;height:20px;border-radius:6px;font-size:12px}
  body.hub-mode .mode-toggle .mt-ic.mt-aa{font-size:11px}
  body.hub-mode .mode-toggle .mt-sw{width:36px;height:21px;margin-left:1px}
  body.hub-mode .mode-toggle .mt-sw::after{top:2px;left:2px;width:17px;height:17px}
  body.hub-mode .mode-toggle.on .mt-sw::after{transform:translateX(15px)}
  body.hub-mode .streak-chip{font-size:11.5px;padding:6px 10px}
  body.hub-mode .nav-pill{display:none}
  body.hub-mode .navlinks{order:3;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:16px;margin-left:0;min-width:0;max-width:100%;padding-bottom:2px;
    -webkit-mask-image:linear-gradient(90deg,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,#000 94%,transparent 100%)}
  body.hub-mode .navlinks::-webkit-scrollbar{display:none}
  body.hub-mode .navlinks button,body.hub-mode .navlinks a.navlink-a{font-size:13.5px;padding:5px 0;white-space:nowrap}
}
@media(max-width:420px){
  body.hub-mode .navlinks button:first-child{display:block}
}

/* Large-type mode: grow the hub a further step, like the rest of the app. */
body.large-type .ph-band h1{font-size:34px}
body.large-type .ph-search input{font-size:19px}
body.large-type .ph-shell .sm2-cont-skill{font-size:21px}
body.large-type .ph-shell .sm2-cont-meta{font-size:15px}
body.large-type .ph-mmid b{font-size:19px}
body.large-type .ph-mmid span{font-size:14px}
body.large-type .ph-daily-mid b{font-size:19px}
body.large-type .ph-pack h3,body.large-type .ph-fcard h3{font-size:19px}
body.large-type .ph-pmeta{font-size:14px}
body.large-type .ph-cat{font-size:16px;height:46px}

/* ── Kids Mode on the hub (owner 2026-11-28: EVERYTHING becomes kids) ──
   Cards grow until one leads at a time, titles and meta step up, chips
   and the search pill become full finger-size. The Account fun card is
   hidden from styles.css (grown-up surface). */
body.kids-mode .ph-search{height:58px}
body.kids-mode .ph-search input{font-size:18px}
body.kids-mode .ph-cat{height:52px;font-size:16.5px;padding:0 20px}
body.kids-mode .ph-pack{width:228px;padding:16px}
body.kids-mode .ph-pack h3,body.kids-mode .ph-fcard h3{font-size:20px}
body.kids-mode .ph-pmeta{font-size:14px}
body.kids-mode .ph-ptile{width:58px;height:58px;font-size:30px;border-radius:17px}
body.kids-mode .ph-fcard{width:262px;padding:16px}
body.kids-mode .ph-mode{min-height:84px;padding:16px}
body.kids-mode .ph-mmid b{font-size:19.5px}
body.kids-mode .ph-mmid span{font-size:14.5px}
body.kids-mode .ph-daily{min-height:84px}
body.kids-mode .ph-daily-mid b{font-size:19.5px}
body.kids-mode .ph-band h1{font-size:33px}
body.kids-mode .sm2-cont-skill{font-size:21px}

/* ── Learn view compaction: question 1 on one screen ─────────────────────────
   The study card comes first; the quick lesson rides in a <details> panel
   under it on phones (open by default on wide screens, where the grid puts
   it back on the left). All lesson content stays — one tap away, never
   scrolled past to reach a question. */
.learn-shell .lesson-topbar{display:flex;align-items:center;gap:11px;margin-top:16px}
.learn-shell .lesson-topbar .back-link{margin-top:0;white-space:nowrap}
.learn-shell .lesson-topmeta{min-width:0}
.learn-shell .lesson-topmeta h1{font-size:21px;margin:1px 0 0;color:#192746;white-space:normal;overflow:visible;text-overflow:clip}
.learn-shell .lesson-grid{margin-bottom:44px}
.learn-shell details.lesson-content{padding:0;overflow:hidden}
.learn-shell details.lesson-content summary{list-style:none;cursor:pointer;padding:20px 23px;display:block}
.learn-shell details.lesson-content summary::-webkit-details-marker{display:none}
.learn-shell details.lesson-content summary h2{display:inline;font-size:19px;color:#243454;margin:0 0 0 8px}
.learn-shell details.lesson-content summary .lesson-toggle-note{display:block;margin-top:7px;font-size:12.5px;font-weight:700;color:#6d59cc}
.learn-shell details.lesson-content[open ] summary .lesson-toggle-note{display:none}
.learn-shell .lesson-details-body{padding:0 23px 23px}
.learn-shell .lesson-desc{color:#5c6d86;margin:0 0 16px;line-height:1.55}
@media(min-width:1001px){.learn-shell .lesson-grid .lesson-content{order:-1}}
@media(max-width:720px){
  .learn-shell .lesson-topmeta h1{font-size:19px}
  .learn-shell .lesson-topmeta .eyebrow{white-space:normal}
  .learn-shell .study-card{min-height:0;padding:18px}
  .learn-shell .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .learn-shell .answer{min-height:56px}
  .learn-shell .question-title{font-size:21px;margin:12px 0 16px}
  .learn-shell details.lesson-content summary{padding:16px 18px}
  .learn-shell .lesson-details-body{padding:0 18px 18px}
}

/* ── Fun view compaction: the question fits one phone screen ──────────────── */
.fun-shell .back-link{margin-top:12px}
.fun-shell .page-head{margin:12px 0 10px}
@media(max-width:720px){
  .fun-shell .page-head.compact h1{font-size:24px}
  .fun-shell .player-card{padding:17px}
  .fun-shell .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .fun-shell .answer{min-height:56px}
  .fun-shell .question-title{font-size:21px;margin:12px 0 16px}
}

/* ── Width safety (items E/H): quiz views fit the viewport at any width ── */
.lesson-grid>*{min-width:0}
.panel{min-width:0}
.answer{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.learn-shell .lesson-grid{grid-template-columns:1fr}}

/* ── Desktop pass (owner 2026-11-28: "on a PC it looks bad") ──────────
   On PC widths the sideways rail WRAPS into a grid: no card clipped
   at the screen edge, no hidden sideways scroll, no fade mask.
   Phone keeps the rail exactly as designed. */
@media (min-width:1024px){
  .ph-track{flex-wrap:wrap;overflow-x:visible;height:auto;scroll-snap-type:none;-webkit-mask-image:none;mask-image:none}
  .ph-pack,.ph-fcard{height:auto;min-height:186px}
  /* Full-width pass (owner's correction, 2026-11-28): "the PC browser
     cover everything, from one side to the other side, there's no
     empty space — everything is organized." The hub spans the screen
     with even padding; modes and packs lay out as wide grids; chips
     WRAP so they can never clip inside the container at any width. */
  .ph-col{max-width:1280px}
  .ph-chips{flex-wrap:wrap;overflow-x:visible}
  .ph-pack{flex:1 1 260px;width:auto}
  .ph-fcard{flex:1 1 240px;width:auto}
  /* the hero search keeps a readable measure instead of stretching
     the full screen width (polish, owner's paying test 2026-11-28) */
  .ph-search{max-width:720px}
}
@media (min-width:1024px){
  /* spec D: play modes 3-across inside the one container */
  .ph-modes{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:2200px){
  /* ultrawide: pack cards step down so the grid runs 6-across */
  .ph-pack{flex-basis:185px}
}

/* ── Polish programme (2026-11-28): the feature row ──────────────────────
   Daily Challenge / Family Games / Kids Adventure were three stacked
   full-width banners, each with its action pill marooned at the far
   right and dead space mid-row. From 721px they sit side by side as
   feature cards in one row: icon on top, words under it, the streak
   riding with the words, and the action pill at the foot of the card
   where the eye lands. No marooned buttons, no dead mid-row space.
   Phone keeps the stacked banners exactly as they were. */
@media (min-width:721px){
  .ph-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
  .ph-features .ph-daily{margin-top:0;height:100%;flex-direction:column;align-items:flex-start;gap:9px;padding:16px;border-radius:20px}
  .ph-features .ph-daily-mid span{white-space:normal;overflow:visible;text-overflow:clip}
  .ph-features .ph-daily-go{margin-left:0;margin-top:auto}
}

/* ── Wave 1 hub reorg (owner-approved sample 2026-11-30): rails -> grid ──
   Packs shelf becomes a card grid under 1024px — nothing hides in a
   sideways rail; the Fold band (768–1023px) widens to the full container
   and runs 3-across. */
@media (max-width:1023px){
  /* Packs shelf becomes a card grid — nothing hides in a sideways rail. */
  .ph-track{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;overflow:visible;padding:6px 0 12px;scroll-snap-type:none;-webkit-mask-image:none;mask-image:none}
  .ph-pack{width:auto;min-height:196px}
  /* Every track child fills its column (ladder-verify home overflow fix,
     2026-11-30): the rail-era fixed widths on the track's OTHER child —
     .ph-fcard 230px, and 228/262px under body.kids-mode — otherwise become
     each 1fr track's floor, so the columns resolve to 230px apiece and the
     second column lands off-screen (body scrollWidth 472 at a 390
     viewport; 536 in Kids Mode). min-width:0 lets the 1fr tracks honour
     the container even when a child's content is wide. The min-height
     mirrors the .ph-pack treatment above: without it the rail-era fixed
     track height (196px) squeezes the grid's rows to ~51px and clips
     every fun card's buttons out of reach. */
  .ph-track>*{min-width:0}
  .ph-fcard{width:auto;min-height:196px}
  body.kids-mode .ph-pack{width:auto}
  body.kids-mode .ph-fcard{width:auto}
}
@media (min-width:768px) and (max-width:1023px){
  .ph-col{max-width:1180px}
  .ph-track{grid-template-columns:repeat(3,1fr)}
}

/* ── Hub grid narrow fit (2026-11-30): inside the 2-column grid the pack
   cards narrow enough at ≤344px that the nowrap NEW pill ran off its
   card (+17px at 320, +5px at 344). At these widths only, the pill may
   wrap and steps down a touch. ≥345px — including the owner-approved
   390/984/1440 stills — is byte-for-byte the approved look. */
@media (max-width:344px){
  .ph-newtag{white-space:normal;font-size:10.5px;letter-spacing:0;line-height:1.25;padding:3px 7px}
}
