.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

.hero-desc {
    color: white;
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    font-weight: 600;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21.25rem, 1fr));
    gap: 2rem;
}

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

.game-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;

    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card p {
    margin-bottom: 0.2rem;
}


.game-thumb {
    width: 100%;
    height: 12.5rem;
    object-fit: cover;
    border-radius: 16px;
    background: #f1f5f9;
    display: block;
    margin-bottom: 1.25rem;
}

.card-image {
    position: relative;
    width: 100%;
    height: 12.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 16px;
}

.card-image .game-thumb {
    margin-bottom: 0;
}

.player-count-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 0.625rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3), 0 0 0 0.125rem rgba(255, 255, 255, 0.1);
    z-index: 10;
    line-height: 1;
    transition: background 0.2s ease;
}

.player-count-badge:hover {
    background: rgba(0, 0, 0, 0.9);
}

.stat-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-count-badge .material-symbols-rounded {
    color: #0ea5e9;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.player-count-badge span:last-child {
    line-height: 1;
    display: flex;
    align-items: center;
}

.for-parents-badge {
    background: var(--c-pink);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0.125rem 0.5rem rgba(236, 72, 153, 0.3);
    margin-bottom: 1rem;
}

.news-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 800;
    font-family: var(--font-display);
    cursor: pointer;
    font-size: 1rem;
    border: 3px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
    outline: none;
}

.filter-btn:hover {
    filter: brightness(0.95);
}

.filter-btn:focus {

    border-color: var(--c-accent);
}

.filter-btn:active {
    transform: translateY(2px);
}

.filter-btn.active {
    background: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}

.for-kids-badge {
    background: var(--c-accent);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0.125rem 0.5rem rgba(14, 165, 233, 0.3);
    margin-bottom: 1rem;
}

.blog-card {
    position: relative;
}

.tag-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f1f5f9;
    color: var(--c-text-sub);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.tag .icon {
    vertical-align: middle;
}


.scroll-container {
    background: var(--c-accent);
    border-radius: 40px;
    padding: 4rem 1rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 6rem;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 20%, transparent 20%);
    background-size: 1.25rem 1.25rem;
}

.scroll-container.blog-theme {
    background-color: var(--c-pink);
}

.scroll-container h2 {
    color: white;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.scroll-container p {
    color: white;
    font-weight: 700;
    opacity: 1;
    font-size: 1.2rem;
}

.gallery-outer {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-wrapper {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 1rem 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    width: 100%;
    justify-content: flex-start;
    -ms-overflow-style: none;
}

.scroll-wrapper:has(.res-card:nth-child(-n+3):last-child) {
    justify-content: center;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.res-card {
    min-width: min(15.625rem, 80vw);
    max-width: 21.875rem;
    background: white;
    color: var(--c-text-main);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;

    transition: background-color 0.2s;
}


.res-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.res-card:nth-child(even) {
    transform: rotate(2deg);
    background: #fdfbf7;
}


.res-card:only-child {
    transform: none !important;
    margin: 0 !important;
}


.res-card:hover {
    background-color: #fafafa;
}

.res-icon {
    font-size: 3rem;
    color: var(--c-accent);
    margin-bottom: 1rem;
}

.blog-icon {
    font-size: 3rem;
    color: var(--c-pink);
    margin-bottom: 0.5rem;
}

.scroll-btn {
    background: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    color: var(--c-text-sub);
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.scroll-btn:active {
    transform: translateY(2px);

}

.scroll-btn:hover {
    background-color: #f1f5f9;
}

@media (max-width: 767px) {
    .scroll-wrapper:has(.res-card:nth-child(-n+3):last-child) {
        justify-content: flex-start;
    }

    .gallery-outer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-wrapper {
        flex-basis: 100%;
        order: 1;
    }

    .scroll-btn {
        order: 2;
        position: static;
        transform: none;
    }
}

.parents-panel {
    background: white;
    border-radius: 24px;
    padding: 4rem 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .parents-panel {
        padding: 3rem 1.5rem;
    }
}

.parents-panel h2 {
    color: #1e293b;
    font-family: var(--font-body);
    font-weight: 800;
}

.parents-panel h3 {
    color: var(--c-primary);
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.parents-panel p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.parents-panel li {
    color: #475569;
}

.contact-form {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form h3 {
    color: var(--c-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--c-text-main);
    font-family: var(--font-display);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}


.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 1rem;
    font-size: 0.95rem;
    margin-top: 6rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer a {
    color: #fff;
    opacity: 0.8;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-legal {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    text-align: left;
    border-top: 1px solid #334155;
    padding-top: 2rem;
}

.footer-legal p {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.footer-legal strong {
    color: #e2e8f0;
}


.feedback-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    width: 300px;

    border: 3px solid var(--c-highlight);
    z-index: 1000;
    font-family: var(--font-display);
    text-align: center;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);


    background-image: radial-gradient(var(--c-bg) 20%, transparent 20%);
    background-size: 10px 10px;
}

.feedback-widget.show {
    transform: translateY(0);
}

.fb-title {
    font-size: 1.2rem;
    color: var(--c-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.fb-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.star-icon {
    font-size: 2rem;
    color: #cbd5e1;
    transition: all 0.2s;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.star-icon.active {
    color: var(--c-highlight);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}


.star-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.fb-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fb-extra.open {
    max-height: 200px;
}

.fb-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 0.5rem;
}

.fb-textarea:focus {
    outline: none;
    border-color: var(--c-accent);
}

.fb-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--c-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-display);
}

.fb-submit:hover {
    background: var(--c-primary-dark);
}

.fb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}


.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;

    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-text-main);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid transparent;
    max-width: 90vw;
    width: max-content;
    pointer-events: none;
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.custom-toast.success {
    border-color: #22c55e;
    color: #15803d;
}

.custom-toast.error {
    border-color: #ef4444;
    color: #b91c1c;
}

.custom-toast .icon {
    font-size: 1.5rem;
}


.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;

    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
    }
}

.discord-btn {
    width: 54px;
    height: 54px;

    border-radius: 12px;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s, filter 0.2s;
    flex-shrink: 0;

    font-weight: 700;
}

.discord-btn svg {
    height: 24px;
    width: auto;
    fill: white;
}

.discord-btn:hover {
    filter: brightness(1.1);
}

.discord-btn:active {
    transform: translateY(2px);

}

.game-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.coming-soon-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--c-primary);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.9rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.announcement-banner {
    background: var(--c-pink);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 2000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.announcement-banner p {
    margin: 0;
    color: white;
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.4;
}

.announcement-banner .icon {
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .announcement-banner {
        font-size: 0.85rem;
        padding: 1rem;
    }
}