@charset "UTF-8";

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

body {
  background: linear-gradient(180deg, #E8E6FF 0%, #D6D9FF 50%, #C4CCFF 100%);
  
  color: #1F2D3D;
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;

  -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: #7A70D6;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);

  letter-spacing: -0.025em;
}
.main-heading {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

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: #7A70D6;
	text-shadow: 0 1px 0 rgba(255,255,255,0.6);

}


/* =========================
   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(246,242,255,0.98) 100%);
  color: #1F2D3D;

  border: 3px solid #C8C6F7;

  box-shadow:
    0 24px 50px rgba(123, 104, 238, 0.18),
    0 10px 24px rgba(123, 104, 238, 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(123, 104, 238, 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, #F1EEFF 0%, #E4E0FF 100%);
  border: 2px solid rgba(123, 104, 238, 0.16);
  color: #1F2D3D;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 16px rgba(123, 104, 238, 0.10);
  position: relative;
  z-index: 1;
}

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

.intro-cta:hover {
  color: #5B4AE3 !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;
}

/* =========================
   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 #C8C6F7;

  box-shadow:
    0 22px 48px rgba(123, 104, 238, 0.18),
    0 10px 24px rgba(123, 104, 238, 0.10),
    0 2px 0 rgba(255,255,255,0.6),
    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 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

/* TOP LEFT */
.game-card::before {
  content: "+";
  top: 14px;
  left: 18px;
  font-size: 2.8rem;
  color: rgba(122, 111, 240, 0.22); /* stronger */
}

/* BOTTOM RIGHT */
.game-card::after {
  content: "=";
  bottom: 12px;
  right: 18px;
  font-size: 2.4rem;
  color: rgba(255, 106, 139, 0.22); /* stronger */
}
.game-card::before,
.game-card::after {
  filter: blur(0.3px);
}

.game-card:hover {
   box-shadow:
    0 26px 52px rgba(123, 104, 238, 0.20),
    0 12px 24px rgba(123, 104, 238, 0.10),
    0 6px 0 rgba(255,255,255,0.85);
  border-color: #AFA8F0;
  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 {
 
}

.game-section:nth-of-type(3) .game-card::before {
  
}

.game-section:nth-of-type(4) .game-card::before {
 
}

.game-section:nth-of-type(5) .game-card::before {
 
}

.game-section:nth-of-type(6) .game-card::before {
 
}

.game-section:nth-of-type(2) .game-card::after {
  
}

.game-section:nth-of-type(3) .game-card::after {
  
}

.game-section:nth-of-type(4) .game-card::after {
  
}

.game-section:nth-of-type(5) .game-card::after {
 
}

.game-section:nth-of-type(6) .game-card::after {
  
}
.game-section:nth-of-type(1) .game-card::before { content: "+"; }
.game-section:nth-of-type(2) .game-card::before { content: "−"; }
.game-section:nth-of-type(3) .game-card::before { content: "="; }
.game-section:nth-of-type(4) .game-card::before {
  content: "123";
  transform: scale(1.05) rotate(-12deg);
  letter-spacing: -2px;
}
.game-section:nth-of-type(5) .game-card::before { content: "+"; }

.game-section:nth-of-type(1) .game-card::after { content: "="; }
.game-section:nth-of-type(2) .game-card::after { content: "+"; }
.game-section:nth-of-type(3) .game-card::after { content: "−"; }
.game-section:nth-of-type(4) .game-card::after { content: "="; }
.game-section:nth-of-type(5) .game-card::after { content: "+"; }

.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(123, 104, 238, 0.18),
    0 4px 10px rgba(31, 45, 61, 0.10),
    0 2px 0 rgba(255,255,255,0.6) inset;

  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(123, 104, 238, 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 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(108, 92, 231, 0.12);
  color: #6C5CE7;

  font-size: 0.8rem;
  font-weight: 700;
	letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.game-tag-bakup {
  color: #7A70D6;
  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: #6C5CE7;
  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, #7A6FF0 0%, #5B4AE3 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(91, 74, 227, 0.25),
    0 4px 0 rgba(70, 54, 200, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;

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

  box-shadow:
    0 12px 24px rgba(91, 74, 227, 0.30),
    0 6px 0 rgba(70, 54, 200, 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, #FF6A8B 0%, #F05075 100%);
  border-color: rgba(255,255,255,0.86);
}

.math-btn-light {
  background: linear-gradient(180deg, #7A6FF0 0%, #5B4AE3 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, #8C82F6 0%, #6354E8 100%);
}

.math-btn:hover {
   background: linear-gradient(180deg, #FF7A98 0%, #E0456A 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: linear-gradient(180deg, #7A6FF0 0%, #5B4AE3 100%);
  backdrop-filter: blur(6px);

  border: 2px solid rgba(255,255,255,0.82);

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

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

  box-shadow:
    0 8px 18px rgba(91, 74, 227, 0.25),
    0 4px 0 rgba(70, 54, 200, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;

  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-back-btn:hover,
.floating-back-btn:focus {
  background: linear-gradient(180deg, #8B80F5 0%, #5B4AE3 100%);
  border-color: rgba(255,255,255,1);
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px rgba(91, 74, 227, 0.30),
    0 6px 0 rgba(70, 54, 200, 0.95),
    0 2px 0 rgba(255,255,255,0.7) inset;

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

.floating-back-btn:active {
  transform: translateY(2px);

  box-shadow:
    0 4px 10px rgba(91, 74, 227, 0.18),
    0 2px 0 rgba(70, 54, 200, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;
}

.floating-back-icon {
  font-size: 16px;
  opacity: 0.95;
  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, #8A7FF0 0%, #6B5FE3 100%);
  color: #F4F3FF;
  padding: 50px 0 40px;
  margin-top: 60px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -8px 24px rgba(123, 104, 238, 0.18);
}

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

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

.site-footer a {
  color: #E6E4FF;
  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;
  }

  
}

@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;
  }

  
}
#loading-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-family: "Poppins", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #5B4AE3;

  background: linear-gradient(180deg, #FFFFFF 0%, #F3F0FF 100%);
  padding: 14px 22px;
  border-radius: 14px;

  border: 2px solid rgba(123, 104, 238, 0.25);

  box-shadow:
    0 10px 26px rgba(91, 74, 227, 0.18),
    0 4px 10px rgba(31, 45, 61, 0.08),
    0 2px 0 rgba(255,255,255,0.8) inset;

  z-index: 9999;
}
/* =========================
   WebGL
========================= */


.game-page {
	 height: 100vh;
  overflow: hidden;
}

.webgl-content * {
  border: 0;
  margin: 0;
  padding: 0;
}

.webgl-content {
  position: relative;
  width: 100%;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: transparent;
}

#gameContainer {
  width: min(96vw, 1600px);
  height: min(calc(100vh - 90px), 1000px);

  border-radius: 20px;
  border: 3px solid rgba(123, 104, 238, 0.25);
  box-shadow:
    0 24px 50px rgba(123, 104, 238, 0.18),
    0 10px 24px rgba(123, 104, 238, 0.10),
    0 2px 0 rgba(255,255,255,0.6) inset;

  overflow: hidden;
}

/* important: Unity injects a canvas */
#gameContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.webgl-content .logo, .progress {position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
.webgl-content .logo {background: url('progressLogo.Light.png') no-repeat center / contain; width: 154px; height: 130px;}
.webgl-content .progress {height: 18px; width: 141px; margin-top: 90px;}
.webgl-content .progress .empty {background: url('progressEmpty.Light.png') no-repeat right / cover; float: right; width: 100%; height: 100%; display: inline-block;}
.webgl-content .progress .full {background: url('progressFull.Light.png') no-repeat left / cover; float: left; width: 0%; height: 100%; display: inline-block;}

.webgl-content .logo.Dark {background-image: url('progressLogo.Dark.png');}
.webgl-content .progress.Dark .empty {background-image: url('progressEmpty.Dark.png');}
.webgl-content .progress.Dark .full {background-image: url('progressFull.Dark.png');}

.webgl-content .footer {margin-top: 5px; height: 38px; line-height: 38px; font-family: Helvetica, Verdana, Arial, sans-serif; font-size: 18px;} 
.webgl-content .footer .webgl-logo, .title, .fullscreen {height: 100%; display: inline-block; background: transparent center no-repeat;} 
.webgl-content .footer .title {margin-right: 10px; float: right;}
.webgl-content .footer .fullscreen{
	 font-size: 18px;
  color: white;
  font-weight: bold;
  width: 42px;
  height: 42px;
  float: right;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  /* Purple gradient (matches your buttons) */
  background: linear-gradient(180deg, #7A6FF0 0%, #5B4AE3 100%);

  border: 2px solid rgba(255,255,255,0.85);

  box-shadow:
    0 8px 18px rgba(91, 74, 227, 0.25),
    0 4px 0 rgba(70, 54, 200, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;

  cursor: pointer;
  transition: all 0.2s ease;
}
.webgl-content .footer .fullscreen:hover {
  background: linear-gradient(180deg, #8B80F5 0%, #5B4AE3 100%);
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px rgba(91, 74, 227, 0.30),
    0 6px 0 rgba(70, 54, 200, 0.95),
    0 2px 0 rgba(255,255,255,0.7) inset;
}

.webgl-content .footer .fullscreen:active {
  transform: translateY(2px);

  box-shadow:
    0 4px 10px rgba(91, 74, 227, 0.18),
    0 2px 0 rgba(70, 54, 200, 0.9),
    0 2px 0 rgba(255,255,255,0.6) inset;
}
