
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   KUE JOURNEY - DESIGN SYSTEM
======================================== */

:root {
  --navy: #06234b;
  --navy-deep: #031a38;
  --blue: #0879ef;
  --green: #00a77d;
  --purple: #7028db;
  --orange: #f47a12;
  --pink: #e71970;
  --teal: #08b5bd;

  --ink: #092653;
  --muted: #58708e;
  --page-bg: #eaf3fb;
  --surface: #ffffff;
  --border: #d5e4f1;
  --progress-track: #d6e7f6;

  --panel: #ffffff;
  --header-height: 62px;
  --sidebar-width: 240px;
}

/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ========================================
   TOP HEADER
======================================== */

.topbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(
    100deg,
    #061c3c,
    #154979
  );
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .container-fluid {
  height: 100%;
  padding: 0 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.player-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.player-button .bi {
  font-size: 2rem;
  line-height: 1;
}

.player-welcome {
  display: inline-block;
}

/* ========================================
   MAIN APPLICATION LAYOUT
======================================== */

.app-shell {
  display: grid;
  grid-template-columns:
    var(--sidebar-width)
    minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}

.main-content {
  min-width: 0;
}

/* ========================================
   SIDEBAR
======================================== */

.sidebar {
  background: linear-gradient(
    180deg,
    #f8fbff,
    #edf5fc
  );
  border-right: 1px solid #c9deef;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.player-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  background: #dcecff;
  color: #1767bd;
  border: 1px solid #c5dff8;
  border-radius: 50%;
}

.player-avatar .bi {
  font-size: 1.8rem;
  line-height: 1;
}

.player-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-details strong {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.player-details small {
  color: var(--muted);
  font-size: 0.72rem;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 24px 6px 9px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
}

.progress-heading strong {
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.journey-progress {
  height: 10px;
  margin: 0 6px;
  overflow: hidden;
  background: var(--progress-track);
  border-radius: 20px;
}

.journey-progress .progress-bar {
  background: linear-gradient(
    90deg,
    #00a77d,
    #09b9e6
  );
  border-radius: 20px;
  transition: width 0.35s ease;
}

.sidebar-divider {
  height: 1px;
  margin: 28px 6px 24px;
  background: #d6e6f4;
}

.sidebar-motto {
  margin: 0 6px 12px;
  padding-top: 0;
  color: #164b84;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.045em;
  font-style: italic;
}

/* Optional navigation styles for future use */

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  height: var(--header-height);
}

.main-nav a {
  color: #eaf4ff;
  font-size: 0.9rem;
  padding: 18px 0 15px;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #36e0e7;
  border-color: #36e0e7;
}

/* ========================================
   HERO BANNER
======================================== */

.journey-hero {
  min-height: 245px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;

  background:
    linear-gradient(
      90deg,
      rgba(240, 248, 255, 0.98) 0%,
      rgba(240, 248, 255, 0.90) 36%,
      rgba(240, 248, 255, 0.20) 100%
    ),
    url('../graphics/journey.png')
    center 43% / cover no-repeat;
}

.sweepstakehero {
  min-height: 245px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(240, 248, 255, 0.98) 0%,
      rgba(240, 248, 255, 0.90) 20%,
      rgba(240, 248, 255, 0.20) 90%
    ),
    url('../graphics/ad3.png')
    center 43% / cover no-repeat;
	}
.surveyhero {
  min-height: 245px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(240, 248, 255, 0.98) 0%,
      rgba(240, 248, 255, 0.90) 20%,
      rgba(240, 248, 255, 0.20) 90%
    ),
    url('../graphics/level-5-feedback.jpg')
    center 43% / cover no-repeat;
	}

.hero-copy {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  color: #0877c9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.journey-hero h1 {
  margin: 5px 0 8px;
  color: var(--navy);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.journey-hero h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
}

.journey-hero p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: #29486c;
  font-size: 0.88rem;
  line-height: 1.65;
}

.hero-tagline {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 5px rgba(0, 24, 55, 0.75);
}

.hero-tagline span {
  display: block;
  color: #63f2f2;
}

/* ========================================
   JOURNEY SECTION
======================================== */

.journey-section {
  padding: 24px clamp(18px, 2.5vw, 36px) 36px;
  background: linear-gradient(
    180deg,
    #edf6fd,
    #e3f1fb
  );
}

