/* FiveMRides Studio Pulse - "Sunset Drive" family (same look as the Rim Spin wheel). */
.fmrp {
	--fmrp-bg: #0b0518;
	--fmrp-panel: rgba(18, 6, 36, .78);
	--fmrp-line: rgba(255, 120, 190, .24);
	--fmrp-row: #120a22;
	--fmrp-row-line: #2a1a44;
	--fmrp-text: #f3ecff;
	--fmrp-muted: #c9b8e6;
	--fmrp-dim: #9a8cb8;
	--fmrp-teal: #3ee6d6;
	--fmrp-pink: #ff5c9e;
	--fmrp-purple: #b69cff;
	--fmrp-gold: #f5c451;
	--fmrp-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
	--fmrp-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
	position: relative;
	max-width: 1360px;
	margin: 0 auto 48px;
	background: var(--fmrp-bg);
	color: var(--fmrp-text);
	font-family: 'Archivo', 'Inter', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(10, 0, 30, .55);
	isolation: isolate;
}
.fmrp *, .fmrp *::before, .fmrp *::after { box-sizing: border-box; }
.fmrp h1, .fmrp h2, .fmrp p, .fmrp ol, .fmrp ul { margin: 0; padding: 0; }
.fmrp ol, .fmrp ul { list-style: none; }
.fmrp [hidden] { display: none !important; }
.fmrp label, .fmrp p { color: inherit; font-family: inherit; }
.fmrp p { font-size: inherit; line-height: inherit; }
.fmrp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.fmrp-admin-banner {
	position: relative; z-index: 3;
	padding: 10px 18px; font-size: 13.5px; color: #1b0b2b; background: linear-gradient(90deg, #ffd36b, #ff9a3c);
}

/* Hero */
.fmrp-hero { position: relative; min-height: 420px; overflow: hidden; }
.fmrp-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fmrp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, rgba(11, 5, 24, 0), var(--fmrp-bg)); }
.fmrp-hero-inner { position: relative; z-index: 2; padding: 40px 48px 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fmrp-live {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
	padding: 6px 12px; border-radius: 999px; background: rgba(13, 4, 32, .62); border: 1px solid rgba(62, 230, 214, .45);
	font-family: var(--fmrp-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; color: var(--fmrp-teal);
}
.fmrp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fmrp-teal); box-shadow: 0 0 12px var(--fmrp-teal); display: inline-block; animation: fmrp-pulse 1.8s ease-in-out infinite; }
.fmrp-sign {
	font-family: 'Monoton', var(--fmrp-display); font-size: 58px; line-height: 1.05; letter-spacing: .06em; color: #ffe3f1;
	text-shadow: 0 0 4px #fff, 0 0 12px #ff3fa0, 0 0 26px #ff3fa0, 0 0 52px #ff3fa0, 0 0 90px #ff2e88;
	animation: fmrp-flick 6s linear infinite;
}
.fmrp-script {
	font-family: 'Yellowtail', cursive; font-size: 54px; line-height: 1; margin: -2px 0 12px 6px; color: #e9fffc;
	text-shadow: 0 0 4px #fff, 0 0 12px #3ee6d6, 0 0 28px #3ee6d6, 0 0 56px #11b8aa;
	animation: fmrp-buzz 2.4s ease-in-out infinite;
}
.fmrp .fmrp-title {
	font-family: var(--fmrp-display); font-weight: 400; font-size: 52px; line-height: 1; text-transform: uppercase; color: #fff;
	letter-spacing: .01em; text-shadow: 0 4px 24px rgba(13, 4, 32, .8);
	white-space: normal; overflow-wrap: break-word; max-width: 100%; margin: 0;
}
.fmrp .fmrp-title span { color: var(--fmrp-pink); text-shadow: 0 0 18px rgba(255, 63, 160, .55); }

