/*==================================================
    MAHINDRA SCORPIO GAME
    Version : 1.0
==================================================*/

/*==================================================
    FONTS
==================================================*/

@font-face {
  font-family: "Georama";
  src: url("../fonts/Georama-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Georama";
  src: url("../fonts/Georama-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/*==================================================
    RESET
==================================================*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  font-family: "Georama";
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Georama", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*==================================================
    GAME CONTAINER
==================================================*/

.game-screen {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  background: url("../images/game-bg.jpg") center center no-repeat;
  background-size: cover;
  overflow-x: hidden;
  overflow-y: auto;
}

/*==================================================
    FIXED HEADER
==================================================*/

.game-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 100;
}

/*==================================================
    MAHINDRA LOGO
==================================================*/

.mahindra-logo {
  position: absolute;
  top: 15px;
  left: 0;
}

.mahindra-logo img {
  display: block;
  width: 100px;
  /*125px; */
}

/*==================================================
    SCORPIO LOGO
==================================================*/

.scorpio-logo {
  width: 190px;
  margin: -58px auto 28px;
  /* width: 300px;
  margin: 0 auto 28px; */
}

.scorpio-logo img {
  width: 100%;
}

/* audio */
.audio {
  position: relative;
}

.audio img {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
}

/*==================================================
    SCREEN WRAPPER
==================================================*/

.screen-wrapper {
  position: relative;

  width: 100%;
  height: 100%;
}

/*==================================================
    COMMON SCREEN
==================================================*/

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: none;
}

/*==================================================
    ACTIVE SCREEN
==================================================*/

.screen.active {
  display: block;
}

/*==================================================
    COMMON BUTTON
==================================================*/

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: "Georama", sans-serif;
}

/*==================================================
    INPUT
==================================================*/

input {
  font-family: "Georama", sans-serif;

  outline: none;
}

/*==================================================
    IMAGE
==================================================*/

img {
  max-width: 100%;

  display: block;

  user-select: none;

  -webkit-user-drag: none;
}

/*==================================================
    LINKS
==================================================*/

a {
  text-decoration: none;

  color: inherit;
}

/*==================================================
    UTILITIES
==================================================*/

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/*==================================================
    ANIMATION PLACEHOLDER
==================================================*/

/* Fade In */

/* Fade Out */

/* Scale */

/*==================================================
    SCREEN 1
==================================================*/

/*==================================================
    SCREEN CONTENT
==================================================*/

.screen-content {
  position: relative;

  width: 100%;
  height: 100%;
}

/*==================================================
    HERO SECTION
==================================================*/

.hero-section {
  position: absolute;

  top: 209px;

  left: 50%;

  width: 100%;

  transform: translateX(-50%);

  text-align: center;
}

/*==================================================
    HERO TITLE
==================================================*/

.hero-title {
  display: flex;

  flex-direction: column;

  line-height: 0.95;
}

.title-white {
  margin-top: -20px;
  color: #ffffff;
  font-size: 32px;
  line-height: 37px;
  font-weight: 700;
}

.title-red {
  color: #bc0103;
  font-size: 20px;
  /* font-size: 31px; */
  font-weight: 700;
  margin-top: 6px;
}

/*==================================================
    HERO SUBTITLE
==================================================*/

.hero-subtitle {
  margin-top: 18px;

  color: #ffffff;

  font-size: 18px;

  font-weight: 400;
}

/*==================================================
    REWARD SECTION
==================================================*/

.reward-section {
  position: absolute;

  top: 335px;

  left: 50%;

  width: 100%;

  transform: translateX(-50%);

  text-align: center;
}

.reward-section h2 {
  margin-top: -100px;
  color: #fff;
  /* color: #c8102e; */
  /* font-size: 21px; */
  font-size: 16px;
  line-height: 12;
  font-weight: 500;
}

/*==================================================
    LEVEL CARD
==================================================*/

.level-card {
  width: 88%;
  max-width: 590px;
  border: 0.5px solid #bc0103;
  border-radius: 10px;
  /* margin: 60px auto 80px; */
  margin: -45px auto 0px;
  padding: 35px 24px 25px;
  position: absolute;
  top: 397px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(34, 30, 30, 0.94) 50%,
    rgba(0, 0, 0, 0.96) 100%
  );
}
.level-card h3 {
  margin-top: -20px;
  /* font-size: 58px; */
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  text-align: center;
}

.level-card h4 {
  margin-top: 15px;
  /* 30px */
  font-size: 24px;
  /* 27px */
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
  /* 32px; */
}

.description-box {
  /* margin-top: 34px; */
  margin-top: -12px;
  padding: 28px 22px;

  border: 1px solid #bc0103;

  border-radius: 10px;
}

.description-box p {
  font-size: 18px;

  line-height: 1.3;

  text-align: center;

  max-width: 420px;

  margin: -12px auto;
  /* 0 */
}

.red-divider {
  width: 40px;

  height: 5px;

  background: #bc0103;

  /* margin: 24px auto; */
  margin: 15px auto;
}

#playBtn {
  background: none;
  display: block;
  /* margin: 34px auto 0; */
  margin: 18px auto 0;
}

#playBtn img {
  width: 160px;
  display: block;
}

/*==================================================
    SCREEN 2 SCORPIO LOGO
==================================================*/

.screen2-logo {
  position: absolute;

  top: 28px;

  right: -15px;

  z-index: 100;
}

.screen2-logo img {
  width: 237px;
  height: auto;

  display: block;
}

