/* Cards Against Humanity Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Index page specific styles */
body.index-page {
    background-color: #000000;
    color: #ffffff;
}

body.index-page .btn {
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
}

body.index-page .btn:hover {
    background-color: #ffffff;
    color: #000000;
}

body.index-page .btn-primary {
    background-color: #ffffff;
    color: #000000;
}

body.index-page .btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Game page specific styles */
body.game-page {
    background-color: #F5F5F5;
    color: #333333;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Lobby background - black when lobby is visible */
body.game-page.lobby-mode {
    background-color: #000000;
    color: #ffffff;
}

/* Player names should be black in lobby for visibility */
body.game-page.lobby-mode .player-card-name {
    color: #000000 !important;
}

body.game-page .container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    max-width: none;
}

body.game-page .main-content {
    flex: 1;
    overflow-y: auto;
}

/* Hide header and footer on game page */
body.game-page .header {
    display: none;
}

body.game-page .footer {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header - Only for index page */
.header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #ffffff;
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #ffffff;
    -webkit-text-stroke: 1px #ffffff;
    color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

/* New Game Layout Styles */

/* Player Cards Row */
.player-cards-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 60px;
}

.player-card-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border: none;
    border-radius: 6px;
    min-width: 150px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    height: 40px;
    justify-content: space-between;
}

.player-card-new:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.player-card-new.czar {
    background-color: #1A1B1E !important;
    color: #ffffff !important;
    border-color: #1A1B1E !important;
}

.player-card-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.player-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.player-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    line-height: 1;
    flex: 1;
}

.player-score-number {
    color: #FFA500;
    font-weight: 600;
}

/* Score styling removed - now displayed inline with name */

/* Black Card Section */
.black-card-section-new {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    flex: 1;
    min-height: 0;
}

