/* 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;

    /* Table felt - emerald to match the Webflow /game design (North Star #006647) */
    --poker-dark: #021a12;   /* vignette edge */
    --poker-mid: #006647;    /* Webflow emerald */
    --poker-light: #0a7d57;  /* lit center */

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

    /* Brand surfaces (canonical homepage system) */
    --surface-glass: rgba(0, 236, 164, 0.06);
    --surface-glass-hover: rgba(0, 236, 164, 0.1);
    --border-mint: rgba(0, 236, 164, 0.2);
    --warning-red: #FF3B30;

    /* 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);
    /* Real casino-felt texture pulled from the playsidehustle.com/game capture,
       over black, stretched to fill — matches the replica exactly. Radial
       gradient sits beneath as a fallback for ultra-tall scroll. */
    /* One seamless deep-emerald surface blanketing the whole page — darker, like
       the original board background, with only a subtle center lift for depth. */
    background-color: #043521;
    background-image:
        radial-gradient(ellipse 140% 120% at 50% 22%, #08543a 0%, #053b29 62%, #032a1c 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--neutral-50);
    min-height: 100vh;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    line-height: 1.6;
    overflow-x: hidden;   /* nothing bleeds past the page width on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
}

/* Super-subtle unicorn watermark blended into the background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('unicorn-icon.png');
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: min(64vw, 560px);
    opacity: 0.045;
    pointer-events: none;
}

/* Clicking cards/buttons shouldn't select or highlight their text — keep it
   feeling like a game, not selectable copy. Inputs stay editable below. */
.container,
.focus-mode {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.card-content,
.focus-card-content {
    -webkit-touch-callout: none;   /* no iOS long-press copy/define popup */
}

/* Re-enable selection where it's actually useful */
input,
textarea,
.team-name-input,
.share-text,
.share-text a {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
}

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

.logo-image {
    height: 96px;   /* desktop logo 20% smaller (was 120px); mobile overrides below unchanged */
    width: auto;
    filter: drop-shadow(0 4px 14px rgba(0, 236, 164, 0.32));
}

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

/* Main Layout - Hero: board LEFT, teams RIGHT.
   Pixel-matched to the playsidehustle.com/game capture's .game-board-box-2:
   flex row, vertically + horizontally centered (this reconciles the panel
   heights so it reads as one composed hero — no top-heavy imbalance). */
.main-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;    /* teams rail top-aligns with the board — reads as a true right sidebar */
    justify-content: center;
    gap: 16px;
    max-width: 1240px;          /* board (flex 560–800) + gap + 380 teams rail */
    margin: 0 auto;
}

/* LEFT: the game board — replica .card-boxes recipe exactly */
.board-column {
    position: relative;         /* anchor for the floating help (?) button */
    flex: 1 1 560px;            /* flexes 560–800px so the teams rail always fits beside it */
    min-width: 0;               /* allow it to shrink and make room for the right rail */
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background: transparent;   /* blend into the page — no distinct board panel */
    border-radius: 1vw;
    padding: 10px 10px var(--spacing-md);
}

/* RIGHT: the teams / scoreboard panel — replica players column (400px wide) */
.teams-column {
    flex: 0 0 380px;           /* fixed right rail */
    max-width: 380px;
    align-self: stretch;       /* full-height right sidebar, top-aligned with the board */
}

/* Entrance reveal — matches website motion (opacity + rise) */
.board-column,
.teams-column {
    animation: heroReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.teams-column {
    animation-delay: 0.1s;
}

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

@media (prefers-reduced-motion: reduce) {
    .board-column,
    .teams-column { animation: none; }
}

/* Framework Header */
.framework-header {
    background: transparent;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.framework-header h2 {
    color: var(--neutral-50);
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.framework-header h3 {
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Quick Pitch Framework — top-right of the teams rail (matches the style guide) */
.quick-pitch {
    text-align: center;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}
.qp-title {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.qp-flow {
    display: block;
    color: var(--primary-500);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.player-team {
    color: var(--primary-500);
    font-family: var(--font-display);
    text-align: left;
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 14px;   /* drop the heading onto the same line as the card labels */
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0;
    text-shadow: 0 0 18px rgba(0, 236, 164, 0.25);
}

/* 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: 60px;
    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 {
    display: none;
}

.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: none;
}

.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;
}

/* Two cards side by side, each in its own padded cell (replica .div-block-3110 = 20px).
   Top padding clears the absolute card-labels (top:-30px) within the board. */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 0;
    padding: 28px 20px 4px;
    justify-items: center;
}

/* Card geometry matched to replica .industry-card: 350x200, 2vw radius,
   shadow 0 10px 20px 3px #0000004d. Keeps the SideHustle PNG art (brand layer)
   filling the exact replica box. */
.card {
    background-image: url('Blank SideHustle Card.png');
    background-size: 100% 100%;       /* fill the box exactly — no cropped top/bottom */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2vw;
    padding: var(--spacing-md);
    border: none;
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 987 / 635;          /* match the card art so it never distorts or crops */
    min-height: 150px;
    box-shadow: 0 12px 24px 4px rgba(0, 0, 0, 0.32);   /* lift the front card off the felt */
    display: flex;
    flex-direction: column;
    transition: transform 0.233s, box-shadow 0.233s;
    overflow: visible;
}

/* Stacked-deck tilt behind each card — the signature outline that adds depth */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('Blank SideHustle Card.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
    box-shadow: 0 10px 22px 3px rgba(0, 0, 0, 0.28);
    transform: rotate(-5deg);
    z-index: -1;
}

/* A second, opposite-tilt card for a fuller deck behind (more dimension) */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('Blank SideHustle Card.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
    box-shadow: 0 8px 18px 2px rgba(0, 0, 0, 0.22);
    transform: rotate(3deg);
    z-index: -2;
}

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

.edit-btn {
    display: none;
}

/* Edit button hidden to match design */

.card-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    position: absolute;
    top: -22px;
    left: 6px;
    white-space: nowrap;
}

.card-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em; /* fallback; JS auto-fit sets an inline px size to guarantee fit */
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--neutral-900);
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-xl) var(--spacing-lg);
    cursor: pointer;
    transition: color var(--transition-base);
    overflow: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.15;
}

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

.card-footer {
    display: none;
}

.icon-btn {
    background: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    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: none;
}

/* Timer Section */
.timer-section {
    background: transparent;
    padding: var(--spacing-sm) 0;
    text-align: center;
}

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

/* Green pill buttons — replica recipe: #145a3a fill, #21724e border, pill radius */
.mode-btn {
    background: #145a3a;
    color: #ffffff;
    border: 2px solid #21724e;
    padding: 13px 30px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.233s, box-shadow 0.233s, border-color 0.233s, background-color 0.233s;
    min-width: 190px;
    text-align: center;
}

.mode-btn:hover,
.mode-btn.active {
    background: #1a7048;
    border-color: var(--primary-500);
    color: var(--primary-500);
    box-shadow: 0 0 18px rgba(0, 236, 164, 0.3);
}

.timer-display-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-sm);
}