/*==================================================
    FORM CARD
==================================================*/
.form-card {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 590px;
  /* min-height: 840px; */
  min-height: 100%;
  /* padding: 70px 34px 50px; */
  padding: 50px 20px 30px;
  border: 1px solid #bc0103;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(36, 30, 30, 0.94) 50%,
    rgba(0, 0, 0, 0.97) 100%
  );
  text-align: center;
}

/*==================================================
    TITLE
==================================================*/

.form-title {
  margin: -20px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: #ffffff;
}

/*==================================================
    DIVIDER
==================================================*/

.form-card .red-divider {
  width: 50px;

  height: 5px;

  margin: 40px auto 30px;
  background: #bc0103;
}

/*==================================================
    INPUTS
==================================================*/

.input-box {
  margin-bottom: 34px;
}

.input-box input {
  width: 100%;

  height: 53px;

  padding: 0 22px;

  border: 1px solid #bc0103;

  border-radius: 8px;

  background: #000;

  color: #ffffff;

  font-size: 22px;

  font-family: "Georama", sans-serif;
}

.input-box input::placeholder {
  color: #4d4d4d;
}

/*==================================================
    SUBMIT BUTTON
==================================================*/

#submitBtn {
  background: none;

  margin-top: 0px;
}

#submitBtn img {
  width: 185px;

  display: block;

  margin: 0 auto;
}

/*=========================================
CUSTOM CHECKBOX
=========================================*/

.consent-wrapper {
/*  margin: 30px 0 20px;*/

  text-align: left;

}

.custom-checkbox {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  cursor: pointer;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 26px;

  height: 26px;

  border: 1px solid #bc0103;

  border-radius: 4px;

  flex-shrink: 0;

  position: relative;

  margin-top: 4px;

  transition: 0.25s;
}

.custom-checkbox input:checked + .checkmark {
  background: #bc0103;
}

.custom-checkbox input:checked + .checkmark::after {
  content: "✓";

  position: absolute;

  left: 50%;

  top: 50%;

  transform: translate(-50%, -55%);

  color: #fff;

  font-size: 18px;

  font-weight: bold;
}

.consent-text {
  color: #ffffff !important;

  /* font-size: 17px; */
  font-size: 12px !important;
  /* line-height: 1.6; */
  line-height: 1.4;
}

.consent-text strong {
  color: #fff;

  font-weight: 700;
}

.consent-text a {
color: #ffffff !important;

  text-decoration: none;

  font-weight: 400;
   letter-spacing: 1.8px;
}

/*=========================================
    SCREEN 3
=========================================*/

.instruction-card {
  position: absolute;

  /* top: 170px; */
  top: 80px;
  left: 50%;

  transform: translateX(-50%);

  width: 88%;

  max-width: 590px;

  /* padding: 45px 38px; */
  padding: 20px 20px;
  border: 1px solid #bc0103;

  border-radius: 10px;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(34, 30, 30, 0.93) 50%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

.instruction-title {
  text-align: center;
  font-size: 30px;
  line-height: 30px;

  font-weight: 700;
  margin-top: 0px;
}

.instruction-card .red-divider {
  /* margin: 24px auto 40px; */
  margin: 15px auto 15px;
}

.instruction-row {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-bottom: 20px;
}

.instruction-row2 {
  display: flex;

  align-items: center;

  gap: 16px;
  padding-top: 0px;
  margin-bottom: 14px;
}

.instruction-icon {
  /* width: 105px;
  height: 105px; */
  width: 65px;
  height: 65px;
  border: 1px solid #bc0103;

  border-radius: 16px;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-shrink: 0;
}

.instruction-icon img {
  width: 40px;
}

.instruction-row p {
  color: #ffffff;

  font-size: 16px;

  line-height: 1.3;
}

.instruction-row2 p {
  color: #ffffff;

  font-size: 16px;

  line-height: 1.3;
}

.instruction-line {
  height: 1px;

  background: #bc0103;

  /* margin: 18px 0 28px; */
  margin: 13px 0 13px;
}

#startBtn {
  display: block;

  margin: 10px auto 10px;

  background: none;
}

#startBtn img {
  width: 160px;
}

.remove_brd {
  border: none;
}

/*=========================================
SCREEN 4
=========================================*/

.question-wrapper {
  position: absolute;

  /* top: 170px; */
  top: 60px;
  left: 50%;

  transform: translateX(-50%);

  width: 88%;
}

.question-title {
  color: #bc0103;

  font-size: 30px;
  line-height: 40px;

  font-weight: 700;

  text-align: center;

  margin-top: 5px;
  margin-bottom: 10px;
}

.quiz-progress-bar {
  width: 200px;

  display: flex;

  justify-content: center;

  gap: 15px;

  /* margin: 28px 0 40px; */
  margin: 10px auto 20px;
}

.quiz-progress {
  width: 70px;

  height: 4px;

  background: #666;
}

.quiz-progress.active {
  background: #bc0103;
}

.question-text {
  text-align: center;

  font-size: 32px;

  margin-bottom: 35px;
}

.question-text h2 {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* .camera-frame {
    width: 320px;
    height: 420px;
    overflow: hidden;
} */

.camera-frame {
  margin: 0 auto;
  width: 280px;
  /* 100%; */

  /* height: 340px; */
  height: 280px;

  border: 1px solid #bc0103;

  border-radius: 18px;

  overflow: hidden;

  position: relative;

  background: #111;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  object-fit: cover;
  background: black;
  /* display: none; */
}

/* #cameraFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: black;
} */

.camera-placeholder {
  position: absolute;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 26px;

  color: #999;
}

#questionText {
  text-align: center;
  padding-bottom: 1rem;
  /* 2rem */
}

