/**
 * Bingo Game - Public Styles
 * Design system matching the Sweepsy theme: navy (#052162) + royal blue (#005bf0)
 * + gold (#ffd000) accents, Plus Jakarta Sans, blue-tinted shadows.
 */

/* Base box-sizing for plugin */
.bingo-container,
.bingo-container *,
.bingo-container *::before,
.bingo-container *::after,
.bingo-landing-wrapper,
.bingo-landing-wrapper *,
.bingo-landing-wrapper *::before,
.bingo-landing-wrapper *::after,
#bingo-toast-container,
#bingo-toast-container *,
.bingo-toast,
.bingo-toast * {
    box-sizing: border-box;
}

/* CSS Variables - Sweepsy design tokens (navy + royal blue + gold) */
:root {
    /* Neutrals - Slate palette (slate-700 = Sweepsy body text, slate-900 = navy headings) */
    --bingo-slate-50: #f8fafc;
    --bingo-slate-100: #f1f5f9;
    --bingo-slate-200: #e2e8f0;
    --bingo-slate-300: #cbd5e1;
    --bingo-slate-400: #94a3b8;
    --bingo-slate-500: #64748b;
    --bingo-slate-600: #475569;
    --bingo-slate-700: #3a3a3a;
    --bingo-slate-800: #1e293b;
    --bingo-slate-900: #0c1a3a;

    /* Brand - Sweepsy navy + royal blue */
    --bingo-brand: #052162;          /* cls-blue: primary buttons, headers, hero */
    --bingo-brand-hover: #1448b1;    /* blue: hover */
    --bingo-royal: #005bf0;          /* primary royal blue: links, daubs, accents */
    --bingo-royal-light: #518bfd;    /* alt-blue */

    /* Accent gold - Sweepsy CTA / reward */
    --bingo-gold: #ffd000;
    --bingo-gold-dark: #e6b800;
    --bingo-gold-soft: #f8b84e;

    /* Status colors */
    --bingo-success: #1bab58;        /* Sweepsy green */
    --bingo-success-light: #eaf7ef;
    --bingo-warning: #d97706;
    --bingo-error: #dc3232;          /* Sweepsy red */

    /* Game-specific */
    --bingo-called: #005bf0;
    --bingo-called-bg: #eff4ff;      /* light-blue */
    --bingo-marked: #005bf0;
    --bingo-marked-bg: #e3ecff;
    --bingo-free: #b8860b;           /* gold text */
    --bingo-free-bg: #fff7e0;        /* soft gold */
    --bingo-winner-gold: #ffd000;

    /* Sweepsy blue-tinted card shadow */
    --bingo-shadow: 0 15px 15px -12px rgba(18, 67, 117, 0.35);
    --bingo-shadow-sm: 0 2px 8px -2px rgba(18, 67, 117, 0.18);
}


/* ============================================
   BASE CONTAINER
   ============================================ */
.bingo-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: var(--bingo-slate-900);
    line-height: 1.5;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#bingo-board-app {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   WELCOME BANNER (green gradient, admin only)
   ============================================ */
.bingo-welcome-banner {
    background: linear-gradient(135deg, #052162 0%, #005bf0 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: var(--bingo-shadow);
}

.bingo-welcome-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bingo-welcome-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bingo-welcome-text {
    flex: 1;
}

.bingo-welcome-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.bingo-welcome-text span {
    font-size: 13px;
    opacity: 0.9;
}

.bingo-welcome-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    line-height: 1;
}

.bingo-welcome-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bingo-welcome-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bingo-welcome-links .bingo-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bingo-welcome-links .bingo-link-row label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    min-width: 90px;
}

.bingo-welcome-links .bingo-link-copy {
    display: flex;
    flex: 1;
    gap: 6px;
    min-width: 0;
}

.bingo-welcome-links .bingo-link-copy input {
    flex: 1;
    min-width: 150px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
}

.bingo-welcome-links .bingo-link-copy input:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bingo-welcome-links .bingo-btn-welcome-copy {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
}

.bingo-welcome-links .bingo-btn-welcome-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bingo-welcome-links .bingo-btn-welcome-copy.bingo-copied {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.bingo-btn-share,
.bingo-btn-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
    flex-shrink: 0;
}

