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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Pixelify Sans', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 3em;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    margin-bottom: 10px;
    animation: headerFloat 3s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% {
        transform: translateY(0px);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: translateY(-10px);
        text-shadow: 0 0 40px rgba(255, 215, 0, 1),
                     0 0 80px rgba(255, 215, 0, 0.6),
                     0 0 120px rgba(255, 215, 0, 0.3);
    }
}

.game-subtitle {
    font-size: 1.1em;
    color: rgba(255, 215, 0, 0.7);
    margin-bottom: 15px;
    animation: subtitlePulse 2.5s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.back-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateX(-5px);
}

/* Collapsible Navigation */
.collapsible-nav {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.collapsible-nav.hidden {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
}

.collapsible-nav .nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 20px 12px 12px;
    border-radius: 0 50px 50px 0;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 50px;
    cursor: pointer;
}

.collapsible-nav .nav-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.collapsible-nav .nav-text {
    position: relative;
    font-weight: 700;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}

.collapsible-nav.expanded .nav-text,
.collapsible-nav .nav-button:hover .nav-text {
    max-width: 250px;
    opacity: 1;
    animation: scrollText 8s ease-in-out infinite;
}

@keyframes scrollText {
    0%, 20% {
        transform: translateX(0);
    }
    80%, 100% {
        transform: translateX(calc(-100% + 200px));
    }
}

.collapsible-nav .nav-button:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .collapsible-nav {
        top: auto;
        bottom: 20px;
        left: 10px;
        transform: none;
    }

    .collapsible-nav.hidden {
        transform: translateX(-100%);
    }

    .collapsible-nav .nav-button {
        padding: 10px 15px 10px 10px;
        font-size: 0.9em;
    }

    .collapsible-nav .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
}

/* Stage Progress Indicator */
.stage-progress {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease-out;
}

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

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.stage-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.stage-item.completed {
    opacity: 0.7;
}

.stage-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.stage-item.active .stage-number {
    background: rgba(255, 215, 0, 0.8);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    color: #000;
    animation: stagePulse 2s ease-in-out infinite;
}

@keyframes stagePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9),
                    0 0 50px rgba(255, 215, 0, 0.5);
    }
}

.stage-item.completed .stage-number {
    background: rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

.stage-item.incubation .stage-number {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
}

.stage-item.incubation.active .stage-number {
    background: rgba(138, 43, 226, 0.8);
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    animation: incubationPulse 2s ease-in-out infinite;
}

@keyframes incubationPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.9),
                    0 0 50px rgba(138, 43, 226, 0.5);
    }
}

.stage-label {
    font-size: 0.7em;
    text-align: center;
    max-width: 80px;
}

/* Game Container */
#game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    animation: containerBreathe 3s ease-in-out infinite, fadeSlideUp 0.8s ease-out 0.3s backwards;
}

@keyframes containerBreathe {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), 0 0 80px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.5);
    }
}

.stage-content h2 {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: titleFloat 2s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: translateY(-5px);
        text-shadow: 0 5px 20px rgba(255, 215, 0, 0.8);
    }
}

.stage-description {
    font-size: 0.95em;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    font-style: italic;
}

/* Challenge Card */
.challenge-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    animation: cardBreathe 4s ease-in-out infinite, fadeSlideUp 0.6s ease-out 0.5s backwards;
}

@keyframes cardBreathe {
    0%, 100% {
        background: rgba(255, 215, 0, 0.1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }
    50% {
        background: rgba(255, 215, 0, 0.15);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.challenge-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffd700;
}

.challenge-text ul {
    margin-left: 20px;
    margin-top: 10px;
}

.challenge-text li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Problem Formulation */
.problem-formulation {
    margin: 30px 0;
}

.problem-formulation h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffd700;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.checkbox-option input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option span {
    flex: 1;
    line-height: 1.5;
}

/* Knowledge Grid */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.knowledge-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeSlideUp 0.5s ease-out backwards;
}

.knowledge-card:nth-child(1) { animation-delay: 0.6s; }
.knowledge-card:nth-child(2) { animation-delay: 0.7s; }
.knowledge-card:nth-child(3) { animation-delay: 0.8s; }
.knowledge-card:nth-child(4) { animation-delay: 0.9s; }
.knowledge-card:nth-child(5) { animation-delay: 1.0s; }
.knowledge-card:nth-child(6) { animation-delay: 1.1s; }

.knowledge-card:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3),
                0 0 40px rgba(255, 215, 0, 0.4),
                0 0 60px rgba(255, 215, 0, 0.2);
}

