/* ===== YOUR CSS GOES HERE ===== */
/* ===== START BY IMPORTING YOUR FONTS ===== */ 
/* ===== NEXT WRITE GLOBAL STYLES, THEN USE MEDIA QUERIES FOR LAYOUT/STYLE ADJUSTMENTS ===== */
/* ===== STARTER CSS BELOW FOR body AND p IS JUST AN EXAMPLE... YOU MAY DELETE IT ===== */

/* Color palette:
    Midnight Blue    #060934  (page background)
    Soft White       #F0EDE6  (primary text)
    Dusty Lavender   #A091B8  (secondary text)
    Mist Blue        #C3D4E6  (tertiary text)
    Spotlight Yellow #FDDC43  (accent / highlight)
    Steel Indigo     #505992  (surface 1 / selected)
    Deep Navy        #0d1148  (surface 2 / cards)
    Dark Navy        #0a0d30  (surface 3 / deeper cards)
    Ink Navy         #040720  (topbar / sidebar)
    Border Dim       #1a1d4a  (default borders)           */


@import url('https://fonts.googleapis.com/css2?family=Bayon&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

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

html {
    font-size: 18px;
}

body {
    background: #060934;
    color: #F0EDE6;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.app {
     min-height: 100vh;
}



/*Screen Switching*/
.screen {
    display: none;
    padding-top: 3rem; /* Account for fixed topbar */
}
.screen.active {
    display: block;
}




/*   ------------------   TOP BAR   -----------------   */
.topbar{
    background: #040720;
    border-bottom: 1px solid #1a1d4a;
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;;
}

.nav-title{
    font-family: 'Bayon', sans-serif;
    font-size: 1.2rem;
    color: #FDDC43;
    cursor: pointer;
    user-select: none;
}

.nav{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-btn{
    font-family: 'Courier Prime', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    border: 1px solid #1a1d4a;
    color: #505992;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.nav-btn:hover {
    border-color: #505992;
    color: #F0EDE6;
}

.nav-btn.active {
    border-color: #FDDC43;
    color: #FDDC43;
}





/*   ------------------   HOME   -----------------   */

.home{
    min-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-main{
    padding: 3.5rem 7%;
    display: flex;
    flex-direction: column;
    gap:0;
}

.home-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: #8a90c8;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home-title{
    font-family: 'Bayon', sans-serif;
    font-size: 7rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: #FDDC43;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.home-tagline {
    font-size: 1rem;
    color: #C3D4E6;
    max-width: 80ch;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.home-buttons{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-btn1{
    font-family: 'Bayon', sans-serif;
     font-size: 1rem;
     letter-spacing: 0.12em;
     background: #FDDC43;
     color: #060934;
     border: none;
     padding: 0.8rem 2.2rem;
     border-radius: 4px;
      cursor: pointer;
     transition: background 0.2s, transform 0.15s;
}
.home-btn1:hover{
    background: #fff;
    transform: translateY(-1px);
}

.home-btn2{
    font-family: 'Bayon', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
     background: none;
     color: #F0EDE6;
     border: 1px solid #505992;
     padding: 0.8rem 2.2rem;
     border-radius: 4px;
     cursor: pointer;
     transition: border-color 0.2s, color 0.2s;
}
.home-btn2:hover{
     border-color: #FDDC43;
    color: #FDDC43;
}

.cta-btn {
    font-family: 'Bayon', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    background: #FDDC43;
    color: #060934;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}


/* TICKET BUTTON*/
.ticket-btn {
    font-family: 'Bayon', sans-serif;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    position: relative;
    border: none;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    padding: 0;

    -webkit-mask:
        radial-gradient(circle at 0% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 100% 50%, transparent 10px, black 10px);
    -webkit-mask-composite: destination-in;
    mask:
        radial-gradient(circle at 0% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 100% 50%, transparent 10px, black 10px);
    mask-composite: intersect;
}

.ticket-label {
    padding: 0.85rem 1.5rem 0.85rem 2rem;
    flex: 1;
}

.ticket-arrow {
    padding: 0.85rem 1.5rem 0.85rem 1rem;
    position: relative;
    flex-shrink: 0;
}

.ticket-arrow::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        currentColor 0px,
        currentColor 4px,
        transparent 4px,
        transparent 8px
    );
    opacity: 0.4;
}

.ticket-btn::after {
    display: none;
}

.ticket-btn-primary {
    background: #FDDC43;
    color: #060934;
}
.ticket-btn-primary:hover {
    background: #fff;
    color: #060934;
}

.ticket-btn-ghost {
    background: #2a2e60;
    color: #FDDC43;
    outline-offset: -2px;
}
.ticket-btn-ghost:hover {
    background: #FDDC43;
    color: #060934;
}






/*   ------------------   LEARN   -----------------   */
/*BG*/
#learn, #results, #about{
    background-image: url('../images/learn-bg.png');
    background-repeat: repeat;
    background-size: auto;
    background-attachment: local;
    position: relative;
}

#learn::before, #results::before, #about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 52, 0.82);
    pointer-events: none;
    z-index: 0;
}

#learn > *, #results > *, #about > * {
    position: relative;
    z-index: 1;
}