.bingo-btn-share {
    background: var(--bingo-slate-700);
    color: white;
}

.bingo-btn-share:hover {
    background: var(--bingo-slate-800);
}

.bingo-btn-bookmark {
    background: var(--bingo-slate-600);
    color: white;
}

.bingo-btn-bookmark:hover {
    background: var(--bingo-slate-700);
}

/* Welcome banner variants */
.bingo-welcome-links .bingo-btn-share,
.bingo-welcome-links .bingo-btn-bookmark {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.bingo-welcome-links .bingo-btn-share:hover,
.bingo-welcome-links .bingo-btn-bookmark:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* ============================================
   BOARD HEADER
   ============================================ */
.bingo-board-header {
    position: relative;
    margin-bottom: 24px;
}

.bingo-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bingo-board-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--bingo-slate-900);
    margin: 0;
    line-height: 1.2;
}

.bingo-board-description {
    font-size: 14px;
    color: var(--bingo-slate-500);
    margin-top: 4px;
}

.bingo-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.bingo-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Status dot */
.bingo-header-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bingo-status-setup {
    background: var(--bingo-slate-100);
    color: var(--bingo-slate-600);
}

.bingo-status-setup::before {
    background: var(--bingo-slate-400);
}

.bingo-status-open {
    background: var(--bingo-success-light);
    color: var(--bingo-success);
}

.bingo-status-open::before {
    background: var(--bingo-success);
}

.bingo-status-playing {
    background: var(--bingo-called-bg);
    color: var(--bingo-royal);
}

.bingo-status-playing::before {
    background: var(--bingo-royal);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bingo-status-paused {
    background: #fef3c7;
    color: var(--bingo-warning);
}

.bingo-status-paused::before {
    background: var(--bingo-warning);
}

.bingo-status-finished {
    background: var(--bingo-slate-100);
    color: var(--bingo-slate-500);
}

.bingo-status-finished::before {
    background: var(--bingo-slate-400);
}

/* Live player count badge */
.bingo-badge-live {
    background: var(--bingo-slate-50);
    border: 1px solid var(--bingo-slate-200);
    color: var(--bingo-slate-600);
}

.bingo-badge-live::before {
    background: linear-gradient(135deg, #005bf0, #518bfd);
    animation: livePulse 1.5s ease-in-out infinite;
}


/* ============================================
   JOIN PANEL
   ============================================ */
#bingo-join-panel {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 20px;
    box-shadow: var(--bingo-shadow-sm);
    border: 1px solid var(--bingo-slate-200);
    text-align: center;
}

#bingo-join-panel p {
    font-size: 14px;
    color: var(--bingo-slate-500);
    margin: 0;
}


/* ============================================
   CALL DISPLAY
   ============================================ */
#bingo-call-display {
    margin-bottom: 24px;
    text-align: center;
}

.bingo-current-call {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--bingo-slate-500);
}

.bingo-current-call.bingo-call-active {
    font-size: 22px;
    font-weight: 700;
    color: var(--bingo-royal);
    background: white;
    padding: 18px 28px;
    border-radius: 12px;
    border: 2px solid rgba(0, 91, 240, 0.25);
    box-shadow: var(--bingo-shadow);
    animation: callPop 0.3s ease-out;
}

@keyframes callPop {
    0% { transform: scale(0.9); opacity: 0; }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); opacity: 1; }
}

.bingo-call-animate {
    animation: callPop 0.3s ease-out;
}

/* Call history */
.bingo-call-history {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--bingo-slate-200);
    max-height: 100px;
    overflow-y: auto;
}

.bingo-history-item {
    padding: 3px 8px;
    background: var(--bingo-slate-100);
    color: var(--bingo-slate-600);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bingo-history-latest {
    background: var(--bingo-called-bg);
    color: var(--bingo-royal);
    font-weight: 600;
}


/* ============================================
   BINGO CARD
   ============================================ */
#bingo-card-container {
    margin-bottom: 24px;
}

