* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #111318;
    color: #f0eee6;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    min-height: 72px;
    padding: 0 5%;
    border-bottom: 1px solid #343842;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #171a20;
}

.brand {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
}

.brand span {
    display: block;
    font-size: 9px;
    letter-spacing: 4px;
    color: #9fa5ad;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #c6c9ce;
}

.page-container {
    width: min(1200px, 90%);
    margin: auto;
}

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #343842;
}

.hero h1 {
    max-width: 750px;

    margin: 10px 0 20px;

    font-size: clamp(48px, 8vw, 92px);
    line-height: .92;
    letter-spacing: -4px;
}

.eyebrow {
    color: #ff9d27;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero-text {
    max-width: 500px;

    color: #aeb3bb;

    font-size: 19px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;

    margin-top: 32px;
}

.button {
    display: inline-block;

    padding: 14px 22px;

    border: 0;
    border-radius: 3px;

    background: #ff9d27;
    color: #111318;

    font-weight: bold;

    cursor: pointer;
}

.button-small {
    padding: 10px 16px;
}

.button-secondary {
    background: transparent;
    color: #f0eee6;

    border: 1px solid #555b65;
}

.content-section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 5px 0;

    font-size: 36px;
}

.text-link {
    color: #ff9d27;
}

.game-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.game-card {
    padding: 24px;

    background: #191c22;

    border: 1px solid #343842;
    border-radius: 4px;
}

.game-system {
    color: #ff9d27;

    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.game-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.game-card p {
    color: #9298a1;
}

.game-info {
    display: flex;
    gap: 20px;

    padding: 20px 0;

    color: #c0c4ca;

    font-size: 14px;
}

.card-footer {
    padding-top: 18px;

    border-top: 1px solid #343842;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-footer span {
    color: #9da2aa;
    font-size: 13px;
}

.card-footer button {
    border: 0;
    background: none;

    color: #ff9d27;

    font-weight: bold;

    cursor: pointer;
}

.auth-container {
    min-height: calc(100vh - 140px);

    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: min(430px, 100%);

    padding: 38px;

    background: #191c22;

    border: 1px solid #343842;
}

.auth-card h1 {
    margin-top: 5px;

    font-size: 38px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    margin-top: 18px;
    margin-bottom: 7px;

    color: #bec2c8;

    font-size: 13px;
}

.auth-card input {
    padding: 14px;

    border: 1px solid #454a54;

    background: #111318;
    color: white;

    font-size: 16px;
}

.auth-card button {
    margin-top: 25px;
}

.auth-footer {
    margin-top: 25px;

    color: #9298a1;
}

.auth-footer a {
    color: #ff9d27;
}

footer {
    padding: 35px;

    border-top: 1px solid #343842;

    text-align: center;
    color: #777d86;

    font-size: 12px;
}


@media (max-width: 800px) {

    .game-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 470px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        text-align: center;
    }

}
.form-message {
    padding: 12px;
    margin: 15px 0;
    border: 1px solid;
    font-size: 14px;
}

.form-message.error {
    border-color: #c74a4a;
}

.form-message.success {
    border-color: #4f9d69;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 9px;

    font-weight: bold;
}

.user-avatar-small {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff9d27;
    color: #111318;

    font-size: 14px;
}


.profile-page {
    padding: 70px 0;
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;

    padding-bottom: 40px;

    border-bottom: 1px solid #343842;
}


.profile-avatar {
    width: 130px;
    height: 130px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff9d27;
    color: #111318;

    font-size: 55px;
    font-weight: 900;
}


.profile-info h1 {
    margin: 5px 0;

    font-size: 48px;
}


.profile-location {
    color: #9298a1;

    margin: 5px 0 15px;
}


.profile-languages {
    display: flex;
    gap: 8px;

    font-size: 24px;
}


.profile-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 30px;
}


.profile-card {
    padding: 25px;

    background: #191c22;

    border: 1px solid #343842;
}


.profile-card h2 {
    margin-top: 5px;
}


.profile-placeholder {
    color: #8e949d;
}


.profile-data {
    margin: 0;
}


.profile-data div {
    padding: 12px 0;

    border-bottom: 1px solid #343842;
}


.profile-data dt {
    color: #858b94;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.profile-data dd {
    margin: 5px 0 0;

    color: #e6e5df;
}


@media (max-width: 800px) {

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;

        font-size: 42px;
    }

    .profile-info h1 {
        font-size: 38px;
    }

}

