/* ATools components by -r8 and SLAME are preserved in atools.css. */
@import url('./atools.css');
.vote-module{gap:1rem;min-width:0;width:100%;--at-warning:#de827e;--at-experience:#5affef;--at-credits:#ffaf59}
.vote-module,.vote-module *,.vote-module *::before,.vote-module *::after{box-sizing:border-box}
/* Same ambient background as the existing pixelh-home.css homepage rule. */
body:has(#voteModule){background:radial-gradient(ellipse at 76% 18%,rgba(223,170,135,.12),transparent 48%),radial-gradient(ellipse at 25% 76%,rgba(48,50,54,.10),transparent 53%),linear-gradient(180deg,#111214 0%,#0e0e0f 100%);background-repeat:no-repeat;background-attachment:fixed}
.vote-module [hidden]{display:none!important}
.vote-module h1{font-size:1.45rem;margin:0;font-weight:600}
.vote-module h2{font-size:var(--font-size-default,1rem);margin:0;font-weight:600}
.vote-module p{margin:0;line-height:1.65}
.vote-module .card.at__dash{padding:1rem;gap:1rem}
.vote-heading-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.vote-heading-row>div{display:flex;flex-direction:column;gap:.4rem}
.vote-module .filter,.vote-module a.filter{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:normal;min-height:2.35rem;padding:.55rem .85rem;cursor:pointer}
.vote-module button:disabled{cursor:wait;opacity:.55}
.vote-muted{color:var(--text-secondary);font-size:.85rem}
.vote-help{display:flex;flex-direction:column;gap:.5rem;background:var(--input-form);border:1px solid var(--transparent-5-w);border-radius:var(--br-12,12px);padding:1rem}
.vote-login{align-self:flex-start}
.vote-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:1rem;align-items:start}
.vote-module .vote-server-card{min-width:0;height:auto}
.vote-module .vote-server-card .at__dash-card-body{padding:1rem;gap:.75rem}
.vote-server-image{width:100%;height:120px;object-fit:cover;display:block}
.vote-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.vote-card-title h2{overflow-wrap:anywhere;line-height:1.4}
.vote-reward{font-size:1rem;font-weight:600;color:var(--green,#64ce82);white-space:nowrap}
.vote-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vote-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.vote-module .vote-card-actions .filter{width:100%;min-width:0;padding:.55rem .5rem;font-size:.8rem;box-sizing:border-box}
.vote-module .vote-card-actions button:disabled{cursor:not-allowed;opacity:1;background:var(--btn-disabled,var(--input-form));color:var(--text-secondary)}
.vote-module .vote-card-actions .vote-check-active{background:var(--span);color:var(--text-default)}
.vote-signin{grid-column:1/-1}
.vote-countdown{font-size:.8rem;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.vote-module .at__top-item{min-width:0}
.vote-module .at__top-name{min-width:0}
.vote-module .at__top-name a{overflow-wrap:anywhere}
/* Same banner and video geometry as module_page_bonuses' socials block. */
.vote-hero{position:relative;display:flex;align-items:center;min-height:11rem;padding:1.3rem;overflow:hidden;isolation:isolate;container-type:inline-size;border-radius:var(--br-16,16px);background-color:var(--card)}
.vote-hero-content{position:relative;z-index:2;display:flex;flex-direction:column;gap:.5rem}
.vote-module .vote-hero-title{margin:0;font-family:var(--font-family-1);font-size:var(--font-size-xl);font-weight:var(--font-weight-7);line-height:1.2;text-wrap:balance}
.vote-hero-description{max-width:30rem;color:var(--text-custom);font-size:var(--font-size-m);line-height:1.6}
.vote-hero-video{position:absolute;right:4rem;top:-1rem;transform:none;pointer-events:none}
.vote-hero-video::before{content:'';position:absolute;right:1rem;width:30rem;height:30rem;border-radius:var(--br-50);background-color:var(--money,#ffd700);filter:blur(250px);opacity:.3}
.vote-hero-video video{position:relative;z-index:3;max-height:19rem}
@media(min-width:769px){.vote-hero-content{max-width:calc(100% - 28rem)}}
/* The sidebar can leave tablet-sized content even in a wider browser. */
@container(max-width:48rem){.vote-hero-content{max-width:100%}.vote-hero-video video{display:none}}
.vote-module .vote-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.vote-leaderboard .at__dash-card-head{justify-content:center;border:0;background:transparent;padding-bottom:.5rem}
.vote-leader-list{padding:0 1rem 1rem;min-width:0}
.vote-leader-rows{display:flex;flex-direction:row;gap:1rem;list-style:none;margin:0;padding:0 0 .25rem;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--transparent-10-w) transparent}
.vote-leader-row{flex:1 0 calc((100% - 2rem)/3);min-width:220px;border:1px solid var(--transparent-3-w);border-radius:var(--br-12,12px);background:var(--transparent-2-w);position:relative;overflow:hidden;scroll-snap-align:start}
.vote-leader-row[aria-current=true]{border-color:var(--transparent-10-w);background:var(--transparent-5-w)}
.vote-leader-profile{position:relative;display:flex;align-items:center;gap:.6rem;padding:.35rem;min-height:53px;height:100%;text-decoration:none;color:var(--text-default)}
.vote-leader-profile:focus-visible,.vote-leader-rows:focus-visible{outline:2px solid var(--text-custom);outline-offset:-2px;border-radius:var(--br-8,8px)}
.vote-leader-avatar{width:2.613rem;height:2.613rem;object-fit:cover;flex-shrink:0;border:1px solid var(--transparent-5-w);border-radius:var(--br-8,8px);position:relative;z-index:1;background:var(--input-form)}
.vote-leader-details{min-width:0;display:flex;flex-direction:column;gap:.15rem;position:relative;z-index:1;padding-right:1.8rem}
.vote-leader-name{font-size:var(--font-size-m,.8rem);font-weight:var(--font-weight-7,700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vote-leader-score{font-size:var(--font-size-s,.7rem);color:var(--text-secondary);font-variant-numeric:tabular-nums}
.vote-leader-rank{position:absolute;right:.5rem;font-size:var(--font-size-5xl,2.5rem);font-family:var(--font-family-1);font-weight:var(--font-weight-7,700);opacity:.1;pointer-events:none;font-variant-numeric:tabular-nums}
.vote-leader-row:nth-child(1){--vote-rank-color:var(--top-one,#edcb69)}
.vote-leader-row:nth-child(2){--vote-rank-color:var(--top-two,#c4c9d2)}
.vote-leader-row:nth-child(3){--vote-rank-color:var(--top-three,#cd9974)}
.vote-leader-row:nth-child(-n+3) .vote-leader-name{color:var(--vote-rank-color)}
.vote-leader-row:hover .vote-leader-rank{opacity:.5;color:var(--vote-rank-color,var(--text-default))}
.vote-module[data-page=public] .vote-help{padding:0;background:none;border:0}
.vote-hero-help{margin-top:.6rem;max-width:30rem}
.vote-hero-help p{font-size:var(--font-size-m,.85rem);color:var(--text-secondary)}
.vote-hero-description p{line-height:inherit}
.vote-nowrap{white-space:nowrap;font:inherit;color:inherit}
.vote-hero .vote-login{margin-top:.35rem}
.vote-controls{display:flex;align-items:flex-end;gap:.65rem;flex-wrap:wrap}
.vote-controls>label{flex:1 1 125px;min-width:0}
.vote-module label{display:flex;flex-direction:column;align-items:stretch;gap:.5rem;margin:0;white-space:normal;font-size:.85rem;color:var(--text-secondary)}
.vote-module input,.vote-module select,.vote-module textarea{min-width:0;max-width:100%;width:100%;background:var(--input-form);color:var(--text-default);border:1px solid var(--transparent-10-w);border-radius:var(--br-8,8px);font:inherit;padding:.65rem .75rem;box-sizing:border-box}
.vote-module input:focus-visible,.vote-module select:focus-visible,.vote-module textarea:focus-visible{outline:2px solid var(--text-custom);outline-offset:2px}
.vote-module input[type=checkbox]{width:21px;height:21px;flex:0 0 21px;padding:0;accent-color:var(--text-custom);margin:0}
.vote-module input[type=checkbox]:focus-visible{outline:2px solid var(--text-custom)!important;outline-offset:3px}
.vote-module input[type=file]{display:block}
.vote-module .vote-check{display:flex;flex-direction:row;align-items:center;gap:.65rem;line-height:1.5}
.vote-form{display:flex;flex-direction:column;gap:1rem}
.vote-nav{display:flex;flex-wrap:wrap;gap:.4rem;margin:0}
.vote-table-scroll{overflow-x:auto;max-width:100%;min-width:0}
.vote-table{width:100%;border-collapse:collapse;font-size:.85rem;text-align:left}
.vote-table th{font-weight:500;color:var(--text-secondary);white-space:nowrap}
.vote-table th,.vote-table td{padding:.75rem;border-bottom:1px solid var(--transparent-5-w);vertical-align:middle}
.vote-table td{line-height:1.65}
.vote-table input{min-width:90px}
.vote-row-actions{display:flex;gap:.4rem;align-items:center}
.vote-module .vote-dialog{position:fixed;inset:0;margin:auto;min-width:0;max-width:calc(100vw - 2rem);color:var(--text-default);background:var(--card);border:1px solid var(--transparent-10-w);border-radius:var(--br-12,12px);padding:1.25rem;width:min(600px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;transform:none;animation:none;opacity:1}
.vote-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(3px)}
.vote-image-preview{width:100%;max-height:180px;object-fit:cover;border-radius:var(--br-8,8px)}
.vote-preview{border-top:1px solid var(--transparent-5-w);padding-top:1rem;display:flex;flex-direction:column;gap:1rem}
.vote-message{border:1px solid var(--transparent-10-w);border-radius:var(--br-12,12px);padding:1rem;background:var(--input-form);color:var(--text-default)}
.vote-message[data-kind=error]{border-color:#ff4560}
.vote-message[data-kind=success]{border-color:#00e396}
.vote-module #chartVotes,.vote-module #chartPayouts{min-height:260px;min-width:0}
.vote-module #voteWebhookUrl{flex:1;min-width:120px}
.vote-module .at__stat-value{overflow-wrap:anywhere}
.vote-empty{padding:1rem;color:var(--text-secondary);text-align:center}
.vote-badge{display:inline-block;padding:.2rem .45rem;background:var(--transparent-5-w);border-radius:var(--br-8,8px);font-size:.8rem}
@media(max-width:600px){.vote-module .card.at__dash{padding:.75rem}.vote-module h1{font-size:1.2rem}.vote-controls{align-items:stretch}.vote-controls>.filter{align-self:flex-end}.vote-module .at__top-tabs{flex-wrap:wrap}.vote-module .vote-dialog{padding:1rem}.vote-card-foot{flex-wrap:wrap}.vote-module .at__dash-card-head{padding:.75rem}.vote-module .at__dash-card-body{padding:.75rem}}
@media(max-width:768px){.vote-hero-video{top:-1rem;transform:none}.vote-hero-video video{display:none}.vote-hero-video::before{width:10rem;height:10rem;right:-6rem;bottom:-18rem;filter:blur(100px)}}
@media(max-width:600px){.vote-leader-list{padding:0 .75rem .75rem}.vote-leader-rows{gap:.5rem}.vote-leader-row{flex-basis:80%;min-width:210px}.vote-leaderboard .at__top-tabs{flex-wrap:nowrap}}

/* Rewards visual treatment adapted from Battle Pass by HILER:
   https://hlmod.net/members/hiler.77403/ — pages/rewards.php, player.php,
   assets/css/1.css (tinted item, dotted backdrop, image glow, inventory bag).
   Scoped names keep the original Battle Pass and Inventory styles independent. */
.vote-rewards{display:flex;flex-direction:column;gap:1rem;padding:1rem;min-width:0;box-sizing:border-box}
.vote-inventory-link{gap:.5rem;flex-shrink:0}
.vote-inventory-link svg{width:1.1rem;height:1.1rem;fill:currentColor}
.vote-reward-progress{display:flex;gap:.75rem;flex-wrap:wrap}
.vote-reward-progress>span{display:flex;flex-direction:column;gap:.4rem;flex:1 1 150px;padding:.8rem 1rem;border-radius:var(--br-8,8px);background:var(--transparent-3-w)}
.vote-reward-progress strong{font-size:1rem;font-variant-numeric:tabular-nums}
.vote-reward-track{display:flex;gap:.65rem;overflow-x:auto;max-width:100%;min-width:0;padding:.25rem .1rem .75rem;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--transparent-10-w) transparent}
.vote-reward-track:focus-visible{outline:2px solid var(--text-custom);outline-offset:2px;border-radius:var(--br-8,8px)}
.vote-reward-tier{position:relative;flex:0 0 195px;display:flex;flex-direction:column;gap:.35rem;overflow:hidden;scroll-snap-align:start;border:1px solid var(--transparent-10-w);border-radius:var(--br-8,8px);background:var(--transparent-2-w);box-sizing:border-box}
.vote-tier-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .75rem 0;font-size:.85rem}
.vote-tier-info{display:flex;flex-direction:column;gap:.5rem;padding:0 .75rem .75rem;flex:1;overflow-wrap:anywhere}
.vote-tier-info>strong{font-size:.85rem;line-height:1.35}
.vote-tier-info>.vote-muted{font-size:.75rem;line-height:1.45}
.vote-tier-info .vote-reward{font-size:.85rem;white-space:normal}
.vote-reward-status{font-size:.75rem;color:var(--text-secondary);margin-top:auto;padding-top:.35rem}
.vote-reward-tier[data-reward-state=available]{border-color:var(--span,#7465de);box-shadow:inset 0 0 20px color-mix(in srgb,var(--vote-item-color) 6%,transparent)}
.vote-reward-tier[data-reward-state=available] .vote-reward-status{color:var(--text-custom)}
.vote-reward-tier[data-reward-state=received] .vote-reward-status{color:var(--green,#64ce82)}
.vote-reward-tier[data-reward-state=error]{border-color:#de827e}
.vote-module .vote-reward-tier .vote-item-image{filter:none;opacity:1}
.vote-reward-error{color:#de827e;font-size:.75rem;overflow-wrap:anywhere}
.vote-item-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:105px;overflow:hidden;isolation:isolate;pointer-events:none}
.vote-item-visual:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--vote-item-color) 30%,transparent) 1px,transparent 0);background-size:10px 10px;mask-image:radial-gradient(ellipse,#000 0%,#000 15%,transparent 70%)}
.vote-item-glow,.vote-item-image{position:absolute;width:76px;height:76px;object-fit:contain;pointer-events:none;user-select:none}
.vote-item-glow{filter:blur(12px);opacity:.55;transform:scale(1.1)}
.vote-item-image{z-index:1;transition:transform .22s}
.vote-reward-tier:hover .vote-item-image,.vote-inventory-item:hover .vote-item-image{transform:translateY(-3px) scale(1.05)}
.vote-balance-symbol{font-size:3.25rem;font-weight:700;color:var(--green,#64ce82);text-shadow:0 0 30px #64ce8233}
.vote-previous{border-top:1px solid var(--transparent-5-w);padding-top:1rem;min-width:0}
.vote-previous summary{cursor:pointer;color:var(--text-secondary);font-size:.85rem;padding-bottom:.75rem}
.vote-publication{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:var(--input-form);border:1px solid var(--transparent-5-w);border-radius:var(--br-8,8px)}
.vote-publication .vote-controls{justify-content:space-between;align-items:center}
.vote-publication .vote-controls>label{flex:1 1 280px}
.vote-module .vote-chart-controls{display:grid;grid-template-columns:auto minmax(150px,1fr) repeat(2,minmax(145px,180px)) auto;align-items:center;gap:.75rem}
.vote-chart-controls .at__top-tabs{margin:0}
.vote-module .vote-chart-controls .filter,.vote-module .vote-chart-controls input,.vote-module .vote-chart-controls select{height:var(--input-height,41px);min-height:var(--input-height,41px)}
.vote-module .vote-chart-controls .at__top-tabs{padding:0;border:0}
.vote-chart-controls>label{position:relative}
.vote-module #voteRulesForm{display:flex;flex-direction:column;gap:1rem;min-width:0}
.vote-module #voteRulesForm>.vote-controls{align-items:center;gap:.75rem}
.vote-module #voteOperationPages,.vote-module #voteLogPages{align-items:center;gap:.75rem;margin-top:1rem}
.vote-module #voteOperationPages>.filter:disabled,.vote-module #voteLogPages>.filter:disabled{color:var(--text-secondary);opacity:.6;cursor:not-allowed}
.vote-module .vote-preview-controls{display:grid;grid-template-columns:minmax(0,320px) minmax(0,170px);align-items:end;gap:1rem}
.vote-module #rewardPreviewResult{display:block;font-size:1rem;line-height:1.6;overflow-wrap:anywhere}
.vote-tier-table{min-width:780px}
.vote-tier-table th:nth-child(1){width:140px}.vote-tier-table th:nth-child(3){width:140px}
.vote-tier-table select{min-width:150px}
.vote-operation-table{min-width:850px}
.vote-operation-table th:nth-child(1){min-width:170px}.vote-operation-table th:nth-child(2){min-width:140px}.vote-operation-table th:nth-child(3){min-width:230px}
.vote-mobile-hint{display:none}
.vote-preview .at__stat-value{font-size:1rem;line-height:1.5}
.vote-tier-table [data-tier-item]{min-width:185px;display:flex;flex-direction:column;gap:.5rem}
.vote-selected-item{display:flex;align-items:center;gap:.5rem;line-height:1.35;overflow-wrap:anywhere}
.vote-selected-item img{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.vote-module .vote-inventory-dialog{width:min(960px,calc(100vw - 2rem));overflow:hidden}
.vote-module .vote-inventory-dialog[open]{display:flex;flex-direction:column;gap:1rem}
.vote-inventory-header{display:flex;flex-direction:column;flex:none;gap:1rem;min-width:0}
.vote-inventory-header .vote-heading-row{flex-wrap:nowrap;align-items:flex-start}
.vote-inventory-header h2{line-height:1.5}
.vote-inventory-header .filter{flex:none}
.vote-inventory-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));grid-auto-rows:max-content;gap:.75rem;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;align-content:start;padding:2px;scrollbar-width:thin;scrollbar-color:var(--transparent-10-w) transparent}
/* The theme fixes every button at --input-height. Catalogue cards must size to
   their content and their image area must not shrink inside a flex column. */
.vote-module .vote-inventory-item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:.6rem;width:100%;height:auto;min-height:300px;min-width:0;padding:.75rem;text-align:left;white-space:normal;cursor:pointer;color:var(--text-default);background:var(--input-form);border:1px solid var(--transparent-10-w);border-radius:var(--br-8,8px);font:inherit;line-height:1.5;box-sizing:border-box;overflow-wrap:anywhere;overflow:hidden}
.vote-inventory-item>strong{line-height:1.4}
.vote-inventory-item>.vote-item-visual{width:100%;height:105px;min-height:105px;flex:0 0 105px}
.vote-inventory-item .vote-muted{font-size:.8rem;line-height:1.5}
.vote-inventory-item.selected{border-color:var(--span)!important;box-shadow:0 0 0 1px var(--span)}
.vote-inventory-item:focus-visible{outline:2px solid var(--text-custom);outline-offset:2px}
.vote-item-properties{display:flex;flex-direction:column;gap:.3rem;font-size:.75rem;width:100%;padding:0;margin:auto 0 0}
.vote-item-properties>div{display:flex;gap:.5rem;justify-content:space-between;border-top:1px solid var(--transparent-5-w);padding-top:.3rem}
.vote-item-properties dt{color:var(--text-secondary);font-weight:400;flex-shrink:0}.vote-item-properties dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}
@media(max-width:900px){.vote-module .vote-chart-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.vote-chart-controls #voteRanges{grid-column:1/-1;justify-self:start}.vote-chart-controls>button{grid-column:1/-1;justify-self:start}}
@media(max-width:600px){.vote-rewards{padding:.75rem}.vote-reward-track{gap:.5rem}.vote-reward-tier{flex-basis:175px}.vote-reward-progress{gap:.5rem}.vote-reward-progress>span{flex-basis:95px;padding:.65rem}.vote-reward-progress strong{font-size:.85rem}.vote-reward-progress .vote-muted{font-size:.75rem}.vote-publication{padding:.75rem}.vote-publication .vote-controls>.filter{width:100%}.vote-inventory-items{grid-template-columns:1fr;gap:.75rem}.vote-module .vote-inventory-item{padding:.75rem}.vote-module .vote-preview-controls{grid-template-columns:minmax(0,1fr) minmax(0,115px);gap:.75rem}.vote-item-properties>div{gap:.5rem}.vote-item-properties dd{text-align:right}.vote-module #voteOperationPages,.vote-module #voteLogPages{gap:.6rem;font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.vote-item-image{transition:none}}
@media(max-width:600px){.vote-mobile-hint{display:block;margin-bottom:.75rem!important}}

/* The hero owns the primary guest sign-in; cards keep a quieter entry point. */
.vote-module .vote-server-card .vote-signin { background: transparent; color: #dac8b8; border-color: #514337; }
.vote-module .vote-server-card .vote-signin:hover { background: #30271f; color: #fff0e3; border-color: #927052; }
.vote-module .vote-server-card .vote-signin:focus-visible { outline: 2px solid #e2b18b; outline-offset: 3px; }