.answer-options {
  display: flex;

  justify-content: space-between;

  /* margin-top: 42px; */
  margin-top: 15px;
  /* 25px; */
}

.answer-card {
  width: 48%;

  background: #272222;

  border-radius: 18px;

  overflow: hidden;

  text-align: center;

  cursor: pointer;
  transition: 0.35s;
}

.answer-card img {
  width: 100%;
  padding: 10px;
}

.answer-card h4 {
  /* font-size: 20px; */
  font-size: 16px;
  font-weight: 400;

  /* padding: 20px; */
  padding: 0px;
  line-height: 1.2;
  margin-top: 0px;
}

.answer-divider {
  width: 85%;

  height: 1px;

  background: #6c6c6c;

  margin: auto;
}

.answer-card span {
  display: block;

  /* padding: 18px; */
  padding: 10px;
  color: #bc0103;

  font-size: 15px;

  font-weight: 700;
}

.answer-card.selected {
  border: 4px solid #14d85a;

  box-shadow: 0 0 18px rgba(20, 216, 90, 0.6);
}

#rightImage,
#leftImage {
  border-radius: 18px;
}

/*=========================================
SCREEN 5
=========================================*/

.calculate-wrapper {
  position: absolute;

  top: 100px;
  left: 50%;

  transform: translateX(-50%);

  width: 88%;
}

.calculate-title {
  text-align: center;

  color: #bc0103;

  font-size: 26px;

  font-weight: 700;

  margin-top: 0px;
  margin-bottom: 0px;
}

.calculate-card {
  /* margin-top: 35px; */
  margin-top: 90px;
  border: 1px solid #bc0103;

  border-radius: 15px;
  padding: 15px 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.97),
    rgba(36, 30, 30, 0.94),
    rgba(0, 0, 0, 0.97)
  );

  text-align: center;
}

.calculate-card h3 {
  /* font-size: 30px; */
  font-size: 24px;
  line-height: 1.35;

  margin-top: 0;
  margin-bottom: 5px;
}

.score-circle {
  position: relative;

  /* display: block;

  width: 330px;

  height: 330px; */

  margin: 0 auto;
}

.score-circle svg {
  /* width: 100%; */
  width: 60%;
  height: 100%;

  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;

  stroke: #111;

  stroke-width: 18;
}

.circle-progress {
  fill: none;

  stroke: #bc0103;

  stroke-width: 18;

  stroke-linecap: round;

  stroke-dasharray: 565;

  stroke-dashoffset: 28;
}

.score-content {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;
}

#scoreValue {
  /* font-size: 78px; */
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  /* height: 30%; */
  margin-bottom: 5px;
}

.score-content small {
  font-size: 15px;
  line-height: 1;
  padding-bottom: 7px;
}

.score-text {
  /* margin-top: 35px;

  font-size: 30px; */

  margin-top: 10px;
  margin-bottom: 0px;

  font-size: 24px;

  font-weight: 700;

  line-height: 1.2;
}

#level2Btn {
  display: block;

  /* margin: 30px auto; */
  margin: 15px auto;
  background: none;
}

#level2Btn img {
  width: 220px;
  margin: 15px;
}

.footer-note {
  text-align: center;

  font-size: 12px;
  /* 14px */

  color: #ffffff;

  opacity: 0.8;

  /* margin: 18px auto 45px; */
  margin: 10px auto 10px;
  /* line-height: 1.5; */
}

#screen5 .big-logo {
  display: none;
}

/*=========================================
LEVEL 2 INSTRUCTION
=========================================*/

.level2-card {
  top: 100px;

  padding: 25px;
}

.keyIcon {
  width: 30%;
  height: 30%;
}

.level2-card .instruction-title {
  /* font-size: 34px; */
  font-size: 24px;
  line-height: 1.3;
}

.level2-card .instruction-row {
  gap: 20px;

  /* margin-bottom: 22px; */
  margin-bottom: 12px;
}

.level2-card .instruction-row p {
  font-size: 16px;

  line-height: 24px;
  margin-bottom: 0;
}

/* Same icon size as Level 1 */

.level2-card .instruction-icon {
  /* width: 105px;

  height: 105px; */
  width: 65px;

  height: 65px;
}

.level2-card .instruction-icon img {
  width: 40px;

  height: 40px;

  object-fit: contain;
}

#level2StartBtn {
  display: block;

  margin: 15px auto 15px;

  background: none;
}

#level2StartBtn img {
  width: 160px;

  display: block;
}

.loadKey img {
  width: 40px;
  max-width: 40px;
}

/*=========================================
SCREEN 7
=========================================*/

#screen7 {
  position: relative;

  overflow: hidden;
}

/* .camera-screen {
  position: absolute;

  inset: 0;

  z-index: 1;
} */

.camera-screen {
  position: absolute;
  /*relative*/
  width: 100%;
  height: 100%;
}

/* #rearCamera {
  width: 100%;

  height: 100%;

  object-fit: cover;

  background: #111;
} */

#rearCamera {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.scan-overlay {
  position: absolute;

  inset: 0;

  z-index: 5;
}

/* Scan Frame */

.scan-frame {
  position: absolute;

  left: 50%;

  top: 52%;

  transform: translate(-50%, -50%);

  width: 82%;

  height: 68%;

  border: 1px solid #bc0103;

  border-radius: 18px;
}

