/* ===========================
   CTM Personal Edition Styles
   =========================== */

:root {
    /* Harness Intelligence Brand Colors */
    --hi-orange: #F26522;
    --hi-orange-dark: #d95419;
    --hi-yellow: #F2B840;
    --hi-blue: #1C75BC;
    --hi-green: #6CBE45;
    --hi-red: #C32034;
    --hi-light-blue: #1B9ED1;
    --hi-dark-gray: #7A797A;
    --hi-light-gray: #BBBCBB;

    /* Semantic Colors */
    --primary: #F26522;
    --primary-dark: #d95419;
    --secondary: #1C75BC;
    --success: #6CBE45;
    --error: #C32034;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300; /* Roboto Light */
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--hi-orange) 0%, var(--hi-blue) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===========================
   Login Overlay
   =========================== */

.login-overlay {
    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: 9999;
}

.login-container {
    background: white;
    padding: 2rem 3rem 3rem 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.login-machine-image {
    margin: -2rem -3rem 1.5rem -3rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, var(--hi-orange), var(--hi-yellow));
}

.login-machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.95;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.login-header h2 {
    font-family: 'Droid Serif', serif;
    font-size: 1.75rem;
    margin: 0;
    color: var(--hi-orange);
}

.login-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

.login-header p {
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.login-header p:last-of-type {
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.login-form button {
    width: 100%;
    padding: 1rem;
    background: var(--hi-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-form button:hover {
    background: var(--hi-orange-dark);
    transform: translateY(-2px);
}

.login-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff5f5;
    color: var(--error);
    border-radius: 6px;
    font-size: 0.875rem;
}

.login-loading {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ===========================
   Header
   =========================== */

.header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ctm-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ctm-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

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

.ctm-text h1 {
    font-family: 'Droid Serif', serif;
    font-size: 2rem;
    color: var(--hi-orange);
    margin: 0;
    line-height: 1.2;
}

.ctm-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.temporal-indicator {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid var(--hi-blue);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(28, 117, 188, 0.2);
}

.time-label {
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.9375rem;
    white-space: nowrap;
}

/* ===========================
   Pages
   =========================== */

.page {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    min-height: 600px;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.page h2 {
    font-family: 'Droid Serif', serif;
    color: var(--hi-orange);
}

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

/* ===========================
   Welcome Page
   =========================== */

.welcome-hero {
    margin: -3rem -3rem 3rem -3rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, var(--hi-orange), var(--hi-blue));
}

.hero-content {
    padding: 3rem 2rem 3rem 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float-subtle 6s ease-in-out infinite;
}

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

.welcome-hero h2 {
    font-family: 'Droid Serif', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.welcome-hero .tagline {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.time-travel-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.year-marker {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.year-marker.start {
    opacity: 0.8;
}

.year-marker.end {
    background: rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite;
}

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

.travel-arrow {
    font-weight: normal;
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ===========================
   Time Machine Rules
   =========================== */

.time-machine-rules {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    border: 2px solid var(--hi-yellow);
}

.time-machine-rules h3 {
    font-family: 'Droid Serif', serif;
    color: #7f4a00;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rule-card {
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.rule-card:hover {
    border-color: var(--hi-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 184, 64, 0.3);
}

.rule-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.rule-card p {
    margin: 0;
    color: #7f4a00;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.intro-section {
    margin-bottom: 3rem;
}

.intro-section h3 {
    font-family: 'Droid Serif', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--hi-orange);
}

.intro-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.journey-steps {
    margin-bottom: 3rem;
}

.journey-steps h3 {
    font-family: 'Droid Serif', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--hi-orange);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.step-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.step-card h4 {
    font-family: 'Droid Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--hi-orange);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.cta-section {
    text-align: center;
    margin: 3rem 0;
}

.primary-button {
    padding: 1.25rem 3rem;
    background: var(--hi-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4);
}

.primary-button:hover {
    background: var(--hi-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.5);
}

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

.note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.note p {
    color: #92400e;
    font-size: 0.9375rem;
    margin: 0;
}

/* ===========================
   Temporal Stage Headers
   =========================== */

.stage-temporal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.temporal-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-in;
}

.temporal-badge.present {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border: 2px solid var(--hi-blue);
}

.temporal-badge.transition {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #7f4a00;
    border: 2px solid var(--hi-yellow);
    animation: pulse 2s ease-in-out infinite, fadeIn 0.5s ease-in;
}

.temporal-badge.future {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #880e4f;
    border: 2px solid var(--hi-red);
    animation: glow 2s ease-in-out infinite, fadeIn 0.5s ease-in;
}

.temporal-badge.return {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border: 2px solid var(--hi-green);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .page {
        padding: 2rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ctm-icon {
        width: 48px;
        height: 48px;
    }

    .ctm-text h1 {
        font-size: 1.5rem;
    }

    .temporal-indicator {
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    .time-label {
        font-size: 0.8125rem;
    }

    .welcome-hero {
        margin: -2rem -1.5rem 2rem -1.5rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .hero-image {
        min-height: 300px;
        padding: 1rem 1.5rem 2rem 1.5rem;
    }

    .hero-image img {
        max-width: 100%;
    }

    .welcome-hero h2 {
        font-size: 1.75rem;
    }

    .welcome-hero .tagline {
        font-size: 1.125rem;
    }

    .time-travel-indicator {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .travel-arrow {
        transform: rotate(90deg);
    }

    .login-machine-image {
        height: 150px;
        margin: -2rem -1.5rem 1rem -1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .time-machine-rules {
        padding: 1.5rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .primary-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }

    .temporal-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .member-basic-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-remove-member {
        align-self: flex-start;
    }
}

/* ===========================
   Stage Navigation
   =========================== */

.stage-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    flex-wrap: wrap;
}

.stage-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 80px;
}

.stage-nav-item:hover {
    background: var(--bg-light);
}

.stage-nav-item.active {
    background: var(--hi-orange);
    color: white;
}

.stage-nav-item.active .stage-num {
    background: rgba(255, 255, 255, 0.3);
}

.stage-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.stage-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* ===========================
   Identity Selection
   =========================== */

.instruction {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.team-input-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 16px;
    border: 3px solid var(--hi-blue);
    box-shadow: 0 8px 24px rgba(28, 117, 188, 0.2);
}

.team-name-input,
.functional-role-input {
    margin-bottom: 2rem;
}

.team-name-input:last-child,
.functional-role-input:last-child {
    margin-bottom: 0;
}

.team-name-input label,
.functional-role-input label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hi-blue);
    margin-bottom: 0.75rem;
}

.team-name-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--hi-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.team-name-input input:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
    transform: scale(1.01);
}

.functional-role-input select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--hi-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.functional-role-input select:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

/* Team Members Section */
.team-members-section {
    margin-top: 2rem;
}

.team-members-section label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hi-blue);
    margin-bottom: 1rem;
}

#team-members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member-card {
    background: white;
    border: 2px solid var(--hi-blue);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}

.member-basic-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
}

.member-superpower-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.superpower-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hi-orange);
}

.team-member-card .member-superpower {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem;
    border: 2px solid var(--hi-orange);
    border-radius: 6px;
    background: linear-gradient(135deg, #fff9f0, #ffedd5);
    resize: vertical;
    min-height: 60px;
}

.team-member-card .member-superpower:focus {
    outline: none;
    border-color: var(--hi-orange-dark);
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.1);
}

.superpower-count {
    text-align: right;
    font-size: 0.8125rem;
    color: #999;
}

/* Team Name Section */
.team-name-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.team-name-section label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hi-orange);
    margin-bottom: 1rem;
}

