/* GrowtopiaTools V84 — incremental refinement to the V5 site; no generated artwork. */
:root { --v84-sky: #add3ff; --v84-rule: rgba(168,208,255,.24); }
body[data-theme="glass"] .v84-version{color:#9ac3f0;font-size:10px;letter-spacing:.2px;display:block;margin-top:8px;}
body[data-theme="glass"] .v84-top-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:7px 11px;border:1px solid rgba(182,219,255,.32);border-radius:10px;background:linear-gradient(160deg,rgba(116,169,235,.17),rgba(26,53,93,.34));color:#dfefff;white-space:nowrap;cursor:pointer;font:700 11px inherit;box-shadow:inset 0 1px rgba(255,255,255,.13);}
body[data-theme="glass"] .v84-top-btn:hover{border-color:rgba(211,236,255,.74);background:rgba(129,189,255,.27);}
body[data-theme="glass"] .v84-top-btn span:not(.v84-new-dot){color:#9ed1ff;font-size:10px;}
body[data-theme="glass"] .v84-new-dot{position:absolute;right:4px;top:4px;width:5px;height:5px;background:#9ecbff;border-radius:50%;box-shadow:0 0 7px #8ac0ff;}
body[data-theme="glass"] .v84-preferences{display:flex;gap:5px;align-items:center;}
body[data-theme="glass"] #v84-updates{margin-right:2px;}
@media(max-width:1250px){body[data-theme="glass"] .v84-top-btn{padding:7px 8px;font-size:10px}}
@media(max-width:950px){body[data-theme="glass"] .v84-preferences{flex-wrap:wrap;justify-content:flex-end}}
/* Search — original flat ribbon flag, not the tiny stretched icon. */
body[data-theme="glass"] #modal-root .v84-search-player{position:relative;isolation:isolate;overflow:hidden;min-height:67px;padding:11px 13px;gap:12px;border-color:rgba(160,208,255,.30);background:linear-gradient(107deg,rgba(117,165,221,.19),rgba(19,42,78,.68));border-radius:12px;}
body[data-theme="glass"] #modal-root .v84-search-player::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:var(--v84-flag) left center/auto 170% no-repeat;opacity:.48;mask-image:linear-gradient(to right,#000 0%,#000 13%,rgba(0,0,0,.60) 36%,transparent 79%);}
body[data-theme="glass"] #modal-root .v84-search-player::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,rgba(13,31,61,.10),rgba(14,33,66,.18) 39%,rgba(10,24,49,.58) 95%);}
body[data-theme="glass"] #modal-root .v84-search-player>*{position:relative;z-index:1;}
body[data-theme="glass"] #modal-root .v84-search-player>img{flex:none;width:35px;height:35px;object-fit:contain;image-rendering:pixelated;}
body[data-theme="glass"] #modal-root .v84-search-player .v73-search-name{font-weight:850;color:#f0f7ff;font-size:14px;min-width:55px;flex:1 1 auto;}
body[data-theme="glass"] #modal-root .v84-search-kind{font-size:10px;min-width:52px;flex:0 0 auto;text-align:right;color:#b5cee9;font-weight:730;}
body[data-theme="glass"] #modal-root .v84-search-stats{display:flex;justify-content:flex-end;gap:5px;flex:0 0 auto;}
body[data-theme="glass"] #modal-root .v84-search-stats>span{display:flex;align-items:center;gap:4px;min-width:52px;padding:5px 7px;border-radius:9px;background:linear-gradient(140deg,rgba(151,206,255,.19),rgba(42,77,123,.39));border:1px solid rgba(165,215,255,.28);box-shadow:inset 0 1px rgba(255,255,255,.10);}
body[data-theme="glass"] #modal-root .v84-search-stats img{height:24px;width:23px;image-rendering:pixelated;object-fit:contain;}
body[data-theme="glass"] #modal-root .v84-search-stats b{font-size:12px;color:#fff;}
@media(max-width:640px){body[data-theme="glass"] #modal-root .v84-search-player{gap:6px;padding:9px 8px;min-height:61px}body[data-theme="glass"] #modal-root .v84-search-stats>span{padding:3px 4px;gap:1px;min-width:36px}body[data-theme="glass"] #modal-root .v84-search-stats img{height:18px;width:18px}body[data-theme="glass"] #modal-root .v84-search-kind{display:none}body[data-theme="glass"] #modal-root .v84-search-player .v73-search-name{font-size:12px;min-width:0}}
/* Side-by-side independent player and guild leaderboards. */
body[data-theme="glass"] #content .v84-rank-controls{padding:7px 13px;margin-bottom:14px;background:linear-gradient(140deg,rgba(100,153,217,.19),rgba(19,42,78,.53));border:1px solid var(--v84-rule);border-radius:17px;}
body[data-theme="glass"] #content .v84-rank-controls .v5-toolbar{padding:9px;flex-wrap:wrap;gap:12px;}
body[data-theme="glass"] #content .v84-rank-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;}
body[data-theme="glass"] #content .v84-rank-panel{min-width:0;padding:12px 12px 15px;border-radius:19px;background:radial-gradient(ellipse at 40% 0%,rgba(89,151,227,.14),transparent 60%),linear-gradient(150deg,rgba(62,103,160,.29),rgba(18,40,73,.59));border:1px solid rgba(164,210,255,.27);}
body[data-theme="glass"] #content .v84-rank-panel-title{display:flex;align-items:center;gap:11px;padding:8px 11px 15px;border-bottom:1px solid rgba(166,209,253,.17);}
body[data-theme="glass"] #content .v84-rank-panel-title>img{width:42px;height:42px;image-rendering:pixelated;object-fit:contain;}
body[data-theme="glass"] #content .v84-rank-panel-title span{display:block;font-size:9px;color:#a9cfff;letter-spacing:1.25px;font-weight:850;}
body[data-theme="glass"] #content .v84-rank-panel-title h2{margin:3px 0 0;font-size:21px;color:#eef7ff;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-head,body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row{grid-template-columns:44px minmax(0,1fr) repeat(3,minmax(35px,52px));gap:6px;align-items:center;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-head{padding:12px 11px 8px;font-size:9px;letter-spacing:.4px;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row{min-height:48px;margin:4px 0;padding:7px 10px;border:1px solid rgba(159,204,252,.17);border-radius:11px;background:linear-gradient(108deg,rgba(89,133,190,.07),rgba(16,37,69,.36));}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row strong{font-size:12px;font-variant-numeric:tabular-nums;text-align:center;}
body[data-theme="glass"] #content .v84-rank-panel .v84-ranked-name{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;}
body[data-theme="glass"] #content .v84-rank-panel .v84-ranked-name b{font-size:12px;overflow:hidden;text-overflow:ellipsis;}
body[data-theme="glass"] #content .v84-rank-panel .v84-ranked-name small{color:#add4ff;font-size:8px;font-weight:850;letter-spacing:1px;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row.place-1{min-height:80px;border-color:rgba(253,217,136,.78)!important;background:linear-gradient(110deg,rgba(188,143,57,.23),rgba(83,71,48,.12) 52%,rgba(24,48,82,.55))!important;box-shadow:inset 3px 0 #f2c260,inset 0 1px rgba(255,232,173,.25),0 9px 22px rgba(13,21,40,.19);}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row.place-2{min-height:64px;border-color:rgba(196,220,247,.45)!important;background:linear-gradient(110deg,rgba(155,180,217,.18),rgba(22,43,76,.35))!important;box-shadow:inset 3px 0 #b7cfe9;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row.place-3{min-height:64px;border-color:rgba(215,158,118,.43)!important;background:linear-gradient(110deg,rgba(183,112,61,.17),rgba(24,44,75,.33))!important;box-shadow:inset 3px 0 #cf946d;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row.place-1 .v84-ranked-name b{font-size:15px;color:#ffe2a0;}
body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row .rank-holder img{width:38px;height:42px;object-fit:contain;image-rendering:pixelated;}
@media(max-width:1160px){body[data-theme="glass"] #content .v84-rank-columns{grid-template-columns:1fr}}
@media(max-width:560px){body[data-theme="glass"] #content .v84-rank-panel{padding:8px}body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-head,body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row{grid-template-columns:32px minmax(0,1fr) repeat(3,38px);gap:3px}body[data-theme="glass"] #content .v84-rank-panel .v5-ranking-row{padding:5px}body[data-theme="glass"] #content .v84-rank-panel .v84-ranked-name b{font-size:11px}}
/* Latest result footer actions, full scores alongside audience toggle. */
body[data-theme="glass"] #content .v84-full-scores{margin:0 3px 0 auto;font-size:11px;font-weight:780;min-height:36px;padding:7px 10px;border-radius:10px;border:1px solid rgba(164,206,255,.26);background:rgba(133,178,236,.10);}
body[data-theme="glass"] #content .v84-full-scores:hover{background:rgba(124,187,255,.19)}
/* Calendar, consistent tile sizing and single-line titles at both sizes. */
body[data-theme="glass"] #content .calendar-panel .day-cell,body[data-theme="glass"] #content .calendar-panel.v5-compact-calendar .day-cell{min-height:93px;gap:3px;padding:8px 5px 7px;border-radius:13px;}
body[data-theme="glass"] #content .calendar-panel .day-art img{width:30px;height:30px;}
body[data-theme="glass"] #content .calendar-panel .day-title,body[data-theme="glass"] #content .calendar-panel.v5-compact-calendar .day-title{display:block!important;min-width:0;width:100%;white-space:nowrap!important;overflow:visible;text-overflow:clip;font-size:clamp(6.2px,.67vw,9.1px)!important;letter-spacing:-.32px!important;font-weight:790!important;line-height:1.23!important;}
body[data-theme="glass"] #content .calendar-panel .calendar-week{gap:5px;}
body[data-theme="glass"] #content .v84-calendar-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
body[data-theme="glass"] #content .v84-calendar-tools .text-button{border:1px solid rgba(164,207,255,.36);border-radius:9px;background:rgba(107,162,229,.10);padding:8px 11px;white-space:nowrap;font-size:11px;}
body[data-theme="glass"] #content .v84-calendar-tools .text-button:hover{background:rgba(128,186,251,.24)}
body[data-theme="glass"] #content .v47-calendar-picker[data-v47-picker="day"] .v47-calendar-picker-toggle{min-width:63px;}
body[data-theme="glass"] #content .v47-calendar-picker[data-v47-picker="day"] .v47-calendar-picker-menu{max-height:215px;}
body[data-theme="glass"] #content .v5-cycle-label{font-size:9px!important;min-height:18px;padding:4px 6px!important;letter-spacing:.5px!important;font-weight:900!important;border-radius:8px!important;box-shadow:inset 0 1px #ffffff40,0 3px 12px #081b3866;}
body[data-theme="glass"] #content .v5-cycle-label.start{border:1px solid rgba(144,211,253,.5);background:linear-gradient(120deg,#235e8da8,#376faa9c)!important;color:#e6f8ff!important;}
body[data-theme="glass"] #content .v5-cycle-label.end{border:1px solid rgba(250,208,129,.5);background:linear-gradient(125deg,#72552ea8,#4b402c9c)!important;color:#ffe7b7!important;}
body[data-theme="glass"] #content .cycle-completed .v50-completed-mark{display:none!important;}
/* Larger profile quick statistics, including hover explainer for unique wins. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats{gap:7px!important;}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat{min-height:72px!important;padding:9px 10px!important;gap:7px!important;border-radius:13px!important;}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat-icon img{width:33px!important;height:33px!important;}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text b{font-size:23px!important;}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text small{font-size:9px!important;}
body[data-theme="glass"] #modal-root .v84-unique-help{cursor:help;}
body[data-theme="glass"] #modal-root .v84-unique-help:focus-visible{outline:2px solid #9ed4ff;outline-offset:2px;}
/* Records: premium top-holders and tighter per-challenge grid. */
body[data-theme="glass"] #content .v5-metric-grid{gap:14px!important;}
body[data-theme="glass"] #content .v5-metric-card{border:1px solid rgba(173,211,255,.30)!important;border-radius:18px!important;background:linear-gradient(158deg,rgba(115,162,226,.18),rgba(25,50,90,.46))!important;}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-icon{min-width:60px;min-height:60px;}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-icon img{width:56px;height:56px;image-rendering:pixelated;}
body[data-theme="glass"] #content .v5-metric-champion{border:1px solid rgba(241,204,126,.50)!important;background:linear-gradient(115deg,rgba(218,176,86,.16),rgba(44,71,105,.25))!important;border-radius:13px!important;}
body[data-theme="glass"] #content .v5-record-table{background:linear-gradient(160deg,rgba(66,101,153,.20),rgba(14,34,64,.58));border:1px solid rgba(169,209,255,.28);border-radius:19px;overflow:hidden;}
body[data-theme="glass"] #content .v5-record-row{min-height:57px!important;padding-top:7px!important;padding-bottom:7px!important;border-bottom-color:rgba(157,202,252,.15)!important;}
body[data-theme="glass"] #content .v5-record-row:nth-child(even){background:rgba(104,160,232,.065);}
body[data-theme="glass"] #content .v5-record-row:hover{background:rgba(125,188,253,.16)!important;}
body[data-theme="glass"] #content .v5-record-row .v5-record-holders button{font-weight:840;color:#ffdea0;}
body[data-theme="glass"] #content .v5-record-row>b{color:#e9f4ff;font-weight:850;}
/* History and Records now have the same deep-blue panel backgrounds as Overview. */
body[data-theme="glass"] #content .v5-history-cards{background:transparent;}
body[data-theme="glass"] #content .v5-history-card{border:1px solid rgba(166,208,255,.30);border-radius:16px;background:linear-gradient(145deg,rgba(86,129,188,.15),rgba(18,41,78,.52));}
body[data-theme="glass"] #content .v5-history-card:hover{border-color:rgba(174,219,255,.52);}
body[data-theme="glass"] #content .v5-main-panel:has(.v5-history-cards){background:linear-gradient(145deg,rgba(67,105,162,.17),rgba(15,35,66,.50));border-color:rgba(163,207,255,.26);}
/* Sidebar hover: avoid upward translation being clipped by scroll container. */
body[data-theme="glass"] #sidebar .v44-nav-stack{padding:10px 9px 16px 3px!important;scrollbar-gutter:stable;}
body[data-theme="glass"] #sidebar .v78-discord-card{margin-top:3px!important;transform:none!important;box-shadow:inset 0 1px rgba(255,255,255,.23),0 5px 17px rgba(6,17,42,.12);}
body[data-theme="glass"] #sidebar .v78-discord-card:hover{transform:none!important;box-shadow:inset 0 1px rgba(255,255,255,.33),0 0 0 1px rgba(204,230,255,.20),0 4px 14px rgba(10,26,65,.10)!important;}
/* Keep the scrollbars inset rather than painting over rounded panel borders. */
body[data-theme="glass"] #content :is(.v5-main-panel,.v5-record-table,.v5-history-cards),body[data-theme="glass"] #modal-root .dialog{scrollbar-gutter:stable;}
body[data-theme="glass"] :is(#content,#sidebar,#modal-root) :is(.v5-ranking-list,.v5-record-table,.v5-history-cards,.v47-calendar-picker-menu){scrollbar-width:thin;scrollbar-color:rgba(142,187,240,.42) transparent;}
body[data-theme="glass"] .main-area{scrollbar-gutter:stable;}
/* V1.58: removed the obsolete More Glass presentation entirely. */






body[data-theme="glass"] .v84-top-btn:focus-visible,body[data-theme="glass"] .v84-calendar-tools button:focus-visible{outline:2px solid #bddfff;outline-offset:2px;}
/* Changelog overlay */
.v84-overlay{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:18px;background:rgba(2,11,28,.76);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
.v84-updates-dialog{width:min(660px,100%);max-height:min(760px,90vh);overflow:auto;color:#eff7ff;border:1px solid rgba(195,226,255,.60);border-radius:22px;background:linear-gradient(150deg,rgba(51,90,145,.96),rgba(12,31,62,.97) 54%,rgba(20,43,82,.98));box-shadow:inset 0 1px rgba(255,255,255,.36),0 30px 110px rgba(0,5,19,.68);font-family:inherit;}
.v84-update-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 29px 15px;}
.v84-eyebrow{font-size:10px;font-weight:860;letter-spacing:1.3px;color:#9eccff;}
.v84-update-header h2{font-size:29px;margin:9px 0 5px;letter-spacing:-.8px;color:#fff;}
.v84-update-header p{font-size:13px;margin:0;color:#afc9e9;}
.v84-updates-close{background:rgba(170,208,255,.12);border:1px solid rgba(195,225,255,.30);border-radius:10px;width:33px;height:33px;color:#fff;cursor:pointer;font-size:20px;}
.v84-update-list{padding:4px 25px 18px;}
.v84-update-item{display:flex;gap:16px;align-items:flex-start;border:1px solid rgba(175,216,255,.15);border-radius:13px;padding:13px 15px;margin-top:7px;background:rgba(166,203,249,.075);}
.v84-update-index{font-size:12px;font-weight:880;color:#acd4ff;min-width:23px;margin-top:2px;}
.v84-update-item b{font-size:14px;}.v84-update-item p{font-size:12px;line-height:1.55;color:#acc3df;margin:5px 0 0;}
.v84-update-footer{padding:17px 27px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#9fbbe0;font-size:11px;}
.v84-dismiss{border:1px solid rgba(205,235,255,.48);background:linear-gradient(135deg,rgba(127,183,251,.40),rgba(45,105,180,.55));border-radius:11px;padding:10px 20px;color:#fff;font-weight:790;cursor:pointer;}
@media(max-width:600px){body[data-theme="glass"] #content .calendar-panel .day-title,body[data-theme="glass"] #content .calendar-panel.v5-compact-calendar .day-title{font-size:6.2px!important}body[data-theme="glass"] #content .calendar-panel .day-cell{min-height:78px!important}body[data-theme="glass"] #content .v84-calendar-tools .text-button{font-size:10px;padding:6px}body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat{min-height:60px!important;padding:5px!important}body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text b{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){body[data-theme="glass"] *{scroll-behavior:auto!important}}
/* V84 final calendar consistency override. Previous V55 used !important and
   a longer selector, so previous general refinements did not affect labels. */
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell,
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell{
  min-height:104px!important;padding:7px 5px!important;gap:4px!important;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell{min-height:101px!important;}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art,
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art{min-height:37px!important;}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art > img,
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art > img{
  width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question,
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .calendar-question{
  width:37px!important;height:37px!important;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-title,
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-title{
  display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
  white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
  font-size:8.5px!important;letter-spacing:-.15px!important;line-height:1.35!important;
  text-align:center;min-height:14px!important;max-height:none!important;overflow:visible!important;
  width:100%;text-overflow:clip!important;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-title{font-size:7.4px!important;letter-spacing:-.28px!important;}
body[data-theme="glass"] #modal-root .v84-search-player::before{opacity:.29;mask-image:linear-gradient(to right,rgba(0,0,0,.9) 0%,rgba(0,0,0,.7) 16%,rgba(0,0,0,.24) 47%,transparent 78%);}
body[data-theme="glass"] .v84-top-btn{font-family:inherit;font-weight:760;font-size:11px;}
@media(max-width:700px){
 body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell,
 body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell{min-height:80px!important;padding:5px 3px!important;gap:2px!important;}
 body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art > img,
 body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art > img{width:27px!important;height:27px!important;}
 body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-title,
 body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-title{font-size:6.5px!important;letter-spacing:-.35px!important;}
}
/* The legacy .content > .glass entrance keyframe can leave the new ranking
   filter bar at opacity:0 (invisible). Keep controls permanently accessible. */
body[data-theme="glass"] #content > .v84-rank-controls{opacity:1!important;animation:none!important;transform:none!important;filter:none!important;}
/* Keep rank controls compact and avoid the previous empty-looking gap. */
body[data-theme="glass"] #content .page-head:has(+ .v84-rank-controls){margin-bottom:15px!important;}
