ui/leaderboard.razor.scss
// Leaderboard card: deep purple-black panel with a violet frame, a yellow banner with Terry
// peeking over it, and dark rows. Poppins bold italic throughout, like the combo counter.
$ink: #140a14;
$row: #211a28;
$row-edge: #2e2537;
$frame: #4a2a7a;
$violet: #8f3dff;
$magenta: #e73bd8;
$yellow: #ffd93b;
$text: #f4eef8;
$muted: #8d8398;
$skin: #e8a57e;
Leaderboard
{
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
font-family: Poppins;
font-weight: 700;
font-style: italic;
color: $text;
align-items: center;
}
.deck
{
margin-left: 28px;
margin-top: 60px;
position: relative;
}
.card
{
position: relative;
width: 364px;
flex-direction: column;
padding: 14px 14px 12px;
background-color: rgba( 23, 18, 29, 0.94 );
border: 3px solid $frame;
border-radius: 14px 10px 18px 10px;
box-shadow: 0px 10px 30px rgba( 0, 0, 0, 0.55 );
}
// Purple tab sticking up from the top-left corner.
.tab
{
position: absolute;
left: 18px;
top: -12px;
width: 120px;
height: 12px;
background-color: $frame;
border-radius: 6px 6px 0px 0px;
transform: skewX( -20deg );
}
// --- Header ---
.header
{
position: relative;
flex-direction: column;
margin-bottom: 10px;
}
.peek
{
position: absolute;
right: 22px;
top: -58px;
width: 84px;
height: 84px;
.face
{
position: absolute;
left: 0px;
top: 0px;
width: 84px;
height: 84px;
background-image: url( /ui/leaderboard_face.png );
background-size: 100%;
background-repeat: no-repeat;
}
// "!" burst lines up and to the right of his head.
.burst
{
position: absolute;
width: 5px;
height: 16px;
background-color: $yellow;
border-radius: 3px;
}
.b1 { left: 86px; top: 4px; height: 12px; transform: rotate( 30deg ); }
.b2 { left: 94px; top: 12px; height: 12px; transform: rotate( 65deg ); }
}
.title-banner
{
flex-direction: row;
align-items: center;
padding: 6px 16px 6px 14px;
background-color: $yellow;
// Smooth gloss: pale at the top, blending evenly down to deep gold at the bottom.
background-image: linear-gradient( to bottom, #fff29e 0%, #ffe66a 30%, #ffd83a 60%, #ffc21a 100% );
border: 3px solid $ink;
border-radius: 6px;
box-shadow: 0px 4px 0px $ink;
transform: skewX( -6deg );
.title
{
font-size: 33px;
font-weight: 800;
white-space: nowrap;
letter-spacing: 0px;
text-transform: uppercase;
color: $ink;
}
}
.crown
{
width: 40px;
height: 30px;
margin-right: 10px;
background-image: url( /ui/crown.png );
background-size: 100%;
background-repeat: no-repeat;
background-tint: $ink;
&.small
{
width: 18px;
height: 14px;
margin-right: 0px;
margin-left: 4px;
background-tint: $yellow;
}
}
// Terry's hands gripping the banner edge.
.hand
{
position: absolute;
top: -8px;
width: 22px;
height: 18px;
background-color: $skin;
border: 2px solid $ink;
border-radius: 50%;
&.left { right: 82px; }
&.right { right: 22px; }
}
.switcher
{
flex-direction: row;
align-items: center;
margin-top: 10px;
padding: 6px 10px;
background-color: #1f1827;
border: 2px solid $row-edge;
border-radius: 6px;
transform: skewX( -6deg );
.arrow
{
width: 26px;
justify-content: center;
font-size: 16px;
font-style: normal;
color: $violet;
pointer-events: all;
cursor: pointer;
&:hover { color: $magenta; }
}
.subtitle
{
flex-grow: 1;
justify-content: center;
font-size: 14px;
font-weight: 600;
letter-spacing: 5px;
text-transform: uppercase;
color: $text;
}
}
// --- Rows ---
.rows
{
flex-direction: column;
}
.row
{
position: relative;
flex-direction: row;
align-items: center;
height: 42px;
padding: 0px 12px 0px 6px;
margin-bottom: 6px;
background-color: $row;
border: 1px solid $row-edge;
border-radius: 8px;
.rank
{
flex-shrink: 0;
justify-content: center;
align-items: center;
font-size: 20px;
color: $text;
&.box
{
width: 38px;
height: 32px;
background-color: #2a2233;
border-radius: 6px;
}
}
.avatar-ring
{
flex-shrink: 0;
margin: 0px 10px 0px 10px;
padding: 2px;
background-color: #3a2f45;
border-radius: 50%;
&.gold { background-color: $yellow; padding: 1px; }
}
.avatar
{
width: 28px;
height: 28px;
border-radius: 50%;
background-size: cover;
background-color: #2a2233;
&.placeholder
{
justify-content: center;
align-items: center;
font-size: 13px;
font-style: normal;
color: $text;
}
}
.name
{
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
font-size: 17px;
letter-spacing: 0.5px;
text-transform: uppercase;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
// Per-letter colours: keep spaces and clip long names (no ellipsis across letters).
.name.cycle
{
flex-direction: row;
label
{
white-space: pre;
flex-shrink: 0;
}
}
.score
{
flex-shrink: 0;
max-width: 100px;
margin-left: 8px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 19px;
}
// First place sits inside the rainbow border.
&.first
{
height: 44px;
margin-bottom: 0px;
padding-left: 12px;
border: 0px;
background-color: #1b1522;
.rank
{
flex-direction: row;
width: 44px;
justify-content: flex-start;
color: $yellow;
font-size: 22px;
}
.avatar-ring { margin-left: 4px; }
.score { font-size: 22px; }
}
// Faint dot texture behind first place's score.
.dots
{
position: absolute;
right: 70px;
top: 0px;
width: 90px;
height: 100%;
background-image: url( /ui/dots.png );
background-repeat: repeat;
background-size: 12px 12px;
background-tint: $violet;
opacity: 0.25;
}
}
// First place: the padding shows the rotating gradient behind the row as a border.
.rainbow
{
flex-direction: column;
padding: 3px;
margin-bottom: 8px;
border-radius: 10px;
box-shadow: 0px 0px 14px rgba( 255, 217, 59, 0.25 );
}
// No live scores yet.
.empty
{
height: 44px;
justify-content: center;
align-items: center;
font-size: 15px;
letter-spacing: 1px;
text-transform: uppercase;
color: $muted;
}
// YOU: the player's own row under the top 10 when they aren't in it.
.you-divider
{
justify-content: center;
height: 14px;
margin-bottom: 4px;
font-size: 12px;
letter-spacing: 4px;
color: $muted;
}
.row.you
{
border: 2px solid $magenta;
background-color: #2a1830;
margin-bottom: 0px;
.name { color: $magenta; }
}
// --- Footer ---
.footer
{
flex-direction: row;
align-items: center;
justify-content: center;
margin-top: 10px;
margin-bottom: 4px;
.tagline
{
margin: 0px 12px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
letter-spacing: 4px;
text-transform: uppercase;
color: $muted;
}
}
.corner-dots
{
position: absolute;
left: 8px;
bottom: 8px;
width: 70px;
height: 44px;
background-image: url( /ui/dots.png );
background-repeat: repeat;
background-size: 10px 10px;
background-tint: $violet;
opacity: 0.35;
}