/* v78: header menu (menu-ring.js). v80: a square grid of round icons on a glass card at every width (the ring is gone). */
.icon-btn.mr-btn{border-radius:50%}
html.mr-open,html.mr-open body{overflow:hidden}
.menu.mr{--hg:var(--accent);--ic:46px;position:fixed;inset:0;z-index:1000;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;animation:none;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:radial-gradient(closest-side,rgba(var(--accent-rgb),.14),rgba(0,0,0,0) 70%),rgba(0,0,0,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  color:#fff;font-family:var(--body);opacity:0;transition:opacity .18s ease}
.menu.mr[hidden]{display:none}
.menu.mr.in{opacity:1}
.mr .mr-item{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;width:auto;min-width:var(--ic);padding:0;margin:0;
  transform:translate(-50%,calc(var(--ic) / -2));background:none;border:0;border-radius:16px;color:#fff;font:inherit;text-align:center;cursor:pointer;
  -webkit-tap-highlight-color:transparent;outline:none}
.mr .mr-item:hover,.mr .mr-item:focus-visible{background:none}
.mr .mr-item[hidden]{display:none!important}
.mr-ic{display:grid;place-items:center;width:var(--ic);height:var(--ic);border-radius:50%;background:#0b0b0b;border:2px solid #fff;box-shadow:0 0 10px rgba(255,255,255,.18);transition:transform .2s ease,box-shadow .2s ease}
.mr-ic svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mr-lab{font-size:11.5px;font-weight:700;line-height:1.15;white-space:nowrap;color:#fff;text-shadow:0 1px 6px #000}
.mr .mr-item:hover .mr-ic,.mr .mr-item:focus-visible .mr-ic{transform:scale(1.08);box-shadow:0 0 18px rgba(255,255,255,.45)}
.mr .mr-item:focus-visible .mr-ic{outline:3px solid var(--hg);outline-offset:3px}
.mr .mr-item:active .mr-ic{transform:scale(.96)}
.mr .mr-item.on .mr-ic{border-color:var(--hg);background:var(--ac-071305);box-shadow:0 0 14px rgba(var(--accent-rgb),.55)}
.mr .mr-item.on .mr-ic svg{stroke:var(--hg)}
.mr .mr-item.on .mr-lab{color:var(--hg)}
.mr .mr-close{position:absolute;top:calc(14px + env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:46px;height:46px;border-radius:50%;padding:0;
  display:grid;place-items:center;cursor:pointer;background:#0b0b0b;border:2px solid #fff;color:#fff}
.mr .mr-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.mr .mr-close:hover,.mr .mr-close:focus-visible{background:#0b0b0b;box-shadow:0 0 16px rgba(255,255,255,.4)}
.mr .mr-close:focus-visible{outline:3px solid var(--hg);outline-offset:3px}
@media(min-width:600px){.menu.mr{--ic:60px}.mr-ic svg{width:26px;height:26px}.mr-lab{font-size:13.5px}.mr .mr-item{gap:6px}
  .mr .mr-close{top:22px;right:22px;width:50px;height:50px}}
@media(prefers-reduced-motion:reduce){.menu.mr,.mr-ic{transition:none}}
/* light theme (default): black icons, brand green for the current page, green text var(--accent-dark) */
html[data-theme=light] .menu.mr{background:radial-gradient(closest-side,rgba(var(--accent-rgb),.16),rgba(245,246,242,0) 70%),rgba(245,246,242,.95);color:#111}
html[data-theme=light] .mr .mr-item{color:#111}
html[data-theme=light] .mr-ic{background:#111;border-color:#111;box-shadow:0 4px 12px rgba(0,0,0,.18)}
html[data-theme=light] .mr-ic svg{stroke:#fff}
html[data-theme=light] .mr-lab{color:#111;text-shadow:0 1px 4px #fff,0 0 8px #fff}
html[data-theme=light] .mr .mr-item.on .mr-ic{background:var(--accent);border-color:var(--accent);box-shadow:0 4px 14px rgba(var(--accent-glow-rgb),.45)}
html[data-theme=light] .mr .mr-item.on .mr-ic svg{stroke:#000}
html[data-theme=light] .mr .mr-item.on .mr-lab{color:var(--accent-dark)}
html[data-theme=light] .mr .mr-item:hover .mr-ic,html[data-theme=light] .mr .mr-item:focus-visible .mr-ic{box-shadow:0 6px 18px rgba(0,0,0,.28)}
html[data-theme=light] .mr .mr-item:focus-visible .mr-ic{outline-color:#111}
html[data-theme=light] .mr .mr-close{background:#111;border-color:#111;color:#fff}
html[data-theme=light] .mr .mr-close:focus-visible{outline-color:var(--accent-dark)}
/* v81: grid menu, no logo badge. Phones (<600px): 3 columns on a soft glass card, centred. Wider screens (>=600px): 4 columns on a 620px card, centred.
   The close button stays fixed at the top right. */
@media all{
  .menu.mr.grid{--ic:58px;display:flex;align-items:center;justify-content:center;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
    padding:calc(72px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;
    background:radial-gradient(70% 55% at 50% 58%,rgba(var(--accent-rgb),.13),rgba(0,0,0,0) 70%),rgba(0,0,0,.9)}
  .menu.mr.grid .mr-ring,.menu.mr.grid.in .mr-ring{position:static;transform:none;transition:none;margin:auto;box-sizing:border-box;width:min(100%,388px);height:auto;
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));column-gap:0;row-gap:clamp(14px,2.6vh,24px);justify-items:center;align-items:start;
    padding:clamp(18px,3vh,26px) 8px;border-radius:28px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1);
    box-shadow:0 0 0 1px rgba(var(--accent-rgb),.08),0 18px 50px rgba(0,0,0,.45),0 0 60px rgba(var(--accent-rgb),.14);animation:mrCard .24s cubic-bezier(.2,.8,.2,1)}
  .menu.mr.grid .mr-item{position:static;transform:none;grid-column:span 2;width:100%;min-width:0;gap:6px;padding:0;border-radius:16px}
  .menu.mr.grid .mr-ic svg{width:24px;height:24px}
  .menu.mr.grid .mr-lab{font-size:12px;line-height:1.2;letter-spacing:0;white-space:nowrap}
  html[data-theme=light] .menu.mr.grid{background:radial-gradient(70% 55% at 50% 58%,rgba(var(--accent-rgb),.16),rgba(245,246,242,0) 70%),rgba(245,246,242,.95)}
  html[data-theme=light] .menu.mr.grid .mr-ring{background:rgba(255,255,255,.72);border-color:rgba(0,0,0,.07);
    box-shadow:0 0 0 1px rgba(var(--accent-rgb),.1),0 14px 40px rgba(0,0,0,.08),0 0 56px rgba(var(--accent-glow-rgb),.2)}
  html[data-theme=light] .menu.mr.grid .mr-lab{text-shadow:none}
}
/* opacity only on the card; the items rise slightly */
@keyframes mrCard{from{opacity:0}to{opacity:1}}
@keyframes mrRise{from{translate:0 8px}to{translate:0 0}}
.menu.mr.grid .mr-item{animation:mrRise .26s cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){.menu.mr.grid .mr-ring,.menu.mr.grid .mr-item{animation:none}}
/* v80: desktop / tablet grid (>=600px): 4 x 3 for the 12 items, a 13th (Install) centred on its own row by menu-ring.js */
@media(min-width:600px){
  .menu.mr.grid{--ic:68px;align-items:center;padding:calc(88px + env(safe-area-inset-top)) 24px 88px;
    background:radial-gradient(48% 52% at 50% 54%,rgba(var(--accent-rgb),.13),rgba(0,0,0,0) 70%),rgba(0,0,0,.9)}
  .menu.mr.grid .mr-ring,.menu.mr.grid.in .mr-ring{position:relative;width:min(100%,620px);grid-template-columns:repeat(8,minmax(0,1fr));row-gap:26px;padding:32px 20px 30px;border-radius:32px}
  .menu.mr.grid .mr-item{gap:8px}
  .menu.mr.grid .mr-ic svg{width:28px;height:28px}
  .menu.mr.grid .mr-lab{font-size:14px}
  html[data-theme=light] .menu.mr.grid{background:radial-gradient(48% 52% at 50% 54%,rgba(var(--accent-rgb),.16),rgba(245,246,242,0) 70%),rgba(245,246,242,.95)}
}
@media(min-width:600px) and (max-height:620px){
  .menu.mr.grid{align-items:flex-start;padding-top:80px;padding-bottom:24px}
  .menu.mr.grid .mr-ring,.menu.mr.grid.in .mr-ring{row-gap:16px;padding:20px 16px}
}
/* v81: Install app is a full-width pill inside the card, below the 12-item grid, after a subtle divider */
.menu.mr .mr-install{grid-column:1 / -1;justify-self:stretch;width:auto;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:6px 8px 0;padding:0 20px;
  border-radius:999px;border:2px solid #fff;background:#0b0b0b;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease}
.menu.mr .mr-install[hidden]{display:none!important}
.menu.mr .mr-install::before{content:"";position:absolute;left:4px;right:4px;top:calc(-1 * clamp(14px,2.6vh,24px) / 2 - 6px);height:1px;background:rgba(255,255,255,.14);pointer-events:none}
.menu.mr .mr-install svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.menu.mr .mr-install:hover{box-shadow:0 0 16px rgba(255,255,255,.35)}
.menu.mr .mr-install:focus-visible{outline:3px solid var(--hg);outline-offset:3px}
.menu.mr .mr-install:active{transform:scale(.98)}
html[data-theme=light] .menu.mr .mr-install{background:#111;border-color:#111;color:#fff}
html[data-theme=light] .menu.mr .mr-install::before{background:rgba(0,0,0,.1)}
html[data-theme=light] .menu.mr .mr-install:focus-visible{outline-color:#111}
@media(min-width:600px){.menu.mr .mr-install{margin:8px 24px 0;min-height:52px;font-size:16px}.menu.mr .mr-install::before{top:-20px;left:-4px;right:-4px}}

/* v101: Premium (blue tick included) is a full-width pill at the top of the menu grid, so the 12 icons stay an even 3 x 4 / 4 x 3 */
.menu.mr .mr-premline{grid-column:1 / -1;justify-self:stretch;width:auto;max-width:none;min-width:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0 8px 4px;padding:0 18px;border-radius:999px;border:1px solid rgba(29,155,240,.7);background:rgba(8,20,32,.9);color:#fff;font:inherit;font-size:15px;cursor:pointer;text-align:center}
.menu.mr .mr-premline b{font-weight:800}
.menu.mr .mr-premline svg{width:24px;height:24px;flex:none}
.menu.mr .mr-premline .mr-tk{fill:#1d9bf0;stroke:none}.menu.mr .mr-premline .mr-tc{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.menu.mr .mr-premline:hover{background:rgba(29,155,240,.25);border-color:#1d9bf0}
.menu.mr .mr-premline:focus-visible{outline:3px solid var(--hg);outline-offset:3px}
html[data-theme=light] .menu.mr .mr-premline{background:#0b1a26;border-color:#1d9bf0;color:#fff}
html[data-theme=light] .menu.mr .mr-premline:focus-visible{outline-color:#111}
@media(min-width:600px){.menu.mr .mr-premline{margin:0 24px 6px;min-height:52px;font-size:16px}}