.knowledge-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffd700;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.knowledge-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.knowledge-full {
    margin-top: 15px;
    line-height: 1.6;
}

.knowledge-full ul {
    margin-left: 15px;
}

.knowledge-full li {
    margin: 8px 0;
}

.knowledge-full blockquote {
    border-left: 3px solid rgba(255, 215, 0, 0.5);
    padding-left: 15px;
    margin: 10px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.knowledge-notes {
    margin: 30px 0;
}

.knowledge-notes h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ffd700;
}

.knowledge-notes textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.95em;
    resize: vertical;
}

/* Information Sources */
.info-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-source {
    cursor: pointer;
}

.info-source input[type="checkbox"] {
    display: none;
}

.source-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.source-card {
    animation: fadeSlideUp 0.4s ease-out backwards;
}

.info-source:nth-child(1) .source-card { animation-delay: 0.5s; }
.info-source:nth-child(2) .source-card { animation-delay: 0.6s; }
.info-source:nth-child(3) .source-card { animation-delay: 0.7s; }
.info-source:nth-child(4) .source-card { animation-delay: 0.8s; }
.info-source:nth-child(5) .source-card { animation-delay: 0.9s; }
.info-source:nth-child(6) .source-card { animation-delay: 1.0s; }

.info-source:hover .source-card {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.info-source input[type="checkbox"]:checked + .source-card {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: selectedPulse 1.5s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                    0 0 50px rgba(255, 215, 0, 0.4);
    }
}

.source-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        filter: drop-shadow(0 8px 15px rgba(255, 215, 0, 0.7));
    }
}

.source-name {
    font-size: 0.9em;
    display: block;
}

.brainstorm-board {
    margin: 30px 0;
}

.brainstorm-board h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ffd700;
}

.brainstorm-board textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.95em;
    resize: vertical;
}

/* Incubation Stage */
.incubation-stage {
    text-align: center;
}

.incubation-explanation {
    margin: 30px 0;
}

.incubation-explanation h3 {
    font-size: 1.5em;
    color: #ffd700;
    margin-bottom: 20px;
}

.theory-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theory-card {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.theory-card h4 {
    font-size: 1.1em;
    color: #d8b4fe;
    margin-bottom: 10px;
}

.theory-card p {
    font-size: 0.9em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.incubation-timer {
    margin: 40px 0;
}

.brain-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.brain {
    font-size: 6em;
    animation: pulse 2s ease-in-out infinite;
}

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

.thought-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    font-size: 1.5em;
    animation: float 3s ease-in-out infinite;
}

.bubble:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.timer-display {
    font-size: 3em;
    color: #ffd700;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.timer-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: rgba(138, 43, 226, 0.6);
    color: #fff;
    border: 2px solid #8a2be2;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    background: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

/* Idea Generator */
.idea-generator {
    margin: 30px 0;
}

.timer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.timer-bar span {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: bold;
}

.timer-bar button {
    padding: 10px 25px;
    font-size: 1em;
    background: rgba(255, 215, 0, 0.6);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.timer-bar button:hover {
    background: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.idea-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.idea-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.idea-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1em;
}

.idea-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.add-idea-btn {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-idea-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.idea-count {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    color: #ffd700;
}

.post-incubation-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background: rgba(138, 43, 226, 0.3);
    border-radius: 5px;
    font-size: 0.9em;
}

/* Combination Zone */
.idea-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.idea-chip {
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    cursor: grab;
    transition: all 0.3s ease;
}

.idea-chip:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.idea-chip:active {
    cursor: grabbing;
}

.combination-area {
    margin: 30px 0;
    text-align: center;
}

.drop-zone {
    min-height: 150px;
    padding: 30px;
    background: rgba(138, 43, 226, 0.1);
    border: 3px dashed rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    margin-bottom: 20px;
}

.drop-zone.drag-over {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
}

.dropped-ideas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.combine-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    background: rgba(138, 43, 226, 0.6);
    color: #fff;
    border: 2px solid #8a2be2;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.combine-btn:hover {
    background: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.combined-concepts h4 {
    margin: 30px 0 15px;
    color: #ffd700;
}

.concept-description {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.95em;
    resize: vertical;
}

/* Evaluation Matrix */
.evaluation-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.evaluation-table th,
.evaluation-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.evaluation-table th {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: bold;
}

.evaluation-table tbody tr {
    background: rgba(0, 0, 0, 0.2);
}

.evaluation-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.score-slider {
    width: 100%;
    cursor: pointer;
}

.weighted-score {
    font-weight: bold;
    color: #ffd700;
}

.evaluation-table tfoot {
    background: rgba(255, 215, 0, 0.1);
    font-size: 1.1em;
}

/* Product Pitch */
.pitch-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1em;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.finalize-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 165, 0, 0.6));
    color: #000;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto;
}

