/* =========================================================================
   PlayRox Economy — modals, HUD, lock, toast
   ========================================================================= */

/* ---- Modal ------------------------------------------------------------- */
.plxe-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.18s ease;
}
.plxe-modal.is-open { opacity: 1; }
.plxe-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 12, 8, 0.72); backdrop-filter: blur(3px); }
.plxe-modal__box {
	position: relative;
	width: min(92vw, 420px);
	background: #0c2417;
	border: 1px solid rgba(94, 230, 138, 0.22);
	border-radius: 20px;
	padding: 24px;
	color: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	transform: translateY(10px) scale(0.98);
	transition: transform 0.18s ease;
}
.plxe-modal.is-open .plxe-modal__box { transform: none; }
.plxe-modal__head h3 { margin: 0 0 12px; font-size: 21px; font-weight: 800; }
.plxe-modal__text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.plxe-warn { color: #ffb4b4; }

.plxe-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.plxe-btn {
	appearance: none; border: 0; cursor: pointer;
	padding: 11px 18px; border-radius: 999px;
	font-size: 14.5px; font-weight: 700;
}
.plxe-btn--ghost { background: rgba(255,255,255,0.08); color: #fff; }
.plxe-btn--ghost:hover { background: rgba(255,255,255,0.14); }
.plxe-btn--primary { background: #ffd94a; color: #4a3600; }
.plxe-btn--primary:hover { filter: brightness(1.05); }
.plxe-btn--play { background: linear-gradient(100deg, #2fbf5e, #4be67e); color: #06331a; }
.plxe-btn--play:hover { filter: brightness(1.05); }
.plxe-btn--login { background: #1877f2; color: #fff; }
.plxe-btn:disabled { opacity: 0.6; cursor: default; }

.plxe-coin { color: #ffd94a; }
.plxe-pcoin { color: #7ce0ff; }

.plxe-spend { margin: 0 0 18px; }
.plxe-spend__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14.5px; }
.plxe-spend__row span { color: rgba(255,255,255,0.7); }
.plxe-spend__bal { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.8); }

/* ---- Packages ---------------------------------------------------------- */
.plxe-pkgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.plxe-pkg {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; padding: 14px 16px;
	border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
	background: rgba(255,255,255,0.04); color: #fff; cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.plxe-pkg:hover { border-color: rgba(255,217,74,0.5); background: rgba(255,255,255,0.07); }
.plxe-pkg__coins { font-size: 16px; font-weight: 800; }
.plxe-pkg__coins i { color: #ffd94a; margin-right: 6px; }
.plxe-pkg__price { font-size: 14px; color: rgba(255,255,255,0.7); }
.plxe-pkg__l { display: flex; align-items: center; gap: 10px; }
.plxe-pkg.is-best { border-color: rgba(255,217,74,0.55); background: rgba(255,217,74,0.08); }
.plxe-pkg__badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #4a3600; background: #ffd94a; padding: 3px 8px; border-radius: 999px; }
.plxe-pkg__save { font-size: 10.5px; font-weight: 800; color: #7cffa0; background: rgba(124,255,160,0.14); padding: 3px 8px; border-radius: 999px; }
.plxe-pkg.is-loading { opacity: 0.6; }

/* ---- HUD (during play) ------------------------------------------------- */
.plxe-hud {
	display: flex; align-items: center; gap: 14px;
	color: #fff; font-size: 14px; font-weight: 700;
}
/* Compact HUD living inside the game top bar (preferred). */
.plxe-hud--inbar {
	padding: 6px 12px; border-radius: 999px;
	background: rgba(6, 20, 13, 0.55);
	border: 1px solid rgba(94, 230, 138, 0.28);
	font-size: 13px; gap: 12px;
}
/* Floating fallback pill (only if the top bar isn't present). */
.plxe-hud--floating {
	position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
	z-index: 2147483001;
	padding: 9px 18px; border-radius: 999px;
	background: rgba(6, 20, 13, 0.92);
	border: 1px solid rgba(94, 230, 138, 0.28);
	box-shadow: 0 8px 24px rgba(0,0,0,0.45);
	pointer-events: none;
}
.plxe-hud__time i { color: #7ce0ff; margin-right: 4px; }
.plxe-hud__pc i { color: #7cffa0; margin-right: 4px; }
.plxe-hud.is-low { border-color: rgba(255, 120, 120, 0.6); animation: plxe-pulse 1s ease-in-out infinite; }
.plxe-hud.is-low .plxe-hud__time b { color: #ff9a9a; }
@keyframes plxe-pulse { 0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,0.35); } 50% { box-shadow: 0 0 0 6px rgba(255,120,120,0.12), 0 8px 24px rgba(0,0,0,0.35); } }

/* ---- Lock mask over the game ------------------------------------------- */
.plxe-locked { position: relative; }
.plxe-lockmask {
	position: absolute; inset: 0; z-index: 60;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: rgba(3, 12, 8, 0.86); backdrop-filter: blur(4px);
	color: #fff; font-size: 16px; font-weight: 700;
}
.plxe-lockmask i { font-size: 34px; color: #ffd94a; }

/* ---- Toast ------------------------------------------------------------- */
.plxe-toast {
	position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 12px);
	z-index: 2147483002;
	background: #0c2417; color: #fff;
	border: 1px solid rgba(94, 230, 138, 0.3);
	padding: 12px 20px; border-radius: 999px;
	font-size: 14px; font-weight: 700;
	opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
	box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.plxe-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Claim banners (dashboard) ----------------------------------------- */
.plxe-claims { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.plxe-claim {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 16px; border-radius: 16px;
	background: linear-gradient(100deg, rgba(46,191,94,0.14), rgba(46,191,94,0.05));
	border: 1px solid rgba(94,230,138,0.28);
}
.plxe-claim.is-claimed { opacity: 0.75; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.plxe-claim__ic {
	width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 19px;
	background: rgba(46,191,94,0.2); color: #7cffa0;
}
.plxe-claim__ic--daily { background: rgba(255,217,74,0.2); color: #ffd94a; }
.plxe-claim__body { flex: 1; min-width: 0; }
.plxe-claim__body b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.plxe-claim__body em { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.65); }
.plxe-claim__btn { flex: 0 0 auto; }
@media (max-width: 520px) {
	.plxe-claim { flex-wrap: wrap; }
	.plxe-claim__btn { width: 100%; }
}

/* ---- Prize shop -------------------------------------------------------- */
.plxe-modal__box:has(.plxe-shop) { width: min(94vw, 520px); }
.plxe-shop__bal { margin: 0 0 14px; font-size: 14px; color: rgba(255,255,255,0.85); }
.plxe-shop__bal .plxe-pcoin i { margin-right: 4px; }
.plxe-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 56vh; overflow-y: auto; }
.plxe-prize {
	display: flex; flex-direction: column;
	border: 1px solid rgba(255,255,255,0.09); border-radius: 14px;
	background: rgba(255,255,255,0.04); overflow: hidden;
}
.plxe-prize__img { display: block; height: 100px; background-size: cover; background-position: center; background-color: #0a2417; }
.plxe-prize__img--none { display: flex; align-items: center; justify-content: center; color: #ffd94a; font-size: 30px; }
.plxe-prize__body { padding: 10px 12px 4px; flex: 1; }
.plxe-prize__body b { display: block; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.25; }
.plxe-prize__body em { display: block; font-style: normal; font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.plxe-prize__stock { display: inline-block; margin-top: 6px; font-size: 11px; color: #7cffa0; }
.plxe-prize__oos { display: inline-block; margin-top: 6px; font-size: 11px; color: #ff9a9a; }
.plxe-prize__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.plxe-prize__cost { font-size: 15px; font-weight: 800; color: #7ce0ff; }
.plxe-prize__cost i { margin-right: 4px; }
.plxe-prize__btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 460px) {
	.plxe-prizes { grid-template-columns: 1fr; }
}

/* Prize-shop hero stat is clickable. */
.plxd__hstat--prize { cursor: pointer; transition: transform 0.12s ease; }
.plxd__hstat--prize:hover { transform: translateY(-2px); }
/* ---- Podium (top 3) — premium ------------------------------------------ */
.playrox-podium {
	display: flex; align-items: flex-end; justify-content: center; gap: 8px;
	margin: 8px 0 4px; padding: 20px 4px 0;
	position: relative;
}
.playrox-podium__slot {
	flex: 1 1 0; max-width: 210px;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	position: relative; z-index: 1;
}
.playrox-podium__slot--1 { z-index: 2; }

/* Medal badge (number / crown), floats over the avatar top */
.playrox-podium__medal {
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 800; color: #2a1e00;
	position: relative; z-index: 3; margin-bottom: -14px;
	border: 2px solid rgba(6,20,13,0.85);
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.playrox-podium__slot--1 .playrox-podium__medal {
	background: radial-gradient(circle at 35% 30%, #ffe680, #ffb200);
	color: #7a5200; width: 34px; height: 34px; font-size: 16px; margin-bottom: -16px;
}
.playrox-podium__slot--2 .playrox-podium__medal { background: radial-gradient(circle at 35% 30%, #f4f6fa, #b9c0cc); color: #4a4f57; }
.playrox-podium__slot--3 .playrox-podium__medal { background: radial-gradient(circle at 35% 30%, #f5c592, #cd7f38); color: #5c3410; }
.playrox-podium__slot--1 .playrox-podium__medal i { color: #7a5200; }

/* Avatar with tier-coloured ring */
.playrox-podium__avatar {
	position: relative; border-radius: 50%; padding: 4px;
	background: rgba(255,255,255,0.06);
}
.playrox-podium__avatar img {
	width: 66px; height: 66px; border-radius: 50%; object-fit: cover; display: block;
	border: 3px solid rgba(255,255,255,0.2);
}
.playrox-podium__slot--2 .playrox-podium__avatar img { border-color: #c2c9d4; }
.playrox-podium__slot--3 .playrox-podium__avatar img { border-color: #d98f4e; }
.playrox-podium__slot--1 .playrox-podium__avatar {
	padding: 5px;
	background: radial-gradient(circle, rgba(255,196,0,0.35), transparent 70%);
}
.playrox-podium__slot--1 .playrox-podium__avatar img {
	width: 84px; height: 84px; border-color: #ffc400;
	box-shadow: 0 0 0 4px rgba(255,196,0,0.25), 0 0 26px rgba(255,196,0,0.5);
}

.playrox-podium__name {
	margin-top: 12px; font-size: 14px; font-weight: 800; color: #fff;
	max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.playrox-podium__slot--1 .playrox-podium__name { color: #7cffa0; }
.playrox-podium__value {
	font-size: 15px; font-weight: 800; margin-top: 3px;
	color: #cdd6df;
}
.playrox-podium__slot--1 .playrox-podium__value { color: #7cffa0; }
.playrox-podium__reward {
	margin-top: 8px; font-size: 12px; font-weight: 800; color: #cdfbe0;
	background: rgba(46,191,94,0.18); border: 1px solid rgba(94,230,138,0.4);
	padding: 4px 12px; border-radius: 999px;
}
.playrox-podium__reward i { margin-right: 4px; color: #7cffa0; }

/* Pedestal bars — staircase with #1 tallest + gold */
.playrox-podium__bar {
	width: 100%; margin-top: 14px; border-radius: 10px 10px 0 0;
	position: relative;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, rgba(60,80,68,0.6), rgba(30,44,36,0.3));
	border: 1px solid rgba(255,255,255,0.08); border-bottom: 0;
	font-size: 20px; font-weight: 800; color: rgba(255,255,255,0.55);
}
.playrox-podium__slot--1 .playrox-podium__bar {
	height: 76px;
	background: linear-gradient(180deg, rgba(255,196,0,0.55), rgba(180,130,0,0.18));
	border-color: rgba(255,196,0,0.55);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 -4px 24px rgba(255,196,0,0.25);
	color: #6a4a00;
}
.playrox-podium__slot--2 .playrox-podium__bar { height: 54px; background: linear-gradient(180deg, rgba(150,160,172,0.4), rgba(70,78,88,0.15)); border-color: rgba(194,201,212,0.35); color: #cfd6e0; }
.playrox-podium__slot--3 .playrox-podium__bar { height: 40px; background: linear-gradient(180deg, rgba(180,110,60,0.4), rgba(90,55,30,0.15)); border-color: rgba(217,143,78,0.35); color: #e8b184; }
/* the pedestal number */
.playrox-podium__bar::after { content: attr(data-place); }
.playrox-podium__slot--1 .playrox-podium__bar::after { content: "\f559"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.playrox-podium__slot.is-me .playrox-podium__name::after { content: " (You)"; font-size: 11px; opacity: 0.8; color: #7cffa0; }

/* ---- HUD idle/paused state --------------------------------------------- */
.plxe-hud__idle { display: none; color: #ffd94a; font-weight: 700; }
.plxe-hud__idle i { margin-right: 4px; }
.plxe-hud.is-idle { border-color: rgba(255,217,74,0.55); }
.plxe-hud.is-idle .plxe-hud__time, .plxe-hud.is-idle .plxe-hud__pc { opacity: 0.4; }
.plxe-hud.is-idle .plxe-hud__idle { display: inline-flex; align-items: center; }

/* ---- Competition card (tier / skill / streak / rival) ------------------ */
.plxe-compete {
	margin: 0 0 18px; padding: 16px 18px; border-radius: 16px;
	background: linear-gradient(120deg, rgba(12,36,23,0.9), rgba(8,26,17,0.9));
	border: 1px solid rgba(94,230,138,0.22);
}
.plxe-compete__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plxe-compete__tier {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 800; color: #fff;
	padding: 5px 12px; border-radius: 999px;
	background: color-mix(in srgb, var(--tier, #cd7f38) 26%, transparent);
	border: 1px solid var(--tier, #cd7f38);
}
.plxe-compete__tier i { color: var(--tier, #cd7f38); }
.plxe-compete__skill { font-size: 15px; font-weight: 800; color: #fff; }
.plxe-compete__skill em { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 600; }
.plxe-compete__streak { margin-left: auto; font-size: 14px; font-weight: 800; color: #ff922b; }
.plxe-compete__streak i { margin-right: 4px; }
.plxe-compete__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 12px 0 6px; }
.plxe-compete__bar span { display: block; height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.plxe-compete__next { font-size: 12px; color: rgba(255,255,255,0.6); }
.plxe-compete__rival {
	margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 13.5px; color: rgba(255,255,255,0.85);
}
.plxe-compete__rival i { color: #ff6b6b; margin-right: 6px; }
.plxe-compete__rival b { color: #fff; }

/* ---- Weekly tournament countdown bar ----------------------------------- */
.plxe-tourney-bar {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 0 0 16px; padding: 12px 16px; border-radius: 14px;
	background: linear-gradient(100deg, rgba(255,196,0,0.14), rgba(255,196,0,0.04));
	border: 1px solid rgba(255,196,0,0.3);
	color: #fff;
}
.plxe-tourney-bar__ic {
	width: 32px; height: 32px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,196,0,0.22); color: #ffc400; font-size: 15px;
}
.plxe-tourney-bar__label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.8); }
.plxe-tourney-bar__clock {
	margin-left: auto; font-size: 17px; font-weight: 800; color: #ffc400;
	font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.plxe-tourney-bar.is-soon { border-color: rgba(255,120,120,0.6); animation: plxe-pulse 1.2s ease-in-out infinite; }
.plxe-tourney-bar.is-soon .plxe-tourney-bar__clock { color: #ff9a9a; }
@media (max-width: 480px) {
	.plxe-tourney-bar__label { flex: 1 1 100%; order: 3; }
	.plxe-tourney-bar__clock { margin-left: 0; }
}

/* ---- Daily card claimed state ------------------------------------------ */
.plxd__btn.is-claimed {
	background: rgba(255,255,255,0.1) !important;
	color: rgba(255,255,255,0.7) !important;
	cursor: default;
}
.plxd__btn.is-claimed i { margin-right: 6px; color: #7cffa0; }
.plxd__daily-next b { color: #ffd94a; font-variant-numeric: tabular-nums; }

/* ---- Leaderboard rows — premium ---------------------------------------- */
.playrox-board { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.playrox-board .playrox-board__row {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 16px; border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.07);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.playrox-board .playrox-board__row:hover { background: rgba(255,255,255,0.055); }
.playrox-board__rank {
	width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800; color: #fff;
	background: rgba(255,255,255,0.1);
}
.playrox-board__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(255,255,255,0.12); }
.playrox-board__name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playrox-board__level { display: inline-block; margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); }
.playrox-board__score { text-align: right; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.playrox-board__score em { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.playrox-board__reward {
	flex: 0 0 auto; margin-left: 4px;
	font-size: 13px; font-weight: 800; color: #cdfbe0;
	background: rgba(46,191,94,0.15); border: 1px solid rgba(94,230,138,0.4);
	padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.playrox-board__reward i { margin-right: 5px; color: #7cffa0; }

/* Rank medallions for the top 3 */
.playrox-board .playrox-board__row--1 .playrox-board__rank { background: radial-gradient(circle at 35% 30%, #ffe680, #ffb200); color: #7a5200; }
.playrox-board .playrox-board__row--2 .playrox-board__rank { background: radial-gradient(circle at 35% 30%, #f4f6fa, #b9c0cc); color: #4a4f57; }
.playrox-board .playrox-board__row--3 .playrox-board__rank { background: radial-gradient(circle at 35% 30%, #f5c592, #cd7f38); color: #5c3410; }

/* #1 row highlighted gold */
.playrox-board .playrox-board__row--1.is-podium {
	background: linear-gradient(100deg, rgba(255,196,0,0.14), rgba(255,196,0,0.03));
	border-color: rgba(255,196,0,0.45);
}
.playrox-board .playrox-board__row--2.is-podium {
	background: linear-gradient(100deg, rgba(194,201,212,0.1), rgba(194,201,212,0.02));
	border-color: rgba(194,201,212,0.3);
}
.playrox-board .playrox-board__row--3.is-podium {
	background: linear-gradient(100deg, rgba(217,143,78,0.1), rgba(217,143,78,0.02));
	border-color: rgba(217,143,78,0.3);
}
.playrox-board__row--1 .playrox-board__score { color: #ffd94a; }
.playrox-board__row--1 .playrox-board__avatar img { border-color: #ffc400; }
/* current-user emphasis */
.playrox-board .playrox-board__row.is-me { border-color: rgba(94,230,138,0.5); }
.playrox-board__row.is-me .playrox-board__name::after { content: " (You)"; font-size: 11px; color: #7cffa0; margin-left: 4px; }

@media (max-width: 520px) {
	.playrox-board__reward { padding: 6px 10px; font-size: 12px; }
	.playrox-board__score { font-size: 15px; }
}

/* ---- Leaderboard rank hero header -------------------------------------- */
.plxe-rankhero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin: 0 0 18px; padding: 26px 28px;
	border-radius: 18px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(46,191,94,0.14), transparent 55%),
		linear-gradient(160deg, #0e2a1c 0%, #0a1f15 100%);
	border: 1px solid rgba(94,230,138,0.18);
}
.plxe-rankhero__left { display: flex; align-items: center; gap: 20px; min-width: 0; z-index: 1; }
.plxe-rankhero__crown {
	flex: 0 0 auto;
	width: 84px; height: 84px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 34px; color: #2fbf5e;
	background: rgba(46,191,94,0.1);
	border: 2px solid rgba(46,191,94,0.5);
	box-shadow: 0 0 30px rgba(46,191,94,0.25);
}
.plxe-rankhero__copy { min-width: 0; }
.plxe-rankhero__rank { font-size: 30px; font-weight: 900; line-height: 1; color: #4be67e; }
.plxe-rankhero__title { margin: 4px 0 6px; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.plxe-rankhero__sub { margin: 0 0 16px; font-size: 14px; color: rgba(255,255,255,0.62); max-width: 420px; line-height: 1.5; }
.plxe-rankhero__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px;
	background: linear-gradient(135deg, #2fbf5e, #4be67e);
	color: #06331a !important; font-size: 14px; font-weight: 800; text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.plxe-rankhero__btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #06331a; }
.plxe-rankhero__art {
	flex: 0 0 auto; z-index: 1; position: relative;
	font-size: 92px; line-height: 1;
	color: #ffc400;
	filter: drop-shadow(0 8px 26px rgba(255,196,0,0.45));
}
.plxe-rankhero__art img {
	display: block; width: auto;
	filter: drop-shadow(0 10px 30px rgba(46,191,94,0.4));
}
.plxe-rankhero__art::after {
	/* soft green wing glow behind the trophy */
	content: ""; position: absolute; right: 40px; top: 50%;
	width: 220px; height: 160px; transform: translateY(-50%);
	background: radial-gradient(closest-side, rgba(46,191,94,0.35), transparent 70%);
	z-index: -1; pointer-events: none;
}
@media (max-width: 640px) {
	.plxe-rankhero { padding: 20px; }
	.plxe-rankhero__art { display: none; }
	.plxe-rankhero__crown { width: 60px; height: 60px; font-size: 24px; }
	.plxe-rankhero__title { font-size: 21px; }
}

/* ---- Leaderboard tabs — match reference -------------------------------- */
.playrox-leaderboard .playrox-tab {
	padding: 11px 20px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	color: rgba(255,255,255,0.6);
	font-weight: 700;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.playrox-leaderboard .playrox-tab i { color: rgba(255,255,255,0.45); transition: color 0.16s ease; }
.playrox-leaderboard .playrox-tab:hover {
	background: rgba(255,255,255,0.07);
	border-color: rgba(94,230,138,0.3);
	color: #fff;
}
.playrox-leaderboard .playrox-tab:hover i { color: #7cffa0; }
.playrox-leaderboard .playrox-tab.is-active {
	background: linear-gradient(180deg, #23c55e 0%, #16a34a 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 18px rgba(34,197,94,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.playrox-leaderboard .playrox-tab.is-active i { color: #fff; }

/* ---- Top-up modal: quantity + methods + coming soon -------------------- */
.plxe-fieldlabel { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 14px 0 8px; }
.plxe-qty { display: flex; align-items: stretch; gap: 8px; }
.plxe-qty__btn {
	width: 46px; border: 1px solid rgba(255,255,255,0.12); border-radius: 11px;
	background: rgba(255,255,255,0.05); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer;
}
.plxe-qty__btn:hover { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); }
.plxe-qty__input {
	flex: 1; text-align: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 11px;
	background: rgba(0,0,0,0.3); color: #fff; font-size: 18px; font-weight: 800; padding: 12px;
	-moz-appearance: textfield;
}
.plxe-qty__input::-webkit-outer-spin-button, .plxe-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plxe-qtychips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.plxe-qtychip {
	padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.75);
}
.plxe-qtychip:hover { border-color: rgba(34,197,94,0.5); color: #fff; }

.plxe-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plxe-method {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 14px 8px; border-radius: 13px; cursor: pointer;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
	font-size: 13px; font-weight: 700; transition: all 0.15s ease;
}
.plxe-method i { font-size: 20px; }
.plxe-method:hover { border-color: rgba(34,197,94,0.4); color: #fff; }
.plxe-method.is-active {
	background: rgba(34,197,94,0.14); border-color: #22c55e; color: #fff;
	box-shadow: 0 0 0 1px rgba(34,197,94,0.5);
}
.plxe-method.is-active i { color: #3ce675; }

.plxe-topsum { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.plxe-topsum span { color: rgba(255,255,255,0.6); font-size: 14px; }
.plxe-topsum b { color: #ffd94a; font-size: 18px; font-weight: 800; }

.plxe-soon { text-align: center; padding: 26px 16px; }
.plxe-soon i { font-size: 34px; color: #ffca3c; }
.plxe-soon b { display: block; margin: 12px 0 6px; font-size: 18px; color: #fff; }
.plxe-soon p { margin: 0; color: rgba(255,255,255,0.6); font-size: 14px; }

/* ---- Order history (shop) ---------------------------------------------- */
.playrox-shop__orders { margin-top: 8px; }
.plxe-orders { display: flex; flex-direction: column; gap: 10px; }
.plxe-orders__empty { color: var(--plxd-muted, rgba(255,255,255,0.5)); font-size: 13px; margin: 0; }
.plxe-order {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 12px;
	background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.plxe-order__ic { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(255,217,74,0.12); color: #ffd94a; }
.plxe-order__main { flex: 1; min-width: 0; }
.plxe-order__main b { display: block; color: #fff; font-size: 14px; font-weight: 800; }
.plxe-order__main em { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.5); }
.plxe-order__price { color: #cdd6df; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ==== Migrated from Customizer "Additional CSS" ======================= */
.playrox-leaderboard .playrox-tab.is-active {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(94, 230, 138, 0.0);
	color: #6fcf6f;
}

/* In-bar HUD (inside the game top bar) — keep it compact. */
.plxe-hud--inbar .plxe-hud__idle { color: #ffd94a; font-weight: 700; }
.plxe-hud--inbar.is-idle .plxe-hud__idle { display: inline-flex; align-items: center; }
/* On the in-bar HUD, collapse the long idle text to just the icon on mobile. */
@media (max-width: 600px) {
	.plxe-hud--inbar { gap: 9px; padding: 5px 10px; font-size: 12px; }
	.plxe-hud--inbar .plxe-hud__idle span,
	.plxe-hud--inbar .plxe-hud__idle { font-size: 0; }
	.plxe-hud--inbar .plxe-hud__idle i { font-size: 12px; margin: 0; }
	.plxe-hud--inbar .plxe-hud__pc { font-size: 12px; }
}
/* Keep the game bar items from wrapping when the HUD sits inside it. */
.playrox-gamebar__actions { flex-wrap: nowrap; }

/* Leaderboard crystal reward — use the custom crystal image, responsive to
   the reward text size so it fits the space available on any screen. */
.playrox-podium__reward .plx-icoimg,
.playrox-board__reward .plx-icoimg {
	width: auto; height: 1.05em; vertical-align: -0.14em; object-fit: contain;
}

/* -------------------------------------------------------------------------
   Loading state between the card tap and the "Start playing" sheet
   ---------------------------------------------------------------------- */

.plxe-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 34px 24px 30px;
	text-align: center;
}

.plxe-loading__spin {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 3px solid rgba(57, 255, 115, 0.18);
	border-top-color: #39ff73;
	animation: plxe-loading-spin 0.8s linear infinite;
}

.plxe-loading__text {
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* Three dots trailing the label, so the wait reads as progress. */
.plxe-loading__text::after {
	content: "";
	display: inline-block;
	width: 1em;
	text-align: left;
	animation: plxe-loading-dots 1.2s steps(4, end) infinite;
}

@keyframes plxe-loading-spin {
	to { transform: rotate(360deg); }
}

@keyframes plxe-loading-dots {
	0%   { content: ""; }
	25%  { content: "."; }
	50%  { content: ".."; }
	75%  { content: "..."; }
}

@media (prefers-reduced-motion: reduce) {
	.plxe-loading__spin { animation-duration: 2s; }
	.plxe-loading__text::after { animation: none; content: "…"; }
}

/* -------------------------------------------------------------------------
   Coin bundles (replaces the quantity stepper)
   ---------------------------------------------------------------------- */

.plxe-packs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 16px;
}

.plxe-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 16px 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	transition:
		border-color 0.16s ease,
		background 0.16s ease,
		transform 0.16s ease;
}

.plxe-pack:hover {
	border-color: rgba(57, 255, 115, 0.45);
	background: rgba(57, 255, 115, 0.07);
	transform: translateY(-2px);
}

.plxe-pack.is-active {
	border-color: #39ff73;
	background: rgba(57, 255, 115, 0.13);
	box-shadow: 0 0 0 1px rgba(57, 255, 115, 0.45), 0 0 18px rgba(57, 255, 115, 0.2);
}

.plxe-pack__coins {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.plxe-pack__unit {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}

.plxe-pack__price {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #ffca3c;
}

.plxe-pack__tag {
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 9px;
	border-radius: 999px;
	background: #39ff73;
	color: #04231a;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 400px) {
	.plxe-pack__coins { font-size: 19px; }
	.plxe-pack { padding: 14px 8px 12px; }
}
