@charset "UTF-8";

/* =========================
   GLOBAL
========================= */

body {
  background:
    url("../images/clock-100.svg") top -30px left -30px / 180px 180px no-repeat,
    url("../images/clock-430.svg") top -20px right -20px / 170px 170px no-repeat,
    url("../images/clock-745.svg") bottom 140px left 40px / 120px 120px no-repeat,
    url("../images/clock-1010.svg") bottom 180px right 50px / 130px 130px no-repeat,
    linear-gradient(180deg, #EEF9FF 0%, #D8F0FF 52%, #CBE8FF 100%);
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #1F2D3D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
}
#backToTopBtn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
/* =========================
   TYPOGRAPHY
========================= */
.heading-primary-style {
  color: #6483AC;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.9),
    0 3px 6px rgba(47, 128, 237, 0.2);
}
.main-heading {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.2;
  color: #1F2D3D;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.9),
    0 3px 6px rgba(47, 128, 237, 0.2);
}

h1, h2, h3, h4, h5, h6,
p, li, a, button {
  font-family: "Poppins", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1F2D3D;
}

p, li {
  font-weight: 400;
}
h1 {
  color: #6483AC !important;
}


/* =========================
   LAYOUT
========================= */

.top-spacing {
  padding-top: 2rem;
}

.site-wrap {
  overflow-x: hidden;
}

/* =========================
   HEADER / BANNER
========================= */

.banner-section {
  padding: 1.5rem 0 0.8rem;
}

.intro-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #5C6B7A;
}

/* =========================
   INTRO BOX
========================= */

.intro-box {
  margin-top: 10px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(245,251,255,0.97) 100%);
  color: #1F2D3D;
  border: 3px solid #BFE3FF;
  box-shadow:
    0 24px 50px rgba(47, 128, 237, 0.18),
    0 10px 24px rgba(47, 128, 237, 0.10),
    0 6px 0 rgba(255,255,255,0.85);
  position: relative;
}

.intro-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(47, 128, 237, 0.12);
  border-radius: 18px;
  pointer-events: none;
}

.intro-heading {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #1F2D3D;
  position: relative;
  z-index: 1;
}

.intro-note {
  margin-top: 1rem;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #EAF7FF 0%, #D9EEFF 100%);
  border: 2px solid rgba(47, 128, 237, 0.16);
  color: #1F2D3D;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 16px rgba(47, 128, 237, 0.10);
  position: relative;
  z-index: 1;
}

.intro-cta {
  color: #2F80ED !important;
  font-weight: 700;
  text-decoration: underline;
}

.intro-cta:hover {
  color: #1C6FE0 !important;
}

.intro-logo {
  height: 30px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.98;
  margin-right: 0;
}

.intro-cta-text {
  display: inline-block;
  line-height: 1;
}

/* =========================
   CARDS
========================= */

.cards-section {
  padding-bottom: 3rem;
}

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #F6FBFF 100%);
  border: 2px solid #DCEBFA;
  border-radius: 26px;
  padding: 3rem 2.25rem;
  text-align: center;
  box-shadow: 0 14px 30px rgba(47, 128, 237, 0.10);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  background: rgba(255, 209, 102, 0.18);
  border-radius: 50%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(47, 128, 237, 0.16);
}

.feature-title {
  font-size: 2rem;
  color: #1F2D3D;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-text {
  font-size: 1.1rem;
  color: #5C6B7A;
  position: relative;
  z-index: 1;
}

/* =========================
   GAME CARDS
========================= */

.game-section {
  margin-bottom: 2rem;
}

