/* Bowlby One */
@font-face {
    font-family: "Bowlby One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/BowlbyOne-Regular.woff") format("woff");
}

/* Chakra Petch */
@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url("../fonts/ChakraPetch-ExtraLight.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    src: url("../fonts/ChakraPetch-ExtraLightItalic.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/ChakraPetch-Light.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/ChakraPetch-LightItalic.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ChakraPetch-Regular.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ChakraPetch-Italic.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ChakraPetch-Medium.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ChakraPetch-MediumItalic.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/ChakraPetch-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/ChakraPetch-SemiBoldItalic.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ChakraPetch-Bold.woff") format("woff");
}

@font-face {
    font-family: "Chakra Petch";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ChakraPetch-BoldItalic.woff") format("woff");
}

.grid {
    display: grid;
    grid-template-rows: repeat(var(--bs-rows, 1), 1fr);
    grid-template-columns: repeat(var(--bs-columns, 12), 1fr);
    gap: var(--bs-gap, 1.5rem)
}

.grid .g-col-1 {
    grid-column: auto/span 1
}

.grid .g-col-2 {
    grid-column: auto/span 2
}

.grid .g-col-3 {
    grid-column: auto/span 3
}

.grid .g-col-4 {
    grid-column: auto/span 4
}

.grid .g-col-5 {
    grid-column: auto/span 5
}

.grid .g-col-6 {
    grid-column: auto/span 6
}

.grid .g-col-7 {
    grid-column: auto/span 7
}

.grid .g-col-8 {
    grid-column: auto/span 8
}

.grid .g-col-9 {
    grid-column: auto/span 9
}

.grid .g-col-10 {
    grid-column: auto/span 10
}

.grid .g-col-11 {
    grid-column: auto/span 11
}

.grid .g-col-12 {
    grid-column: auto/span 12
}

.grid .g-start-1 {
    grid-column-start: 1
}

.grid .g-start-2 {
    grid-column-start: 2
}

.grid .g-start-3 {
    grid-column-start: 3
}

.grid .g-start-4 {
    grid-column-start: 4
}

.grid .g-start-5 {
    grid-column-start: 5
}

.grid .g-start-6 {
    grid-column-start: 6
}

.grid .g-start-7 {
    grid-column-start: 7
}

.grid .g-start-8 {
    grid-column-start: 8
}

.grid .g-start-9 {
    grid-column-start: 9
}

.grid .g-start-10 {
    grid-column-start: 10
}

.grid .g-start-11 {
    grid-column-start: 11
}

@media (min-width: 576px) {
    .grid .g-col-sm-1 {
        grid-column: auto/span 1
    }

    .grid .g-col-sm-2 {
        grid-column: auto/span 2
    }

    .grid .g-col-sm-3 {
        grid-column: auto/span 3
    }

    .grid .g-col-sm-4 {
        grid-column: auto/span 4
    }

    .grid .g-col-sm-5 {
        grid-column: auto/span 5
    }

    .grid .g-col-sm-6 {
        grid-column: auto/span 6
    }

    .grid .g-col-sm-7 {
        grid-column: auto/span 7
    }

    .grid .g-col-sm-8 {
        grid-column: auto/span 8
    }

    .grid .g-col-sm-9 {
        grid-column: auto/span 9
    }

    .grid .g-col-sm-10 {
        grid-column: auto/span 10
    }

    .grid .g-col-sm-11 {
        grid-column: auto/span 11
    }

    .grid .g-col-sm-12 {
        grid-column: auto/span 12
    }

    .grid .g-start-sm-1 {
        grid-column-start: 1
    }

    .grid .g-start-sm-2 {
        grid-column-start: 2
    }

    .grid .g-start-sm-3 {
        grid-column-start: 3
    }

    .grid .g-start-sm-4 {
        grid-column-start: 4
    }

    .grid .g-start-sm-5 {
        grid-column-start: 5
    }

    .grid .g-start-sm-6 {
        grid-column-start: 6
    }

    .grid .g-start-sm-7 {
        grid-column-start: 7
    }

    .grid .g-start-sm-8 {
        grid-column-start: 8
    }

    .grid .g-start-sm-9 {
        grid-column-start: 9
    }

    .grid .g-start-sm-10 {
        grid-column-start: 10
    }

    .grid .g-start-sm-11 {
        grid-column-start: 11
    }
}

