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

:root {
    --red: #C0392B;
    --red-light: #FADBD8;
    --red-dark: #922B21;
    --charcoal: #1C1C1E;
    --off-white: #F5F0EB;
    --border: rgba(0, 0, 0, 0.12);
    --text: #1C1C1E;
    --text-muted: #555
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #F0EBE3;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden
}

video {
    object-fit: fill;
    max-width: 400px;
    margin-bottom: 1.25rem;
}

.screen {
    display: none;
    min-height: 100vh;
    flex-direction: column
}

.screen.active {
    display: flex
}

/* LANDING */
#landing {
    background: var(--charcoal);
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden
}

#landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(192, 57, 43, .25) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(192, 57, 43, .15) 0%, transparent 50%)
}

.landing-inner {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 720px
}

.ribbon {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 20px;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%)
}

.landing-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 10vw, 92px);
    color: white;
    line-height: .95;
    letter-spacing: 1px;
    margin-bottom: .5rem
}

.landing-title span {
    color: var(--red)
}

.landing-sub {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(17px, 3vw, 22px);
    color: rgba(255, 255, 255, .65);
    margin-bottom: 2.5rem;
    line-height: 1.4
}

.landing-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

.btn-primary {
    background: var(--red);
    color: white;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: all .2s;
    border-radius: 2px
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px)
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, .4);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 14px 32px;
    cursor: pointer;
    transition: all .2s;
    border-radius: 2px
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, .08)
}

.landing-tags {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap
}

.disease-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55)
}

.disease-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center
}

.disease-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 6px 16px;
    letter-spacing: .3px;
    transition: all .2s
}

.disease-tag:hover {
    background: rgba(255, 255, 255, .12);
    color: white;
    border-color: rgba(255, 255, 255, .25)
}

.disease-tag.coming-soon {
    color: rgba(212, 160, 96, .7);
    border-color: rgba(212, 160, 96, .25);
    background: rgba(212, 160, 96, .07);
    font-style: italic
}

/* FACILITATOR */
#facilitator {
    background: #F0EBE3;
}

.fac-header {
    background: var(--charcoal);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--red);
    flex-wrap: wrap;
    gap: .75rem
}

.fac-header-left {
    display: flex;
    align-items: center;
    gap: 1rem
}

.fac-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px
}

.fac-logo span {
    color: var(--red)
}

.badge {
    background: var(--red);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px
}

.fac-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}

.timer-display {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: white;
    background: rgba(255, 255, 255, .1);
    padding: 4px 16px;
    border-radius: 2px;
    min-width: 90px;
    text-align: center
}

.timer-display.running {
    color: #5DCAA5
}

.timer-display.warning {
    color: #EF9F27;
    animation: pulse 1s infinite
}

@media print {
    #facilitator {
        background: #FFF;
    }

    .fac-header {
        padding: .75rem 1.25rem;
        gap: .5rem
    }

    .fac-header-left {
        gap: 0.75rem
    }

    .fac-logo {
        font-size: 18px;
    }

    .badge {
        font-size: 12px;
    }

    .fac-header-right {
        gap: 0.75rem;
    }

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

@media (prefers-reduced-motion: no-preference) {
    @keyframes pulse {
        0%, 100% {
            opacity: 1
        }
        50% {
            opacity: .6
        }
    }
}

.btn-sm {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    transition: all .15s
}

.btn-sm:hover {
    background: rgba(255, 255, 255, .1)
}

.btn-sm.red {
    border-color: var(--red);
    color: var(--red)
}

.fac-body {
    display: grid;
    grid-template-columns:290px 1fr;
    flex: 1;
    min-height: 0
}

@media (max-width: 768px) {
    .fac-body {
        grid-template-columns:1fr
    }
}

.fac-sidebar {
    background: white;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto
}

.sidebar-section {
    margin-bottom: 2rem
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border)
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all .15s;
    border: 1.5px solid transparent
}

.phase-item:hover {
    background: var(--off-white)
}

.phase-item.active {
    background: var(--red-light);
    border-color: var(--red)
}

.phase-item.done {
    opacity: .55
}