/* Corners */

.corner {
  position: absolute;

  width: 42px;

  height: 42px;

  border: 6px solid #fff;
}

.tl {
  top: 28px;
  left: 28px;

  border-right: none;
  border-bottom: none;
}

.tr {
  top: 28px;
  right: 28px;

  border-left: none;
  border-bottom: none;
}

.bl {
  bottom: 28px;
  left: 28px;

  border-right: none;
  border-top: none;
}

.br {
  bottom: 28px;
  right: 28px;

  border-left: none;
  border-top: none;
}

/* Laser */

.laser-line {
  position: absolute;

  left: 0;

  top: 50%;

  width: 100%;

  height: 4px;

  background: #ff0000;

  box-shadow: 0 0 18px #ff0000;
}

/* Dot Grid */

.dot-grid {
  position: absolute;

  inset: 0;

  background-image: radial-gradient(#fff 1px, transparent 1px);

  background-size: 22px 22px;

  opacity: 0.45;
}

/* Bottom Text */

.scan-instruction {
  position: absolute;

  left: 50%;

  bottom: 110px;

  transform: translateX(-50%);

  text-align: center;
}

.scan-instruction img {
  width: 44px;

  margin-bottom: 18px;
}

.scan-instruction p {
  font-size: 20px;

  line-height: 1.35;
}

.ar-state {
  position: absolute;

  inset: 0;

  display: none;
}

.ar-state.active {
  display: block;
}

.instruction-frame {
  position: absolute;

  left: 50%;

  top: 52%;

  transform: translate(-50%, -50%);

  width: 82%;

  height: 68%;

  border: 1px solid #bc0103;

  border-radius: 18px;

  overflow: hidden;
}

.instruction-image {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.key-large {
  position: absolute;
  width: 340px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.finger-touch {
  position: absolute;
  width: 240px;
  right: 20px;
  bottom: 40px;
  animation: tap 1.2s infinite;
}

@keyframes tap {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

/* Hide scan instruction on Tap Key screen */
#tapInstruction.active ~ .scan-instruction,
#tapInstruction.active + .scan-instruction {
  display: none;
}

/*=========================================
SCREEN 8
=========================================*/

.winner-card {
  position: absolute;
  /* top: 170px; */
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 590px;
  padding: 50px 10px 20px;
  /* 38px */
  border: 1px solid #bc0103;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.97),
    rgba(35, 30, 30, 0.94),
    rgba(0, 0, 0, 0.97)
  );
  text-align: center;
  overflow: hidden;
}

/* Gold Confetti */

.winner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/confetti.png") center top repeat;
  opacity: 0.55;
  pointer-events: none;
}

.winner-top {
  margin-top: -30px;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.winner-time {
  position: relative;
  width: 192px;
  height: 192px;
  /* margin: 0 auto 40px; */
  margin: 0 auto -60px;
  z-index: 2;
}

/* White Circular Ring */

.winner-ring {
  position: relative;
  /* width: 320px;
  height: 320px; */
  width: 144px;
  height: 144px;
  margin: auto;
  border: 11px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-40deg);
}

.winner-arrow {
  position: absolute;
  /* top: 21px;
  right: 9px; */
  top: 6px;
  right: -2px;
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: rotate(40deg);
}

.winner-score {
  margin-top: -45px;
  position: absolute;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;
}

.winner-score span {
  font-size: 58px;

  line-height: 1;

  color: #bc0103;

  font-weight: 700;
}

.winner-score small {
  font-size: 20px;

  color: #fff;
}

.winner-title {
  font-size: 30px;

  font-weight: 700;

  margin-top: 30px;
  margin-bottom: 10px;

  position: relative;

  z-index: 2;
}

.winner-desc {
  /* font-size: 22px; */
  font-size: 18px;
  line-height: 1.55;

  color: #fff;

  max-width: 470px;

  margin: 0 auto 15px;

  position: relative;

  z-index: 2;
}

.winner-desc strong {
  font-weight: 700;
}

/* .winner-cut {
  position: absolute;

  top: 22px;
  right: 44px;

  width: 22px;
  height: 18px;

  background: #fff;

  transform: rotate(40deg);
} */
#selfieBtn {
  background: none;

  display: block;

  margin: 0 auto;

  position: relative;

  z-index: 2;
}

#selfieBtn img {
  width: 300px;
}

.JP {
  width: 90%;
  margin: 0 auto;
}

.winner-TC {
  font-size: 12px;
  line-height: 18px;
  padding-top: 20px;
  margin-bottom: 0;
}

/*=========================================
SCREEN 9
=========================================*/

/* .selfie-card {
  position: absolute;
  top: 50px;
  /* 170px;*/
/*left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 590px;
  padding: 40px 35px 28px;
  /* 55px */
/*border: 1px solid #d40000;
  border-radius: 28px;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.96),
      rgba(40, 35, 35, 0.92),
      rgba(0, 0, 0, 0.96));
  text-align: center;
} */

/* .selfie-card {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 590px;
    padding: 40px 35px 28px;
    border: 1px solid #d40000;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(40, 35, 35, 0.92), rgba(0, 0, 0, 0.96))
    text-align: center;
} */

.selfie-card {
  position: absolute;
  top: 110px; /* 170px;*/
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 590px;
  padding: 40px 35px 28px; /* 55px */
  border: 1px solid #d40000;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96),
    rgba(40, 35, 35, 0.92),
    rgba(0, 0, 0, 0.96)
  );
  text-align: center;
}

