/* Design Tokens */
:root {
    /* Colors */
    --primary-500: #00ECA4;
    --primary-300: #80F5D1;
    --primary-100: #CCF8ED;
    --neutral-900: #000000;
    --neutral-800: #1a1a1a;
    --neutral-700: #2d2d2d;
    --neutral-100: #f5f5f7;
    --neutral-50: #ffffff;

    /* Poker table colors - Very dark like real poker felt */
    --poker-dark: #0a120f;
    --poker-mid: #0f1a15;
    --poker-light: #141f1a;

    /* Typography */
    --font-display: 'Brush Script MT', cursive;
    --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Enhanced Shadows for Glass Aesthetic - Dramatic depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 25px rgba(0, 236, 164, 0.5), 0 0 50px rgba(0, 236, 164, 0.2);
    --shadow-glow-strong: 0 0 40px rgba(0, 236, 164, 0.8), 0 0 80px rgba(0, 236, 164, 0.4);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--poker-dark) 0%, var(--poker-mid) 50%, var(--poker-dark) 100%);
    background-attachment: fixed;
    color: var(--neutral-50);
    min-height: 100vh;
    height: 100vh;
    padding: var(--spacing-sm);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.logo-image {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 236, 164, 0.3));
}

.tagline {
    font-size: 0.85em;
    color: var(--neutral-50);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0;
}

/* Main Layout - Two Columns */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-md);
    align-items: start;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    overflow-y: auto;
    height: 100%;
    padding-right: var(--spacing-xs);
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
    overflow-y: auto;
    padding-right: var(--spacing-xs);
}

/* Framework Header */
.framework-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: none;
    flex-shrink: 0;
}

.framework-header h2 {
    color: var(--neutral-50);
    font-size: 0.8em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
}

.framework-header h3 {
    color: var(--primary-500);
    font-size: 0.7em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.player-team {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Framework Carousel */
.framework-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.framework-slides {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.framework-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-align: center;
}

.framework-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.framework-slide h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin: 0;
}

.carousel-arrow {
    background: rgba(0, 236, 164, 0.1);
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.carousel-arrow:hover {
    background: var(--primary-500);
    color: var(--neutral-900);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* Info Icon and Tooltip */
.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 236, 164, 0.2);
    color: var(--primary-500);
    font-size: 0.85em;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.info-icon:hover {
    background: var(--primary-500);
    color: var(--neutral-900);
    transform: scale(1.15);
}

/* Tooltip Modal Overlay */
.tooltip-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
}

.tooltip-modal.active {
    display: flex;
}

.tooltip-content {
    background: linear-gradient(135deg, rgba(0, 40, 30, 0.98), rgba(0, 20, 15, 0.98));
    color: var(--neutral-50);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    max-width: 100%;
    width: 100%;
    border: 2px solid var(--primary-500);
    box-shadow: 0 8px 24px rgba(0, 236, 164, 0.3);
    position: relative;
    line-height: 1.5;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease;
    overflow: visible;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tooltip-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(0, 20, 15, 0.95);
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    font-size: 1.3em;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    line-height: 1;
    font-weight: 400;
    z-index: 10;
}

.tooltip-close:hover {
    background: var(--primary-500);
    color: var(--neutral-900);
    transform: rotate(90deg) scale(1.15);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-500);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(0, 236, 164, 0.6);
}

/* Cards Section */
.cards-section {
    margin-bottom: 0;
    margin-top: var(--spacing-md);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px) scale(1.01);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 236, 164, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.edit-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 236, 164, 0.1);
    color: var(--primary-500);
    border: 1px solid var(--primary-300);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1em;
    transition: all var(--transition-fast);
    z-index: 10;
}

.edit-btn:hover {
    background: var(--primary-500);
    color: var(--neutral-50);
    transform: scale(1.1);
}

.card-label {
    font-size: 0.85em;
    color: var(--neutral-700);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--neutral-900);
    text-align: center;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: color var(--transition-base);
    word-wrap: break-word;
    line-height: 1.2;
}