.profile-edit-form {
    display: grid;
    gap: 20px;
}

.profile-edit-form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    color: #bec2c8;
    font-size: 13px;
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="number"],
.profile-edit-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #454a54;
    background: #111318;
    color: #f0eee6;
    font-size: 16px;
}

.field-help {
    color: #9298a1;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.language-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #343842;
    background: #111318;
    cursor: pointer;
}

.language-option input {
    width: 18px;
    height: 18px;
}

.language-flag {
    display: inline-block;
    width: 28px;
    height: 18px;
    border: 1px solid #555b65;
}

/* Senyera */
.flag-ca {
    background:
        repeating-linear-gradient(
            to bottom,
            #f4c430 0,
            #f4c430 2px,
            #c8102e 2px,
            #c8102e 4px
        );
}

.flag-es {
    background:
        linear-gradient(
            to bottom,
            #aa151b 0 25%,
            #f1bf00 25% 75%,
            #aa151b 75% 100%
        );
}

.flag-en {
    background:
        linear-gradient(
            to bottom,
            transparent 40%,
            #c8102e 40%,
            #c8102e 60%,
            transparent 60%
        ),
        linear-gradient(
            to right,
            transparent 43%,
            #c8102e 43%,
            #c8102e 57%,
            transparent 57%
        ),
        white;
}

.flag-fr {
    background:
        linear-gradient(
            to right,
            #0055a4 0 33%,
            white 33% 66%,
            #ef4135 66% 100%
        );
}

.flag-de {
    background:
        linear-gradient(
            to bottom,
            #111 0 33%,
            #dd0000 33% 66%,
            #ffce00 66% 100%
        );
}

.flag-it {
    background:
        linear-gradient(
            to right,
            #009246 0 33%,
            white 33% 66%,
            #ce2b37 66% 100%
        );
}

.flag-pt {
    background:
        linear-gradient(
            to right,
            #046a38 0 40%,
            #da291c 40% 100%
        );
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 600px) {
    .language-options {
        grid-template-columns: 1fr;
    }
}

.profile-language-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-languages .language-flag {
    width: 32px;
    height: 21px;
}

.preferred-language {
    position: absolute;
    right: -6px;
    bottom: -7px;

    color: #ff9d27;
    font-size: 11px;
}

.profile-actions {
    margin-top: 20px;
}

.games-options {
    display: grid;
    gap: 14px;
}

.game-profile-option {
    padding: 18px;
    border: 1px solid #343842;
    background: #111318;
}

.game-select-row {
    display: flex !important;
    align-items: center;
    gap: 12px;

    margin: 0 0 14px !important;

    cursor: pointer;
}

.game-select-row input {
    width: 18px;
    height: 18px;
}

.game-profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #f0eee6;
}

.skill-levels {
    display: grid;
    gap: 8px;

    margin-left: 30px;
}

.skill-option {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;

    margin: 0 !important;

    color: #c6c9ce;
    cursor: pointer;
}

.skill-option input {
    margin-top: 3px;
}

.skill-option strong {
    color: #f0eee6;
}

.skill-option em {
    margin-left: 5px;
    color: #8e949d;
    font-size: 13px;
}

@media (max-width: 700px) {
    .skill-levels {
        margin-left: 0;
        margin-top: 12px;
    }

    .skill-option span {
        display: flex;
        flex-direction: column;
    }

    .skill-option em {
        margin-left: 0;
        margin-top: 3px;
    }
}

.profile-games-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.profile-game-item {
    padding: 14px;
    border: 1px solid #343842;
    background: #111318;
}

.profile-game-name {
    color: #f0eee6;
    font-size: 16px;
    font-weight: bold;
}

.profile-game-level {
    margin-top: 5px;
    color: #ff9d27;
    font-size: 13px;
    font-weight: bold;
}

.profile-game-description {
    margin-top: 4px;
    color: #8e949d;
    font-size: 12px;
}

.profile-clubs-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.profile-club-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px;

    border: 1px solid #343842;
    background: #111318;

    text-decoration: none;
}

.profile-club-item:hover {
    border-color: #ff9d27;
}

.profile-club-name {
    color: #f0eee6;
    font-size: 16px;
    font-weight: bold;
}

.profile-club-location {
    margin-top: 4px;
    color: #8e949d;
    font-size: 13px;
}