.phase-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0
}

.phase-item.active .phase-num {
    background: var(--red);
    color: white
}

.phase-item.done .phase-num {
    background: #5DCAA5;
    color: white
}

.phase-name {
    font-size: 16px;
    font-weight: 500
}

.phase-duration {
    font-size: 14px;
    color: var(--text-muted)
}

.participant-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 6px
}

.p-chip {
    background: var(--off-white);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid transparent
}

.p-chip:hover {
    border-color: var(--red)
}

.p-chip.assigned {
    border-color: #5DCAA5;
    background: #EAF3DE
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0
}

.p-chip.assigned .p-dot {
    background: #5DCAA5
}

.fac-main {
    padding: 1.5rem;
    overflow-y: auto
}

.phase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap
}

.phase-title-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--charcoal);
    line-height: 1
}

.phase-meta {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 4px
}

.action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.btn-advance {
    background: var(--red);
    color: white;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 2px;
    transition: all .15s;
    white-space: nowrap
}

.btn-advance:hover {
    background: var(--red-dark)
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap
}

.content-cards {
    display: grid;
    gap: 1rem
}

.content-card {
    background: white;
    border-radius: 4px;
    padding: 1.25rem;
    border: 1px solid var(--border)
}

.content-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0
}

.card-title {
    font-weight: 600;
    font-size: 16px
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted)
}

.content-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted)
}

.prompt-list {
    list-style: none
}

.prompt-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--off-white);
    font-size: 16px;
    line-height: 1.5;
    align-items: flex-start
}

.prompt-list li:last-child {
    border-bottom: none
}

.prompt-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--red);
    line-height: 1;
    flex-shrink: 0;
    min-width: 20px
}

.tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2px;
    margin: 2px
}

.tag-red {
    background: var(--red-light);
    color: var(--red-dark)
}

.tag-green {
    background: #EAF3DE;
    color: #3B6D11
}

.tag-blue {
    background: #E6F1FB;
    color: #185FA5
}

.tag-amber {
    background: #FAEEDA;
    color: #854F0B
}

.tag-purple {
    background: #EEEDFE;
    color: #3C3489
}

.progress-bar-track {
    height: 3px;
    background: rgba(0, 0, 0, .08);
    width: 100%
}

.progress-bar-fill {
    height: 100%;
    background: var(--red);
    transition: width .5s
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0
}

/* PARTICIPANT */
#participant {
    background: var(--charcoal)
}

.part-header {
    background: var(--charcoal);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.part-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: white;
    letter-spacing: 1px
}

.part-logo span {
    color: var(--red)
}

.part-phase-badge {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7)
}

.part-body {
    flex: 1;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    max-width: 880px;
    margin: 0 auto;
    width: 100%
}

.profile-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem
}

.profile-banner {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 3px solid rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: white;
    flex-shrink: 0
}

.profile-name-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    color: white;
    line-height: 1
}

.profile-role-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, .82);
    margin-top: 3px;
    text-transform: uppercase
}

.profile-body {
    padding: 1.25rem
}

.profile-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem
}

.profile-field label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px
}

.profile-field span {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
    display: block
}

.key-tension {
    background: #FFF8F7;
    border-left: 3px solid var(--red);
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    margin-top: 1rem;
    font-size: 16px;
    line-height: 1.6
}

.core-thought {
    background: var(--charcoal);
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 10px;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 16px;
    color: rgba(255, 255, 255, .85)
}

.sdoh-tags {
    margin-top: 1rem
}

.sdoh-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px
}

.reflection-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem
}

.reflection-prompt {
    font-family: 'DM Sans', serif;
    font-style: italic;
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1rem;
    line-height: 1.5
}

.reflection-input {
    width: 100%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    color: white;
    border-radius: 4px;
    padding: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    resize: vertical;
    min-height: 70px
}

.reflection-input::placeholder {
    color: rgba(255, 255, 255, .5)
}

.reflection-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .6)
}

.nav-back {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 6px
}

.nav-back:hover {
    color: white
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(10px)
        }
        to {
            opacity: 1;
            transform: translateY(0)
        }
    }
}

