/* Homepage-only: one 44px Growtopia icon bubble vocabulary, readable
   server chart, balanced Daily Challenge choices. */
body[data-current-view="home"] #content .h162-home-heading{
 display:flex;align-items:center;gap:11px;min-width:0;margin:0 0 13px
}
body[data-current-view="home"] #content .h162-home-heading h2{
 display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;
 flex:1 1 auto;min-width:0;margin:0!important;line-height:1.22!important;
 font-size:clamp(19px,1.7vw,24px)!important;color:#eaf6ff
}
body[data-current-view="home"] #content :is(.h162-heading-icon,.h245-server-icon,.h193-icon-orb){
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 flex:0 0 44px!important;width:44px!important;height:44px!important;
 min-width:44px!important;min-height:44px!important;
 max-width:44px!important;max-height:44px!important;border-radius:12px!important;
 overflow:hidden!important;border:1px solid rgba(164,215,249,.37)!important;
 background:radial-gradient(circle at 25% 0%,rgba(205,240,255,.19),transparent 50%),linear-gradient(145deg,rgba(95,155,220,.25),rgba(27,65,114,.30))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.17),0 4px 13px rgba(4,18,48,.16)!important
}
body[data-current-view="home"] #content :is(.h162-heading-icon,.h245-server-icon,.h193-icon-orb) img{
 box-sizing:border-box!important;width:34px!important;height:34px!important;
 max-width:34px!important;max-height:34px!important;
 object-fit:contain!important;image-rendering:pixelated!important;
 margin:0!important;transform:none!important;filter:none!important
}
body[data-current-view="home"] #content .h162-votw .h162-heading-icon img{
 width:25px!important;max-width:25px!important;height:36px!important;max-height:36px!important
}
body[data-current-view="home"] #content .h162-home-heading :is(.h162-wotd-name,.h162-heading-detail){
 display:inline;min-width:0;max-width:100%;font-size:clamp(12px,1.05vw,15px)!important;
 font-weight:750;line-height:1.25;letter-spacing:0;color:#9bdaf8;
 border-left:1px solid rgba(144,199,235,.4);padding-left:10px;
 overflow-wrap:anywhere
}
body[data-current-view="home"] #content .h162-home-heading .h162-heading-detail{
 font-size:12px!important;color:#b1cadc!important;font-weight:650!important
}
/* Server overview: one count card, not a second "live check" box. */
body[data-current-view="home"] #content .h162-status .h245-server-top{
 flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;
 margin-bottom:12px!important
}
body[data-current-view="home"] #content .h162-status .h245-server-identity{
 min-width:0!important;gap:10px!important;flex:1 1 auto!important
}
body[data-current-view="home"] #content .h162-status .h245-server-heading{
 min-width:0!important;gap:0!important
}
body[data-current-view="home"] #content .h162-status .h245-server-heading h2{
 font-size:clamp(17px,1.45vw,21px)!important;line-height:1.2!important;margin:0!important
}
body[data-current-view="home"] #content .h162-status .h245-server-summary{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 gap:0!important;margin:0 0 12px!important
}
body[data-current-view="home"] #content .h162-status .h245-server-primary{
 display:flex!important;width:100%!important;min-height:83px!important;
 padding:11px 14px!important;align-items:center!important;gap:10px!important
}
body[data-current-view="home"] #content .h162-status .h245-stat-icon{display:none!important}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(120px,.85fr);
 grid-template-rows:auto auto;align-items:center;gap:2px 8px;
 width:100%;min-width:0
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text>small{
 grid-column:1;grid-row:1;font-size:10px!important
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text>.h245-server-number{
 grid-column:1;grid-row:2;font-size:clamp(28px,2.65vw,38px)!important;line-height:1.08!important
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text>span{
 grid-column:2;grid-row:1/span 2;text-align:right!important;
 font-size:10px!important;line-height:1.42!important;color:#accce4!important
}
/* Use the plot's full SVG height and make the two period extrema larger. */
body[data-current-view="home"] #content .h162-status .h245-server-history.h165-server-history{
 display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important
}
body[data-current-view="home"] #content .h162-status .h245-chart-shell{
 flex:1 1 auto!important;height:auto!important;max-height:none!important;min-height:125px!important
}
body[data-current-view="home"] #content .h162-status .h245-server-chart-meta{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 margin:8px 0 0!important;gap:10px!important;flex:0 0 auto!important
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat{
 min-height:58px!important;min-width:0;padding:9px 13px!important;gap:5px!important;
 border-radius:10px!important
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat span{
 font-size:11px!important;letter-spacing:.055em
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat strong{
 font-size:clamp(18px,1.65vw,23px)!important;line-height:1.15!important
}
/* Matching-height DC cards; keep leaderboard readable but a little tighter. */
body[data-current-view="home"] #content .h162-challenge-row{align-items:stretch!important}
body[data-current-view="home"] #content .h162-challenge-row>.h162-card{
 box-sizing:border-box!important;padding:18px 20px!important;
 min-width:0!important;align-self:stretch!important
}
body[data-current-view="home"] #content .h162-last{gap:9px!important}
body[data-current-view="home"] #content .h163-rank-columns{gap:12px!important}
body[data-current-view="home"] #content .h163-rank-group{padding:10px!important}
body[data-current-view="home"] #content .h163-rank-group h3{margin:0 0 5px!important;font-size:13px!important}
body[data-current-view="home"] #content .h163-score-row{
 min-height:32px!important;padding:2px 5px!important;margin:2px 0!important
}
body[data-current-view="home"] #content .h163-rank-mark img{width:23px!important;height:25px!important}
body[data-current-view="home"] #content .h162-next-card{
 display:flex!important;flex-direction:column!important;min-height:0!important
}
body[data-current-view="home"] #content .h162-next-card>p.h162-muted{
 margin:3px 0 8px!important;font-size:12px!important
}
body[data-current-view="home"] #content .h162-next-bubbles{
 display:flex!important;justify-content:center!important;align-content:center!important;
 align-items:center!important;flex:1 1 auto!important;flex-wrap:wrap!important;
 gap:11px!important;min-width:0!important;margin:6px 0!important;padding:8px!important
}
body[data-current-view="home"] #content .h162-next-bubbles>.h162-float-bubble{
 box-sizing:border-box!important;flex:0 1 118px!important;width:118px!important;
 min-width:0!important;max-width:118px!important;
 height:112px!important;min-height:112px!important;
 padding:10px!important;gap:6px!important;border-radius:16px!important;
 font-size:11px!important;animation:none!important
}
body[data-current-view="home"] #content .h162-next-bubbles>.h162-float-bubble img{
 width:42px!important;height:42px!important;object-fit:contain!important
}
body[data-current-view="home"] #content .h162-next-bubbles>.h162-float-bubble>span{
 max-width:100%!important;line-height:1.2!important;overflow-wrap:anywhere
}
/* Smaller event/arcade sections share the same header icon vocabulary. */
body[data-current-view="home"] #content .h242-event-heading{
 display:flex!important;align-items:center!important;gap:8px!important
}
body[data-current-view="home"] #content .h242-event-heading>.h162-home-heading{
 margin:0!important;flex:1 1 auto!important;min-width:0
}
body[data-current-view="home"] #content .h242-event-heading h2{min-width:0;margin:0!important}
body[data-current-view="home"] #content .h241-arcade-heading{align-items:flex-start!important}
body[data-current-view="home"] #content .h241-arcade-heading .h162-home-heading{
 margin:0 0 8px!important
}
@media(max-width:580px){
 body[data-current-view="home"] #content .h162-home-heading{gap:8px!important}
 body[data-current-view="home"] #content :is(.h162-heading-icon,.h245-server-icon,.h193-icon-orb){
  width:40px!important;height:40px!important;min-width:40px!important;
  min-height:40px!important;max-width:40px!important;
  max-height:40px!important;flex-basis:40px!important
 }
 body[data-current-view="home"] #content .h162-status .h245-server-primary-text{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto
 }
 body[data-current-view="home"] #content .h162-status .h245-server-primary-text>span{
  grid-column:1!important;grid-row:3!important;text-align:left!important
 }
 body[data-current-view="home"] #content .h162-status .h245-server-chart-meta{gap:6px!important}
 body[data-current-view="home"] #content .h162-challenge-row>.h162-card{padding:16px!important}
 body[data-current-view="home"] #content .h162-next-bubbles>.h162-float-bubble{
  width:105px!important;max-width:105px!important;flex-basis:105px!important
 }
}
/* Event titles remain left-aligned and on a SINGLE line. The older layout
   reserved 66px for an absent edit control and allowed the heading to wrap,
   forcing "Thanksgiving Week" onto two rows in the three-card Home grid. */