.club-role {
    display: inline-block;

    padding: 5px 9px;

    border: 1px solid #ff9d27;

    color: #ff9d27;

    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.club-about-card {
    margin-top: 20px;
}

.club-address {
    color: #9298a1;
    line-height: 1.6;
}

.rooms-grid {
    display: grid;
    gap: 18px;
}

.room-card {
    padding: 24px;

    border: 1px solid #343842;
    background: #191c22;
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding-bottom: 20px;
    border-bottom: 1px solid #343842;
}

.room-card-header h3 {
    margin: 0 0 6px;

    font-size: 24px;
}

.room-card-header p {
    margin: 0;

    color: #9298a1;
}

.physical-space-count {
    flex-shrink: 0;

    padding: 6px 10px;

    border: 1px solid #454a54;

    color: #aeb3bb;

    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.room-capacity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.capacity-item {
    padding: 16px;

    border: 1px solid #343842;
    background: #111318;
}

.capacity-label {
    display: block;

    color: #ff9d27;

    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.capacity-item strong {
    display: block;

    margin: 6px 0;

    font-size: 32px;
}

.capacity-size {
    color: #8e949d;
    font-size: 12px;
}

@media (max-width: 700px) {

    .room-card-header {
        flex-direction: column;
    }

    .room-capacity-grid {
        grid-template-columns: 1fr;
    }
}

.create-game-page {
    max-width: 850px;
}

.page-description {
    color: #9298a1;
}

.create-game-form {
    margin-top: 24px;
    padding: 28px;

    border: 1px solid #343842;
    background: #191c22;
}

.form-section {
    margin-bottom: 24px;
}

.form-section > label {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.create-game-form select,
.create-game-form input[type="date"],
.create-game-form input[type="time"],
.create-game-form input[type="number"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;

    border: 1px solid #454a54;
    background: #111318;
    color: #f0f0f0;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.table-size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.table-size-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    border: 1px solid #454a54;
    background: #111318;

    cursor: pointer;
}

.table-size-option:hover {
    border-color: #ff9d27;
}

.table-size-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-size-option small {
    color: #9298a1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 30px;
}

@media (max-width: 700px) {

    .time-grid,
    .table-size-options {
        grid-template-columns: 1fr;
    }
}
	
.games-list {
    display: grid;
    gap: 14px;
}

.game-list-card {
    padding: 22px;

    border: 1px solid #343842;
    background: #191c22;
}

.game-list-card.past {
    opacity: 0.72;
}

.game-list-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.game-list-main h3 {
    margin: 4px 0 8px;

    font-size: 22px;
}

.game-date-line {
    margin: 0;

    color: #a3a8b0;
}

.game-status {
    flex-shrink: 0;

    padding: 6px 10px;

    border: 1px solid #454a54;

    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-status.open {
    color: #111;
    background: #ff9d27;
    border-color: #ff9d27;

    font-weight: 800;
    letter-spacing: 0.04em;

    padding: 8px 12px;
}

.game-status.confirmed {
    color: #aeb3bb;
}

.game-card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #343842;
}

.game-card-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-card-details span {
    color: #858b94;

    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.empty-state-card {
    padding: 30px;

    border: 1px dashed #454a54;
    background: #15181d;
}

@media (max-width: 700px) {

    .game-list-main {
        flex-direction: column;
    }

    .game-card-details {
        grid-template-columns: 1fr;
    }
}

.game-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0 32px;
}

.game-detail-card {
    padding: 18px;
    border: 1px solid #343842;
    background: #191c22;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-detail-card span {
    color: #858b94;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.participant-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    border: 1px solid #343842;
    background: #191c22;
}

.participant-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-role {
    color: #858b94;

    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-title-link {
    color: inherit;
    text-decoration: none;
}

.game-title-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {

    .game-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.add-player-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 100px;

    padding: 8px 12px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.add-player-circle {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ff9d27;
    border-radius: 50%;

    color: #ff9d27;

    font-size: 32px;
    font-weight: 400;
    line-height: 1;

    transition: 0.15s ease;
}

.add-player-label {
    color: #ff9d27;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.add-player-action:hover .add-player-circle {
    background: #ff9d27;
    color: #111;
    transform: scale(1.06);
}

.invitation-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.home-create-game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    font-size: 15px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.create-game-prominent {
    padding: 14px 22px;

    background: #ff9d27;
    border: 1px solid #ff9d27;
    color: #111;

    font-size: 14px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    text-decoration: none;
}

.create-game-prominent:hover {
    filter: brightness(1.08);
}

.visibility-options {
    display: grid;
    gap: 12px;
}

.visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px;

    border: 1px solid #454a54;
    background: #111318;

    cursor: pointer;
}

.visibility-option:hover {
    border-color: #ff9d27;
}

.visibility-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visibility-option small {
    color: #9298a1;
}
.open-game-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #343842;
}

.open-game-actions form {
    margin: 0;
}

.join-game-button {
    padding: 12px 20px;

    border: 1px solid #ff9d27;
    background: #ff9d27;
    color: #111;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    cursor: pointer;
}

.join-game-button:hover {
    filter: brightness(1.08);
}

@media (max-width: 700px) {

    .open-game-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .open-game-actions form,
    .join-game-button,
    .open-game-actions .secondary-button {
        width: 100%;
    }
}
.player-search-form {
    display: flex;
    gap: 12px;

    margin: 24px 0 30px;
}

.player-search-form input {
    flex: 1;

    padding: 12px 14px;

    border: 1px solid #454a54;
    background: #111318;
    color: #f0f0f0;
}

.players-list {
    display: grid;
    gap: 12px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px;

    border: 1px solid #343842;
    background: #191c22;

    color: inherit;
    text-decoration: none;
}

.player-card:hover {
    border-color: #ff9d27;
}

.player-avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff9d27;
    color: #111;

    font-weight: 800;
    font-size: 18px;
}

.player-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-card-info span {
    color: #9298a1;
    font-size: 13px;
}

@media (max-width: 700px) {

    .player-search-form {
        flex-direction: column;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.player-profile-actions {
    display: flex;
    gap: 12px;

    margin: 24px 0;
}

.player-profile-actions form {
    margin: 0;
}
.player-follow-button {
    min-width: 180px;
    min-height: 48px;
    padding: 13px 22px;

    border: 2px solid #ff9d27;
    background: #ff9d27;
    color: #111;

    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    cursor: pointer;
}

.player-follow-button:hover {
    filter: brightness(1.08);
}

.player-follow-button.following {
    background: #191c22;
    color: #ff9d27;
}

.player-follow-button.following:hover {
    background: #242830;
}
.community-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;

    margin-top: 20px;
}

.community-columns h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 24px;
    padding: 0 7px;

    border-radius: 12px;

    background: #ff9d27;
    color: #111;

    font-size: 12px;
    font-weight: 800;
}

.community-player-list {
    display: grid;
    gap: 8px;

    margin-top: 12px;
}

.community-player {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;

    border: 1px solid #343842;

    color: inherit;
    text-decoration: none;
}

.community-player:hover {
    border-color: #ff9d27;
}

.player-avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #ff9d27;
    color: #111;

    font-weight: 800;
}

@media (max-width: 700px) {

    .community-columns {
        grid-template-columns: 1fr;
    }
}

.danger-button {
    padding: 12px 18px;

    border: 1px solid #b84a4a;
    background: transparent;
    color: #e06b6b;

    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;

    cursor: pointer;
}

.danger-button:hover {
    background: #b84a4a;
    color: #fff;
}

/* =========================================================
   BARONG MVP - UNIFIED ACTION SYSTEM
   ========================================================= */

.button,
.primary-button,
.join-game-button,
.create-game-prominent,
.player-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    border: 1px solid #ff9d27;
    border-radius: 3px;

    background: #ff9d27;
    color: #111318;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.button:hover,
.primary-button:hover,
.join-game-button:hover,
.create-game-prominent:hover,
.player-follow-button:hover {
    filter: none;
    background: #ffad47;
    border-color: #ffad47;
    color: #111318;

    transform: translateY(-1px);
}


.button-secondary,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    border: 1px solid #555b65;
    border-radius: 3px;

    background: transparent;
    color: #f0eee6;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.button-secondary:hover,
.secondary-button:hover {
    background: #242830;
    border-color: #777d86;
    color: #ffffff;
}


.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    border: 1px solid #b84a4a;
    border-radius: 3px;

    background: transparent;
    color: #e06b6b;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    cursor: pointer;
}

.danger-button:hover {
    background: #b84a4a;
    color: #ffffff;
}


.player-follow-button.following {
    background: transparent;
    border-color: #ff9d27;
    color: #ff9d27;
}

.player-follow-button.following:hover {
    background: #242830;
    color: #ffad47;
}


.button-small {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 12px;
}
.nav-link-secondary {
    color: #9298a1;
}

.nav-link-secondary:hover {
    color: #f0eee6;
}
.game-status.cancelled {
    color: #e06b6b;
    border-color: #b84a4a;
}
.game-list-card-link {
    position: relative;
}

.game-list-card-link::after {
    content: "View game →";

    position: absolute;
    right: 18px;
    bottom: 14px;

    color: #ff9d27;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    opacity: 0;
    transition: opacity 0.15s ease;
}

.game-list-card-link:hover::after {
    opacity: 1;
}
.game-list-card.past {
    opacity: 0.58;
}

.game-list-card.past:hover {
    opacity: 0.8;
}

.game-status-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.visibility-badge {
    padding: 5px 9px;

    border: 1px solid #555b65;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visibility-badge.public {
    color: #aeb3bb;
}

.visibility-badge.community {
    color: #ff9d27;
    border-color: #8d632e;
}

.spots-left strong {
    color: #ff9d27;
    font-size: 20px;
}

.open-game-actions {
    justify-content: flex-end;
}

.open-game-actions .join-game-button {
    min-width: 145px;
}

.open-game-actions .secondary-button {
    min-width: 125px;
}

@media (max-width: 700px) {
    .game-status-group {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.game-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #343842;
}

.game-detail-actions-primary,
.game-detail-actions-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-detail-actions form {
    margin: 0;
}

@media (max-width: 700px) {

    .game-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .game-detail-actions-primary,
    .game-detail-actions-secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .game-detail-actions a,
    .game-detail-actions button,
    .game-detail-actions form {
        width: 100%;
    }
}

.player-card {
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.player-card:hover {
    border-color: #ff9d27;
    background: #191c22;
    transform: translateY(-1px);
}

@media (max-width: 700px) {

    .player-search-form {
        flex-direction: column;
    }

    .player-search-form input,
    .player-search-form button {
        width: 100%;
    }
}
@media (max-width: 700px) {

    .invitation-actions {
        flex-direction: column;
    }

    .invitation-actions form,
    .invitation-actions button {
        width: 100%;
    }
}

.participant-user-link {
    color: inherit;
    text-decoration: none;
}

.participant-user-link:hover strong {
    color: #ff9d27;
}

@media (max-width: 700px) {
    .user-avatar-small {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }
}
.game-card-players {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #343842;
}

.game-card-players-label {
    display: block;

    margin-bottom: 10px;

    color: #9298a1;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-card-player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-card-player {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: inherit;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.game-card-player:hover {
    color: #ff9d27;
}

.game-card-player .user-avatar-small {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

@media (max-width: 700px) {

    .game-card-player-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-card-player {
        width: 100%;
    }
}
.club-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 18px;
}

@media (max-width: 700px) {

    .club-links {
        flex-direction: column;
    }

    .club-links a {
        width: 100%;
    }
}
.player-avatar-image {
    object-fit: cover;
    object-position: center;
    padding: 0;
}
/* =========================================================
 *  MOBILE TOP NAVIGATION
 *  ========================================================= */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 700px) {

    .topbar {
        min-height: 64px;
        padding: 0 18px;
        position: relative;
    }

    .brand {
        font-size: 20px;
    }

    .nav-actions {
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;

        padding: 9px 12px;

        border: 1px solid #454a54;
        background: #191c22;
        color: #f0f0f0;

        font-weight: 800;
        text-transform: uppercase;

        cursor: pointer;
    }

    .nav-actions > .nav-link,
    .nav-actions > .user-nav {
        display: none;
    }

    body.mobile-menu-open .nav-actions {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;

        z-index: 1000;

        padding: 16px 18px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: #171a20;
        border-bottom: 1px solid #343842;
    }

    body.mobile-menu-open .nav-actions > .nav-link,
    body.mobile-menu-open .nav-actions > .user-nav {
        display: flex;

        min-height: 48px;
        padding: 0 12px;

        align-items: center;

        border-bottom: 1px solid #2b2f37;
    }

    body.mobile-menu-open .mobile-menu-toggle {
        align-self: flex-end;
        margin-bottom: 8px;
    }
}
.club-title-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.club-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(255, 107, 31, 0.5);
    background: #0f1b24;
}.club-list-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.club-list-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 31, 0.55);
    background: #0f1b24;
    flex-shrink: 0;
}
/* =========================================================
 *  JOCPOINT GLOBAL BRAND THEME
 *  ========================================================= */

