@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

body {
    font-family: 'Lora', serif;
    background-color: #0f3d0f; /* Dark green background */
    background-image: url('https://www.transparenttextures.com/patterns/felt.png'); /* Subtle felt texture */
    color: #fdfdfd; /* Off-white text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.container {
    background: #fdfdfd;
    color: #333;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), 0 0 3px rgba(0,0,0,0.5) inset;
    width: 95%;
    max-width: 700px;
    border: 2px solid #c9b79c;
    box-sizing: border-box;
}

h1 {
    font-family: 'Georgia', serif;
    color: #8B0000; /* Dark Red */
    text-align: center;
    text-shadow: 1px 1px 1px #ccc;
    margin-bottom: 1.5rem;
}

.brand-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

#login-view .brand-group {
    align-items: center;
    margin-bottom: 1.5rem;
}

#login-view .brand-group h1 {
    margin-bottom: 0.35rem;
}

.header-row .brand-group {
    align-items: flex-start;
}

.by-qvickis {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: #8c827a;
    line-height: 1;
    margin-top: 2px;
}

.by-qvickis span {
    font-weight: 700;
    color: #4a3e3d;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-row h1 {
    margin: 0;
}

.suits {
    letter-spacing: 0.1em;
}

.hidden {
    display: none !important;
}

#login-view {
    text-align: center;
}

button, #login-google {
    background-color: #8B0000; /* Dark Red */
    color: white;
    border: 1px solid #5a0000;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Lora', serif;
    margin-top: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

button:hover, #login-google:hover {
    background-color: #a52a2a; /* Brown */
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.secondary {
    background-color: #f5f0e6;
    color: #5a3a22;
    border: 1px solid #c9b79c;
    font-size: 0.95rem;
    padding: 8px 16px;
}

button.secondary:hover {
    background-color: #eaddc5;
}

input[type="text"], input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Lora', serif;
    background: #f9f9f9;
}

#game-setup, #game-info, #round-input, #game-summary {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.setup-hint, #chooser-hint {
    color: #5a3a22;
    font-style: italic;
}

#game-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#score-table, #summary-table, #history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#score-table th, #score-table td,
#summary-table th, #summary-table td,
#history-table th, #history-table td {
    border: 1px solid #d4c1a8; /* Lighter brown border */
    padding: 12px;
    text-align: left;
}

#score-table th, #summary-table th, #history-table th {
    background-color: #eaddc5; /* Light tan */
    color: #5a3a22; /* Dark brown text */
}

#score-table td, #summary-table td, #history-table td {
    background-color: #f9f5ed; /* Very light tan */
}

.table-scroll {
    overflow-x: auto;
}

.score-cell {
    font-weight: bold;
}

.chosen-cell s {
    color: #999;
}

.role-badge {
    display: inline-block;
    background-color: #eaddc5;
    color: #5a3a22;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.8rem;
    vertical-align: middle;
}

#history-table td.positive {
    color: #1a6b1a;
    font-weight: bold;
}

#history-table td.negative {
    color: #8B0000;
    font-weight: bold;
}

#game-type-buttons button, #trump-buttons button {
    margin: 5px;
    background-color: #555;
    border-width: 2px;
    border-color: #444;
}

#game-type-buttons button.selected, #trump-buttons button.selected {
    background-color: #8B0000;
    border-color: #5a0000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#trump-buttons button {
    font-size: 1.5rem;
}

#trump-buttons button.red-suit {
    color: #ff9d9d;
}

#trump-buttons button.selected.red-suit {
    color: #ffd7d7;
}

#round-input h3, #round-input h4, #game-summary h2, #round-history h3 {
    color: #8B0000;
}

#winner-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.expected-hint {
    font-weight: normal;
    color: #777;
    font-size: 0.9rem;
}

#tricks-inputs label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#end-game {
    display: block;
}

/* Footer & Cookie Banner */
.site-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #2d6b2d;
    text-align: center;
    font-size: 0.8rem;
    color: #a3d9a3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.site-footer a, .site-footer button {
    color: #ffcc00;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}
.csb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 61, 15, 0.96);
    border-top: 2px solid #2d6b2d;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
    z-index: 10000;
    color: #e0f2e0;
    font-size: 0.85rem;
}
.csb-cookie-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.csb-cookie-text p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #a3d9a3;
}
.csb-cookie-text a {
    color: #ffcc00;
}
.csb-cookie-actions {
    display: flex;
    gap: 0.5rem;
}
.csb-cookie-actions button {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid transparent;
}
.csb-cookie-actions .btn-primary {
    background: #ffcc00;
    color: #0f3d0f;
    font-weight: bold;
}
.csb-cookie-actions .btn-secondary {
    background: transparent;
    border: 1px solid #a3d9a3;
    color: #e0f2e0;
}