body[data-current-view="home"] #content .h162-root .h242-event-heading {
 padding-right:0!important;
 text-align:left!important;
 min-width:0!important;
}
body[data-current-view="home"] #content .h162-root .h242-event-heading .h162-home-heading {
 display:flex!important;
 align-items:center!important;
 justify-content:flex-start!important;
 flex-wrap:nowrap!important;
 min-width:0!important;
 gap:10px!important;
}
body[data-current-view="home"] #content .h162-root .h242-event-heading h2 {
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:center!important;
 flex-wrap:nowrap!important;
 flex:1 1 auto!important;
 min-width:0!important;
 width:100%!important;
 gap:3px!important;
 line-height:1.15!important;
 text-align:left!important;
}
body[data-current-view="home"] #content .h162-root .h242-event-heading .h249-event-name {
 display:block!important;
 box-sizing:border-box;
 min-width:0!important;
 max-width:100%!important;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap!important;
 overflow-wrap:normal!important;
 font-size:clamp(15px,1.5vw,21px)!important;
 line-height:1.16!important;
 font-weight:850!important;
 letter-spacing:-.035em;
}
body[data-current-view="home"] #content .h162-root .h242-event-heading .h162-heading-detail {
 display:block!important;
 min-width:0!important;
 max-width:100%!important;
 white-space:nowrap!important;
 padding:0!important;
 margin:0!important;
 border:0!important;
 text-align:left!important;
 font-size:clamp(10px,.82vw,12px)!important;
 line-height:1.3!important;
}
@media(max-width:420px){
 body[data-current-view="home"] #content .h162-root .h242-event-heading .h249-event-name {
  font-size:clamp(14px,4.3vw,18px)!important;
 }
}