/* Body */
.fmrp-body { position: relative; z-index: 2; padding: 0 40px 40px; margin-top: -84px; display: flex; flex-direction: column; gap: 28px; }
.fmrp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fmrp-stat {
	padding: 22px 24px; border-radius: 18px; background: var(--fmrp-panel); border: 1px solid var(--fmrp-line);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(10, 0, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
	display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.fmrp-num { font-family: var(--fmrp-display); font-size: 50px; line-height: 1; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.fmrp .fmrp-lbl { font-size: 15px; color: var(--fmrp-muted); }

.fmrp-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.fmrp-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fmrp-card {
	padding: 26px; border-radius: 22px; background: var(--fmrp-panel); border: 1px solid var(--fmrp-line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.fmrp .fmrp-h2 { font-family: var(--fmrp-display); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.fmrp .fmrp-sub { font-size: 14px; color: var(--fmrp-dim); margin-top: 4px; }
.fmrp .fmrp-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--fmrp-mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fmrp-dim); }

/* Leaderboard */
.fmrp-board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fmrp-count { flex: none; font-family: var(--fmrp-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fmrp-dim); padding: 6px 10px; border: 1px dashed #4a3570; border-radius: 8px; }
.fmrp .fmrp-empty { padding: 26px 18px; border-radius: 14px; border: 1px dashed #4a3570; color: var(--fmrp-muted); text-align: center; }
.fmrp-rows { display: flex; flex-direction: column; gap: 8px; }
.fmrp-row {
	display: grid; grid-template-columns: 52px minmax(0, 1fr) 130px 128px 84px; align-items: center; gap: 12px;
	padding: 11px 16px; border-radius: 12px; background: var(--fmrp-row); border: 1px solid var(--fmrp-row-line);
}
.fmrp-row.is-podium { background: #1a0f2e; border-color: #4a2f72; }
.fmrp-row.is-you { border-color: var(--fmrp-pink); }
.fmrp-rank { font-family: var(--fmrp-display); font-size: 26px; line-height: 1; color: var(--fmrp-dim); }
.fmrp-rank.r1 { color: var(--fmrp-gold); text-shadow: 0 0 12px rgba(245, 196, 81, .5); }
.fmrp-rank.r2 { color: #d9d6e8; }
.fmrp-rank.r3 { color: #e09a5e; }
.fmrp-name { font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.fmrp-name em { font-style: normal; font-weight: 400; color: var(--fmrp-pink); }
.fmrp-name small { font-size: 13px; font-weight: 400; color: var(--fmrp-muted); white-space: normal; }
.fmrp-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-family: var(--fmrp-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.fmrp-oct { font-family: var(--fmrp-mono); font-size: 15px; font-weight: 700; color: var(--fmrp-gold); text-align: right; white-space: nowrap; }
.fmrp-oct small { font-size: 11px; font-weight: 500; color: #b39350; }
.fmrp-jobs { font-family: var(--fmrp-mono); font-size: 13.5px; color: var(--fmrp-dim); text-align: right; white-space: nowrap; }
.fmrp-you { margin-top: 4px; padding: 13px 16px; background: linear-gradient(90deg, #2a0f3a, #1a1430); border-color: var(--fmrp-pink); box-shadow: 0 0 22px rgba(255, 63, 160, .18); }
.fmrp-you .fmrp-rank { color: var(--fmrp-pink); }

.fmrp .fmrp-optin { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-size: 14px; color: var(--fmrp-muted); }
.fmrp .fmrp-check { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--fmrp-muted); font-size: 14px; }
.fmrp-check input { width: 20px; height: 20px; accent-color: var(--fmrp-pink); flex: none; margin: 0; }
.fmrp-optin-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 12px; background: #120a22; border: 1px solid var(--fmrp-row-line); }
.fmrp .fmrp-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fmrp-radio input { accent-color: var(--fmrp-pink); margin: 0; }
.fmrp-optin input[type="text"] { flex: 1 1 160px; min-width: 0; max-width: 240px; padding: 8px 10px; border-radius: 8px; border: 1px solid #4a3570; background: #0b0518; color: #fff; font: inherit; }
.fmrp-optin button { padding: 8px 16px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #ff3fa0, #ff9a3c); color: #1b0b2b; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.fmrp-optin button:focus-visible, .fmrp-optin input:focus-visible { outline: 2px solid var(--fmrp-teal); outline-offset: 2px; }
.fmrp .fmrp-optin-msg { font-size: 13px; color: var(--fmrp-dim); }
.fmrp .fmrp-optin-msg.is-error { color: #ff8a8a; }
.fmrp-optin-msg b { color: #fff; }

/* Rewards */
.fmrp-rewards { background: linear-gradient(160deg, rgba(48, 30, 8, .9), rgba(24, 10, 30, .9)); border-color: #6a5426; }
.fmrp-rw { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15.5px; color: var(--fmrp-text); }
.fmrp-rw > span:last-child { text-align: right; }
.fmrp-rw > span:first-child { flex: none; font-family: var(--fmrp-display); font-size: 24px; color: var(--fmrp-dim); }
.fmrp-rw .r1 { color: var(--fmrp-gold) !important; }
.fmrp-rw .r2 { color: #d9d6e8 !important; }
.fmrp-rw .r3 { color: #e09a5e !important; }

/* Medals */
.fmrp-medals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.fmrp-medals li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: var(--fmrp-muted); }
.fmrp-medals li.is-earned svg { filter: drop-shadow(0 0 8px rgba(255, 92, 158, .35)); }
.fmrp-medals li.is-locked { opacity: .38; }

/* Feed */
.fmrp-feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fmrp-src { font-family: var(--fmrp-mono); font-size: 11px; color: var(--fmrp-dim); }
.fmrp-feed-list { display: flex; flex-direction: column; gap: 8px; }
.fmrp-ev { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--fmrp-row); border: 1px solid var(--fmrp-row-line); }
.fmrp-ev.is-new { animation: fmrp-in .5s ease-out both; }
.fmrp-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--fmrp-display); font-size: 15px; }
.fmrp-tx { font-size: 14px; line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
.fmrp-tx > span { color: var(--fmrp-muted); }
.fmrp-ev time { font-family: var(--fmrp-mono); font-size: 12px; color: var(--fmrp-dim); text-align: right; }
.fmrp .fmrp-feed-empty { padding: 14px; border-radius: 12px; border: 1px dashed #4a3570; font-size: 13.5px; color: var(--fmrp-muted); }
.fmrp .fmrp-note { padding: 10px 12px; border-radius: 10px; border: 1px dashed #4a3570; font-size: 12.5px; line-height: 1.5; color: var(--fmrp-dim); }

/* Motion */
.fmrp-star { animation: fmrp-twinkle 3.2s ease-in-out infinite; }
@keyframes fmrp-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes fmrp-flick { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .4; } }
@keyframes fmrp-buzz { 0%, 100% { opacity: 1; } 50% { opacity: .9; } }
@keyframes fmrp-pulse { 0%, 100% { box-shadow: 0 0 6px var(--fmrp-teal); } 50% { box-shadow: 0 0 16px var(--fmrp-teal); } }
@keyframes fmrp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.fmrp *, .fmrp-star { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1180px) {
	.fmrp-cols { grid-template-columns: minmax(0, 1fr); }
	.fmrp-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.fmrp-side .fmrp-feed { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.fmrp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fmrp-sign { font-size: 44px; }
	.fmrp-script { font-size: 42px; }
	.fmrp .fmrp-title { font-size: 42px; }
	.fmrp-hero { min-height: 380px; }
	.fmrp-hero-inner { padding: 32px 32px 120px; }
	.fmrp-body { padding: 0 24px 28px; }
}
@media (max-width: 760px) {
	.fmrp-side { display: flex; }
	.fmrp-row { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "rank name oct" "rank tier jobs"; row-gap: 6px; padding: 10px 12px; }
	.fmrp-rank { grid-area: rank; font-size: 22px; }
	.fmrp-name { grid-area: name; }
	.fmrp-tier { grid-area: tier; }
	.fmrp-oct { grid-area: oct; }
	.fmrp-jobs { grid-area: jobs; }
}
@media (max-width: 560px) {
	.fmrp { border-radius: 18px; font-size: 15px; }
	.fmrp-hero { min-height: 330px; }
	.fmrp-hero-inner { padding: 22px 18px 110px; }
	.fmrp-live { font-size: 11px; letter-spacing: .16em; margin-bottom: 10px; }
	.fmrp-sign { font-size: 30px; }
	.fmrp-script { font-size: 34px; margin-bottom: 8px; }
	.fmrp .fmrp-title { font-size: 30px; }
	.fmrp-body { padding: 0 14px 20px; gap: 18px; margin-top: -70px; }
	.fmrp-stats { gap: 10px; }
	.fmrp-stat { padding: 14px; }
	.fmrp-num { font-size: 34px; }
	.fmrp-lbl { font-size: 13px; }
	.fmrp-card { padding: 18px 14px; border-radius: 18px; }
	.fmrp .fmrp-h2 { font-size: 26px; }
	.fmrp-board-head { flex-direction: column; }
	.fmrp-medals { gap: 12px 4px; }
	.fmrp-medals svg { width: 48px; height: 48px; }
	.fmrp-rw { font-size: 14.5px; }
}
