

.container-input > input {
    padding: 0vh 1vh;
    border-radius: 0.5vh;
    max-width: 7vh;
}


/* Right column */
.rightcolumn {
    min-width: fit-content;
}

/* Main Table */
#pageBody {
    max-height: 82vh;
    padding: 0 5vw;
    margin: 0 auto;
    border: 0;
    align-content: center;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    width: 90vw;
    color: var(--colour-text);
}


/* Footer */
.footer {
    padding: 1vh 1vw;
    text-align: center;
    margin: 0;
    max-height: 5vh;
    overflow-y: auto;
    background-color: var(--colour-accent);
    position: absolute;
    bottom: 0;
    width: 98vw;
}

@media screen and (max-width: 400px) {
    .footer  {
        max-height: 8vh;
        padding: 0.75vh 2vw;
        font-size: 10px;    
        width: 96vw;
        max-width: 96vw;
    }
    .footer > h4 {
        font-size: 10px;
    }
    .footer > h5 {
        font-size: 9px;
    }
}

.footer > h4, h5 {
    padding: 0;
    margin: 0;
}
/* MTG Single Game Page Styles */

.tcg-title.dirty {
    background-color: var(--tcg-accent-purple);
}

#buttonHamburger {
    display: none;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1vh auto;
    flex-wrap: wrap;
    gap: 0;
    animation: tcg-fadeInDown 0.8s ease-out;
}

.header-left, .header-right {
    flex: 1;
    color: var(--tcg-text-secondary);
    font-size: 1rem;
    margin: 0 auto;
}

.header-left {
    padding-left: 15vw;
    width: 30vw;
}

.header-right {
    text-align: right;
    min-width: 15vw;
    width: 15vw;
}

.header-center {
    text-align: center;
    flex: 2;
    padding-left: 4vw;
}

.game-header .container.save.button-cancel {
    width: 15vw;
    max-width: 15vw;
}

.back-link {
    color: var(--tcg-text-secondary);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--tcg-accent-gold);
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tcg-accent-gold), var(--tcg-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.game-meta {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.game-meta .location {
    color: var(--tcg-text-secondary);
    font-size: 1rem;
    width: 4vw;
}

/* Setup Section */
.setup-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: tcg-fadeIn 0.8s ease-out 0.2s backwards;
}

.setup-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group .tcg-input {
    width: 80px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.player-names-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    justify-content: center;
}

.player-name-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid gray;
    border-radius: 0.5vh;
    padding: 1vh;
    width: fit-content;
}
.player-name-input-wrapper.is_collapsed {
    display: none;
}

.player-name-heading-label,
.player-name-label {
    font-size: 0.9rem;
    color: var(--tcg-text-secondary);
    letter-spacing: 0.05em;
}
.player-name-label {
    font-size: 0.8rem;
}

.setup-actions {
    text-align: center;
}

/* Game Section */
#gameSection {
    margin: 0 auto;
}
#gameSection .row.round {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--tcg-text-secondary);
    margin: 0 auto 0.5vh;
    width: fit-content;
}
#gameSection .row.round .row.round .round.display_order {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tcg-bg-card);
    border: 1px solid var(--tcg-border-color);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}
/*
#gameSection .row.round label {
    margin-left: 30vw;
    color: var(--tcg-text-secondary);
    font-size: 1rem;
    width: 4vw;
}
#gameSection .row.round input {
    width: 10vw;
    margin: 0 3vw 1vh;
}
*/
#gameSection .row.round .row.round span.round.display_order {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--tcg-text-primary);
    min-width: 20px;
    justify-content: center;
}
#gameSection .row.round .row.round button.btn-round-display-order {
    background: transparent;
    border: none;
    color: var(--tcg-text-secondary);
    cursor: pointer;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
#gameSection .row.round .row.round button.btn-round-display-order:hover {
    color: var(--tcg-accent-red);
    transform: scale(1.2);
}

/* Players Grid */
.players-grid {
    display: flex; /* grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    */
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 90vw;
  flex-wrap: wrap;
  margin: 0 auto;
  width: fit-content;

}

/* Player Card */
.player-card {
    background: var(--tcg-bg-secondary);
    border: 2px solid var(--tcg-border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: tcg-scaleIn 0.5s ease-out backwards;
    width: fit-content;
    max-width: 35vw;
    min-width: 20vw;
    margin: 0 auto;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tcg-accent-purple), var(--tcg-accent-gold));
}

.player-card.eliminated {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-info {
    flex: 1;
    min-width: 150px;
}

.player-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tcg-accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.commander-deaths {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--tcg-text-secondary);
}

