/* ==========================================================================
   Blind Box Sort - Static Landing Page Stylesheet
   Design System: Cute 3D Pastel aesthetic matching Flutter app & Figma design
   Ultra-lightweight, zero runtime dependencies, highly responsive
   ========================================================================== */

:root {
  /* Brand Palette from game (AppColors) */
  --sky-top: #8FD3FF;
  --sky-bottom: #C9B6FF;
  --cream: #FFF8F0;
  --tray: #7B6CF6;
  --tray-dark: #5A4BD8;
  --track: #F3F1FF;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(255, 255, 255, 0.8);
  
  --text-dark: #322552;
  --text-body: #4E426D;
  --text-muted: #7F749B;
  
  --hidden-card: #B9A8FF;
  --ice-accent: #BDEBFF;
  --star-yellow: #FFB020;
  
  /* 3D Bevel Colors */
  --btn-green-light: #7EF0A2;
  --btn-green: #3CC46E;
  --btn-green-edge: #249A50;
  
  --btn-purple-light: #9B8CFF;
  --btn-purple: #7B6CF6;
  --btn-purple-edge: #5242C8;

  --btn-orange-light: #FFB08A;
  --btn-orange: #FF7A59;
  --btn-orange-edge: #D24E32;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(62, 45, 102, 0.08);
  --shadow-md: 0 10px 25px rgba(62, 45, 102, 0.12);
  --shadow-lg: 0 20px 40px rgba(62, 45, 102, 0.16);
  --shadow-bevel-green: 0 5px 0 var(--btn-green-edge), 0 10px 20px rgba(36, 154, 80, 0.25);
  --shadow-bevel-purple: 0 5px 0 var(--btn-purple-edge), 0 10px 20px rgba(82, 66, 200, 0.25);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Fredoka", "Nunito", sans-serif;
  --container-max: 1140px;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--sky-top) 0%, #D4C5FF 45%, #F4EEFF 80%, var(--cream) 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background floating bubbles / playful shapes */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05));
  filter: blur(1px);
  animation: floatBubble 14s infinite ease-in-out;
}

.b1 { width: 220px; height: 220px; top: 12%; left: -60px; animation-duration: 18s; }
.b2 { width: 340px; height: 340px; top: 40%; right: -90px; animation-duration: 22s; animation-delay: -5s; }
.b3 { width: 160px; height: 160px; top: 75%; left: 8%; animation-duration: 15s; animation-delay: -2s; }
.b4 { width: 280px; height: 280px; top: 85%; right: 5%; animation-duration: 20s; animation-delay: -8s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

p {
  color: var(--text-body);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(62, 45, 102, 0.04);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(123, 108, 246, 0.35);
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tray);
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--tray-dark);
}

/* Language Switcher */
.lang-selector-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(123, 108, 246, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.lang-btn:hover, .lang-btn:focus-visible {
  border-color: var(--tray);
  background: #ffffff;
  transform: translateY(-1px);
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid rgba(123, 108, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 101;
  list-style: none;
}

.lang-dropdown.open {
  display: block;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-item:hover {
  background: var(--track);
  color: var(--tray);
}

.lang-item.active {
  background: rgba(123, 108, 246, 0.1);
  color: var(--tray-dark);
  font-weight: 800;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--tray-dark);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-pill-star {
  color: var(--star-yellow);
}

.hero-icon-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.hero-app-icon {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  box-shadow: 0 16px 36px rgba(123, 108, 246, 0.4), 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 4px solid #ffffff;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: heroIconFloat 4s ease-in-out infinite;
}

.hero-app-icon:hover {
  transform: scale(1.06) rotate(-2deg);
}

@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-dark);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.hero-title .highlight {
  color: var(--tray);
  background: linear-gradient(135deg, #7B6CF6 0%, #D4447A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-body);
  font-weight: 500;
}

/* Store Download Buttons */
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.store-btn-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.store-btn-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  opacity: 0.85;
}

.store-btn-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Apple Button */
.btn-apple {
  background: #110D1D;
  color: #FFFFFF;
  box-shadow: 0 5px 0 #000000, 0 10px 22px rgba(17, 13, 29, 0.3);
}

.btn-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #000000, 0 14px 26px rgba(17, 13, 29, 0.35);
}

.btn-apple:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #000000;
}