.journey-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.journey-intro h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.map-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #58708e;
  font-size: 0.75rem;
  line-height: 1.5;
}

.map-hint .bi {
  color: #2672b8;
  flex-shrink: 0;
}

/* ========================================
   FLAT CARD GRID
   No SVG route, floating effect, or shadows
======================================== */

.map-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
  align-items: stretch;
  padding: 0;
}

/* Base card */

.level-card {
  --level: var(--blue);

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--level);
  border-radius: 8px;

  box-shadow: none;
  transition: border-color 0.2s ease;
}

/* Remove the old floating-card interaction */

.level-card:hover {
  transform: none;
  box-shadow: none;
}

.level-card:focus-within {
  outline: 2px solid var(--level);
  outline-offset: 3px;
}

/* Three cards in the first row */

.level-one {
  --level: var(--blue);
  grid-column: 1 / span 2;
  grid-row: 1;
}

.level-two {
  --level: var(--green);
  grid-column: 3 / span 2;
  grid-row: 1;
}

.level-three {
  --level: var(--purple);
  grid-column: 5 / span 2;
  grid-row: 1;
}

/* Two centered cards in the second row */

.level-four {
  --level: var(--orange);
  grid-column: 2 / span 2;
  grid-row: 2;
}

.level-five {
  --level: var(--pink);
  grid-column: 4 / span 2;
  grid-row: 2;
}

/* ========================================
   CARD IMAGES AND LEVEL NUMBERS
======================================== */

.level-image-wrap {
  position: relative;
  height: 126px;
  flex: 0 0 126px;
  overflow: hidden;
  background: #dcecf8;
  border-bottom: 1px solid #e0eaf3;
}

.level-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: #dcecf8;
}

/* Number badge is positioned within the image,
   not floating above the card. */

.level-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.pin {
  transform: none;
  box-shadow: none;
}

.pin-blue {
  background: var(--blue);
}

.pin-green {
  background: var(--green);
}

.pin-purple {
  background: var(--purple);
}

.pin-orange {
  background: var(--orange);
}

.pin-pink {
  background: var(--pink);
}

/* ========================================
   CARD CONTENT
======================================== */

.level-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
  text-align: left;
}

.level-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--level);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

.level-content h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.level-content p {
  margin: 0 0 16px;
  color: #47617f;
  font-size: 0.77rem;
  line-height: 1.55;
}

/* Footer aligns badges and buttons */

.level-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e2ebf4;
}

/* ========================================
   BADGES
======================================== */

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1a456f;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: none;
}

.badge-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.badge-details strong {
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.badge-details small {
  color: #71869d;
  font-size: 0.61rem;
  font-weight: 500;
  line-height: 1.35;
}

.blue-badge {
  background: var(--blue);
}

.green-badge {
  background: var(--green);
}

.purple-badge {
  background: var(--purple);
}

.orange-badge {
  background: var(--orange);
}

.pink-badge {
  background: var(--pink);
}

/* ========================================
   ACTION BUTTONS
======================================== */

.level-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 12px;

  border: 1px solid transparent;
  border-radius: 5px;

  color: #ffffff;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
  transition: filter 0.15s ease;
}

.level-action:hover {
  filter: brightness(0.94);
}

.level-action:active {
  filter: brightness(0.88);
}

.level-action .bi {
  font-size: 0.9rem;
}

.blue-action {
  background: var(--blue);
  border-color: var(--blue);
}

.green-action {
  background: var(--green);
  border-color: var(--green);
}

.purple-action {
  background: var(--purple);
  border-color: var(--purple);
}

.orange-action {
  background: var(--orange);
  border-color: var(--orange);
}

.pink-action {
  background: var(--pink);
  border-color: var(--pink);
}

/* ========================================
   LOCKED AND COMPLETED STATES
======================================== */

.level-card.locked {
  background: #fbfdff;
}

.level-card.locked .level-action {
  filter: saturate(0.72);
}

/* A locked visual state does not replace
   JavaScript validation of level access. */

.level-card.completed {
  border-width: 2px;
}