/* After the final owner-scheduled monthly event, replace the unknown-date
   question-mark layout with a finished state. Keep the same event shell,
   icon bubble, footer link and responsive card height as upcoming events. */
body[data-current-view="home"] #content .h162-root .h242-monthly-complete .h242-monthly-complete-media {
 display:grid!important;
 grid-template-columns:minmax(86px,.45fr) minmax(0,1fr)!important;
 align-items:stretch!important;
 justify-content:stretch!important;
 gap:0!important;
 border-color:rgba(168,216,243,.29)!important;
 background:linear-gradient(110deg,rgba(34,91,127,.60),rgba(15,43,78,.78))!important;
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete-symbol{
 display:flex;align-items:center;justify-content:center;
 min-width:0;height:100%;
 font-size:clamp(55px,5.6vw,80px);
 line-height:1;font-weight:850;color:#b6e9d9;
 text-shadow:0 4px 18px rgba(48,166,146,.18);
 background:radial-gradient(circle at center,rgba(124,221,196,.16),transparent 65%);
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 min-width:0;gap:6px;padding:12px 16px;
 border-left:1px solid rgba(161,222,255,.20);
 background:linear-gradient(90deg,rgba(25,66,101,.20),rgba(13,35,68,.17));
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary>span{
 font-size:10px;letter-spacing:.085em;font-weight:820;
 line-height:1.25;color:#accce3;
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary>strong{
 color:#ebfbff;font-weight:850;letter-spacing:-.03em;
 line-height:1.12;font-size:clamp(19px,2.1vw,27px);
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary>small{
 color:#b4cde1;line-height:1.35;font-size:11px;
}
body[data-current-view="home"] #content .h162-root .h242-monthly-complete .h242-countdown{
 white-space:normal!important;
}
@media(max-width:580px){
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete .h242-monthly-complete-media{
  grid-template-columns:minmax(82px,.43fr) minmax(0,1fr)!important;
 }
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary{padding:9px 12px}
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary>strong{font-size:20px}
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete-symbol{font-size:60px}
}
@media(max-width:360px){
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete .h242-monthly-complete-media{
  grid-template-columns:75px minmax(0,1fr)!important;
 }
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary{padding:7px 10px}
 body[data-current-view="home"] #content .h162-root .h242-monthly-complete-summary>strong{font-size:18px}
}


/* An unannounced or temporarily unavailable monthly calendar is not an
   imaginary event with a date '?'. Reuse the finished-month card surface. */
body[data-current-view="home"] #content .h162-root .h242-monthly-idle .h242-monthly-complete-symbol img{
 width:min(68px,65%);height:auto;max-height:82px;object-fit:contain;
 image-rendering:pixelated;filter:drop-shadow(0 5px 13px rgba(9,20,39,.25));
}
body[data-current-view="home"] #content .h162-root .h242-monthly-idle .h242-monthly-complete-summary>strong{
 font-size:clamp(16px,1.65vw,22px);line-height:1.28;
}
body[data-current-view="home"] #content .h162-root .h242-monthly-idle .h242-monthly-complete-media{
 background:linear-gradient(115deg,rgba(28,72,115,.52),rgba(14,41,76,.72))!important;
}
@media(max-width:475px){
 body[data-current-view="home"] #content .h162-root .h242-monthly-idle .h242-monthly-complete-summary>strong{
  font-size:17px;overflow-wrap:anywhere;
 }
 body[data-current-view="home"] #content .h162-root .h242-monthly-idle .h242-monthly-complete-symbol img{
  width:56px;max-height:67px;
 }
}