/* Google Play Button */
.btn-google {
  background: linear-gradient(180deg, var(--btn-green-light) 0%, var(--btn-green) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-bevel-green);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--btn-green-edge), 0 14px 26px rgba(36, 154, 80, 0.32);
}

.btn-google:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--btn-green-edge);
}

/* Game Highlights Badges */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.badge-item span.emoji {
  font-size: 1.05rem;
}

/* Section Common */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 44px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--tray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-body);
}

/* Screenshots Showcase Section */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  justify-content: center;
}

.screenshot-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 108, 246, 0.4);
}

.device-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #E8E5FB;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.device-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.screenshot-card:hover .device-frame img {
  transform: scale(1.03);
}

.screenshot-meta {
  padding: 16px 6px 6px;
  text-align: center;
}

.screenshot-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.screenshot-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.zoom-hint {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(33, 24, 61, 0.65);
  color: #fff;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.screenshot-card:hover .zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 108, 246, 0.3);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123, 108, 246, 0.15), rgba(143, 211, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* How to play Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(123, 108, 246, 0.12);
  line-height: 1;
}

.step-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Privacy Policy Box / Section */
.privacy-section-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.privacy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1.5px solid rgba(123, 108, 246, 0.12);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(60, 196, 110, 0.14);
  color: #1A753C;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 800;
}

