:root {
  --bg-start: #021521;
  --bg-end: #182a34;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-selected: #ffffff;
  --text-main: #ffffff;
  --text-dark: #05141f;
  --line-muted: rgba(255, 255, 255, 0.35);
  --line-active: #ffffff;
  --accent-neon-cyan: #43f0ff;
  --accent-neon-pink: #ff4db8;
  --accent-neon-lime: #b7ff40;
  --transition-ms: 300ms;
  --transition-ease: ease-in-out;
}

.quiz-component{
  margin-bottom: 80px;
}

.quiz_wrapper {
  min-height: max-content;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--text-main);

  background:
    radial-gradient(circle at 10% 5%, rgba(67, 240, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(255, 77, 184, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);

  max-width: 480px;
  margin: 0 auto;
}

.app {
  width: 480px;
  max-width: 100%;
  height: max-content;
  max-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
  linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  min-height: 780px;
}

.screen-stack {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 780px;
}

.screen {
  position: relative;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.landing-screen {
  padding-top: 0;
  min-height: 780px;
}

.landing-copy {
    position: relative;
    top: 0px;
    left: 0;
    right: 0;
    padding: 6vh 10px 18vh;
    /* background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.77) 9.51%, rgba(0, 0, 0, 0.0001) 100%); */
    background: linear-gradient(180.13deg, #000000 0.12%, rgba(0, 0, 0, 0.77) -0.49%, rgba(0, 0, 0, 0.05) 94.89%);
    z-index: 1;
}

.landing-copy h1 {
    font-size: 70px;
    line-height: 1.3;
    text-align: center;
    font-family: 'KiaM';
    color: #fff;
}

.landing-copy p {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
    font-weight: 500;
    font-family: 'KiaM';
}

.hero-image-wrap {
  margin-top: 0;
  width: 100%;
  margin-left: 0;
  height: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 0;
  bottom: 30px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-footer {
    position: absolute;
    bottom: 0;
    text-align: center;
    padding: 12vh 15px 5vh;
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.71) 36.34%, rgba(0, 0, 0, 0.0001) 103.13%);
    z-index: 1;
}

.start-btn {
  margin: auto auto 18px;
}

.screen.question-screen {
	padding: 10px 20px;
}

.question-head {
	margin-top: 20px;
	min-height: 120px;
	display: grid;
	place-items: center;
}
.question-head.question-head--fade-down {
  animation: questionFadeDown var(--transition-ms) var(--transition-ease) both;
}

.question-head h2 {
  text-align: center;
  font-size: 28px;
  line-height: 1.3;
}

.options-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  min-height: 65vh;
}

.option-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text-main);
  padding: 8px;
  min-height: 233px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--transition-ms) var(--transition-ease),
    background-color var(--transition-ms) var(--transition-ease),
    opacity var(--transition-ms) var(--transition-ease),
    box-shadow var(--transition-ms) var(--transition-ease);
}

.option-card:hover {
  transform: translateY(0px);
}

.option-card:active {
  transform: none;
}

.option-card.option-card--selected {
  background: var(--panel-selected);
  color: var(--text-dark);
}

.option-card.option-card--dimmed {
  opacity: 0.45;
  border:none;
}

.option-visual {
  width: 100%;
  height: 21.5vh;
  overflow: hidden;
}

.option-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-option-id="q_01_a_02"] .option-visual img {
  object-position: 30%;
}

[data-option-id="q_03_a_04"] .option-visual img {
  object-position: left;
}

[data-option-id="q_01_a_03"] .option-visual img {
  object-position: 76%;
}

[data-option-id="q_01_a_04"] .option-visual img {
  object-position: 30%;
}

[data-option-id="q_02_a_02"] .option-visual img {
  object-position: 45%;
}

[data-option-id="q_02_a_03"] .option-visual img {
  object-position: 30%;
}

[data-option-id="q_03_a_02"] .option-visual img {
  object-position: 60%;
}

[data-option-id="q_04_a_02"] .option-visual img {
  object-position: right;
}