.finalize-btn:hover {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Results Screen */
.results-screen {
    text-align: center;
}

.results-screen h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.final-product-card {
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.final-product-card h3 {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    font-style: italic;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 20px;
}

.product-details {
    text-align: left;
    line-height: 1.8;
}

.creativity-breakdown {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.creativity-breakdown h3 {
    font-size: 1.5em;
    color: #ffd700;
    margin-bottom: 20px;
}

.process-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.metric-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.metric-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffd700;
}

.sawyer-reflection {
    text-align: left;
    margin-top: 30px;
}

.sawyer-reflection h4 {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 15px;
}

.sawyer-reflection ol {
    margin-left: 20px;
    line-height: 2;
}

/* Game Comparison */
.game-comparison {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.game-comparison h3 {
    font-size: 1.5em;
    color: #d8b4fe;
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.game-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.game-card.highlight {
    border-color: rgba(138, 43, 226, 0.6);
    background: rgba(138, 43, 226, 0.1);
}

.game-card h4 {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 15px;
}

.game-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.comparison-note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.restart-btn,
.back-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.restart-btn {
    background: rgba(255, 215, 0, 0.6);
    color: #000;
    border: 2px solid #ffd700;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

.restart-btn:hover {
    background: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                0 0 40px rgba(255, 215, 0, 0.6),
                0 0 60px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
    animation: none;
}

.back-btn {
    background: rgba(138, 43, 226, 0.6);
    color: #fff;
    border: 2px solid #8a2be2;
}

.back-btn:hover {
    background: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6),
                0 0 40px rgba(138, 43, 226, 0.4),
                0 0 60px rgba(138, 43, 226, 0.2);
    transform: scale(1.05);
}

/* Next Stage Button */
.next-stage-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    background: rgba(255, 215, 0, 0.6);
    color: #000;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    animation: buttonPulse 2s ease-in-out infinite;
}

.next-stage-btn:hover {
    background: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                0 0 50px rgba(255, 215, 0, 0.6),
                0 0 80px rgba(255, 215, 0, 0.4);
    transform: scale(1.08);
    animation: none;
}

/* Collaboration Section */
.collaboration-section {
    animation: fadeSlideUp 0.8s ease-out 0.5s backwards;
}

.collaboration-section h3 {
    animation: titleFloat 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(216, 180, 254, 0.6);
}

@keyframes bonusPulse {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

.collab-glow-btn {
    animation: collabButtonGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.collab-glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    animation: rotateGlow 3s linear infinite;
    z-index: 0;
}

.collab-glow-btn * {
    position: relative;
    z-index: 1;
}

@keyframes collabButtonGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.5),
                    0 0 30px rgba(138, 43, 226, 0.3);
        border-color: #8a2be2;
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.8),
                    0 0 60px rgba(138, 43, 226, 0.5),
                    0 0 90px rgba(138, 43, 226, 0.3);
        border-color: #d8b4fe;
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.collab-glow-btn:hover {
    background: rgba(138, 43, 226, 0.8) !important;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 0 40px rgba(138, 43, 226, 1),
                0 0 80px rgba(138, 43, 226, 0.7),
                0 0 120px rgba(138, 43, 226, 0.4) !important;
    animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2em;
    }
    
    #game-container {
        padding: 20px;
    }
    
    .stage-progress {
        gap: 8px;
    }
    
    .stage-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .stage-label {
        font-size: 0.6em;
    }
    
    .knowledge-grid,
    .info-sources {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}