.level-card.completed::after {
  content: "✓ COMPLETED";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;

  padding: 4px 7px;
  background: #008c68;
  color: #ffffff;

  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1.4;
  border-radius: 3px;
}

/* Use the HTML disabled attribute if your
   JavaScript marks a level as unavailable. */

.level-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.25);
}

/* ========================================
   BOOTSTRAP TOAST
======================================== */

.toast-container {
  z-index: 1100;
}

.toast {
  border: 1px solid #d8e6f2;
  border-radius: 8px;
  box-shadow: none;
  background: #ffffff;
  color: var(--ink);
}

.toast-header {
  background: #f5faff;
  color: var(--navy);
  border-bottom: 1px solid #e0eaf3;
}

.toast-body {
  color: #29486c;
  font-size: 0.85rem;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1199.98px) {
  :root {
    --sidebar-width: 210px;
  }

  .journey-hero {
    padding: 28px 22px;
  }

  .hero-tagline {
    max-width: 170px;
    font-size: 0.75rem;
  }

  .journey-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .map-area {
    column-gap: 12px;
  }

  .level-image-wrap {
    height: 112px;
    flex-basis: 112px;
  }

  .level-content {
    padding: 12px;
  }

  .level-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .level-action {
    width: 100%;
  }
}

/* ========================================
   SMALL TABLET
======================================== */

@media (max-width: 991.98px) {
  :root {
    --sidebar-width: 180px;
  }

  .sidebar {
    padding: 22px 12px;
  }

  .sidebar-motto {
    font-size: 1.4rem;
  }

  .journey-hero {
    min-height: 220px;
    background-position: center;
  }

  .hero-tagline {
    display: none;
  }

  .map-area {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .level-one,
  .level-two,
  .level-three,
  .level-four,
  .level-five {
    grid-column: auto;
    grid-row: auto;
  }

  .level-image-wrap {
    height: 140px;
    flex-basis: 140px;
  }

  .level-footer {
    flex-direction: row;
    align-items: center;
  }

  .level-action {
    width: auto;
  }

  .badge-details strong {
    font-size: 0.7rem;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 575.98px) {
  :root {
    --header-height: 58px;
  }

  .topbar .container-fluid {
    padding: 0 16px;
  }

  .brand-logo {
    width: 88px;
    max-height: 42px;
  }

  .player-button {
    gap: 7px;
    font-size: 0.73rem;
  }

  .player-button .bi {
    font-size: 1.7rem;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid #c9deef;
  }

  .player-summary {
    gap: 10px;
  }

  .player-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .player-avatar .bi {
    font-size: 1.55rem;
  }

  .progress-heading {
    margin-top: 15px;
  }

  .sidebar-divider,
  .sidebar-motto {
    display: none;
  }

  .journey-hero {
    min-height: auto;
    padding: 28px 18px;
    background:
      linear-gradient(
        90deg,
        rgba(240, 248, 255, 0.97),
        rgba(240, 248, 255, 0.82)
      ),
      url('../graphics/journey.png')
      center / cover no-repeat;
  }

  .journey-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .journey-hero h2 {
    font-size: 1.05rem;
  }

  .journey-hero p:not(.eyebrow) {
    font-size: 0.84rem;
  }

  .journey-section {
    padding: 22px 14px 28px;
  }

  .journey-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
  }

  .journey-intro h2 {
    font-size: 1.15rem;
  }

  .map-hint {
    font-size: 0.72rem;
  }

  .map-area {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .level-one,
  .level-two,
  .level-three,
  .level-four,
  .level-five {
    grid-column: 1;
    grid-row: auto;
  }

  .level-image-wrap {
    height: 165px;
    flex-basis: 165px;
  }

  .level-content {
    padding: 14px;
  }

  .level-content h3 {
    font-size: 1rem;
  }

  .level-content p {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .level-footer {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .badge-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .badge-details strong {
    font-size: 0.65rem;
  }

  .badge-details small {
    font-size: 0.61rem;
  }

  .level-action {
    min-height: 42px;
    width: auto;
    padding: 9px 12px;
    font-size: 0.7rem;
  }

  .level-card.completed::after {
    font-size: 0.52rem;
  }

  .toast-container {
    right: 0;
    left: 0;
    width: 100%;
    padding: 12px !important;
  }

  .toast {
    width: 100%;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}