.team-name-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.team-name-idea-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 3px solid var(--hi-blue);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.team-name-idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(28, 117, 188, 0.2);
    border-color: var(--hi-blue);
}

.team-name-idea-card.selected {
    background: linear-gradient(135deg, var(--hi-blue), var(--hi-orange));
    border-color: var(--hi-orange-dark);
    color: white;
}

.team-member-card input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.team-member-card input:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.1);
}

.team-member-card select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.team-member-card select:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.1);
}

.btn-remove-member {
    padding: 0.5rem 1rem;
    background: var(--hi-red);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-remove-member:hover {
    background: #a01828;
    transform: scale(1.05);
}

.team-composition {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--hi-green);
}

.team-composition h4 {
    font-family: 'Droid Serif', serif;
    color: var(--hi-green);
    margin: 0 0 1rem 0;
}

#team-composition-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-member-summary {
    padding: 0.75rem;
    background: rgba(108, 190, 69, 0.1);
    border-radius: 6px;
    font-size: 0.95rem;
}

.team-member-summary strong {
    color: var(--hi-green);
}

/* ===========================
   Loading States
   =========================== */

.loading-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 16px;
    border: 3px solid var(--hi-yellow);
    margin: 2rem 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 6px solid rgba(242, 184, 64, 0.2);
    border-top-color: var(--hi-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.125rem;
    color: var(--hi-orange);
    font-weight: 500;
    margin: 0;
}

/* ===========================
   Challenge Scenarios
   =========================== */

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.challenge-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
    border-color: var(--hi-orange);
}