/* Editable player name (inside header-meta row) */
.bingo-editable-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bingo-slate-700);
    cursor: pointer;
    border-bottom: 1px dashed var(--bingo-slate-300);
    padding-bottom: 1px;
    transition: all 0.15s ease;
}

.bingo-editable-name:hover {
    border-bottom-color: var(--bingo-brand);
    color: var(--bingo-brand);
}

.bingo-name-edit-input {
    font-size: 14px;
    font-weight: 600;
    color: var(--bingo-slate-700);
    border: 2px solid var(--bingo-brand);
    border-radius: 6px;
    padding: 2px 8px;
    outline: none;
    width: 160px;
    background: white;
}

#bingo-card-number {
    font-size: 12px;
    color: var(--bingo-slate-400);
    font-weight: 500;
    margin-left: auto;
}


/* ============================================
   BINGO GRID
   ============================================ */
#bingo-card-grid {
    display: grid;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--bingo-shadow);
    border: 1px solid var(--bingo-slate-200);
}


/* ============================================
   BINGO CELLS
   ============================================ */
.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bingo-slate-700);
    border: 1px solid var(--bingo-slate-50);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
    transition: transform 0.12s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    word-break: break-word;
    line-height: 1.25;
}

.bingo-cell:hover {
    background: rgba(0, 91, 240, 0.05);
}

.bingo-cell:active {
    transform: scale(0.93);
}

/* Called state */
.bingo-cell.called {
    background: var(--bingo-called-bg);
    color: var(--bingo-called);
    font-weight: 600;
    border-color: rgba(0, 91, 240, 0.15);
}

/* Marked state (royal blue — matches called style so manual-mode dabs look correct) */
.bingo-cell.marked {
    background: var(--bingo-called-bg);
    color: var(--bingo-called);
    font-weight: 600;
    border-color: rgba(0, 91, 240, 0.15);
}

/* Dabber mode: called but not yet dabbed — prompt tap */
.bingo-cell.called.needs-dab {
    background: rgba(0, 91, 240, 0.08);
    border-color: rgba(0, 91, 240, 0.3);
    cursor: pointer;
}

/* Called AND Marked — circle overlay (auto + highlighted modes only) */
.bingo-cell.called.marked {
    background: linear-gradient(135deg, #eff4ff 0%, #dbe7ff 100%);
    color: var(--bingo-royal);
    font-weight: 700;
    border-color: rgba(0, 91, 240, 0.25);
}

.bingo-cell.called.marked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65%;
    height: 65%;
    transform: translate(-50%, -50%);
    border: 2.5px solid rgba(0, 91, 240, 0.45);
    border-radius: 50%;
    pointer-events: none;
}

/* Free space */
.bingo-cell.free {
    background: var(--bingo-free-bg);
    color: var(--bingo-free);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.bingo-cell.free::before {
    content: '\2605';
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 8px;
    opacity: 0.35;
    line-height: 1;
}

/* Winner cell */
.bingo-cell.winner-cell {
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.3) 0%, rgba(248, 184, 78, 0.22) 100%);
    color: #7a5200;
    font-weight: 700;
    animation: winnerCellGlow 2s ease-in-out infinite;
    box-shadow: inset 0 0 0 2px rgba(255, 208, 0, 0.55);
}

@keyframes winnerCellGlow {
    0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 208, 0, 0.4); }
    50% { box-shadow: inset 0 0 0 2px rgba(230, 184, 0, 0.85); }
}


/* ============================================
   WINNER ANNOUNCEMENT
   ============================================ */
#bingo-winners-display {
    background: linear-gradient(135deg, #fff6cc 0%, #ffe08a 100%);
    border: 2px solid var(--bingo-winner-gold);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--bingo-shadow);
    animation: winnerAppear 0.5s ease-out;
}

@keyframes winnerAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#bingo-winners-display h3 {
    font-size: 24px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.bingo-winner-entry {
    margin-top: 4px;
}

.bingo-winner-name {
    font-size: 16px;
    font-weight: 600;
    color: #a16207;
}

.bingo-winner-pattern {
    font-size: 13px;
    color: #92400e;
    opacity: 0.7;
}

/* Celebration / Confetti */
.bingo-celebration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.bingo-confetti {
    position: absolute;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}