/*hero*/
.hero{
    padding: 3rem 17%;
}

.hero-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: #FDDC43;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title{
    font-family: 'Bayon', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: #FDDC43;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-body {
    font-size: 1rem;
    color: #C3D4E6;
    max-width: 1200px;
    line-height: 1.8;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 30%;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        #FDDC43 0px,
        #FDDC43 2px,
        transparent 2px,
        transparent 8px
    );
    background-color: transparent;
}

.divider-icon {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    flex-shrink: 0;
}

/*main content*/
.body1, .body2, .body3, .body4, .body5, .body6 {
    padding: 2.3rem 17%;
    border-bottom: #1a1d4a 1px solid;
}

.sec-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: #8a90c8;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.sec-title{
    font-family: 'Bayon', sans-serif;
    font-size: 1.6rem;
    color: #F0EDE6;
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
}

.sec-body{
    font-size: 1rem;
    color: #C3D4E6;
    line-height: 1.85;
    max-width: 85ch;
}

mark{
    background: none;
    color: #FDDC43;
    cursor: pointer;
    border-bottom: #FDDC43 1px dashed;
    transition: color 0.3s, border-color 0.3s;
}
mark:hover {
    color: #A091B8;
    border-color: #A091B8;
}

/*Role Card*/
.role-hierarchy {
    width: 100%;
    max-width: 580px;
    min-width: 420px;
    margin-top: 2rem;
    opacity: 0.95;
}