:root {
    --joc-navy: #0f1b24;
    --joc-navy-light: #17232d;
    --joc-panel: #141f28;
    --joc-panel-light: #1a2732;

    --joc-orange: #ff6b1f;
    --joc-orange-hover: #ff7f3a;

    --joc-ivory: #f5f5f0;
    --joc-slate: #72808f;
    --joc-muted: #9da8b2;

    --joc-border: #33414d;
}


/* GLOBAL */

body {
    background: var(--joc-navy);
    color: var(--joc-ivory);
}

a {
    color: inherit;
}


/* TOP NAVIGATION */

.topbar {
    background: #0b151d;
    border-bottom: 1px solid var(--joc-border);
}

.nav-link {
    color: #c5cdd4;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--joc-orange);
}


/* JOCPOINT WORDMARK */

.jocpoint-brand {
    display: flex;
    align-items: baseline;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.jocpoint-brand .jocpoint-joc {
    display: inline;
    color: var(--joc-ivory);
    font-size: inherit;
    letter-spacing: inherit;
}

.jocpoint-brand .jocpoint-point {
    display: inline;
    color: var(--joc-orange);
    font-size: inherit;
    letter-spacing: inherit;
}

.jocpoint-brand small {
    display: block;
    margin-left: 12px;

    color: var(--joc-slate);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* HEADINGS */

h1,
h2,
h3,
h4 {
    color: var(--joc-ivory);
}

.eyebrow {
    color: var(--joc-orange);
}

.page-description,
.hero-text,
.profile-location,
.muted {
    color: var(--joc-muted);
}


/* BUTTONS */

.button,
.primary-button {
    background: var(--joc-orange);
    color: #101820;

    border: 1px solid var(--joc-orange);
    border-radius: 6px;

    transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.button:hover,
.primary-button:hover {
    background: var(--joc-orange-hover);
    border-color: var(--joc-orange-hover);
}

.button-secondary,
.secondary-button {
    background: transparent;
    color: var(--joc-ivory);

    border: 1px solid var(--joc-border);
    border-radius: 6px;

    transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.button-secondary:hover,
.secondary-button:hover {
    border-color: var(--joc-orange);
    color: var(--joc-orange);
}


/* LINKS */

.text-link {
    color: var(--joc-orange);
}

.text-link:hover {
    color: var(--joc-orange-hover);
}


/* CARDS */

.game-card,
.profile-card,
.auth-card,
.empty-state-card,
.game-list-card,
.room-card,
.content-card {
    background: var(--joc-panel);
    border-color: var(--joc-border);
}

.game-list-card-link:hover,
.game-card:hover {
    border-color: rgba(255, 107, 31, 0.65);
}


/* CARD DETAILS */

.game-system {
    color: var(--joc-orange);
}

.game-card p,
.card-footer span {
    color: var(--joc-muted);
}

.card-footer {
    border-top-color: var(--joc-border);
}

.card-footer button {
    color: var(--joc-orange);
}


/* FORMS */

input,
select,
textarea {
    background: #0c171f;
    color: var(--joc-ivory);

    border: 1px solid var(--joc-border);
    border-radius: 6px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--joc-orange);
}

label {
    color: #cbd2d8;
}


/* TABLE / PROFILE / VENUE ELEMENTS */

.club-role,
.badge {
    background: rgba(255, 107, 31, 0.12);
    color: var(--joc-orange);
    border-color: rgba(255, 107, 31, 0.35);
}

.club-logo,
.club-list-logo,
.calendar-club-logo {
    border-color: rgba(255, 107, 31, 0.65);
}


/* HERO */

.hero {
    border-bottom-color: var(--joc-border);
}


/* FOOTER */

.site-footer {
    width: min(1200px, 90%);
    margin: 70px auto 0;
    padding: 24px 0 32px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: var(--joc-slate);

    font-size: 12px;

    border-top: 1px solid var(--joc-border);
}

.site-footer strong {
    color: var(--joc-ivory);
}


/* MOBILE */

@media (max-width: 700px) {

    .jocpoint-brand small {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 5px;
    }

}
/* =========================================================
 *  JOCPOINT CLUB CALENDAR
 *  ========================================================= */

.calendar-club-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-club-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--joc-navy);
    border: 2px solid rgba(255, 107, 31, 0.65);
    flex-shrink: 0;
}


/* CALENDAR TOOLBAR */

.calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;

    margin: 28px 0 18px;
}

