  /* --- FONT LOADING --- */
  @font-face {
      font-family: 'PizzaPress';
      src: url('../../fonts/Dominos Sans Header 1.ttf') format('truetype');
      font-weight: normal;
  }
  @font-face {
      font-family: 'OneDotCd-Bold';
      src: url('../../fonts/Dominos Sans Bold.ttf') format('truetype');
      font-weight: bold;
  }
  @font-face {
      font-family: 'OneDotCd';
      src: url('../../fonts/Dominos Sans Body.ttf') format('truetype');
      font-weight: normal;
  }
  @font-face {
      font-family: 'Subhead2';
      src: url('../../fonts/Dominos Sans Subhead 2.ttf') format('truetype');
      font-weight: normal;
  }
  /* --- GLOBAL CRUST PALETTE --- */
  :root {
      --brand-red: #ff0000;
      --dark-red: #910000;
      --brand-blue: #0090e2;
      --med-blue: #0077bd;
      --dark-blue: #005c91;
      --crust-base: #fefaf6;
      --crust-light: #faf2e9;
      --crust-med: #f0decc;
      --crust-dark: #c0a588;
      --crust-deep: #603913;
      --crust-burnt: #472b10;
  }
  /* --- HEADER & LOGO LAYOUT (MATCHING INITIAL DESIGN) --- */
    :root {
        --border-radius: 12px;
        --transition: all 0.3s ease;
    }

    header {
        background-color: white; /* Keeps the top header background white */
        padding: 20px 0;
        text-align: center;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }

    .logo-img {
        max-height: 80px; /* Restricts your logo from becoming giant */
        width: auto;
    }

    .tagline {
        font-family: 'OneDotCd', sans-serif;
        font-size: 1rem;
        color: var(--crust-deep);
        margin: 0 auto;
        text-align: center; /* Centers "Growing Leaders. Building Futures." */
    }

  body {
      font-family: 'OneDotCd', 'Arial Narrow', sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--crust-light);
      display: block; /* CHANGED FROM FLEX */
      height: 100vh;
      color: var(--crust-deep);
  }

  /* --- MOBILE BLOCKER --- */
  #mobile-blocker {
      display: none;
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: var(--dark-blue); color: white;
      text-align: center; padding: 40px; z-index: 9999;
  }
  @media (max-width: 768px) {
      #mobile-blocker { display: flex; flex-direction: column; justify-content: center; }
      #simulator-wrapper { display: none !important; }
  }

  /* --- SPLIT VIEW LAYOUT --- */
  #simulator-wrapper {
      display: flex;
      width: 95%; max-width: 1400px;
      height: 75vh; 
      margin: 6vh auto; /* CHANGED: Pushes it down 6% of the screen */
      background: var(--crust-base);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      overflow: hidden; 
      border: 2px solid var(--crust-med);
  }

  /* LEFT: Instructions Panel */
  #instruction-panel {
      position: relative; /* REQUIRED FOR BUTTON POSITIONING */
      flex-grow: 1; 
      background: white;
      padding: 30px;
      border-right: 2px solid var(--crust-med);
      display: flex;
      flex-direction: column;
      overflow-y: auto; 
  }
  
  h2 { 
      font-family: 'PizzaPress', 'Arial Narrow', sans-serif; /* Big headers */
      color: var(--dark-blue); 
      margin-top: 0; 
      text-transform: uppercase; 
      border-bottom: 2px solid var(--brand-red); 
      padding-bottom: 5px;
  }

  #instruction-text { 
      font-family: 'OneDotCd', 'Arial Narrow', sans-serif; 
      font-size: 1.1rem; /* Dropped from 1.1rem */
      line-height: 1.4; 
      margin-top: 15px; 
      flex-grow: 1; 
      padding-bottom: 60px; /* Keep this so buttons don't overlap */
  } 

