/* ==========================================================================
   YGG Portal - Vote for Points + Top PvP Killers (vote.php, toppvp.php, homepage windows)
   ========================================================================== */
.fx-page { max-width: 980px; margin: 0 auto; }
.fx { --fx-gold: #f2c873; --fx-green: #3ddc84; --fx-red: #ff6b6b; --fx-line: #2c3c58; --fx-muted: #9fb0c8; color: #e9edf5; font-family: Arial, sans-serif; }
.fx code { color: #fff; }

/* head */
.fx-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 10px; padding: 26px 26px 0; border-radius: 18px; border: 1px solid var(--fx-line); overflow: hidden;
    background: radial-gradient(60% 120% at 88% 60%, rgba(242, 200, 115, .2), transparent 65%), linear-gradient(160deg, #18263f, #0c1424 75%); }
.fx--pvp .fx-head { background: radial-gradient(60% 120% at 88% 60%, rgba(255, 107, 107, .22), transparent 65%), linear-gradient(160deg, #22192b, #0c1424 75%); border-color: rgba(255, 107, 107, .35); }
.fx-head__text { padding-bottom: 24px; }
.fx-eyebrow { color: var(--fx-gold); font: 800 11px/1 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.fx-eyebrow--red { color: #ff9b9b; }
.fx-title { margin: 10px 0 8px; font: 700 clamp(26px, 3.4vw, 36px)/1.15 Georgia, serif; color: #fff; }
.fx-title span { color: var(--fx-gold); }
.fx-lead { margin: 0; color: #cfd8e8; line-height: 1.6; max-width: 56ch; }
.fx-head__art { display: flex; justify-content: center; align-self: end; }
.fx-head__art img { display: block; width: 100%; height: auto; max-height: 210px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .55)); }

/* messages */
.fx-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffd0d0; font-size: 14px; }
.fx-alert.is-ok { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .4); color: #c9f7dc; }
.fx-empty { display: grid; gap: 4px; margin: 18px 0 0; padding: 22px; text-align: center; border-radius: 14px; border: 1px dashed var(--fx-line); color: var(--fx-muted); list-style: none; }
.fx-empty b { color: #fff; font-size: 16px; }
.fx-admin { display: block; margin-top: 8px; color: #ffd27a; font-size: 12.5px; }
.fx-fine { margin: 14px 0 0; color: #7d8ca6; font-size: 12.5px; }

/* sign in / wallet */
.fx-signin { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(242, 200, 115, .08); border: 1px solid rgba(242, 200, 115, .35); }
.fx-signin b { display: block; color: #fff; font-size: 16px; }
.fx-signin span { color: var(--fx-muted); font-size: 14px; }
.fx-signin__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-wallet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.fx-wallet div { padding: 12px 14px; border-radius: 12px; background: rgba(13, 21, 38, .8); border: 1px solid var(--fx-line); min-width: 0; }
.fx-wallet span { display: block; color: var(--fx-muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.fx-wallet b { display: block; margin-top: 4px; color: #fff; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* vote sites */
.fx-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.fx-site { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(23, 34, 58, .95), rgba(13, 21, 38, .95)); border: 1px solid var(--fx-line); transition: border-color .2s, transform .2s; }
.fx-site.is-ready:hover { border-color: rgba(242, 200, 115, .6); transform: translateY(-2px); }
.fx-site__logo { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: rgba(242, 200, 115, .12); border: 1px solid rgba(242, 200, 115, .35); color: var(--fx-gold); font: 800 20px/1 Georgia, serif; }
.fx-site__logo img { width: 100%; height: 100%; object-fit: cover; }
.fx-site__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.fx-site__text b { color: #fff; font-size: 15.5px; }
.fx-site__text small { color: var(--fx-muted); font-size: 12.5px; }
.fx-site__btn { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; font: 700 14px/1 Arial, sans-serif; cursor: pointer; color: #1b1200; background: linear-gradient(180deg, #ffe7a3, #f2c873 50%, #c9952f); box-shadow: 0 6px 16px rgba(242, 200, 115, .25); white-space: nowrap; }
.fx-site__btn:hover { filter: brightness(1.06); }
.fx-site__btn:disabled { opacity: .6; cursor: wait; }
.fx-site__btn.is-off { cursor: default; color: var(--fx-muted); background: rgba(255, 255, 255, .06); box-shadow: none; }
.fx-site__btn.is-wait { cursor: default; color: #c9f7dc; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); box-shadow: none; font-size: 12.5px; }
.fx-site__btn.is-done { cursor: default; color: #04210f; background: var(--fx-green); box-shadow: none; }

.fx-how { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(13, 21, 38, .7); border: 1px solid var(--fx-line); }
.fx-how h3 { margin: 0 0 10px; color: #fff; font: 700 17px/1.3 Georgia, serif; }
.fx-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #cfd8e8; font-size: 14px; line-height: 1.5; }
.fx-how b { color: #fff; }
.fx-how p { margin: 10px 0 0; color: #cfd8e8; font-size: 14px; }

/* PvP podium + table */
.fx-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.fx-podium__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 20px 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 40, 64, .95), rgba(13, 21, 38, .95)); border: 1px solid var(--fx-line); }
.fx-podium__item.is-gold { order: 2; border-color: rgba(242, 200, 115, .7); box-shadow: 0 0 0 1px rgba(242, 200, 115, .2), 0 16px 34px rgba(0, 0, 0, .4); transform: translateY(-8px); }
.fx-podium__item.is-silver { order: 1; border-color: rgba(200, 210, 225, .5); }
.fx-podium__item.is-bronze { order: 3; border-color: rgba(205, 127, 70, .55); }
.fx-medal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; font: 900 18px/1 Georgia, serif; color: #1b1200; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 6px 14px rgba(0, 0, 0, .35); }
.is-gold .fx-medal { background: linear-gradient(180deg, #fff1b8, #f2c873 55%, #c9952f); }
.is-silver .fx-medal { background: linear-gradient(180deg, #ffffff, #c9d3e0 55%, #8d9bb0); }
.is-bronze .fx-medal { background: linear-gradient(180deg, #ffd2a8, #cd7f46 55%, #8e5126); }
.fx-podium__name { color: #fff; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-podium__item small { color: var(--fx-muted); font-size: 12.5px; }
.fx-guild { color: #b8c7ff !important; }
.fx-kills { margin-top: 8px; font: 800 26px/1 Arial, sans-serif; color: #ff9b9b; }
.fx-kills em { margin-left: 5px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--fx-muted); letter-spacing: .08em; text-transform: uppercase; }
.fx-on { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 8px var(--fx-green); vertical-align: middle; }
.fx-tablewrap { margin: 16px 0 0; border-radius: 14px; border: 1px solid var(--fx-line); overflow: hidden; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fx-table th { padding: 11px 12px; text-align: left; color: var(--fx-muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(13, 21, 38, .9); border-bottom: 1px solid var(--fx-line); }
.fx-table td { padding: 12px; border-bottom: 1px solid rgba(44, 60, 88, .6); color: #dfe6f3; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table tr.is-top td { background: rgba(255, 255, 255, .02); }
.fx-table td small { display: block; color: var(--fx-muted); font-size: 12px; }
.fx-table td b { color: #fff; }
.fx-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.fx-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-weight: 800; color: #fff; font-size: 13px; }
.fx-rank.is-gold { background: #f2c873; color: #1b1200; }
.fx-rank.is-silver { background: #c9d3e0; color: #1b1200; }
.fx-rank.is-bronze { background: #cd7f46; color: #1b1200; }

/* homepage window */
.fxm { padding: 0; border: 0; background: transparent; width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
.fxm::backdrop { background: rgba(4, 8, 18, .82); backdrop-filter: blur(6px); }
.fxm__box { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #121d33, #0a1222); border: 1px solid #2c3c58; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: fxmIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes fxmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fxm__x { position: sticky; top: 0; float: right; z-index: 3; width: 38px; height: 38px; margin: 0 0 -38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 18, 34, .85); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.fxm__foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.fxm__foot a { color: var(--gold, #f2c873); font-size: 14px; }
.fxm__load { display: grid; place-items: center; min-height: 260px; }
.fxm__load i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: #f2c873; animation: fxSpin .8s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
    .fx-head { grid-template-columns: 1fr; padding: 20px 18px 0; }
    .fx-head__art { order: -1; }
    .fx-head__art img { max-height: 150px; width: auto; }
    .fx-head__text { padding-bottom: 18px; }
    .fx-wallet { grid-template-columns: 1fr 1fr; }
    .fx-sites { grid-template-columns: 1fr; }
    .fx-podium { grid-template-columns: 1fr; }
    .fx-podium__item { order: 0 !important; transform: none !important; flex-direction: column; }
    .fx-table thead { display: none; }
    .fx-table, .fx-table tbody, .fx-table tr, .fx-table td { display: block; width: 100%; }
    .fx-table tr { padding: 10px 12px; border-bottom: 1px solid var(--fx-line); }
    .fx-table td { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border: 0; text-align: right; }
    .fx-table td::before { content: attr(data-l); color: var(--fx-muted); text-align: left; }
    .fx-table td small { display: inline; margin-left: 6px; }
    .fxm__box { padding: 12px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .fxm__box { animation: none; } }