.fade-in {
    animation: fadeUp .5s ease forwards
}

/* SIM SCREEN */
#sim-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #1a1008;
    flex-direction: column;
    overflow: hidden;
    display: none
}

#sim-screen.active {
    display: flex
}

#scene-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.scene-transition {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: #0a0806;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s
}

/* Film grain overlay */
#sim-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: .6
}

/* Vignette */
#sim-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, .65) 100%);
    pointer-events: none
}

/* Letterbox bars */
.letterbox-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5vh;
    background: #000;
    z-index: 8
}

.letterbox-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5vh;
    background: #000;
    z-index: 8
}

/* HUD */
.sim-hud {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5vh
}

.hud-profile {
    display: flex;
    align-items: center;
    gap: 10px
}

.hud-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .25)
}

.hud-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, .9);
    letter-spacing: 1px;
    line-height: 1
}

.hud-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase
}


.hud-stats {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap
}

.stat-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px
}

.stat-bar-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .75);
    display: flex;
    justify-content: space-between;
    font-weight: 600
}

.stat-bar-track {
    height: 7px;
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
    overflow: hidden
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .8s ease
}

.stat-dst {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all .5s;
    display: inline-block;
    margin-top: 3px;
    border: 1px solid transparent
}

.health-fill {
    background: linear-gradient(90deg, #c0392b, #f39c12, #27ae60)
}

.money-fill {
    background: linear-gradient(90deg, #c0392b, #f39c12, #27ae60)
}

.stress-fill {
    background: linear-gradient(90deg, #27ae60, #f39c12, #c0392b)
}

/* Scene location tag */
.scene-location {
    position: relative;
    z-index: 20;
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.scene-tag-text {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif
}

.scene-time-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
    letter-spacing: 2px
}

/* Character portrait */
#char-portrait {
    position: absolute;
    top: 38vh;
    left: 8px;
    z-index: 15;
    width: 110px;
    pointer-events: none;
    transition: opacity .7s, transform .7s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px
}

#char-portrait.hidden {
    opacity: 0;
    transform: translateY(-16px)
}

.char-portrait-label {
    text-align: center;
    color: rgba(245, 232, 208, .85);
    line-height: 1.3;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.8))
}

.char-portrait-label-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: .5px
}

.char-portrait-label-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(245, 232, 208, .55)
}

/* Evidence prop */
#evidence-prop {
    position: absolute;
    bottom: 5vh;
    right: 8px;
    z-index: 15;
    pointer-events: none;
    transition: opacity .6s, transform .6s;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .8));
    transform: scale(1.5);
    transform-origin: bottom right
}

#evidence-prop.hidden {
    opacity: 0;
    transform: translateY(12px) scale(1.41)
}

/* Main content */
.sim-content {
    position: relative;
    z-index: 20;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 12px;
    overflow-y: auto;
    justify-content: flex-start;
    max-width: 720px;
    margin: 0 auto;
    width: 100%
}

/* Narrative */
.narrative-box {
    background: rgba(8, 5, 2, .85);
    border: 1px solid rgba(255, 220, 150, .08);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 10px;
    backdrop-filter: blur(8px)
}

.narrative-day {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 220, 150, .5);
    margin-bottom: 2px;
    padding-top: 6px
}

.narrative-scene-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #d4a060;
    margin-bottom: 5px;
    font-weight: 600
}

.narrative-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #f5e8d0;
    letter-spacing: .5px;
    margin-bottom: 8px
}

.narrative-body {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(245, 232, 208, .82)
}

/* Timer */
.decision-timer-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
    gap: 10px
}

.decision-timer-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 220, 150, .4);
    white-space: nowrap
}

.decision-timer-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    color: #f5e8d0;
    transition: color .3s;
    min-width: 46px;
    text-align: right
}

.decision-timer-num.urgent {
    color: #E74C3C;
    animation: timerPulse .5s infinite
}

.pause-play-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(245,232,208,.7);
    font-size: 10px;
    width: 32px;
    height: 26px;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    text-align: center
}