.timer-left-controls {
    display: flex;
    gap: var(--spacing-sm);
    justify-self: end;
}

.timer-right-controls {
    display: flex;
    gap: var(--spacing-sm);
    justify-self: start;
}

/* How-to-play — compact "?" icon pinned to the board's top-right */
.help-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 50;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 90, 58, 0.55);
    color: var(--primary-500);
    border: 1.5px solid #21724e;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.help-btn:hover {
    color: var(--neutral-900);
    background: var(--primary-500);
    border-color: var(--primary-500);
    box-shadow: 0 0 16px rgba(0, 236, 164, 0.45);
    transform: translateY(-1px);
}

.help-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Timer transport (reset/play/pause) — green pill family */
.timer-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.14);
    color: var(--primary-500);
    border: 1px solid rgba(0, 236, 164, 0.16);
    padding: 8px 16px;
    min-height: 54px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    transition: color 0.233s, box-shadow 0.233s, border-color 0.233s, background-color 0.233s;
    min-width: 50px;
}

/* Preset times — replica .times: mint-300 text on black with inset bevel */
.preset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.14);
    color: var(--primary-500);
    border: 1px solid rgba(0, 236, 164, 0.16);
    padding: 8px 16px;
    min-height: 54px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 0.144s, box-shadow 0.144s, border-color 0.144s, background-color 0.144s;
    min-width: 50px;
}