/* ============================================
   ADMIN PANEL - matches squares admin controls
   ============================================ */
#bingo-admin-panel {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--bingo-slate-200);
    box-shadow: var(--bingo-shadow-sm);
}

#bingo-admin-panel h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--bingo-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.bingo-admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bingo-slate-100);
}

#bingo-auto-status:not(:empty) {
    font-size: 12px;
    font-weight: 500;
    color: var(--bingo-royal);
}

.bingo-progress-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bingo-admin-share {
    margin-bottom: 16px;
}

/* Call progress bar */
#bingo-call-progress {
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Optional in-person / print path — visually set apart from the live controls */
.bingo-inperson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bingo-slate-100);
}

.bingo-inperson-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bingo-inperson-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--bingo-slate-700);
}

.bingo-inperson-hint {
    font-size: 12px;
    line-height: 1.4;
    color: var(--bingo-slate-500);
}

.bingo-progress-bar {
    height: 6px;
    background: var(--bingo-slate-100);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}

.bingo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bingo-brand), var(--bingo-brand-hover));
    border-radius: 100px;
    transition: width 0.4s ease;
}

.bingo-progress-text {
    font-size: 12px;
    color: var(--bingo-slate-400);
    font-weight: 500;
}



/* ============================================
   PLAYER PROGRESS
   ============================================ */
#bingo-player-progress {
    margin-top: 20px;
    background: white;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 12px;
    padding: 16px 20px;
}

.bingo-player-progress-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--bingo-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.bingo-player-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bingo-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bingo-player-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--bingo-slate-700);
    min-width: 100px;
    flex-shrink: 0;
}

.bingo-player-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bingo-player-bar {
    flex: 1;
    height: 6px;
    background: var(--bingo-slate-100);
    border-radius: 100px;
    overflow: hidden;
}

.bingo-player-bar-fill {
    height: 100%;
    background: var(--bingo-royal);
    border-radius: 100px;
    transition: width 0.4s ease;
}

.bingo-player-bar-winner {
    background: var(--bingo-gold-dark);
}

.bingo-player-remaining {
    font-size: 12px;
    font-weight: 500;
    color: var(--bingo-slate-400);
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

.bingo-player-self {
    background: var(--bingo-slate-50);
    border-radius: 6px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.bingo-player-you {
    font-size: 11px;
    color: var(--bingo-brand);
    font-weight: 600;
}

.bingo-player-divider {
    height: 1px;
    background: var(--bingo-slate-200);
    margin: 4px 0;
}

.bingo-see-more-btn {
    margin-top: 10px;
}

/* Winner round badges */
.bingo-winner-crown {
    font-size: 16px;
}

.bingo-winner-round {
    font-size: 12px;
    font-weight: 600;
    color: var(--bingo-slate-400);
    margin-right: 2px;
}


/* ============================================
   BUTTONS - matches squares button styles
   ============================================ */
.bingo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.bingo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bingo-btn-primary {
    background: var(--bingo-brand);
    color: white;
}

.bingo-btn-primary:hover:not(:disabled) {
    background: var(--bingo-brand-hover);
}

/* Hero CTA - gold, matches Sweepsy's primary call-to-action buttons */
#bingo-create-btn {
    background: var(--bingo-gold);
    color: var(--bingo-brand);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 16px;
    box-shadow: 0 4px 14px -2px rgba(255, 208, 0, 0.5);
}

#bingo-create-btn:hover:not(:disabled) {
    background: var(--bingo-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -2px rgba(255, 208, 0, 0.6);
}

.bingo-btn-secondary {
    background: white;
    color: var(--bingo-slate-700);
    border: 1px solid var(--bingo-slate-200);
}

.bingo-btn-secondary:hover:not(:disabled) {
    background: var(--bingo-slate-50);
    border-color: var(--bingo-slate-300);
}

.bingo-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.bingo-btn-success {
    background: var(--bingo-success);
    color: white;
}

.bingo-btn-success:hover:not(:disabled) {
    background: #178f49;
}

.bingo-btn-warning {
    background: var(--bingo-warning);
    color: white;
}

.bingo-btn-warning:hover:not(:disabled) {
    background: #b45309;
}

.bingo-btn-danger {
    background: var(--bingo-error);
    color: white;
}

.bingo-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.bingo-btn-copy {
    background: var(--bingo-slate-800);
    color: white;
    padding: 6px 12px;
    flex-shrink: 0;
    font-size: 12px;
}

.bingo-btn-copy:hover:not(:disabled) {
    background: var(--bingo-slate-900);
}

.bingo-btn-copy.bingo-copied {
    background: var(--bingo-success-light) !important;
    color: var(--bingo-success) !important;
    border: 1px solid var(--bingo-success) !important;
}


/* ============================================
   LINK COPY ROWS (used in admin + welcome)
   ============================================ */
.bingo-link-row {
    margin-bottom: 12px;
}

.bingo-link-row:last-child {
    margin-bottom: 0;
}

.bingo-link-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--bingo-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bingo-link-copy {
    display: flex;
    gap: 6px;
}

.bingo-link-copy input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-size: 12px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 6px;
    background: var(--bingo-slate-50);
    color: var(--bingo-slate-700);
    outline: none;
}

