/* Hub: Golden Tree. Real links laid over the illustration.
   v312: every rule applies only while body has class "hub" (Fruit Beat shows on this page with class "fm"); :where() adds no specificity. */
body.hub{background:linear-gradient(var(--paper),#f6efd8)}
:where(body.hub) .top,:where(body.hub) .page,:where(body.hub) .foot{width:100%;max-width:var(--page);margin:0 auto;padding:14px 24px}
:where(body.hub) .top{display:flex;justify-content:space-between;align-items:center;gap:16px}
:where(body.hub) .brand{font-size:24px;font-weight:800;letter-spacing:-.01em}
:where(body.hub) .brand small{display:block;font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}
:where(body.hub) .adults{position:relative}
:where(body.hub) .adults summary{min-height:var(--tap);display:inline-flex;align-items:center;padding:0 16px;border:1px solid var(--line);
  border-radius:var(--r-sm);background:var(--card);font-size:15px;font-weight:600;cursor:pointer;list-style:none}
:where(body.hub) .adults summary::-webkit-details-marker{display:none}
:where(body.hub) .adults .sheet{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:min(300px,86vw);display:grid;gap:10px;
  padding:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:0 10px 30px rgba(60,45,15,.18);font-size:15px}
:where(body.hub) .heading{padding:6px 0 14px}
:where(body.hub) .heading h1{font-size:clamp(26px,4vw,38px);line-height:1.15;letter-spacing:-.02em}
:where(body.hub) .heading p{margin-top:4px;color:var(--muted)}
/* intro card */
:where(body.hub) .intro:not([hidden]){display:grid;gap:14px;max-width:620px;margin:32px auto;padding:28px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)}
:where(body.hub) .intro h1{font-size:30px}
:where(body.hub) .intro .btn{justify-self:start}
/* map */
:where(body.hub) .map{position:relative;container-type:inline-size;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;background:#f4edcc;box-shadow:var(--shadow)}
:where(body.hub) .map>img{display:block;width:100%;height:auto}
:where(body.hub) .gate-link{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);display:block;
  border-radius:var(--r-md);text-decoration:none;color:var(--forest);-webkit-tap-highlight-color:transparent}
:where(body.hub) .gate-link:hover{background:rgba(255,249,230,.22);box-shadow:inset 0 0 0 3px var(--gold)}
:where(body.hub) .gate-link:focus-visible{outline-offset:-4px;background:rgba(255,249,230,.3)}
:where(body.hub) .gate-link .name{position:absolute;left:var(--lx);top:var(--ly);width:var(--lw);height:var(--lh);display:grid;place-items:center;
  text-align:center;font-weight:800;line-height:1.05;font-size:max(11px,1.95cqw);letter-spacing:-.01em;
  color:#5f3f1f;text-shadow:0 1px 0 rgba(255,251,238,.95),0 -1px 0 rgba(60,35,10,.4);white-space:nowrap}
:where(body.hub) .gate-link .hint{display:none}
:where(body.hub) .gate-link.fruit{--x:2.07%;--y:29.47%;--w:28.31%;--h:19.8%;--lx:27.05%;--ly:68.54%;--lw:48.61%;--lh:19.09%}
:where(body.hub) .gate-link.create{--x:68.02%;--y:31.77%;--w:29.7%;--h:17.96%;--lx:28.31%;--ly:66.95%;--lw:45.95%;--lh:22.15%}
:where(body.hub) .gate-link.quest{--x:3.8%;--y:52.49%;--w:32.11%;--h:26.24%;--lx:21.1%;--ly:73.64%;--lw:47.27%;--lh:16.42%}
:where(body.hub) .gate-link.lab{--x:9.39%;--y:.83%;--w:20.72%;--h:21.9%;--lx:24.3%;--ly:59.1%;--lw:54.4%;--lh:16.4%}
:where(body.hub) .gate-link.echo{--x:63.88%;--y:52.49%;--w:32.46%;--h:26.24%;--lx:33.72%;--ly:73.69%;--lw:47.45%;--lh:16.93%}
:where(body.hub) .calm{margin:16px 0 4px;text-align:center;color:var(--muted);font-size:15px}
:where(body.hub) .privacy{margin:14px 0 0;font-size:14px;color:var(--muted)}
:where(body.hub) .privacy summary{cursor:pointer;min-height:var(--tap);display:flex;align-items:center;font-weight:600}
:where(body.hub) .privacy p{margin:6px 0;max-width:70ch}
:where(body.hub) .foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--muted)}
/* phones: same carved names on the painted plaques, just a touch smaller */
@media (max-width:639px){
  :where(body.hub) .top,:where(body.hub) .page,:where(body.hub) .foot{padding-left:14px;padding-right:14px}
  :where(body.hub) .map{border-radius:var(--r-md)}
  :where(body.hub) .gate-link .name{font-size:max(10.5px,3.1cqw);letter-spacing:-.02em}
  :where(body.hub) .gate-link.lab .name{font-size:10px}
  :where(body.hub) .gate-link.create{--lx:25.1%}
  :where(body.hub) .gate-link.fruit{--lx:24.7%}
  :where(body.hub) .gate-link.quest{--lx:18%}
}
@media (prefers-reduced-motion:no-preference){:where(body.hub) .gate-link{transition:background .15s,box-shadow .15s}}