.timer-control-btn:hover {
    background: rgba(0, 236, 164, 0.14);
    border-color: rgba(0, 236, 164, 0.45);
    color: var(--primary-500);
    transform: translateY(-2px);
}

.preset-btn:hover {
    color: var(--primary-500);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.timer-control-btn:focus-visible,
.preset-btn:focus-visible,
.shuffle-btn:focus-visible,
.mode-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.timer-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--neutral-900);
    color: var(--primary-500);
    font-size: 2.05em;
    line-height: 1;
    font-weight: 400;
    padding: 10px 26px;
    min-height: 54px;
    border-radius: var(--radius-md);
    min-width: 132px;
    text-align: center;
    font-family: var(--font-display);
    border: 2px solid rgba(0, 236, 164, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6),
                0 0 16px rgba(0, 236, 164, 0.25),
                0 0 34px rgba(0, 236, 164, 0.10);
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(0, 236, 164, 0.45);
    transition: all var(--transition-base);
}

.timer-display.warning {
    color: var(--warning-red);
    border-color: rgba(255, 59, 48, 0.5);
    text-shadow: 0 0 14px rgba(255, 59, 48, 0.65);
    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);
    }
}

/* Controls Row: Custom Name | Back Shuffle | Investor's Choice */
/* Two columns matching the cards above: Custom Name centers under the SideHustle
   card, Investor's Choice under the Industry card, shuffle floats dead-center. */
.controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    gap: 0;
    padding: 0 20px;            /* match .card-container side padding so columns line up */
    margin-bottom: var(--spacing-sm);
}

.controls-row .mode-btn:first-child {
    justify-self: center;
}

.controls-row .mode-btn:last-child {
    justify-self: center;
}

.shuffle-controls {
    display: flex;
    gap: var(--spacing-sm);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Shuffle/back transport — replica green pill (border-radius:10vw) */
.shuffle-btn {
    background: #145a3a;
    color: #ffffff;
    border: 2px solid #21724e;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.233s, box-shadow 0.233s, border-color 0.233s, background-color 0.233s, transform 0.233s;
}

.shuffle-btn .ctrl-icon {
    width: 26px;
    height: 26px;
}

.shuffle-btn:hover {
    background: #1a7048;
    border-color: var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-2px);
}

/* Testimonial and Share Row */
.testimonial-share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: stretch;
}

/* Testimonial Card */
.testimonial-card {
    background-image: url('Blank SideHustle Card.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card::after {
    display: none;
}

.testimonial-stars {
    color: var(--primary-500);
    font-size: 0.9em;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
}

.testimonial-quote {
    color: var(--neutral-900);
    font-weight: 700;
    font-size: 0.75em;
    margin-bottom: var(--spacing-xs);
}

.testimonial-text {
    color: var(--neutral-700);
    font-size: 0.65em;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

.testimonial-author {
    color: var(--neutral-700);
    font-size: 0.7em;
    font-style: italic;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    min-height: 146px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* Brand Logo */
.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.brand-logo-img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Brand Logo Card - Logo Only - Same size as SideHustle/Industry cards */
.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Match the SideHustle/Industry game cards EXACTLY — same art, same max-width + aspect ratio. */
    width: 100%;
    max-width: 350px;
    aspect-ratio: 987 / 635;
    min-height: 150px;
    margin: 0 auto;
    justify-self: center;
    align-self: start;
    box-sizing: border-box;
    padding: var(--spacing-md);
    border-radius: 2vw;
    overflow: visible;         /* keep the "Presented by" label visible above the card */
}

/* "presented by" — identical treatment to the SideHustle/Industry .card-label
   (italic heading font, white), sitting in the top-left ABOVE the sponsor card. */
.presented-by {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    position: absolute;
    top: -22px;
    left: 6px;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
}

.brand-logo-card .testimonial-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 110px;
}

/* Sponsor logos are clickable, tracked links */
.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-logo-link:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.brand-logo-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
    border-radius: 8px;
}

.brand-logo-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
}