.bingo-link-copy input:focus {
    border-color: var(--bingo-brand);
}




/* ============================================
   LANDING PAGE
   ============================================ */
.bingo-landing-wrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f6f8fc;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.bingo-landing-wrapper *,
.bingo-landing-wrapper *::before,
.bingo-landing-wrapper *::after {
    box-sizing: border-box;
}

.bingo-landing-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.bingo-landing-form-col {
    flex: 0 0 450px;
}

/* Hero Section */
.bingo-hero {
    flex: 1 1 auto;
    min-width: 300px;
    text-align: left;
    padding: 0;
}

.bingo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #eff4ff 0%, #dbe7ff 100%);
    border: 1px solid #b9cdf6;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bingo-brand);
    margin-bottom: 20px;
}

.bingo-hero-icon {
    font-size: 16px;
}

.bingo-hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bingo-slate-900);
    margin: 0 0 16px;
}

.bingo-hero-highlight {
    background: linear-gradient(135deg, var(--bingo-brand) 0%, var(--bingo-royal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bingo-hero-description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--bingo-slate-500);
    margin: 0 0 28px;
}

.bingo-hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bingo-hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--bingo-slate-600);
}

.bingo-hero-feature-icon {
    width: 22px;
    height: 22px;
    color: var(--bingo-brand);
}

/* Create Form Card */
.bingo-create-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--bingo-shadow);
    width: 100%;
    max-width: 450px;
    padding: 5px 28px 24px;
}

.bingo-create-header {
    text-align: center;
    margin-bottom: 16px;
}

.bingo-create-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--bingo-slate-900);
}

.bingo-create-subtitle {
    font-size: 13px;
    color: var(--bingo-slate-500);
    margin: 0;
}

.bingo-create-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bingo-create-form-inner .bingo-form-group {
    margin-bottom: 0;
}

.bingo-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--bingo-slate-700);
    margin-bottom: 6px;
}

.bingo-optional {
    font-weight: 400;
    color: var(--bingo-slate-400);
}

.bingo-form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 8px;
    background: white;
    color: var(--bingo-slate-900);
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.bingo-form-input:focus {
    outline: none;
    border-color: var(--bingo-royal);
    box-shadow: 0 0 0 3px rgba(0, 91, 240, 0.15);
}

.bingo-form-input::placeholder {
    color: var(--bingo-slate-400);
}

.bingo-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.bingo-form-textarea {
    resize: vertical;
    min-height: 40px;
}

.bingo-items-textarea {
    min-height: 90px;
}

.bingo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bingo-slate-700);
    cursor: pointer;
}

.bingo-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bingo-royal);
}

/* Two-column layout */
.bingo-form-row {
    display: flex;
    gap: 12px;
}

.bingo-form-half {
    flex: 1;
}

.bingo-form-quarter {
    flex: 0 0 auto;
}

/* Win Patterns Dropdown */
.bingo-pattern-dropdown {
    position: relative;
}

.bingo-pattern-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    background: white;
    width: 100%;
}

.bingo-pattern-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.bingo-pattern-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0;
    width: 0;
    height: 0;
}