@media (min-width: 768px) {
    .grid .g-col-md-1 {
        grid-column: auto/span 1
    }

    .grid .g-col-md-2 {
        grid-column: auto/span 2
    }

    .grid .g-col-md-3 {
        grid-column: auto/span 3
    }

    .grid .g-col-md-4 {
        grid-column: auto/span 4
    }

    .grid .g-col-md-5 {
        grid-column: auto/span 5
    }

    .grid .g-col-md-6 {
        grid-column: auto/span 6
    }

    .grid .g-col-md-7 {
        grid-column: auto/span 7
    }

    .grid .g-col-md-8 {
        grid-column: auto/span 8
    }

    .grid .g-col-md-9 {
        grid-column: auto/span 9
    }

    .grid .g-col-md-10 {
        grid-column: auto/span 10
    }

    .grid .g-col-md-11 {
        grid-column: auto/span 11
    }

    .grid .g-col-md-12 {
        grid-column: auto/span 12
    }

    .grid .g-start-md-1 {
        grid-column-start: 1
    }

    .grid .g-start-md-2 {
        grid-column-start: 2
    }

    .grid .g-start-md-3 {
        grid-column-start: 3
    }

    .grid .g-start-md-4 {
        grid-column-start: 4
    }

    .grid .g-start-md-5 {
        grid-column-start: 5
    }

    .grid .g-start-md-6 {
        grid-column-start: 6
    }

    .grid .g-start-md-7 {
        grid-column-start: 7
    }

    .grid .g-start-md-8 {
        grid-column-start: 8
    }

    .grid .g-start-md-9 {
        grid-column-start: 9
    }

    .grid .g-start-md-10 {
        grid-column-start: 10
    }

    .grid .g-start-md-11 {
        grid-column-start: 11
    }
}

@media (min-width: 992px) {
    .grid .g-col-lg-1 {
        grid-column: auto/span 1
    }

    .grid .g-col-lg-2 {
        grid-column: auto/span 2
    }

    .grid .g-col-lg-3 {
        grid-column: auto/span 3
    }

    .grid .g-col-lg-4 {
        grid-column: auto/span 4
    }

    .grid .g-col-lg-5 {
        grid-column: auto/span 5
    }

    .grid .g-col-lg-6 {
        grid-column: auto/span 6
    }

    .grid .g-col-lg-7 {
        grid-column: auto/span 7
    }

    .grid .g-col-lg-8 {
        grid-column: auto/span 8
    }

    .grid .g-col-lg-9 {
        grid-column: auto/span 9
    }

    .grid .g-col-lg-10 {
        grid-column: auto/span 10
    }

    .grid .g-col-lg-11 {
        grid-column: auto/span 11
    }

    .grid .g-col-lg-12 {
        grid-column: auto/span 12
    }

    .grid .g-start-lg-1 {
        grid-column-start: 1
    }

    .grid .g-start-lg-2 {
        grid-column-start: 2
    }

    .grid .g-start-lg-3 {
        grid-column-start: 3
    }

    .grid .g-start-lg-4 {
        grid-column-start: 4
    }

    .grid .g-start-lg-5 {
        grid-column-start: 5
    }

    .grid .g-start-lg-6 {
        grid-column-start: 6
    }

    .grid .g-start-lg-7 {
        grid-column-start: 7
    }

    .grid .g-start-lg-8 {
        grid-column-start: 8
    }

    .grid .g-start-lg-9 {
        grid-column-start: 9
    }

    .grid .g-start-lg-10 {
        grid-column-start: 10
    }

    .grid .g-start-lg-11 {
        grid-column-start: 11
    }
}

