@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700&display=swap');

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #0b1020; }
body {
  min-height: 100vh; margin: 0; padding: 28px 20px 44px; overflow-x: hidden;
  font-family: Manrope, Arial, sans-serif; font-size: 16px; line-height: 1.7;
  color: #e9ebf6; background: radial-gradient(circle at 12% -10%, #3c307d 0, transparent 32rem),
    radial-gradient(circle at 100% 8%, #124e68 0, transparent 25rem), #0b1020;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
a { color: inherit; text-decoration: none; }

.quest-topbar, .page-progress, body > .container, .navigation-buttons { width: min(900px, 100%); margin-left: auto; margin-right: auto; }
.quest-topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; color: #b7bad0; font-size: .86rem; }
.quest-topbar .brand { color: #fff; font-weight: 700; }
.page-progress { height: 7px; margin-bottom: 24px; border-radius: 99px; overflow: hidden; background: #ffffff14; }
.page-progress > span { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: linear-gradient(90deg, #ffbd4a, #ff7955); box-shadow: 0 0 18px #ffb443a6; }

body > .container {
  padding: clamp(25px, 5vw, 52px); border: 1px solid #ffffff1a; border-radius: 26px;
  background: linear-gradient(145deg, #1b2038f2, #131727f5); box-shadow: 0 28px 76px #0008;
}
h1 { margin: 0 0 10px; color: #ffc65a; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h2 { max-width: 19ch; margin: 0 0 28px; font: 700 clamp(2rem, 6.2vw, 4.5rem)/1.05 Unbounded, Manrope, sans-serif; letter-spacing: -.055em; color: #fff; }
h3 { margin: 0; font: 700 clamp(1.25rem, 3vw, 1.8rem)/1.25 Unbounded, Manrope, sans-serif; color: #ffc65a; }
p { margin: 0 0 1.25em; font-size: clamp(1rem, 1.8vw, 1.13rem); }
strong, em, .em2 { color: #ffca67; }
em { font-style: normal; font-weight: 700; }
.pm { color: #afb4c9; font-style: italic; }
.pm2 { color: #fff; font-style: italic; }
.centered { text-align: center; }

.container .container {
  margin: 24px 0; padding: clamp(18px, 4vw, 28px); border: 1px solid #ffbd4a3b; border-radius: 18px;
  background: linear-gradient(120deg, #ffc14a12, #ffffff05); color: #f7f3e9;
}
.container .container p:last-child { margin-bottom: 0; }
img, video { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 14px; box-shadow: 0 15px 38px #0008; }
video { width: min(100%, 560px); }

.navigation-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.question-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1px solid #ffffff1f; border-radius: 14px; background: #ffffff0d; color: #fff; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.question-button:hover { transform: translateY(-2px); border-color: #ffc65a99; background: #ffffff18; }
.start-button { color: #d7d9e7; }
.navigation-buttons .question-button:last-child { margin-left: auto; border-color: transparent; background: linear-gradient(135deg, #ffca5e, #ff785b); color: #271607; box-shadow: 0 10px 25px #ff9e4030; }

.quest-index h1, .quest-hub h1 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.06em; text-transform: none; }
.quest-index h2, .quest-hub h2 { max-width: none; font: 600 1.05rem/1.6 Manrope, sans-serif; color: #c3c6d7; letter-spacing: 0; }
.quest-list { display: grid; gap: 10px; margin-top: 26px; }
.quest-list .question-button { justify-content: flex-start; text-align: left; }
.quest-list .question-button::before { content: attr(data-number); flex: 0 0 2.2rem; color: #ffc65a; font-weight: 800; }
.quest-hub .question-button { margin-top: 12px; border-color: transparent; background: linear-gradient(135deg, #ffca5e, #ff785b); color: #281606; }
.not-found { text-align: center; }

@media (max-width: 600px) {
  body { padding: 18px 14px 30px; }
  .quest-topbar { font-size: .76rem; }
  body > .container { border-radius: 20px; }
  h2 { margin-bottom: 22px; }
  .navigation-buttons { flex-wrap: wrap; }
  .navigation-buttons .question-button { flex: 1 1 140px; }
  .quest-list .question-button { padding: 13px 14px; }
}