.calendar-navigation,
.calendar-views {
    display: flex;
    gap: 8px;
}

.calendar-views {
    justify-content: flex-end;
}

#calendar-title {
margin: 0;

text-align: center;

font-size: 22px;
color: var(--joc-ivory);
}


/* CALENDAR BUTTONS */

.calendar-toolbar .btn {
    padding: 9px 14px;

    background: transparent;
    color: var(--joc-ivory);

    border: 1px solid var(--joc-border);
    border-radius: 6px;

    font-weight: 700;
    cursor: pointer;

    transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.calendar-toolbar .btn:hover {
    border-color: var(--joc-orange);
    color: var(--joc-orange);
}

.calendar-toolbar .calendar-view-active {
    background: var(--joc-orange);
    border-color: var(--joc-orange);
    color: #101820;
}


/* CALENDAR CONTAINER */

.calendar-card {
    padding: 18px;

    background: var(--joc-panel);

    border: 1px solid var(--joc-border);
    border-radius: 14px;

    overflow: hidden;
}

#club-calendar {
color: var(--joc-ivory);
}


/* FULLCALENDAR THEME */

#club-calendar .fc {
--fc-border-color: #33414d;
--fc-page-bg-color: #141f28;
--fc-neutral-bg-color: #17232d;
--fc-today-bg-color: rgba(255, 107, 31, 0.08);
--fc-now-indicator-color: #ff6b1f;
}


