/**
 * Practice / Quiz Mode Styles
 *
 * Page-specific styles for the hand practice and quiz features.
 */

/* =====================================================================
   HANDS GRID & LAYOUT
   ===================================================================== */

.hands-count {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.75rem;
}

/* Hand Cards Grid - Single column for focused learning */
.hands-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* When grid contains active quiz card, allow wider content */
.hands-grid:has(.quiz-hand-card) {
    max-width: none;
    display: block;
}

/* =====================================================================
   HAND CARD
   ===================================================================== */

.hand-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 20px 5px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.hand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hand-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hand-id {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hand-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-difficulty {
    background: #2196f3;
    color: white;
}

.badge-street {
    background: #9c27b0;
    color: white;
}

.badge-archetype {
    background: #ff9800;
    color: white;
}

/* =====================================================================
   SITUATION CONTAINER
   ===================================================================== */

.situation-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.situation-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.hand-card .situation-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =====================================================================
   CARDS SECTION
   ===================================================================== */

.cards-section {
    margin-bottom: 15px;
}

/* =====================================================================
   STREET ROWS
   ===================================================================== */

.street-row {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--street-bg);
    border-radius: 6px;
    gap: 8px;
}

.street-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--label-street);
}

.street-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.street-cards {
    display: flex;
    gap: 4px;
}

.street-action {
    flex: 1;
    font-size: 0.85rem;
    color: white;
    line-height: 1.5;
}

.street-pot {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Street Lesson Blurbs */
.street-lesson {
    font-size: 0.8rem;
    color: #fbbf24;
    padding-top: 8px;
    line-height: 1.4;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.street-lesson.hidden {
    display: none;
}

.street-lesson .lesson-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fbbf24;
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    margin-right: 6px;
    vertical-align: middle;
}

.street-lesson .lesson-text {
    vertical-align: middle;
}

/* Progressive Street Reveal */
.street-row.hidden {
    display: none;
}

.reveal-street-btn,
.reveal-lesson-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.reveal-lesson-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

.reveal-street-btn:hover,
.reveal-lesson-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.1));
    border-color: var(--accent);
}

.reveal-lesson-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.1));
    border-color: #fbbf24;
}

.reveal-street-btn .reveal-icon,
.reveal-lesson-btn .reveal-icon {
    font-size: 1rem;
    margin-top: -4px;
}

.reveal-street-btn.hidden,
.reveal-lesson-btn.hidden {
    display: none;
}

/* Start Quiz Button (Quiz Mode) */
.reveal-street-btn.start-quiz-btn {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.08));
    border: 1px solid rgba(156, 39, 176, 0.5);
    color: #9c27b0;
}

.reveal-street-btn.start-quiz-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.35), rgba(156, 39, 176, 0.15));
    border-color: #9c27b0;
}

/* =====================================================================
   HOLE CARDS ROW
   ===================================================================== */

.hole-cards-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 20px;
}

.hole-cards-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hole-cards-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hole-cards-display {
    display: flex;
    gap: 5px;
}

/* =====================================================================
   PLAYERS ROW
   ===================================================================== */

.players-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.player-section {
    min-width: 0;
}

.player-section.hero-section {
    flex: 0 1 auto;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.player-section.villain-section {
    flex: 0 1 auto;
    padding-left: 0;
}

/* Larger hero and villain cards - match sizes */
.hero-section .playing-card,
.villain-section .playing-card {
    --card-width: 52px;
    --card-height: 67px;
    --card-font: 21px;
}

.player-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.player-cards-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.hero-section .player-cards-row .hand-rank-label {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
}

.villain-profile {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 6px;
}

.villain-type-line, .villain-range-line {
    margin-bottom: 2px;
}

.villain-archetype {
    color: var(--accent);
    font-weight: 600;
}

.villain-archetype-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-top: 0;
    vertical-align: middle;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
}

.range-label {
    color: var(--label-villain);
    font-weight: 600;
}

.villain-notes {
    font-style: italic;
    opacity: 0.8;
    margin-top: 4px;
}

/* Mobile-only villain info row - hidden on desktop */
.villain-info-row-mobile {
    display: none;
}

.villain-info-label {
    display: none;
}