.bingo-pattern-dropdown.open .bingo-pattern-arrow {
    transform: rotate(180deg);
}

.bingo-pattern-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.bingo-pattern-dropdown.open .bingo-pattern-menu {
    display: block;
}

.bingo-pattern-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bingo-slate-600);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.bingo-pattern-menu label:hover {
    background: var(--bingo-slate-50);
}

.bingo-pattern-menu input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--bingo-royal);
}

/* Item counter + random words row */
.bingo-items-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 6px;
}

/* Fill Numbers / Fill Random Words sit together, pushed to the right
   (and wrap to their own line cleanly on narrow widths). */
.bingo-fill-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.bingo-item-count {
    font-size: 12px;
    color: var(--bingo-slate-400);
    font-weight: 500;
}

.bingo-free-space-inline {
    font-size: 12px;
    gap: 5px;
}

.bingo-btn-full {
    width: 100%;
}

/* Auto interval — inline in admin buttons */
.bingo-auto-interval-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bingo-slate-500);
    margin-left: auto;
}

.bingo-interval-input {
    width: 56px !important;
    padding: 5px 8px !important;
    font-size: 13px;
    text-align: center;
}

/* Marking + Win Patterns bottom row */

/* How It Works Section */
.bingo-how-it-works {
    padding: 32px 20px 48px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--bingo-slate-200);
}

.bingo-section-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--bingo-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 24px;
}

.bingo-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bingo-step {
    text-align: center;
    padding: 20px 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--bingo-slate-200);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.bingo-step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--bingo-slate-300);
}

.bingo-step-number {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--bingo-brand) 0%, var(--bingo-royal) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bingo-step-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bingo-slate-900);
    margin: 0 0 4px;
}

.bingo-step-content p {
    font-size: 12px;
    color: var(--bingo-slate-500);
    margin: 0;
    line-height: 1.4;
}

/* SEO Content Section */
.bingo-seo-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    border-top: 1px solid var(--bingo-slate-200);
}

.bingo-seo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bingo-slate-900);
    margin: 0 0 16px;
}

.bingo-seo-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bingo-slate-900);
    margin: 32px 0 12px;
}

.bingo-seo-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--bingo-slate-600);
    margin: 0 0 16px;
}

.bingo-seo-content ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.bingo-seo-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--bingo-slate-600);
    margin-bottom: 8px;
}

.bingo-seo-content strong {
    color: var(--bingo-slate-900);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bingo-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}


/* ============================================
   URL COPY GROUPS (legacy - used in success screen)
   ============================================ */
.bingo-url-group {
    margin-bottom: 16px;
    text-align: left;
}

.bingo-url-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--bingo-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bingo-url-copy {
    display: flex;
    gap: 6px;
}

.bingo-url-copy input {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 8px;
    background: var(--bingo-slate-50);
    color: var(--bingo-slate-700);
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    min-width: 0;
}

.bingo-url-copy input:focus {
    outline: none;
    border-color: var(--bingo-brand);
}


/* ============================================
   TOAST NOTIFICATIONS - matches squares
   ============================================ */
#bingo-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.bingo-toast {
    background: white;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    pointer-events: auto;
    border-left: 4px solid var(--bingo-slate-300);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.bingo-toast.bingo-toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.bingo-toast.bingo-toast-exiting {
    opacity: 0;
    transform: translateX(100%);
}

.bingo-toast .bingo-toast-message {
    margin: 0;
    font-size: 14px;
    color: var(--bingo-slate-700);
    flex: 1;
    font-family: inherit;
    line-height: 1.4;
}

.bingo-toast .bingo-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--bingo-slate-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.bingo-toast .bingo-toast-close:hover {
    color: var(--bingo-slate-600);
}

.bingo-toast-success { border-left-color: var(--bingo-success); }
.bingo-toast-error { border-left-color: var(--bingo-error); }
.bingo-toast-warning { border-left-color: var(--bingo-warning); }
.bingo-toast-info { border-left-color: var(--bingo-brand); }


/* ============================================
   CONNECTION ERROR
   ============================================ */
.bingo-connection-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bingo-connection-error span {
    font-size: 14px;
    color: #991b1b;
    font-weight: 500;
}