/* .selfie-title {
  margin-top: -20px;
  font-size: 30px;
  /* 34px */
/* line-height: 40px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
} */

.selfie-title {
  margin-top: -20px;
  font-size: 26px;
  line-height: 40px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

/* .selfie-divider {
  /* width: 90px;
  height: 8px; */
/*width: 85px;
  height: 5px;
  background: #d40000;
  margin: 0 auto 18px;
  /*45px;*/
/*} */

.selfie-divider {
  /* width: 90px;
  height: 8px; */
  width: 50px;
  height: 5px;
  background: #d40000;
  margin: 0 auto 18px; /*45px;*/
}

.selfie-placeholder {
  display: flex;
  justify-content: center;
  margin-bottom: 23px;
}

.selfie-placeholder12 {
  display: flex;
  justify-content: center;
  /* margin-bottom: 23px; */
}

.camera-circle {
  width: 300px;
  height: 300px;
  margin-top: 10px;
  /* border-radius: 50%; */
  overflow: hidden;
  /* Clip video to the circle */
  background: #666;
  position: relative;
}

.camera-circle12 {
  width: 300px;
  height: 300px;
  margin-top: 10px;
  /* border-radius: 50%; */
  overflow: hidden;
  /* Clip video to the circle */
  /* background: #666; */
  position: relative;
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the circle without distortion */
  transform: scaleX(-1);
  display: block;
}

/* #webcam {
  width: 310px;
  height: 310px;
  /* border-radius: 50%; */
/* transform: scaleX(-1);*/
/* background: #666; */
/*}

.camera-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #666;
} */

.capture-btn {
  background: none;
  border: 0;
  cursor: pointer;
}

.capture-btn img {
  width: 100px;
  display: block;
  margin: auto;
}

/*=========================================
SCREEN 12
==========================================*/
/* .button-group {
  display: flex;
  gap:15px;
  justify-content: center;
  align-items: center;  
}

.button-group img {
  width:110px;
  height: auto;
} */

.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.button-group button {
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  background: transparent !important;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.button-group button img {
  display: block;
  background: transparent !important;
  border: 0;
  outline: none;
}
#captureBtn img {
  width: 130px;
}
#retakeSelfieBtn img {
  width: 130px;
}

/*=========================================
SCREEN 10
=========================================*/

.final-card {
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 590px;
  padding: 38px;
  border: 1px solid #bc0103;
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.97),
    rgba(35, 30, 30, 0.93),
    rgba(0, 0, 0, 0.97)
  );
}

.result-top {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.result-left {
  width: 43%;
}

.result-right {
  width: 52%;
  text-align: center;
}

.small-title {
  color: #fff;
  font-size: 12px;
  padding-bottom: 1.1rem;
}

.result-left h2 {
  font-size: 55px;
  color: #bc0103;
  line-height: 1;
  margin: 10px 0;
}

.match-title {
  font-size: 22px;
}

.result-divider {
  width: 2px;
  height: 190px;
  background: #bc0103;
}

.mini-ring {
  position: relative;
  width: 170px;
  height: 170px;
  margin: auto;
  border: 12px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-40deg);
}

.mini-arrow {
  position: absolute;
  top: 10px;
  right: 3px;
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: rotate(40deg);
}

.mini-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(40deg);
}

.mini-score span {
  font-size: 62px;
  color: #bc0103;
  font-weight: 700;
}

.mini-score small {
  font-size: 18px;
}

.result-photo {
  margin: 0px auto;
  /* 35px; */
  width: 220px;
  /*100%;*/
  height: 220px;
  /*420px;*/
  border: 1px solid #bc0103;
  border-radius: 10px;
  overflow: hidden;
}

.result-photo-preview {
  margin: 0px auto;
  /* 35px; */
  width: 100%;
  /*100%;*/
  height: 100%;
  /*420px;*/
  /* border: 1px solid #bc0103; */
  /* border-radius: 20px; */
  overflow: hidden;
  background-size: cover;
  background: #66666600;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
}

.ready-title {
  text-align: center;
  font-size: 22px;
  margin: 25px 0 35px;
}

#shareBtn,
#bookDriveBtn {
  display: block;
  margin: 20px auto;
  background: none;
}

#shareBtn img,
#bookDriveBtn img {
  width: 153px;
}

.reward-note {
  margin-top: 35px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}

#resultSelfie {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*=========================================
FINAL SCREEN HEADER
=========================================*/

.final-logo {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.final-logo img {
  width: 290px;
  display: block;
  margin: auto;
  transform: translateX(18px);
}

.final-heading {
  position: absolute;
  top: 175px;
  width: 100%;
  text-align: center;
}

.final-white {
  color: #fff;
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
}

.final-red {
  color: #bc0103;
  font-size: 37px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1;
}
.result-photo {
  position: relative;
}
#resultSelfie {
  position: absolute;
  top: 0;
  left: 0;
}
/*=========================================
VERSION 2
TERMS & CONDITIONS POPUP
=========================================*/

.terms-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 25px;

  z-index: 9999;

  visibility: hidden;

  opacity: 0;

  transition: 0.35s ease;
}

.terms-overlay.active {
  visibility: visible;

  opacity: 1;
}

/* Popup */

.terms-popup {
  width: 100%;

  max-width: 560px;

  background: #121212;

  border: 1px solid #bc0103;

  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

  transform: scale(0.9);

  transition: 0.35s;

  position: relative;
}

