/* vote.php — Playserver vote check & reward */
.vote-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}
.vote-stats .stat-box .v{font-size:22px}
.vote-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;align-items:start}
.vote-grid > .panel + .panel{margin-top:0}
.vote-steps{display:grid;gap:12px;margin-top:6px}
.vote-step{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02)}
.vote-step .num{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--line-strong);background:rgba(212,175,106,.1);color:var(--gold-soft);font-family:'Cinzel',serif;font-weight:700;font-size:15px}
.vote-step h4{margin:0 0 4px;color:#fff;font-size:14px}
.vote-step p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.7}
.vote-step b{color:var(--gold-soft)}
.vote-checker{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.vote-field{display:flex;gap:12px;align-items:stretch}
.vote-field .form-input{flex:1 1 auto}
.vote-field .u-btn{flex:0 0 auto;white-space:nowrap}
.vote-hint{font-size:11.5px;color:var(--muted-2);margin:10px 0 0;line-height:1.7}
.vote-alert{margin-top:16px;padding:13px 16px;border-radius:10px;font-size:13px;line-height:1.7;border:1px solid var(--line)}
.vote-alert.err{border-color:rgba(178,59,59,.55);background:rgba(178,59,59,.12);color:#f0c9c9}
.vote-alert.ok{border-color:rgba(90,160,110,.5);background:rgba(70,140,90,.12);color:#cfe9d6}
.vote-alert.info{border-color:var(--line-strong);background:rgba(212,175,106,.07);color:#e8dcc6}
.vote-result{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,rgba(212,175,106,.06),rgba(255,255,255,.012));padding:20px;display:none}
.vote-result.show{display:block}
.vote-result-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}
.vote-result-head .who{font-size:13.5px;color:var(--muted)}
.vote-result-head .who b{color:var(--gold-soft);font-family:'Cinzel',serif;font-size:16px;letter-spacing:.03em}
.vote-result-head .found{font-size:11.5px;padding:5px 11px;border-radius:999px;border:1px solid var(--line-strong);color:var(--gold-soft);background:rgba(212,175,106,.08);white-space:nowrap}
.vote-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.vote-metric{padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(10,8,6,.35);text-align:center}
.vote-metric .v{font-family:'Cinzel',serif;font-size:24px;font-weight:700;color:var(--gold-soft);line-height:1.2}
.vote-metric .k{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:5px}
.vote-progress{margin-top:16px}
.vote-progress .bar{height:9px;border-radius:999px;background:#0d0a08;border:1px solid var(--line);overflow:hidden}
.vote-progress .fill{height:100%;width:0;background:linear-gradient(90deg,#9c7c45,#f2ddb0);border-radius:999px;transition:width .45s ease}
.vote-progress .cap{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--muted);margin-top:7px}
.vote-claim{margin-top:18px;padding-top:18px;border-top:1px dashed var(--line);display:none}
.vote-claim.show{display:block}
.vote-claim .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.vote-claim select{flex:1 1 220px;min-width:0}
.vote-claim .u-btn{flex:0 0 auto}
.vote-claim .note{font-size:11.5px;color:var(--muted);line-height:1.7;margin:10px 0 0}
.vote-claim .note b{color:var(--gold-soft)}
.vote-side .reward-art{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line-strong);border-radius:12px;background:radial-gradient(120% 120% at 0% 0%,rgba(212,175,106,.16),rgba(20,16,13,.4) 60%)}
.vote-side .reward-art img{width:64px;height:64px;image-rendering:pixelated;filter:drop-shadow(0 6px 12px rgba(0,0,0,.45))}
.vote-side .reward-art .name{color:#fff;font-weight:700;font-size:15px;line-height:1.4}
.vote-side .reward-art .sub{color:var(--muted);font-size:12px;margin-top:3px}
.vote-side .swap{display:grid;place-items:center;gap:4px;margin:14px 0 6px;color:var(--gold-soft);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.vote-side .swap b{font-family:'Cinzel',serif;font-size:22px;letter-spacing:0}
.vote-side ul.vote-rules{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.vote-side ul.vote-rules li{position:relative;padding-left:22px;font-size:12.5px;color:var(--muted);line-height:1.7}
.vote-side ul.vote-rules li::before{content:'';position:absolute;left:4px;top:8px;width:6px;height:6px;border-radius:50%;background:var(--gold-dim)}
.vote-side ul.vote-rules b{color:#e8dcc6}
.vote-external{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:12.5px;color:var(--gold);text-decoration:none}
.vote-external:hover{text-decoration:underline}
.vote-loading{opacity:.65;pointer-events:none}
.vote-btn-busy{position:relative;color:transparent!important}
.vote-btn-busy::after{content:'';position:absolute;inset:0;margin:auto;width:16px;height:16px;border:2px solid rgba(33,23,8,.35);border-top-color:#211708;border-radius:50%;animation:vote-spin .7s linear infinite}
@keyframes vote-spin{to{transform:rotate(360deg)}}
@media(max-width:980px){
    .vote-grid{grid-template-columns:1fr}
    .vote-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
    .vote-field{flex-direction:column}
    .vote-field .u-btn{width:100%}
    .vote-metrics{grid-template-columns:1fr 1fr}
    .vote-metrics .vote-metric:last-child{grid-column:1/-1}
    .vote-claim .u-btn{width:100%}
}