.role-grids {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.role-grids::-webkit-scrollbar {
    display: none;
}
.role-grids {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.role-card {
    background: #0d1148;
    border: #1a1d4a 1px solid;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.role-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: #8a90c8;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.role-name{
    font-size: 1.25rem;
    color: #C3D4E6;
    margin-bottom: 0.5rem;
}

.role-desc{
    font-size: 0.9rem;
    color: #A091B8;
    line-height: 1.4;
}


/*Stages*/
.stage-title{
    font-family: 'Bayon', sans-serif;
    font-size: 1.4rem;
    color: #F0EDE6;
    letter-spacing: 0.04em;
    padding: 1rem 0 0;
    cursor: pointer;
    transition: color 0.3s;
}

.arrow {
    font-size: 0.8em; /* Shrink the arrow */
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.stage-title:hover {
    color: #FDDC43;
}

.stage-title.expanded {
    color: #FDDC43;
}

.stage-desc {
    font-size: 1rem;
    color: #1a1d4a;
    line-height: 1.85;
    padding: 1.2rem 1.8rem;
    background: rgba(253, 220, 67, 0.9);
    display: none;
    margin-top: 1rem;
    margin-left: 1.9rem;

    -webkit-mask:
        radial-gradient(circle at 0% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 100% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 0% 0%, transparent 6px, black 6px),
        radial-gradient(circle at 100% 0%, transparent 6px, black 6px),
        radial-gradient(circle at 0% 100%, transparent 6px, black 6px),
        radial-gradient(circle at 100% 100%, transparent 6px, black 6px);
    -webkit-mask-composite: destination-in;
    mask:
        radial-gradient(circle at 0% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 100% 50%, transparent 10px, black 10px),
        radial-gradient(circle at 0% 0%, transparent 6px, black 6px),
        radial-gradient(circle at 100% 0%, transparent 6px, black 6px),
        radial-gradient(circle at 0% 100%, transparent 6px, black 6px),
        radial-gradient(circle at 100% 100%, transparent 6px, black 6px);
    mask-composite: intersect;
}

.stage-desc.expanded {
    display: block;
}

.stage-desc mark {
    color: #E24B4A;
    border-bottom: 1px dashed #E24B4A;
}
.stage-desc mark:hover {
    color: #A091B8;
    border-bottom-color: #A091B8;
}

/*Budget*/
.budget-grids{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.budget-card{
    background: #0a0d30;
    border: #1a1d4a 1px solid;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.budget-tier{
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: #8a90c8;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.budget-range{
    font-size: 1.25rem;
    color: #C3D4E6;
    margin-bottom: 0.5rem;
}

.range-micro {
    color: #A091B8;
}
.range-low {
    color: #C3D4E6;
}
.range-mid {
    color: #FDDC43;
}
.range-studio {
    color: #4EC990;
}
.range-blockbuster {
    color: #F06060;
}

.budget-desc{
    font-size: 0.9rem;
    color: #A091B8;
    line-height: 1.4;
}

.budget-eg{
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    margin-top: 0.5rem;
    border-top: 1px solid #252860;
    padding-top: 0.5rem;
}

.budget-eg a {
    color: #C3D4E6;
    text-decoration: none;
    border-bottom: 1px solid #505992;
    transition: color 0.2s, border-color 0.2s;
}

.budget-eg a:hover {
    color: #FDDC43;
    border-bottom-color: #FDDC43;
}


/*Tool*/
.tool-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.tool-table thead tr {
    border-bottom: 1px solid #505992;
}

.tool-table th {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.5rem 0.5rem 0;
    text-align: left;
    font-weight: 400;
}

.tool-table tbody tr {
    border-bottom: 1px solid #1a1d4a;
    transition: background 0.15s;
}

.tool-table tbody tr:hover {
    background: rgba(80, 89, 146, 0.15);
}

.tool-table td {
    padding: 0.7rem 1.5rem 0.7rem 0;
    vertical-align: middle;
    color: #C3D4E6;
    line-height: 1.6;
}

.tool-name-cell {
    font-family: 'Bayon', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #F0EDE6;
    width: 160px;
    vertical-align: middle;
}

.tool-name-cell mark {
    font-family: 'Bayon', sans-serif;
    font-size: 1rem;
    border-bottom: none;
}

.tool-table .tool-type-cell {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: #8a90c8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    width: 80px;
    vertical-align: middle;
}


/*Myth*/
.myth-grids{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.myth-card{
    background: #0d1148;
    border: #1a1d4a 1px solid;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.myth-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    font-weight: 300;
    color: #F06060;
    margin-bottom: 0.4rem;
}

.myth-desc{
    font-size: 0.9rem;
    color: #A091B8;
    line-height: 1.4;
    border-top: 1px solid #252860;
    padding-top: 0.5rem;
}


/*cta*/
.cta-bar{
    padding: 2.3rem 17%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cta-text{
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    font-weight: 300;
    color: #A091B8;
}


/*Tooltip*/
.tooltip {
  position: fixed;
  background: #FDDC43;
  color: #060934;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  max-width: 40ch;
  line-height: 1.5;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.15s;
}
.tooltip.show {
  opacity: 1;
}

/*space in between paragraphs*/
#learn .sec-body + .sec-body,
#learn .hero-body + .hero-body {
    margin-top: 1rem;
}


/*   ------------------   SIMULATE   -----------------   */
.sim-wrap {
    display: block;
    min-height: calc(100vh - 44px);
    width: 100%;
}

/*Sidebar*/
.sidebar{
    background: #040720;
    border-right: 1px solid #1a1d4a;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: fixed;
    top: 44px; /* Account for topbar */
    left: 0;
    bottom: 0;
    width: 250px;
}

.side-label{
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: #8a90c8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}


/*Pipeline*/
.pipeline-section{
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pip-stage {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    padding: 4px 7px;
    border-radius: 4px;
    color: #8a90c8;
    letter-spacing: 0.06em;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.pip-stage.done {
    color: #3a9c6e; border-color: #1a3d2e; 
}
.pip-stage.active {
    color: #FDDC43; border-color: #FDDC43; background: #0d1148;
}
.pip-stage.future {
    color: #2a2e60;
}
.pip-stage.done::before {
    content: "✓ "; font-size: 9px;
}
.pip-stage.active::before {
    content: "▶ ";
}

/*Resource*/
.stat-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0.5rem;
}
.stat-item {
    background: #0a0d30;
    border: 1px solid #1a1d4a;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.stat-name {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.stat-val {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #F0EDE6;
    transition: color 0.3s;
    position: absolute;
    top: 0.4rem;
    right: 0.8rem;
    text-align: right;
}

.stat-bar {
    height: 2px;
    background: #1a1d4a;
    border-radius: 2px;
    margin-top: 0.3rem;
    overflow: hidden;
}
.stat-fill {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    transition: width 0.5s ease, background 0.5s ease;
}
.stat-fill--green {
    background: #3a9c6e;
}
.stat-fill--yellow {
    background: #FDDC43;
}

/*Decision Log*/
.log-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.log-area {
    flex: 1;
    overflow-y: auto;
    max-height: 150px;
}
.log-entry {
    font-family: 'Courier Prime', monospace;
    font-size: 0.6rem;
    color: #8a90c8;
    padding: 0.2rem 0;
    border-bottom: 1px solid #0d1148;
    line-height: 1.4;
}
.log-entry.new { color: #FDDC43; }
.log-count {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    text-align: center;
    padding-top: 4px;
}


/*Simulation Main Area*/
.sim-main {
    margin-left: 250px;
    padding: 4rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: calc(100vh - 44px);
    width: calc(100% - 250px);
    box-sizing: border-box;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.8s ease;
}

.sim-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 52, 0.82);
    pointer-events: none;
    z-index: 0;
}

.sim-main > * {
    position: relative;
    z-index: 1;
}

.sim-bg-development {
    background-image: url('../images/bg-development.png');
}
.sim-bg-preproduction {
    background-image: url('../images/bg-preproduction.png');
}
.sim-bg-production {
    background-image: url('../images/bg-production.png');
}
.sim-bg-postproduction {
    background-image: url('../images/bg-postproduction.png');
}
.sim-bg-distribution {
    background-image: url('../images/bg-distribution.png');
}

.sim-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Progress bar */
.progress-track {
    height: 2px;
    background: #1a1d4a;
    border-radius: 2px;
    overflow: hidden;
}
.progress-active {
    height: 100%;
    background: #FDDC43;
    transition: width 0.4s ease;
}

/* Scene card */
.scene-card {
    background: #0d1148;
    border: 1px solid #8a90c8;
    border-radius: 8px;
    padding: 1.2rem;
    width: 100%;      
    box-sizing: border-box;
}
.scene-card.emergency {
    background: #1a0808;
    border-color: #8B1A1A;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0%, 100% { border-color: #8B1A1A; }
    50%       { border-color: #E24B4A; }
}
.scene-stage {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #FDDC43;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
}
.scene-card.emergency .scene-stage {
    color: #E24B4A;
}
.scene-title {
    font-family: 'Bayon', sans-serif;
    font-size: 1.4rem;
    color: #F0EDE6;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}
.scene-body {
    font-size: 1rem;
    color: #C3D4E6;
    line-height: 1.75;;
    white-space: normal; 
    word-break: normal;
}
.timer-bar {
    height: 4px;
    background: #1a0808;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.6rem;
}
.timer-fill {
    height: 100%;
    background: #E24B4A;
    border-radius: 2px;
    transition: width 1s linear;
}
.timer-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #E24B4A;
    margin-top: 0.3rem;
}

/* Choices */
.choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.choice-btn {
    background: #0a0d35;
    border: 1px solid #4a4f8a;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    text-align: left;
    cursor: pointer;
    color: #C3D4E6;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    width: 100%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.choice-btn:hover {
    background: #505992;
    border-color: #FDDC43;
    color: #F0EDE6;
}
.choice-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.choice-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    color: #505992;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}
.choice-btn:hover .choice-label {
    color: #FDDC43;
}


/* Outcome */
.outcome-card {
    background: #0a0d30;
    border: 1px solid #FDDC43;
    border-radius: 8px;
    padding: 2rem;
}
.outcome-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #505992;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.outcome-title {
    font-family: 'Bayon', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.outcome-sub {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #C3D4E6;
    line-height: 1.65;
    margin-bottom: 1rem;
    max-inline-size: 90ch;
}
.outcome-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}
.ostat {
    background: #2a2e60;
    border-radius: 5px;
    padding: 0.6rem;
    text-align: center;
}
.ostat-val {
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}
.ostat-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    color: #8a90c8;
    text-transform: uppercase;
    margin-top: 2px;
}
.outcome-divider {
    border: none;
    border-top: 1px solid #1a1d4a;
    margin: 1rem 0;
}
.outcome-section-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.outcome-body {
    font-size: 0.9rem;
    max-inline-size: 75ch;
    color: #C3D4E6;
    line-height: 1.7;
}
.outcome-film-title {
    font-size: 1rem;
    color: #F0EDE6;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.results-film-link .outcome-film-title {
    transition: color 0.2s;
}

.results-film-link:hover .outcome-film-title {
    color: #FDDC43;
}

.outcome-film-desc {
    font-size: 0.85rem;
    color: #A091B8;
    line-height: 1.55;
    max-inline-size: 75ch;
}
.outcome-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.cta-btn-ghost {
    font-family: 'Bayon', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    background: none;
    color: #FDDC43;
    border: 1px solid #FDDC43;
    padding: 0.8rem 2.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cta-btn-ghost:hover {
    background: #FDDC43;
    color: #060934;
}

/* Impact items */
.impact-item {
    background: #0d1148;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}
.impact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}
.impact-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    color: #7075b0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.impact-delta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 700;
}
.impact-title {
    font-size: 0.9rem;
    color: #F0EDE6;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.impact-why {
    font-size: 0.82rem;
    color: #A091B8;
    line-height: 1.6;
}


/*Transition between questions*/
.scene-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.loader-block {
    width: 120px;
    height: 70px;
    border: 1px solid #505992;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: #0a0d30;
}

.loader-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FDDC43;
    animation: scan 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(253, 220, 67, 0.4);
}

@keyframes scan {
    0%   { top: 0%; opacity: 1; }
    50%  { top: 100%; opacity: 0.6; }
    100% { top: 0%; opacity: 1; }
}

.loader-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 8px 10px;
}

.loader-line {
    height: 2px;
    background: #1a1d4a;
    border-radius: 1px;
    animation: flicker 1.5s ease-in-out infinite;
}

.loader-line:nth-child(1) { width: 70%; animation-delay: 0s; }
.loader-line:nth-child(2) { width: 90%; animation-delay: 0.2s; }
.loader-line:nth-child(3) { width: 55%; animation-delay: 0.4s; }
.loader-line:nth-child(4) { width: 80%; animation-delay: 0.1s; }
.loader-line:nth-child(5) { width: 65%; animation-delay: 0.3s; }

@keyframes flicker {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.8; }
}

.loader-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #8a90c8;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.loader-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}


/*HUD OVERLAY*/
#simulate {
    position: relative;
}

.hud-topleft,
.hud-topright,
.hud-bottomleft,
.hud-bottomright {
    position: fixed;
    z-index: 90;
    font-family: 'Courier Prime', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: #8a90c8;
    text-transform: uppercase;
    pointer-events: none;
}

.hud-topleft {
    top: 62px;
    left: 258px;  /* 250px sidebar + 8px gap */
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
}

.hud-topright {
    top: 62px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 8px;
}

.hud-bottomleft {
    bottom: 52px;
    left: 258px;  /* 250px sidebar + 8px gap */
    padding: 6px 8px;
}

.hud-bottomright {
    bottom: 52px;
    right: 8px;
    padding: 6px 8px;
}

.hud-timeline {
    position: fixed;
    bottom: 0;
    left: 250px;  /* start after sidebar */
    right: 0;
    height: 44px;
    background: #040720;
    border-top: 1px solid #1a1d4a;
    z-index: 90;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Corner bracket shapes */
.hud-corner-tl,
.hud-corner-tr,
.hud-corner-bl,
.hud-corner-br {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #505992;
    border-style: solid;
}

.hud-corner-tl {
    top: 0; left: 0;
    border-width: 1px 0 0 1px;
}
.hud-corner-tr {
    top: 0; right: 0;
    border-width: 1px 1px 0 0;
}
.hud-corner-bl {
    bottom: 0; left: 0;
    border-width: 0 0 1px 1px;
}
.hud-corner-br {
    bottom: 0; right: 0;
    border-width: 0 1px 1px 0;
}

.hud-project {
    color: #C3D4E6;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

.hud-project strong {
    color: #FDDC43;
    font-weight: 700;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8a90c8;
    font-size: 0.6rem;
}

.hud-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3a9c6e;
    display: inline-block;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hud-frame {
    color: #C3D4E6;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
}

.hud-timecode {
    color: #FDDC43;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* ── TIMELINE BAR ────────────────────────── */
.hud-timeline {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #040720;
    border-top: 1px solid #1a1d4a;
    z-index: 90;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hud-timeline-track {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hud-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier Prime', monospace;
    font-size: 0.55rem;
    color: #505992;
    letter-spacing: 0.08em;
}

.hud-timeline-ticks {
    height: 14px;
    background: repeating-linear-gradient(
        to right,
        #1a1d4a 0px,
        #1a1d4a 1px,
        transparent 1px,
        transparent 10px
    );
    position: relative;
    border-left: 1px solid #505992;
    border-right: 1px solid #505992;
}

.hud-timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #FDDC43;
    transition: left 0.8s ease;
}

.hud-timeline-playhead::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #FDDC43;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Push sim content above timeline */
#simulate .sim-wrap {
    padding-bottom: 44px;
}


/* ----------------------   RESULT PAGE   -----------------   */
.results-main{
    padding: 3rem 17%;
}

.results-grids {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.results-card {
    background: #0d1148;
    border: 1px solid #505992;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-tier {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #FDDC43;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.results-title {
    font-family: 'Bayon', sans-serif;
    font-size: 1.4rem;
    color: #F0EDE6;
    margin: 0;
    letter-spacing: 0.04em;
}

.results-pill {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.pill-label, .pill-risk {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    background: #505992;
    color: #F0EDE6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin: 0;
}

.results-desc {
    font-size: 1rem;
    color: #A091B8;
    line-height: 1.6;
    max-width: 85ch;
}

.results-why {
    font-size: 1rem;
    color: #C3D4E6;
    line-height: 1.7;
    padding-top: 0.5rem;
    border-top: 1px solid #1a1d4a;
}

.results-film {
    background: #060934;
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #1a1d4a;
    margin-top: auto;
}

.results-film-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    color: #8a90c8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.results-film-title {
    font-size: 0.9rem;
    color: #F0EDE6;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.results-film-desc {
    font-size: 0.85rem;
    color: #A091B8;
    line-height: 1.6;
}

.results-film-link {
    text-decoration: none;
    color: inherit;
}

.results-film-link .results-film-title {
    transition: color 0.2s;
    display: inline;
}

.results-film-link:hover .results-film-title {
    color: #FDDC43;
}

.results-footnote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1d4a;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}





/*ABOUT*/
#about .hero-body + .hero-body {
    margin-top: 1rem;
}

#about .role-grids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    align-items: stretch;
}

#about .role-grids a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

#about .role-grids a .role-card {
    height: 100%;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    max-width: none;
}