.brand-logo-img-large {
    max-height: 62px;       /* uniform height = consistent visual size across sponsors */
    max-width: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Per-sponsor nudges to even out logos with built-in whitespace / unusual aspect */
[data-brand="chase"] .brand-logo-img-large { max-height: 56px; max-width: 90%; }
[data-brand="genaiu"] .brand-logo-img-large { max-height: 74px; max-width: 90%; }
[data-brand="effortless-hire"] .brand-logo-img-large { max-height: 60px; }
[data-brand="highlevel"] .brand-logo-img-large { max-height: 58px; max-width: 92%; }
[data-brand="skool"] .brand-logo-img-large { max-height: 76px; max-width: 90%; }
[data-brand="antler"] .brand-logo-img-large { max-height: 60px; max-width: 86%; }

/* Share Card */
.share-card {
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;   /* blend into the page — no distinct panel */
    border: none;
    box-shadow: none;
}

.share-card h2 {
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.share-card .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: var(--neutral-900);
    padding: 9px 26px;
    border-radius: var(--radius-full);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    margin-bottom: var(--spacing-xs);
}

.share-card .share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

/* Subtle, non-distracting "Subscribe for Updates" — ghost button, secondary to Share.
   Toggle off for A/B by setting data-subscribe="off" on .share-card. */
.share-card .subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-xs);
    margin-bottom: 3px;
    padding: 6px 18px;
    background: transparent;
    color: var(--primary-300);
    border: 1px solid rgba(0, 236, 164, 0.35);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.66em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.share-card .subscribe-btn:hover {
    color: var(--neutral-900);
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.share-card[data-subscribe="off"] .subscribe-btn {
    display: none;
}

/* Social row — YouTube · Instagram · TikTok · Facebook · X (between Share and Subscribe) */
.share-card .social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* +0.25rem above the icons (more room below the Share button), and the "Have fun"
       line pulled up to 0.25rem below the icons — evenly spaced, tighter blank space. */
    margin: 10px 0 4px;
}
.share-card .social-link {
    display: inline-flex;
    color: var(--primary-300);
    transition: color 0.2s, transform 0.2s;
}
.share-card .social-link svg {
    width: 20px;
    height: 20px;
}
.share-card .social-link:hover {
    color: var(--primary-500);
    transform: translateY(-2px);
}

.share-card .share-text {
    /* Halve the gap under "Subscribe for Updates": was 24px (.share-text margin-top) + 3px = 27px.
       Override to 10px here -> ~13px total, about half. */
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--primary-500);
    line-height: 1.5;
}

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

/* "Made with heart in Austin, Texas" — subtle, matches the website footer */
.share-card .made-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    /* Pull "Made with" up so it sits the same distance below the social icons (10px)
       as "Have fun…" sits above them. Row adds 4px, so 6 + 4 = 10. */
    margin-top: 6px;
    font-size: 0.7em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--neutral-50);
    opacity: 0.6;
}

.share-card .made-heart {
    width: 13px;
    height: 13px;
    color: var(--primary-300);
    flex-shrink: 0;
}

/* Legal links + copyright — sit just under "Made with heart in Austin, Texas", compact + muted */
.share-card .legal-line {
    margin-top: 8px;
    font-size: 0.66em;
    letter-spacing: 0.04em;
    color: var(--neutral-50);
    opacity: 0.55;
}
.share-card .legal-line a {
    color: var(--primary-300);
    text-decoration: none;
}
.share-card .legal-line a:hover {
    text-decoration: underline;
}
.share-card .legal-line .legal-dot {
    margin: 0 5px;
    opacity: 0.5;
}
.share-card .copyright-line {
    margin-top: 4px;
    font-size: 0.6em;
    letter-spacing: 0.04em;
    color: var(--neutral-50);
    opacity: 0.4;
}

/* Share Section */
.share-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
}

.share-section h2 {
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Calendar Section */
.calendar-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
}

.calendar-section h2 {
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--neutral-50);
    color: var(--neutral-900);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-size: 1.3em;
    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: 24px;
    height: 40px;
}

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

.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 — minimal wrapper; the team cards are the replica's player-boxes */
.score-section {
    background: transparent;
    padding: 0;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 10px;                  /* replica player-box margin-bottom:10px */
    margin-bottom: var(--spacing-md);
}