/* =====================================================================
   RESULTS ROW
   ===================================================================== */

.results-row {
    display: flex;
    gap: 0;
    margin-top: -20px;
    margin-bottom: 12px;
}

.result-cell {
    font-size: 0.7rem;
    padding: 4px 15px;
    text-align: center;
    font-weight: 500;
}

.result-cell.hero-result {
    flex: 1;
    border-radius: 0 0 0 6px;
}

.result-cell.villain-result {
    flex: 2;
    border-radius: 0 0 6px 0;
}

.result-cell.winner {
    background: #1e3a1e;
    color: var(--winner-green);
}

.result-cell.loser {
    background: #3a1e25;
    color: var(--accent);
}

/* =====================================================================
   CARD BACK / VILLAIN CARDS
   ===================================================================== */

.card-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 50%, #1a365d 100%);
    border: 1px solid #3d5a80;
    border-radius: 4px;
    min-width: 52px;
    width: 52px;
    height: 67px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.03) 3px,
        rgba(255,255,255,0.03) 6px
    );
}

.villain-cards-container {
    position: relative;
    display: inline-flex;
    gap: 3px;
}

.villain-cards-hidden {
    display: flex;
    gap: 3px;
}

.villain-cards-revealed {
    display: none;
    gap: 3px;
}

.villain-cards-container.revealed .villain-cards-hidden {
    display: none;
}

.villain-cards-container.revealed .villain-cards-revealed {
    display: flex;
}

.btn-reveal {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--winner-green);
    border-radius: 3px;
    color: var(--winner-green);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
}

.btn-reveal:hover {
    background: rgba(76, 175, 80, 0.4);
}

.btn-reveal.revealed {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.hand-rank-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 4px;
}

/* =====================================================================
   SHOWDOWN SECTION
   ===================================================================== */

.showdown-section {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--winner-green);
}

.showdown-section.no-showdown {
    background: rgba(255,255,255,0.03);
    border-left-color: var(--text-muted);
}

.showdown-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.showdown-hands {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.showdown-hand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.showdown-player {
    font-size: 0.8rem;
    font-weight: 600;
}

.showdown-player.winner {
    color: var(--winner-green);
}

.showdown-player.loser {
    color: var(--text-muted);
}

.hand-rank {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =====================================================================
   LESSON CONTAINER
   ===================================================================== */

.lesson-container {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--label-lesson);
}

.lesson-container.hidden {
    display: none;
}

.lesson-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lesson-container-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--label-lesson);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-quality-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.play-quality-badge.good-play {
    background: rgba(76, 175, 80, 0.2);
    color: var(--winner-green);
    border: 1px solid var(--winner-green);
}

