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

/* Site Header */
.ticss-21666eb5 {
    z-index: 7;
    position: fixed;
    width: 100%;
    background: rgba(233, 239, 244, .7);
    box-shadow: 0 2px 4px 0 rgba(31, 38, 135, 0.1);
    border: 0px solid rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticss-bee8b810 {
    margin-top: 0;
    margin-left: 2.5%;
    mix-blend-mode: difference;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    color: #636363;
}

.ticss-bee8b810 a {
    color: inherit;
    text-decoration: none;
}

.has-diatype-plus-variabl-font-family {
    font-family: 'Diatype', sans-serif !important;
}

.ticss-7ae99920 {
    margin-right: 2.5%;
    flex-shrink: 0;
    display: flex;
    gap: 2rem;
}

.ticss-7ae99920 a {
    color: #636363;
    text-decoration: none;
    font-family: 'Diatype', sans-serif;
    font-weight: 500;
}

.mobile-nav {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #E9EFF4;
    padding: 30px 40px 40px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    width: 20px;
    height: 20px;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-weight: normal;
}

.mobile-menu-items {
    background: none;
    gap: 0;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.mobile-menu-items li {
    margin: 0;
    border: none;
    padding: 0;
    background: none;
    width: 100%;
}

.mobile-menu-items li a {
    color: #636363;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    font-size: 14px;
    transition: opacity 0.3s ease;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-menu-items li:first-child a {
    font-size: 14px;
    font-weight: 700;
    color: #636363;
    text-transform: uppercase;
    border-bottom: 1px solid #636363;
    padding: 0 60px 12px 0;
    margin-bottom: 8px;
    line-height: 20px;
    display: inline-block;
    width: auto;
}

.mobile-menu-items li:nth-child(5) a {
    padding-left: 20px;
}

.mobile-menu-items li a:hover {
    opacity: 0.7;
}

@media only screen and (max-width: 800px) {
    .ticss-21666eb5 {
        justify-content: flex-start;
    }
    
    .ticss-bee8b810 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        text-align: center;
    }
    
    .ticss-7ae99920 {
        display: none;
    }
    
    .mobile-nav {
        display: block;
        margin-left: 4%;
        order: -1;
    }
    
    .hamburger {
        background: none;
        border: none;
        font-size: 18px;
        color: #636363;
        cursor: pointer;
        width: 20px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger-lines {
        position: relative;
        width: 18px;
        height: 2px;
        background: #636363;
        top: 1px;
    }
    
    .hamburger-lines::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 0;
        width: 18px;
        height: 2px;
        background: #636363;
    }
}

body {
    font-family: 'Diatype', sans-serif;
    background-color: #E9EFF4;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: auto;
    font-weight: 300;
    transition: background-color 0.8s ease-in-out;
}

body.winner-screen {
    overflow-y: auto;
}

body.ponder-mode {
    background-color: #ffffff;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Fade animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.8s ease-in-out;
}

.fade-in-fast {
    animation: fadeIn 0.4s ease-in-out;
}

.fade-out-fast {
    animation: fadeOut 0.4s ease-in-out;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.start-modal {
    background: #ffffff;
    max-width: 900px;
    width: 90%;
    height: 500px;
    display: flex;
}

.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-left {
    width: 500px;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-image {
    display: none;
}

.desktop-image {
    display: block;
}

.image-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    text-align: center;
}

.image-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    text-align: center;
}

.theme-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.theme-name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0;
    opacity: 1.0; /* Full white on mobile */
}

.modal-right {
    width: 400px;
    padding: 3rem 2rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.modal-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.subtitle {
    font-size: 16px;
    color: #636363;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.description {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.play-button {
    background: #222;
    color: white;
    border: 2px solid #222;
    padding: 1rem 2rem;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.play-button:hover {
    background: transparent;
    color: #222;
}

.partnership {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    right: 2rem;
}

.partnership p {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.partnership a {
    color: #222;
    text-decoration: underline;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .start-modal {
        width: 95%;
        height: auto;
        flex-direction: column;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-left {
        width: 100%;
        height: 280px;
    }

    .mobile-image {
        display: block;
        object-position: center 75%; /* Start cropping from 3/4 down the image */
    }

    .desktop-image {
        display: none;
    }

    .modal-right {
        width: 100%;
        padding: 2rem;
        text-align: center;
        position: static;
    }

    .partnership {
        position: static;
        margin-top: auto;
        padding-top: 2rem;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .image-overlay-top {
        padding: 0.5rem;
    }

    .image-overlay-bottom {
        padding: 0.5rem;
    }

    .main-title {
        font-size: 1.8rem;
        white-space: normal;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
    }

    .play-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 13px;
    }
}

/* Desktop-only: Larger text and full opacity for start screen */
@media (min-width: 769px) {
    .theme-label {
        font-size: 16px;
    }

    .theme-name {
        font-size: 32px;
        opacity: 1.0;
    }

    .desktop-image {
        object-position: center 65%; /* Move chair up - shows more of bottom */
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.title {
    font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.625), 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #636363;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 14px;
    color: #636363;
    font-weight: 500;
}

.subtitle.round-info {
    color: #636363;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Game Over Screen */
.game-over-screen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding: 2rem 0;
    min-height: 100vh;
}

.winner-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 3rem;
    max-width: 32rem;
    width: 100%;
    text-align: center;
    /* Chrome on iPhone specific fixes */
    position: relative;
    contain: layout style paint;
    isolation: isolate;
}

/* Desktop-only: Two-column winner layout */
@media (min-width: 768px) {
    .game-over-screen {
        padding: 0;
        min-height: auto;
        align-items: flex-start;
        justify-content: center;
        margin-top: -4rem;
    }

    .winner-card {
        display: flex;
        gap: 0;
        max-width: 800px;
        padding: 0;
        border: none;
        background: transparent;
        height: auto;
        margin-top: 0;
    }

    /* Left column - Winner info */
    .winner-left {
        flex: 1;
        background: #ffffff;
        border: 1px solid #e5e5e5;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    /* Right column - Leaderboard and button */
    .winner-right {
        flex: 1;
        background: #ffffff;
        border: 1px solid #e5e5e5;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    /* Style the titles to match exactly */
    .winner-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        color: #000000;
        text-align: center;
    }

    /* Fix leaderboard title - target it properly */
    .winner-right .leaderboard-title {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 1.25rem !important;
        color: #000000 !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    /* Winner image - LARGER as requested */
    .winner-image-container {
        margin-bottom: 1.25rem;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .winner-emoji {
        font-size: 7rem !important;
        width: 180px;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .winner-emoji img {
        width: 180px !important;
        height: 180px !important;
        object-fit: cover;
        border-radius: 4px;
    }

    /* Winner info spacing - make text much smaller */
    .winner-info {
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .winner-name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .winner-designer {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        display: block;
        color: #333;
        text-decoration: none;
    }

    .winner-designer:hover {
        text-decoration: underline;
    }

    .winner-materials {
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 0;
    }

    .winner-details {
        margin-bottom: 0;
        text-align: center;
    }

    .winner-description {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .winner-link {
        font-size: 0.8rem;
        text-decoration: underline;
        color: #000000;
    }

    .winner-link:hover {
        color: #333;
    }

    /* Leaderboard content styling - with proper spacing */
    .winner-leaderboard {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Add spacing between title and leaderboard content */
    .leaderboard-header {
        margin-top: 0.75rem;
    }

    /* Style leaderboard headers - make them larger */
    .leaderboard-header span {
        font-size: 0.9rem;
        font-weight: 600;
        color: #000000;
    }

    .leaderboard-list {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Position button higher up to align with Learn More link height */
    .reset-button {
        background: #000000;
        color: #ffffff;
        border: 1px solid #000000;
        padding: 0.6rem 1.25rem;
        margin: 0;
        width: 70%;
        align-self: center;
        text-align: center;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .reset-button:hover {
        background: #333333;
        border-color: #333333;
    }

    /* Hide header on winner screen */
    .winner-screen .header {
        display: none;
    }

    /* Adjust winner screen padding without header */
    .winner-screen .game-over-screen {
        padding-top: 2rem;
        min-height: calc(100vh - 80px);
    }

    /* Font size improvements */
    .leaderboard-title {
        font-size: clamp(16px, 1rem + ((1vw - 3.2px) * 0.417), 20px);
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #636363;
        margin-bottom: 1.5rem;
        font-family: 'Inter', sans-serif;
    }

    .leaderboard-header {
        font-size: 16px;
        font-weight: 600;
    }

    /* Reduce card padding for better fit */
    .winner-card {
        padding: 2rem;
    }

    /* Increase winner image size and optimize spacing */
    .winner-image-container {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .winner-emoji {
        font-size: 5rem !important;
    }

    /* Optimize spacing in winner info and details */
    .winner-info {
        margin-bottom: 1rem;
    }

    .winner-details {
        margin-top: 1rem;
    }

    .winner-description {
        margin-bottom: 1.5rem;
    }

    /* Remove border/line above leaderboard title */
    .winner-leaderboard {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.winner-title {
    font-size: clamp(16px, 1rem + ((1vw - 3.2px) * 0.417), 20px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #636363;
    margin-bottom: 2rem;
}

.winner-image-container {
    aspect-ratio: 4/5;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    margin-bottom: 2rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    /* iPhone Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: hidden;
}

.winner-emoji {
    font-size: 8rem;
    line-height: 1;
}

.winner-info {
    margin-bottom: 2rem;
}

.winner-name {
    font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.417), 22px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #636363;
    margin-bottom: 0.5rem;
}

.winner-designer {
    font-size: 16px;
    color: #888888;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.winner-materials {
    font-size: 14px;
    color: #999999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.winner-retailer {
    font-size: 0.875rem;
    color: #999999;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.winner-details {
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.winner-description {
    font-size: 14px;
    color: #636363;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.winner-link {
    display: inline-block;
    color: #000000;
    text-decoration: underline;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.winner-link:hover {
    text-decoration: none;
}

/* Winner Leaderboard */
.winner-leaderboard {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.leaderboard-title {
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.5rem;
}

.leaderboard-header-rank {
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    color: #999999;
    width: 1.5rem;
    text-align: center;
}

.leaderboard-header-name {
    flex: 1;
    margin: 0 0.75rem;
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    color: #999999;
}

.leaderboard-header-stats {
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    color: #999999;
    white-space: nowrap;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    color: #999999;
    width: 1.5rem;
    text-align: center;
}

.leaderboard-product {
    flex: 1;
    margin: 0 0.75rem;
}

.leaderboard-product-name {
    font-family: 'Diatype', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.3;
}

.leaderboard-product-name:hover {
    text-decoration: none;
}

.leaderboard-stats {
    font-family: 'Diatype', sans-serif;
    font-size: 0.625rem;
    color: #666666;
    white-space: nowrap;
}

.reset-button {
    color: #000000;
    background: transparent;
    border: 1px solid #000000;
    padding: 0.75rem 1.5rem;
    font-family: 'Diatype', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #000000;
    color: #ffffff;
}

/* Game Board */
.game-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.game-board.initial-fade {
    opacity: 0;
}

.battle-container {
    display: flex;
    gap: min(2vw, 3rem);
    align-items: flex-start;
    flex: 1;
    min-height: 0;
    position: relative;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.option-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    width: min(40vw, 600px);
    min-width: 350px;
    flex-shrink: 0;
    align-items: stretch;
    position: relative;
}

.option-label {
    text-align: center;
    margin-bottom: 0.75rem;
}

.label-text {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Furniture Cards */
.furniture-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    opacity: 1;
    width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.furniture-card.game-start-fade {
    opacity: 0;
}

.furniture-card.ponder-disabled {
    cursor: not-allowed;
    pointer-events: none;
    border: 1px dashed #999999;
}

/* Allow links and image container to still be interactive during ponder time */
.furniture-card.ponder-disabled .card-link,
.furniture-card.ponder-disabled .card-designer {
    pointer-events: auto;
    cursor: pointer;
}

/* Allow image hover during ponder time for dual-image viewing */
.furniture-card.ponder-disabled .card-image-container {
    pointer-events: auto;
    cursor: default;
}

/* Style controversy messages */
.poll-description {
    font-family: 'Diatype', sans-serif;
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #999999;
    text-align: center;
    margin-top: 0.25rem;
}

@keyframes gentle-border-pulse {
    0%, 100% { 
        border-color: #999999;
        opacity: 1;
    }
    50% { 
        border-color: #bbbbbb;
        opacity: 0.9;
    }
}

.furniture-card.active {
    opacity: 1;
    border: 1px solid #e5e5e5;
    animation: none;
}

.furniture-card.active:hover {
    border-color: #cccccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.furniture-card.locked:hover,
.furniture-card.chosen:hover,
.furniture-card.not-chosen:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit;
}

.furniture-card.locked {
    cursor: default;
    opacity: 1;
}

.furniture-card.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e5e5;
}

.furniture-card.chosen {
    border-color: #000000;
    background: #fafafa;
}

.furniture-card.not-chosen {
    opacity: 0.5;
}

.card-image-container {
    width: 60%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5; /* Taller aspect ratio to accommodate chair images */
}

.card-emoji {
    font-size: min(5vw, 4.5rem);
    line-height: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5 !important; /* Taller aspect ratio to accommodate chair images */
    object-fit: cover;
    object-position: bottom; /* Anchor from bottom for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-in-out;
}

/* Secondary image - hidden by default */
.card-emoji-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
}

/* When showing secondary image */
.card-image-container.showing-secondary .card-emoji {
    opacity: 0;
}

.card-image-container.showing-secondary .card-emoji-secondary {
    opacity: 1;
}

/* Image indicators (dots) */
.image-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show indicators only when there are dual images */
.card-image-container.has-dual-images .image-indicators {
    opacity: 1;
}

.image-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.image-indicators .indicator.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Desktop hover hint - subtle "hover for more" indicator */
@media (min-width: 801px) {
    .card-image-container.has-dual-images::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to right,
            transparent 0%,
            transparent 85%,
            rgba(0, 0, 0, 0.03) 100%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 5;
    }

    .card-image-container.has-dual-images:hover::after {
        opacity: 1;
    }
}

.card-content {
    padding: min(2vw, 1.5rem);
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: hidden;
    gap: 0.5rem;
}

.card-info {
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #636363;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-designer {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #888888;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: rgba(136, 136, 136, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-designer:hover {
    color: #636363;
    text-decoration-color: rgba(99, 99, 99, 0.8);
}

.card-materials {
    font-size: clamp(11px, 1.1vw, 13px);
    color: #999999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.card-retailer {
    font-size: clamp(0.625rem, 1.1vw, 0.75rem);
    color: #999999;
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-description {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #636363;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: auto;
    flex: 1;
}

.card-link {
    color: #636363;
    text-decoration: underline;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.card-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* VS Divider */
.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(8vw, 120px);
    min-width: 100px;
    align-self: center; /* Vertically center with product cards */
    flex-shrink: 0;
    margin-top: 4rem; /* Fine-tune to true center */
}

.vs-badge {
    background: #636363;
    color: #ffffff;
    border: 1px solid #636363;
    padding: 0.75rem 1.25rem;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    will-change: contents;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: relative;
    transition: opacity 0.6s ease-in-out;
}


.vs-badge.hidden {
    display: none;
}

.vs-badge.countdown {
    background: #636363;
    color: #ffffff;
    border-color: #636363;
    font-size: 18px;
    font-weight: 600;
}

.vs-badge.countdown-fade-in {
    opacity: 0;
    transform: translateY(15px);
}


.vs-badge.fade-out {
    opacity: 0;
}



.ponder-message {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: #636363;
    font-weight: 400;
    text-align: center;
    opacity: 0;
    transition: all 0.6s ease;
    max-width: 220px;
    line-height: 1.4;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant: small-caps;
}

.ponder-message.show {
    opacity: 1;
}

.ponder-message.ponder-fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.ponder-message.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Poll Results */
.poll-results {
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    height: 4rem;
    min-height: 4rem;
    width: 100%;
}

.poll-results.show {
    opacity: 1;
}

.poll-content {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.poll-content.chosen {
    border-color: #000000;
    background: #fafafa;
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.poll-label {
    font-family: 'Diatype', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666666;
}

.poll-label.chosen {
    color: #000000;
}

.poll-percentage {
    font-family: 'Diatype', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.poll-bar {
    width: 100%;
    height: 0.25rem;
    background: #e5e5e5;
    margin-bottom: 0.25rem;
    overflow: hidden;
    border-radius: 2px;
}

.poll-fill {
    height: 100%;
    background: #cccccc;
    border-radius: 0 2px 2px 0;
    width: 0%;
}

.poll-fill.chosen {
    background: #5a8a5a;
}



/* Controls */
.controls {
    margin-top: 2.5rem; /* Push down "Make Your Selection" */
    margin-bottom: 1rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.continue-button {
    color: #ffffff;
    background: #000000;
    border: 1px solid #000000;
    padding: 0.5rem 1rem;
    font-family: 'Diatype', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0;
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: relative;
    transition: all 0.6s ease;
}

.continue-button.show {
    opacity: 1;
}

.continue-button.continue-fade-in {
    opacity: 0;
    transform: translateY(15px) translateZ(0);
}

.continue-button:hover {
    background: #333333;
    border-color: #333333;
}

.selection-prompt {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #636363;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-prompt.show {
    opacity: 1;
}


/* Mobile Responsive Design */
@media (max-width: 800px) {
    body {
        height: 100dvh;
    }
    
    .container {
        padding: 4rem 0.25rem 1rem 0.25rem;
        min-height: 100dvh;
        height: auto;
    }
    
    .header {
        margin-bottom: 0.125rem;
    }
    
    .title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.3;
    }
    
    .battle-container {
        display: grid;
        grid-template-rows: auto auto auto;
        grid-template-columns: 1fr;
        gap: 0;
        min-height: calc(100dvh - 6rem);
        position: relative;
        align-items: start;
    }
    
    .option-section {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 0.25rem;
    }
    
    .option-section:first-child {
        grid-row: 1;
    }
    
    .option-section:last-child {
        grid-row: 3;
    }
    
    .option-label {
        height: 1.5rem;
        flex-shrink: 0;
        margin-bottom: 0.25rem;
    }
    
    .furniture-card {
        flex-direction: row;
        height: 280px;
        width: 100%;
        flex: none;
        position: relative;
        overflow: hidden;
    }
    
    .card-image-container {
        width: 65%;
        border-right: 1px solid #e5e5e5;
        border-bottom: none;
    }
    
    .card-content {
        width: 35%;
        padding: 0.75rem 0.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    
    .card-info {
        margin-bottom: 0.5rem;
    }
    
    .card-title {
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }
    
    .card-designer {
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .card-description {
        font-size: 0.75rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .card-materials {
        font-size: 0.65rem;
        font-weight: 500;
        color: #999999;
        margin-bottom: 0.25rem;
        line-height: 1.2;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
    
    .card-link {
        font-size: 0.7rem;
        font-weight: 500;
        margin-top: 0;
    }

    /* Mobile dual-image styles */
    .image-indicators {
        bottom: 8px;
        gap: 5px;
        z-index: 1; /* Below poll-results so bars appear on top */
    }

    .image-indicators .indicator {
        width: 5px;
        height: 5px;
    }

    /* Swipe hint animation for mobile - elegant arrow */
    .card-image-container.has-dual-images::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
        opacity: 0;
        animation: swipeArrow 2s ease-in-out 0.8s 2;
        z-index: 5;
        pointer-events: none;
    }

    .card-image-container.has-dual-images.showing-secondary::before {
        right: auto;
        left: 12px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    @keyframes swipeArrow {
        0%, 100% { opacity: 0; transform: translateY(-50%) translateX(0); }
        15%, 85% { opacity: 0.9; }
        50% { transform: translateY(-50%) translateX(-4px); }
    }

    .vs-divider {
        grid-row: 2;
        width: 60px;
        height: 3rem;
        min-height: 3rem;
        gap: 0.125rem;
        z-index: 1;
        background: transparent;
        border-radius: 0;
        padding: 0;
        margin: 0.6rem 0; /* Vertical spacing between cards */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        justify-self: center;
        flex-shrink: 0;
        position: relative;
    }

    .vs-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        width: 50px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .vs-badge.countdown {
        font-size: 0.8rem;
    }
    
    .continue-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .ponder-message {
        font-size: 0.6rem;
        max-width: 120px;
        height: 1.5rem;
        margin-top: 0.125rem;
        color: #636363;
        background: none;
    }
    
    
    .controls {
        margin-top: 0; /* Reset desktop margin */
        margin-bottom: 0.25rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .poll-results {
        position: absolute;
        bottom: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2.5rem;
        width: auto;
        z-index: 2;
        margin-top: 0;
    }

    .poll-content {
        padding: 0.1875rem;
        height: 100%;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .poll-content.chosen {
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .winner-emoji {
        font-size: 4rem;
    }
    
    .winner-card {
        padding: 1.5rem;
    }
    
    .winner-name {
        font-size: 1rem;
    }
    
    .start-card {
        padding: 2rem;
    }
    
    .start-title {
        font-size: 1.5rem;
    }
    
    .start-subtitle {
        font-size: 0.875rem;
    }
    
    .disclaimer {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 4rem 0.125rem 1rem 0.125rem;
        min-height: 100dvh;
        height: auto;
    }
    
    .header {
        margin-bottom: 0.0625rem;
    }
    
    .title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.3;
    }
    
    .battle-container {
        grid-template-rows: auto auto auto;
        gap: 0;
        min-height: calc(100dvh - 6rem);
    }
    
    .furniture-card {
        height: 260px;
        width: 100%;
    }
    
    .card-image-container {
        width: 70%;
    }

    .card-emoji {
        /* Let JavaScript control object-position for per-product customization */
    }

    .card-emoji img {
        /* Let JavaScript control object-position for per-product customization */
    }

    .card-content {
        width: 30%;
        padding: 0.5rem 0.375rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    
    .card-info {
        margin-bottom: 0.4rem;
    }
    
    .card-title {
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }
    
    .card-designer {
        font-size: 0.7rem;
        font-weight: 500;
        margin-bottom: 0;
        line-height: 1.2;
    }
    
    .card-description {
        font-size: 0.65rem;
        font-weight: 400;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .card-materials {
        font-size: 0.6rem;
        font-weight: 500;
        color: #999999;
        margin-bottom: 0.2rem;
        line-height: 1.1;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
    
    .card-link {
        font-size: 0.6rem;
        font-weight: 500;
        margin-top: 0;
    }
    
    .vs-divider {
        grid-row: 2;
        width: 50px;
        height: 3rem;
        min-height: 3rem;
        gap: 0.0625rem;
        z-index: 1;
        background: transparent;
        border-radius: 0;
        padding: 0;
        margin: 0.6rem 0; /* Vertical spacing between cards */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        justify-self: center;
        flex-shrink: 0;
        position: relative;
    }

    .vs-badge {
        padding: 0.1875rem 0.375rem;
        font-size: 0.6rem;
        width: 40px;
        height: 28px;
        flex-shrink: 0;
    }

    .vs-badge.countdown {
        font-size: 0.7rem;
    }

    .continue-button {
        padding: 0.1875rem 0.375rem;
        font-size: 0.6rem;
    }

    .ponder-message {
        font-size: 0.55rem;
        max-width: 120px;
        height: 1.5rem;
        margin-top: 0.125rem;
        color: #636363;
        background: none;
    }
    
    .poll-results {
        position: absolute;
        bottom: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2.5rem;
        width: auto;
        z-index: 2;
        margin-top: 0;
    }
    
    .poll-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .poll-content.chosen {
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .winner-emoji {
        font-size: 3rem;
    }
    
    .winner-card {
        padding: 1rem;
        /* Additional Chrome iOS fixes */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    .winner-image-container {
        margin-bottom: 1.5rem;
        max-width: 16rem;
        width: 16rem;
        height: 16rem;
        min-height: 16rem;
        flex-shrink: 0;
        /* iPhone Safari & Chrome iOS specific fixes */
        position: relative;
        z-index: 1;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        contain: size layout style paint;
    }
    
    .winner-info {
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
        /* Ensure text is above image on iPhone */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .winner-name {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .winner-title {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .winner-designer {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .winner-materials {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .start-card {
        padding: 1.5rem;
    }
    
    .start-title {
        font-size: 1.25rem;
    }
    
    .start-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .disclaimer {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .disclaimer p {
        font-size: 0.8rem;
    }
    
    .play-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Preview Mode Styles */
.preview-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 4rem;
}

.preview-header {
    display: none;
}

.preview-title {
    font-family: 'Diatype', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.preview-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #636363;
    margin-bottom: 1.5rem;
}

.preview-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.preview-button {
    font-family: 'Diatype', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-button:hover {
    background: #000000;
    color: #ffffff;
}

.preview-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.preview-row {
    display: flex;
    gap: min(2vw, 3rem);
    align-items: stretch;
    justify-content: center;
}

.preview-row .furniture-card {
    width: min(40vw, 600px);
    min-width: 350px;
    flex-shrink: 0;
    cursor: default;
}

.preview-grid .furniture-card:hover {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile styles for preview mode */
@media (max-width: 800px) {
    .preview-grid {
        gap: 2rem;
        padding: 1rem;
    }
    
    .preview-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preview-row .furniture-card {
        width: unset;
        min-width: unset;
    }
    
    /* furniture-card mobile styles automatically apply to .preview-row .furniture-card */
}

@media (max-width: 600px) {
    .preview-grid {
        padding: 0.5rem;
        gap: 1.5rem;
    }
    
    .preview-row {
        gap: 0.75rem;
    }
    
    /* furniture-card mobile styles automatically apply to .preview-row .furniture-card */
}