.pause-play-btn:hover {
    border-color: rgba(255,255,255,.5);
    color: #f5e8d0
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes timerPulse {
        0%, 100% {
            transform: scale(1)
        }
        50% {
            transform: scale(1.1)
        }
    }
}

.timer-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden
}

.timer-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s linear, background .5s;
    background: #d4a060
}

.timer-bar-fill.half {
    background: #E67E22
}

.timer-bar-fill.urgent {
    background: #E74C3C
}

/* Decision buttons */
.decision-options {
    display: grid;
    gap: 7px
}

.decision-btn {
    background: rgba(20, 12, 5, .8);
    border: 1px solid rgba(255, 220, 150, .15);
    color: #f0e0c0;
    text-align: left;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.5;
    width: 100%;
    backdrop-filter: blur(4px)
}

.decision-btn:hover:not(:disabled) {
    background: rgba(40, 25, 10, .9);
    border-color: rgba(255, 220, 150, .35);
    transform: translateX(3px)
}

.decision-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.decision-btn.chosen-positive {
    background: rgb(8, 5, 2);
    border-color: #5DCAA5;
    border-width: 2px;
    color: rgb(245, 232, 208)
}

.decision-btn.chosen-negative {
    background: rgb(8, 5, 2);
    border-color: #c0392b;
    border-width: 2px;
    color: rgb(245, 232, 208)
}

.decision-btn.auto-chosen {
    background: rgb(8, 5, 2);
    border-color: #c0392b;
    border-width: 2px;
    color: rgb(245, 232, 208)
}

.outcome-msg {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.65
}

.outcome-msg.positive {
    background: rgb(19, 47, 27);
    color: #8dd8a8;
    border-left: 2px solid #5DCAA5
}

.outcome-msg.negative {
    background: rgb(41, 26, 15);
    color: #e8a090;
    border-left: 2px solid #c0392b
}

.station-track {
    display: flex;
    gap: 5px;
    margin-bottom: 10px
}

.station-pip {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1)
}

.station-pip.done {
    background: #c0392b
}

.station-pip.active {
    background: #d4a060
}

.timeout-msg {
    background: rgb(39, 19, 17);
    border: 1px solid rgba(192, 57, 43, .4);
    border-radius: 4px;
    padding: 10px 14px;
    color: #e8a090;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px
}

/* INTERRUPTION MODAL */
.interruption-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem
}

.interruption-card {
    background: #1a1208;
    border: 1.5px solid rgba(255, 220, 150, .22);
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: slideUp .3s ease;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .9)
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0
        }
        to {
            transform: translateY(0);
            opacity: 1
        }
    }
}

.interruption-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.interruption-icon {
    font-size: 30px
}

.interruption-source {
    font-size: 14px;
    color: rgba(255, 220, 150, .55);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600
}

.interruption-sender {
    font-size: 19px;
    font-weight: 600;
    color: #f5e8d0
}

.interruption-body {
    padding: 18px 20px;
    font-size: 16px;
    color: rgba(245, 232, 208, .85);
    line-height: 1.75
}

.interruption-actions {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.int-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: background .15s
}

.int-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .35)
}

.int-btn:first-child:hover {
    background: rgba(255, 255, 255, .04)
}

.int-btn:last-child {
    color: #d4a060
}

.int-btn:last-child:hover {
    background: rgba(212, 160, 96, .08)
}

/* TOASTS */
.notif-container {
    position: fixed;
    top: 125px;
    right: 12px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
    width: 100%;
    pointer-events: none
}

.notif-toast {
    background: rgba(15, 10, 5, .97);
    border: 1.5px solid rgba(255, 220, 150, .2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastIn .35s ease;
    pointer-events: all;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .85)
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes toastIn {
        from {
            transform: translateX(110%);
            opacity: 0
        }
        to {
            transform: translateX(0);
            opacity: 1
        }
    }
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes toastOut {
        from {
            opacity: 1;
            transform: translateX(0)
        }
        to {
            opacity: 0;
            transform: translateX(110%)
        }
    }
}

.notif-toast.leaving {
    animation: toastOut .3s ease forwards
}

.notif-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0
}