#about .role-grids a .role-card:hover {
    border-color: #FDDC43;
    background: #0d1148;
}






/*Phone Screen Styles*/
/* ── RESPONSIVE / MOBILE ─────────────────── */
@media (max-width: 768px) {

    html {
        font-size: 17px;
    }

    /* Topbar */
    .topbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .nav {
        gap: 3px;
        flex-wrap: wrap;
    }
    .nav-btn {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }

    /* Home */
    .home-main {
        padding: 2rem 1.5rem;
    }
    .home-title {
        font-size: 4rem;
    }
    .home-tagline {
        margin-bottom: 2rem;
    }

    /* Learn */
    .hero {
        padding: 2rem 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .body1, .body2, .body3,
    .body4, .body5, .body6 {
        padding: 1.8rem 1.5rem;
    }
    .sec-title {
        font-size: 1.3rem;
    }

    .role-hierarchy{
        display: block;
        margin-left: auto;
        margin-right: auto;
        min-width: unset;
        width: 100%;
    }
   
    .budget-grids {
        grid-template-columns: 1fr;
    }
    .myth-grids {
        grid-template-columns: 1fr;
    }
    .section-divider {
        padding: 0 3rem;
    }
    .cta-bar {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tool-table thead {
        display: none;
    }
    .tool-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 0.8rem 0;
        border-bottom: 1px solid #505992;
        gap: 0.2rem;
    }
    .tool-table td {
        padding: 0 0 0.2rem 0;
        white-space: normal;
    }
    .tool-name-cell {
        font-size: 1rem;
        width: auto;
        color: #FDDC43;
    }
    .tool-type-cell {
        font-size: 0.6rem;
        color: #8a90c8;
        width: auto;
    }

    /* Simulate — stack sidebar above main */
    .sim-wrap {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1a1d4a;
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.6rem;
        order: 1;
    }

    .sim-main {
        margin-left: 0;
        width: 100%;
        padding: 1.2rem 1rem;
        min-height: 70vh;
        order: 2;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
    .sim-content-wrap {
        min-height: 70vh;
        display: flex;
        flex-direction: column;
    }
    
    

    /* Current stage indicator — single line */
    .pipeline-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    /* Hide all pip-stages except active one */
    .pip-stage {
        display: none;
    }
    .pip-stage.active {
        display: flex;
        align-items: center;
        font-size: 0.65rem;
        padding: 3px 8px;
        border-radius: 4px;
    }

    /* Add a label before the active stage */
    .pipeline-section::before {
        content: 'STAGE:';
        font-family: 'Courier Prime', monospace;
        font-size: 0.6rem;
        color: #8a90c8;
        letter-spacing: 0.1em;
        flex-shrink: 0;
    }

    .resource-section {
        display: block;
    }

    .stat-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .stat-item {
        padding: 0.4rem 0.6rem;
    }

    .stat-name {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .stat-val {
        font-size: 0.85rem;
    }

    .stat-bar {
        height: 2px;
        margin-top: 3px;
    }

    /* Hide decision log on mobile to save space */
    .log-section {
        display: none;
    }

    /* Hide side labels */
    .side-label {
        display: none;
    }

    .sim-wrap {
        display: flex;
        flex-direction: column;
    }

    .outcome-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hud-topleft,
    .hud-topright,
    .hud-bottomleft,
    .hud-bottomright,
    .hud-timeline {
        display: none;
    }

    #simulate .sim-wrap {
        padding-bottom: 0;
    }

    /* Outcome stats */
    .outcome-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Results */
    .results-main {
        padding: 2rem 1.5rem;
    }
    .results-grids {
        grid-template-columns: 1fr;
    }

    #about .role-grids {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 487px) {
    .screen {
        padding-top: 5.5rem;
    }
}


@media (max-width: 480px) {
    .screen{
        padding-top: 3rem;
    }
    html {
        font-size: 17px;
    }

    .home-title {
        font-size: 3.2rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .nav-btn {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
    .ticket-label {
        padding: 0.75rem 1rem 0.75rem 1.2rem;
    }
    .ticket-arrow {
        padding: 0.75rem 1rem 0.75rem 0.8rem;
    }
    .outcome-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .topbar {
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
    }

    #about .role-grids {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 436px) {
    .screen {
        padding-top: 5.5rem;
    }
}

@media (max-width: 362px) {
    .screen {
        padding-top: 7.5rem;
    }
}