@media (min-width: 1200px) {
    .grid .g-col-xl-1 {
        grid-column: auto/span 1
    }

    .grid .g-col-xl-2 {
        grid-column: auto/span 2
    }

    .grid .g-col-xl-3 {
        grid-column: auto/span 3
    }

    .grid .g-col-xl-4 {
        grid-column: auto/span 4
    }

    .grid .g-col-xl-5 {
        grid-column: auto/span 5
    }

    .grid .g-col-xl-6 {
        grid-column: auto/span 6
    }

    .grid .g-col-xl-7 {
        grid-column: auto/span 7
    }

    .grid .g-col-xl-8 {
        grid-column: auto/span 8
    }

    .grid .g-col-xl-9 {
        grid-column: auto/span 9
    }

    .grid .g-col-xl-10 {
        grid-column: auto/span 10
    }

    .grid .g-col-xl-11 {
        grid-column: auto/span 11
    }

    .grid .g-col-xl-12 {
        grid-column: auto/span 12
    }

    .grid .g-start-xl-1 {
        grid-column-start: 1
    }

    .grid .g-start-xl-2 {
        grid-column-start: 2
    }

    .grid .g-start-xl-3 {
        grid-column-start: 3
    }

    .grid .g-start-xl-4 {
        grid-column-start: 4
    }

    .grid .g-start-xl-5 {
        grid-column-start: 5
    }

    .grid .g-start-xl-6 {
        grid-column-start: 6
    }

    .grid .g-start-xl-7 {
        grid-column-start: 7
    }

    .grid .g-start-xl-8 {
        grid-column-start: 8
    }

    .grid .g-start-xl-9 {
        grid-column-start: 9
    }

    .grid .g-start-xl-10 {
        grid-column-start: 10
    }

    .grid .g-start-xl-11 {
        grid-column-start: 11
    }
}

@media (min-width: 1400px) {
    .grid .g-col-xxl-1 {
        grid-column: auto/span 1
    }

    .grid .g-col-xxl-2 {
        grid-column: auto/span 2
    }

    .grid .g-col-xxl-3 {
        grid-column: auto/span 3
    }

    .grid .g-col-xxl-4 {
        grid-column: auto/span 4
    }

    .grid .g-col-xxl-5 {
        grid-column: auto/span 5
    }

    .grid .g-col-xxl-6 {
        grid-column: auto/span 6
    }

    .grid .g-col-xxl-7 {
        grid-column: auto/span 7
    }

    .grid .g-col-xxl-8 {
        grid-column: auto/span 8
    }

    .grid .g-col-xxl-9 {
        grid-column: auto/span 9
    }

    .grid .g-col-xxl-10 {
        grid-column: auto/span 10
    }

    .grid .g-col-xxl-11 {
        grid-column: auto/span 11
    }

    .grid .g-col-xxl-12 {
        grid-column: auto/span 12
    }

    .grid .g-start-xxl-1 {
        grid-column-start: 1
    }

    .grid .g-start-xxl-2 {
        grid-column-start: 2
    }

    .grid .g-start-xxl-3 {
        grid-column-start: 3
    }

    .grid .g-start-xxl-4 {
        grid-column-start: 4
    }

    .grid .g-start-xxl-5 {
        grid-column-start: 5
    }

    .grid .g-start-xxl-6 {
        grid-column-start: 6
    }

    .grid .g-start-xxl-7 {
        grid-column-start: 7
    }

    .grid .g-start-xxl-8 {
        grid-column-start: 8
    }

    .grid .g-start-xxl-9 {
        grid-column-start: 9
    }

    .grid .g-start-xxl-10 {
        grid-column-start: 10
    }

    .grid .g-start-xxl-11 {
        grid-column-start: 11
    }
}

body {
    background-color: #0c091f;
    background-image: radial-gradient(120% 90% at 50% 0%, rgba(76, 22, 88, 0.75), transparent 70%) no-repeat fixed;
    font-family: "Chakra Petch", system-ui, sans-serif;
    color: #f3f0f8;
}

.fs-7 {
    font-size: 0.875rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.font-bowlby {
    font-family: "Bowlby One", "Arial Black", system-ui, sans-serif;
}

.header {
    background: rgb(19 15 41 / 80%);
    --bs-border-color: #332d4f;
}

.header .nav-link {
    --bs-navbar-nav-link-padding-x: 0.875rem;
    --bs-nav-link-padding-y: 0.25rem;
    --bs-nav-link-padding-x: 0.5rem;
    --bs-nav-link-color: #ada7bb;
    --bs-navbar-hover-color: #f3f0f8;
    --bs-nav-link-font-size: 0.75rem;
    border-radius: 1.5rem;
    text-transform: uppercase;
    border: 1px solid #332d4f;
    transition: all 0.3s ease-in-out;
}

.header .nav-link:hover {
    border: 1px solid #fe41d0;
}

.icon-logo {
    height: 3rem;
}

.footer {
    background: rgb(19 15 41 / 80%);
    --bs-border-color: #332d4f;
}

.footer .nav-link {
    --bs-nav-link-padding-x: 0.5rem;
    --bs-nav-link-padding-y: 0.25rem;
    --bs-nav-link-font-size: 0.75rem;
    --bs-nav-link-color: #ada7bb;
    --bs-nav-link-hover-color: #f3f0f8;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-row: span 2;
    }
}