.terms-overlay.active .terms-popup {
  transform: scale(1);
}

/* Close */

.close-popup {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bc0103;
  border: 3px solid #000;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 100;
}

.close-popup:hover {
  background: #bc0103;
}

/* Heading */

.terms-popup h2 {
  color: #fff;

  text-align: center;

  font-size: 28px;

  font-weight: 700;

  margin: 35px 0 10px;

  letter-spacing: 1px;
}

/* Divider */

.popup-divider {
  width: 110px;

  height: 3px;

  background: #bc0103;

  margin: 0 auto 25px;
}

/* Scroll Area */

.terms-content {
  max-height: 340px;

  overflow-y: auto;

  padding: 0 30px;

  color: #fff;

  line-height: 1.8;

  font-size: 17px;
}

/* Scrollbar */

.terms-content::-webkit-scrollbar {
  width: 8px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: #bc0103;

  border-radius: 20px;
}

/* Button */

.accept-btn {
  width: 100%;

  height: 68px;

  border: none;

  background: #bc0103;

  color: #fff;

  font-size: 22px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.accept-btn:hover {
  background: #e40000;
}

.terms-content h3 {
  color: #bc0103;
  margin: 25px 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.terms-content p,
.terms-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
}

.terms-content ul,
.terms-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.terms-content li {
  margin-bottom: 10px;
}

/*=========================================
ERROR POPUP
=========================================*/

.error-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.error-overlay.active {
  display: flex;
}

.error-popup {
  position: relative;

  width: 90%;
  max-width: 560px;

  padding: 45px 35px 35px;

  border: 2px solid #bc0103;
  border-radius: 24px;

  background: #111;

  text-align: center;
}

.error-popup h2 {
  color: #bc0103;
  font-size: 34px;
  margin-bottom: 15px;
}

#errorText {
  font-size: 18px;
  line-height: 1.7;
  color: #fff;

  margin: 30px 0;
}

/*=========================================
SCREEN 10
=========================================*/

#screen10 {
  position: relative;
  overflow: hidden;
}

.final-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7rem;
}

/*------------------------------------
Logo
------------------------------------*/

.final-screen-logo {
  width: 160px;
  display: block;
  margin: 0 auto;
}

/*------------------------------------
Heading
------------------------------------*/

.final-main-title {
  margin-top: 14px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;

  margin-bottom: 0;
  text-align: center;
}

.final-sub-title {
  margin-top: 10px;
  font-size: 20px;
  color: #bc0103;
  font-weight: 700;

  margin: 0;
}

.final-divider {
  width: 70px;
  height: 5px;
  background: #bc0103;
  /* margin: 18px auto 28px; */
  margin: 15px auto 15px;
  border-radius: 30px;
}

/*------------------------------------
Result Card
------------------------------------*/

.result-card {
  position: relative;
  width: 85%;
  max-width: 560px;
  margin-top: 10px;
  margin-bottom: 12px;
  border: 1px solid #bc0103;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(25, 25, 25, 0.98) 0%,
    rgba(8, 8, 8, 0.98) 100%
  );
  /* padding: 18px 18px 22px; */
  padding: 10px 18px 10px;
}

/*------------------------------------
Photo
------------------------------------*/

/* .result-photo {
  width: 310px; /*256px;*/
/*80%;*/
/* height: 185px; */
/*height: 310px;*/
/*144px;*/
/*border-radius: 18px;
  transform: scaleX(-1);
  overflow: hidden;

  background: #444;

  margin-bottom: 20px;
}

#resultSelfie {
  width: 100%;
  height: 100%;

  object-fit: cover;
} */

/* .result-photo {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
} */

#resultSelfie {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/*------------------------------------
Stats Row
------------------------------------*/

.result-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}

.stat-left {
  flex: 0 0 40%;
  text-align: center;
}

.stat-divider {
  flex: 0 0 1%;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  position: relative;
}

.stat-divider::before {
  content: "";
  width: 2px;
  height: 100%;
  background: #bc0103;
}

.earned {
  flex: 0 0 40%;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.stat-label {
  display: block;

  color: #fff;

  font-size: 14px;

  line-height: 1.4;

  margin-bottom: 8px;
}

.stat-value {
  display: block;

  color: #bc0103;

  font-size: 22px;

  font-weight: 700;

  line-height: 1;
}

.seconds {
  display: block;

  color: #fff;

  font-size: 16px;

  margin-top: 6px;
}

/*------------------------------------
Earned
------------------------------------*/

.earned {
  padding-top: 0px;
  text-align: center;
}

.earned-small {
  display: block;

  color: #fff;

  font-size: 14px;
  line-height: 1;
  margin-bottom: 8px;
}

.earned-big {
  display: block;
  color: #bc0103;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/*------------------------------------
Footer Text
------------------------------------*/

.chosen-text {
  margin-top: -15px;
  text-align: center;
  color: #fff;
  font-size: 35px;
  line-height: 1.4;
}

.chosen-text strong {
  color: #bc0103;
}

/*------------------------------------
Buttons
------------------------------------*/

.final-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.final-btn img {
  width: 240px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* #ui-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
} */

/* #status {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--cyan-400);
  text-align: center;
} */

#status {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 10;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 12px 20px;
  border-radius: 8px;

  text-align: center;
  white-space: nowrap;
}

#ui-overlay {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  height: 85%;
  /* inset: 0; */
  z-index: 5;
  pointer-events: none;
}

/* #canvas-container {
  position: absolute;
  inset: 0;
  z-index: 2;
} */