.no-teams {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    text-align: center;
    padding: var(--spacing-md);
    font-style: italic;
}

/* Team card = replica .player-box: #00000038 bg, 10px radius, 10px padding */
.team-card {
    background: #00000038;
    border-radius: 10px;
    padding: 7px 8px;
    border: 1px solid transparent;
    transition: border-color 0.233s, box-shadow 0.233s, transform 0.233s, background-color 0.233s;
}

.team-card:hover {
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
    border-color: rgba(0, 236, 164, 0.4);
}

.team-card.winner {
    border-color: var(--primary-500);
    border-width: 2px;
    background: rgba(0, 236, 164, 0.18);
    box-shadow: 0 0 50px rgba(0, 236, 164, 0.7), 0 0 100px rgba(0, 236, 164, 0.3), var(--shadow-xl);
    animation: winnerGlow 2s ease-in-out infinite;
}

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

.team-header {
    display: none;
}

/* Team action buttons container */
.team-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 4px;
    flex-shrink: 0;
}

/* Turn indicator (triangle) - highlights team when active */
.turn-indicator {
    background: var(--primary-500);
    border: none;
    font-size: 0.6em;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 4px 0;
    line-height: 1;
    border-radius: 5px 5px 0 0;
    color: var(--neutral-900);
    width: 28px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turn-indicator:hover {
    background: var(--primary-300);
}

.turn-indicator.active {
    background: var(--primary-500);
}

/* When turn is active, highlight the team card */
.team-card.current-turn {
    border-color: var(--primary-500);
    box-shadow: 0 0 15px rgba(0, 236, 164, 0.5);
}

/* Investor — pressing the star makes the whole team box glow GOLD so the room
   instantly knows who holds the money. :not(.winner) lets the winner glow win out. */
.team-card.is-investor:not(.winner) {
    border-color: #FFC83D;
    border-width: 2px;
    background: rgba(255, 200, 61, 0.12);
    box-shadow: 0 0 22px rgba(255, 200, 61, 0.55), 0 0 48px rgba(255, 200, 61, 0.25);
    animation: investorGlow 2.2s ease-in-out infinite;
}

@keyframes investorGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 200, 61, 0.5), 0 0 40px rgba(255, 200, 61, 0.22); }
    50%      { box-shadow: 0 0 30px rgba(255, 200, 61, 0.9), 0 0 64px rgba(255, 200, 61, 0.42); }
}

/* Investor star - turns gold when active */
.investor-star {
    background: var(--primary-500);
    border: none;
    font-size: 0.6em;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 4px 0;
    line-height: 1;
    border-radius: 0 0 5px 5px;
    color: var(--neutral-900);
    width: 28px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investor-star:hover {
    background: var(--primary-300);
}

.investor-star.active {
    background: #FFC83D;   /* gold — the investor holds the money */
    color: var(--neutral-900);
    box-shadow: 0 0 12px rgba(255, 200, 61, 0.75);
}

@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: 4px;
    align-items: center;
}

/* Team name button */
.team-name-btn {
    min-width: 60px;
    max-width: 70px;
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 60, 45, 0.9);
    color: var(--neutral-50);
    font-family: var(--font-body);
    font-size: 0.65em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name-btn:hover {
    background: rgba(0, 80, 60, 0.95);
}

/* Score labels (FUNNY / FUNDABLE) */
.score-label {
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.45em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border: 1px solid transparent;
}

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

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

/* Score slot = replica .card-picker-box: #002a1e, 1px dashed #1a7559, 5px, 30px */
.score-card {
    flex: 1;
    min-width: 0;
    height: 30px;
    border-radius: 5px;
    border: 1px dashed #1a7559;
    background: #002a1e;
    color: #00885f;            /* replica empty-point color */
    cursor: pointer;
    font-size: 0.6em;
    font-weight: 700;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.score-card.empty:hover {
    background: #00352580;
    border-color: rgba(0, 236, 164, 0.5);
    color: rgba(0, 236, 164, 0.7);
}

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

/* Filled slots — replica: funny=#fff, fundable=#00eca4, both text #05553d */
.score-card.funny-card {
    background: #ffffff;
    border-color: #006d4c;
    border-style: solid;
    color: #05553d;
    font-size: 0.55em;
    font-weight: 800;
    letter-spacing: 0;
}

.score-card.fundable-card {
    background: #00eca4;
    border-color: #006d4c;
    border-style: solid;
    color: #05553d;
    font-size: 0.5em;
    font-weight: 800;
    letter-spacing: 0;
}

.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: var(--primary-500);
    border-color: var(--primary-500);
    color: rgba(0, 0, 0, 0.9);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 236, 164, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 236, 164, 0.9); }
}