.privacy-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.privacy-pill-box {
  background: rgba(243, 241, 255, 0.6);
  border: 1px solid rgba(123, 108, 246, 0.15);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.privacy-pill-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-pill-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1.5px solid var(--tray);
  color: var(--tray-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--tray);
  color: #ffffff;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 14, 46, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.lightbox-caption {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.modal-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Policy Dialog / Drawer Modal */
.policy-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.policy-modal-header {
  padding: 20px 28px;
  background: var(--track);
  border-bottom: 1px solid rgba(123, 108, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.policy-modal-body h3 {
  font-size: 1.25rem;
  margin: 20px 0 8px;
  color: var(--text-dark);
}

.policy-modal-body p {
  margin-bottom: 12px;
}

.policy-modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-modal-body li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 44px 0 28px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--tray-dark);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-section {
    padding: 36px 0 24px;
  }
  
  .hero-icon-container {
    width: 110px;
    height: 110px;
  }
  
  .store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
  
  .privacy-section-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   Interactive HTML/CSS Game Screen Mockups
   Replaces static images with zero-bandwidth, dynamically translated DOM!
   ========================================================================== */

.game-mockup {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, #8FD3FF 0%, #B9CBFF 40%, #D4C5FF 80%, #C9B6FF 100%);
  border-radius: 18px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
  font-family: var(--font-stack);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

/* Mockup Header */
.gm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.gm-btn-icon {
  width: 28px;
  height: 28px;
  background: #9D8EFF;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 3px 0 #7A69E8;
}

.gm-level-badge {
  text-align: center;
}

.gm-level-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(50, 30, 90, 0.3);
  line-height: 1.1;
}

.gm-tag-pill {
  display: inline-block;
  background: #3CC46E;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1.5px 8px;
  border-radius: 10px;
  box-shadow: 0 1.5px 0 #249A50;
  letter-spacing: 0.02em;
}

.gm-tag-pill.animal {
  background: #4DA3FF;
  box-shadow: 0 1.5px 0 #2A72CC;
}

.gm-coin-badge {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #322552;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

/* Sub-bar / Moves & Stars */
.gm-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  color: #322552;
  margin-bottom: 6px;
  padding: 0 4px;
}

.gm-stars-row {
  color: #FFB020;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.gm-prog-track {
  flex: 1;
  max-width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 6px;
}

.gm-prog-fill {
  height: 100%;
  background: #3CC46E;
  border-radius: 6px;
}

/* Waiting Tray */
.gm-tray-container {
  background: #7B6CF6;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 3px 0 #5A4BD8;
  margin-bottom: 8px;
}

.gm-tray-label {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #EDE8FF;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gm-tray-slots {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.gm-tray-slot {
  flex: 1;
  max-width: 36px;
  height: 36px;
  background: #5A4BD8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.gm-tray-slot.active {
  border: 2px solid #FFC93C;
}

/* Board & Columns */
.gm-board {
  flex: 1;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.gm-cols-header {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.gm-col-head {
  flex: 1;
  height: 14px;
  background: #9D8EFF;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-cols-body {
  flex: 1;
  display: flex;
  gap: 3px;
}

.gm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gm-col.empty {
  border: 1.5px dashed rgba(60, 196, 110, 0.45);
  border-radius: 7px;
  background: rgba(126, 240, 162, 0.08);
}

.gm-col.completed {
  border: 1.5px solid #3CC46E;
  background: rgba(126, 240, 162, 0.18);
  border-radius: 7px;
}

.gm-tile {
  width: 100%;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2.5px 0 #D7DDEB, 0 4px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.15s ease;
}

.gm-tile.mystery {
  background: linear-gradient(135deg, #B9A8FF 0%, #8F7BEA 100%);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 2.5px 0 #6C54DF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gm-tile.ice {
  background: #E8F8FF;
  border: 1.5px solid #8FD3FF;
  box-shadow: 0 2.5px 0 #62B8F5;
}

.gm-tile-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #FF4D6D;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-tile-key {
  position: absolute;
  top: -2px;
  left: -2px;
  font-size: 0.6rem;
}

/* Boosters Bar */
.gm-boosters {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}

.gm-boost-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  position: relative;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.gm-b1 { background: #4DA3FF; box-shadow: 0 3px 0 #2A72CC; }
.gm-b2 { background: #9D8EFF; box-shadow: 0 3px 0 #7A69E8; }
.gm-b3 { background: #3CC46E; box-shadow: 0 3px 0 #249A50; }
.gm-b4 { background: #FFB020; box-shadow: 0 3px 0 #D08410; }

.gm-boost-num {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #FF4D6D;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Combo Banner */
.gm-combo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.gm-combo-banner {
  background: linear-gradient(180deg, #FFE38A 0%, #FFB020 100%);
  color: #B43403;
  padding: 6px 14px;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 5px 0 #D08410, 0 10px 20px rgba(255, 176, 32, 0.4);
  font-size: 1.15rem;
  font-weight: 900;
  text-shadow: 0 1px 0 #FFF;
  transform: rotate(-4deg) scale(1.05);
  animation: comboPulse 2s infinite ease-in-out;
}

@keyframes comboPulse {
  0%, 100% { transform: rotate(-4deg) scale(1.05); }
  50% { transform: rotate(-4deg) scale(1.12); }
}

.gm-coin-fly {
  margin-top: 6px;
  background: #FFFFFF;
  color: #322552;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Win Panel Modal Overlay */
.gm-win-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 50, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 20;
}

.gm-win-card {
  width: 90%;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gm-win-floating-icon {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 10px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-top: -24px;
  margin-bottom: 6px;
  border: 2px solid #FFF;
}

.gm-win-banner {
  background: #FF7A59;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #D24E32;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.gm-win-stars {
  font-size: 1.3rem;
  color: #FFB020;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.gm-win-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #322552;
  margin-bottom: 8px;
}

.gm-win-stats {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.gm-win-stat-box {
  background: #F3F1FF;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 0.58rem;
  font-weight: 800;
}

.gm-win-stat-val {
  font-size: 0.78rem;
  color: #5A4BD8;
}

.gm-win-reward {
  background: #FFF8E6;
  border: 1px solid #FFE38A;
  border-radius: 10px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #B43403;
  margin-bottom: 10px;
}

.gm-win-btn {
  width: 100%;
  background: #3CC46E;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 0;
  border-radius: 10px;
  box-shadow: 0 3px 0 #249A50;
  letter-spacing: 0.03em;
}