.error-msg { 
      display: none; /* Controlled dynamically by JavaScript */
      background-color: rgba(255, 0, 0, 0.06); /* Soft opacity of var(--brand-red) */
      border: 1px solid rgba(255, 0, 0, 0.15); /* Soft border using var(--brand-red) */
      border-left: 5px solid var(--brand-red);  /* Solid established brand red accent */
      color: var(--dark-red);                  /* Established dark red font */
      padding: 12px 16px; 
      border-radius: 8px; 
      font-family: 'OneDotCd-Bold', sans-serif;
      font-size: 1.05rem;
      margin: 15px 0; 
      box-sizing: border-box; 
      text-align: center;
      width: 100%;
      animation: fadeIn 0.2s ease-out;
  }
  
  /* RIGHT: POS Screen */
  #pos-container {
      height: 100%; 
      max-width: 75%; 
      aspect-ratio: 1600 / 1200; 
      background: #000;
      position: relative;
  }

  /* The actual POS Image */
  #pos-image {
      width: 100%;
      height: 100%;
      object-fit: cover; 
  }

  /* The wrapper that holds the image and hitboxes */
  #hitbox-wrapper {
      position: relative;
      display: inline-block; 
  }

  /* --- HITBOXES (Invisible with Arrows) --- */
    .hitbox {
        position: absolute;
        cursor: default; /* Stops the mouse from turning into a hand */
        display: none;
        z-index: 10;
        background: transparent;
        border: none;
        user-select: none; /* Stops text selection */
        caret-color: transparent; /* Makes the blinking typing cursor invisible */
    }
  
  .hitbox::before {
      content: '';
      position: absolute;
      top: -50px; 
      left: 50%;
      transform: translateX(-50%);
      width: 40px; 
      height: 40px; 
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff0000"><path d="M12 21l-9-9h6V3h6v9h6z"/></svg>');
      background-size: contain;
      background-repeat: no-repeat;
      filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
      animation: bounce 1s infinite;
      animation-delay: 1s; 
      opacity: 0; 
      animation-fill-mode: forwards; 
      pointer-events: none;
  }

  @keyframes bounce {
      0% { top: -50px; opacity: 1; }
      50% { top: -35px; opacity: 1; }
      100% { top: -50px; opacity: 1; }
  }

  .hitbox.arrow-bottom::before {
      top: auto; 
      bottom: -50px; 
      transform: translateX(-50%) rotate(180deg); 
      animation: bounceBottomUp 1s infinite;
      animation-delay: 1s; 
      opacity: 0; 
      animation-fill-mode: forwards; 
  }
  
  @keyframes bounceBottomUp {
      0% { bottom: -50px; opacity: 1; }
      50% { bottom: -35px; opacity: 1; } 
      100% { bottom: -50px; opacity: 1; }
  }

  /* --- POS TICKET STYLING --- */  
  .pos-ticket {
      background-color: var(--crust-light);
      border-left: 5px solid var(--brand-blue);
      padding: 12px 10px 8px 10px; /* +2px top, +6px bottom for breathing room */
      margin: 10px 0 2px 0; /* Shaved margin to compensate for padding */
      border-radius: 4px;
      font-family: 'OneDotCd', 'Arial Narrow', sans-serif;
      color: var(--crust-burnt);
      font-size: 1.0rem;
      line-height: 1.5; /* Increased for clear line separation */
  }

  .pos-ticket-header {
      font-family: 'OneDotCd-Bold', 'Arial Narrow', sans-serif;
      color: var(--dark-blue);
      font-size: 1.15rem; /* Dropped from 1.4rem */
      margin-bottom: 6px;
      font-weight: bold;
  }

  /* The Master Button Template */
  .btn {
      display: inline-block;
      background: var(--brand-blue);
      color: var(--crust-base);
      padding: 0.8rem 2rem;
      border-radius: 50px;
      font-family: 'OneDotCd-Bold';
      text-decoration: none;
      transition: 0.3s ease;
      border: none;
      font-size: 1.1rem;
      cursor: pointer;
  }
  
  .btn:hover {
      opacity: 0.8;
  }

  /* The Red Override */
  .btn-finish {
      background: var(--brand-red);
  }

  .hitbox.hide-arrow::before { display: none !important; }

    .classroom-container {
        max-width: 900px;
        margin: 2rem auto;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        overflow: hidden;
        border-top: 6px solid var(--brand-blue);
    }
    
    .classroom-header {
        background: var(--crust-light);
        padding: 1.5rem 2rem;
        border-bottom: 2px solid var(--crust-med);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .module-title {
        font-family: 'OneDotCd-Bold';
        font-size: 1.8rem;
        color: var(--dark-blue);
        margin: 0;
        text-transform: uppercase;
    }

    .step-indicator {
        font-family: 'OneDotCd-Bold';
        color: var(--brand-blue);
        background: rgba(0, 144, 226, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }

    .classroom-content {
        padding: 2rem;
        min-height: 400px; /* Keep height stable during transitions */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* --- Step 1: Video --- */
    .video-wrapper {
        width: 100%;
        background: #000;
        aspect-ratio: 16/9;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        position: relative;
    }
    
    .mock-play-btn {
        font-size: 4rem;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .mock-play-btn:hover { transform: scale(1.1); }

    /* --- Step 2: Knowledge Check --- */
    .quiz-container {
        width: 100%;
        max-width: 600px;
        text-align: left;
    }

    .quiz-question {
        font-family: 'OneDotCd-Bold';
        font-size: 1.4rem;
        color: var(--crust-deep);
        margin-bottom: 1.5rem;
    }

    .quiz-option {
        display: block;
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        background: var(--crust-base);
        border: 2px solid var(--crust-med);
        border-radius: 8px;
        font-family: 'OneDotCd';
        font-size: 1.1rem;
        color: var(--crust-deep);
        cursor: pointer;
        transition: all 0.2s;
        text-align: left;
    }

    .quiz-option:hover {
        border-color: var(--brand-blue);
        background: rgba(0, 144, 226, 0.05);
    }

    .quiz-option.selected {
        border-color: var(--brand-blue);
        background: var(--brand-blue);
        color: var(--crust-base);
    }

    /* --- Step 3: Prompt --- */
    .prompt-container {
        text-align: center;
        animation: fadeIn 0.5s ease-out;
    }

    .prompt-icon {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .prompt-text {
        font-size: 1.5rem;
        color: var(--crust-deep);
        margin-bottom: 2rem;
        max-width: 600px;
    }

    /* --- Footer Controls --- */
    .classroom-footer {
        padding: 1.5rem 2rem;
        background: var(--crust-light);
        border-top: 2px solid var(--crust-med);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn {
        display: inline-block;
        background: var(--brand-blue);
        color: var(--crust-base);
        padding: 0.8rem 2rem;
        border-radius: 50px;
        font-family: 'OneDotCd-Bold';
        text-decoration: none;
        transition: var(--transition);
        border: none;
        font-size: 1.1rem;
        cursor: pointer;
        width: auto;
    }

    .btn:hover {
        background: var(--dark-blue);
        transform: scale(1.05);
    }

    .btn-outline {
        background: transparent;
        color: var(--brand-blue);
        border: 2px solid var(--brand-blue);
    }
    
    .btn-outline:hover {
        background: rgba(0, 144, 226, 0.1);
        color: var(--dark-blue);
        transform: scale(1.02);
    }

/* --- Setup Container --- */
.setup-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px; /* Restrict width of the login/tutorial cards */
    margin: 0 auto; /* Center the cards */
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border-top: 6px solid var(--brand-blue);
}

/* --- Map Container --- */
#step-master-lobby, #step-day1-dashboard {
    max-width: 1200px;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-top: none;
    padding: 0;
    text-align: left;
}

/* --- Dashboard Layout --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 6px solid var(--brand-blue);
}

.dashboard-title {
    font-family: 'OneDotCd-Bold';
    font-size: 2rem;
    color: var(--dark-blue);
    margin: 0;
    text-transform: uppercase;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--crust-med);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--brand-blue);
}

/* --- Progress Bar --- */
.progress-container {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-header h3 {
    font-family: 'OneDotCd-Bold';
    color: var(--crust-deep);
    margin: 0;
    font-size: 1.2rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: var(--crust-light);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--crust-med);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), #00b4ff);
    width: 15%; /* Mock progress */
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* --- Course Grid --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--acc-blue); /* Match Lobby Cards */
    position: relative;
    text-align: center; /* Center text like Lobby Cards */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15); /* Stronger hover shadow */
}

.course-card.locked {
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: not-allowed;
    border-top: 6px solid #888; /* Gray top border for locked */
}

.course-card.locked:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.course-image {
    height: 240px; /* Match Lobby Card height */
    background-color: var(--crust-med);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem; /* Big emoji placeholder */
    color: var(--crust-burnt);
    position: relative;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'OneDotCd-Bold';
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-content {
    padding: 2rem; /* Match Lobby Card padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-family: 'OneDotCd-Bold';
    font-size: 1.8rem; /* Match Lobby Card title size */
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.course-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-small {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'OneDotCd-Bold';
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    width: auto;
    margin: 0 auto; /* Center button */
}

.btn-small:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

.course-card.locked .btn-small {
    background: #ccc;
    cursor: not-allowed;
    color: #888;
}
.course-card.locked .btn-small:hover {
    transform: none;
}

/* --- Carousel Styles --- */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 350px;
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
    padding: 1rem 0;
}

.carousel-slide.active {
    display: block;
}

.carousel-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--crust-med);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--crust-burnt);
    border: 2px dashed var(--crust-dark);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--brand-blue);
    transform: scale(1.2);
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-outline:hover {
    background: rgba(0, 144, 226, 0.1);
    color: var(--dark-blue);
    transform: scale(1.02);
}

