* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f3edef 0%, #ecd0e0 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.main-title {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-weight: 700;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.social-link:nth-child(1) { animation-delay: 0.2s; }
.social-link:nth-child(2) { animation-delay: 0.3s; }
.social-link:nth-child(3) { animation-delay: 0.4s; }
.social-link:nth-child(4) { animation-delay: 0.5s; }
.social-link:nth-child(5) { animation-delay: 0.6s; }

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
}

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

.social-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.social-text {
    white-space: nowrap;
}

/* Platform-specific colors */
.twitch-link {
    background: linear-gradient(135deg, #9146ff 0%, #6441a5 100%);
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.twitch-link:hover {
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.5);
    background: linear-gradient(135deg, #a970ff 0%, #7551b5 100%);
}

.kick-link {
    background: #53fc18;
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(83, 252, 24, 0.35);
}

.kick-link:hover {
    background: #6cff37;
    box-shadow: 0 6px 20px rgba(83, 252, 24, 0.55);
}

.discord-link {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-link:hover {
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #6b76ff 0%, #5865f2 100%);
}

.telegram-link {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    box-shadow: 0 4px 15px rgba(42, 171, 238, 0.3);
}

.telegram-link:hover {
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.5);
    background: linear-gradient(135deg, #45b9f5 0%, #2aabee 100%);
}

.youtube-link {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-link:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
}

.website-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.website-link:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7a8df5 0%, #8659b5 100%);
}

.time-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s backwards, pulse-notice 2s ease-in-out infinite;
}

.notice-icon {
    font-size: 3rem;
    line-height: 1;
    animation: swing 1.5s ease-in-out infinite;
}

.notice-content {
    text-align: left;
}

.notice-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notice-text {
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notice-text strong {
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: underline;
}

@keyframes pulse-notice {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 107, 107, 0.5);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.current-time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.clock-icon {
    font-size: 3rem;
    line-height: 1;
    animation: rotate-clock 4s linear infinite;
}

@keyframes rotate-clock {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.time-display {
    text-align: left;
}

.time-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.time-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f5576c;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.day-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.day-card:nth-child(1) { animation-delay: 0.1s; }
.day-card:nth-child(2) { animation-delay: 0.2s; }
.day-card:nth-child(3) { animation-delay: 0.3s; }
.day-card:nth-child(4) { animation-delay: 0.4s; }
.day-card:nth-child(5) { animation-delay: 0.5s; }

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.day-header {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.monday {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tuesday {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wednesday {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.thursday {
    background: linear-gradient(135deg, #00d9ff 0%, #ff6bcb 100%);
}

.friday {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.saturday {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.weekend {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 50%, #a8edea 100%);
}

.sunday {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.weekend-card {
    opacity: 0.85;
}

.weekend-content {
    padding: 30px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.weekend-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.weekend-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    font-style: normal;
}

.weekend-text-large {
    font-size: 1.6rem;
    font-weight: 400;
    color: #555;
}

.weekend-emoji {
    font-size: 2.5rem;
    margin-top: 8px;
}

.activities {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    min-height: 60px;
}

.activity:last-child {
    margin-bottom: 0;
}

.activity:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 1.5rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.game-name {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hashtag {
    font-weight: 700;
    color: #f5576c;
}

.new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

/* Patch badge - for НОВЫЙ ПАТЧ */
.patch-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6600 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5);
    animation: patch-pulse 2s ease-in-out infinite;
}

@keyframes patch-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Release badge - for НОВИНКА */
.release-badge {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 3px 12px rgba(240, 147, 251, 0.5);
    animation: release-pulse 1.5s ease-in-out infinite;
}

@keyframes release-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(240, 147, 251, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(240, 147, 251, 0.8);
    }
}

/* Marathon badge - for МАРАФОН */
.marathon-badge {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 12px rgba(250, 112, 154, 0.5);
    animation: marathon-shine 2s linear infinite;
}

@keyframes marathon-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.marathon-badge {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 25%, #fa709a 50%, #fee140 75%, #fa709a 100%);
    background-size: 200% 100%;
}

/* Warning activity styles */
.warning-activity {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    animation: warning-pulse 1.5s ease-in-out infinite;
}

.warning-text {
    font-weight: 700;
    color: #ff9800;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

@keyframes warning-pulse {
    0%, 100% {
        border-color: #ffc107;
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    50% {
        border-color: #ff9800;
        box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
    }
}

/* Maybe activity styles - muted version of warning */
.maybe-activity {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.08) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    animation: maybe-pulse 2s ease-in-out infinite;
    justify-content: center;
}

.maybe-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.maybe-text {
    font-weight: 500;
    color: #b08000;
    font-size: 0.95rem;
    line-height: 1.4;
}

.maybe-emoji {
    font-size: 2rem;
    margin-top: 10px;
}

.maybe-subtext {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

@keyframes maybe-pulse {
    0%, 100% {
        border-color: rgba(255, 193, 7, 0.4);
        box-shadow: 0 0 3px rgba(255, 193, 7, 0.15);
    }
    50% {
        border-color: rgba(255, 152, 0, 0.5);
        box-shadow: 0 0 8px rgba(255, 152, 0, 0.25);
    }
}

/* Subathon special event styles */
.subathon-card {
    border: none;
}

.subathon-content {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: white;
    border-radius: 12px;
}

.subathon-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: subathon-icon-pulse 1.5s ease-in-out infinite;
}

@keyframes subathon-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.subathon-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    animation: subathon-text-glow 2s ease-in-out infinite;
}

@keyframes subathon-text-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.subathon-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 5px;
    letter-spacing: 2px;
    animation: subathon-subtitle-blink 1.5s ease-in-out infinite;
}

@keyframes subathon-subtitle-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.youtube-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.youtube-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
}

.activity-note {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    background: rgba(255, 235, 205, 0.5);
    border-radius: 6px;
    font-style: italic;
}

.preregister-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.preregister-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7a8ef0 0%, #8a5bb8 100%);
}

.preregister-button:active {
    transform: translateY(-1px) scale(1.03);
}

.stream-note {
    margin-top: 12px;
    padding: 12px 15px;
    background: rgba(255, 235, 205, 0.5);
    border-left: 3px solid #ffa500;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.activity.cancelled {
    opacity: 0.7;
}

.activity.cancelled s {
    color: #888;
}

.activity.cancelled s .game-name {
    background: linear-gradient(135deg, #888 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cancel-reason {
    display: inline-block;
    font-size: 0.85rem;
    color: #d9534f;
    font-style: italic;
    margin-left: 5px;
}

.cancelled-notice {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.15) 100%);
    border: 2px solid #dc3545;
    border-radius: 10px;
}

.cancelled-text {
    font-weight: 700;
    color: #dc3545;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Design */

@media (max-width: 1200px) {
    .schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-title {
        font-size: 2rem;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .social-icon {
        font-size: 1.1rem;
    }

    .time-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .notice-icon {
        font-size: 2.5rem;
    }

    .current-time-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .clock-icon {
        font-size: 2.5rem;
    }

    .time-display {
        text-align: center;
    }

    .time-label {
        font-size: 0.9rem;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .gacha-test-section {
        padding: 30px 20px;
    }

    .gacha-test-icon {
        font-size: 3rem;
    }

    .gacha-test-title {
        font-size: 1.6rem;
    }

    .gacha-test-description {
        font-size: 1rem;
    }

    .gacha-test-button {
        font-size: 1.1rem;
        padding: 12px 28px;
    }

    .weekend-content {
        padding: 30px 20px;
    }

    .weekend-icon {
        font-size: 3rem;
    }

    .weekend-text {
        font-size: 1.3rem;
    }

    .new-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .stream-note {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .notice-content {
        text-align: center;
    }

    .notice-title {
        font-size: 1.1rem;
    }

    .notice-text {
        font-size: 1rem;
    }

    .notice-text strong {
        font-size: 1.2rem;
    }

    .schedule {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .day-header {
        font-size: 1.1rem;
        padding: 15px;
    }

    .activities {
        padding: 15px;
    }

    .activity {
        padding: 12px;
        flex-wrap: wrap;
    }

    .activity-text {
        font-size: 0.9rem;
    }

    .icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .schedule {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 10px;
        margin-top: 20px;
    }

    .social-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .social-icon {
        font-size: 1rem;
    }

    .time-notice {
        padding: 15px;
        gap: 10px;
    }

    .notice-icon {
        font-size: 2rem;
    }

    .current-time-box {
        padding: 15px;
        gap: 10px;
    }

    .clock-icon {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.85rem;
    }

    .time-value {
        font-size: 1.2rem;
    }

    .gacha-test-section {
        padding: 25px 15px;
    }

    .gacha-test-icon {
        font-size: 2.5rem;
    }

    .gacha-test-title {
        font-size: 1.4rem;
    }

    .gacha-test-description {
        font-size: 0.95rem;
    }

    .gacha-test-button {
        font-size: 1rem;
        padding: 10px 24px;
    }

    .weekend-content {
        padding: 25px 15px;
    }

    .weekend-icon {
        font-size: 2.5rem;
    }

    .weekend-text {
        font-size: 1.1rem;
    }

    .new-badge {
        font-size: 0.6rem;
        padding: 1px 5px;
    }

    .stream-note {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .notice-title {
        font-size: 1rem;
    }

    .notice-text {
        font-size: 0.9rem;
    }

    .notice-text strong {
        font-size: 1.1rem;
    }

    .activity {
        padding: 10px;
    }

    .activity-text {
        font-size: 0.85rem;
    }
}

/* GachaGamesTest Card in Grid */
.gacha-card {
    display: flex;
    flex-direction: column;
}

.gacha-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gacha-card-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gacha-card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.gacha-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    transition: all 0.3s ease;
}

.gacha-card-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

/* GachaGamesTest Section */
.gacha-test-section {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}


.gacha-test-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.gacha-test-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.gacha-test-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gacha-test-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    transition: all 0.3s ease;
}

.gacha-test-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.6);
    background: linear-gradient(135deg, #ff9ff3 0%, #ff6b7a 100%);
}

.gacha-test-button:active {
    transform: translateY(-1px) scale(1.03);
}

.button-icon {
    font-size: 1.3rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Falling Cherry Blossom Petals Animation */
.falling-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    font-size: 1.5rem;
    top: -50px;
    animation: petalFall linear infinite;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(255, 183, 197, 0.6));
}

/* Different positions and speeds for each petal */
.petal:nth-child(1) {
    left: 3%;
    font-size: 1.2rem;
    animation-duration: 14s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 10%;
    font-size: 1.6rem;
    animation-duration: 16s;
    animation-delay: 1s;
}

.petal:nth-child(3) {
    left: 18%;
    font-size: 1.3rem;
    animation-duration: 18s;
    animation-delay: 2.5s;
}

.petal:nth-child(4) {
    left: 27%;
    font-size: 1.5rem;
    animation-duration: 15s;
    animation-delay: 0.5s;
}

.petal:nth-child(5) {
    left: 35%;
    font-size: 1.1rem;
    animation-duration: 17s;
    animation-delay: 3s;
}

.petal:nth-child(6) {
    left: 43%;
    font-size: 1.7rem;
    animation-duration: 19s;
    animation-delay: 1.5s;
}

.petal:nth-child(7) {
    left: 52%;
    font-size: 1.4rem;
    animation-duration: 14s;
    animation-delay: 4s;
}

.petal:nth-child(8) {
    left: 60%;
    font-size: 1.8rem;
    animation-duration: 16s;
    animation-delay: 2s;
}

.petal:nth-child(9) {
    left: 68%;
    font-size: 1.2rem;
    animation-duration: 18s;
    animation-delay: 3.5s;
}

.petal:nth-child(10) {
    left: 76%;
    font-size: 1.5rem;
    animation-duration: 15s;
    animation-delay: 5s;
}

.petal:nth-child(11) {
    left: 84%;
    font-size: 1.3rem;
    animation-duration: 17s;
    animation-delay: 4.5s;
}

.petal:nth-child(12) {
    left: 92%;
    font-size: 1.6rem;
    animation-duration: 19s;
    animation-delay: 6s;
}

.petal:nth-child(13) {
    left: 22%;
    font-size: 1.1rem;
    animation-duration: 20s;
    animation-delay: 7s;
}

.petal:nth-child(14) {
    left: 48%;
    font-size: 1.4rem;
    animation-duration: 15s;
    animation-delay: 5.5s;
}

.petal:nth-child(15) {
    left: 72%;
    font-size: 1.7rem;
    animation-duration: 18s;
    animation-delay: 8s;
}

@keyframes petalFall {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    8% {
        opacity: 0.8;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(40px);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}

/* ===== MONTHLY CALENDAR ===== */
.monthly-calendar {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px 24px 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.6s ease-out;
    /* prevent any child from escaping the card */
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.calendar-title-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.calendar-nav-btn {
    background: rgba(118, 75, 162, 0.08);
    border: 1px solid rgba(118, 75, 162, 0.18);
    color: #7a6e9a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}

.calendar-nav-btn:hover {
    background: rgba(118, 75, 162, 0.18);
    color: #4a2060;
    transform: translateY(-1px);
}

.calendar-nav-btn:active {
    transform: translateY(0);
}

.calendar-month-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a08abf;
    letter-spacing: 0.18em;
    opacity: 0.8;
}

.calendar-grid {
    display: grid;
    /* 7 strictly equal columns — no content can widen them */
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* Day-of-week header cells */
.cal-dow {
    background: #a4b6fb;
    color: #1e1a4a;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 10px 4px;
    border-radius: 10px;
    text-transform: uppercase;
    /* prevent text from stretching the cell */
    overflow: hidden;
    min-width: 0;
}

.cal-dow-weekend {
    background: #e1d6f5;
    color: #4a2060;
}

/* Day cells */
.cal-cell {
    background: rgba(220, 235, 255, 0.55);
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 12px;
    min-height: 90px;
    padding: 8px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    /* critical: allow cell to shrink and not push grid */
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.cal-cell:not(.cal-empty):hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.22);
    transform: translateY(-2px);
    background: rgba(210, 225, 255, 0.75);
}

.cal-cell.cal-weekend {
    background: #f4f0fc;
    border-color: rgba(161, 140, 209, 0.25);
}

.cal-cell.cal-weekend:not(.cal-empty):hover {
    background: rgba(251, 194, 235, 0.55);
    box-shadow: 0 4px 16px rgba(161, 140, 209, 0.3);
}

.cal-cell.cal-empty {
    background: rgba(200, 200, 210, 0.12);
    border-color: transparent;
    pointer-events: none;
}

/* Today highlight */
.cal-cell.cal-today {
    background: rgba(102, 126, 234, 0.22);
    border: 2px solid #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.15);
}

.cal-cell.cal-today .cal-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Date number */
.cal-date {
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Content area */
.cal-content {
    flex: 1;
    min-height: 0;
    font-size: 0.75rem;
    color: #7a6e9a;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* allow content to shrink inside the cell */
    overflow: hidden;
    min-width: 0;
}

/* ===== CALENDAR EVENT ENTRIES ===== */
/* No background override — column color (weekday/weekend) always wins */

.cal-game {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2d1f5e;
    line-height: 1.3;
    display: block;
    /* wrap long names rather than overflow */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cal-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    /* allow wrapping on narrow cells */
    white-space: normal;
    word-break: break-word;
    align-self: flex-start;
    /* cap width so it never pushes the cell */
    max-width: 100%;
    box-sizing: border-box;
}

/* GachaGamesTest — teal */
.tag-gacha {
    background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
    color: #fff;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.4);
}

/* НОВИНКА — bright cyan/turquoise */
.tag-new {
    background: linear-gradient(135deg, #00c9b1 0%, #00e5cc 100%);
    color: #003d36;
    box-shadow: 0 1px 4px rgba(0, 201, 177, 0.4);
}

/* ПАТЧ X.X — indigo */
.tag-patch {
    background: linear-gradient(135deg, #4f46e5 0%, #6d67f5 100%);
    color: #fff;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.4);
}

/* СТРИМ РАЗРАБОВ — warm amber/gold */
.tag-dev {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #3d1f00;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}

/* БЕТА — orange */
.tag-beta {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #fff;
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.4);
}

/* ГОДОВЩИНА — gold */
.tag-anniversary {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 50%, #fde68a 100%);
    color: #4a2c00;
    box-shadow: 0 1px 6px rgba(217, 119, 6, 0.55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Anniversary cell — golden glow + gradient background */
.cal-cell.cal-anniversary {
    background: linear-gradient(135deg, #fff8e1 0%, #fde68a 60%, #fbbf24 100%) !important;
    border: 2px solid #d97706 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 4px 18px rgba(217, 119, 6, 0.35);
    animation: anniversaryGlow 2.4s ease-in-out infinite;
}

.cal-cell.cal-anniversary {
    padding-top: 10px;
    gap: 8px;
}

.cal-cell.cal-anniversary .cal-date {
    background: #fff;
    color: #4a2c00;
    -webkit-text-fill-color: #4a2c00;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.4);
    border: 1px solid rgba(217, 119, 6, 0.3);
    width: 30px;
    height: 30px;
}

.cal-cell.cal-anniversary .cal-content {
    margin-top: 2px;
}

.cal-cell.cal-anniversary .cal-game {
    color: #4a2c00;
    font-weight: 800;
}

@keyframes anniversaryGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 4px 18px rgba(217, 119, 6, 0.35); }
    50%      { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.55), 0 6px 24px rgba(217, 119, 6, 0.55); }
}

/* Responsive */
@media (max-width: 700px) {
    .monthly-calendar {
        padding: 14px 8px 12px;
    }

    .calendar-month-title {
        font-size: 0.75rem;
    }

    .calendar-grid {
        gap: 3px;
    }

    .cal-dow {
        font-size: 0.65rem;
        padding: 7px 2px;
        border-radius: 7px;
        letter-spacing: 0;
    }

    .cal-cell {
        min-height: 64px;
        padding: 4px 3px 3px;
        border-radius: 8px;
    }

    .cal-date {
        font-size: 0.8rem;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }

    .cal-game {
        font-size: 0.55rem;
    }

    .cal-tag {
        font-size: 0.48rem;
        padding: 1px 3px;
        letter-spacing: 0;
    }
}

@media (max-width: 420px) {
    .monthly-calendar {
        padding: 10px 5px 10px;
    }

    .calendar-grid {
        gap: 2px;
    }

    .cal-dow {
        font-size: 0.55rem;
        padding: 5px 1px;
    }

    .cal-cell {
        min-height: 52px;
        padding: 3px 2px 2px;
    }

    .cal-date {
        font-size: 0.7rem;
        width: 17px;
        height: 17px;
    }

    .cal-game {
        font-size: 0.5rem;
    }

    .cal-tag {
        font-size: 0.42rem;
        padding: 1px 2px;
    }
}

.calendar-footer-row {
    text-align: left;
    margin-top: 14px;
}

/* ===== GACHA PROJECTS SECTION ===== */
.gacha-projects {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%;
}

.gacha-projects-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a08abf;
    letter-spacing: 0.18em;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-align: left;
}

.gacha-projects-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gacha-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gacha-card-img-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(118, 75, 162, 0.08);
    box-shadow: 0 4px 14px rgba(118, 75, 162, 0.12);
}

.gacha-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gacha-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff3399;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 51, 153, 0.45);
}

.gacha-card-title {
    color: #2d1f5e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
}

@media (max-width: 700px) {
    .gacha-projects {
        padding: 22px 18px;
    }

    .gacha-projects-title {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }

    .gacha-projects-row {
        gap: 8px;
    }

    .gacha-card-title {
        font-size: 0.7rem;
        margin-top: 6px;
    }

    .gacha-card-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 420px) {
    .gacha-projects-row {
        gap: 5px;
    }

    .gacha-card-title {
        font-size: 0.6rem;
    }
}