.hero-content {
    background: url(../img/friday-night-funkin-avatar.webp) no-repeat center;
    background-size: cover;
    --bs-border-color: #332d4f;
}

.game-list {
    --bs-columns: 2;
    --bs-gap: 1rem;
}

@media (min-width: 576px) {
    .game-list {
        --bs-columns: 3;
    }
}

@media (min-width: 768px) {
    .game-list {
        --bs-columns: 4;
    }
}

@media (min-width: 992px) {
    .game-list {
        --bs-columns: 6;
    }
}

@media (min-width: 1200px) {
    .game-list {
        --bs-columns: 8;
    }
}

.game-main {
    --bs-columns: 1;
    --bs-gap: 1rem;
}

@media (min-width: 992px) {
    .game-main {
        --bs-columns: 8;
    }
}

.game-related {
    --bs-columns: 2;
    --bs-gap: 1rem;
}

@media (min-width: 576px) {
    .game-related {
        --bs-columns: 3;
    }
}

@media (min-width: 768px) {
    .game-related {
        --bs-columns: 4;
    }
}

@media (min-width: 992px) {
    .game-related {
        --bs-columns: 6;
    }
}

.game-sidebar {
    --bs-columns: 2;
    --bs-gap: 1rem;
}

@media (min-width: 576px) {
    .game-sidebar {
        --bs-columns: 3;
    }
}

@media (min-width: 768px) {
    .game-sidebar {
        --bs-columns: 4;
    }
}

@media (min-width: 992px) {
    .game-sidebar {
        --bs-columns: 2;
    }
}

.game-item {
    --bs-border-color: #332d4f;
    transition: scale 0.5s, box-shadow 0.5s;
}

.game-item:hover,
.game-item:focus-visible {
    z-index: 1;
    scale: 1.05;
    box-shadow: 0 0 0 1px rgba(254, 65, 208, 0.5), 0 8px 28px -8px rgba(254, 65, 208, 0.65);
}

.game-item:focus-visible {
    outline: 2px solid #fe41d0;
    outline-offset: 3px;
}

.game-item .item-thumb {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.game-item .item-thumb img {
    transition: scale 0.8s;
}

.game-item .item-thumb img[src] {
    background: linear-gradient(135deg, #1e1a38 0%, #130f29 100%);
}

.game-item .item-thumb img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1a38;
    z-index: -1;
}

.game-item .item-thumb::before {
    content: "";
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    width: 200%;
    height: 200%;
    position: absolute;
    top: -50%;
    left: -50%;
    transform: rotate(-45deg) translate(-100%);
    background: linear-gradient(75deg, #0000, rgba(254, 65, 208, 0.4) 45%, #fff6 50%, rgba(254, 65, 208, 0.4) 55%, #0000);
    transition: transform 0.8s;
}

.game-item:hover .item-thumb img,
.game-item:focus-visible .item-thumb img {
    scale: 1.06;
}

.game-item:hover .item-thumb::before,
.game-item:focus-visible .item-thumb::before {
    opacity: 1;
    transform: rotate(-45deg) translate(100%);
}

.game-item .item-info {
    background: linear-gradient(transparent, rgb(12 9 31 / 90%));
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {

    .game-item,
    .game-item .item-thumb img,
    .game-item .item-thumb::before {
        transition: none;
    }

    .game-item:hover,
    .game-item:focus-visible,
    .game-item:hover .item-thumb img,
    .game-item:focus-visible .item-thumb img {
        scale: 1;
    }

    .game-item .item-thumb::before {
        display: none;
    }
}

.more-btn {
    --bs-btn-border-radius: 1.5rem;
    --bs-btn-bg: #fe41d0;
    --bs-btn-hover-bg: rgba(254, 65, 208, 0.9);
    --bs-btn-active-bg: #fe41d0;
    --bs-btn-color: #0c0517;
    --bs-btn-hover-color: #0c0517;
    --bs-btn-active-color: #0c0517;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-weight: 700;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
}

.feedback-modal.is-visible {
    display: flex;
}

.feedback-modal__content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #130f29;
    border: 1px solid #332d4f;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.feedback-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #332d4f;
}

.feedback-modal__header h3 {
    margin: 0;
    color: #f3f0f8;
    font-family: "Bowlby One", sans-serif;
    font-size: 1.25rem;
}

.feedback-modal__close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: #ada7bb;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.feedback-modal__form {
    padding: 1.5rem;
}

.feedback-modal__field {
    margin-bottom: 1rem;
}

.feedback-modal__field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ada7bb;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.feedback-modal__field select,
.feedback-modal__field textarea,
.feedback-modal__field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #332d4f;
    border-radius: 0.25rem;
    background: #1e1a38;
    color: #f3f0f8;
    font-size: 0.875rem;
}