.challenge-card.selected {
    background: linear-gradient(135deg, rgba(242, 101, 34, 0.15), rgba(242, 184, 64, 0.15));
    border-color: var(--hi-orange);
    box-shadow: 0 8px 24px rgba(242, 101, 34, 0.4);
    font-weight: 500;
}

.challenge-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--hi-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.custom-challenge-section {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: #fffbeb;
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.custom-challenge-section h3 {
    color: #92400e;
    margin-bottom: 1rem;
}

.custom-challenge-input textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.custom-challenge-input textarea:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

/* ===========================
   Input Sections
   =========================== */

.input-section {
    margin: 2rem 0;
}

.input-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.input-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

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

.char-count {
    text-align: right;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===========================
   Dream Selection
   =========================== */

#suggested-dreams-section {
    margin-bottom: 3rem;
}

#suggested-dreams-section h3 {
    font-family: 'Droid Serif', serif;
    color: var(--hi-orange);
    margin-bottom: 1rem;
}

#identity-label {
    font-style: italic;
    color: var(--hi-blue);
}

.dream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.dream-card {
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dream-card::before {
    content: '✨';
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.dream-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--hi-orange);
}

.dream-card:hover::before {
    transform: scale(1.2);
}

.dream-card.selected {
    background: linear-gradient(135deg, rgba(242, 101, 34, 0.15), rgba(242, 184, 64, 0.15));
    border-color: var(--hi-orange);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
    font-weight: 500;
}

.dream-card.selected::before {
    content: '⭐';
    transform: scale(1.3);
}

.custom-dreams-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fffbeb;
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.custom-dreams-section h3 {
    color: #92400e;
    margin-bottom: 1.5rem;
}

.custom-dream-input {
    margin-bottom: 1.5rem;
}

.custom-dream-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #78350f;
}

.custom-dream-input textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
    background: white;
}

.custom-dream-input textarea:focus {
    outline: none;
    border-color: var(--hi-yellow);
    box-shadow: 0 0 0 3px rgba(242, 184, 64, 0.1);
}

.dream-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--success);
}

.dream-summary h3 {
    font-family: 'Droid Serif', serif;
    color: var(--hi-orange);
    margin-bottom: 1rem;
}

.dream-summary ul {
    list-style: none;
    padding: 0;
}

.dream-summary li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--hi-orange);
}

.dream-summary li::before {
    content: '✨ ';
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ===========================
   Magic Wand Vision
   =========================== */

.magic-wand-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.magic-wand-field {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 12px;
    border: 2px solid var(--hi-red);
    box-shadow: 0 4px 12px rgba(195, 32, 52, 0.1);
    transition: all 0.3s;
}

.magic-wand-field:hover {
    box-shadow: 0 6px 20px rgba(195, 32, 52, 0.15);
}

.magic-wand-field label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hi-red);
    margin-bottom: 0.75rem;
}

.magic-wand-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--hi-red);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.magic-wand-field textarea:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.magic-wand-field textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9375rem;
}

.magic-wand-field .char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ===========================
   Leadership Moments
   =========================== */

.leadership-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leadership-field {
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    border: 2px solid var(--hi-blue);
    box-shadow: 0 4px 12px rgba(28, 117, 188, 0.1);
    transition: all 0.3s;
}

.leadership-field:hover {
    box-shadow: 0 6px 20px rgba(28, 117, 188, 0.15);
}

.leadership-field label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hi-blue);
    margin-bottom: 0.75rem;
}

.leadership-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--hi-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.leadership-field textarea:focus {
    outline: none;
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.leadership-field textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9375rem;
}

.leadership-field .char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ===========================
   Artifact from Our Future
   =========================== */

.artifact-container {
    margin: 2rem 0;
}

.artifact-prompt {
    padding: 2rem;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    border: 3px solid var(--hi-orange);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.15);
}

.artifact-prompt label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hi-orange);
    margin-bottom: 1rem;
}

.artifact-prompt textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--hi-orange);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.artifact-prompt textarea:focus {
    outline: none;
    border-color: var(--hi-red);
    box-shadow: 0 0 0 3px rgba(195, 32, 52, 0.1);
}

.artifact-prompt textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9375rem;
}

.artifact-prompt .char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ===========================
   Reality Check (Legacy - can be removed)
   =========================== */

.reality-check-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.reality-prompt {
    padding: 1.75rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s;
}

.reality-prompt.excitement {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: var(--hi-green);
}

.reality-prompt.concerns {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-color: var(--hi-yellow);
}

.reality-prompt.tradeoffs {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-color: var(--hi-red);
}