.death-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tcg-bg-card);
    border: 1px solid var(--tcg-border-color);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.death-display {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--tcg-text-primary);
    min-width: 20px;
    text-align: center;
}

.death-btn {
    background: transparent;
    border: none;
    color: var(--tcg-text-secondary);
    cursor: pointer;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.death-btn:hover {
    color: var(--tcg-accent-red);
    transform: scale(1.2);
}

.eliminate-btn {
    background: var(--tcg-accent-red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.eliminate-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Life Total */
.life-total {
    text-align: center;
    margin-bottom: 2rem;
}

.life-display {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--tcg-text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.life-gain-controls,
.life-loss-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1vh;
}

.life-gain-btn,
.life-loss-btn {
    background: var(--tcg-bg-card);
    border: 2px solid var(--tcg-border-color);
    color: var(--tcg-text-primary);
    width: 60px;
    height: 45px;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-gain-btn:hover,
.life-loss-btn:hover {
    border-color: green; /*var(--tcg-accent-purple);*/
    background: green; /*var(--tcg-accent-purple);*/
    color: var(--tcg-bg-primary);
    transform: scale(1.1);
}

.life-loss-btn:hover {
    border-color: red;
    background: red;
}

.life-gain-btn:active,
.life-loss-btn:active {
    transform: scale(0.95);
}

.life-total label {
    color: var(--tcg-text-primary);
    width: 100%;
    margin-bottom: 1vh;
    display: inline-block;
}

/* Commander Damage Section */
.commander-damage-section {
    border-top: 1px solid var(--tcg-border-color);
    padding-top: 1.5rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--tcg-accent-purple);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.damage-grid {
    display: grid;
    gap: 0.75rem;
}

.damage-row {
    background: var(--tcg-bg-card);
    border: 1px solid var(--tcg-border-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.damage-row:hover {
    border-color: var(--tcg-accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.damage-source {
    font-size: 1rem;
    color: var(--tcg-text-secondary);
    padding-right: 1vh;
}

.damage-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.damage-display {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tcg-text-primary);
    min-width: 40px;
    text-align: center;
}

.damage-display.lethal {
    color: var(--tcg-accent-red);
    animation: pulse 1s ease-in-out infinite;
}

.damage-btn {
    background: var(--tcg-bg-primary);
    border: 1px solid var(--tcg-border-color);
    color: var(--tcg-text-primary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.damage-btn:hover {
    border-color: var(--tcg-accent-purple);
    background: var(--tcg-accent-purple);
    color: var(--tcg-bg-primary);
}

.damage-log.container {
    color: white;
    margin: 2vh auto 0;
    text-align: center;
}
.damage-log.container table thead tr th.round_id,
.damage-log.container table tbody tr td.round_id {
    width: 7vw;
}
.damage-log.container table thead tr th.player_id,
.damage-log.container table tbody tr td.player_id,
.damage-log.container table thead tr th.received_from_commander_player_id,
.damage-log.container table tbody tr td.received_from_commander_player_id {
    width: 20vw;
}
.damage-log.container table thead tr th.life_gain,
.damage-log.container table tbody tr td.life_gain,
.damage-log.container table thead tr th.life_loss,
.damage-log.container table tbody tr td.life_loss {
    width: 7vw;
}
.damage-log.container table thead tr th.commander-deaths,
.damage-log.container table tbody tr td.commander-deaths {
    width: 7vw;
}
.damage-log.container table thead tr th.is_eliminated,
.damage-log.container table tbody tr td.is_eliminated {
    width: 7vw;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--tcg-bg-secondary);
    border: 2px solid var(--tcg-accent-gold);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: 'Cinzel', serif;
    color: var(--tcg-accent-gold);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Badges (same as games page) */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-commander {
    background: linear-gradient(135deg, var(--tcg-accent-purple), rgba(139, 92, 246, 0.5));
    color: white;
    margin: 0 auto;
}

.badge-draft {
    background: linear-gradient(135deg, #2563eb, rgba(37, 99, 235, 0.5));
    color: white;
}

.badge-sealed {
    background: linear-gradient(135deg, #059669, rgba(5, 150, 105, 0.5));
    color: white;
}

.badge-standard {
    background: linear-gradient(135deg, var(--tcg-accent-gold), rgba(212, 175, 55, 0.5));
    color: var(--tcg-bg-primary);
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        text-align: center;
    }

    .header-left, .header-right {
        text-align: center;
    }

    .game-title {
        font-size: 1.8rem;
    }

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

    .life-display {
        font-size: 3rem;
    }

    .life-gain-btn,
    .life-loss-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .setup-controls {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 1260px) {
    #buttonHamburger {
        display: block;
    }
}

/*# sourceMappingURL=tcg_game.bundle.css.map*/