.feedback-modal__field textarea {
    resize: vertical;
}

.feedback-modal__field small {
    color: #ada7bb;
    font-size: 0.75rem;
}

.feedback-modal__message {
    margin-bottom: 1rem;
}

.feedback-modal__message.is-success,
.feedback-modal__message.is-error {
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.feedback-modal__message.is-success {
    border: 1px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feedback-modal__message.is-error {
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.feedback-modal__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.feedback-modal__cancel,
.feedback-modal__submit {
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.feedback-modal__cancel {
    background: #332d4f;
    color: #ada7bb;
}

.feedback-modal__submit {
    background: #fe41d0;
    color: #0c0517;
    font-weight: 700;
}

.iframe-cover {
    background-repeat: no-repeat;
    background-size: cover;
}

.ifram-cover-blur {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.iframe-cover-logo {
    width: 300px;
}

.iframe-cover-info {
    transition: scale 0.5s, box-shadow 0.5s;
    cursor: pointer;
}

.iframe-cover-info .play-icon {
    display: inline-flex;
    padding: 1.5rem;
}

.pulse {
    position: relative;
    overflow: visible
}

.pulse:before {
    background-color: inherit;
    -moz-border-radius: inherit;
    border-radius: inherit;
    content: "";
    transition: opacity .3s, -webkit-transform .3s;
    z-index: -1;
    width: 100%;
    height: 100%;
    transition: opacity .3s, transform .3s;
    animation: pulse-animation 1s cubic-bezier(.24, 0, .38, 1) infinite;
    display: block;
    position: absolute;
    top: 0;
    left: 0
}

@keyframes pulse-animation {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0;
        transform: scale(1.5)
    }

    to {
        opacity: 0;
        transform: scale(1.5)
    }
}

.iframe-cover-info:hover {
    scale: 1.03;
    box-shadow: 0 0 100px rgba(254, 65, 208, 0.65);
}

.game-container {
    --bs-border-color: #332d4f;
    transition: all 0.3s ease;
}

.iframe-loading-spinner {
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.iframe-loading-spinner .spinner-border {
    border-color: #fe41d0;
    border-right-color: transparent;
}

.game-container.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    margin: 0;
    border-radius: 0 !important;
    background: #000;
}

.game-container.fullscreen-container .game-iframe {
    height: calc(100vh - 80px);
    border-radius: 0 !important;
}

.game-container.fullscreen-container .game-iframe .ratio {
    --bs-aspect-ratio: unset;
    height: 100%;
}

.game-container.fullscreen-container .game-toolbar {
    border-radius: 0 !important;
}

.game-toolbar {
    background: #130f29;
}

.toolbar-title img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.toolbar-title h1 {
    color: #ffffff;
    font-family: "Bowlby One", "Arial Black", system-ui, sans-serif;
    margin-left: 0.5rem;
}

.toolbar-extend {
    align-items: flex-end !important;
}

.toolbar-extend span {
    padding: 0.75rem;
    color: #ada7bb;
    display: inline-flex;
    border-radius: 3rem;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.toolbar-extend span svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.toolbar-extend span em {
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    text-align: center;
    width: 100%;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-style: normal;
    line-height: 1;
    transition: background 0.2s ease, transform 0.3s ease, color 0.3s ease;
}

.toolbar-extend span:hover {
    background: #fe41d0;
    color: #ffffff;
}

.toolbar-extend span:hover em {
    background: #ffffff;
    color: #0c0517;
}

/* Vote buttons styling */
.vote-btn {
    position: relative;
    transition: all 0.3s ease;
}

.vote-btn[data-vote="like"]:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.vote-btn[data-vote="dislike"]:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.vote-btn.voted {
    pointer-events: none;
}

.vote-btn[data-vote="like"].voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.vote-btn[data-vote="dislike"].voted {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

.vote-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.vote-btn:active {
    transform: scale(0.95);
}

.guestbook-box {
    box-shadow: 0 0 0 1px rgba(0, 187, 241, 0.5), 0 8px 28px -8px rgba(0, 187, 241, 0.6);
    background-color: #130f29;
    --bs-border-color: #332d4f;
    --bs-body-bg: #0c091f;
    --bs-body-color: #f3f0f8;
    --bs-secondary-color: #ada7bb;
}

.guestbook-box .form-control {
    font-size: 0.875rem;
}

.guestbook-box .form-control:focus {
    border-color: #fe41d0;
    box-shadow: none;
}

.guestbook-box .form-label {
    font-size: 0.75rem;
    color: #ada7bb;
}

.guestbook-list {
    --bs-border-color: #332d4f;
    --bs-secondary-color: #ada7bb;
}

.guestbook-item {
    background-color: #1e1a38;
    --bs-border-color: #332d4f;
}

.guestbook-message {
    color: #ada7bb;
    white-space: pre-wrap;
    font-size: 0.875rem;
}

.comment-btn {
    --bs-btn-border-radius: 1.5rem;
    --bs-btn-bg: #fe41d0;
    --bs-btn-hover-bg: rgba(254, 65, 208, 0.9);
    --bs-btn-active-bg: #fe41d0;
    --bs-btn-color: #0c0517;
    --bs-btn-hover-color: #0c0517;
    --bs-btn-active-color: #0c0517;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-weight: 700;
}

.game-content {
    background: #130f29;
    --bs-border-color: #332d4f;
    color: #ada7bb;
    line-height: 1.7;
}

.game-content h1,
.game-content h2,
.game-content h3,
.game-content h4,
.game-content h5,
.game-content h6 {
    color: #f3f0f8;
    font-family: "Bowlby One", "Arial Black", system-ui, sans-serif;
    margin-bottom: 1rem;
    font-weight: normal;
}

.game-content h1 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
}

.game-content h2 {
    font-size: 1.25rem;
    padding-bottom: 0.25rem;
}

.game-content h3,
.game-content h4,
.game-content h5,
.game-content h6 {
    font-size: 1rem;
}

.game-content p {
    margin-bottom: 1rem;
    font-size: 0.938rem;
}

.game-content p:last-child {
    margin-bottom: 0;
}

.game-content a {
    color: #fe41d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-content a:hover {
    color: #fe41d0;
    text-decoration: underline;
}

.game-content strong,
.game-content b {
    color: #f3f0f8;
    font-weight: 600;
}

.game-content em,
.game-content i {
    font-style: italic;
}

.game-content ul,
.game-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.game-content ul {
    list-style-type: disc;
}

.game-content ol {
    list-style-type: decimal;
}

.game-content li {
    margin-bottom: 0.5rem;
    font-size: 0.938rem;
}

.game-content li::marker {
    color: #fe41d0;
}

.game-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #fe41d0;
    background: rgba(254, 65, 208, 0.05);
    font-style: italic;
}

.game-content blockquote p:last-child {
    margin-bottom: 0;
}

.game-content code {
    background: #1e1a38;
    color: #fe41d0;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: "Courier New", monospace;
}

.game-content pre {
    background: #1e1a38;
    border: 1px solid #332d4f;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.game-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    color: #f3f0f8;
}

.game-content hr {
    border: none;
    border-top: 1px solid #332d4f;
    margin: 2rem 0;
}

.game-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.938rem;
}

.game-content table th,
.game-content table td {
    padding: 0.75rem;
    border: 1px solid #332d4f;
    text-align: left;
}

.game-content table th {
    background: #1e1a38;
    color: #f3f0f8;
    font-weight: 600;
}

.game-content table tr:nth-child(even) {
    background: rgba(30, 26, 56, 0.3);
}

.game-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.game-content .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #d1cde0;
    margin-bottom: 1.5rem;
}

.game-content .text-muted {
    color: #7d7691 !important;
}

.game-content .alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.game-content .alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #f3f0f8;
}

@media (max-width: 768px) {
    .game-content h1 {
        font-size: 1.25rem;
    }

    .game-content h2,
    .game-content h3 {
        font-size: 1rem;
    }

    .game-content {
        font-size: 0.875rem;
    }
}

.error-content {
    background: #130f29;
    border: 1px solid #332d4f;
}

.error-content h1 {
    font-size: 8rem;
}

.error-tip {
    color: #ada7bb;
}

/* Breadcrumb styling */
.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #ada7bb;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #fe41d0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #ada7bb;
    padding: 0 0.5rem;
}

