/* GoUnscramble minimal theme: loads last and replaces the comic look. Search first. */
:root:not([data-theme="dark"]),:root[data-theme="light"]{
  --bg:#ffffff;--ink:#1c2230;--muted:#667085;--line:#e4e8f0;--card:#fff;--yellow:#fff6d6;--soft:#eef2f8;
  --primary:#5170ff;--green:#5170ff;--green-dark:#4059e8;--tile-bg:#5170ff;--band:#fff;--heading:#1c2230;--on-accent:#fff;
  --display:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;--body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --sh:0 10px 30px rgba(28,34,48,.08);--sh-s:0 2px 10px rgba(28,34,48,.07);color-scheme:light}
body{background:#ffffff;color:var(--ink);font-family:var(--body);font-weight:400;font-size:17px}
body .hm,body .hub,body .hm .box input,body .hm .opt,body .hm .chip,body .hm .more{font-family:var(--body)}
h1,h2,h3{font-family:var(--display);font-weight:700;letter-spacing:-.02em}
a{color:var(--ink)}
:focus-visible,body .hm .go:focus-visible,body .hm .chip:focus-visible{outline:3px solid rgba(81,112,255,.45);outline-offset:3px}

/* wordmark */
.wm{font-family:var(--display);font-weight:400;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
.wm b{font-weight:800}

/* header: slim bar, brand left, menu right */
.site-header,body[data-page="home"] .site-header{background:transparent!important;background-image:none!important;border:0!important;overflow:visible}
.site-header::before{display:none!important}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;text-align:left;max-width:1040px;padding:14px 20px}
.brand{display:flex;align-items:center;gap:10px;margin:0;justify-content:flex-start}
.brand .wm{font-size:22px}
.main-nav{position:static}
.user-wrap{position:static}
.main-nav summary,.site-header .user-btn{width:42px;height:42px;background:#fff!important;color:var(--ink);border:1px solid var(--line)!important;border-radius:50%;box-shadow:var(--sh-s)}
.main-nav summary:hover,.site-header .user-btn:hover,.site-header .main-nav .menu[open] summary,.site-header .user-wrap:hover .user-btn{background:var(--soft)!important}
body[data-page="home"] .site-header .brand{visibility:hidden}
.main-nav .menu[open] .menu-list{background:#fff!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:var(--sh)!important}
.menu[open] .menu-x{border:1px solid var(--line);border-radius:50%;background:#fff}
.menu-list a{font-family:var(--display);font-weight:500;font-size:18px;border:0;border-radius:12px}
.menu-list a:hover{background:var(--soft)}
.menu-list a[aria-current="page"]{background:var(--soft);border:0;font-weight:700}
.menu-list hr{border-top:1px solid var(--line);opacity:1}
.user-pop{background:#fff;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--sh)!important}
.user-pop .up-n{border-bottom:1px solid var(--line)}
.user-pop a:hover,.user-pop button:hover{background:var(--soft)}
.user-pop .up-n,.user-pop a,.user-pop button{font-family:var(--body);font-weight:500}
.main-nav .menu[open]::after{background:rgba(28,34,48,.25)}

/* hero: brand + one big search bar */
.hero-band{background:transparent!important;background-image:none!important;border:0!important}
.hero-band::before{display:none!important}
body .hero-band .hm-top{max-width:720px;padding:34px 20px 8px;gap:14px}
.hero-brand{display:flex;flex-direction:column;align-items:center;gap:14px;margin:6px 0 26px}
.hero-brand .wm{font-size:clamp(30px,7vw,44px)}
body .hm .box{background:linear-gradient(180deg,#fff,#f4f8ff);border:0;border-radius:999px;padding:10px 10px 10px 30px;box-shadow:0 18px 40px rgba(60,80,130,.16),0 2px 6px rgba(60,80,130,.06)}
body .hero-band .box{box-shadow:0 18px 40px rgba(60,80,130,.16),0 2px 6px rgba(60,80,130,.06)}
body .hm .box input{font-family:var(--body);font-weight:500;font-size:clamp(18px,4.6vw,24px);letter-spacing:0;text-transform:none;color:var(--ink);padding:14px 0}
body .hm .box input::placeholder{color:#8a93a6;font-weight:400}
body .hm .go{width:60px;height:60px;padding:0;display:grid;place-items:center;background:linear-gradient(180deg,#6b86ff,#4059e8);border:0;border-radius:50%;box-shadow:0 6px 16px rgba(81,112,255,.4),inset 0 1px 0 rgba(255,255,255,.35);transition:transform .12s,box-shadow .12s}
body .hm .go:hover{transform:scale(1.05)}
body .hm .go:active{transform:scale(.97)}
body .hm .x{border:0;background:var(--soft);width:34px;height:34px}
body .hm .hint{text-align:center;color:var(--muted);font-size:14px;font-weight:400;margin:2px 0 0}
body .hm .optrow{justify-content:center;margin-top:2px}
.free-badge{display:none!important}
body .hm .chip{background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:var(--sh-s);font-weight:500;color:var(--muted);align-self:center}
body .hm .chip:hover{color:var(--ink)}
body .hm .chip[aria-expanded="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
body .hero-band .opts{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh);padding:16px}
body .hm .opt{font-family:var(--body);font-weight:500;font-size:13px;color:var(--muted)}
body .hm .opt input,body .hm .opt select{background:#fff;border:1px solid var(--line);border-radius:12px;font-family:var(--body);font-weight:500;color:var(--ink)}
body .hm .opt .chk-box{accent-color:var(--primary)}
body .hm .opt.chk{color:var(--ink);font-size:15px}
body .hm .reset{background:var(--soft);color:var(--ink);border:0;font-family:var(--body);font-weight:500}

/* results */
.home-res #out:has(.summary),body .home-res #out:has(.summary){background:#fff;border:0;border-radius:24px;box-shadow:var(--sh);padding:6px 22px 24px}
body .hm .summary{font-family:var(--body);font-weight:500;font-size:16px;color:var(--muted)}
body .hm .summary strong{color:var(--ink)}
body .hm .gh{font-family:var(--body);font-weight:600}
body .hm .gh span{background:var(--ink);color:#fff}
body .hm .t{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 0 var(--line);font-family:var(--body);font-weight:700;color:var(--ink)}
body .hm .t.blank{background-color:var(--primary)!important}
body .hm .pts{background:var(--soft);border:0;font-family:var(--body);color:var(--muted);font-weight:600}
body .hm .more{border:1px solid var(--line);background:#fff;font-family:var(--body);font-weight:500;color:var(--ink)}
body .hm .look{background:var(--soft);border:0;border-radius:14px;font-family:var(--body)}
body .hm .look a{background:#fff;border:1px solid var(--line);font-weight:500}
body .hm .empty{font-family:var(--body);font-weight:500;color:var(--muted)}
body .hm .fine{opacity:.6;font-weight:400}

/* home sections */
.hub{margin-top:36px;gap:48px}
.hub .hb-doodle,#hb-doodle{display:none!important}
.hub .hb-sec>h2,.hub .hb-head h2,.hub .hb-sec:nth-of-type(even)>h2,.hub .hb-sec:nth-of-type(even) .hb-head h2{background:none;border:0;box-shadow:none;transform:none;padding:0;font-family:var(--display);font-weight:700;font-size:clamp(20px,3.4vw,26px)}
.hub .hb-head a{color:var(--muted);font-weight:500}
.hub .hb-sub{color:var(--muted)}
.hub .hb-card,.hub .hb-more{background:#fff!important;background-image:none!important;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-s);transition:transform .15s,box-shadow .15s}
.hub .hb-card:hover{transform:translateY(-2px);box-shadow:var(--sh)}
.hub .hb-card:active{transform:none;box-shadow:var(--sh-s)}
.hub .hb-card:nth-child(even) .hb-ic{transform:none}
.hub .hb-card b{font-weight:600;font-size:18px}
.hub .hb-card>span:not(.hb-ic){font-weight:400;color:var(--muted);font-size:15px}
.hub .hb-card em{background:var(--soft);border:0;font-weight:500;color:var(--muted)}
.hub .hb-ic{background:var(--soft);border:0;border-radius:14px;box-shadow:none;color:var(--ink);font-weight:700}
.hub .hb-card[data-pop]::after,.gm .tool[data-pop]::after{content:attr(data-pop)!important;clip-path:none!important;animation:none!important;transform:none!important;width:auto!important;height:auto!important;top:14px!important;right:14px!important;padding:3px 10px!important;background:var(--primary)!important;color:#fff!important;border-radius:999px;font-size:11px!important;font-weight:700;letter-spacing:.04em!important;line-height:1.3!important;display:block}
.hub .hb-more[data-pop]::after{background:var(--ink)!important}
.hub .hb-stats div,.hub .hb-otd,.hub .hb-mine,.hub .hb-cal,.hub .hb-fact,.hub .hb-lock{background:#fff!important;background-image:none!important;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-s);transform:none!important}
.hub .hb-stats [data-t]::before{background:none;border:0;box-shadow:none;color:var(--muted);transform:translateX(-50%);padding:0}
.hub .hb-stats{row-gap:32px}
.hub .hb-hi{background:var(--soft);border:0;border-radius:14px}
.hub .hb-hi::before,.hub .hb-hi::after{display:none}
.hub .hb-nums li,.hub .hb-fact b{background:var(--soft)!important;border:0;box-shadow:none;transform:none}
.hub .hb-chips button,.hub .hb-rollrow button,.hub .hb-links a,.hub .hb-go a{background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:var(--sh-s);animation:none!important;font-weight:500;color:var(--ink)}
.hub .hb-chips button:hover,.hub .hb-links a:hover,.hub .hb-go a:hover{background:var(--soft);transform:none;box-shadow:var(--sh-s)}
.hub .hb-btn,.hub .hb-rollrow .hb-roll,#hb-acc{background:var(--primary)!important;color:#fff!important;border:0!important;border-radius:999px;box-shadow:none!important;font-weight:600}
.hub .hb-btn.alt{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}
.hub .cal-head button{background:var(--soft);border:0;box-shadow:none}
.hub .cal-grid span{border:0}
.hub .cal-grid .on{background:var(--primary);color:#fff}
.hub .cal-grid .today{border:1px dashed var(--muted);animation:none}
.hub .cal-grid .on.today{background:var(--primary);border-style:solid}
.hub *,.hub *::after{animation:none!important}
body .hm .about{font-family:var(--body);font-weight:400;color:#394150}
body .hm .about b{color:var(--ink)}
.hm .about h2,.hm .about h3{font-family:var(--display)}

/* games and tool pages */
.gm .tool,.gm .card,.tool{background:#fff!important;background-image:none!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--sh-s)!important;transform:none!important}
.gm .tool:hover{box-shadow:var(--sh)!important}
.gm .tool .tb{background:var(--soft)!important;border:0!important;box-shadow:none!important;color:var(--ink)!important;transform:none!important}
.gm .tool .tag,.gm .tool .td{color:var(--muted)}
.gm .tool .tag{background:var(--soft);border:0;box-shadow:none}
.gm .agh{background:none;border:0;box-shadow:none;transform:none;padding:0;font-weight:700}
.pill,.gm .pill,.gm .back,.gm .go,.gm button.go{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:999px;box-shadow:var(--sh-s);font-family:var(--body);font-weight:500}
.gm .go,.gm button.go{background:var(--primary);color:#fff;border:0}
.gm .ar-scr{border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh)}
.gm .ar-hud{font-family:var(--body)}
.played::after{background:#e8f8ee!important;border:0!important;box-shadow:none!important;color:#177a3c!important}
.gm .tool.played,.hub .hb-card.played{outline:0}
.panel,.card,.stat,.notice,.lookup,.lookup-pop{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-s)}
a.card:hover{background:#fff;box-shadow:var(--sh);border-color:var(--line)}
.field{background:#fff;border:1px solid var(--line);border-radius:14px;font-family:var(--body);font-weight:500}
.field:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(81,112,255,.18)}
.btn{background:var(--primary);color:#fff;border:0;border-radius:999px;font-family:var(--body);font-weight:600}
.btn:hover{background:var(--green-dark);color:#fff}
.btn.alt,.more summary{background:#fff;color:var(--ink);border:1px solid var(--line);font-weight:500}
.btn.alt:hover,.more summary:hover{background:var(--soft)}
.clear-btn{background:var(--ink)!important;border-color:var(--ink)!important}
.results .chip,.chip{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 0 var(--line);font-weight:600}
button.chip:hover{background:var(--soft)}
.chip .hl{background:#ffe1e2}
.ltile,.tile{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 0 var(--line)}
.seg{border:1px solid var(--line)}.seg.on{background:var(--ink);color:#fff}
.go-tag{background:var(--primary);border:0;color:#fff;border-radius:6px}
.hint,.lede,.note,.scorelabel,.count,.status,.stat dt,.lookup-note,.arrow{color:var(--muted)}
.prose p,.prose li,.gloss dd,.block.narrow p,.card p,.gloss dt{color:#2b3342}
.filters{border-top:1px solid var(--line)}

/* footer */
.site-footer{border-top:1px solid var(--line);margin-top:56px;background:transparent}
.site-footer .wrap,.site-footer .nav a{color:var(--muted);font-family:var(--body);font-weight:500}
.social,a.social:hover{background:var(--ink);color:#fff}
body .hm .foot{border-top:1px solid var(--line);background:transparent;font-family:var(--body)}

/* fixes */
.site-header .wrap{gap:10px}
.user-wrap{margin-left:auto}
.main-nav{margin-left:0}
#hb-acc,.hub #hb-acc{transform:none!important;rotate:none!important;text-shadow:none}
.hub .hb-stats [data-t]::before{bottom:calc(100% + 8px);transform:translateX(-50%)}
.hub .hb-stats div,.hub .hb-otd{min-height:0}
.hub .hb-stats b{font-weight:700;color:var(--ink)}
.hub .hb-stats span{color:var(--muted);font-weight:500}
body .site-header .brand .wm,body .site-header .brand span.wm{color:var(--ink)!important;font-weight:400;font-size:22px;letter-spacing:-.02em;text-shadow:none}
body .site-header .brand .wm b{font-weight:800}
body .hero-brand .wm{font-size:clamp(30px,7vw,44px);color:var(--ink)}
body .gm,body .hm,body .hub{--board:transparent;--display:'Inter',system-ui,sans-serif;--body:'Inter',system-ui,sans-serif;--tile-face:#fff;--soft:#eef2f8;--tan:#eef2f8;--ink:#1c2230;--wild:#ef4b53}
body .gm{background:transparent;font-weight:500;color:var(--ink)}
body .gm .gtop h1,body .gm:has(#v-games:not([hidden])) .gtop h1{display:block;background:none;border:0;box-shadow:none;transform:none;padding:0;font-size:clamp(26px,5vw,34px);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.gm .sub{color:var(--muted);font-weight:400}
body .gm .agh{font-size:22px}

/* round 2: remaining comic pieces on tools, account, lists, games */
body .card,body a.card,body .panel{background:#fff!important;background-image:none!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--sh-s)!important;transform:none!important}
body a.card:hover{box-shadow:var(--sh)!important;background:#fff!important}
body .card .icon,body .card-icon{background:var(--soft)!important;border:0!important;box-shadow:none!important;color:var(--ink)!important;transform:none!important}
body .field,body input.field,body select.field,body .dict-row .field{border:1px solid var(--line)!important;border-radius:14px!important;background:#fff;font-family:var(--body);font-weight:500;box-shadow:none}
body .field:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px rgba(81,112,255,.18)!important}
body .btn,body button.btn{background:var(--primary)!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font-family:var(--body);font-weight:600}
body .btn.alt,body .more summary{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}
body .results .chip,body .chip,body a.chip{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:0 2px 0 var(--line)!important;font-family:var(--body);font-weight:600}
body .pill,body .gm .pill{border:1px solid var(--line)!important;box-shadow:var(--sh-s)!important;background:#fff!important;color:var(--ink)!important;font-family:var(--body);font-weight:500}
body .gm .vs .pl,body .gm .vs span{background:var(--soft)!important;border:0!important;box-shadow:none!important;color:var(--ink)!important;font-family:var(--body);transform:none!important}
body .notice{background:#fff8e1;border:1px solid #f1e0a8;border-radius:14px}
body .stat{background:#fff;border:1px solid var(--line)}
body .gm .pad button,body .gm .keys button,body .gm .seg,body .gm .row button{font-family:var(--body)}
body .gm .pad button,body .gm .keys button{border:1px solid var(--line)!important;box-shadow:0 2px 0 var(--line)!important;background:#fff!important;border-radius:10px;color:var(--ink)}
body .gm .sg{border-color:var(--ink)}
body .gm .go,body .gm button.go{background:var(--primary)!important;color:#fff!important;border:0!important;box-shadow:none!important}
body .gm .msg{font-family:var(--body);font-weight:500}
body .tile,body .ltile{border:1px solid var(--line);box-shadow:0 2px 0 var(--line);background:#fff;color:var(--ink)}
body .site-footer .nav a,body .site-footer .wrap{font-family:var(--body)}
body .lookup,body .lookup-pop{border:1px solid var(--line);box-shadow:var(--sh)}
body .hero h1{font-family:var(--display);font-weight:700}
body .hero h1 .accent{color:var(--primary)}

/* round 3 */
body .jump a,body .prose .scorelist li{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:0 2px 0 var(--line)!important;border-radius:12px;font-family:var(--body);font-weight:600}
body .jump a:hover{background:var(--soft)!important}
body .cards:not(.guide-cards) .tile,body .tile{background:var(--soft)!important;color:var(--ink)!important;border:0!important;box-shadow:none!important}
body .notice,body .ac .ac-note{background:#fff8e1!important;border:1px solid #f1e0a8!important;border-radius:14px;box-shadow:none}
body .ac .card,body .ac .dz-box{background:#fff!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--sh-s)!important}
body .ac .fld input,body .ac textarea,body .ac select{border:1px solid var(--line)!important;border-radius:14px!important;background:#fff;font-family:var(--body);font-weight:500}
body .ac .fld input:focus,body .ac textarea:focus,body .ac select:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px rgba(81,112,255,.18)}
body .ac .go,body .ac .pill{background:var(--primary)!important;color:#fff!important;border:0!important;box-shadow:none!important;font-family:var(--body);font-weight:600}
body .ac .alt{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:none!important;font-family:var(--body);font-weight:500}
body .ac .alt i{border:1px solid var(--line)!important}
body .ac .pw button{border:0!important;background:var(--soft)!important;color:var(--ink)!important;box-shadow:none!important}
body .ac .av{border:1px solid var(--line)!important;background:var(--soft)!important}
body .ac{--display:'Inter',system-ui,sans-serif;--body:'Inter',system-ui,sans-serif;--tile-face:#fff;--ink:#1c2230;font-weight:500}
body .ac h1,body .ac h2,body .ac h3{font-family:var(--display)}
body .tile,body .cards .tile,body .card:nth-child(n) .tile{transform:none!important;rotate:none!important}

/* closer to the mock-up: taller bar, deeper soft shadow, more air around the brand */
body .hm .box{padding:14px 14px 14px 36px;box-shadow:0 30px 50px -12px rgba(70,90,140,.28),0 2px 6px rgba(70,90,140,.08)}
body .hero-band .box{box-shadow:0 30px 50px -12px rgba(70,90,140,.28),0 2px 6px rgba(70,90,140,.08)}
body .hm .go{width:68px;height:68px}
.hero-brand{gap:22px;margin:14px 0 40px}
body .hero-band .hm-top{max-width:760px;padding-top:30px}

/* sign in / account: plain text link in the header */
body .site-header .user-btn,body .site-header .user-btn.pic{width:auto;height:auto;min-height:0;background:none!important;background-image:none!important;border:0!important;border-radius:0;box-shadow:none;padding:8px 6px;display:inline-flex;align-items:center;color:var(--ink);font-family:var(--body);font-weight:500;font-size:16px;text-decoration:none}
body .site-header .user-btn svg{display:none!important}
body .site-header .user-btn:hover,body .site-header .user-wrap:hover .user-btn{background:none!important;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
body .hub #hb-acc{display:none!important}
body .site-header .user-wrap{margin-right:6px}
body .site-header .user-btn{white-space:nowrap}

/* Options open inline (pushes content down, never covers anything) */
body .hero-band .opts{position:static!important;flex:0 0 100%;width:100%;margin-top:10px;z-index:auto;box-shadow:var(--sh-s);padding:16px}
body .hm .optrow{flex-wrap:wrap}
body .hm .opt select,body .hm .opt input{font-size:15px;padding:8px 12px}
body .hm .reset{align-self:end;justify-self:start}

/* smaller panels */
.hub{max-width:860px}
.hub .hb-stats{gap:10px;row-gap:26px;margin-top:26px}
.hub .hb-stats div,.hub .hb-otd,.hub button.hb-otd{padding:12px 8px!important;min-height:0!important;border-radius:16px;justify-content:center}
.hub .hb-stats b{font-size:clamp(22px,3.4vw,28px)}
.hub .hb-stats span{font-size:clamp(12px,2.2vw,14px)}
.hub .hb-otd.live span,.hub button.hb-otd.live .nt{font-size:12px;-webkit-line-clamp:3}
.hub .hb-wx.live b{font-size:clamp(22px,3.4vw,26px)}
.hub .hb-grid,.hub .hb-facts{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.hub .hb-card{padding:14px 16px;gap:4px;border-radius:16px}
.hub .hb-card b{font-size:16.5px}
.hub .hb-card>span:not(.hb-ic){font-size:14px;line-height:1.35}
.hub .hb-ic{min-width:42px;height:42px;border-radius:12px;font-size:14px}
.hub .hb-mine,.hub .hb-cal,.hub .hb-fact{padding:14px;border-radius:16px}
.hub{gap:38px}

/* narrow screens: keep brand, Sign in and menu inside the bar */
body[data-page="home"] .site-header .brand{display:none}
.site-header .wrap{flex-wrap:nowrap}
.brand{min-width:0;flex:0 1 auto}
@media (max-width:420px){.site-header .wrap{padding:12px 14px}body .site-header .brand .wm{font-size:18px}.brand{gap:7px}.brand .cube{width:22px;height:22px}body .site-header .user-wrap{margin-right:0}body .site-header .user-btn{padding:8px 4px;font-size:15px}}

/* cream result tiles, calmer search text */
body .hm .t{background:#fdf0c4!important;border:1px solid #e4cf93;box-shadow:0 2px 0 #e4cf93;color:var(--ink)}
body .hm .t.blank{background:var(--primary)!important;border-color:var(--primary);box-shadow:0 2px 0 #3047c4;color:#fff!important}
body .hm .box input{letter-spacing:.01em}
body .hm .box input::placeholder{letter-spacing:.01em}
.hero-brand{text-decoration:none;color:inherit;cursor:pointer}.hero-brand:hover .wm{opacity:.8}

/* tighter vertical rhythm: everything sits higher */
body[data-page="home"] .site-header{margin-bottom:-16px}
body .hero-band .hm-top{padding-top:0;padding-bottom:4px;gap:10px}
.hero-brand{gap:14px;margin:0 0 26px}
.hero-brand .cube{width:60px;height:60px}
@media (max-width:600px){
  body[data-page="home"] .site-header{margin-bottom:-14px}
  .hero-brand{gap:10px;margin:0 0 18px}
  .hero-brand .cube{width:46px;height:46px}
  body .hero-band .hero-brand .wm{font-size:28px}
  body .hm .box{padding:8px 8px 8px 24px}
  body .hm .go{width:56px;height:56px}
  body .hm .hint{font-size:13px}
  .hub{margin-top:22px;gap:30px}
  body .hm .summary{margin-top:22px}
}

/* focus on the search: smaller logo, more air before the panels */
.hero-brand{gap:10px;margin:0 0 24px}
.hero-brand .cube{width:44px;height:44px}
body .hero-band .hero-brand .wm,.hero-brand .wm{font-size:clamp(24px,5vw,32px)}
body .site-header .brand .wm{font-size:18px}
.brand .cube{width:22px;height:22px}
body .hm .box{margin-top:2px}
body .hm .hint{margin-top:10px}
body .hm .optrow{margin-top:6px}
body .home-res .empty,body .hm .empty{margin:30px 0 0;text-align:center;color:var(--muted)}
.hub{margin-top:64px;gap:44px}
.home-res{min-height:0}
@media (max-width:600px){
  .hero-brand{gap:8px;margin:0 0 20px}
  .hero-brand .cube{width:36px;height:36px}
  body .hero-band .hero-brand .wm,.hero-brand .wm{font-size:24px}
  .hub{margin-top:44px;gap:34px}
  body .hm .empty{margin-top:24px}
}

/* smaller menu text */
body .menu-list a{font-size:15px!important;padding:8px 14px!important;font-weight:500;border-radius:10px}
body .menu-list a[aria-current="page"]{font-weight:600}
body .menu-list hr{margin:5px 8px}
body .main-nav .menu[open] .menu-list{padding:8px;gap:0}
@media (hover:hover) and (pointer:fine){body .main-nav .menu[open] .menu-list{width:230px}}
@media (max-width:600px){body .main-nav .menu[open] .menu-list{width:min(260px,80vw)}}
body .user-pop a,body .user-pop button{font-size:15px}
body .user-pop .up-n{font-size:15px}

/* smaller search button */
body .hm .go{width:52px;height:52px}
body .hm .go svg{width:22px;height:22px}
body .hm .box{padding:10px 10px 10px 30px}
body .hm .box input{padding:10px 0}
@media (max-width:600px){body .hm .go{width:46px;height:46px}body .hm .go svg{width:20px;height:20px}body .hm .box{padding:7px 7px 7px 22px}}

/* bring search + panels down a touch */
.hero-brand{margin:0 0 48px}
@media (max-width:600px){.hero-brand{margin:0 0 32px}}

/* side drawer: slides in from the right with a fading backdrop (all screen sizes) */
@keyframes gu-in{from{transform:translateX(100%)}to{transform:none}}
@keyframes gu-out{from{transform:none}to{transform:translateX(100%)}}
@keyframes gu-fade{from{opacity:0}to{opacity:1}}
@keyframes gu-item{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
body .main-nav .menu[open]::after{display:block!important;position:fixed;inset:0;z-index:25;background:rgba(28,34,48,.35);animation:gu-fade .25s ease both}
body .main-nav .menu.closing::after{animation:gu-fade .22s ease reverse both}
body .main-nav .menu[open] summary{position:relative;z-index:24;visibility:hidden}
body .main-nav .menu[open] .menu-list{position:fixed!important;z-index:30;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:min(320px,86vw)!important;max-height:none!important;height:100%;border:0!important;border-radius:0!important;border-left:1px solid var(--line)!important;box-shadow:-18px 0 50px rgba(28,34,48,.18)!important;padding:14px 12px 24px!important;overflow-y:auto;display:flex;flex-direction:column;background:#fff!important;animation:gu-in .3s cubic-bezier(.22,.8,.3,1) both}
body .main-nav .menu.closing .menu-list{animation:gu-out .23s cubic-bezier(.5,0,.8,.4) both}
body .main-nav .menu[open] .menu-x{display:grid!important;align-self:flex-end;margin:0 0 8px;width:40px;height:40px}
body .menu[open]:not(.closing) .menu-list>*{animation:gu-item .35s cubic-bezier(.22,.8,.3,1) both}
body .menu[open]:not(.closing) .menu-list>:nth-child(1){animation-delay:88ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(2){animation-delay:116ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(3){animation-delay:144ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(4){animation-delay:172ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(5){animation-delay:200ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(6){animation-delay:228ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(7){animation-delay:256ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(8){animation-delay:284ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(9){animation-delay:312ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(10){animation-delay:340ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(11){animation-delay:368ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(12){animation-delay:396ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(13){animation-delay:424ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(14){animation-delay:452ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(15){animation-delay:480ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(16){animation-delay:508ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(17){animation-delay:536ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(18){animation-delay:564ms}
body .menu[open]:not(.closing) .menu-list>:nth-child(19){animation-delay:592ms}
body .menu-list a{font-size:16px!important;padding:10px 14px!important}
@media (prefers-reduced-motion:reduce){body .main-nav .menu[open] .menu-list,body .menu[open]:not(.closing) .menu-list>*,body .main-nav .menu[open]::after{animation:none!important}}
body .site-header:has(.menu[open]) .user-wrap{visibility:hidden}

/* word.tips-style sections: jump chips, big headings with a sub line and an arrow */
.hub .hb-jump{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:-8px}
.hub .hb-jump a{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 18px;font-weight:600;font-size:15px;color:var(--ink);text-decoration:none;box-shadow:var(--sh-s);transition:background .15s,transform .15s}
.hub .hb-jump a:hover{background:var(--soft);transform:translateY(-1px)}
.hub .hb-sec{scroll-margin-top:20px}
.hub .hb-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap}
.hub .hb-head>div{min-width:0}
.hub .hb-head h2{font-size:clamp(24px,4vw,32px)}
.hub .hb-head .hb-sub{margin:4px 0 0;font-size:16px;color:var(--muted)}
.hub .hb-head a.hb-arrow{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid var(--line);box-shadow:var(--sh-s);color:var(--ink)}
.hub .hb-head a.hb-arrow:hover{background:var(--soft)}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media (max-width:600px){.hub .hb-jump{gap:8px;justify-content:flex-start}.hub .hb-jump a{padding:8px 14px;font-size:14px}}
@media (max-width:600px){
  .hub .hb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hub .hb-card{padding:12px}
  .hub .hb-card>span:not(.hb-ic){display:none}
  .hub .hb-card b{font-size:15.5px}
  .hub .hb-card em{margin-top:6px}
  .hub .hb-card[data-pop]::after{top:10px!important;right:10px!important;font-size:10px!important;padding:2px 8px!important}
}

/* logo: cube + wordmark as in the approved mock-up */
.wm,body .site-header .brand .wm,body .hero-brand .wm,body .hero-band .hero-brand .wm{font-family:'Figtree','Inter',system-ui,sans-serif;color:#1a1917!important;letter-spacing:-.02em}
.wm b{font-weight:800}
.cube{filter:drop-shadow(0 3px 6px rgba(30,40,70,.12))}

/* smaller helper line under Options */
body .hm .empty,body .home-res #out .empty,body .hero-band .empty{font-size:14.5px!important;font-weight:400;margin-top:18px!important;color:var(--muted)}
@media (max-width:600px){body .hm .empty,body .home-res #out .empty{font-size:14px!important;margin-top:14px!important}}

/* roomier result tiles */
body .hm .tiles{gap:6px;--tw:min(clamp(34px,9.4vw,44px),calc((100vw - 56px - (var(--n) - 1)*6px)/var(--n)))}
body .hm .words{gap:16px}
body .hm .w{gap:10px 14px}
body .hm .group{margin-top:30px;gap:18px}
body .hm .gh{margin-bottom:2px}

/* footer: logo instead of plain text */
.foot-brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.foot-logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.foot-logo .cube{width:22px;height:22px}
body .site-footer .foot-logo .wm{font-size:19px;color:#1a1917!important}
.foot-c{color:var(--muted);font-size:14px}
.foot-logo .cube{width:26px;height:26px;flex:none}

/* bigger logo on phones */
@media (max-width:600px){
  .hero-brand{gap:10px;margin:0 0 28px}
  .hero-brand .cube{width:54px;height:54px}
  body .hero-band .hero-brand .wm,.hero-brand .wm{font-size:32px}
  body .site-header .brand .wm{font-size:20px}
  .brand .cube{width:26px;height:26px}
  body .site-footer .foot-logo .wm{font-size:21px}
}

/* plain white page background */
html,body,body[data-page]{background:#ffffff!important;background-image:none!important}

/* clean look on white: flat pill, light border, soft shadow */
body .hm .box{background:#fff!important;border:1px solid #e4e8f0!important;box-shadow:0 4px 18px rgba(28,34,48,.08)!important}
body .hm .box:focus-within{border-color:#cfd6e4!important;box-shadow:0 6px 22px rgba(28,34,48,.12)!important}
body .hm .box input{background:transparent!important}

/* darker grey border on the search bar */
body .hm .box{border:1.5px solid #9aa1ae!important}
body .hm .box:focus-within{border-color:#667085!important}

/* logo: blue "go", cube hidden for now */
.brand .cube,.hero-brand .cube,.foot-logo .cube{display:none!important}
body .wm b,body .site-header .brand .wm b,body .hero-band .hero-brand .wm b,body .foot-logo .wm b{color:#5170ff!important}
.hero-brand{gap:0}.brand,.foot-logo{gap:0}

/* match the Canva mockup: soft grey backdrop, blue accent, floating pill */
html,body,body[data-page]{background:linear-gradient(180deg,#f7f8fb 0,#eceef4 100%) fixed!important}
.wm,body .site-header .brand .wm,body .hero-brand .wm,body .hero-band .hero-brand .wm,body .foot-logo .wm{font-family:'Albert Sans','Inter',system-ui,sans-serif!important;font-weight:400;letter-spacing:-.01em}
body .wm b{font-weight:800}
body .hm .box{background:linear-gradient(180deg,#fff,#f4f6fb)!important;border:0!important;box-shadow:0 22px 44px rgba(70,85,130,.18),0 4px 10px rgba(70,85,130,.08),inset 0 1px 0 #fff!important}
body .hm .box:focus-within{border:0!important;box-shadow:0 26px 50px rgba(70,85,130,.22),0 4px 10px rgba(70,85,130,.08)!important}
body .hm .go{background:linear-gradient(180deg,#6b86ff,#4059e8)!important;box-shadow:0 8px 18px rgba(81,112,255,.45),inset 0 1px 0 rgba(255,255,255,.4)!important}

/* Canva Sans lookalike (Roboto), larger wordmark and taller pill like the mockup */
.wm,body .site-header .brand .wm,body .hero-brand .wm,body .hero-band .hero-brand .wm,body .foot-logo .wm{font-family:'Roboto','Helvetica Neue',Arial,sans-serif!important;letter-spacing:-.015em}
body .wm b{font-weight:900}
body .hero-band .hero-brand .wm,.hero-brand .wm{font-size:clamp(30px,5.6vw,46px)}
.hero-brand{margin:0 0 56px}
body .hm .box{padding:14px 14px 14px 34px}
body .hm .go{width:68px;height:68px}
@media (max-width:600px){
  body .hero-band .hero-brand .wm,.hero-brand .wm{font-size:34px}
  .hero-brand{margin:0 0 34px}
  body .hm .box{padding:10px 10px 10px 24px}
  body .hm .go{width:60px;height:60px}
}

/* back to Albert Sans wordmark */
.wm,body .site-header .brand .wm,body .hero-brand .wm,body .hero-band .hero-brand .wm,body .foot-logo .wm{font-family:'Albert Sans','Inter',system-ui,sans-serif!important;letter-spacing:-.01em}
body .wm b{font-weight:800}

/* results: smaller, light-blue tiles */
body .hm .tiles{gap:5px;--tw:min(clamp(28px,7.6vw,36px),calc((100vw - 56px - (var(--n) - 1)*5px)/var(--n)))}
body .hm .t{background:#d9ecff!important;border:1px solid #a9cdf2;box-shadow:0 2px 0 #a9cdf2;font-size:calc(var(--tw)*.5);color:var(--ink)}
body .hm .t.blank{background:var(--primary)!important;border-color:var(--primary);box-shadow:0 2px 0 #3047c4;color:#fff!important}
body .hm .gh{font-size:15px;gap:8px}
body .hm .gh span{padding:2px 12px}
body .hm .gh em{font-size:13px}
body .hm .pts{font-size:13px}
body .home-res #out:has(.summary){padding:4px 18px 18px;font-size:15px}
body .hm .summary{font-size:15px}

/* letter-count pills: light grey */
body .hm .gh span{background:#e9ecf2!important;color:var(--ink)!important}
body .hm .gh span{background:#a6a6a6!important;color:#111!important}
body .hm .gh span{background:#d9d9d9!important;color:#1c2230!important}

/* all primary buttons use the brand blue */
body .btn,body .btn-primary,body button.primary,body .ac .btn,body .ac button[type=submit],body .gm .btn.go,body .hm .go{background:linear-gradient(180deg,#6b86ff,#4059e8)!important;border-color:#4059e8!important;color:#fff!important}

/* home: panels replaced by a simple text directory at the bottom */
.hub .hb-jump,.hub #s-games,.hub #s-retro,.hub #s-lists,.hub #s-tools,.hub #s-guides{display:none!important}
.hb-dir{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:28px 20px;margin:0 0 36px;padding-top:36px;text-align:left}
.hb-dir h3{font-size:16px;font-weight:700;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid var(--line);color:var(--ink)}
.hb-dir ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.hb-dir a{color:var(--muted);text-decoration:none;font-size:15px;font-weight:400}
.hb-dir a:hover{color:#5170ff;text-decoration:underline}

/* footer directory replaces the old one-line nav */
.site-footer .wrap>.nav{display:none}
.site-footer .wrap>.hb-dir{flex:1 1 100%;width:100%}
body .site-footer .wrap{max-width:1040px}
.hb-dir h3{border-bottom:0!important;padding-bottom:0!important;margin:0 0 16px!important}
.hb-dir h3{border-bottom:1px solid #e3e5ea!important;padding-bottom:10px!important;margin:0 0 12px!important}

/* word search categories: plain white cards like the guides page */
body .gm #v-wordsearch .cat{background:#fff!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--sh-s)!important;padding:16px 18px 18px;transition:box-shadow .15s}
body .gm #v-wordsearch .cat:hover{box-shadow:var(--sh)!important}
body .gm #v-wordsearch .cat .ico{background:var(--soft)!important;border:0!important;border-radius:12px;color:var(--ink)}
body .gm #v-wordsearch .cat .nm{font-size:19px;font-weight:700}
body .gm #v-wordsearch .cat .pg{font-size:13px;font-weight:500;color:var(--muted)}
body .gm #v-wordsearch .pbar{height:8px;border:0!important;background:var(--soft)!important}
body .gm #v-wordsearch .pbar i{background:#5170ff!important;border-radius:999px}

/* games: softer, plain surfaces (word search numbers, boards, cards) */
body .gm #v-wordsearch .num{background:#fff!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--sh-s)!important;font-weight:600}
body .gm #v-wordsearch .num.done{background:#eaf0ff!important;border-color:#c9d6ff!important}
body .gm #v-wordsearch .num.done::after{background:#5170ff}
body #v-wordsearch .card,body .gm .card{border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--sh-s)!important;background:#fff!important}
body .gm #v-wordsearch .pill,body .gm .pill,body .gm .pl{border:0!important;background:var(--soft)!important;font-weight:600}
body .gm .pd{border:1px solid rgba(28,34,48,.25)!important}
body .gm .c4{border:0!important;border-radius:22px;box-shadow:var(--sh)}
body .gm .c4 i{border:1px solid rgba(28,34,48,.25)!important}
body .gm .ttt button{border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:var(--sh-s)}
body .gm .mc{border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:var(--sh-s)}
body .gm .word span,body .gm .keys button,body .gm .pad button,body .gm .dice{border:1px solid var(--line)!important;box-shadow:0 2px 0 var(--line)!important}
body .gm .sl{border:1px solid var(--line)!important;border-radius:18px}
body .gm #v-wordsearch .pill,body .gm .pill{background:#fff!important;box-shadow:var(--sh-s)!important}

/* placeholder hides while the box is focused, returns when you click away */
input:focus::placeholder,textarea:focus::placeholder{color:transparent!important;opacity:0!important}
input::placeholder,textarea::placeholder{transition:opacity .12s}

/* arcade controls and screen: site style */
body .gm .ar-pad button{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:999px!important;box-shadow:var(--sh-s)!important;min-height:56px;font-weight:600;font-size:20px}
body .gm .ar-pad button.dn{background:#5170ff!important;color:#fff!important;border-color:#5170ff!important;transform:none!important;box-shadow:0 2px 6px rgba(81,112,255,.4)!important}
body .gm .ar-pad button:only-child,body .gm .ar-pad button[aria-label="Launch ball"],body .gm .ar-pad button[aria-label="Fire"],body .gm .ar-pad button[aria-label="Flap"]{background:#5170ff!important;color:#fff!important;border-color:#5170ff!important}
body .gm .ar-scr{border:0!important;border-radius:22px;box-shadow:var(--sh)!important}

/* GO button text + grey magnifier inside the search box */
body .hm .box{position:relative;padding-left:58px}
body .hm .box .sico{position:absolute;left:26px;top:50%;transform:translateY(-50%);pointer-events:none}
body .hm .go{color:#fff!important;font-family:var(--body);font-weight:800;font-size:18px;letter-spacing:.04em}
@media (max-width:600px){body .hm .box{padding-left:50px}body .hm .box .sico{left:20px;width:20px;height:20px}body .hm .go{font-size:16px}}

/* GO button: flat blue like the Sign in button, no shadow or glow */
body .hm .go,body .hm .go:hover,body .hm .go:active,body .hm .go:focus{background:#5170ff!important;box-shadow:none!important;border:0!important;filter:none!important}
body .hm .go:hover{background:#4059e8!important}

/* GO button: identical in every state (no resize, no colour change) */
body .hm .go,body .hm .go:hover,body .hm .go:active,body .hm .go:focus,body .hm .go:focus-visible{background:#5170ff!important;transform:none!important;box-shadow:none!important;outline:0!important;transition:none!important;-webkit-tap-highlight-color:transparent}

/* all primary blue buttons: plain flat blue, same in every state */
body .btn:not(.alt),body button.btn:not(.alt),body .btn-primary,body button.primary,body .ac .btn:not(.alt),body .ac button[type=submit],body .go,body .go.full,body .hub .hb-btn:not(.alt),body .hub #hb-acc,body .hub .hb-roll{background:#5170ff!important;background-image:none!important;border:0!important;box-shadow:none!important;filter:none!important;transform:none!important;color:#fff!important;transition:none!important}
body .btn:not(.alt):hover,body .btn:not(.alt):active,body .btn:not(.alt):focus,body .ac button[type=submit]:hover,body .ac button[type=submit]:active,body .go:hover,body .go:active,body .go:focus,body .go.full:hover,body .go.full:active,body .hub .hb-btn:not(.alt):hover,body .hub .hb-btn:not(.alt):active{background:#5170ff!important;box-shadow:none!important;transform:none!important}

/* hero GO: grows slightly on hover/press like before, colour never changes */
body .hm .go{transition:transform .12s!important}
body .hm .go:hover{transform:scale(1.06)!important;background:#5170ff!important}
body .hm .go:active{transform:scale(.96)!important;background:#5170ff!important}

/* Google-console style header + left drawer */
@keyframes gu-in-l{from{transform:translateX(-100%)}to{transform:none}}
@keyframes gu-out-l{from{transform:none}to{transform:translateX(-100%)}}
@keyframes gu-item-l{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
body .site-header .wrap{justify-content:flex-start;gap:6px}
body .site-header .wrap{padding-left:10px}
body .main-nav{order:0;flex:0 0 auto}
body .site-header .brand{order:1}
body .site-header .user-wrap{order:2;margin-left:auto;margin-right:0}
body .main-nav summary{width:44px;height:44px;border:0!important;background:none!important;box-shadow:none;color:#444b5c;border-radius:50%}
body .main-nav summary:hover{background:rgba(60,70,100,.08)!important}
body .site-header .user-btn,body .site-header .user-btn.pic{width:38px;height:38px;padding:0;border-radius:50%!important;background:#5170ff!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;box-shadow:none}
body .site-header .user-btn.pic{background-size:cover!important;background-position:center!important}
body .site-header .user-btn svg{display:block!important;width:22px;height:22px}
body .site-header .user-btn.pic svg{display:none!important}
body .site-header .user-btn .ub-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .site-header .user-btn:hover,body .site-header .user-wrap:hover .user-btn{background:#4059e8!important;color:#fff!important}
body .site-header .user-btn.pic:hover{filter:brightness(.92)}
body .main-nav .menu[open] .menu-list{left:0!important;right:auto!important;width:min(300px,82vw)!important;border:0!important;box-shadow:8px 0 40px rgba(28,34,48,.22)!important;padding:10px 12px 24px 0!important;animation:gu-in-l .28s cubic-bezier(.22,.8,.3,1) both}
body .main-nav .menu.closing .menu-list{animation:gu-out-l .22s cubic-bezier(.5,0,.8,.4) both}
body .menu[open]:not(.closing) .menu-list>*{animation-name:gu-item-l}
body .menu-list .menu-x{align-self:flex-start;margin:0 0 6px 10px;border:0;background:none;width:44px;height:44px;color:#444b5c}
body .menu-list a{display:flex!important;align-items:center;gap:16px;border-radius:0 999px 999px 0!important;padding:11px 18px 11px 20px!important;font-family:'Inter',system-ui,sans-serif;font-size:15px!important;font-weight:500;color:#2b3142}
body .menu-list a .mi{flex:none;color:#5a6275}
body .menu-list a:hover{background:#f1f3f8}
body .menu-list a[aria-current="page"]{background:#e3eaff!important;color:#2f49d6;font-weight:600}
body .menu-list a[aria-current="page"] .mi{color:#2f49d6}
body .menu-list hr{margin:8px 0;border:0;border-top:1px solid #e3e5ea}
body .menu-list .theme-toggle{margin:6px 0 0 20px}
@media (max-width:600px){body .main-nav .menu[open] .menu-list{width:min(290px,80vw)!important}}
/* Google-style default avatar */
body .site-header .user-btn,body .site-header .user-btn.pic{width:40px;height:40px;overflow:hidden;background:#a8c7fa!important;color:#4a78e0!important}
body .site-header .user-btn.pic{background-size:cover!important;background-position:center!important}
body .site-header .user-btn svg{width:40px;height:40px}
body .site-header .user-btn:hover,body .site-header .user-wrap:hover .user-btn{background:#9bbcf5!important;color:#3f6fe0!important}

/* simple grey/white arcade screen */
body .gm .ar-scr{background:#fff!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--sh-s)!important;padding:8px!important}
body .gm .ar-scr::after{display:none!important}
body .gm .ar-cv{background:#fff!important;border-radius:10px!important}

/* light / dark choice in the menu (dark mode is only ever chosen by the visitor) */
body .menu-list .theme-opts{display:flex;gap:8px;margin:10px 12px 0 20px;padding-top:12px;border-top:1px solid var(--line)}
body .menu-list .theme-opts button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-family:'Inter',system-ui,sans-serif;font-size:14px;font-weight:500;cursor:pointer}
body .menu-list .theme-opts button[aria-pressed="true"]{background:#e3eaff;border-color:#c9d6ff;color:#2f49d6;font-weight:600}

/* weather tile: tap to use exact location */
.hub .hb-wx.tap{cursor:pointer}
.hub .hb-wx em{display:block;font-style:normal;font-size:11px;font-weight:500;color:var(--muted);margin-top:2px}

/* tic tac toe: a clear # grid */
body .gm .ttt{gap:0!important;max-width:330px}
body .gm .ttt button{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;border-right:5px solid #b8bfce!important;border-bottom:5px solid #b8bfce!important}
body .gm .ttt button:nth-child(3n){border-right:0!important}
body .gm .ttt button:nth-child(n+7){border-bottom:0!important}
body .gm .ttt button.X{color:var(--ink)}
body .gm .ttt button.O{color:#5170ff}
body .gm .ttt button.win{background:#e3eaff!important}
@media (hover:hover){body .gm .ttt button:not(.X):not(.O):hover{background:#f1f3f8!important}}

/* games in the site palette: blue, white and soft greys */
body .gm .c4{background:#5170ff!important;border:0!important;border-radius:20px!important;box-shadow:var(--sh-s)}
body .gm .c4 i{background:#eef2f8!important;border:0!important;box-shadow:inset 0 2px 4px rgba(28,34,48,.18)}
body .gm .c4 i.p1,body .gm .c4 i[class*="p"][style]{box-shadow:none}
body .gm .mc{background:#5170ff!important;border:0!important;border-radius:14px!important;box-shadow:var(--sh-s)}
body .gm .mc.up{background:#fff!important;border:1px solid var(--line)!important}
body .gm .mc.done{background:#e3eaff!important;border:1px solid #c9d6ff!important}
body .gm .sl{border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--sh-s)}
body .gm .sl .cells i{background:#fff!important;color:#667085}
body .gm .sl .cells i.d{background:#eef2f8!important}
body .gm .sl svg g{stroke:#aab1c0!important}
body .gm .sl svg path[stroke="#000"]{stroke:#6b7488!important}
body .gm .sl svg path[stroke="#00bf63"]{stroke:#c4cad6!important}
body .gm .sl svg circle[fill="#00bf63"]{fill:#6b7488!important;stroke:#6b7488!important}
body .gm .sl svg circle[fill="#000"]{fill:#fff!important}
body .gm .sl svg .tok{stroke:#fff!important;stroke-width:1.2!important}
body .gm #hm-fig{stroke:#6b7488!important}

/* ---- Calculators ---- */
body .calc-hero{text-align:left}
body .calc-hero h1{margin-bottom:6px}
body .calc{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--sh-s);margin-top:18px}
body .cf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 16px}
body .cf{display:flex;flex-direction:column;gap:6px;min-width:0}
body .cf[hidden]{display:none}
body .cf label{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.01em}
body .cf-wide{grid-column:1/-1}
body .cf .field{width:100%;min-width:0;height:48px;padding:0 14px;font-size:16px;color:var(--ink);box-sizing:border-box}
body .cf textarea.field{height:auto;min-height:96px;padding:12px 14px;line-height:1.5;resize:vertical;font-family:var(--body)}
body .cf input[type=date].field,body .cf input[type=time].field{min-width:0}
body .cf-chk{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:15px;color:var(--ink)}
body .cf-chk input{width:20px;height:20px;accent-color:#5170ff}
body .cm{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
body .cm:first-child{border-top:0;padding-top:0;margin-top:0}
body .cm-h{font-size:18px;margin:0 0 12px;color:var(--ink)}
body .cr{margin-top:18px}
body .cr-hero{background:#eaf0ff;border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
body .cr-k{font-size:13px;font-weight:600;color:#2f49d6;letter-spacing:.02em}
body .cr-v{font-size:clamp(26px,7vw,36px);line-height:1.15;font-weight:700;color:#2f49d6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body .cr-rows{margin:12px 0 0;display:flex;flex-direction:column}
body .cr-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 2px;border-bottom:1px solid var(--line)}
body .cr-row:last-child{border-bottom:0}
body .cr-row dt{color:var(--muted);font-size:15px;min-width:0}
body .cr-row dd{margin:0;font-weight:600;font-size:15px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body .cr-err{margin:0;padding:12px 14px;border-radius:14px;background:#ffe1e2;color:#b00020;font-size:15px}
body .cr .hint,body .calc .hint{margin:12px 0 0;font-size:13.5px;line-height:1.5;color:var(--muted)}
body .cr-tw{overflow-x:auto;margin-top:12px;border:1px solid var(--line);border-radius:16px}
body .cr-t{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
body .cr-t th,body .cr-t td{padding:12px 14px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
body .cr-t th:first-child,body .cr-t td:first-child{text-align:left}
body .cr-t thead th{font-size:12.5px;color:var(--muted);font-weight:600;background:var(--soft)}
body .cr-t tbody th{font-weight:500;color:var(--ink);text-align:left;white-space:normal}
body .cr-t tr:last-child th,body .cr-t tr:last-child td{border-bottom:0}
body .sal #sal-out{margin-top:18px}
body .sal-adj[hidden]{display:none}
body .sal .btns{margin-top:16px}
body .calc .btns{margin-top:16px}
body .calc-about h2{font-size:20px;margin:26px 0 8px}
body .calc-about h2:first-child{margin-top:0}
body .calc-about h3{font-size:16px;margin:18px 0 4px}
body .calc-about p{line-height:1.65;color:var(--ink);margin:0 0 10px}
body .calc-all{margin:14px 0 0;font-weight:600}
body .calc-all a{color:#2f49d6}
body .calc-cat{margin-top:26px}
body .calc-cat h2{font-size:22px;margin:0 0 12px}
/* scientific */
body .sc-screen{position:relative;background:var(--soft);border-radius:18px;padding:14px 16px 12px}
body .sc-in{width:100%;border:0;background:transparent;font:600 22px/1.3 var(--body);color:var(--ink);padding:18px 0 4px;outline:0;text-align:right;box-sizing:border-box;min-width:0}
body .sc-res{text-align:right;font:700 clamp(28px,8vw,40px)/1.15 var(--body);color:#2f49d6;min-height:1.2em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body .sc-res.bad{font-size:15px;color:#b00020;font-weight:600}
body .sc-mode{position:absolute;left:12px;top:12px;border:0;background:#e3eaff;color:#2f49d6;font:700 12px var(--body);padding:5px 10px;border-radius:999px;cursor:pointer}
body .sc-pad{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}
body .sc-k{height:52px;border:0;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:600 18px var(--body);color:var(--ink);cursor:pointer;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .12s}
body .sc-k:active{background:var(--soft)}
body .sc-k.fn{font-size:15px;background:var(--soft);box-shadow:none;color:#394150}
body .sc-k.op{background:#e3eaff;box-shadow:none;color:#2f49d6}
body .sc-k.clr{background:#ffe1e2;box-shadow:none;color:#b00020}
body .sc-k.eq{background:#5170ff;color:#fff;box-shadow:none}
body .sc-k.eq:active{background:#4059e8}
body .sc-hist{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
body .sc-hist:empty{display:none}
body .sc-hist li{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);padding:8px 2px;border-bottom:1px solid var(--line)}
body .sc-hist li b{color:var(--ink);font-weight:600;overflow-wrap:anywhere;text-align:right}
@media (max-width:480px){
 body .calc{padding:16px;border-radius:20px}
 body .cf-grid{grid-template-columns:1fr 1fr}
 body .cf-wide{grid-column:1/-1}
 body .sc-pad{gap:6px}
 body .sc-k{height:50px;font-size:17px;border-radius:12px}
 body .sc-k.fn{font-size:14px}
}
body .cards .tile.ct{width:auto;min-width:48px;padding:0 12px;white-space:nowrap;font-size:15px;letter-spacing:0}
body #sal-uk-out{margin-top:26px}
body #sal-uk-out .cm-h{margin-bottom:4px}
body .calc .cr:empty{margin:0}
body .calc-about{margin-top:34px}
body .calc-hero+.calc-about+.block{margin-top:34px}
body .menu-list .menu-h{margin:12px 14px 4px;padding:0;font:600 11.5px var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
body .menu-list .menu-x+a{margin-top:0}
body .menu-list a.sub{padding-top:5px!important;padding-bottom:5px!important;font-size:14.5px!important;color:var(--muted)}
body .menu-list a.sub:hover{color:var(--ink)}
/* Salary calculator sections */
body .acc-list{margin-top:18px;display:flex;flex-direction:column;gap:10px}
body .acc{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}
body .acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:600;font-size:16px;color:var(--ink);-webkit-tap-highlight-color:transparent}
body .acc summary::-webkit-details-marker{display:none}
body .acc summary span{flex:1;min-width:0}
body .acc summary em{font-style:normal;font-weight:500;font-size:13px;color:var(--muted);text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}
body .acc summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin:-4px 4px 0 2px;transition:transform .18s;flex:none}
body .acc[open] summary::after{transform:rotate(-135deg);margin-top:4px}
body .acc[open] summary{background:var(--soft)}
body .acc-body{padding:16px;border-top:1px solid var(--line)}
body .acc .cf-chk{margin-top:0;align-items:flex-start;font-size:15px;line-height:1.4}
body .sal-chips{display:flex;gap:8px;overflow-x:auto;margin:14px -2px 0;padding:2px;scrollbar-width:none}
body .sal-chips::-webkit-scrollbar{display:none}
body .sal-chips button{flex:none;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 14px var(--body);padding:9px 14px;border-radius:999px;cursor:pointer;touch-action:manipulation}
body .sal-chips button[aria-pressed="true"]{background:#5170ff;border-color:#5170ff;color:#fff}
body .sal-bar{display:flex;height:14px;border-radius:999px;overflow:hidden;margin-top:18px;background:var(--soft)}
body .sal-bar span{display:block;height:100%}
body .sb-take{background:#5170ff}body .sb-tax{background:#2b3142}body .sb-ni{background:#9aa1ae}body .sb-sl{background:#c9d6ff}body .sb-pen{background:#f1e0a8}
body .sal-leg{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
body .sal-leg li{display:flex;align-items:center;gap:6px}
body .sal-leg i{width:10px;height:10px;border-radius:50%;display:block}
body .cr-total{border-top:2px solid var(--line);margin-top:2px}
body .cr-total dt,body .cr-total dd{color:var(--ink);font-weight:700;font-size:16px}
body .sal-h2{margin-top:26px}
@media (max-width:480px){body .acc summary em{max-width:44%}}
/* Connect 4 discs must stay coloured over the hole style */
body .gm .c4 i.p1{background:#e5484d!important;box-shadow:inset 0 -3px 5px rgba(0,0,0,.18)!important}
body .gm .c4 i.p2{background:#ffd23f!important;box-shadow:inset 0 -3px 5px rgba(0,0,0,.14)!important}
body .gm .c4 i.win{box-shadow:0 0 0 3px #fff,inset 0 -3px 5px rgba(0,0,0,.18)!important}
/* calculators: renderer extras */
body .cr-h{font-size:15px;font-weight:700;margin:20px 0 4px;color:var(--ink)}
body .cr-warn{background:#fff4e5;color:#8a4b00;border-radius:12px;padding:10px 14px;margin:12px 0 0;font-size:14px;line-height:1.45}
body .cr-tall{max-height:360px;overflow:auto}
body .cf-check{flex-direction:row;align-items:center}
body .cf-chk{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
body .cf-chk input{width:20px;height:20px;accent-color:#5170ff;flex:none}
body .cf-hint{font-size:12px;color:var(--muted);margin-top:4px}
body .acc summary em.on{background:#eaf0ff;color:#2f49d6}
body .acc[hidden],body .cf[hidden]{display:none!important}
body textarea.field{min-height:110px;resize:vertical;font-family:inherit;line-height:1.5}
body .cr-hero .cr-v.mono,body .cr-hero.mono .cr-v{font-family:ui-monospace,Menlo,Consolas,monospace;word-break:break-all;font-size:22px}
body .cr-v,body .cr-row dd{overflow-wrap:anywhere}
body .hd-col ul+h3{margin-top:30px}
body .calc-about .terms{margin:6px 0 0;display:flex;flex-direction:column;gap:2px}
body .calc-about .terms dt{font-weight:700;color:var(--ink);margin-top:12px}
body .calc-about .terms dd{margin:2px 0 0;color:var(--muted);line-height:1.55}
body textarea.cr-text{margin-top:12px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;width:100%}
/* home: calculator tiles sit straight, Daily journal is a simple pill */
body .hub .hb-card .hb-ic,body .hub .hb-card:nth-child(even) .hb-ic{transform:none!important;rotate:none!important;animation:none!important}
body .hub .hb-ic{min-width:44px;height:44px;padding:0 12px;border-radius:12px}
body .hub .hb-dyhint{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto!important;margin:6px 0 0!important;padding:8px 16px!important;background:#eaf0ff!important;color:#2f49d6!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font:600 15px/1 Inter,system-ui,sans-serif;cursor:pointer}
body .hub .hb-dyhint:hover{background:#dbe5ff!important}
body .hub .hb-dyhint .dh-t{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;transform:none!important;font:600 15px/1 Inter,system-ui,sans-serif!important;color:inherit}
body .hub .hb-dyhint .dh-arrow{display:none!important}
html[data-theme="dark"] body .hub .hb-dyhint{background:#26305c!important;color:#b9c6ff!important}
html[data-theme="dark"] body .hub .hb-dyhint:hover{background:#2f3b72!important}
body .hub .hb-nums{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body .hub .hb-nums li{padding:12px 4px}
body .hub .hb-nums span{font-size:12px}
@media (max-width:330px){body .hub .hb-nums{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* home: calendar and diary in the site's softer style */
body .hub .cal-head button{border:1px solid var(--line)!important;background:#fff!important;box-shadow:var(--sh-s);color:var(--ink)}
body .hub .cal-grid button{border:0!important;border-radius:12px;background:transparent;color:var(--ink);font-weight:600}
body .hub .cal-grid button.on{background:#eaf0ff!important;color:#2f49d6!important;font-weight:700}
body .hub .cal-grid button.today,body .hub .cal-grid span.today{border:1.5px solid #5170ff!important;box-shadow:none!important;animation:none!important;background:transparent}
body .hub .cal-grid button.on.today,body .hub .cal-grid span.on.today{background:#5170ff!important;color:#fff!important;border:0!important}
body .hub .cal-grid button.sel{outline:2px solid #5170ff!important;outline-offset:1px;background:#eaf0ff!important;color:#2f49d6!important}
body .hub .cal-grid button.note::after{border:0!important;background:#5170ff!important;width:6px;height:6px}
body .hub .hb-diary{background:#fff!important;border:1px solid var(--line)!important;border-radius:16px;box-shadow:none}
body .hub .hb-diary textarea{border:1px solid var(--line)!important;background:#fff!important;color:var(--ink)!important;font-weight:500;border-radius:12px}
body .hub .hb-diary textarea:focus{outline:2px solid #5170ff;outline-offset:0;border-color:#5170ff!important}
body .hub .dy-clear{border:1px solid var(--line)!important;background:#fff!important;color:var(--ink)!important;font-weight:600}
body .hub .dy-r button{border:0!important;background:var(--soft)!important;color:var(--ink)!important;border-radius:12px}
body .hub .hb-go a{background:#eaf0ff!important;color:#2f49d6!important;border:0!important;font-weight:600}
/* footer spacing */
body .hb-dir .hd-col ul+h3{margin-top:34px!important}
body .site-footer{margin-top:28px}
body .site-footer .wrap>.hb-dir{padding-top:24px;margin-bottom:28px}
body main{padding-bottom:24px}
body .site-footer .wrap>.hb-dir{padding-top:8px}
/* footer: socials on their own row under the logo */
body .site-footer .wrap{row-gap:14px}
body .site-footer .wrap>.foot-brand{order:1;flex:1 1 100%;justify-content:flex-start}
body .site-footer .wrap>.socials{order:2;flex:1 1 100%;justify-content:flex-start;gap:12px;margin:0 0 6px}
body .site-footer .wrap>.foot-secure{order:3;margin:6px 0 0}
body .site-footer .wrap>.foot-legal{order:4;margin:0}
body .site-footer .wrap>.hb-dir{order:0}
body .site-footer .foot-brand{align-items:baseline;gap:8px}body .site-footer .foot-c{font-size:17px}
body .site-footer .foot-c{font-size:19px;font-weight:400;color:var(--muted)}
body .site-footer .foot-secure,body .site-footer .foot-legal{font-size:14px;line-height:1.5}
@media(max-width:600px){body .site-footer .foot-c{font-size:21px}}
/* calculator line icons */
body .cards .tile.ct{display:grid;place-items:center;width:48px;min-width:48px;height:48px;padding:0}
body .tile.ct svg.ic,body .hub .hb-ic svg.ic{color:#5170ff;display:block}
body .hub .hb-ic{display:grid;place-items:center;width:44px;min-width:44px;padding:0}