.game-card {
  margin-top: 10px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(244,250,255,0.98) 100%);
	background-clip: padding-box;
  color: #1F2D3D;
   border: 3px solid #B7DBF7;

  box-shadow:
    0 22px 48px rgba(47, 128, 237, 0.18),
    0 10px 24px rgba(47, 128, 237, 0.10),
    0 2px 0 rgba(255,255,255,0.6),   /* reduced from 6px */
   0 0 0 1px rgba(207,230,250,0.45) inset;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.game-card .row {
  margin-left: 0;
  margin-right: 0;
}
.game-card [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.game-card::before {
  top: 12px;
  left: 12px;
  width: 70px;
  height: 70px;
  background-image: url("../images/clock-100.svg");
  opacity: 0.18;
  transform: scale(1);
}

.game-card::after {
  bottom: 12px;
  right: 12px;
  width: 60px;
  height: 60px;
  background-image: url("../images/clock-615.svg");
  opacity: 0.12;
  transform: scale(1);
}

.game-card:hover {
  box-shadow:
     0 26px 52px rgba(47, 128, 237, 0.20),
    0 12px 24px rgba(47, 128, 237, 0.10),
    0 6px 0 rgba(255,255,255,0.85);
  border-color: #7FB8F5;
  transform: translateY(-3px);
}

.game-card:hover::before {
  transform: scale(1.05);
  opacity: 0.24;
}

.game-card:hover::after {
  transform: scale(1.04);
  opacity: 0.16;
}

/* Clock image variation only */
.game-section:nth-of-type(2) .game-card::before {
  background-image: url("../images/clock-300.svg");
}

.game-section:nth-of-type(3) .game-card::before {
  background-image: url("../images/clock-430.svg");
}

.game-section:nth-of-type(4) .game-card::before {
  background-image: url("../images/clock-615.svg");
}

.game-section:nth-of-type(5) .game-card::before {
  background-image: url("../images/clock-745.svg");
}

.game-section:nth-of-type(6) .game-card::before {
  background-image: url("../images/clock-1010.svg");
}

.game-section:nth-of-type(2) .game-card::after {
  background-image: url("../images/clock-745.svg");
}

.game-section:nth-of-type(3) .game-card::after {
  background-image: url("../images/clock-1010.svg");
}

.game-section:nth-of-type(4) .game-card::after {
  background-image: url("../images/clock-300.svg");
}

.game-section:nth-of-type(5) .game-card::after {
  background-image: url("../images/clock-430.svg");
}

.game-section:nth-of-type(6) .game-card::after {
  background-image: url("../images/clock-100.svg");
}

/* subtle scale variation only, no rotation */
.game-section:nth-of-type(1) .game-card::before { transform: scale(0.95); }
.game-section:nth-of-type(2) .game-card::before { transform: scale(1.05); }
.game-section:nth-of-type(3) .game-card::before { transform: scale(1.02); }
.game-section:nth-of-type(4) .game-card::before { transform: scale(0.98); }
.game-section:nth-of-type(5) .game-card::before { transform: scale(1.08); }
.game-section:nth-of-type(6) .game-card::before { transform: scale(0.97); }

.game-section:nth-of-type(1) .game-card::after { transform: scale(1.02); }
.game-section:nth-of-type(2) .game-card::after { transform: scale(0.96); }
.game-section:nth-of-type(3) .game-card::after { transform: scale(1.06); }
.game-section:nth-of-type(4) .game-card::after { transform: scale(0.94); }
.game-section:nth-of-type(5) .game-card::after { transform: scale(1.03); }
.game-section:nth-of-type(6) .game-card::after { transform: scale(0.98); }

/* Image */

.game-image-link {
  display: block;
  position: relative;
  z-index: 1;
}

.game-image {
  border-radius: 18px;
 border: 2px solid rgba(255,255,255,0.85);
  box-shadow:
    0 10px 22px rgba(47, 128, 237, 0.18),   /* blue-tinted lift */
    0 4px 10px rgba(31, 45, 61, 0.10),      /* soft depth */
    0 2px 0 rgba(255,255,255,0.6) inset;    /* subtle top highlight */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-image:hover {
  transform: scale(1.03) rotate(-0.4deg);

  box-shadow:
    0 16px 32px rgba(47, 128, 237, 0.24),
    0 6px 14px rgba(31, 45, 61, 0.14),
    0 2px 0 rgba(255,255,255,0.7) inset;
}

/* Content */

.game-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.game-tag {
  color: #2F80ED;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.game-title {
  color: #1F2D3D;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.game-title-link {
  color: #1F2D3D;
  text-decoration: none;
  font-weight: 700;
}

.game-title-link:hover {
  color: #2F80ED;
  text-decoration: underline;
}

.game-description {
  color: #5C6B7A;
	max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.game-button-primary {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 14px;

  /* MATCHED COLOUR SYSTEM */
  background: linear-gradient(180deg, #56A6F5 0%, #2F80ED 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;

  /* MATCHED BORDER + DEPTH */
  border: 2px solid rgba(255,255,255,0.85);

  box-shadow:
    0 8px 18px rgba(47, 128, 237, 0.22),   /* main lift */
    0 4px 0 rgba(28, 111, 224, 0.9),       /* “base” edge */
    0 2px 0 rgba(255,255,255,0.6) inset;   /* soft inner highlight */

  transition: all 0.2s ease;
}
.game-button-primary:hover {
  background: linear-gradient(180deg, #6FB4F7 0%, #2F80ED 100%);
  
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px rgba(47, 128, 237, 0.28),
    0 6px 0 rgba(28, 111, 224, 0.95),
    0 2px 0 rgba(255,255,255,0.7) inset;

  color: #ffffff;
}
.game-button-primary:active {
  transform: translateY(2px);

  box-shadow:
    0 4px 10px rgba(47, 128, 237, 0.18),
    0 2px 0 rgba(28, 111, 224, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;
}

/* =========================
   BUTTONS
========================= */

.math-btn,
.math-btn-light {
  color: white;
  padding: 13px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.78);
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.16);
  transition: all 0.2s ease;
}

.math-btn {
  background: linear-gradient(180deg, #FF6B6F 0%, #FF5A5F 100%);
  border-color: rgba(255,255,255,0.86);
}

.math-btn-light {
  background: linear-gradient(180deg, #56A6F5 0%, #2F80ED 100%);
}

.math-btn:hover,
.math-btn-light:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,1);
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.20);
  transform: translateY(-2px) scale(1.02);
}

.math-btn-light:hover {
  background: linear-gradient(180deg, #4B9AF0 0%, #1C6FE0 100%);
}

.math-btn:hover {
  background: linear-gradient(180deg, #FF6166 0%, #E14A4F 100%);
}
/* Floating Back Button */
.floating-back-btn {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(45, 140, 255, 0.9);
  backdrop-filter: blur(4px);

  border: 2px solid rgba(0,0,0,0.1);

  color: #ffffff !important;
  text-decoration: none !important;

  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-back-btn:hover,
.floating-back-btn:focus {
  background: rgba(31, 111, 224, 0.95);
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  color: #ffffff !important;
  text-decoration: none !important;
}

.floating-back-btn:active {
  transform: translateY(0);
}

.floating-back-icon {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1;
}

.floating-back-text {
  line-height: 1;
}

@media (max-width: 768px) {
  .floating-back-btn {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 9px 12px;
    font-size: 13px;
  }

  .floating-back-icon {
    font-size: 15px;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: linear-gradient(180deg, #2F80ED 0%, #1C6FE0 100%);
  color: #EAF6FF;
  padding: 50px 0 40px;
  margin-top: 60px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -8px 24px rgba(47, 128, 237, 0.18);
}

.site-footer h5 {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.9rem;
}

.site-footer a {
  color: #EAF6FF;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* =========================
   ANIMATIONS
========================= */

.animated-row {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.animated-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .main-heading {
    font-size: 2rem;
  }

  body {
    background:
      url("../images/clock-100.svg") top -24px left -24px / 130px 130px no-repeat,
      url("../images/clock-430.svg") top -18px right -18px / 130px 130px no-repeat,
      url("../images/clock-745.svg") bottom 120px left 16px / 90px 90px no-repeat,
      url("../images/clock-1010.svg") bottom 150px right 20px / 100px 100px no-repeat,
      linear-gradient(180deg, #EEF9FF 0%, #D8F0FF 52%, #CBE8FF 100%);
  }
}

@media (max-width: 767.98px) {
  .main-heading {
    font-size: 1.7rem;
  }

  .feature-title {
    font-size: 1.6rem;
  }

  .math-btn,
  .math-btn-light {
    width: 80%;
    margin: 10px auto;
  }

  .intro-box,
  .game-card,
  .feature-card {
    border-radius: 20px;
  }

  .game-card::before {
    width: 56px;
    height: 56px;
    top: 10px;
    left: 10px;
  }

  .game-card::after {
    width: 48px;
    height: 48px;
    bottom: 10px;
    right: 10px;
  }

  body {
    background:
      url("../images/clock-100.svg") top -18px left -18px / 96px 96px no-repeat,
      url("../images/clock-430.svg") top -12px right -12px / 96px 96px no-repeat,
      linear-gradient(180deg, #EEF9FF 0%, #D8F0FF 52%, #CBE8FF 100%);
  }
}
#loading-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-family: "Poppins", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2F80ED;

  background: rgba(255,255,255,0.9);
  padding: 14px 20px;
  border-radius: 12px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 9999;
}