[data-option-id="q_04_a_04"] .option-visual img {
  object-position: 10%;
}

[data-option-id="q_05_a_01"] .option-visual img {
  object-position: 60%;
}

.option-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(255, 77, 184, 0.12), rgba(67, 240, 255, 0.1)),
    #59636c;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.option-label {
  min-height: 52px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  display: grid;
  place-items: center;
  font-family: "KiaB";
}

.quiz-footer {
	margin-top: auto;
	margin-bottom: 4px;
	height: 12vh;
	display: flex;
	justify-content: end;
	flex-direction: column;
}

.quiz-footer .progress-text {
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 15px;
}

.pager {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 6px;
  margin-bottom: 10px;
}

.pager-line {
  height: 1px;
  background: var(--line-muted);
}

.pager-line.active {
  background: var(--line-active);
}

.result-screen {
  padding: 32px 15px 40px;
  --result-accent: #37434c;
  --result-accent-contrast: #ffffff;
}

.result-head h2 {
  text-align: center;
  font-size: 22px;
  line-height: 1.3;
}

.result-image-shell {
	position: relative;
	margin-top: 20px;
	background: #fff;
	border-radius: 8px;
	min-height: 300px;
  padding: 10px 10px 0;
	overflow-x: clip;
	overflow-y: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.result-image-frame {
  margin: 0;
  background: #e5e7e8;
}

.result-image {
  width: 100%;
  height: 249px;
  object-fit: cover;
  display: block;
}

.carousel-shell {
	position: relative;
	margin-top: 20px;
	background: #fff;
	border-radius: 8px;
	min-height: 300px;
	overflow-x: clip;
	overflow-y: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.result-swiper {
  width: 100%;
}

#result-swiper {
    box-sizing: border-box;
    width: 94%;
    margin: 0 3%;
}

.result-swiper .swiper-wrapper {
  touch-action: pan-y;
}

.result-slide {
  width: 100%;
  flex: 0 0 100%;
  padding: 10px 0px 0;
}

.slide-media {
  margin: 0;
  position: relative;
}

.slide-media img {
  width: 100%;
  height: 249px;
  object-fit: cover;
}

.result-swiper-prev,
.result-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-90%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 20, 31, 0.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.result-swiper-prev {
  left: 8px;
}

.result-swiper-prev img {
  transform: rotate(90deg);
}

.result-swiper-next {
  right: 8px;
}

.result-swiper-next img {
  transform: rotate(-90deg);
}

.result-swiper-prev img, .result-swiper-next img {
    width: 24px;
    height: 15px;
}

.result-swiper-prev::after,
.result-swiper-next::after {
  content: "";
}

.result-swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  position: static;
}

.result-bullet {
  width: 26px;
  height: 2px;
  border: 0;
  background: var(--line-muted);
  cursor: pointer;
  opacity: 1;
}

.result-bullet-active {
  background: var(--line-active);
}

.result-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.result-pager .dot {
  width: 26px;
  height: 2px;
  border: 0;
  background: var(--line-muted);
  cursor: pointer;
}

.result-pager .dot.active {
  background: var(--line-active);
}

.result-content {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.result-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-left: 15px;
}