/* Pod descriptions: a small card on hover or keyboard focus; an "i" button on touch screens */
:where(body.hub) .podtip{position:fixed;z-index:20;width:min(280px,calc(100vw - 24px));padding:12px 14px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-md);box-shadow:0 10px 30px rgba(60,45,15,.22);color:var(--forest);pointer-events:none}
:where(body.hub) .podtip[hidden]{display:none}
:where(body.hub) .podtip b{display:block;font-size:17px;margin-bottom:4px}
:where(body.hub) .podtip p{margin:2px 0;font-size:14px;line-height:1.35;color:var(--forest)}
:where(body.hub) .podtip .h{color:var(--muted)}
:where(body.hub) .tipbtn{display:none;position:absolute;width:26px;height:26px;padding:0;border:1.5px solid rgba(39,64,47,.38);border-radius:50%;background:rgba(255,251,240,.86);
  color:rgba(39,64,47,.82);font:700 14px/1 Georgia,'Times New Roman',serif;font-style:italic;cursor:pointer;touch-action:manipulation;z-index:2;box-shadow:0 1px 3px rgba(39,64,47,.22);transition:transform .15s,background .15s}
:where(body.hub) .tipbtn:active,:where(body.hub) .tipbtn:focus-visible{background:#fffdf6;border-color:var(--forest);transform:scale(1.08)}
:where(body.hub) .tipbtn::after{content:'';position:absolute;inset:-11px}
/* The little "i" buttons are retired: the game descriptions now live under For grown-ups, so the map stays clean. */
:where(body.hub) .tipbtn.fruit{--x:2.07%;--y:29.47%;--w:28.31%}:where(body.hub) .tipbtn.create{--x:68.02%;--y:31.77%;--w:29.7%}
:where(body.hub) .tipbtn.quest{--x:3.8%;--y:52.49%;--w:32.11%}:where(body.hub) .tipbtn.echo{--x:63.88%;--y:52.49%;--w:32.46%}
@media (prefers-reduced-motion:reduce){:where(body.hub) .podtip{transition:none}}

/* Note Quest pod: glow, emblem and board notation live in code (v125) */
:where(body.hub) .pod-glow,:where(body.hub) .pod-note,:where(body.hub) .pod-board{position:absolute;pointer-events:none}
:where(body.hub) .pod-glow{left:18.09%;top:59.67%;width:9.5%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,#ffe9a0cc 0,#ffd46e66 38%,#ffc96100 72%);opacity:.55;transition:opacity .2s,transform .2s}
:where(body.hub) .pod-note{left:18.09%;top:59.67%;width:3.2%;height:auto;transform:translate(-50%,-50%)}
:where(body.hub) .pod-board{left:24.1%;top:64.1%;width:6.9%;height:auto}
:where(body.hub) .map:has(.gate-link.quest:hover) .pod-glow,:where(body.hub) .map:has(.gate-link.quest:focus-visible) .pod-glow{opacity:.9;transform:translate(-50%,-50%) scale(1.15)}
:where(body.hub) .map:has(.gate-link.quest:active) .pod-glow{opacity:1;transform:translate(-50%,-50%) scale(1.25)}
@media (prefers-reduced-motion:reduce){:where(body.hub) .pod-glow{transition:none}:where(body.hub) .map:has(.gate-link.quest:hover) .pod-glow,:where(body.hub) .map:has(.gate-link.quest:active) .pod-glow{transform:translate(-50%,-50%)}}

:where(body.hub) .adults .about{margin:0 0 8px;padding:0;list-style:none;font-size:15px;line-height:1.4}:where(body.hub) .adults .about li{margin:0 0 6px}:where(body.hub) .adults .about b{display:block}

:where(body.hub) .gate-link{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}:where(body.hub) .touchhint{display:none;margin:0;text-align:center;font-size:14px;color:var(--muted)}@media (hover:none){:where(body.hub) .touchhint{display:block}}

:where(body.hub) .brand .wm{display:block;height:52px;width:auto}
:where(body.hub) .gate h1 .wm{display:block;margin:0 auto;width:min(260px,70vw);height:auto}
:where(body.hub) #pilotForm{box-sizing:border-box}
:where(body.hub) #pilotGate{grid-template-columns:minmax(0,1fr)}:where(body.hub) #pilotCode{min-width:0;box-sizing:border-box}

:where(body.hub) .fbrow{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:14px 0 4px}:where(body.hub) .fbbtn{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 24px;border:2px solid var(--forest,#27402f);border-radius:26px;background:#fffdf6;color:var(--forest,#27402f);font:700 19px var(--font,system-ui,sans-serif);text-decoration:none}:where(body.hub) .fbbtn:hover{background:#f3ead2}:where(body.hub) .fbbtn:focus-visible{outline:3px solid var(--forest,#27402f);outline-offset:3px}
:where(body.hub) .foot{font-size:15px}
:where(body.hub) .foot{font-size:17px;line-height:1.5;gap:10px}:where(body.hub) .foot a{display:inline-block;padding:6px 2px;font-weight:600}
:where(body.hub) .privacy summary{font-size:17px;padding:8px 0;font-weight:600}:where(body.hub) .privacy p{font-size:16px}:where(body.hub) .calm{font-size:17px}

/* star count on a plaque */
:where(body.hub) .gate-link .stars{position:absolute;right:5%;top:5%;padding:1px 8px;border-radius:999px;background:rgba(255,249,230,.94);border:2px solid var(--gold);color:#243b32;font:800 13px/1.4 var(--font,system-ui);pointer-events:none}

/* v250: the children's part of the hub (title, map, Warm-up and My stars) fits one screen on every device.
   The map is sized by the screen height as well as the width; grown-up info (privacy, footer) sits below. */
:where(body.hub) .top{padding-top:8px;padding-bottom:4px}
:where(body.hub) .brand .wm{height:44px}
:where(body.hub) .gate h1 .wm.logo{width:min(260px,70vw);height:auto}
:where(body.hub) #hubMain:not([hidden]){display:flex;flex-direction:column;align-items:center}
:where(body.hub) .heading{width:100%;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:14px;padding:0 0 8px;text-align:center}
:where(body.hub) .heading h1{font-size:clamp(22px,3vw,32px)}
:where(body.hub) .heading p{margin:0;font-size:15px}
:where(body.hub) .map{width:min(100%,calc((100svh - 210px) * 1.3333));margin:0 auto}
@supports not (height:100svh){:where(body.hub) .map{width:min(100%,calc((100vh - 210px) * 1.3333))}}
:where(body.hub) .calm,:where(body.hub) .touchhint{display:none!important}
:where(body.hub) #hubMain .fbrow{margin:10px 0 0;gap:8px}
:where(body.hub) #hubMain .fbbtn{min-height:44px;padding:0 18px;font-size:16px}
:where(body.hub) .page{padding-top:4px;padding-bottom:8px}
@media (max-width:639px){:where(body.hub) .heading p{width:100%}:where(body.hub) .map{width:100%}}

/* v268: the big Give feedback button is back under the map */
:where(body.hub) .fbWrap{text-align:center;margin:18px 0 6px}
:where(body.hub) .fbBig{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:10px 30px;border:3px solid var(--forest,#243b32);border-radius:999px;background:#fffdf6;color:var(--forest,#243b32);font-weight:800;font-size:clamp(19px,4.6vw,24px);text-decoration:none;box-shadow:0 4px 12px rgba(36,59,50,.12)}
:where(body.hub) .fbBig:active{transform:scale(.97)}
:where(body.hub) .fbBig:focus-visible{outline:3px solid #a97a2e;outline-offset:3px}
/* v303: who's playing (shared/who.js): a clear button, top left above the heading */
:where(body.hub) .whoChip{display:flex;align-items:center;gap:10px;margin:2px 0 6px;padding:6px 16px 6px 6px;border:2px solid #D9A23C;border-radius:999px;background:#fffdf8;box-shadow:0 3px 10px rgba(36,58,50,.12);font:inherit;color:#243A32;cursor:pointer;text-align:left}
:where(body.hub) .whoChip[hidden]{display:none}
:where(body.hub) .whoChip img{width:52px;height:52px;object-fit:contain}
:where(body.hub) .whoChip b{display:block;font-size:1.05rem;line-height:1.2}
:where(body.hub) .whoChip small{display:block;font-size:.85rem;font-weight:700;color:#8a5a1e}