.reality-prompt label {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.reality-prompt.excitement label {
    color: #0d4619;
}

.reality-prompt.concerns label {
    color: #92400e;
}

.reality-prompt.tradeoffs label {
    color: #7f1d1d;
}

.reality-prompt textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.reality-prompt.excitement textarea {
    border-color: var(--hi-green);
}

.reality-prompt.concerns textarea {
    border-color: var(--hi-yellow);
}

.reality-prompt.tradeoffs textarea {
    border-color: var(--hi-red);
}

.reality-prompt textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: scale(1.01);
}

.reality-prompt.excitement textarea:focus {
    border-color: var(--hi-green);
    box-shadow: 0 0 0 3px rgba(107, 190, 69, 0.2);
}

.reality-prompt.concerns textarea:focus {
    border-color: var(--hi-orange);
    box-shadow: 0 0 0 3px rgba(242, 184, 64, 0.2);
}

.reality-prompt.tradeoffs textarea:focus {
    border-color: var(--hi-red);
    box-shadow: 0 0 0 3px rgba(195, 32, 52, 0.2);
}

.reality-prompt textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* ===========================
   Action Commitments
   =========================== */

.action-commitments-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.action-prompt {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s;
}

.action-prompt.immediate {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: var(--hi-green);
}

.action-prompt.learning {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: var(--hi-blue);
}

.action-prompt label {
    display: block;
    font-family: 'Droid Serif', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.action-prompt.immediate label {
    color: #0d4619;
}

.action-prompt.learning label {
    color: #0d3d6b;
}

.action-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.action-prompt textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.action-prompt.immediate textarea {
    border-color: var(--hi-green);
}

.action-prompt.learning textarea {
    border-color: var(--hi-blue);
}

.action-prompt textarea:focus {
    outline: none;
    transform: scale(1.01);
}

.action-prompt.immediate textarea:focus {
    border-color: var(--hi-green);
    box-shadow: 0 0 0 3px rgba(107, 190, 69, 0.2);
}

.action-prompt.learning textarea:focus {
    border-color: var(--hi-blue);
    box-shadow: 0 0 0 3px rgba(28, 117, 188, 0.2);
}

.action-prompt textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.875rem;
}

/* ===========================
   Technology Selection
   =========================== */

.tech-selection-counter {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    border: 2px solid var(--hi-yellow);
}

#tech-counter-display {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hi-orange);
}

.tech-category {
    margin-bottom: 3rem;
}

.tech-category-header {
    font-family: 'Droid Serif', serif;
    font-size: 1.5rem;
    color: var(--hi-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--hi-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.tech-card {
    padding: 1.25rem;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(242, 184, 64, 0.3);
    border-color: var(--hi-yellow);
}

.tech-card.selected {
    background: linear-gradient(135deg, rgba(242, 184, 64, 0.15), rgba(242, 101, 34, 0.15));
    border-color: var(--hi-orange);
    box-shadow: 0 8px 24px rgba(242, 101, 34, 0.4);
}

.tech-card.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.tech-card-question {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--hi-blue);
    line-height: 1.4;
}

.tech-card-name {
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    color: var(--hi-orange);
    font-weight: 700;
}

.tech-card-description {
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.tech-card-capabilities {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.tech-card-capabilities li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.tech-card-capabilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--hi-green);
    font-weight: bold;
}

.tech-card-example {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(107, 190, 69, 0.1);
    border-left: 3px solid var(--hi-green);
    border-radius: 6px;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-dark);
}

.tech-card-example::before {
    content: '💡 ';
    font-style: normal;
}