.setup-title {
    font-family: 'OneDotCd-Bold';
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.setup-text {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-family: 'OneDotCd-Bold';
    color: var(--crust-deep);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--crust-med);
    border-radius: 8px;
    font-family: 'OneDotCd', sans-serif;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 144, 226, 0.2);
}

/* --- Avatar Placeholder --- */
.avatar-preview {
    width: 150px;
    height: 150px;
    background-color: var(--crust-med);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--crust-burnt);
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'OneDotCd-Bold';
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    user-select: none;
    -webkit-user-select: none;
}

.btn:hover {
    background: var(--dark-blue);
    transform: scale(1.02);
}

/* --- Support Modal Styles --- */

#supportSubmitBtn {
    background-color: var(--brand-red);
    color:  var(--crust-base);
    border: none;
    padding: 12px 20px;
    font-family: 'OneDotCd-Bold';
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: background 0.2s;
}

#supportSubmitBtn:hover {
    background-color: var(--acc-red);
}

/* Footer Button Wrapper */
.footer-support-wrapper {
    text-align: center;
    padding: 20px;
    /* Removed background-color: var(--crust-light); */
    background: transparent; 
}

/* Footer Button Style */
.footer-support-btn {
    background: rgba(254, 250, 246, 0.15); /* Updated to Crust Base RGB */
    border: 1px solid var(--crust-base);
    color: var(--crust-base);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'OneDotCd-Bold';
    transition: all 0.2s ease;
}

.footer-support-btn:hover {
    background-color: var(--crust-base);
    color: var(--brand-blue);
}
.hidden { display: none !important; }