.avatar-dot {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: var(--result-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(5, 20, 31, 0.15);
  flex-shrink: 0;
}

.result-title-row h3 {
  font-size: 18px;
  line-height: 1.3;
}

.result-title-row .sub-heading {
	margin-top: 2px;
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 0;
	font-family: kiaM,arial,Hevetica;
}

.share-icon {
  margin-left: auto;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.grades-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-content .available-label {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: 5px;
}

.grade-row {
  display: flex;
  gap: 12px;
}

.grade-pill {
  /* border: 1px solid var(--result-accent); */
  border: 1px solid #fff;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 1px 12px;
  font-size: 14px;
  line-height: 20px;
}

.result-content .result-copy {
  font-size: 14px;
  line-height: 1.5;
}

.first-choices-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.first-choices h4 {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.3;
}

.first-choices-meta {
  display: flex;
  align-items: center;
  gap: 2px;
}

.first-choices h4 img,
.first-choices-meta img {
  width: 16px;
  height: 16px;
}

.first-choices-meta span {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.first-choices ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.first-choices li {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
}

.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn {
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 8px 24px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-ms) var(--transition-ease), box-shadow var(--transition-ms) var(--transition-ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--text-dark);
  background: #fff;
  min-height: 34px;
  box-sizing: border-box;
}

.btn-outline {
  color: #fff;
  border-color: #fff;
  background: transparent;
  min-height: 34px;
  box-sizing: border-box;
}

p.info {
    margin: 0;
    font-size: 16px;
    font-family: 'KiaM';
    font-weight: 400;
}

h2.footer-heading {
    font-size: 70px;
    font-family: 'KiaM';
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 500;
}

.landing-footer span.subheading {
    font-size: 28px;
    display: block;
    margin-bottom: 0;
    text-transform: uppercase;
    font-family: 'KiaM';
    line-height: 1.5;
}

.start-btn {
  padding: 16px 24px;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 0px;
  font-family: 'KiaB';
}

.result-content .retake-link {
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
  line-height: 20px;
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
}

.result-retake-action {
	text-align: center;
}

.transition-out {
  animation-duration: var(--transition-ms);
  animation-timing-function: var(--transition-ease);
  animation-fill-mode: forwards;
}

.transition-out.slide-left {
  animation-name: slideOutLeft;
}

.transition-out.fade-in {
  animation-name: fadeOut;
}

.transition-in {
  animation-duration: var(--transition-ms);
  animation-timing-function: var(--transition-ease);
  animation-fill-mode: both;
}

.transition-in.slide-left {
  animation-name: slideInRight;
}

.transition-in.fade-in {
  animation-name: fadeIn;
}

.trim-label {
	color: #05141f;
	text-align: center;
	margin-top: 10px;
}

.result-slide.swiper-slide {
	box-sizing: border-box;
}

.carousel-controls {
	height: calc(100% - 38px);
	width: 100%;
	position: absolute;
	display: inline-block;
	top: 10px;
	padding: 0 10px;
	box-sizing: border-box;
}

.swiper-pagination.result-swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
	transform: translateY(25px);
}

.swiper-button-next.result-swiper-next {
	right: var(--swiper-navigation-sides-offset,0px);
	left: auto;
	height: 100%;
  width: 55px;
	top: 22px;
	transform: none;
	border-radius: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #051520 117.84%);
}

.swiper-button-next.result-swiper-next::after{
  display: none;
}

.swiper-button-prev.result-swiper-prev {
	left: var(--swiper-navigation-sides-offset,0px);
	right: auto;
	height: 100%;
	top: 22px;
  width: 55px;
	transform: none;
	border-radius: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #051520 117.84%);

}

.swiper-button-prev.result-swiper-prev::after{
  display: none;
}

.result-swiper-prev img, .result-swiper-next img{
	width: 15px;
	height: 10px;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-8%);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(8%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes questionFadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (min-width: 420px) and (max-width: 767px) and (orientation: landscape) {
  .landing-screen {
    min-height: 680px;
  }

  .landing-copy {
    padding: 6vh 10px 38vh;
  }

  .landing-footer {
    padding: 30vh 15px 5vh;
    position: absolute;
  }

  .question-head {
    margin-top: 0px;
    min-height: 90px;
  }

  .option-card {
    min-height: 230px;
  }

  .option-visual {
    height: 40vh;
  }

  .quiz-footer {
    margin-bottom: 0px;
    height: 20vh;
  }

  .app {
    max-height: fit-content;
  }
}

@media (max-width: 460px) {
  .app {
    width: 100%;
    height: 100%;
    min-height: auto;
    max-height: 100%;
  }

  .screen {
    padding-left: 20px;
    padding-right: 20px;
  }

  article.screen.landing-screen {
    padding: 0;
    height: 100%;
  }
}

@media screen and (min-width: 768px) {
  .app {
    display: none;
  }
}