.tech-card.selected::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: var(--hi-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===========================
   Discussion Prompts
   =========================== */

.discussion-prompt {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid var(--hi-green);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.prompt-icon {
    font-size: 2rem;
    margin: 0;
    flex-shrink: 0;
}

.prompt-text {
    margin: 0;
    color: #1b5e20;
    line-height: 1.6;
    font-size: 1rem;
}

.prompt-text strong {
    color: #0d4619;
    font-size: 1.125rem;
}

/* ===========================
   Stage Actions
   =========================== */

.stage-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.stage-actions button {
    flex: 1;
}

.secondary-button {
    padding: 1rem 2rem;
    background: white;
    color: var(--hi-orange);
    border: 2px solid var(--hi-orange);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: var(--hi-orange);
    color: white;
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.primary-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4);
}

/* ===========================
   Responsive - Stage Additions
   =========================== */

@media (max-width: 768px) {
    .stage-nav {
        gap: 0.25rem;
        padding: 1rem 0.5rem;
    }

    .stage-nav-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .stage-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .stage-name {
        font-size: 0.625rem;
    }

    .identity-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dream-grid {
        grid-template-columns: 1fr;
    }

    .discussion-prompt {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .prompt-icon {
        font-size: 1.5rem;
    }

    .stage-actions {
        flex-direction: column;
    }

    .secondary-button,
    .primary-button {
        width: 100%;
    }
}

/* ===========================
   Trend Analysis
   =========================== */

.trends-categorization {
    margin: 2rem 0;
}

.trends-uncategorized {
    margin-bottom: 2rem;
}

.trends-uncategorized h3 {
    font-family: 'Droid Serif', serif;
    color: var(--hi-blue);
    margin-bottom: 1rem;
}

.trends-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.trend-card {
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--hi-blue);
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.trend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.trend-card h4 {
    font-family: 'Droid Serif', serif;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.trend-card p {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
    flex-grow: 1;
}

.trend-card-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.trend-btn {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.trend-btn.booster {
    border-color: var(--hi-green);
    color: var(--hi-green);
}

.trend-btn.booster:hover,
.trend-btn.booster.active {
    background: var(--hi-green);
    color: white;
}

.trend-btn.blocker {
    border-color: var(--hi-red);
    color: var(--hi-red);
}

.trend-btn.blocker:hover,
.trend-btn.blocker.active {
    background: var(--hi-red);
    color: white;
}

.trend-btn.neutral {
    border-color: #666;
    color: #666;
}

.trend-btn.neutral:hover,
.trend-btn.neutral.active {
    background: #333;
    color: white;
    border-color: #333;
}

.trend-card.categorized {
    opacity: 0.6;
}

.trend-card.categorized-booster {
    border-color: var(--hi-green);
    background: rgba(108, 190, 69, 0.1);
}

.trend-card.categorized-blocker {
    border-color: var(--hi-red);
    background: rgba(195, 32, 52, 0.1);
}

.trend-card.categorized-neutral {
    border-color: var(--text-gray);
    background: rgba(128, 128, 128, 0.1);
}

/* Summary section showing categorization progress */
.trends-summary {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(28, 117, 188, 0.05);
    border-radius: 8px;
}

.summary-category {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
}

.summary-category.booster {
    background: rgba(108, 190, 69, 0.1);
    border: 2px solid var(--hi-green);
}

.summary-category.blocker {
    background: rgba(195, 32, 52, 0.1);
    border: 2px solid var(--hi-red);
}

.summary-category.neutral {
    background: rgba(128, 128, 128, 0.1);
    border: 2px solid var(--text-gray);
}

.summary-category h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.summary-category .count {
    font-size: 1.5rem;
    font-weight: bold;
}

.summary-category.booster .count {
    color: var(--hi-green);
}

.summary-category.blocker .count {
    color: var(--hi-red);
}

.summary-category.neutral .count {
    color: var(--text-gray);
}
/* ===========================
   Artifact Idea Cards
   =========================== */

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

.artifact-idea-card {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 3px solid var(--hi-orange);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.artifact-idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(242, 101, 34, 0.2);
    border-color: var(--hi-orange-dark);
}

.artifact-idea-card.selected {
    background: linear-gradient(135deg, #F26522, #F2B840);
    border-color: var(--hi-orange-dark);
    color: white;
}

.artifact-idea-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--hi-orange);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.artifact-idea-card.selected .artifact-idea-number {
    background: white;
    color: var(--hi-orange);
}

.artifact-idea-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding-right: 2.5rem;
}

.story-narrative {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border: 3px solid var(--hi-red);
    border-radius: 12px;
    padding: 2rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.story-narrative p {
    margin-bottom: 1rem;
}

.story-narrative p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Time Travel Interstitial
   =========================== */

.time-travel-interstitial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 117, 188, 0.95), rgba(242, 101, 34, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in;
}

.time-travel-interstitial.fadeout {
    animation: fadeOut 0.5s ease-out forwards;
}

.interstitial-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.interstitial-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.interstitial-title {
    font-family: 'Droid Serif', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.interstitial-message {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.interstitial-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loading 3s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.time-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.time-particles::before,
.time-particles::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float-particle 4s ease-in-out infinite;
}

.time-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.time-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

@keyframes loading {
    from {
        width: 0;
        transform: translateX(0);
    }
    to {
        width: 100%;
        transform: translateX(0);
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

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

@media (max-width: 768px) {
    .interstitial-icon {
        font-size: 3.5rem;
    }

    .interstitial-title {
        font-size: 1.75rem;
    }

    .interstitial-message {
        font-size: 1rem;
    }
}