/* Keep the official world title on screen immediately; place the Wiki builder
   credit beside it only after the independent source has that GrowID. */
body[data-current-view="home"] #content .h162-wotd .h252-wotd-growid{
 display:inline-flex;align-items:center;gap:4px;vertical-align:baseline;
 margin-left:9px;font-size:12px;font-weight:600;color:#a8bbd0;white-space:normal
}
body[data-current-view="home"] #content .h162-wotd .h252-wotd-growid button{
 appearance:none;border:0;background:none;padding:0;cursor:pointer;
 color:#a4dcff;font:inherit;font-weight:750;text-decoration:underline;
 text-decoration-color:rgba(164,220,255,.4);text-underline-offset:3px
}
body[data-current-view="home"] #content .h162-wotd .h252-wotd-growid button:hover{
 color:#fff;text-decoration-color:#fff
}

/* Current winner and creator remain in the VOTW heading. The real video
   name lives above the thumbnail and never disappears: long titles are
   initially clamped to two lines and can be expanded by keyboard/tap. */
body[data-current-view="home"] #content .h162-votw .h252-votw-title{
 display:block;min-width:0;max-width:100%;margin:0 0 9px;
 color:#cbe8ff;font-size:12px;line-height:1.38;font-weight:700;
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title summary{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 overflow:hidden;overflow-wrap:anywhere;white-space:normal;
 list-style:none;cursor:pointer;min-width:0;max-width:100%;
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title summary::-webkit-details-marker{
 display:none;
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title summary::after{
 content:"  ▾";color:#8bd7ff;
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title[open] summary{
 display:block;-webkit-line-clamp:unset;overflow:visible;
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title[open] summary::after{
 content:"  ▴";
}
body[data-current-view="home"] #content .h162-votw .h252-votw-title summary:focus-visible{
 outline:2px solid #b8ecff;outline-offset:3px;border-radius:4px;
}
/* Game-sourced Personal/Guild symbols in the compact Last DC leaderboards. */
body[data-current-view="home"] #content .h163-rank-group > h3.h252-rank-title{
 display:flex!important;align-items:center!important;gap:7px!important;
 min-height:21px!important;line-height:1.25!important;
}
body[data-current-view="home"] #content .h163-rank-group .h252-rank-icon{
 display:block;flex:none;width:20px;height:20px;
 max-width:20px;max-height:20px;object-fit:contain;image-rendering:pixelated;
}