.notif-app {
    font-size: 14px;
    color: rgba(255, 220, 150, .5);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: .5px
}

.notif-msg {
    font-size: 16px;
    color: #f0e0c0;
    line-height: 1.5
}

.notif-time {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    flex-shrink: 0;
    margin-top: 2px
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes redFlash {
        0% {
            opacity: 0
        }
        25% {
            opacity: .45
        }
        100% {
            opacity: 0
        }
    }
}

.flash-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: #8b1a0a;
    pointer-events: none;
    animation: redFlash .8s ease forwards
}

/* DEMO MODE BANNER */
.demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #c0392b, #922B21);
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.demo-banner span {
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
    padding: 1px 8px;
    font-size: 11px
}

body.demo-mode {
    padding-top: 28px
}

/* ANIMATED SCENE ENTER */
@media (prefers-reduced-motion: no-preference) {
    @keyframes sceneFadeIn {
        from {
            opacity: 0;
            transform: scale(1.03)
        }
        to {
            opacity: 1;
            transform: scale(1)
        }
    }
}

#scene-canvas {
    animation: sceneFadeIn .8s ease forwards
}

/* PULSE RING on avatar when low health */
@media (prefers-reduced-motion: no-preference) {
    @keyframes pulseRing {
        0% {
            box-shadow: 0 0 0 0 rgba(192, 57, 43, .6)
        }
        70% {
            box-shadow: 0 0 0 12px rgba(192, 57, 43, 0)
        }
        100% {
            box-shadow: 0 0 0 0 rgba(192, 57, 43, 0)
        }
    }
}

.hud-avatar.danger {
    animation: pulseRing 1.2s infinite
}

/* STAT BAR SHAKE when dropping */
@media (prefers-reduced-motion: no-preference) {
    @keyframes barShake {
        0%, 100% {
            transform: translateX(0)
        }
        20%, 60% {
            transform: translateX(-3px)
        }
        40%, 80% {
            transform: translateX(3px)
        }
    }
}

.stat-bar-fill.drop {
    animation: barShake .4s ease
}

/* CINEMATIC TITLE CARD */
.scene-title-card {
    position: absolute;
    inset: 120px 0 0 0;
    z-index: 30;
    display: flex;
    align-items: start;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s
}

.scene-title-card.show {
    opacity: 1
}

.scene-title-inner {
    text-align: center;
    background: rgba(8, 5, 2, .85);
    border: 1px solid rgba(255, 220, 150, .08);
    border-radius: 6px;
    padding: 20px;
}

.scene-title-label {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(212, 160, 96, .6);
    margin-bottom: 8px
}

.scene-title-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    color: #f5e8d0;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .8)
}

/* PROFILE SPOTLIGHT animation on demo assign */
@media (prefers-reduced-motion: no-preference) {
    @keyframes spotlight {
        0% {
            opacity: 0;
            transform: translateY(20px) scale(.95)
        }
        60% {
            transform: translateY(-4px) scale(1.02)
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1)
        }
    }
}

.profile-spotlight {
    animation: spotlight .6s ease forwards
}

/* DEMO 15-min badge */
.demo-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(192, 57, 43, .15);
    border: 1px solid rgba(192, 57, 43, .4);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    color: #e8a090;
    margin-bottom: 1rem
}

/* PROGRESS PULSE when near end */
@media (prefers-reduced-motion: no-preference) {
    @keyframes progressPulse {
        0%, 100% {
            opacity: 1
        }
        50% {
            opacity: .6
        }
    }
}

.progress-bar-fill.near-end {
    animation: progressPulse .8s infinite;
    background: var(--red)
}

/* HEARTBEAT on low health hud number */
@media (prefers-reduced-motion: no-preference) {
    @keyframes heartbeat {
        0%, 100% {
            transform: scale(1)
        }
        14% {
            transform: scale(1.15)
        }
        28% {
            transform: scale(1)
        }
        42% {
            transform: scale(1.1)
        }
        70% {
            transform: scale(1)
        }
    }
}

.health-critical {
    animation: heartbeat 1.3s infinite;
    color: #e74c3c !important
}