.card-content:hover {
    color: var(--primary-500);
}

.card-footer {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

.icon-btn {
    background: var(--neutral-100);
    color: var(--neutral-700);
    border: none;
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--primary-500);
    color: var(--neutral-50);
    border-color: var(--primary-500);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.shuffle-both-container {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

/* Combined Timer & Testimonials Section */
.combined-section {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    flex-shrink: 0;
}

.timer-banner {
    background: rgba(0, 0, 0, 0.15);
    padding: var(--spacing-sm);
    border-bottom: none;
    flex-shrink: 0;
}

.timer-controls-top {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neutral-50);
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85em;
    font-weight: 600;
    transition: all var(--transition-base);
}

.mode-btn:hover,
.mode-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-500);
}

.timer-controls-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
}

.bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    flex: 1;
    align-items: center;
}

.timer-control-btn,
.preset-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--neutral-50);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9em;
    font-weight: 700;
    transition: all var(--transition-base);
    min-width: 50px;
}

.timer-control-btn:hover,
.preset-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.timer-display {
    background: var(--neutral-900);
    color: var(--primary-500);
    font-size: 2em;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    min-width: 140px;
    text-align: center;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.timer-display.warning {
    color: #FF3B30;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 59, 48, 0.5);
    }
}

/* Testimonials Box (Left Side) */
.testimonials-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-sm);
}

.testimonial-card .stars {
    font-size: 1em;
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.testimonial-title {
    color: var(--primary-500);
    font-size: 1em;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
    transition: opacity 0.5s ease;
    line-height: 1.3;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
    transition: opacity 0.5s ease;
}

.testimonial-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    font-weight: 600;
    transition: opacity 0.5s ease;
}

/* Share Box (Right Side) */
.share-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-sm);
}

.share-box h2 {
    color: var(--primary-500);
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

/* Calendar Section */
.calendar-section {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.calendar-section h2 {
    color: var(--primary-500);
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.calendar-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.calendar-container iframe {
    width: 100%;
    display: block;
    height: 300px;
}

.calendar-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75em;
    line-height: 1.4;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--neutral-50);
    color: var(--neutral-900);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    background: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 236, 164, 0.4);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-text {
    margin-top: var(--spacing-sm);
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.share-text a {
    color: var(--primary-500);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.share-text a:hover {
    color: var(--primary-300);
}

/* Score Section */
.score-section {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.team-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.005);
}

.team-card.winner {
    border-color: #FFD700;
    border-width: 2px;
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7), 0 0 100px rgba(255, 215, 0, 0.3), var(--shadow-xl);
    animation: winnerGlow 2s ease-in-out infinite;
}

@keyframes winnerGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3), var(--shadow-xl);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 215, 0, 0.5), var(--shadow-xl);
    }
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    gap: 4px;
}

.investor-star {
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    opacity: 0.3;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
    filter: grayscale(100%);
}

.investor-star:hover {
    opacity: 0.6;
    transform: scale(1.15);
}

.investor-star.active {
    opacity: 1;
    filter: grayscale(0%);
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.team-header h3 {
    color: var(--primary-500);
    font-size: 0.85em;
    font-weight: 700;
    flex: 1;
}

.delete-btn {
    background: rgba(255, 59, 48, 0.8);
    color: var(--neutral-50);
    border: none;
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1;
    transition: all var(--transition-fast);
}

.delete-btn:hover {
    background: #FF3B30;
    transform: scale(1.1);
}

/* Card-based Scoring System */
.card-scoring {
    display: flex;
    flex-direction: column;
}

.card-row {
    display: flex;
    gap: 3px;
    justify-content: space-between;
}

.score-card {
    flex: 1;
    min-width: 0;
    height: 28px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.score-card.empty:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.5);
}

.score-card.filled {
    border-style: solid;
}

.score-card.funny-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: rgba(0, 20, 15, 0.9);
}

.score-card.fundable-card {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: rgba(0, 20, 15, 0.9);
}

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

