:root {
    --primary-color: #1b4332;
    --secondary-color: #2d6a4f;
    --accent-color: #d4af37;
    --text-color: #ffffff;
    --error-color: #ff4444;
    --success-color: #00c851;
    --card-width: 120px;
    --card-height: 168px;
    --table-green: #2c5530;
    --dark-green: #1e3d23;
    --light-green: #397042;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Auth Styles */
#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.auth-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.casino-decoration {
    text-align: center;
    margin-bottom: 30px;
}

.card-decoration {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.casino-title {
    color: var(--accent-color);
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-wrapper {
    position: relative;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
}

.auth-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #c19b2f;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Game Styles */
.game-container {
    display: grid;
    grid-template-areas:
        "dealer dealer dealer"
        "player controls other";
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    height: 100vh;
    background: var(--primary-color);
}

.dealer-section {
    grid-area: dealer;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.player-section {
    grid-area: player;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.controls-section {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.other-players {
    grid-area: other;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
}

.other-player {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    min-width: 200px;
}

.other-player .player-name {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.other-player .player-cards {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.other-player .card {
    width: var(--card-width);
    height: var(--card-height);
    background: white;
    border-radius: 8px;
    position: relative;
    color: black;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.other-player .card-back {
    background: linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%),
                linear-gradient(-45deg, var(--secondary-color) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--secondary-color) 75%),
                linear-gradient(-45deg, transparent 75%, var(--secondary-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    background: linear-gradient(45deg, #1a472a, #2d5a3f);
    border: 2px solid #0a1f12;
    position: relative;
}

.other-player.current-turn {
    box-shadow: 0 0 10px var(--accent-color);
}

.multiplayer-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: calc(var(--card-height) + 20px);
    padding: 10px;
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    margin: 5px;
    position: relative;
    perspective: 1000px;
    cursor: default;
    transition: transform 0.3s ease;
}

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

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    font-family: 'Arial', sans-serif;
}

/* Suit Colors */
.spades {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #2D3436;
}

.hearts {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
    color: #E84393;
}

.clubs {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #2D3436;
}

.diamonds {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
    color: #E84393;
}

/* Corner Values */
.corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-weight: bold;
}

.corner.top {
    top: 8px;
    left: 8px;
}

.corner.bottom {
    bottom: 8px;
    right: 8px;
    transform: rotate(180deg);
}

.corner .value {
    font-size: 24px;
    font-weight: 800;
}

.corner .suit {
    font-size: 20px;
    line-height: 1;
}

/* Center Pip */
.center-pip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.big-suit {
    font-size: 60px;
    line-height: 1;
    margin-bottom: -10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.big-value {
    font-size: 40px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Back */
.card-back {
    background: linear-gradient(135deg, #6C5CE7 0%, #4834d4 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-back-design {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.card-back-design::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0.5;
    pointer-events: none;
}

/* Card Animations */
@keyframes dealCard {
    from {
        transform: translateY(-100vh) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

.card.dealt {
    animation: dealCard 0.5s ease-out forwards;
}

/* Face Card Styles */
.card[data-value="K"] .big-value,
.card[data-value="Q"] .big-value,
.card[data-value="J"] .big-value {
    font-size: 50px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Ace Styles */
.card[data-value="A"] .big-value {
    font-size: 60px;
    font-weight: 900;
    color: inherit;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.card:hover .card-shine {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Active Player Card Highlight */
.current-turn .card {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    transform: translateY(-10px);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chips-display {
    color: var(--accent-color);
    font-weight: bold;
}

.game-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--table-green);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.game-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, 
            var(--light-green) 25%, 
            transparent 25%),
        linear-gradient(-45deg, 
            var(--light-green) 25%, 
            transparent 25%),
        linear-gradient(45deg, 
            transparent 75%, 
            var(--light-green) 75%),
        linear-gradient(-45deg, 
            transparent 75%, 
            var(--light-green) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.game-area {
    position: relative;
    z-index: 1;
}

.dealer-timer {
    color: var(--accent-color);
    font-size: 1.2em;
    margin: 10px 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: inline-block;
}

.table-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#message-area {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
    pointer-events: none;
}

.message {
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in;
}

.message.info {
    background-color: #f0f0f0;
    color: #333;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
}

.message.dealer {
    background-color: #2c2c2c;
    color: #d4af37;
    font-weight: bold;
    border-left: 4px solid #d4af37;
    font-family: 'Times New Roman', serif;
}

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

#chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
}

.chat-message {
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-message.info {
    border-left: 3px solid #2196F3;
}

.chat-message.success {
    border-left: 3px solid #4CAF50;
}

.chat-message.error {
    border-left: 3px solid #f44336;
}

.chat-message.dealer {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #d4af37;
    color: #d4af37;
    font-family: 'Times New Roman', serif;
}

.message-content {
    display: flex;
    align-items: center;
}

.dealer-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

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

.chat-input {
    display: flex;
    gap: 8px;
}

button {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

button:hover:not(:disabled) {
    background: #e5c14c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

button:disabled {
    background: #1a1a1a !important;
    cursor: not-allowed;
    opacity: 0.9;
    color: #666;
    border: 1px solid #333;
    position: relative;
}

button:disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Game action buttons */
.game-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.game-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.game-controls button:hover {
    background-color: var(--light-green);
}

.game-controls button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

#toggle-cards-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

#toggle-cards-btn:hover {
    background-color: #c19b2f;
}

/* Betting controls */
.betting-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#bet-amount {
    flex: 2;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-color);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 1.1em;
    text-align: center;
}

#place-bet-btn {
    flex: 1;
    background: #3498db;
}

#place-bet-btn:hover:not(:disabled) {
    background: #2980b9;
}

/* Chat controls */
#chat-send {
    background: var(--accent-color);
    padding: 8px 16px;
    min-width: 80px;
}

#chat-send:hover:not(:disabled) {
    background: #e5c14c;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1em;
}

#chat-input:focus {
    outline: none;
    border-color: #e5c14c;
    box-shadow: 0 0 5px rgba(229,193,76,0.5);
}

.controls-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-input-group {
    display: flex;
    gap: 10px;
}

.bet-input-group input {
    width: 100px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.game-controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover:not(:disabled) {
    background: #c19b2f;
}

.btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.insurance-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
}

.insurance-prompt h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.insurance-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.score {
    margin-top: 10px;
    font-size: 1.2em;
    color: var(--accent-color);
}

.lobby-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--accent-color);
}

.lobby-section h2 {
    color: var(--accent-color);
    margin: 0 0 15px 0;
    font-size: 1.4em;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.lobby-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobby-player {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: all 0.2s ease;
}

.lobby-player:hover {
    background: rgba(0, 0, 0, 0.3);
}

.lobby-player.current-turn {
    border: 1px solid var(--accent-color);
    background: rgba(255, 215, 0, 0.1);
}

.lobby-player .player-name {
    flex: 1;
    font-weight: bold;
}

.lobby-player .player-status {
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.lobby-player .player-hand {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.lobby-player .player-hand img {
    width: 40px;
    height: 58px;
    transition: transform 0.2s ease;
}

.lobby-player .player-hand img:hover {
    transform: translateY(-5px);
}

.lobby-player .player-chips {
    color: var(--accent-color);
    margin-left: 10px;
    font-weight: bold;
}

.status-waiting {
    background: #666;
}

.status-playing {
    background: #2ecc71;
}

.status-betting {
    background: #3498db;
}

/* Dealer Area Styles */
#dealer-cards {
    min-height: calc(var(--card-height) + 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

#dealer-cards .card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: var(--card-width);
    position: relative;
}

/* Dealer Score */
#dealer-cards .score {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: scorePopIn 0.3s ease-out forwards;
}

@keyframes scorePopIn {
    from {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Dealer Active State */
#dealer-cards.dealer-active {
    animation: dealerPulse 2s infinite;
}

@keyframes dealerPulse {
    0% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    }
}

/* Card Back Enhanced Design */
.card.card-back {
    background: linear-gradient(135deg, #6C5CE7 0%, #4834d4 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-back-design {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 25%, 
            transparent 25%, 
            transparent 75%, 
            rgba(255, 255, 255, 0.1) 75%
        ),
        linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 25%, 
            transparent 25%, 
            transparent 75%, 
            rgba(255, 255, 255, 0.1) 75%
        );
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    position: relative;
}

.card-back-design::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.card-back-design::after {
    content: '♠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Card Deal Animation */
.card.dealt {
    animation: dealCardToDealer 0.5s ease-out forwards;
}

@keyframes dealCardToDealer {
    from {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

/* Card Stack Effect */
#dealer-cards .card:not(:first-child) {
    margin-left: -40px;
    transition: transform 0.3s ease;
}

#dealer-cards .card:hover {
    transform: translateY(-10px) rotate(2deg);
    z-index: 10;
}

#dealer-cards .card:hover ~ .card {
    transform: translateX(20px);
}

/* Login Card Decoration */
.card-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.login-card {
    width: 100px;
    height: 140px;
    perspective: 1000px;
    position: relative;
}

.login-card .card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.login-card .card:hover {
    transform: translateY(-5px) rotateY(10deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-card .card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.login-card .card-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-card .card-suit {
    font-size: 3em;
    line-height: 1;
}

/* Card shine effect */
.login-card .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 10px;
    pointer-events: none;
}

/* Help button styles */
.help-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.help-button:hover {
    background-color: #c19b2f;
    transform: translateY(-2px);
}

/* Verification UI Styles */
#verify-fairness {
    margin: 10px;
    padding: 8px 16px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#verify-fairness:hover {
    background-color: #138496;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #1a1a1a;
    color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.verification-details {
    margin-top: 20px;
}

.verification-details h3 {
    color: #17a2b8;
    margin-bottom: 15px;
}

.verification-details p {
    margin: 10px 0;
    word-break: break-all;
}

.deck-state {
    margin: 20px 0;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 4px;
    line-height: 2;
}

.card-state {
    display: inline-block;
    margin: 2px;
    padding: 4px 8px;
    background-color: #333;
    border-radius: 4px;
}

.card-state.red {
    color: #ff4444;
}

.card-state.black {
    color: #ffffff;
}

.verification-instructions {
    margin-top: 30px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 4px;
}

.verification-instructions ol {
    margin: 15px 0 0 20px;
}

.verification-instructions li {
    margin: 10px 0;
    line-height: 1.4;
}