.play-quality-badge.bad-play {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.play-quality-badge.mixed-play {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.lesson-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
}

/* =====================================================================
   TAGS SECTION
   ===================================================================== */

.tags-section {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 4px;
    color: var(--accent);
}

/* =====================================================================
   HAND ACTIONS
   ===================================================================== */

/* Hide hand-actions row by default - only show in admin mode */
.hand-actions {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.hand-id-small {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* =====================================================================
   MODE CONTROLS
   ===================================================================== */

.hands-mode-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.hands-mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
}

.hands-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hands-mode-btn:hover {
    color: var(--text);
}

.hands-mode-btn.active {
    background: var(--accent);
    color: white;
}

.hands-mode-btn.study-mode-btn.active {
    background: #3b82f6;
}

.hands-mode-btn.quiz-mode-btn.active {
    background: #9c27b0;
}

.hands-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hands-filter-btn:hover {
    border-color: var(--accent);
}

.hands-filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Legacy quiz-toggle styles (for backwards compatibility) */
.quiz-toggle {
    display: none;
}

/* =====================================================================
   QUIZ HAND CARD
   ===================================================================== */

.quiz-hand-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure all direct children of quiz card stay within padding */
.quiz-hand-card > * {
    max-width: 100%;
    box-sizing: border-box;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-mode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.return-dashboard-btn {
    padding: 8px 16px;
    background: var(--bg-card, #16213e);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.return-dashboard-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.quiz-setup {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid #9c27b0;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Ensure quiz options stay within card padding */
.quiz-hand-card > .quiz-options,
.quiz-hand-card > .quiz-options-label {
    max-width: 100%;
}

.quiz-options-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9c27b0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.quiz-option {
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    text-align: left;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    color: var(--text);
    font-family: inherit;
}

.quiz-option:hover:not(.disabled) {
    background: rgba(156, 39, 176, 0.15);
    border-color: #9c27b0;
}

.quiz-option.selected {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.2);
}

.quiz-option.correct {
    border-color: var(--winner-green);
    background: rgba(76, 175, 80, 0.2);
}

.quiz-option.incorrect {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.2);
}

.quiz-option.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.quiz-option.correct.disabled {
    opacity: 1;
}

.quiz-option.incorrect.disabled {
    opacity: 1;
}

.quiz-inline-feedback {
    font-size: 0.85rem;
    color: #ff8a80;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

.quiz-inline-feedback.correct {
    color: #81c784;
}

/* =====================================================================
   POKER TERMS TOOLTIPS
   ===================================================================== */

.poker-term {
    border-bottom: 1px dotted var(--text-muted);
    cursor: help;
    position: relative;
}

.poker-term:hover {
    color: #f0c674;
    border-bottom-color: #f0c674;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a3e;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text);
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: center;
    text-transform: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    line-height: 1.4;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2a2a3e;
}

.poker-term:hover .tooltip {
    display: block;
}

/* Mobile tap support for tooltips */
.poker-term.tooltip-active .tooltip {
    display: block;
}

/* Keep tooltips within viewport */
.quiz-setup .poker-term {
    position: relative;
}

.quiz-setup .poker-term .tooltip {
    left: 0;
    transform: none;
}

.quiz-setup .poker-term .tooltip::after {
    left: 20px;
}

/* =====================================================================
   QUIZ FEEDBACK
   ===================================================================== */

.quiz-feedback {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.quiz-feedback.correct {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--winner-green);
    color: var(--winner-green);
}

.quiz-feedback.incorrect {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid var(--accent);
    color: #ff8a80;
}

.quiz-next-btn {
    background: #9c27b0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.quiz-next-btn:hover {
    background: #ab47bc;
}

/* =====================================================================
   QUIZ NAVIGATION
   ===================================================================== */

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.quiz-back-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.quiz-back-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.quiz-exit-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.quiz-exit-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================================================================
   QUIZ PROGRESS
   ===================================================================== */

.quiz-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quiz-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.quiz-progress-dot.completed {
    background: var(--winner-green);
}

.quiz-progress-dot.current {
    background: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.3);
}

/* =====================================================================
   QUIZ DISPLAY ELEMENTS
   ===================================================================== */

.quiz-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.quiz-street-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #9c27b0;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.quiz-board-display {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    justify-content: center;
}

.quiz-hero-section {
    text-align: center;
    margin-bottom: 20px;
}

.quiz-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.quiz-hero-cards {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Larger cards for quiz hero display */
.quiz-hero-cards .playing-card {
    min-width: 52px;
    width: 52px;
    height: 67px;
    font-size: 21px;
}

/* =====================================================================
   QUIZ HINT SECTION
   ===================================================================== */

.quiz-hint-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.quiz-hint-blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s;
}

.quiz-hint-blurred.revealed {
    filter: none;
    pointer-events: auto;
}

.quiz-hint-toggle {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(240, 198, 116, 0.2);
    border: 1px solid #f0c674;
    border-radius: 4px;
    color: #f0c674;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.quiz-hint-toggle:hover {
    background: rgba(240, 198, 116, 0.3);
}

/* =====================================================================
   QUIZ RESULTS
   ===================================================================== */

.quiz-result-summary {
    text-align: center;
    padding: 30px;
}

.quiz-result-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--winner-green);
}

.quiz-result-stats {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.quiz-action-revealed {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-top: 10px;
}

.quiz-pot-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
}

/* =====================================================================
   QUIZ VILLAINS
   ===================================================================== */

.quiz-villains-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0px;
    width: 100%;
}

.quiz-villain-info {
    padding: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    /* On wide screens (600px+), allow 2-column layout */
    flex: 1 1 calc(50% - 6px);
    min-width: 280px;
}

