/* Wisecrack — warm orange theme */
:root {
    --game-primary: #ff6b35;
    --wc-primary: #ff6b35;
    --wc-primary-dark: #cc5529;
    --wc-bg-card: #2a1a0e;
    --wc-bg-card-border: #ff6b35;
}

/* Override common.css accent colors */
h1, h2 { color: var(--wc-primary); }

input[type="text"], textarea {
    border-color: var(--wc-primary);
}

#join-btn, #start-btn, #playagain-btn {
    background: var(--wc-primary);
    color: #1a1a2e;
}

.join-room-code {
    color: var(--wc-primary);
}

.room-code-display {
    color: var(--wc-primary);
}

.room-code-lobby {
    text-align: center;
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 20px;
}

.room-code-lobby span {
    color: var(--wc-primary);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
}

/* --- Player Mode --- */
.player-mode #app {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Prompt card */
.prompt-card {
    background: var(--wc-bg-card);
    border: 2px solid var(--wc-bg-card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.prompt-card p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border: 2px solid var(--wc-primary);
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    margin-bottom: 12px;
    resize: none;
    font-family: inherit;
    outline: none;
}

textarea:focus {
    border-color: #ff8f60;
}

#submit-response-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--wc-primary);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Waiting message */
.waiting-message {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 20px;
    font-style: italic;
}

/* Vote buttons */
.vote-btn {
    width: 100%;
    padding: 18px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #16213e;
    border: 2px solid var(--wc-primary);
    color: #eee;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
    transition: transform 0.1s, background 0.2s;
}

.vote-btn:active {
    transform: scale(0.97);
}

.vote-btn.selected {
    background: var(--wc-primary);
    color: #1a1a2e;
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Results */
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #16213e;
    font-size: 1.05rem;
}

.result-votes {
    color: var(--wc-primary);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 12px;
}

/* Scores summary */
.scores-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

/* --- Display Mode --- */
.display-mode #app {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.display-prompt-card {
    background: var(--wc-bg-card);
    border: 2px solid var(--wc-bg-card-border);
    border-radius: 16px;
    padding: 40px;
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
}

.display-prompt-card p {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Display scores bar */
#display-scores {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

#display-scores .score-tag {
    padding: 8px 20px;
    background: #16213e;
    border: 2px solid var(--wc-primary);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--wc-primary);
    font-weight: 600;
}

/* Submission status */
#submission-status {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Vote instruction */
.vote-instruction {
    text-align: center;
    color: #aaa;
    margin-bottom: 16px;
    font-size: 1rem;
}

/* TV mode link */
.tv-mode-link {
    display: none;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 16px;
    text-decoration: none;
}
.tv-mode-link:hover {
    color: var(--wc-primary);
    text-decoration: underline;
}
@media (min-width: 768px) {
    .tv-mode-link { display: block; }
}