.team-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    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: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
}

.btn-primary {
    background: var(--primary-500);
    color: var(--neutral-900);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

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

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-500);
    border: 1px solid var(--primary-500);
}

.btn-secondary:hover {
    background: rgba(0, 236, 164, 0.12);
    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-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.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 */
/* Hero is fixed 800 + 10 + 400 = 1210px; stack below that (account for padding) */
@media (max-width: 1024px) {
    /* Tablet / mobile only: stack board on top, teams panel below — both full width.
       Above 1024px the teams panel stays as a right-hand sidebar. */
    .main-layout {
        flex-direction: column;
        align-items: center;
        max-width: 800px;
    }

    .board-column {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .teams-column {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }
}

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

    /* Logo centered on mobile only */
    .logo {
        justify-content: center;
        padding: var(--spacing-xs) 0 0 0;
    }

    .logo-image {
        height: 68px;
    }

    .tagline {
        font-size: 0.85em;
    }

    /* Condense the board so both cards + the timer land on the first screen */
    .board-column {
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    }

    .card-container {
        grid-template-columns: 1fr;
        row-gap: 26px;   /* clearance so each stacked card's floating label clears the card above */
        padding: 20px 12px 6px;   /* tightened gap above the cards on mobile */
    }

    .card {
        min-height: 156px;
    }

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

    .timer-display {
        font-size: 1.75em;
        padding: 9px 20px;
        min-width: 124px;
    }

    .testimonial-share-row {
        grid-template-columns: 1fr;
    }

    /* Tighten the teams heading alignment override for the stacked layout */
    .player-team {
        margin-top: var(--spacing-sm);
    }

    /* Sponsor card: smaller, fixed, never resized by its logo */
    .brand-logo-card {
        min-height: 140px;
    }
    .brand-logo-card .testimonial-carousel {
        min-height: 110px;
    }
    .brand-logo-img-large {
        max-height: 72px;
    }
}

@media (max-width: 600px) {
    /* Controls + timer rows must fit narrow screens without clipping */
    .mode-btn {
        min-width: 0;
        padding: 9px 10px;
        font-size: 0.68em;
        white-space: normal;
        line-height: 1.1;
    }

    /* Single centered line (no fixed 1fr/auto/1fr grid) — shrink to fit, don't wrap */
    .controls-row,
    .timer-display-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xs);
    }

    /* Custom Name | shuffle | Investor's Choice share the line and shrink evenly */
    .controls-row {
        padding: 0;            /* drop the desktop 20px column-align padding */
    }
    .controls-row .mode-btn {
        flex: 1 1 0;
        min-width: 0;
    }
    .shuffle-controls {
        position: static;      /* back in flow on the single mobile line */
        transform: none;
    }

    .timer-left-controls,
    .timer-right-controls {
        gap: var(--spacing-xs);
        justify-self: auto;
        flex-shrink: 0;
    }

    .timer-control-btn,
    .preset-btn {
        padding: 8px 6px;
        min-width: 36px;
        font-size: 0.8em;
    }

    .timer-display {
        font-size: 1.4em;
        padding: 8px 10px;
        min-width: 80px;
    }

    /* Stack the team controls so neither button runs off-screen */
    .team-controls {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

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

    header {
        padding: 0;
    }

    .logo-image {
        height: 56px;
    }

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

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

    .board-column {
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    }

    .score-section,
    .share-section {
        padding: var(--spacing-md);
    }

    .brand-logo-card {
        min-height: 124px;
    }
    .brand-logo-img-large {
        max-height: 64px;
    }
}

/* 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;
}

/* Subscribe modal — embedded Beehiiv opt-in */
.modal-subscribe {
    max-width: 460px;
}
.subscribe-iframe {
    width: 100%;
    height: 90px;
    margin: 0;
    border: 0;
    background: transparent;
}