/* Lazy loading image states */
img[loading="lazy"].loading {
    background: linear-gradient(135deg, #1e1a38 0%, #130f29 100%);
    min-height: 100px;
}

img[loading="lazy"].loaded {
    animation: fadeIn 0.3s ease-in;
}

img[loading="lazy"].error {
    background: #1e1a38;
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Game list pagination */
.game-list-container {
    min-height: 12rem;
    transition: opacity 0.2s ease;
}

.game-list-container.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.game-list-container.is-error {
    animation: paginationShake 0.4s ease;
}

.game-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.game-pagination .pagination {
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
    --bs-pagination-padding-x: 0.5rem;
    --bs-pagination-padding-y: 0.35rem;
    --bs-pagination-font-size: 0.875rem;
    --bs-pagination-color: #ada7bb;
    --bs-pagination-bg: #130f29;
    --bs-pagination-border-color: #332d4f;
    --bs-pagination-border-radius: 0.5rem;
    --bs-pagination-hover-color: #f3f0f8;
    --bs-pagination-hover-bg: #1e1a38;
    --bs-pagination-hover-border-color: #fe41d0;
    --bs-pagination-focus-color: #f3f0f8;
    --bs-pagination-focus-bg: #1e1a38;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(254, 65, 208, 0.25);
    --bs-pagination-active-color: #0c0517;
    --bs-pagination-active-bg: #fe41d0;
    --bs-pagination-active-border-color: #fe41d0;
    --bs-pagination-disabled-color: #574f6e;
    --bs-pagination-disabled-bg: #130f29;
    --bs-pagination-disabled-border-color: #2a2540;
}

.game-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border-radius: var(--bs-pagination-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.game-pagination .page-item.active .page-link {
    box-shadow: 0 0 14px rgba(254, 65, 208, 0.5);
}

.game-pagination .page-item.disabled .page-link {
    border-color: #2a2540;
    opacity: 0.7;
}

@keyframes paginationShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@media (max-width: 575.98px) {
    .game-pagination .pagination {
        --bs-pagination-padding-x: 0.4rem;
    }

    .game-pagination .page-link {
        min-width: 2rem;
        min-height: 2rem;
    }
}

.game-tags a {
    --bs-border-color: #332d4f;
}

.game-tags a:hover {
    --bs-border-color: #fe41d0;
}

.home-module-hero {
    background: #130f29;
    --bs-border-color: #332d4f
}

.home-module-info {
    color: #ada7bb;
    font-size: 0.938rem;
    line-height: 1.7;
}

.home-module-badge .badge {
    --bs-badge-font-size: 0.75rem;
    border: 1px solid rgba(243, 240, 248, 0.1);
    color: #f3f0f8;
    background: rgba(12, 9, 31, 0.5);
}

.home-module-badge .badge svg {
    width: 1rem;
    height: 1rem;
    color: #3ee0ff;
}

/* Rhythm preview */
.rhythm-stage {
    position: relative;
    height: 16rem;
    background: rgba(19, 15, 41, 0.6);
    --bs-border-color: #332d4f;
}

.rhythm-lane {
    min-width: 3.5rem;
}

.rhythm-key {
    width: 3.5rem;
    height: 3.5rem;
    color: #ada7bb;
}

.rhythm-key-muted {
    border-color: rgba(173, 167, 187, 0.25) !important;
    background: rgba(173, 167, 187, 0.05);
    color: rgba(173, 167, 187, 0.4);
}

.rhythm-key-primary {
    border-color: #fe41d0 !important;
    background: rgba(254, 65, 208, 0.15);
    color: #fe41d0;
    box-shadow: 0 0 18px -4px #fe41d0;
}

.rhythm-key-accent {
    border-color: #7c6cff !important;
    background: rgba(124, 108, 255, 0.15);
    color: #7c6cff;
    box-shadow: 0 0 18px -4px #7c6cff;
}

.rhythm-arrow {
    width: 2rem;
    height: 2rem;
}

.note-track {
    width: 1px;
    background: linear-gradient(to bottom, rgba(173, 167, 187, 0.15), transparent);
}

.note-rise {
    top: 0;
    bottom: 0;
    opacity: 0;
    will-change: transform, opacity;
    animation: noteRise 3.2s linear infinite;
}

.motion-reduce-hidden {
    transition: none;
}

@keyframes noteRise {
    0% {
        transform: translateY(15rem);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .note-rise {
        display: none;
    }
}


.home-module-box {
    background: #130f29;
    --bs-border-color: #332d4f
}

.home-module-box .rhythm-key {
    width: 3rem;
    height: 3rem;
}

.home-module-box .rhythm-arrow {
    width: 1.75rem;
    height: 1.75rem;
}

.home-module-item {
    background: rgba(12, 9, 31, 0.5);
    --bs-border-color: rgba(243, 240, 248, 0.1);
    height: 100%;
    transition: border-color 0.2s ease;
}

.home-module-item h3 {
    transition: color 0.2s ease;
}

.home-module-item p {
    color: #ada7bb;
    font-size: 0.938rem;
    line-height: 1.7;
}

.home-module-item:hover {
    --bs-border-color: rgb(254, 65, 208, 0.5);
}

.home-module-item:hover h3 {
    color: #fe41d0;
}

.sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
}

.control-key {
    color: #f3f0f8;
    background: #221c45;
    --bs-border-color: rgba(243, 240, 248, 0.2);
    border-bottom-width: 4px !important;
    position: relative;
    padding: 0.5rem;
}

.control-key svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-control {
    background: rgba(12, 9, 31, 0.6);
    --bs-border-color: rgba(243, 240, 248, 0.1);
}

.home-control-item {
    background: #151130;
    margin-bottom: 1rem;
}

.home-control-item p {
    color: #ada7bb;
    font-size: 0.938rem;
    line-height: 1.7;
}

.home-week {
    padding-bottom: 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fe41d0 #1a1633;
}

.home-week::-webkit-scrollbar {
    height: 8px;
}

.home-week::-webkit-scrollbar-track {
    background: #1a1633;
    border-radius: 999px;
}

.home-week::-webkit-scrollbar-thumb {
    background: #fe41d0;
    border-radius: 999px;
}

.home-week::-webkit-scrollbar-thumb:hover {
    background: #ff6ddd;
}

.home-week-item {
    background: rgba(12, 9, 31, 0.5);
    --bs-border-color: rgba(243, 240, 248, 0.1);
    min-width: 11.5rem;
    scroll-snap-align: start;
    transition: border-color 0.2s ease;
}

.home-week-item:hover {
    --bs-border-color: rgba(254, 65, 208, 0.5);
}

.home-week-item span {
    color: #3ee0ff;
}

.home-week-item p {
    color: #ada7bb;
    font-size: 0.938rem;
    line-height: 1.7;
}

.home-module-faq {
    background: #130f29;
    --bs-border-color: #332d4f;
}

.home-module-faq .accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    --bs-accordion-color: #ada7bb;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-bg: rgba(12, 9, 31, 0.5);
    --bs-accordion-btn-color: #f3f0f8;
    --bs-accordion-btn-active-color: #f3f0f8;
    --bs-accordion-active-color: #f3f0f8;
}

.home-module-faq .accordion-item:not(:first-of-type) {
    border-top: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

.home-module-faq .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.home-module-faq .accordion .accordion-item {
    width: 100%;
    border-radius: var(--bs-accordion-inner-border-radius);
}

.home-module-faq .accordion-body {
    font-size: 0.938rem;
    line-height: 1.7;
    padding-top: 0 !important;
}

.home-module-banner {
    background: #130f29;
    --bs-border-color: #332d4f;
}

.home-module-banner .rhythm-key {
    width: 2.25rem;
    height: 2.25rem;
}

.home-module-banner .rhythm-arrow {
    width: 1.25rem;
    height: 1.25rem;
}