/* WEEKDAY HEADERS */

#club-calendar .fc-col-header-cell {
background: var(--joc-navy-light);
}

#club-calendar .fc-col-header-cell-cushion {
display: block;

padding: 12px 6px;

color: var(--joc-ivory) !important;

font-size: 13px;
font-weight: 800;
letter-spacing: 0.5px;

text-decoration: none;
}


/* TODAY */

#club-calendar .fc-day-today {
background: rgba(255, 107, 31, 0.07) !important;
}

#club-calendar
.fc-day-today
.fc-col-header-cell-cushion {
    color: var(--joc-orange) !important;
}


/* TIME COLUMN */

#club-calendar .fc-timegrid-axis-cushion,
#club-calendar .fc-timegrid-slot-label-cushion {
color: var(--joc-muted);

font-size: 12px;
}


/* GRID */

#club-calendar .fc-theme-standard td,
#club-calendar .fc-theme-standard th {
border-color: var(--joc-border);
}

#club-calendar .fc-timegrid-slot {
background: var(--joc-panel);
}

#club-calendar .fc-scrollgrid {
border-color: var(--joc-border);
}


/* MONTH VIEW */

#club-calendar .fc-daygrid-day-number {
padding: 8px;

color: var(--joc-ivory);

text-decoration: none;
}

