:root {
  --navy: #111a2d;
  --navy-2: #1a2744;
  --gold: #edb417;
  --gold-2: #f0c75e;
  --cream: #f7f4ec;
  --ink: #1f2937;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "DM Serif Display", serif;
  color: var(--navy);
  margin: 0 0 0.4em;
}

a { color: inherit; }

.fyp-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 26, 45, 0.08);
  position: sticky;
  top: 0;
  z-index: 40;
}

.fyp-header__inner,
.fyp-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.fyp-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.fyp-brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.fyp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fyp-header__phone {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.fyp-header__phone:hover,
.fyp-brand:hover { color: var(--gold); }

@media (max-width: 639px) {
  .fyp-header__phone { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(237, 180, 23, 0.28);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn.ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.intro {
  background: var(--navy);
  color: #fff;
  padding: 3.25rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.12;
  pointer-events: none;
}

.intro::before {
  width: 22rem;
  height: 22rem;
  top: -8rem;
  right: -6rem;
}

.intro::after {
  width: 16rem;
  height: 16rem;
  bottom: -8rem;
  left: -5rem;
}

.intro .wrap { position: relative; z-index: 1; }

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.intro h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  margin: 0.6rem 0;
}

.intro h1 em {
  color: var(--gold);
  font-style: italic;
}

.intro p {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

#quiz {
  background: radial-gradient(circle at 20% 0, #24396b, var(--navy) 62%);
  color: #fff;
  padding: 2.5rem 1.25rem 4.5rem;
}

.wrap { max-width: 68rem; margin: 0 auto; }

.qcard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(237, 180, 23, 0.28);
  border-radius: 24px;
  padding: 1.75rem;
  max-width: 48rem;
  margin: 1.75rem auto 0;
  position: relative;
  min-height: 28rem;
  overflow: hidden;
}

.qtop {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.ring { width: 56px; height: 56px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: rgba(255, 255, 255, 0.16); }
.ring .fg {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.6, 0, 0.2, 1);
  transform: rotate(-90deg);
  transform-origin: center;
}

.qnum { font-size: 0.85rem; color: var(--gold-2); }

.step { display: none; animation: fyp-in 0.45s ease; }
.step.on { display: block; }

@keyframes fyp-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

.qh {
  font-family: "DM Serif Display", serif;
  font-size: 1.45rem;
  margin: 0 0 1rem;
  color: #fff;
}

.bodywrap {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.fig {
  width: 230px;
  height: 420px;
  margin: 0 auto;
  padding: 0 34px;
  box-sizing: content-box;
  max-width: calc(100% - 68px);
  position: relative;
}

.fig svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.skin {
  fill: url(#fyp-skin);
  stroke: var(--gold);
  stroke-width: 0.9;
}

.mus {
  fill: none;
  stroke: rgba(237, 180, 23, 0.5);
  stroke-width: 0.6;
  stroke-linecap: round;
  pointer-events: none;
}

.hs { cursor: pointer; }
.hdot {
  fill: var(--navy);
  stroke: var(--gold-2);
  stroke-width: 1.3;
  transition: 0.25s;
}
.hs:hover .hdot { fill: rgba(237, 180, 23, 0.55); }
.hs.sel .hdot { fill: var(--gold-2); }

.hpulse {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: fyp-hp 2s ease-out infinite;
}
.hs.sel .hpulse { stroke-width: 1.6; }

@keyframes fyp-hp {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hl {
  font-size: 9px;
  fill: rgba(255, 255, 255, 0.82);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.hs.sel .hl { fill: var(--gold-2); }
.hlead {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.6;
  pointer-events: none;
}
.hs.sel .hlead { stroke: var(--gold-2); }

.sci {
  pointer-events: none;
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 3px #f0c75e) drop-shadow(0 0 6px #edb417);
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}
.sci.on {
  opacity: 1;
  animation: fyp-scid 1.4s ease forwards, fyp-scip 1.6s 1.4s ease-in-out infinite;
}

@keyframes fyp-scid { to { stroke-dashoffset: 0; } }
@keyframes fyp-scip { 50% { opacity: 0.7; } }

.opts {
  display: grid;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
}

.opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  transition: 0.2s;
}

.opt:hover,
.opt.sel {
  border-color: var(--gold);
  background: rgba(237, 180, 23, 0.22);
}

.timeline { margin: 2.5rem 0.6rem 0.6rem; }
.timeline input { width: 100%; accent-color: var(--gold); }
.tlabels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.4rem;
}
.tbig {
  text-align: center;
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  color: var(--gold-2);
  min-height: 3rem;
}
.temoji {
  font-size: 3rem;
  text-align: center;
  display: block;
  transition: transform 0.3s;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  background: none;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  transition: 0.25s;
}
.chip.sel {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  animation: fyp-pop 0.35s;
}

@keyframes fyp-pop { 50% { transform: scale(1.12); } }

.sub { margin-top: 1rem; }
.sub p { margin: 0 0 0.5rem; color: rgba(255, 255, 255, 0.8); }

.qnav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.result { text-align: center; }
.result .badge { font-size: 3rem; animation: fyp-bounce 0.8s; }
.result h3 { color: #fff; font-size: 1.65rem; }
.result h3 em { color: var(--gold); font-style: italic; }

@keyframes fyp-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.rbox {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: left;
  margin: 1rem 0;
  border-left: 5px solid var(--gold);
}

.learn {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.35rem;
  text-align: left;
  margin-top: 1.1rem;
}

.learn h4 {
  font-family: "DM Serif Display", serif;
  color: var(--navy);
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.reads { display: grid; gap: 0.65rem; }
.read {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem;
  border-left: 4px solid var(--gold);
}
.read b { color: var(--navy); }
.read p { margin: 0.3em 0 0; font-size: 0.92rem; }

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  justify-content: center;
}

.ctas a { text-decoration: none; }

.fine {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.85rem;
}

.toast {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s;
}
.toast.show { opacity: 1; transform: none; }

.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  top: -10px;
  pointer-events: none;
  animation: fyp-fall 1.6s ease-in forwards;
}

@keyframes fyp-fall {
  to { transform: translateY(520px) rotate(720deg); opacity: 0; }
}

.player {
  margin-top: 0.65rem;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  min-width: 0;
  align-items: center;
}

.pp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(240, 199, 94, 0.5);
}

.player.playing .pp { animation: fyp-ring 1.6s infinite; }

@keyframes fyp-ring {
  70% { box-shadow: 0 0 0 10px rgba(240, 199, 94, 0); }
}

.pl-t {
  font-size: 0.72rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wave {
  display: flex;
  gap: 2px;
  height: 18px;
  align-items: center;
  margin: 3px 0;
}
.wave i {
  width: 3px;
  height: 30%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.player.playing .wave i {
  background: var(--gold);
  animation: fyp-wv 0.9s ease-in-out infinite;
}

@keyframes fyp-wv { 50% { height: 100%; } }

.bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.bar b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold-2);
  border-radius: 3px;
}

.ptime {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.spd {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  border-radius: 14px;
  padding: 4px 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.75rem;
}

.more-links {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.more-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(237, 180, 23, 0.5);
}

.fyp-footer {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.fyp-footer h3,
.fyp-footer h4 { color: var(--gold); }

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

@media (min-width: 768px) {
  .fyp-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.fyp-footer p,
.fyp-footer a { color: rgba(255, 255, 255, 0.7); }
.fyp-footer a:hover { color: var(--gold); }
.fyp-footer .phone { color: #fff; font-weight: 600; font-size: 1.05rem; }

.fyp-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .qcard { padding: 1.15rem; }
  .fig { width: 170px; height: 320px; padding: 0 22px; }
}