#message {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  /* 22px */
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 12px 24px;
  border-radius: 30px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* #timer {
  position: absolute;
  top: 4%;
  right: 4%;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  background: #c8102e;
  /*rgba(255, 59, 48, 0.75);*/
/* padding: 8px 16px;
  border-radius: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
} */

#keyContainer {
  position: absolute;
  top: 4%;
  left: 4%;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  background: #c8102e;
  /*rgba(255, 59, 48, 0.75);*/
  padding: 8px 16px;
  border-radius: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#canvas-container {
  /* display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; */
  position: absolute;
  inset: 0;
  z-index: 2;
  touch-action: none;
}

/* #canvas-container {
  position: absolute;
  inset: 0;
  z-index: 2;
} */

#canvas-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  touch-action: none;
  pointer-events: auto;
}

#landing,
#game-over-screen {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 25, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  display: none;
}

/* #game-over-screen {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 25, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
} */

#game-over-screen11 {
  position: absolute;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  max-width: 400px;
}

#game-over-screen11 {
  display: none;
  background: rgba(0, 0, 0, 0.85);
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 0;
  left: 0;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #c8102e;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #000;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Countdown overlay styles */
#countdown-overlay,
#countdown-overlay7 {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 25, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#countdown-number,
#countdown-number7 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--cyan-400);
  text-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
  animation: pulse 1s ease-in-out infinite;
}

#countdown-text,
#countdown-text7 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-color);
  margin-top: 10px;
  text-transform: uppercase;
}

#continueBtn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#continueBtn img {
  display: block;
  width: 200px;
  height: auto;
  background: transparent !important;
  border: none;
  outline: none;
}

/* Remove the grey/blue focus box on click */
#continueBtn:focus,
#continueBtn:active,
#continueBtn:hover {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#retry-btn {
  padding: 16px 32px;
  font-size: 18px;
  background-color: #c8102e;
  /*#ffcc00;*/
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
  transition: transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

#retry-btn:active {
  transform: scale(0.96);
}

/* Container fixed to 720px width */
.screen-container {
  width: 100%;
  /* remove 720px; */
  min-height: 100%;

  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px 25px;
}

/* Wrapper for the bottom indicators */
.bottom-section {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Progress Bar Area */
.progress-wrapper {
  position: relative;
  flex-grow: 1;
  margin: auto 0;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #ffffff;
  /* White background track as shown in image */
  border-radius: 3px;
  position: relative;
}

.progress-fill {
  width: 80%;
  /* Set to 80% as requested previously */
  height: 100%;
  background-color: #bc0103;
  /* #bc0103 color texture */
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Floating Tooltip */
.tooltip {
  position: absolute;
  top: -45px;
  left: 80%;
  transform: translateX(-50%);
  background-color: #bc0103;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  /* Rectangular with slight rounding as per image */
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Tooltip Arrow */
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #bc0103 transparent;
  display: block;
  width: 0;
}

/* Circular Timer Component with partial stroke */
.timer-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-left: 300px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #000000;
  flex-shrink: 0;
  position: relative;
  /* Creating the split border effect (Red and White ring) */
  box-shadow: inset 0 0 0 3px #bc0103;
  border: 3px solid transparent;
  background-image:
    linear-gradient(#000, #000),
    linear-gradient(135deg, #ffffff 30%, #bc0103 30%);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

/* Alternative clean ring implementation using SVG or conic-gradient for exact match */
.timer-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #000000;
  flex-shrink: 0;
  position: relative;
  /* Conic gradient gives exact partial border ring like reference image */
  border: 3px solid #bc0103;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Overlay to make part of the ring white */
.timer-circle::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 3px solid #bc0103;
  clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
  /* Top-left white segment */
  pointer-events: none;
}

.timer-number {
  font-size: 25px;
  font-family: "Georama";
  color: #ffffff;
  font-weight: bold;
  line-height: 1;
}

.timer-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
}

.earned-small {
  text-align: center;
}

.capture-error {
  color: white;
  background: #d32f2f;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px auto;
  text-align: center;
  max-width: 100%;
}

#keyHintArrow {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  gap: 6px;

  pointer-events: none;
  transform: translateY(-50%);

  color: #00ffff;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}

#keyHintArrow .key-hint-arrow {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  font-weight: 700;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);

  animation: keyHintPulse 0.8s ease-in-out infinite alternate;
}

#keyHintArrow .key-hint-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

#keyHintArrow.right {
  left: auto;
  right: 0;
  flex-direction: row-reverse;
  content: ">";
}

#keyHintArrow.left {
  left: 8px;
  right: auto;
  content: "<";
}

@keyframes keyHintPulse {
  from {
    transform: scale(0.9);
    opacity: 0.65;
  }

  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

#arrowgif {
  width: 25%;
  height: 25%;
}
.CopyCaption{
 
}

#copy-div{
/*display:none;*/

}
.copy-div input{
 
}
.CaptionCopy{
  
}

/* 1. Ensure the parent container takes up the full mobile screen height */
/* .screen-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Pushes children to top and bottom */
/*width: 100%;
  min-height: 100vh;
  /* Fallback */
/*min-height: 100dvh;
  /* Dynamic viewport height for mobile browsers */
/*box-sizing: border-box;
  padding: 16px;
  /* Adjust padding as needed */
/*} */

/* 2. Anchor the bottom section */
/* .bottom-section {
  margin-top: auto;
  /* Pushes the section to the very bottom if using flexbox */