.black-card-new {
    width: 250px;
    height: 350px;
    background-color: #1A1B1E;
    color: #ffffff;
    border-radius: 12px;
    padding: 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.black-card-content {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 3.5rem;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    white-space: normal;
    display: block;
}

.black-card-logo {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 140px;
    height: 40px;
}

/* Announcer Section */
.announcer-section {
    text-align: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.announcer-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
}

/* White Cards Hand */
.white-cards-hand {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    background-color: transparent;
    border-top: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.white-card-new {
    width: 200px;
    height: 240px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.white-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.white-card-new.selected {
    border-color: #FFA500;
    background-color: #fff8e1;
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.3);
}

.white-card-content {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 3rem;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.white-card-logo {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 135px;
    height: 35px;
    pointer-events: none;
}

.white-card-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Game Controls - Removed, buttons moved to submit controls */

/* Responsive Design */
@media (max-width: 768px) {
    .player-cards-row {
        padding: 0.5rem;
    }
    
    .player-card-new {
        min-width: 150px;
        padding: 0.5rem 0.75rem;
    }
    
    .black-card-new {
        width: 200px;
        height: 280px;
    }
    
    .black-card-content {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 3rem;
        font-size: 1rem;
        overflow: visible;
        white-space: normal;
    }
    
    .white-card-new {
        width: 150px;
        height: 180px;
    }
    
    .white-card-content {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 2.5rem;
        font-size: 0.9rem;
        font-weight: 700;
        overflow: visible;
        white-space: normal;
    }
    
    .submission-card {
        width: 150px;
        height: 180px;
    }
    
    .submission-card-content {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 2.5rem;
        font-size: 0.9rem;
        font-weight: 700;
        overflow: visible;
        white-space: normal;
    }
    
    .submit-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.game-intro {
    text-align: center;
}

.game-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro-text {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Game Setup */
.game-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.setup-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rules {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rule-number {
    background-color: #ffffff;
    color: #000000;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rule-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Buttons */
.game-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: 2px solid #333333;
    background-color: transparent;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #333333;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #333333;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Card Preview */
.card-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.card {
    width: 200px;
    height: 300px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.black-card {
    background-color: #000000;
    color: #ffffff;
}

.white-card {
    background-color: #ffffff;
    color: #000000;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333333;
    margin-top: 3rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .game-setup {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 180px;
        height: 270px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .game-intro h2 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .card {
        width: 160px;
        height: 240px;
    }
}

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

.main-content > * {
    animation: fadeInUp 0.6s ease-out;
}

.main-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.main-content > *:nth-child(3) {
    animation-delay: 0.4s;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #000000;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.close {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #333333;
    border-radius: 6px;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Lobby Styles */
.lobby-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.game-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.game-code-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.game-code {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-code-help {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.game-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-waiting {
    background-color: #ffa500;
    color: #000000;
}

.status-active {
    background-color: #00ff00;
    color: #000000;
}

.players-section {
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.players-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.player-card {
    padding: 1rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.player-card:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.host-badge {
    background-color: #ffa500;
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-score {
    font-size: 0.9rem;
    opacity: 0.7;
}

.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.host-actions {
    display: flex;
    justify-content: center;
}

.player-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Lobby */
@media (max-width: 768px) {
    .game-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .game-code-display {
        justify-content: center;
    }
    
    .players-list {
        grid-template-columns: 1fr;
    }
    
    .player-actions {
        flex-direction: column;
    }
    
    .player-actions .btn {
        width: 100%;
    }
}

/* Deck Selection Styles */
.deck-section {
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.deck-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.deck-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.selected-deck {
    padding: 1rem;
    border: 2px solid #00ff00;
    border-radius: 8px;
    background-color: rgba(0, 255, 0, 0.1);
}

.selected-deck h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #00ff00;
}

.deck-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deck-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.deck-author {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #ffffff;
}

.deck-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.deck-card {
    padding: 1rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.deck-card:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.deck-card.selected {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.deck-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.deck-card-author {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.deck-card-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background-color: #333333;
    color: #ffffff;
    display: inline-block;
}

.deck-card-type.custom {
    background-color: #ffa500;
    color: #000000;
}

.deck-card-type.official {
    background-color: #00ff00;
    color: #000000;
}

/* Responsive Design for Deck Selection */
@media (max-width: 768px) {
    .deck-list {
        grid-template-columns: 1fr;
    }
    
    .deck-selection {
        gap: 1rem;
    }
}

/* Game Board Styles */
.game-board {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.round-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid #ffffff;
    border-radius: 12px;
}

.round-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.czar-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.czar-label {
    font-size: 1rem;
    opacity: 0.7;
}

.czar-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffa500;
}

.black-card-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.black-card-display {
    max-width: 600px;
    width: 100%;
}

.black-card {
    background-color: #000000;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.black-card .card-content {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.pick-requirement {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    font-size: 1rem;
}

.submissions-area {
    padding: 2rem;
    border: none;
    border-radius: 12px;
    background: transparent;
}

.submissions-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submissions-list {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    background-color: transparent;
    border-top: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.submission-card {
    width: 200px;
    height: 240px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.submission-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.submission-card.selected {
    border-color: #FFA500;
    background-color: #fff8e1;
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.3);
}

.submission-card.winner {
    border-color: #FFA500;
    background-color: #fff8e1;
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.3);
    animation: winnerPulse 2s infinite;
}

@keyframes winnerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.submission-card-content {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 3rem;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: none;
}

.submission-card-logo {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 135px;
    height: 35px;
    pointer-events: none;
}

.submission-card-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.czar-controls {
    display: none !important;
}

.czar-controls p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffa500;
}

.submission-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.submission-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.submission-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.player-hand-section {
    background-color: transparent;
    border: none;
    padding: 0;
}

.player-hand-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-hand {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.white-card {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.white-card:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.white-card.selected {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.white-card-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.submit-controls {
    text-align: center;
    padding: 1rem;
    background-color: transparent;
    border-top: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.next-round-actions {
    display: none;
}

.next-round-actions.show {
    display: block;
}

.score-board {
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.score-board h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.score-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.score-item:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.score-item.current-player {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.score-item.czar {
    border-color: #ffa500;
    background-color: rgba(255, 165, 0, 0.1);
}

.score-player-name {
    font-size: 1rem;
    font-weight: 600;
}

.score-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff00;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.next-round-actions {
    text-align: center;
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Game Board */
@media (max-width: 768px) {
    .game-board {
        gap: 1.5rem;
    }
    
    .round-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .black-card {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    .black-card .card-content {
        font-size: 1.2rem;
    }
    
    .submissions-list {
        padding: 0.5rem;
    }
    
    .player-hand {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .score-list {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .game-controls .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .black-card {
        padding: 1rem;
        min-height: 120px;
    }
    
    .black-card .card-content {
        font-size: 1rem;
    }
    
    .player-hand {
        grid-template-columns: 1fr;
    }
    
    .white-card {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .game-code {
        font-size: 2rem;
    }
}