* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #222;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 100;
}

.logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Shopify Container */
.shopify-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    padding: 20px;
}

#product-component-1772131504141 {
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-component-1772131504141 iframe,
#product-component-1772131504141 > div {
    margin: 0 auto !important;
}

/* Canvas for Shapes */
#shapes-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    cursor: grab;
}

#shapes-canvas:active {
    cursor: grabbing;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .home-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .home-btn span {
        display: none;
    }

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

    .logo-section {
        padding: 70px 15px 30px;
    }

    .logo {
        max-width: 350px;
    }

    .shopify-placeholder {
        font-size: 14px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 280px;
    }

    .shopify-container {
        margin: 10px;
        padding: 10px;
    }
}

/* Halftone shape styles */
.shape-3d {
    filter: url(#halftone);
}

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

/* Game UI */
.game-ui {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #222;
}

.game-header {
    display: flex;
    gap: 30px;
    align-items: center;
}

.timer-display,
.game-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.timer-label,
.score-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
}

.timer-display span:last-child {
    font-size: 32px;
    font-weight: bold;
    color: #FF0000;
}

.game-score span:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

/* 3D Bucket Container - Full screen overlay */
.bucket-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
}

#bucket-canvas {
    width: 100%;
    height: 100%;
}

.bucket-labels {
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.bucket-label {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #222;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.yellow-label {
    border-color: #CCCC00;
    background: rgba(255, 255, 0, 0.2);
}

.cube-label {
    border-color: #0066FF;
    background: rgba(0, 102, 255, 0.1);
}

/* Game Prompt */
.game-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.prompt-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.prompt-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.prompt-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.rules-list {
    margin: 25px 0;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
}

.rule-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.rule-color.yellow {
    background: #FFFF00;
    border: 2px solid #CCCC00;
}

.rule-color.blue {
    background: #0066FF;
    border: 2px solid #0044CC;
}

.start-btn {
    background: linear-gradient(135deg, #4CBB17, #3A9213);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(76, 187, 23, 0.4);
}

/* Discount Popup - Abstract Rhombus Design */
.discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.rhombus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes floatIn {
    0% { 
        transform: translateY(100px) rotate(-45deg) scale(0);
        opacity: 0;
    }
    100% { 
        transform: translateY(0) rotate(0) scale(1);
        opacity: 1;
    }
}

.rhombus-shape {
    width: 280px;
    height: 280px;
    position: relative;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: rhombusPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.slice {
    position: absolute;
    width: 50%;
    height: 50%;
}

.slice-top {
    top: 0;
    left: 0;
    background: #FF0000;
}

.slice-right {
    top: 0;
    right: 0;
    background: #FFFF00;
}

.slice-bottom {
    bottom: 0;
    right: 0;
    background: #0000FF;
}

.slice-left {
    bottom: 0;
    left: 0;
    background: #4CBB17;
}

@keyframes rhombusPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 4px rgba(255, 255, 255, 0.3),
            0 30px 60px rgba(0, 0, 0, 0.5),
            inset 0 0 80px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 0 8px rgba(255, 255, 255, 0.5),
            0 40px 80px rgba(0, 0, 0, 0.6),
            inset 0 0 100px rgba(255, 255, 255, 0.2);
    }
}

.rhombus-inner {
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-reveal {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: #000;
    font-weight: 900;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.discount-code-img {
    max-width: 220px;
    height: auto;
    margin-top: 8px;
}

.discount-code {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    letter-spacing: 6px;
    font-family: 'Courier New', monospace;
    user-select: all;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
    margin: 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.discount-code:hover {
    transform: scale(1.05);
}

.close-btn-minimal {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn-minimal:hover {
    opacity: 0.8;
}

.tap-img {
    max-width: 400px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.close-btn-minimal:hover .tap-img {
    opacity: 1;
}

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

/* Mobile responsive for game elements */
@media (max-width: 768px) {
    .game-ui {
        top: 70px;
        padding: 10px 20px;
        gap: 15px;
    }

    .timer-display {
        font-size: 18px;
    }

    .game-score {
        font-size: 14px;
    }

    .sorting-zones {
        gap: 20px;
        bottom: 10px;
    }

    .sort-zone {
        width: 120px;
        height: 120px;
    }

    .zone-label {
        font-size: 14px;
    }

    .zone-icon {
        font-size: 30px;
    }

    .prompt-content {
        padding: 30px;
        margin: 20px;
    }

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

    .rhombus-shape {
        width: 200px;
        height: 200px;
    }

    .discount-code {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .code-label {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .close-btn-minimal {
        font-size: 10px;
        padding: 10px 20px;
    }

    .bucket-container {
        top: 0;
        height: 100%;
    }

    .bucket-labels {
        top: 35%;
        padding: 0 10px;
    }

    .bucket-label {
        font-size: 11px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
}