/* width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Spacing between progress wrapper and timer */
/*box-sizing: border-box;
  /* Optional: Use sticky/fixed if you want it to float over scrolling content */
/*position: sticky;
  bottom: 0;
} */

/* Progress Bar Styles embedded inside ui-overlay */
/* #progress-container {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 300px;
  height: 16px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: auto;
} */

/* #progress-bar {
  width: 0%;
  height: 100%;
  background: #ff0000;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px #ff0000;
} */

/* Optional: Safe area padding for modern mobile devices with home indicators (e.g., iPhone) */
/* @supports (padding-bottom: env(safe-area-inset-bottom)) {
  .screen-container {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
} */

/*==================================================
    RESPONSIVE
==================================================*/

@media screen and (max-width: 720px) {
  .game-screen {
    width: 100%;
  }
}

/* ============================================
   iPhone SE / 8 / Mini / Small Android
   360px - 389px
   ============================================ */
@media (min-width: 360px) and (max-width: 389px) {
  .answer-card h4 {
    font-size: 13px;
  }

  .answer-card span {
    font-size: 12px;
    padding: 6px;
  }

  .calculate-wrapper {
    top: 70px;
  }

  .instruction-card {
    top: 80px;
  }

  .calculate-title {
    font-size: 32px;
  }

  .level2-card .instruction-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .level2-card .instruction-icon {
    width: 60px;
    height: 60px;
  }

  .level2-card .instruction-row p {
    font-size: 15px;
    line-height: 1.2;
  }

  /* level 1 */
  .instruction-icon {
    width: 60px;
    height: 60px;
  }

  /* screen 11 */
  .earned-big {
    font-size: 21px;
  }

  .stat-value {
    font-size: 21px;
  }

  #countdown-overlay,
  #countdown-overlay7 {
    background: rgb(17 17 25 / 0%);
  }

  #landing,
  #game-over-screen {
    background: rgb(17 17 25 / 0%);
  }

  /* final screen */
  .final-screen {
    padding-top: 55px;
  }

  /* result */
  .earned-small {
    font-size: 13px;
  }

  .earned-big {
    font-size: 19px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-value {
    font-size: 19px;
  }
  .chosen-text {
    font-size: 24px;
  }
}

/* ============================================
   iPhone 12 / 13 / 14 / 15 / Pixel
   390px - 411px
   ============================================ */
@media (min-width: 390px) and (max-width: 411px) {
  .answer-card h4 {
    font-size: 15px;
  }

  .answer-card span {
    font-size: 14px;
    padding: 10px;
  }

  .calculate-wrapper {
    top: 70px;
  }

  .level2-card {
    top: 90px;
  }

  .level2-card .instruction-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .level2-card .instruction-icon {
    width: 60px;
    height: 60px;
  }

  .level2-card .instruction-row p {
    font-size: 15px;
    line-height: 1.2;
  }

  #countdown-overlay,
  #countdown-overlay7 {
    background: rgb(17 17 25 / 0%);
  }

  #landing,
  #game-over-screen {
    background: rgb(17 17 25 / 0%);
  }

  /* final screen */
  .final-screen {
    padding-top: 59px;
  }

  /* result */
  .earned-small {
    font-size: 15px;
  }

  .earned-big {
    font-size: 21px;
  }

  .stat-label {
    font-size: 14px;
  }

  .stat-value {
    font-size: 21px;
  }
  .chosen-text {
    font-size: 24px;
  }
}

/* ============================================
   Samsung Galaxy S20 / S21 / S22 / S23 / S24
   412px - 429px
   ============================================ */
@media (min-width: 412px) and (max-width: 429px) {
  .answer-card h4 {
    font-size: 16px;
  }

  .answer-card span {
    font-size: 14px;
    padding: 10px;
  }

  .calculate-wrapper {
    top: 75px;
  }

  .level2-card {
    top: 90px;
  }

  .level2-card .instruction-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .level2-card .instruction-icon {
    width: 60px;
    height: 60px;
  }

  .level2-card .instruction-row p {
    font-size: 15px;
    line-height: 1.2;
  }

  #countdown-overlay,
  #countdown-overlay7 {
    background: rgb(17 17 25 / 0%);
  }

  #landing,
  #game-over-screen {
    background: rgb(17 17 25 / 0%);
  }

  /* final screen */
  .final-screen {
    padding-top: 51px;
  }

  /* result */
  .earned-small {
    font-size: 18px;
  }

  .earned-big {
    font-size: 22px;
  }

  .stat-label {
    font-size: 16px;
  }

  .stat-value {
    font-size: 22px;
  }
  .chosen-text {
    font-size: 24px;
  }
}

/* ============================================
   iPhone Pro Max / Plus / 16 Pro Max
   430px - 480px
   ============================================ */
@media (min-width: 430px) and (max-width: 480px) {
  .answer-card h4 {
    font-size: 16px;
  }

  .answer-card span {
    font-size: 15px;
    padding: 12px;
  }

  .calculate-wrapper {
    top: 80px;
  }

  .level2-card {
    top: 90px;
  }

  #countdown-overlay,
  #countdown-overlay7 {
    background: rgb(17 17 25 / 0%);
  }

  #landing,
  #game-over-screen {
    background: rgb(17 17 25 / 0%);
  }

  /* final screen */
  .final-screen {
    padding-top: 53px;
  }
  .level2-card .instruction-title {
    font-size: 19px;
    line-height: 1.3;
  }
  .chosen-text {
    font-size: 24px;
  }
}