.bingo-retry-btn,
.bingo-refresh-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    color: #991b1b;
    border: 1px solid #fecaca;
    transition: background 0.15s;
    font-family: inherit;
}

.bingo-retry-btn:hover,
.bingo-refresh-btn:hover {
    background: #fef2f2;
}


/* ============================================
   UTILITY
   ============================================ */
.bingo-hidden {
    display: none !important;
}


/* ============================================
   PRINTABLE CARDS VIEW (host-only setup screen)
   The printed document itself is styled inside the iframe (see JS),
   so the PDF contains only the cards. These styles are the on-page
   control bar + live preview.
   ============================================ */
.bingo-print-app {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    color: var(--bingo-slate-900);
    -webkit-font-smoothing: antialiased;
}

.bingo-print-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bingo-royal);
    text-decoration: none;
    margin-bottom: 14px;
}

.bingo-print-back:hover { text-decoration: underline; }

.bingo-print-title-main {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--bingo-slate-900);
}

.bingo-print-sub {
    font-size: 15px;
    line-height: 1.5;
    color: var(--bingo-slate-500);
    margin: 0 0 20px;
}

.bingo-print-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--bingo-shadow-sm);
}

.bingo-print-form label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bingo-slate-700);
}

#bingo-print-count {
    width: 88px;
    padding: 9px 12px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    color: var(--bingo-slate-900);
    border: 1px solid var(--bingo-slate-200);
    border-radius: 8px;
    background: white;
}

#bingo-print-count:focus {
    outline: none;
    border-color: var(--bingo-royal);
    box-shadow: 0 0 0 3px rgba(0, 91, 240, 0.15);
}

.bingo-print-range {
    font-size: 13px;
    color: var(--bingo-slate-400);
}

#bingo-print-go {
    margin-left: auto;
}

.bingo-print-tip {
    font-size: 13px;
    line-height: 1.5;
    color: var(--bingo-slate-600);
    background: var(--bingo-called-bg);
    border: 1px solid rgba(0, 91, 240, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 16px 0 24px;
}

.bingo-print-preview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bingo-slate-400);
    margin-bottom: 10px;
}

.bingo-print-frame {
    width: 100%;
    height: 560px;
    border: 1px solid var(--bingo-slate-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--bingo-shadow-sm);
}

@media (max-width: 640px) {
    .bingo-print-app { padding: 20px 14px 48px; }
    .bingo-print-title-main { font-size: 22px; }
    #bingo-print-go { margin-left: 0; width: 100%; }
    .bingo-print-frame { height: 460px; }
}


/* ============================================
   RESPONSIVE - TABLET AND UP (min-width: 641px)
   ============================================ */
@media (min-width: 641px) {
    .bingo-board-header h2 {
        font-size: 28px;
    }

    .bingo-cell {
        font-size: 13px;
        padding: 8px 6px;
    }

    .bingo-current-call.bingo-call-active {
        font-size: 26px;
        padding: 22px 36px;
    }
}


/* ============================================
   RESPONSIVE - LANDING TABLET (max-width: 960px)
   ============================================ */
@media (max-width: 960px) {
    .bingo-landing-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 40px 24px;
    }

    .bingo-landing-form-col {
        flex: none;
        width: 100%;
        max-width: 450px;
    }

    .bingo-hero {
        text-align: center;
        order: 1;
    }

    .bingo-landing-form-col {
        order: 0;
    }

    .bingo-hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .bingo-hero {
        padding: 0;
    }

    .bingo-hero-title {
        font-size: 28px;
    }

    .bingo-hero-description {
        font-size: 15px;
    }

    .bingo-hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .bingo-hero-feature {
        font-size: 13px;
    }

    .bingo-how-it-works {
        padding: 24px 16px 32px;
    }

    .bingo-section-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .bingo-steps {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bingo-step {
        padding: 16px 10px;
    }

    .bingo-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .bingo-step-content h3 {
        font-size: 13px;
    }

    .bingo-step-content p {
        font-size: 11px;
    }

    .bingo-create-card {
        max-width: 100%;
    }

    .bingo-seo-content {
        padding: 32px 16px 48px;
    }

    .bingo-seo-content h2 {
        font-size: 24px;
    }

    .bingo-seo-content h3 {
        font-size: 18px;
    }

    .bingo-seo-content p,
    .bingo-seo-content li {
        font-size: 15px;
    }
}