.team-card.winner .score-card.filled {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: rgba(0, 0, 0, 0.9);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.team-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex-shrink: 0;
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    width: 100%;
}

.btn-primary {
    background: var(--primary-500);
    color: var(--neutral-900);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--neutral-50);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-500);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-base);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    color: var(--neutral-900);
    font-size: 1.5em;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--neutral-700);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1em;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--neutral-100);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.list-item:hover {
    background: rgba(0, 236, 164, 0.1);
}

.list-item.selectable:hover {
    background: rgba(0, 236, 164, 0.2);
    border-left: 3px solid var(--primary-500);
}

.list-item span {
    flex: 1;
    word-break: break-word;
    color: var(--neutral-900);
}

.list-item button {
    background: none;
    border: none;
    color: var(--neutral-700);
    cursor: pointer;
    font-size: 1.3em;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.list-item button:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.items-count {
    text-align: center;
    color: var(--neutral-700);
    font-size: 0.9em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .right-column {
        position: static;
    }

    /* Stack sections properly on mobile */
    .left-column {
        display: flex;
        flex-direction: column;
    }

    .right-column {
        display: flex;
        flex-direction: column;
    }

    /* Break apart combined-section for mobile reordering */
    .combined-section {
        display: contents;
    }

    /* Mobile order: cards(1) -> timer(2) -> framework(3) -> teams(4) -> testimonials/share(5) -> calendar(6) */
    .cards-section {
        order: 1;
    }

    .timer-banner {
        order: 2;
        background: rgba(0, 0, 0, 0.35);
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        margin-bottom: var(--spacing-sm);
    }

    .framework-header {
        order: 3;
    }

    .score-section {
        order: 4;
    }

    .bottom-content {
        order: 5;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        background: rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        padding: var(--spacing-md);
    }

    .calendar-section {
        order: 6;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
        height: auto;
        overflow-y: auto;
    }

    .logo-image {
        height: 60px;
    }

    .tagline {
        font-size: 0.85em;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .card {
        min-height: 200px;
    }

    .card-content {
        font-size: 1.6em;
    }

    .timer-display {
        font-size: 2em;
        padding: 12px 24px;
        min-width: 140px;
    }

    .timer-controls-compact {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
        justify-content: center;
    }

    .framework-header h2 {
        font-size: 0.95em;
    }

    .framework-header h3 {
        font-size: 0.9em;
    }

    /* Ensure scroll works on mobile */
    .left-column, .right-column {
        overflow-y: visible;
        height: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--spacing-sm);
    }

    header {
        padding: var(--spacing-sm);
    }

    .logo-image {
        height: 50px;
    }

    .card {
        padding: var(--spacing-md);
        min-height: 180px;
    }

    .card-content {
        font-size: 1.4em;
        padding: var(--spacing-sm);
    }

    .timer-banner {
        padding: var(--spacing-sm);
    }

    .timer-display {
        font-size: 1.8em;
        padding: 10px 20px;
        min-width: 120px;
    }

    .score-section {
        padding: var(--spacing-sm);
    }

    .bottom-content {
        padding: var(--spacing-sm);
    }
}

/* Investor's Choice Modal */
.modal-investor .modal-content {
    max-width: 500px;
}

.modal-description {
    color: var(--neutral-700);
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.input-group-large {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.input-group-large input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1.2em;
    transition: all var(--transition-fast);
    text-align: center;
}

.input-group-large input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.input-group-large .btn-primary {
    width: 100%;
}

/* How To Play Modal */
.modal-howtoplay .modal-content {
    max-width: 800px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.instructions-text {
    color: var(--neutral-900);
}

.instructions-text h4 {
    color: var(--neutral-900);
    font-size: 1.5em;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.instructions-text p {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: center;
}

.instructions-text a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
}

.instructions-text a:hover {
    text-decoration: underline;
}

/* Team Name Editing */
.team-name-editable {
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.team-name-editable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.team-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-500);
    color: var(--neutral-50);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    width: 100%;
    max-width: 200px;
}

.team-name-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}