/* Villain section - collapsed by default on all screen sizes */
.villain-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.villain-header-row:hover {
    background: rgba(255,255,255,0.06);
}

.villain-header-row.expanded {
    border-bottom: 1px solid var(--border);
}

.villain-header-row .villain-toggle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.villain-header-row.expanded .villain-toggle {
    transform: rotate(180deg);
}

.villain-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.villain-details-collapsible {
    display: none;
    padding: 12px;
    background: transparent;
}

.villain-details-collapsible.expanded {
    display: block;
}

/* Villain detail labels with accent color */
.villain-detail-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.villain-detail-text {
    color: var(--text);
    font-size: 0.85rem;
    margin-left: 4px;
}

.villain-detail-row {
    margin-bottom: 8px;
}

.villain-detail-row:last-child {
    margin-bottom: 0;
}

.quiz-villain-info .villain-header {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-villain-info .villain-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Inline villain type note inside quiz question */
.quiz-villain-note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.quiz-villain-note .archetype-link {
    color: var(--accent);
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
}

.quiz-villain-note .archetype-link:hover {
    text-decoration: underline;
}

.villain-range-reveal {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.reveal-range-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    background: rgba(240, 198, 116, 0.15);
    border: 1px solid rgba(240, 198, 116, 0.4);
    color: #f0c674;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.reveal-range-btn:hover {
    background: rgba(240, 198, 116, 0.25);
    border-color: rgba(240, 198, 116, 0.6);
}

.villain-range-content {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =====================================================================
   QUIZ TWO-COLUMN LAYOUT
   ===================================================================== */

.quiz-two-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quiz-left-column .quiz-villains-container,
.quiz-left-column .quiz-action-revealed {
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
}

/* 20px gap between villain container and action summary */
.quiz-left-column .quiz-villains-container + .quiz-action-revealed {
    margin-top: 5px; /* 15px gap + 5px = 20px total */
}

.quiz-right-column {
    flex: 1;
}

/* Enable 2-column side-by-side on wide screens (1200px+) */
@media (min-width: 1200px) {
    .quiz-hand-card.layout-full-table {
        max-width: 1400px;
    }

    .quiz-two-column {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .quiz-left-column {
        flex: 0 0 660px;
        width: 660px;
        align-self: flex-start;
    }

    .quiz-right-column {
        flex: 1;
        min-width: 0;
        max-width: 500px;
        box-sizing: border-box;
    }
}

/* =====================================================================
   MOBILE RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .poker-term {
        /* Prevent text selection on tap */
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

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

/* Smaller mobile screens - tighter spacing refinements */
@media (max-width: 620px) {
    /* Tighter spacing for mobile card row on smaller screens */
    .quiz-mobile-card-row {
        gap: 16px;
        padding: 10px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .quiz-mobile-label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .quiz-mobile-cards {
        gap: 3px;
    }

    .quiz-mobile-cards .playing-card {
        width: 38px;
        height: 49px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hands-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hand-card {
        padding: 12px;
        border-radius: 8px;
    }

    .cards-section {
        margin-bottom: 0;
    }

    .situation-container {
        margin-top: 12px;
    }

    .hand-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .hand-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }

    .hand-badges .badge-archetype {
        display: none;
    }
}

/* Missing CSS for: practice */
/* 23 rule blocks */

.villain-compare-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.villain-compare-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.villain-select-container {
    margin-top: 15px;
    padding-top: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.villain-select-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.villain-context-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 6px;
}

.villain-equity-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-top: 10px;
}

.villain-equities {
    display: flex;
    gap: 30px;
}

.villain-equity-item {
    text-align: center;
}

.villain-equity-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.villain-equity-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-top-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.quiz-hero-table-row {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px
}

.quiz-hero-section-inline {
    text-align: center;
    min-width: 140px;
}

.quiz-hero-section-below {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.quiz-hero-section-below .quiz-hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--winner-green);
    margin-bottom: 8px;
}

.quiz-hero-section-below .quiz-hero-cards {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Mobile card row - hidden on desktop, shown on mobile */
.quiz-mobile-card-row {
    display: none;
}

/* Hide community cards on table in side-by-side layout (shown in mobile card row instead) */
.quiz-hand-card:not(.layout-full-table) .community-cards-center {
    display: none;
}

@media (max-width: 900px) {
    .quiz-hero-section-below {
        display: none;
    }

    .quiz-mobile-card-row {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        padding: 12px;
        background: rgba(76, 175, 80, 0.08);
        border-radius: 10px;
        border: 1px solid rgba(76, 175, 80, 0.2);
        margin-bottom: 16px;
    }

    .quiz-mobile-hero,
    .quiz-mobile-board {
        text-align: center;
    }

    .quiz-mobile-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        margin-bottom: 6px;
    }

    .quiz-mobile-hero .quiz-mobile-label {
        color: var(--winner-green);
    }

    .quiz-mobile-cards {
        display: flex;
        gap: 4px;
        justify-content: center;
    }

    .quiz-mobile-cards .playing-card {
        width: 42px;
        height: 54px;
        font-size: 16px;
    }

    .quiz-hero-table-row {
        flex-direction: column;
        align-items: center;
    }
    .quiz-table-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.quiz-board-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.quiz-board-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.quiz-board-cards {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.quiz-table-container {
    flex: 1;
}

@media (max-width: 480px) {
    .villain-cards-revealed .playing-card {
        --card-width: 35px;
        --card-height: 45px;
        --card-font: 14px;
    }
    .card-back {
        width: 40px;
        min-width: 40px;
        height: 51px;
    }
    .villain-section .player-cards-row {
        flex-wrap: wrap;
        align-items: center;
    }
    .villain-section .villain-cards-container,
    .villain-section .btn-reveal {
        flex-shrink: 0;
    }
    .hero-section .playing-card,
    .villain-section .playing-card {
        --card-width: 40px;
        --card-height: 51px;
        --card-font: 16px;
    }
    .villain-section .villain-profile {
        display: none;
    }
    .villain-info-row-mobile .villain-profile {
        margin-top: 0;
    }
    .villain-info-row-mobile .villain-range-line {
        display: none;
    }
    .result-item {
        font-size: 0.7rem;
    }
    .quiz-container {
        padding: 10px;
    }
    .quiz-hand-card .quiz-nav { order: 1; }
    .quiz-hand-card .quiz-title { order: 2; }
    .quiz-hand-card .quiz-street-label { order: 3; }
    .quiz-hand-card .quiz-progress { order: 4; }
    .quiz-hand-card .quiz-table-container { order: 5; }
    .quiz-hand-card .quiz-mobile-card-row { order: 6; }
    .quiz-hand-card .quiz-hero-section-below { order: 7; }
    .quiz-hand-card .quiz-setup { order: 8; }
    .quiz-hand-card .quiz-options-label { order: 9; margin-top: 0px; width: 100%; }
    .quiz-hand-card .quiz-options { order: 10; width: 100%; box-sizing: border-box; }
    .quiz-hand-card .quiz-action-revealed { order: 11; }
    .quiz-hand-card .quiz-hero-table-row { order: 11; flex-direction: column; margin-bottom: 10px; }
    .quiz-hand-card .quiz-board-display { order: 12; }
    .quiz-hand-card .quiz-villains-container { order: 13; gap: 5px; }
    .quiz-hero-section-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    .quiz-mobile-board {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }
    .quiz-mobile-board-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
    }
    .quiz-board-section {
        margin-top: 15px;
        padding-top: 8px;
    }
    .quiz-board-cards {
        justify-content: flex-start;
    }
    .quiz-hero-table-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .quiz-hero-section-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .quiz-board-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .quiz-board-cards {
        justify-content: center;
    }
    .quiz-table-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .quiz-hero-section-below {
        display: none;
    }
    .quiz-mobile-hero,
    .quiz-mobile-board {
        text-align: center;
    }
    .quiz-mobile-hero .quiz-mobile-label {
        color: var(--winner-green);
    }
    .quiz-question {
        font-size: 0.9rem;
    }
}

.your-badge {
    display: inline-block;
    font-size: 0.6rem;
    color: rgba(76, 175, 80, 0.9);
    font-weight: 600;
    background: rgba(76, 175, 80, 0.15);
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