/* ============================================
   RESPONSIVE - SMALL SCREENS (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
    .bingo-container {
        padding: 16px 12px;
    }

    .bingo-board-header h2 {
        font-size: 20px;
    }

    /* Compact the header meta so name + status + players + card/game #
       all fit comfortably on one line on phones. */
    .bingo-header-meta {
        gap: 6px;
    }

    .bingo-header-badge {
        padding: 3px 7px;
        font-size: 10px;
        letter-spacing: 0.02em;
        gap: 4px;
    }

    .bingo-header-badge::before {
        width: 5px;
        height: 5px;
    }

    .bingo-editable-name {
        font-size: 12px;
    }

    #bingo-card-number {
        font-size: 11px;
        margin-left: 0;
    }

    /* Stack form rows */
    .bingo-form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Smaller cells for bigger grids */
    .bingo-cell {
        font-size: 10px;
        padding: 4px 2px;
    }

    .bingo-cell.free {
        font-size: 9px;
    }

    .bingo-cell.free::before {
        font-size: 7px;
        top: 2px;
        right: 2px;
    }

    /* Call display */
    .bingo-current-call.bingo-call-active {
        font-size: 18px;
        padding: 14px 18px;
    }

    /* Admin panel compact */
    #bingo-admin-panel {
        padding: 16px;
    }

    .bingo-admin-buttons {
        gap: 6px;
    }

    .bingo-admin-buttons .bingo-btn {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Link copy stacks on mobile */
    .bingo-link-copy {
        flex-wrap: wrap;
    }

    .bingo-link-copy input {
        flex: 1 1 100%;
    }

    /* Welcome banner mobile */
    .bingo-welcome-links .bingo-link-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .bingo-welcome-links .bingo-link-copy {
        flex-wrap: wrap;
    }

    .bingo-welcome-links .bingo-link-copy input {
        flex: 1 1 100%;
    }

    /* Pattern dropdown menu slightly smaller on mobile */
    .bingo-pattern-menu label {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Toast full width */
    #bingo-toast-container {
        top: 12px;
        right: 8px;
        left: 8px;
    }

    .bingo-toast {
        max-width: 100%;
    }

    /* Join panel */
    #bingo-join-panel {
        padding: 24px 16px;
    }
}


/* ============================================
   RESPONSIVE - EXTRA SMALL (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .bingo-landing-grid {
        padding: 24px 12px;
        gap: 24px;
    }

    .bingo-hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .bingo-hero-title {
        font-size: 24px;
    }

    .bingo-hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .bingo-hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .bingo-create-card {
        padding: 20px 16px 24px;
    }

    .bingo-create-title {
        font-size: 20px;
    }

    .bingo-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bingo-step {
        padding: 12px 8px;
    }

    .bingo-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .bingo-step-content h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .bingo-step-content p {
        font-size: 10px;
    }

    .bingo-seo-content {
        padding: 24px 12px 40px;
    }

    .bingo-seo-content h2 {
        font-size: 22px;
    }

    .bingo-seo-content h3 {
        font-size: 16px;
        margin-top: 24px;
    }

    .bingo-seo-content p,
    .bingo-seo-content li {
        font-size: 14px;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .bingo-container {
        padding: 0;
        background: white;
    }

    #bingo-admin-panel,
    #bingo-join-panel,
    #bingo-toast-container,
    .bingo-admin-buttons,
    .bingo-admin-share,
    .bingo-welcome-banner,
    .bingo-connection-error,
    .bingo-btn {
        display: none !important;
    }

    .bingo-cell {
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .bingo-cell.called { background: #eff4ff !important; }
    .bingo-cell.marked { background: #eff4ff !important; }
    .bingo-cell.winner-cell {
        background: #fff6cc !important;
        animation: none;
    }

    #bingo-card-grid {
        box-shadow: none;
        border: 2px solid #333;
    }
}