.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-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    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 Row - on top of score cards */
.team-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.team-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(0, 236, 164, 0.55);
    border: 1px solid rgba(0, 236, 164, 0.25);
    border-radius: var(--radius-full);
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.team-remove:hover {
    color: var(--neutral-900);
    background: var(--warning-red);
    border-color: var(--warning-red);
}

.team-remove:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 1px;
}

.team-name-input {
    background: rgba(0, 40, 30, 0.9);
    border: 1px solid transparent;
    color: var(--neutral-50);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.82em;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    transition: all var(--transition-fast);
}

.team-name-input:hover {
    border-color: rgba(0, 236, 164, 0.3);
}

.team-name-input:focus {
    outline: none;
    background: rgba(0, 60, 45, 0.95);
}

/* Team Name Bar - solid dark bar (legacy) */
.team-name-bar {
    background: rgba(0, 40, 30, 0.9);
    border: none;
    border-radius: 6px;
    width: 70px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.team-name-bar:hover {
    background: rgba(0, 60, 45, 0.95);
}

/* ============================================================
   Focus / Presentation Mode — fullscreen round takeover
   ============================================================ */
.focus-mode {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vh, 64px);
    padding: clamp(24px, 5vw, 80px);
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 236, 164, 0.12), transparent 60%),
        linear-gradient(160deg, #04241a 0%, #021a13 60%, #010d09 100%);
    animation: focusFade 0.35s ease both;
}

.focus-mode.active {
    display: flex;
}

/* Lock the board behind the presentation */
body.focus-open {
    overflow: hidden;
}

/* Paused round: dim the timer + show a hint */
.focus-timer.paused {
    opacity: 0.55;
}

.focus-timer.paused::after {
    content: 'PAUSED';
    position: absolute;
    bottom: -1.6em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.18em;
    letter-spacing: 0.3em;
    color: rgba(204, 251, 237, 0.7);
}

@keyframes focusFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.focus-close {
    position: absolute;
    top: clamp(14px, 2.5vw, 28px);
    right: clamp(14px, 2.5vw, 28px);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(204, 251, 237, 0.7);
    border: 1px solid rgba(0, 236, 164, 0.25);
    border-radius: var(--radius-full);
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.focus-close:hover {
    color: var(--neutral-900);
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.focus-close:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.focus-cards {
    display: flex;
    gap: clamp(20px, 4vw, 56px);
    width: 100%;
    max-width: 1100px;
    justify-content: center;
    align-items: stretch;
}

.focus-card {
    position: relative;
    flex: 1 1 0;
    max-width: 480px;
    min-height: clamp(220px, 34vh, 360px);
    background-image: url('Blank SideHustle Card.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px 6px rgba(0, 0, 0, 0.45);
}

.focus-card-label {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: clamp(0.9em, 1.6vw, 1.3em);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(0, 236, 164, 0.3);
}

.focus-card-content {
    padding: clamp(16px, 3vw, 40px);
    color: var(--neutral-900);
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.01em;
    font-size: clamp(1.6em, 4.2vw, 3.4em);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.focus-timer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;   /* click to pause / resume the round */
    min-width: clamp(220px, 30vw, 420px);
    padding: clamp(10px, 1.6vh, 22px) clamp(28px, 4vw, 56px);
    background: var(--neutral-900);
    color: var(--primary-500);
    font-family: var(--font-display);
    font-size: clamp(3em, 11vw, 8em);
    line-height: 1;
    letter-spacing: 0.08em;
    border: 2px solid rgba(0, 236, 164, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6),
                0 0 26px rgba(0, 236, 164, 0.22),
                0 0 70px rgba(0, 236, 164, 0.10);
    text-shadow: 0 0 22px rgba(0, 236, 164, 0.45);
    transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.focus-timer.warning {
    color: var(--warning-red);
    border-color: rgba(255, 59, 48, 0.5);
    text-shadow: 0 0 22px rgba(255, 59, 48, 0.65);
    animation: pulse 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    .focus-cards {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }
    .focus-card {
        width: 100%;
        max-width: 420px;
    }
}