#club-calendar
.fc-day-today
.fc-daygrid-day-number {
    color: var(--joc-orange);

    font-weight: 800;
}


/* CURRENT TIME LINE */

#club-calendar .fc-timegrid-now-indicator-line {
border-color: var(--joc-orange);
border-width: 2px 0 0;
}

#club-calendar .fc-timegrid-now-indicator-arrow {
border-color:
transparent
transparent
transparent
var(--joc-orange);
}


/* BOOKED GAMES */

#club-calendar .fc-event {
background: var(--joc-orange);
border-color: var(--joc-orange);

color: #101820;

border-radius: 6px;

cursor: pointer;
}

#club-calendar .fc-event-main {
color: #101820;

font-weight: 700;
}

#club-calendar .fc-event:hover {
background: var(--joc-orange-hover);
border-color: var(--joc-orange-hover);
}


/* CALENDAR LINKS */

#club-calendar a {
text-decoration: none;
}


/* MOBILE CALENDAR */

@media (max-width: 700px) {

    .calendar-club-heading {
        align-items: flex-start;
    }

    .calendar-club-logo {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .calendar-toolbar {
        grid-template-columns: 1fr;
    }

    #calendar-title {
    order: -1;
    text-align: left;
    }

    .calendar-views {
        justify-content: flex-start;
    }

    .calendar-card {
        padding: 8px;
        overflow-x: auto;
    }

    #club-calendar {
    min-width: 650px;
    }

}
.venue-hours-note {
    margin: 10px 0 0;
    padding: 10px 12px;

    background: rgba(255, 107, 31, 0.10);
    color: var(--joc-orange);

    border: 1px solid rgba(255, 107, 31, 0.35);
    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
}
