nakama/frontend/src/pages/MonthlyLadder.css

522 lines
9.1 KiB
CSS
Raw Normal View History

2025-12-07 02:20:45 +00:00
.ladder-page {
min-height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
position: relative;
overflow-x: hidden;
padding-bottom: 80px;
}
/* Новогодние снежинки */
.new-year-decorations {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.snowflake {
position: absolute;
color: rgba(255, 255, 255, 0.8);
font-size: 20px;
animation: fall linear infinite;
animation-duration: 10s;
}
.snowflake:nth-child(1) {
left: 10%;
animation-delay: 0s;
animation-duration: 8s;
}
.snowflake:nth-child(2) {
left: 30%;
animation-delay: 2s;
animation-duration: 12s;
}
.snowflake:nth-child(3) {
left: 50%;
animation-delay: 4s;
animation-duration: 10s;
}
.snowflake:nth-child(4) {
left: 70%;
animation-delay: 1s;
animation-duration: 9s;
}
.snowflake:nth-child(5) {
left: 85%;
animation-delay: 3s;
animation-duration: 11s;
}
.snowflake:nth-child(6) {
left: 20%;
animation-delay: 5s;
animation-duration: 13s;
}
@keyframes fall {
0% {
transform: translateY(-100vh) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(360deg);
opacity: 0;
}
}
.ladder-header {
position: sticky;
top: 0;
background: rgba(26, 26, 46, 0.95);
backdrop-filter: blur(10px);
padding: 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
z-index: 10;
}
.ladder-header h1 {
font-size: 20px;
font-weight: 700;
background: linear-gradient(135deg, #FFD700, #FFA500, #FF6347);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.back-btn {
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
}
/* Карточка отсчета */
.countdown-card {
margin: 16px;
background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
border: 2px solid rgba(255, 215, 0, 0.3);
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.countdown-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
0%, 100% {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
}
.countdown-title {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
position: relative;
z-index: 1;
}
.countdown-title h2 {
font-size: 20px;
font-weight: 700;
color: #FFD700;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.gift-icon {
color: #FF6347;
animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.countdown-timer {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin: 20px 0;
position: relative;
z-index: 1;
}
.countdown-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.countdown-value {
font-size: 32px;
font-weight: 700;
color: #FFD700;
text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
min-width: 60px;
text-align: center;
}
.countdown-label {
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
}
.countdown-separator {
font-size: 24px;
color: #FFD700;
font-weight: 700;
margin: 0 4px;
}
.countdown-slogan {
text-align: center;
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
font-style: italic;
margin-top: 16px;
position: relative;
z-index: 1;
}
/* Топ пользователей */
.ladder-top {
margin: 16px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.ladder-top-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.ladder-top-header h2 {
font-size: 20px;
font-weight: 700;
background: linear-gradient(135deg, #FFD700, #FFA500);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.info-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: rgba(255, 215, 0, 0.2);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 20px;
color: #FFD700;
font-size: 13px;
cursor: pointer;
transition: all 0.3s;
}
.info-btn:active {
transform: scale(0.95);
background: rgba(255, 215, 0, 0.3);
}
.top-users-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.top-user-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s;
}
.top-user-item.current-user {
background: rgba(255, 215, 0, 0.15);
border-color: rgba(255, 215, 0, 0.4);
box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.user-rank {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
flex-shrink: 0;
}
.rank-icon {
filter: drop-shadow(0 0 8px currentColor);
}
.rank-icon.gold {
color: #FFD700;
}
.rank-icon.silver {
color: #C0C0C0;
}
.rank-icon.bronze {
color: #CD7F32;
}
.rank-number {
font-size: 20px;
font-weight: 700;
color: rgba(255, 255, 255, 0.8);
}
.user-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(255, 215, 0, 0.3);
flex-shrink: 0;
}
.top-user-item.current-user .user-avatar {
border-color: #FFD700;
box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.user-info {
flex: 1;
min-width: 0;
}
.user-name {
font-size: 16px;
font-weight: 600;
color: #fff;
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}
.user-tickets {
font-size: 14px;
color: #FFD700;
font-weight: 500;
}
.current-badge {
color: #FFD700;
filter: drop-shadow(0 0 4px #FFD700);
animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Карточка текущего пользователя */
.current-user-card {
margin: 16px;
background: rgba(255, 215, 0, 0.1);
border: 1px solid rgba(255, 215, 0, 0.3);
}
.current-user-card h3 {
font-size: 18px;
font-weight: 600;
color: #FFD700;
margin-bottom: 12px;
}
.current-user-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
}
/* Модальное окно с информацией */
.info-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
animation: fadeIn 0.3s;
}
.info-modal {
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
background: linear-gradient(135deg, #1a1a2e, #16213e);
border: 2px solid rgba(255, 215, 0, 0.3);
position: relative;
}
.info-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: sticky;
top: 0;
background: rgba(26, 26, 46, 0.95);
backdrop-filter: blur(10px);
z-index: 10;
}
.info-modal-header h2 {
font-size: 20px;
font-weight: 700;
color: #FFD700;
}
.close-btn {
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border: none;
font-size: 24px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
line-height: 1;
}
.info-modal-content {
padding: 16px;
}
.info-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.info-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.info-section h3 {
font-size: 16px;
font-weight: 600;
color: #FFD700;
margin-bottom: 8px;
}
.info-section p {
font-size: 14px;
color: rgba(255, 255, 255, 0.9);
line-height: 1.6;
margin-bottom: 4px;
}
.info-limit {
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-style: italic;
}
.info-section.anti-fraud {
background: rgba(255, 69, 0, 0.1);
padding: 12px;
border-radius: 8px;
border: 1px solid rgba(255, 69, 0, 0.3);
}
.info-section.anti-fraud h3 {
color: #FF6347;
}
.loading-state {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 215, 0, 0.2);
border-top-color: #FFD700;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Темная тема - дополнительные стили */
[data-theme="dark"] .ladder-page {
background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
}