/* GrowtopiaTools Home V1.62 — consistent site bubbles and responsive dashboard. */
.h162-home-nav{padding:5px 0 11px;margin-bottom:8px;border-bottom:1px solid rgba(147,191,236,.12)}
.h162-nav-item .nav-img img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.h162-root,.h162-admin{color:#e8f5ff;max-width:1560px;margin:0 auto;min-width:0}
.h162-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:0 0 20px}
.h162-header h1{font-size:clamp(28px,3.5vw,40px);margin:3px 0 5px;line-height:1.15;font-weight:900;letter-spacing:-.04em}
.h162-header p{margin:0;color:#9eb9d6;font-size:13px}.h162-accent{color:#83d9ff}
.h162-eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:#98c7ec}
.h162-card,.h162-hero,.h162-admin-group{position:relative;min-width:0;border:1px solid rgba(162,216,255,.29);border-radius:20px;background:linear-gradient(140deg,rgba(123,185,242,.17),rgba(17,43,82,.72) 30%,rgba(10,28,57,.82));box-shadow:inset 0 1px rgba(255,255,255,.22),0 15px 36px rgba(0,12,36,.22);backdrop-filter:blur(17px) saturate(125%);-webkit-backdrop-filter:blur(17px) saturate(125%);overflow:hidden}
.h162-card{padding:21px;min-height:160px}.h162-card::before{content:'';position:absolute;left:12px;right:12px;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(236,249,255,.28),transparent);pointer-events:none}
.h162-card h2{font-size:clamp(18px,1.6vw,23px);margin:6px 0 14px;letter-spacing:-.025em}.h162-card p{line-height:1.55;font-size:13px}.h162-muted,.h162-card small,.h162-footnote{color:#a2bad6!important;font-size:12px!important}.h162-footnote{margin:14px 0 0}.h162-card strong{color:#eff9ff}
.h162-hero{min-height:280px;display:flex;flex-direction:column;justify-content:flex-end;margin:0 0 16px;background:radial-gradient(circle at 22% 0%,rgba(80,168,234,.32),transparent 60%),linear-gradient(125deg,rgba(16,42,82,.95),rgba(8,20,47,.96));}
.h162-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto}.h162-hero-overlay{position:relative;z-index:1;padding:34px;background:linear-gradient(0deg,rgba(3,15,36,.94),rgba(7,19,41,.46) 68%,transparent);max-width:100%}
.h162-hero h1{font-size:clamp(27px,4.8vw,54px);line-height:1.08;margin:13px 0 11px;letter-spacing:-.04em}.h162-hero p{max-width:690px;line-height:1.6;color:#e1eeff;font-size:15px;margin:0}.h162-pill{display:inline-flex;padding:8px 13px;border-radius:100px;border:1px solid rgba(198,235,255,.42);background:rgba(55,118,176,.37);color:#e1f5ff;font-size:10px;letter-spacing:.14em;font-weight:900;backdrop-filter:blur(12px)}
.h162-primary{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,.75fr) minmax(0,1fr);gap:14px;margin-bottom:14px}
.h162-primary:has(.h162-wotd + .h162-status:last-child){grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr)}
.h162-wotd{grid-column:auto}.h162-world-photo{height:160px;border-radius:13px;overflow:hidden;border:1px solid rgba(183,228,255,.19);background:rgba(6,24,44,.5);display:grid;place-items:center}
.h162-world-photo img{width:100%;height:100%;object-fit:cover;object-position:center 40%;image-rendering:pixelated}.h162-world-photo.h162-no-image::after{content:'Render currently unavailable';color:#a4bfd8;font-size:12px}
.h162-world-foot{display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding-top:13px}.h162-world-foot strong{font-size:19px}.h162-world-foot small{margin-left:auto}
.h162-link{border:0;background:none;color:#9edcff;font-size:12px;font-weight:800;padding:4px 0;cursor:pointer;text-decoration:none;display:inline-flex;gap:7px;align-items:center;white-space:nowrap}
.h162-link:hover{color:#e3f9ff;text-shadow:0 0 9px rgba(104,192,243,.35)}.h162-server{display:flex;align-items:center;gap:11px;font-size:20px;margin:26px 0 14px}.h162-status-dot{width:13px;height:13px;background:#9eafbf;border-radius:50%;box-shadow:0 0 0 5px rgba(167,199,225,.09)}.h162-online .h162-status-dot{background:#59dfc5;box-shadow:0 0 0 5px rgba(89,223,197,.1),0 0 11px rgba(89,223,197,.5)}
.h162-challenge-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0 0 14px}.h162-last{display:grid;gap:12px}.h162-event-line{display:flex;gap:13px;align-items:center;min-width:0}.h162-event-line>img{width:46px;height:46px;object-fit:contain;image-rendering:pixelated;flex:none}.h162-event-line>div{display:flex;flex-direction:column;gap:5px;min-width:0}.h162-event-line strong{font-size:15px}.h162-event-line small{display:block}.h162-winner{display:grid;grid-template-columns:125px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 12px;border:1px solid rgba(143,200,245,.19);background:rgba(73,119,175,.11);border-radius:11px;min-width:0}.h162-winner span{font-size:11px;color:#a5c3de}.h162-winner strong{font-size:13px;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.h162-winner b{font-variant-numeric:tabular-nums;color:#c7e4fb;font-size:13px}
.h162-next-bubbles,.h162-quick{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}.h162-float-bubble{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;width:98px;min-height:102px;padding:12px 8px;border-radius:18px;border:1px solid rgba(171,226,255,.30);color:#d5ecff;background:linear-gradient(145deg,rgba(136,204,249,.19),rgba(21,58,103,.35) 60%,rgba(9,33,67,.47));box-shadow:inset 0 1px rgba(244,253,255,.26),0 10px 24px rgba(0,11,34,.2);cursor:pointer;backdrop-filter:blur(14px);transition:transform .2s,border-color .2s,box-shadow .2s,background .2s;text-align:center;font-weight:780;font-size:11px;line-height:1.3}
.h162-float-bubble img{width:38px;height:38px;image-rendering:pixelated;object-fit:contain;transition:transform .22s}.h162-float-bubble:hover,.h162-float-bubble:focus-visible{transform:translateY(-4px) scale(1.025);border-color:rgba(202,236,255,.7);box-shadow:inset 0 1px rgba(255,255,255,.35),0 15px 30px rgba(15,88,155,.19)}.h162-float-bubble:hover img{transform:translateY(-2px)}.h162-float-bubble small{font-size:10px;color:#8cb2d8}.h162-next-bubbles .h162-float-bubble{width:90px;min-height:94px}
.h162-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.h162-bottom .h162-quick-card{grid-column:span 2}.h162-quick-card .h162-quick{gap:12px}.h162-quick .h162-float-bubble{width:calc(25% - 9px);max-width:170px;min-height:110px}
.h162-market-row{display:flex;align-items:center;gap:12px;padding:10px 3px;border-bottom:1px solid rgba(151,201,242,.15)}.h162-market-row>img,.h162-market-row>.h162-info-icon{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.h162-market-row div{display:flex;flex-direction:column;gap:4px}.h162-market-row b{font-size:12px}.h162-info-icon{display:grid;place-items:center;background:rgba(94,152,208,.2);border-radius:12px;color:#b4dfff}
.h162-countdown{display:block;font-size:clamp(22px,2.8vw,33px);font-variant-numeric:tabular-nums;color:#bcecff!important;margin:13px 0}
.h162-admin{max-width:1020px}.h162-admin-form{display:grid;gap:14px}.h162-admin-group{padding:0;overflow:hidden}.h162-admin-group summary{cursor:pointer;padding:18px 21px;font-size:16px;font-weight:850;display:flex;align-items:center;gap:14px;justify-content:space-between}.h162-admin-group summary small{color:#a4c2dc;font-size:11px;font-weight:500}.h162-admin-fields{padding:5px 21px 23px;display:grid;gap:13px}.h162-field{display:grid;gap:6px;font-weight:750;color:#c6def3;font-size:12px}.h162-field input,.h162-field textarea{width:100%;max-width:100%;box-sizing:border-box}.h162-switch{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid rgba(158,211,255,.16);border-radius:11px;background:rgba(98,147,207,.1);font-size:13px}.h162-switch input{width:18px;height:18px;accent-color:#68cfff}.h162-admin-banner{width:min(460px,100%);max-height:210px;object-fit:contain;border-radius:12px}.h162-admin-fields>small{color:#96b6d5}.h162-admin-actions{display:flex;gap:17px;align-items:center;flex-wrap:wrap;margin:8px 0 15px}.h162-admin-actions #h162-admin-feedback{color:#a4d8f9;font-weight:750}
body[data-ui-style="more-glass"] .h162-card,body[data-ui-style="more-glass"] .h162-admin-group{background:radial-gradient(ellipse at 18% 0%,rgba(211,246,255,.18),transparent 45%),linear-gradient(145deg,rgba(162,211,254,.26),rgba(55,116,185,.24) 24%,rgba(9,31,66,.78) 88%);border-color:rgba(207,239,255,.50);box-shadow:inset 0 1px rgba(255,255,255,.37),inset 0 -1px rgba(40,102,175,.22),0 17px 41px rgba(0,10,31,.31),0 0 22px rgba(73,151,220,.08);backdrop-filter:blur(27px) saturate(170%)}
body[data-ui-style="simple"] .h162-card,body[data-ui-style="simple"] .h162-hero,body[data-ui-style="simple"] .h162-admin-group,body[data-ui-style="simple"] .h162-float-bubble,body[data-ui-style="simple"] .h162-winner{background:#172333!important;border:1px solid #34465b!important;box-shadow:none!important;backdrop-filter:none!important;border-radius:11px!important}
body[data-ui-style="simple"] .h162-float-bubble:hover{transform:none!important;background:#25394e!important;box-shadow:none!important}body[data-ui-style="simple"] .h162-card::before{display:none}body[data-ui-style="simple"] .h162-hero-overlay{background:linear-gradient(0deg,rgba(10,23,37,.96),rgba(10,23,37,.62))}
@media(max-width:1160px){.h162-primary{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.h162-primary .h162-votw{grid-column:span 2}.h162-primary:has(.h162-wotd+.h162-status:last-child){grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.h162-quick .h162-float-bubble{max-width:none}}
@media(max-width:800px){.h162-header{align-items:flex-start;flex-wrap:wrap}.h162-primary,.h162-primary:has(.h162-wotd+.h162-status:last-child),.h162-challenge-row,.h162-bottom{grid-template-columns:1fr}.h162-primary .h162-votw,.h162-bottom .h162-quick-card{grid-column:auto}.h162-card{padding:17px}.h162-world-photo{height:190px}.h162-hero{min-height:230px}.h162-hero-overlay{padding:22px}.h162-quick .h162-float-bubble{width:calc(50% - 6px)}.h162-admin-group summary{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:480px){.h162-root{padding:0 2px}.h162-float-bubble{width:calc(50% - 5px);min-height:93px}.h162-next-bubbles .h162-float-bubble{width:calc(50% - 5px)}.h162-quick{gap:8px}.h162-quick .h162-float-bubble{width:calc(50% - 4px)}.h162-winner{grid-template-columns:87px minmax(0,1fr) auto;padding:9px 7px;gap:5px}.h162-world-foot small{margin-left:0}.h162-hero h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){.h162-float-bubble,.h162-float-bubble img{transition:none!important}}
/* Phone layout: the legacy toolbar must not overlap its own navigation row. */
@media(max-width:650px){
 html,body{max-width:100%;overflow-x:clip}
 .ambient{overflow:hidden!important;max-width:100vw!important;pointer-events:none}
 .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 10px!important;align-items:center!important;height:auto!important;min-height:0!important;padding:10px 12px!important}
 .topbar .crumb{grid-column:1!important;grid-row:1!important;min-width:0}
 .topbar #search-trigger{grid-column:2!important;grid-row:1!important;justify-self:end!important;margin:0!important;position:relative!important;inset:auto!important}
 .topbar .top-actions{grid-column:1/-1!important;grid-row:2!important;position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;display:flex!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;align-items:center!important}
 .topbar .top-actions :is(.v84-top-btn,.mode-switch,.v47-admin-toggle){min-height:33px!important;font-size:10px!important;padding:7px 9px!important}
 .topbar .v84-preferences{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
 .topbar #v158-time-button{min-width:auto!important}
 .topbar .gt-version-top{font-size:10px!important;padding:7px 9px!important}
 .h162-admin,.h162-root{max-width:100%;min-width:0}
}
@media(max-width:650px){
 .topbar{max-height:none!important;min-height:132px!important;height:auto!important;overflow:visible!important;align-content:start!important}
 .topbar .top-actions{align-content:start!important;justify-content:flex-start!important}
 .h162-quick-card .h162-quick{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .h162-quick-card .h162-float-bubble{display:flex!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important}
}
@media(max-width:650px){
 /* Legacy v5-production gave the admin switch a 38px width but left readable
    text outside the box. Show a real compact gear with an accessible label. */
 .topbar #mode-switch{width:38px!important;max-width:38px!important;min-width:38px!important;flex:0 0 38px!important;padding:5px!important;font-size:0!important;white-space:nowrap!important;overflow:hidden!important;text-indent:0!important}
 .topbar #mode-switch::before{content:'⚙'!important;display:block!important;font-size:17px!important;line-height:20px!important;text-align:center!important}
}
.h162-major-icon img{width:37px;height:37px;object-fit:contain;image-rendering:pixelated}

/* Home headline uses the same type metrics as Daily Challenges .page-head h1.
   Higher specificity keeps late legacy Home rules from re-bolding the title. */
body[data-theme="glass"] #content .h162-root .h162-header .gtt-home-heading-copy h1{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:36px;
  line-height:1.15;
  font-weight:775;
  letter-spacing:-1.3px;
  color:#edf7ff;
}
@media(max-width:600px){
  body[data-theme="glass"] #content .h162-root .h162-header .gtt-home-heading-copy h1{
    font-size:29px;
  }
}
