/** Shopify CDN: Minification failed

Line 356:0 Unexpected "}"
Line 845:19 Unexpected ";"
Line 5600:12 Expected identifier but found "{"
Line 5671:0 Unexpected "}"

**/

.littleg-lab__test-tube-dock {
  bottom: 40px;
  left: 40px;
  pointer-events: none;
  position: fixed;
  transform: scale(.8);
  transform-origin: bottom left;
  z-index: 1000;
}

.littleg-lab-island .island-btn {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: var(--island-left, 50%) !important;
  position: absolute !important;
  top: var(--island-top, 50%) !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10;
}

.littleg-lab-island .island-btn.is-unlocked {
  cursor: pointer;
  pointer-events: auto;
}

.littleg-lab-island .island-btn.is-locked {
  cursor: not-allowed;
  filter: grayscale(100%);
  opacity: .6;
  pointer-events: none;
}

@media (max-width: 749px) {
  .littleg-lab__test-tube-dock {
    bottom: 18px;
    left: 18px;
    transform: scale(.64);
  }
}
body.template-page-littleg-lab #shopify-section-footer,
body.template-page-littleg-lab .site-footer,
body.template-page-littleg-lab .footer,
body.template-page-littleg-lab footer,
body.template-page-littleg #shopify-section-footer,
body.template-page-littleg .site-footer,
body.template-page-littleg .footer,
body.template-page-littleg footer {
  display: none !important;
}

.glg-workspace .littleg-lab {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}
/* #240 — LittleG Lab Core. Matched: sections/littleg-lab.liquid -> .littleg-lab. */
.littleg-lab{--lab-text:#171717;--lab-muted:#6b6b66;--lab-line:rgba(17,24,39,.10);--lab-line-strong:rgba(17,24,39,.18);--lab-panel:rgba(255,255,255,.94);--lab-surface:#f7f7f5;--lab-ink:#171717;--lab-ink-hover:#05070b;--lab-radius-xl:30px;--lab-radius-lg:22px;--lab-radius-md:16px;--lab-shadow:0 20px 64px rgba(15,23,42,.08);--lab-shadow-soft:0 10px 30px rgba(15,23,42,.06);--lab-focus:0 0 0 3px rgba(17,24,39,.10);position:relative;min-height:calc(100svh - var(--header-height,72px));background:radial-gradient(circle at 12% 0%,rgba(17,24,39,.045),transparent 34%),linear-gradient(180deg,#fff,#f7f7f5);color:var(--lab-text)}
.littleg-lab *,
.littleg-lab *:before,
.littleg-lab *:after{box-sizing:border-box}

.littleg-lab a{color:inherit;text-decoration:none}
.littleg-lab button,
.littleg-lab input,
.littleg-lab textarea,
.littleg-lab select{font:inherit}


/* 獎勵 Modal */
.littleg-reward-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.littleg-reward-modal.show {
  opacity: 1;
}


.reward-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  max-width: 90%;
}

.reward-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 0.6s;
}

.reward-content h2 {
  font-size: 28px;
  margin: 0 0 20px;
  color: #1f2937;
}

.reward-amount {
  font-size: 36px;
  font-weight: bold;
  color: #10b981;
  margin: 20px 0;
}

.reward-balance {
  font-size: 16px;
  color: #6b6b66;
  margin-bottom: 30px;
}

.reward-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.reward-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* 島嶼解鎖通知 */
.littleg-island-unlock {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  transform: translateX(400px);
  transition: transform 0.3s;
}

.littleg-island-unlock.show {
  transform: translateX(0);
}

.error-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
  }
  
.section-subheading {
    font-size: 17px;
    color: #8e8e93;
    margin: 0;
  }



.error-icon {
  font-size: 24px;
}

.error-message {
  text-align: center;
  padding: 100px 20px;
}

.error-message h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* 動畫 */
@keyframes bounce {50% { transform: translateY(-20px); }
}

/* 島嶼鎖定狀態 */
[data-island-handle].locked {
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
}

[data-island-handle].unlocked {
  opacity: 1;
  filter: grayscale(0%);
  cursor: pointer;
}
/* 縮放時的視覺淡出 */
.view-transitioning .lg-islandNode:not(.is-selected) {
  opacity: 0;
  filter: blur(15px);
  transition: all 0.6s ease;
}

.view-transitioning .lg-hud,
.view-transitioning .lg-game-paths {
  opacity: 0;
  filter: blur(10px);
  transition: all 0.5s ease;
  pointer-events: none;
}


.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg, 24px);
  margin-bottom: var(--spacing-xl, 32px);
}



.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
}



@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

  @keyframes shine {
    to {
      left: 200%;
    }
  }
.island-card {
  backdrop-filter: blur(20px); /* 玻璃質感 */
  background: var(--surface-glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: all var(--duration-normal) var(--ease-apple);
}

.island-card:hover {
  transform: translateY(-8px) scale(1.02); /* 互動反饋 */
  box-shadow: var(--shadow-glow);
}
  .island-card.island-locked {
    opacity: 0.6;
    filter: grayscale(0.5);
  }

  .island-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .lock-badge {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
  }
  .island-theme {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
  }

  .island-lore {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1rem;
  }

  .island-footer {
    margin-top: 1rem;
  }

  .btn-enter-island,
  .btn-unlock-island {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btn-enter-island {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
    color: white;
  }

  .btn-enter-island:hover {
    transform: scale(1.05);
  }

  .btn-unlock-island {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
  }

  .guest-cta {
    text-align: center;
    padding: 2rem;
    background: var(--surface-glass);
    border-radius: 16px;
    margin-bottom: 2rem;
  }

  .btn-signup {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-gold);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: 1rem;
  }
}
    
/* === Buildings === */
.littleg-lab-game {
  position: relative;
  min-height: 600px;
  padding: 4rem 2rem;
}


.hkBuilding:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.hkBuilding__body {
  position: relative;
  width: 80px;
  height: var(--building-height, 120px);
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.hkBuilding:hover .hkBuilding__body {
  transform: rotateY(10deg);
}

.hkBuilding__face {
  position: absolute;
  background: var(--island-color, #6366f1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hkBuilding__face--front {
  width: 80px;
  height: 100%;
  transform: translateZ(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hkBuilding__face--left {
  width: 80px;
  height: 100%;
  transform: rotateY(-90deg) translateZ(40px);
  opacity: 0.7;
}

.hkBuilding__face--right {
  width: 80px;
  height: 100%;
  transform: rotateY(90deg) translateZ(40px);
  opacity: 0.7;
}

.hkBuilding__top {
  position: absolute;
  top: 0;
  width: 80px;
  height: 80px;
  background: var(--island-color, #6366f1);
  transform: rotateX(90deg) translateZ(0);
  opacity: 0.9;
  border: 2px solid rgba(255, 255, 255, 0.3);
}


.hkBuilding__islandMarker {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hkBuilding__emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hkBuilding__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hkBuilding__number {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--island-color, #6366f1);
}

.hkBuilding__lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hkBuilding.is-locked {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.hkBuilding__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 1000;
  margin-bottom: 10px;
}

.hkBuilding:hover .hkBuilding__tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hkBuilding__tooltip-content {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  max-width: 300px;
}

.hkBuilding__tooltip-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hkBuilding__tooltip-content p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.hkBuilding__tooltip-rewards {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

.hkBuilding__tooltip-lore {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  opacity: 0.8;
  font-style: italic;
}

.island-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.lg-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lg-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Login Modal (Apple-ish) ---------- */
.lg-login-modal .lg-modal__panel{
  padding: 18px;
}

.lg-loginModal__hero{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-top: 6px;
}

.lg-loginModal__icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
}

@media (prefers-color-scheme: light){
  .lg-loginModal__icon{
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.10);
  }
}

.lg-loginModal__actions{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.lg-loginModal__btn{
  grid-column: span 12;
}

@media (min-width: 640px){
  .lg-loginModal__btn{
    grid-column: span 6;
  }
  .lg-loginModal__btn:last-child{
    grid-column: span 12;
  }
}

.lg-loginModal__fineprint{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

@media (prefers-color-scheme: light){
  .lg-loginModal__fineprint{
    border-top: 1px solid rgba(0,0,0,.08);
  }
}

.lg-loginModal__fineprintP{
  margin: 0;
  color: var(--lg-dim);
  font-size: 13px;
  line-height: 1.45;
}

/* Header */
.lg-header{ padding: 16px 0 24px; }


.lg-backpill{
  display:inline-flex; align-items:center; gap:12px;
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,248,220,.85) 100%);
  border: 4px solid rgba(212,165,116,.6);
  color: #1a2f23;
  cursor:pointer;
  font-weight: 900;
  box-shadow: 
    0 5px 0 rgba(212,165,116,.5),
    0 10px 20px rgba(0,0,0,.15),
    inset 0 2px 4px rgba(255,255,255,.7);
  transition: all .15s ease;
}
.lg-backpill:hover{
  transform: translateY(-3px);
  box-shadow: 
    0 7px 0 rgba(212,165,116,.5),
    0 14px 28px rgba(0,0,0,.2);
}
.lg-walletRow{ display:flex; gap:12px; flex-wrap:wrap; }
.lg-walletBadge{
  display:inline-flex; gap:10px; align-items:center;
  padding: 12px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,215,0,.3) 0%, rgba(255,165,0,.25) 100%);
  border: 4px solid rgba(255,215,0,.6);
  color: #1a2f23;
  font-weight: 900;
  box-shadow: 
    0 4px 0 rgba(212,165,116,.6),
    0 8px 16px rgba(255,165,0,.25),
    inset 0 2px 4px rgba(255,255,255,.5);
}

.lg-hero__logo{ 
  width:88px; 
  height:88px; 
  border-radius: 24px; 
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 5px solid rgba(255,255,255,.9);
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-size:44px; 
  overflow:hidden;
  box-shadow: 
    0 6px 0 #D4A574,
    0 12px 24px rgba(255,165,0,.35),
    inset 0 -4px 8px rgba(0,0,0,.15),
    inset 0 4px 8px rgba(255,255,255,.5);
  animation: lgHeroLogoBounce 2.5s ease-in-out infinite;
}
@keyframes lgHeroLogoBounce{
  0%,100%{transform: scale(1) rotate(0deg)}
  50%{transform: scale(1.05) rotate(-3deg)}
}
.lg-hero__logo img{ width:100%; height:100%; object-fit:cover; }


/* ===== Guest Islands (locked preview) ===== */
.lg-guest-islands{margin-top:24px}
.lg-guest-islands__head{margin:0 0 16px 0}
.lg-guest-islands__title{
  margin:0;
  font-weight:900;
  font-size: 28px;
  letter-spacing:-.02em;
  color: #1a2f23;
  text-shadow: 
    2px 2px 0 rgba(255,255,255,.5),
    -1px -1px 0 rgba(0,0,0,.08);
}
.lg-guest-islands__sub{
  margin:8px 0 0 0;
  color:#4a7c5e;
  font-size:15px;
  font-weight:700;
  text-shadow: 1px 1px 2px rgba(255,255,255,.4);
}

.lg-guest-islands__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
@media (min-width: 860px){
  .lg-guest-islands__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

.lg-guest-island{
  position:relative;
  border-radius:24px;
  border:5px solid rgba(212,165,116,.4);
  background:linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,248,220,.8) 100%);
  padding:20px;
  cursor:pointer;
  user-select:none;
  transition:all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter:grayscale(.7);
  opacity:.75;
  box-shadow: 
    0 5px 0 rgba(212,165,116,.3),
    0 10px 20px rgba(0,0,0,.12),
    inset 0 2px 4px rgba(255,255,255,.6);
}
.lg-guest-island:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow: 
    0 7px 0 rgba(212,165,116,.3),
    0 16px 32px rgba(0,0,0,.18),
    inset 0 2px 4px rgba(255,255,255,.7);
  border-color:rgba(77,208,225,.6);
  filter:grayscale(.4);
  opacity:.9;
}

.lg-guest-island__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

.lg-guest-island__desc{
  margin:8px 0 0 0;
  color:#4a7c5e;
  font-size:13px;
  line-height:1.5;
  font-weight:700;
}

/* ---- Littleg Lab: map & island node styles (missing defaults) ---- */
.map-view,
#map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#grid-view { display: none; }

.island-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lg-card, rgba(255,255,255,.95));
  color: var(--lg-text, #1a2f23);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 180ms var(--transition-curve), opacity 180ms linear;
  z-index: 60;
  border: 3px solid rgba(255,255,255,0.65);
  cursor: pointer;
}

.island-node.locked {
  opacity: 0.55;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.island-emoji { font-size: 22px; line-height: 1; }

.island-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 70;
}

.marker-popover {
  position: absolute;
  min-width: 220px;
  max-width: 360px;
  background: white;
  color: #171717;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(2,6,23,0.2);
  padding: 12px;
  z-index: 240;
}

.lab-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
}

.mission-card-wrapper [data-is-completed="true"] {
  opacity: 0.85;
  text-decoration: line-through;
}

@media (max-width: 720px) {
  .island-node { width: 44px; height: 44px; }
  .island-emoji { font-size: 18px; }
  .island-name { font-size: 12px; padding: 6px 8px; }
}
  position:absolute;
  top:14px;
  right:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:50px;
  background:linear-gradient(135deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.12) 100%);
  border:3px solid rgba(0,0,0,.2);
  font-size:13px;
  font-weight:900;
  color:rgba(0,0,0,.8);
  box-shadow: 
    0 3px 0 rgba(0,0,0,.15),
    0 6px 12px rgba(0,0,0,.15);
}
.lg-guest-island__lock i{font-style:normal}
.lg-guest-island__cta{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  color:#4a7c5e;
  font-weight:700;
}
.lg-guest-island__cta b{color:#1a2f23; font-weight:900;}


/* Panels */
.lg-panel__title{ 
  font-size: 32px; 
  font-weight: 900; 
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 
    3px 3px 0 rgba(0,0,0,.2),
    -2px -2px 0 rgba(255,255,255,.15),
    0 6px 16px rgba(0,0,0,.25);
  transform: rotate(-1deg);
}
.lg-panel__desc{ 
  margin:0 0 18px; 
  color: rgba(255,255,255,.92); 
  font-weight:800;
  font-size: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.15);
}

/* Child hero */
.lab-hero{
  background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,248,220,.8) 100%);
  border: 5px solid rgba(212,165,116,.5);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 
    0 6px 0 rgba(212,165,116,.4),
    0 14px 30px rgba(0,0,0,.15),
    inset 0 3px 8px rgba(255,255,255,.7);
  position: relative;
}
.lab-hero::before{
  content: '⭐';
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 40px;
  opacity: .7;
  animation: lgHeroStar 2s ease-in-out infinite;
}
@keyframes lgHeroStar{
  0%,100%{transform: rotate(0deg) scale(1)}
  50%{transform: rotate(180deg) scale(1.15)}
}
.lab-hero__title{ 
  margin:0; 
  font-size: 26px; 
  font-weight: 900;
  color: #1a2f23;
  text-shadow: 2px 2px 0 rgba(255,255,255,.5);
}
.lab-hero__sub{ 
  margin: 10px 0 0; 
  color: #4a7c5e; 
  font-weight:800; 
  line-height:1.7;
  font-size: 15px;
}
.lab-hero__cta{ 
  margin-top: 16px; 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
}


/* Map */
.lg-map{ 
  margin-top: 20px; 
  display:grid; 
  grid-template-columns: 1fr 340px; 
  gap: 16px; 
  align-items:start; 
}
@media (max-width: 1024px){
  .lg-map{grid-template-columns: 1fr}
}
.lg-map__canvas{
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,248,220,.08) 100%);
  border:5px solid rgba(255,255,255,.25);
  overflow:hidden;
  box-shadow: 
    0 6px 0 rgba(255,255,255,.15),
    0 14px 30px rgba(0,0,0,.2),
    inset 0 3px 8px rgba(255,255,255,.3);
}
.lg-map__bg{ 
  position:absolute; 
  inset:0; 
  pointer-events:none;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255,215,0,.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(34,197,94,.06) 0%, transparent 45%);
}

.lg-grid{
  position:absolute; 
  inset:-2px;
  background-image: 
    linear-gradient(rgba(255,255,255,.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.12) 2px, transparent 2px);
  background-size: 40px 40px;
  opacity:.5;
}

.lg-sky-clouds,
.lg-clouds{
  position:absolute; 
  inset:0;
  background: 
    radial-gradient(500px 250px at 20% 20%, rgba(255,255,255,.15), transparent 65%),
    radial-gradient(600px 300px at 80% 35%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(480px 240px at 45% 75%, rgba(255,255,255,.10), transparent 55%);
  animation: lgCloudsFloat 20s ease-in-out infinite;
}
@keyframes lgCloudsFloat{
  0%,100%{transform: translateX(0px)}
  50%{transform: translateX(20px)}
}
.lg-paths{ 
  position:absolute; 
  inset:0; 
  width:100%; 
  height:100%; 
  opacity:.5;
}
.lg-islands{
  position: relative;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  padding: 20px;
  z-index: 2;
}
@media (max-width: 640px){
  .lg-islands{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.lg-island{
  text-align:left;
  border:5px solid rgba(255,255,255,.3);
  background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,248,220,.8) 100%);
  color:#1a2f23;
  border-radius: 24px;
  padding: 20px;
  cursor:pointer;
  transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 5px 0 rgba(212,165,116,.4),
    0 10px 20px rgba(0,0,0,.15),
    inset 0 2px 4px rgba(255,255,255,.7);
  position: relative;
}
.lg-island::before{
  content: '🌴';
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 28px;
  opacity: .5;
  transform: rotate(15deg);
}
.lg-island:hover{ 
  transform: translateY(-4px) scale(1.03); 
  background: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,248,220,.85) 100%);
  box-shadow: 
    0 7px 0 rgba(212,165,116,.4),
    0 16px 32px rgba(0,0,0,.2),
    inset 0 2px 6px rgba(255,255,255,.8);
}
.lg-island.is-locked{ 
  opacity:.6; 
  cursor:not-allowed;
  filter: grayscale(.8);
  background: linear-gradient(135deg, rgba(200,200,200,.7) 0%, rgba(180,180,180,.65) 100%);
}
.lg-island.is-locked::after{
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: .4;
}

.lg-island__name{ 
  font-weight: 900; 
  margin-top: 10px;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(255,255,255,.6);
}
.lg-island__desc{ 
  margin-top: 6px; 
  color: #4a7c5e; 
  font-weight:800; 
  font-size: 14px; 
  line-height: 1.6; 
}
.lg-island__meta{ 
  margin-top: 12px; 
  display:flex; 
  gap:10px; 
  flex-wrap:wrap; 
  color: #4a7c5e; 
  font-weight:900; 
  font-size: 13px; 
}
.lg-island__lock{ 
  margin-top:12px; 
  font-weight: 900; 
  color: #FF8C00;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,215,0,.2);
  border: 3px solid rgba(255,165,0,.4);
  border-radius: 50px;
  font-size: 13px;
}

  /* ==================== MISSIONS SIDEBAR ==================== */
  .lg-missions {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 320px;
    max-height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--lg-shadow-lg);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 500;
  }
.lg-missions::before{
  content: '📋';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 36px;
  opacity: .6;
}
.lg-missions__head{ 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  gap:12px; 
}
.lg-missions__title{ 
  margin:0; 
  font-size: 20px; 
  font-weight: 900;
  color: #1a2f23;
  text-shadow: 2px 2px 0 rgba(255,255,255,.5);
}
.lg-missions__list{ 
  margin-top: 14px; 
  display:grid; 
  gap:12px; 
}
.lg-empty{ 
  padding: 20px; 
  border-radius: 20px; 
  background: linear-gradient(135deg, rgba(135,206,235,.15) 0%, rgba(77,208,225,.1) 100%);
  border:4px dashed rgba(77,208,225,.4); 
  color: #4a7c5e;
  text-align: center;
  font-weight: 800;
}


/* HUD */
  .lg-hud {
    position: fixed;
    inset: 20px;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .lg-hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .lg-time-controls,
  .lg-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .time-btn,
.view-btn {
  background: transparent; border: none; color: rgba(255,255,255,0.7);
  padding: 8px 20px; border-radius: 40px; cursor: pointer; font-weight: bold; transition: all 0.3s;
}
.view-switcher { 
  background: rgba(0,0,0,0.25); 
  padding: 4px; 
  border-radius: 50px; 
  display: flex; 
  gap: 5px; 
  margin-top: 15px; 
}

  .time-btn:hover,
  .view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  .time-btn.active,
.view-btn.active { background: white; color: #667eea; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }



    .btn-icon {
    font-size: 1.125rem;
    line-height: 1;
     margin-right: 8px; 
    }

.lg-hud__tube{
  width: 24px; 
  height: 140px;
  border-radius: 50px;
  background: linear-gradient(to bottom, rgba(200,200,200,.4), rgba(180,180,180,.35));
  border:4px solid rgba(77,208,225,.4);
  overflow:hidden;
  position:relative;
  box-shadow: 
    inset 0 4px 8px rgba(0,0,0,.15),
    0 4px 12px rgba(77,208,225,.2);
}
.lg-hud__fill{
  position:absolute; 
  left:0; 
  right:0; 
  bottom:0;
  background: linear-gradient(180deg, #4DD0E1 0%, #26C6DA 100%);
  box-shadow: 0 -4px 12px rgba(77,208,225,.6);
  transition: height .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lg-hud__meta{ 
  display:grid; 
  gap:8px; 
}

.lg-hud__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.lg-hud__stat{ 
  text-align:right; 
  font-weight:900;
  color: #1a2f23;
}
.lg-hud__stat small{ 
  display:block; 
  font-weight:800; 
  color: #4a7c5e;
  font-size: 13px;
  margin-top: 4px;
}
  .lg-user-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .lg-stat-pill {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

/* Parent */
.lg-parent__cards{ 
  display:grid; 
  gap:16px; 
  grid-template-columns: repeat(3, minmax(0,1fr)); 
}
@media (max-width: 860px){
  .lg-parent__cards{grid-template-columns: 1fr}
}
.lg-parentCard{
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,248,220,.85) 100%);
  border:5px solid rgba(212,165,116,.5);
  padding: 20px;
  box-shadow: 
    0 6px 0 rgba(212,165,116,.4),
    0 14px 30px rgba(0,0,0,.15),
    inset 0 3px 8px rgba(255,255,255,.7);
  position: relative;
  transition: all .2s ease;
}


.lg-parent__cta{ 
  margin-top: 18px; 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
}

/* B2B */
.lg-b2b__grid{ 
  display:grid; 
  grid-template-columns: repeat(2, minmax(0,1fr)); 
  gap:14px; 
}
@media (max-width: 640px){
  .lg-b2b__grid{grid-template-columns: 1fr}
}
.lg-b2b__item{
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,248,220,.8) 100%);
  border:4px solid rgba(212,165,116,.5);
  padding: 18px;
  font-weight: 900;
  color: #1a2f23;
  box-shadow: 
    0 5px 0 rgba(212,165,116,.4),
    0 10px 20px rgba(0,0,0,.12),
    inset 0 2px 4px rgba(255,255,255,.6);
  transition: all .15s ease;
}
.lg-b2b__item:hover{
  transform: translateY(-2px);
  box-shadow: 
    0 7px 0 rgba(212,165,116,.4),
    0 14px 28px rgba(0,0,0,.15);
}
.lg-b2b__actions{ 
  margin-top: 18px; 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
}

@keyframes lgModalFadeIn{
  from{opacity: 0}
  to{opacity: 1}
}

/* ===== ANIMATED MAP BACKGROUND ===== */
.lgUE::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    /* Grid roads */
    repeating-linear-gradient(90deg, 
      transparent 0px, 
      transparent 180px,
      var(--ue-road) 180px,
      var(--ue-road) 200px,
      transparent 200px,
      transparent 380px
    ),
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 180px, 
      var(--ue-road) 180px,
      var(--ue-road) 200px,
      transparent 200px,
      transparent 380px
    ),
    /* Grass blocks */
    repeating-linear-gradient(90deg,
      var(--ue-grass) 0px,
      var(--ue-grass) 180px,
      transparent 180px,
      transparent 200px
    ),
    repeating-linear-gradient(0deg,
      var(--ue-grass) 0px,
      var(--ue-grass) 180px,
      transparent 180px,
      transparent 200px
    );
  background-size: 400px 400px;
  opacity: .35;
  animation: ueMapScroll 80s linear infinite;
}

@keyframes ueMapScroll {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 400px 400px, 400px 400px, 400px 400px, 400px 400px; }
}

/* ===== FLOATING BUILDINGS ===== */
.lgUE::after {
  content: '🏢 🏪 🏫 🏛️ 🏗️ 🏨 🏦 🏬 🏰 ⛪';
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  font-size: 48px;
  letter-spacing: 80px;
  opacity: .15;
  pointer-events: none;
  z-index: 1;
  animation: ueBuildingsDrift 60s linear infinite;
}

@keyframes ueBuildingsDrift {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ===== GAME PATH (Winding Road) ===== */
.lgUE .ue {
  position: relative;
  z-index: 2;
}

.lgUE .ue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 100%;
  background: 
    repeating-linear-gradient(
      to bottom,
      var(--ue-path) 0px,
      var(--ue-path) 15px,
      transparent 15px,
      transparent 20px,
      var(--ue-path) 20px,
      var(--ue-path) 35px,
      transparent 35px,
      transparent 40px
    ),
    linear-gradient(
      to right,
      transparent 0%,
      var(--ue-road) 20%,
      var(--ue-road) 80%,
      transparent 100%
    );
  transform: translateX(-50%);
  opacity: .25;
  z-index: 0;
  pointer-events: none;
  animation: uePathFlow 4s linear infinite;
  border-left: 8px dashed rgba(255,255,255,.4);
  border-right: 8px dashed rgba(255,255,255,.4);
}

@keyframes uePathFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 40px, 0 0; }
}
lgUE-hero__top > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--lgUE-glass-bg);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lg-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,.6) 50%, 
    transparent 100%
  );
  animation: lgChipShine 3s ease-in-out infinite;
}

@keyframes lgChipShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.lg-chip strong {
  font-weight: 900;
  color: #1a2f23;
  font-size: 17px;
}

.lg-chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 7px 0 #A0826B,
    0 14px 28px rgba(0,0,0,.2);
}

.lg-chip--ok {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
  color: #a7f3d0;
}

.lg-chip--lock {
  background: rgba(100,116,139,0.2);
  border-color: rgba(100,116,139,0.4);
  color: #cbd5e1;
}


.lg-chip--lock:hover {
  box-shadow: 
    0 7px 0 #CD5C5C,
    0 14px 28px rgba(255,99,71,.3);
}
/* ═══════════════════════════════════════════════════════════
   🗺️ 3D Spiral Navigator
   ═══════════════════════════════════════════════════════════ */
.lgUE-navigator {
  height: auto;
  min-height: 500px;
  overflow: visible;
  position: relative;
  width: 100%;
}

/* 背景星空 */
.lgUE-navigator__stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent);
  background-size: 200% 200%;
  animation: lgUE-starsFloat 60s linear infinite;
  pointer-events: none;
}

@keyframes lgUE-starsFloat {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes lgUE-cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 500px)); }
}

/* 3D 场景 */
.lgUE-navigator__scene {
  height: auto;
  min-height: 500px;
  overflow: visible;
}

/* 螺旋容器 */
.lgUE-navigator__spiral {
  height: auto;
  min-height: 500px;
  position: relative;
}

@keyframes lgUE-spiralRotate {
  0% { transform: rotateX(60deg) rotateZ(0deg); }
  100% { transform: rotateX(60deg) rotateZ(360deg); }
}


.lgUE-island.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

@keyframes lgUE-islandFadeIn {}

.lgUE-island:nth-child(1) { animation-delay: 0.1s; }
.lgUE-island:nth-child(2) { animation-delay: 0.2s; }
.lgUE-island:nth-child(3) { animation-delay: 0.3s; }
.lgUE-island:nth-child(4) { animation-delay: 0.4s; }
.lgUE-island:nth-child(5) { animation-delay: 0.5s; }
.lgUE-island:nth-child(6) { animation-delay: 0.6s; }
.lgUE-island:nth-child(7) { animation-delay: 0.7s; }
.lgUE-island:nth-child(8) { animation-delay: 0.8s; }
.lgUE-island:nth-child(9) { animation-delay: 0.9s; }

/* 岛屿卡片 */
.lgUE-island__card {
  position: relative;
  background: var(--lgUE-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 40px rgba(147,197,253,0.2);
  transform-style: preserve-3d;
}

.lgUE-island.is-completed .lgUE-island__card {
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.08) 100%);
  border-color: rgba(34,197,94,0.4);
  animation: lgUE-islandGlow 3s ease-in-out infinite;
}

@keyframes lgUE-islandGlow {
  0%, 100% { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 50px rgba(34,197,94,0.5);
  }
  50% { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(34,197,94,0.8);
  }
}

/* 徽章 */
.lgUE-island__badge {
  position: absolute;
  top: -12px;
  right: -12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 900;
  color: #78350f;
  box-shadow: 0 8px 24px rgba(251,191,36,0.4);
  z-index: 10;
}

.lgUE-island__badge--completed {
  background: linear-gradient(135deg, var(--lgUE-success) 0%, #16a34a 100%);
  color: white;
  animation: lgUE-badgePulse 2s ease-in-out infinite;
}
/* 图标 */
.lgUE-island__icon {
  font-size: 80px;
  text-align: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  transform: translateZ(20px);
  animation: lgUE-iconFloat 3s ease-in-out infinite;
}

@keyframes lgUE-iconFloat {
  0%, 100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(20px) translateY(-10px); }
}

.lgUE-island.is-locked .lgUE-island__icon {
  filter: grayscale(1) drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  opacity: 0.5;
}

/* 标题和描述 */
.lgUE-island__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.lgUE-island__desc {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
}

.lgUE-island__meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.lgUE-island__difficulty {
  padding: 4px 12px;
  background: rgba(251,191,36,0.2);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 50px;
  color: var(--gold);
  font-weight: 700;
}

.lgUE-island__gfun {
  padding: 4px 12px;
  background: rgba(34,211,238,0.2);
  border: 1px solid rgba(34,211,238,0.4);
  border-radius: 50px;
  color: #22d3ee;
  font-weight: 700;
}

/* 进度条 */
.lgUE-island__progress {
  background: rgba(0,0,0,0.3);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lgUE-island__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lgUE-primary) 0%, var(--lgUE-secondary) 100%);
  border-radius: 50px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(217,70,239,0.6);
}

/* 按钮 */
.lgUE-island__btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--lgUE-primary) 0%, var(--lgUE-secondary) 100%);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217,70,239,0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lgUE-island__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(217,70,239,0.6);
}

.lgUE-island.is-locked .lgUE-island__btn {
  background: linear-gradient(135deg, var(--lgUE-lock) 0%, #475569 100%);
  cursor: not-allowed;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   🎮 Game Detail View (Slide-in)
   ═══════════════════════════════════════════════════════════ */
.lgUE-game-detail {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lgUE-game-detail.is-active {
  transform: translateX(0);
}

.lgUE-game-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lgUE-game-detail__back {
  padding: 12px 24px;
  background: var(--lgUE-glass-bg);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lgUE-game-detail__back:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(-5px);
}

.lgUE-game-detail__title {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}

.lgUE-game-detail__content {
  flex: 1;
  padding: 40px 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   📱 Navigation Controls
   ═══════════════════════════════════════════════════════════ */
.lgUE-nav {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  gap: 16px;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: 50px;
  border: 2px solid var(--lgUE-glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lgUE-nav__btn {
  padding: 12px 24px;
  background: rgba(147,197,253,0.2);
  border: 2px solid rgba(147,197,253,0.3);
  border-radius: 50px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.lgUE-nav__btn:hover {
  background: rgba(147,197,253,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(147,197,253,0.4);
}

/* ═══════════════════════════════════════════════════════════
   🎨 LittleG Urban Explorer - Base Styles
   ═══════════════════════════════════════════════════════════ */
.lgUE {
  --lgUE-sky-from: #0a1128;
  --lgUE-sky-to: #2d4a7c;
  --lgUE-glass-bg: rgba(255,255,255,0.1);
  --lgUE-glass-border: rgba(255,255,255,0.2);
  --lgUE-primary: #22d3ee;
  --lgUE-secondary: #d946ef;
  --lgUE-success: #22c55e;
  --lgUE-lock: #64748b;
  
  position: relative;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, var(--lgUE-sky-from) 0%, var(--lgUE-sky-to) 100%);
  color: white;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════
   🦸 Hero Section
   ═══════════════════════════════════════════════════════════ */
.lgUE-hero {
  position: relative;
  padding: 60px 20px;
  text-align: center;
}

.lgUE-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -50%, rgba(147,197,253,0.15) 0%, transparent 50%);
  animation: lgUE-raysPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lgUE-float {50% { transform: translateY(-15px); }
}


.lgUE-btn--primary {
  background: linear-gradient(135deg, var(--lgUE-primary) 0%, var(--lgUE-secondary) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(217,70,239,0.4);
}

.lgUE-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(217,70,239,0.6);
}

.lgUE-btn--ghost {
  background: var(--lgUE-glass-bg);
  border: 2px solid var(--lgUE-glass-border);
  color: white;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lgUE-btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}



.lgUE-cloud {
  position: absolute;
  background: radial-gradient(ellipse, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: lgUE-cloudDrift linear infinite;
}

.lgUE-cloud:nth-child(1) {
  width: 400px;
  height: 150px;
  top: 10%;
  left: -200px;
  animation-duration: 80s;
}

.lgUE-cloud:nth-child(2) {
  width: 300px;
  height: 100px;
  top: 50%;
  left: -150px;
  animation-duration: 100s;
  animation-delay: -20s;
}

@keyframes lgUE-cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 500px)); }
}

/* ═══════════════════════════════════════════════════════════
   🏝️ Game Island Cards
   ═══════════════════════════════════════════════════════════ */

.lgUE-island {
  position: absolute;
  width: 280px;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  animation:lgUE-islandFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.lgUE-island:hover:not(.is-locked) {
  transform: translateZ(80px) scale(1.1) !important;
  z-index: 100;
}

.lgUE-island.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

@keyframes lgUE-islandFadeIn {}

/* 岛屿卡片 */
.lgUE-island__card {
  position: relative;
  background: var(--lgUE-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 40px rgba(147,197,253,0.2);
  transform-style: preserve-3d;
}

.lgUE-island.is-completed .lgUE-island__card {
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.08) 100%);
  border-color: rgba(34,197,94,0.4);
  animation: lgUE-islandGlow 3s ease-in-out infinite;
}

@keyframes lgUE-islandGlow {
  0%, 100% { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 50px rgba(34,197,94,0.5);
  }
  50% { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(34,197,94,0.8);
  }
}

/* 徽章 */
.lgUE-island__badge {
  position: absolute;
  top: -12px;
  right: -12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 900;
  color: #78350f;
  box-shadow: 0 8px 24px rgba(251,191,36,0.4);
  z-index: 10;
}

.lgUE-island__badge--completed {
  background: linear-gradient(135deg, var(--lgUE-success) 0%, #16a34a 100%);
  color: white;
  animation: lgUE-badgePulse 2s ease-in-out infinite;
}

@keyframes lgUE-badgePulse {}

/* 图标 */
.lgUE-island__icon {
  font-size: 80px;
  text-align: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  transform: translateZ(20px);
  animation: lgUE-iconFloat 3s ease-in-out infinite;
}

@keyframes lgUE-iconFloat {
  0%, 100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(20px) translateY(-10px); }
}

.lgUE-island.is-locked .lgUE-island__icon {
  filter: grayscale(1) drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  opacity: 0.5;
}

/* 标题和描述 */
.lgUE-island__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.lgUE-island__desc {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
}

.lgUE-island__meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.lgUE-island__difficulty {
  padding: 4px 12px;
  background: rgba(251,191,36,0.2);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 50px;
  color: var(--gold);
  font-weight: 700;
}


/* 按钮 */
.lgUE-island__btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--lgUE-primary) 0%, var(--lgUE-secondary) 100%);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217,70,239,0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lgUE-island__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(217,70,239,0.6);
}

.lgUE-island.is-locked .lgUE-island__btn {
  background: linear-gradient(135deg, var(--lgUE-lock) 0%, #475569 100%);
  cursor: not-allowed;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   🎮 Game Detail View (Slide-in)
   ═══════════════════════════════════════════════════════════ */
.lgUE-game-detail {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lgUE-game-detail.is-active {
  transform: translateX(0);
}

.lgUE-game-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lgUE-game-detail__back {
  padding: 12px 24px;
  background: var(--lgUE-glass-bg);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lgUE-game-detail__back:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(-5px);
}

.lgUE-game-detail__title {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}

.lgUE-game-detail__content {
  flex: 1;
  padding: 40px 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}


/* Road stripe decoration on hero */
.lgUE-hero__top::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: 
    repeating-linear-gradient(
      90deg,
      #FFD700 0px,
      #FFD700 30px,
      #FFA500 30px,
      #FFA500 60px
    );
  opacity: .6;
}

/* City skyline decoration */
.lgUE-hero__top::after {
  content: '🏙️';
  position: absolute;
  top: -24px;
  right: 5%;
  font-size: 80px;
  opacity: .2;
  animation: ueSkyscraperPulse 3s ease-in-out infinite;
}

@keyframes ueSkyscraperPulse {
  0%, 100% { transform: scale(1); opacity: .2; }
  50% { transform: scale(1.1); opacity: .35; }
}

.lgUE-hero__mascot {
  font-size: 120px;
  display: inline-block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.2));
  animation: ueMascotBounce 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin-bottom: 16px;
}

@keyframes ueMascotBounce {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-20px) rotate(-8deg) scale(1.05); }
  50% { transform: translateY(0) rotate(0deg) scale(1); }
  75% { transform: translateY(-10px) rotate(8deg) scale(1.02); }
}
@keyframes lgUE-float {50% { transform: translateY(-15px); }
}

.lgUE-hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  margin: 0 0 16px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.lgUE-hero__sub {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
  line-height: 1.5;
}

.lgUE-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.lgUE-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--lgUE-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--lgUE-glass-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lgUE-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.lgUE-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.bridge-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bridge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bridge-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}


.bridge-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
}

.bridge-card__message {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.7);
  margin: 0 0 16px;
}

.bridge-card__value {
  background: rgba(99, 102, 241, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}

.bridge-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Evidence Timeline */
.evidence-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.evidence-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border-left: 4px solid #4facfe;
}

.evidence-concept {
  font-weight: 600;
  color: #0f172a;
}

.evidence-location,
.evidence-time {
  font-size: 14px;
  color: rgba(15, 23, 42, 0.6);
}

.evidence-badge {
  margin-left: auto;
  font-size: 20px;
}

@keyframes ueTrafficLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(100vw); }
}


@keyframes ueStreetLight {
  from { opacity: .2; filter: brightness(1); }
  to { opacity: .5; filter: brightness(1.5); }
}



/* ===== MINI GAMES SECTION ===== */
.lg-t1 {
  position: relative;
  z-index: 3;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.lgUE-card {
  background: linear-gradient(135deg, 
    rgba(255,255,255,.96) 0%, 
    rgba(255,248,220,.94) 100%
  );
  border: 8px solid #D4A574;
  border-radius: 40px;
  padding: 48px 36px;
  box-shadow: 
    0 12px 0 #B8956A,
    0 24px 48px rgba(0,0,0,.25),
    inset 0 6px 16px rgba(255,255,255,.8);
  position: relative;
  overflow: hidden;
}

/* Map grid decoration */
.lgUE-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 48px,
      rgba(212,165,116,.1) 48px,
      rgba(212,165,116,.1) 50px
    ),
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 48px,
      rgba(212,165,116,.1) 48px,
      rgba(212,165,116,.1) 50px
    );
  opacity: .3;
  pointer-events: none;
  z-index: 0;
}

.lgUE-card__title {
  margin: 0 0 32px;
  font-size: 42px;
  font-weight: 900;
  color: var(--ue-text);
  text-align: center;
  text-shadow: 
    3px 3px 0 rgba(255,255,255,.7),
    -2px -2px 0 rgba(0,0,0,.08),
    0 6px 16px rgba(0,0,0,.12);
  transform: rotate(-1.5deg);
  position: relative;
  z-index: 1;
}

/* ===== GAMES GRID (Game Board Layout) ===== */
.lgUE-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 968px) {
  .lgUE-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .lgUE-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Game spots on map */
.lgUE-prod {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(255,255,255,.95) 0%, 
    rgba(255,248,220,.92) 100%
  );
  border: 6px solid #FFD700;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 
    0 8px 0 #D4A574,
    0 16px 32px rgba(0,0,0,.18),
    inset 0 4px 12px rgba(255,255,255,.7);
  transition: all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: lgProdFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--prod-index, 0) * 0.15s);
}

.lgUE-prod:nth-child(1) { --prod-index: 0; }
.lgUE-prod:nth-child(2) { --prod-index: 1; }
.lgUE-prod:nth-child(3) { --prod-index: 2; }
.lgUE-prod:nth-child(4) { --prod-index: 3; }
.lgUE-prod:nth-child(5) { --prod-index: 4; }
.lgUE-prod:nth-child(6) { --prod-index: 5; }
.lgUE-prod:nth-child(7) { --prod-index: 6; }
.lgUE-prod:nth-child(8) { --prod-index: 7; }
.lgUE-prod:nth-child(9) { --prod-index: 8; }

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

.lgUE-prod:hover {
  transform: translateY(-12px) scale(1.05) rotate(-2deg);
  box-shadow: 
    0 12px 0 #D4A574,
    0 24px 48px rgba(0,0,0,.25),
    inset 0 4px 14px rgba(255,255,255,.8);
  border-color: #FFA500;
  z-index: 10;
}

/* Game location pins */
.lgUE-prod::before {
  content: '📍';
  position: absolute;
  top: -16px;
  right: 16px;
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
  animation: lgPinBounce 2s ease-in-out infinite;
  animation-delay: calc(var(--prod-index, 0) * 0.1s);
}

@keyframes lgPinBounce {50% { transform: translateY(-6px) scale(1.1); }
}

/* ===== LOCK GATE (Blocked Area) ===== */
.lgUE-gate {
  position: relative;
  margin-top: 32px;
  z-index: 2;
}

.lgUE-gate__card {
  background: linear-gradient(135deg, 
    rgba(255,230,230,.96) 0%, 
    rgba(255,240,240,.94) 100%
  );
  border: 8px solid #FF6347;
  border-radius: 36px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 
    0 10px 0 #CD5C5C,
    0 20px 40px rgba(255,99,71,.3),
    inset 0 5px 14px rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
  animation: lgGateShake 4s ease-in-out infinite;
}

@keyframes lgGateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-0.5deg); }
  50% { transform: translateX(0); }
  75% { transform: translateX(3px) rotate(0.5deg); }
}

/* Lock icon decoration */
.lgUE-gate__card::before {
  content: '🔒';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  opacity: .2;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.2));
  animation: lgLockPulse 2s ease-in-out infinite;
}

@keyframes lgLockPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .2; }
  50% { transform: translateX(-50%) scale(1.15); opacity: .35; }
}

/* Warning stripes */
.lgUE-gate__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    -45deg,
    #FFD700 0px,
    #FFD700 15px,
    #FFA500 15px,
    #FFA500 30px
  );
  opacity: .4;
}

.lgUE-gate__title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 900;
  color: #8B0000;
  text-shadow: 
    2px 2px 0 rgba(255,255,255,.6),
    -1px -1px 0 rgba(139,0,0,.2);
  position: relative;
  z-index: 1;
}

.lgUE-gate__text {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  color: #4a1a1a;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.lgUE-gate__text strong {
  font-weight: 900;
  color: #8B0000;
  font-size: 20px;
}

/* ===== STORY CARD CONTENT ===== */
.lgUE-card__content {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  color: #2C1810;
  position: relative;
  z-index: 1;
}

/* ===== GAME CARD VARIANT ===== */
.lgUE-card--game {
  background: linear-gradient(135deg, 
    rgba(240,248,255,.96) 0%, 
    rgba(230,240,255,.94) 100%
  );
  border-color: #4DD0E1;
}

/* ===== GAME HEADER ===== */
.lgUE-gameHead {
  text-align: center;
  margin-bottom: 32px;
}

.lgUE-muted {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #4a7c5e;
  opacity: .85;
}

/* ===== OBJECT TO MEASURE ===== */
.lgUE-object {
  margin: 0 auto 40px;
  width: 240px;
  height: 180px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 6px solid #D4A574;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 0 #B8956A,
    0 16px 32px rgba(255,165,0,.3),
    inset 0 4px 12px rgba(255,255,255,.5);
  animation: lgObjectFloat 3s ease-in-out infinite;
}

@keyframes lgObjectFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

.lgUE-object__label {
  font-size: 24px;
  font-weight: 900;
  color: #1a2f23;
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
}

/* ===== GAME ROW ===== */
.lgUE-gameRow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ===== RULER (Interactive) ===== */
.lgUE-ruler {
  appearance: none;
  border: 0;
  background: linear-gradient(to right, 
    #F4E4C1 0%, 
    #EDD9B0 50%, 
    #F4E4C1 100%
  );
  width: 100%;
  max-width: 600px;
  height: 80px;
  border: 6px solid #8B7355;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #6B5345,
    0 16px 32px rgba(139,115,85,.35),
    inset 0 3px 10px rgba(255,255,255,.6),
    inset 0 -3px 10px rgba(0,0,0,.15);
  transition: all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.lgUE-ruler:hover:not(:disabled) {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 12px 0 #6B5345,
    0 24px 48px rgba(139,115,85,.4);
}

.lgUE-ruler:active:not(:disabled) {
  transform: translateY(-2px) scale(1);
  box-shadow: 
    0 4px 0 #6B5345,
    0 10px 20px rgba(139,115,85,.3);
}

.lgUE-ruler:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.7);
}

/* ===== RULER MARKS ===== */
.lgUE-ruler__marks {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  padding: 12px 20px 16px;
  position: relative;
}

.lgUE-ruler__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.lgUE-ruler__mark::before {
  content: '';
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, 
    #8B7355 0%, 
    #6B5345 100%
  );
  border-radius: 2px;
  box-shadow: 1px 1px 2px rgba(0,0,0,.2);
}

.lgUE-ruler__num {
  font-size: 14px;
  font-weight: 900;
  color: #2C1810;
  text-shadow: 1px 1px 2px rgba(255,255,255,.7);
}

/* ===== RESULT DISPLAY ===== */
.lgUE-result {
  padding: 20px 32px;
  background: linear-gradient(135deg, 
    rgba(144,238,144,.9) 0%, 
    rgba(152,251,152,.85) 100%
  );
  border: 6px solid #32CD32;
  border-radius: 28px;
  font-size: 24px;
  font-weight: 900;
  color: #1a2f23;
  text-align: center;
  box-shadow: 
    0 8px 0 #228B22,
    0 16px 32px rgba(34,139,34,.3),
    inset 0 3px 10px rgba(255,255,255,.7);
  animation: lgResultPop .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes lgResultPop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.lgUE-result[hidden] {
  display: none;
}

/* ===== ACTIONS GROUP ===== */
.lgUE-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== DARK BUTTON VARIANT ===== */
.lgUE-btn--dark {
  background: linear-gradient(135deg, 
    #4a7c5e 0%, 
    #2f5d3e 100%
  );
  color: #fff;
}

.lgUE-btn--dark:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 
    0 12px 0 rgba(0,0,0,.3),
    0 24px 48px rgba(47,93,62,.4);
}

/* Responsive */
@media (max-width: 640px) {
  .lgUE-ruler {
    height: 60px;
  }
  
  .lgUE-ruler__mark::before {
    height: 28px;
  }
  
  .lgUE-ruler__num {
    font-size: 12px;
  }
  
  .lgUE-object {
    width: 180px;
    height: 140px;
  }
}

/* ===== REAL CASE SECTION ===== */
.lgUE-case {
  background: linear-gradient(135deg, 
    rgba(255,250,240,.96) 0%, 
    rgba(255,245,230,.94) 100%
  );
  border: 8px solid #D4A574;
  border-radius: 40px;
  padding: 48px 36px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 
    0 12px 0 #B8956A,
    0 24px 48px rgba(0,0,0,.2),
    inset 0 6px 16px rgba(255,255,255,.7);
  position: relative;
}

.lgUE-case::before {
  content: '📖';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 64px;
  opacity: .6;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.2));
}

.lgUE-case__title {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 900;
  color: var(--ue-text);
  text-shadow: 
    2px 2px 0 rgba(255,255,255,.7),
    -1px -1px 0 rgba(0,0,0,.08);
}

.lgUE-case__content {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  color: #2C1810;
}

/* ===== REWARDS SECTION ===== */
.lgUE-reward {
  background: linear-gradient(135deg, 
    rgba(255,245,220,.96) 0%, 
    rgba(255,250,205,.94) 100%
  );
  border: 8px solid #FFD700;
  border-radius: 40px;
  padding: 48px 36px;
  margin: 40px auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 
    0 12px 0 #D4A574,
    0 24px 48px rgba(255,215,0,.3),
    inset 0 6px 16px rgba(255,255,255,.8);
  position: relative;
  overflow: hidden;
}

.lgUE-reward::before {
  content: '🎁';
  position: absolute;
  top: -16px;
  right: 40px;
  font-size: 72px;
  opacity: .4;
  animation: lgRewardSpin 4s ease-in-out infinite;
}

@keyframes lgRewardSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.1); }
}

.lgUE-reward__title {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 900;
  color: var(--ue-text);
  text-shadow: 
    3px 3px 0 rgba(255,255,255,.7),
    -2px -2px 0 rgba(0,0,0,.08),
    0 6px 16px rgba(255,215,0,.3);
  transform: rotate(-1deg);
}

/* ===== REWARD GRID ===== */
.lgUE-reward__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .lgUE-reward__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.lgUE-reward__item {
  background: linear-gradient(135deg, 
    rgba(255,255,255,.95) 0%, 
    rgba(255,248,220,.92) 100%
  );
  border: 6px solid #FFA500;
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: 
    0 8px 0 #D4A574,
    0 16px 32px rgba(255,165,0,.25),
    inset 0 4px 12px rgba(255,255,255,.7);
  transition: all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: lgRewardItemFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--reward-index, 0) * 0.2s);
}

.lgUE-reward__item:nth-child(1) { --reward-index: 0; }
.lgUE-reward__item:nth-child(2) { --reward-index: 1; }
.lgUE-reward__item:nth-child(3) { --reward-index: 2; }

@keyframes lgRewardItemFloat {50% { transform: translateY(-10px); }
}

.lgUE-reward__item:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 
    0 12px 0 #D4A574,
    0 24px 48px rgba(255,165,0,.35);
  border-color: #FFD700;
}

.lgUE-reward__icon {
  font-size: 72px;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.15));
  animation: lgRewardIconBounce 2s ease-in-out infinite;
  animation-delay: calc(var(--reward-index, 0) * 0.15s);
}

@keyframes lgRewardIconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(-5deg); }
}

.lgUE-reward__text {
  font-size: 18px;
  font-weight: 800;
  color: var(--ue-text);
  line-height: 1.6;
}

/* ===== START BUTTON ===== */
.lgUE-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  background: linear-gradient(135deg, 
    #32CD32 0%, 
    #228B22 100%
  );
  border: 7px solid rgba(255,255,255,.95);
  border-radius: 50px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  box-shadow: 
    0 10px 0 #1E7B1E,
    0 20px 40px rgba(34,139,34,.4),
    inset 0 4px 12px rgba(255,255,255,.3);
  transition: all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.lgUE-start::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  font-size: 32px;
  animation: lgStartSparkle 2s ease-in-out infinite;
}

@keyframes lgStartSparkle {
  0%, 100% { left: -30px; opacity: 0; }
  50% { left: 20px; opacity: 1; }
}

.lgUE-start:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 
    0 14px 0 #1E7B1E,
    0 28px 56px rgba(34,139,34,.5);
}

.lgUE-start:active {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 0 #1E7B1E,
    0 14px 28px rgba(34,139,34,.4);
}

/* ===== PRODUCT CTA AREA ===== */
.lgUE-prod__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
}



/* ===== META PILL (Price Tag) ===== */
.lgUE-metaPill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, 
    rgba(255,215,0,.25) 0%, 
    rgba(255,165,0,.2) 100%
  );
  border: 4px solid #FFD700;
  border-radius: 50px;
  font-weight: 900;
  font-size: 15px;
  color: var(--ue-text);
  box-shadow: 
    0 4px 0 #D4A574,
    0 8px 16px rgba(255,165,0,.2),
    inset 0 2px 6px rgba(255,255,255,.6);
}

/* ===== PRODUCT TITLE & DESC ===== */
.lgUE-prod__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ue-text);
  margin-bottom: 12px;
  text-shadow: 1px 1px 2px rgba(255,255,255,.6);
}

.lgUE-prod__desc {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #4a7c5e;
  margin-bottom: 16px;
}

.lgUE-prod__desc code {
  background: rgba(255,215,0,.2);
  border: 2px solid rgba(255,165,0,.4);
  border-radius: var(--radius-md);
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #8B4513;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .lgUE-card__title { font-size: 32px; }
  .lgUE-gate__title { font-size: 28px; }
  .lgUE-card { padding: 32px 24px; }
  .lgUE-gate__card { padding: 32px 24px; }
}

/* ===== Guest Islands (locked preview) ===== */
.lg-guest-islands{margin-top:24px}
.lg-guest-islands__head{margin:0 0 16px 0}
.lg-guest-islands__title{
  margin:0;
  font-weight:900;
  font-size: 28px;
  letter-spacing:-.02em;
  color: #1a2f23;
  text-shadow: 
    2px 2px 0 rgba(255,255,255,.5),
    -1px -1px 0 rgba(0,0,0,.08);
}
.lg-guest-islands__sub{
  margin:8px 0 0 0;
  color:#4a7c5e;
  font-size:15px;
  font-weight:700;
  text-shadow: 1px 1px 2px rgba(255,255,255,.4);
}

.lg-guest-islands__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
@media (min-width: 860px){
  .lg-guest-islands__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}


.lg-guest-island__emoji{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(135,206,235,.3) 0%, rgba(77,208,225,.25) 100%);
  border:4px solid rgba(77,208,225,.4);
  font-size:28px;
  box-shadow: 
    0 4px 0 rgba(38,198,218,.3),
    0 8px 16px rgba(77,208,225,.2),
    inset 0 2px 4px rgba(255,255,255,.5);
}

.lg-parentCard:hover{
  transform: translateY(-3px);
  box-shadow: 
    0 8px 0 rgba(212,165,116,.4),
    0 18px 36px rgba(0,0,0,.2);
}
.lg-parentCard::before{
  content: '✨';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  opacity: .5;
}
.lg-parentCard__title{ 
  font-weight:900;
  font-size: 20px;
  color: #1a2f23;
  text-shadow: 1px 1px 2px rgba(255,255,255,.5);
}
.lg-parentCard__desc{ 
  margin-top: 8px; 
  color: #4a7c5e; 
  font-weight:800;
  font-size: 15px;
}
.lg-parentCard__hint{ 
  margin-top: 10px; 
  color: #4a7c5e; 
  font-weight:800; 
  line-height:1.7;
  font-size: 14px;
}
.lg-modal[hidden]{ display:none; }

@keyframes lgModalFadeIn{
  from{opacity: 0}
  to{opacity: 1}
}
.lg-modal__panel{
  position: relative;
  width: min(600px, 100%);
  max-height: 90%;
  overflow:auto;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,248,220,.96) 100%);
  color: var(--lg-text);
  border: 6px solid rgba(212,165,116,.6);
  box-shadow: 
    0 10px 0 rgba(212,165,116,.5),
    0 32px 120px rgba(0,0,0,.4),
    inset 0 4px 12px rgba(255,255,255,.8);
  padding: 24px;
  animation: lgModalSlideUp .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lgModalSlideUp{
  from{transform: translateY(40px); opacity: 0}}


.lg-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.lg-pricecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s;
}

.lg-pricecard:hover {
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.lg-pricecard__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.lg-pricecard__val {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Responsive */
@media (max-width: 980px){
  .lg-map{ grid-template-columns: 1fr; }
  .lg-islands{ grid-template-columns: 1fr; }
  .lg-parent__cards{ grid-template-columns: 1fr; }
}


 #littleg-lab-root {
    min-height: 100%;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #E8F4FD 0%, #F0E6FA 50%, #FDE8E8 100%);
  }

  
  .island-card.locked {
    opacity: 0.7;
  }
  
  .island-card.locked:hover {
    transform: translateY(-4px) scale(1.02);
  }
  
  .float-animation {
    animation: float 4s ease-in-out infinite;
  }
  
  .float-animation:nth-child(2) { animation-delay: 0.5s; }
  .float-animation:nth-child(3) { animation-delay: 1s; }
  .float-animation:nth-child(4) { animation-delay: 1.5s; }
  .float-animation:nth-child(5) { animation-delay: 2s; }
  .float-animation:nth-child(6) { animation-delay: 2.5s; }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

 .glow-ring {
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    from { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    to { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
  }
  
  .progress-fill {
    transition: width 0.6s ease-out;
  }


.littleg-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}



.tabs-panels {
  /* Layout */
  position: relative;
  min-height: 400px;
}

.tab-panel {
  /* Layout */
  display: none;
  opacity: 0;
  
  /* Animation */
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }}


/* 登入狀態 Header */
.login-header {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.lg-main {
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}


/* Layout */
.lg-header__content {
  max-width: var(--container-standard, 1280px);
  margin: 0 auto;
  padding:
    calc(var(--spacing-md, 16px) - 2px)
    clamp(16px, 3vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md, 16px);
}

.lg-logo svg {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #d946ef, #fbbf24);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation:  3s ease-in-out infinite;
}

.lg-brand__title{
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: var(--line-height-tight, 1.25);
  letter-spacing: var(--letter-spacing-tight, -0.022em);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, #1d1d1f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-stat {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lg-stat:hover{
  background: color-mix(in srgb, var(--surface-glass, rgba(255,255,255,.72)) 92%, #000 8%);
  border-color: var(--header-border-hover, rgba(0,0,0,.12));
  box-shadow: var(--glass-inset-highlight, inset 0 1px 0 rgba(255,255,255,.65)), var(--shadow-glass-hover, 0 10px 24px rgba(0,0,0,.08));
  transform: translateY(0);
}

.lg-stat:focus-visible{
  outline: none;
  box-shadow: var(--btn-ring, 0 0 0 4px rgba(56,189,248,.22)), var(--shadow-glass-hover, 0 10px 24px rgba(0,0,0,.08));
}

.lg-stat svg{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.lg-stat__k{
  color: var(--text-medium, #6e6e73) !important;
  letter-spacing: var(--letter-spacing-normal, 0);
}

/* Tier badge (Apple pill) */
.lg-tier-badge{
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: var(--lg-pill, 999px);
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.01em;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, var(--lg-accent, #38bdf8), var(--gold, #d4af37));
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.lg-stat__val {
  font-weight: 700;
}
.btn-login {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-login:hover {
  transform: translateY(-2px);
  color: white;
}

  .player-wrapper {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    /* Header */
    .player-header {
      position: relative;
      z-index: 100;
      background: rgba(15, 23, 42, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 2px solid var(--border);
      padding: 1rem 2rem;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    }

    .header-content {
      max-width: 1600px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
    }
    .game-icon {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, var(--cyan), var(--magenta));
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      box-shadow: 0 4px 16px rgba(217, 70, 239, 0.4);
    }

    .game-details {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .game-level {
      font-size: 0.875rem;
      color: var(--gc-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }


    .player-controls {
      display: flex;
      gap: 1.25rem;
      align-items: center;
    }

    .timer-display {
      padding: 0.875rem 1.5rem;
      background: var(--bg-medium);
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--cyan);
      letter-spacing: 0.05em;
      min-width: 120px;
      text-align: center;
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .mode-badge {
      padding: 0.5rem 1rem;
      border-radius: 10px;
      font-size: 0.875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .mode-badge.trial {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
      border: 2px solid var(--green);
    }

    .mode-badge.play {
      background: rgba(217, 70, 239, 0.2);
      color: var(--cyan);
      border: 2px solid var(--cyan);
    }

    .btn-exit {
      background: var(--bg-medium);
      color: var(--text-primary);
      border: 2px solid var(--border);
    }

    .btn-exit:hover {
      background: var(--danger);
      border-color: var(--danger);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    }

    .btn-complete {
      background: linear-gradient(135deg, var(--green), #16a34a);
      color: white;
      border: 2px solid var(--green);
    }

    .btn-complete:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
    }


    .game-iframe {
      flex: 1;
      width: 100%;
      border: none;
      background: white;
    }



    /* Completion Modal */
    .completion-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(20px);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .completion-modal.active {
      display: flex;
      animation: fadeIn 0.4s ease;
    }

    .completion-content {
      background: var(--bg-medium);
      border: 3px solid var(--green);
      border-radius: 24px;
      max-width: 600px;
      width: 100%;
      padding: 3rem;
      text-align: center;
      animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    }

    .completion-icon {
      font-size: 5rem;
      margin-bottom: 1.5rem;
      animation: bounce 1s ease infinite;
    }

    @keyframes bounce {50% { transform: translateY(-20px); }
    }

    .completion-title {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--cyan), var(--green));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .completion-stats {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin: 2rem 0;
      padding: 2rem;
      background: var(--bg-dark);
      border-radius: 16px;
    }


    .completion-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      min-width: 320px;
      padding: 1.25rem 1.75rem;
      background: var(--bg-medium);
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      gap: 1rem;
      z-index: 300;
      animation: slideInRight 0.4s ease;
    }

    .toast.success {
      border-color: var(--green);
      background: rgba(34, 197, 94, 0.15);
    }

    .toast.error {
      border-color: var(--danger);
      background: rgba(239, 68, 68, 0.15);
    }

    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(100px);
      }}

    /* Responsive */
    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        gap: 1rem;
      }

      .player-controls {
        width: 100%;
        justify-content: space-between;
      }

      .game-title {
        font-size: 1.25rem;
      }

      .completion-content {
        padding: 2rem;
      }

      .completion-title {
        font-size: 2rem;
      }

      .completion-stats {
        flex-direction: column;
        gap: 1rem;
      }
    }

    *:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: 2px;
    }
    
    
    /* 遊戲引擎容器 */
.game-engine-container {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 20px;
  margin-bottom: 30px;
}


.game-item:hover,
.game-item.active {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  transform: translateX(5px);
}

/* 中間：遊戲畫布 */
.game-canvas-area {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 600px;
}

.game-canvas-area h2 {
  color: #fff;
  margin-top: 0;
}

#gameCanvas {
  width: 100%;
  height: 500px;
  background: #1e293b;
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border);
}

.game-controls {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-control {
  padding: 10px 24px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-control:hover {
  background: var(--cyan);
  color: #0f172a;
}
/* 右側：遊戲資訊 */
.game-info {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
}

.game-info h3 {
  color: var(--magenta);
  margin-top: 0;
}


/* 登入表單（未登入時顯示） */
.login-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-form-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 450px;
  width: 90%;
}

.login-form-card h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}
.module-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
  }

  .module-header p {
    color: #64748b;
    margin: 0;
  }

  .voice-recorder {
    text-align: center;
  }

  .btn-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
  }

  .btn-record:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.3);
  }

  .record-icon {
    font-size: 3rem;
  }

  .record-text {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 16px;
  }

  .recording-indicator {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {50% { opacity: 0.5; }
  }

  .recording-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
  }

  .btn-stop {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
  }

  .recent-recordings {
    margin-top: 1.5rem;
  }

  .recording-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
  }

  .recording-icon {
    font-size: 1.5rem;
  }

  .recording-info {
    flex: 1;
  }

  .recording-title {
    font-weight: 600;
    color: #0f172a;
  }

  .recording-date {
    font-size: 0.875rem;
    color: #64748b;
  }

  .btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #38bdf8;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
  }

  .map-container {
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
  }

  .map-controls {
    display: flex;
    gap: 0.75rem;
  }

  .map-controls button {
    flex: 1;
    padding: 0.75rem;
    background: #38bdf8;
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
  }

  .photo-uploader {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .btn-take-photo {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #d946ef, #c026d3);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btn-take-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(217, 70, 239, 0.3);
  }

  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .photo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .parent-editor-notice {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    margin-top: 2rem;
    border-left: 4px solid #fbbf24;
  }

  .notice-icon {
    font-size: 3rem;
  }

  .notice-content h3 {
    margin: 0 0 0.5rem 0;
    color: #78350f;
  }

  .notice-content p {
    margin: 0 0 1rem 0;
    color: #92400e;
  }

  .btn-notice-action {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #fbbf24;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-notice-action:hover {
    background: #f59e0b;
    transform: translateY(-2px);
  }

  @media (max-width: 768px) {
    .lab-content {
      grid-template-columns: 1fr;
    }

    .parent-quick-stats {
      grid-template-columns: repeat(2, 1fr);
    }
  }
.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}
.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% { background-position: 200% 0; }
  }



.user-info {
  color: #fff;
  font-size: 18px;
}
/* 左側：遊戲選單 */
.game-menu {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
}

.game-menu h3 {
  color: var(--cyan);
  margin-top: 0;
  font-size: 20px;
}

.game-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-item {
  padding: 12px;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 12px 40px rgba(0,0,0,0.26);
}

/* Second row / user panel */
.lg-user-panel{
  max-width: var(--container-standard, 1280px);
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 22px) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md, 16px);
}
.lg-wallet {
  display: flex;
  gap: 1rem;
}
.lg-user-info:hover{
  background: color-mix(in srgb, var(--surface-glass-2, rgba(255,255,255,.58)) 88%, #000 12%);
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,.06));
}

.lg-user-info:focus-visible{
  outline: none;
  box-shadow: var(--focused-base-box-shadow, 0 0 0 .3rem rgba(0,113,227,.2));
}

.lg-wallet__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 18px);
  background: var(--surface-glass-2, rgba(255,255,255,.58));
  border: 1px solid var(--hero-border, rgba(0,0,0,.10));
  box-shadow: var(--glass-inset-highlight, inset 0 1px 0 rgba(255,255,255,.65)), var(--shadow-xs, 0 1px 2px rgba(0,0,0,.04));
}

.lg-wallet__icon{
  font-size: 1.05rem;
  line-height: 1;
}

.lg-wallet__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--lg-shadow);
}

.lg-wallet__label{
  font-size: 0.72rem;
  color: var(--text-medium, #6e6e73);
}

.lg-wallet__value{
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, #1d1d1f);
}

/* User info card */
.lg-user-info{
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md, 18px);
  background: var(--surface-glass-2, rgba(255,255,255,.58));
  border: 1px solid var(--hero-border, rgba(0,0,0,.10));
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.04));
  cursor: pointer;
  transition: var(--transition-fast, .15s var(--ease-apple));
}

.lg-avatar {
  font-size: 2rem;
  background: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--gc-muted);
}


.lg-welcome {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease;
}

.lg-welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(217, 70, 239, 0.1), rgba(251, 191, 36, 0.1));
  z-index: 0;
}

.lg-welcome__inner {
  position: relative;
  z-index: 1;
}

.lg-welcome__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--gc-muted), var(--littleg-accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-welcome__subtitle {
  font-size: 1.125rem;
  color: var(--text-tertiary);
}

.lg-h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lg-p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* ==================== Tabs ==================== */
.lg-welcome__tabs,
/* Segmented language tabs (Apple) */
/* 語言切換 Tab */
.lab-lang {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--surface-glass, rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(var(--blur-md, 12px));
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.3));
  margin-bottom: 2rem;
}

.lab-lang__tab {
  padding: 0.5rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600, #6b6b66);
  cursor: pointer;
  transition: all var(--duration-normal, 0.2s) var(--ease-apple, cubic-bezier(0.25, 0.1, 0.25, 1));
}

.lab-lang__tab:hover {
  background: var(--glass-hover, rgba(255, 255, 255, 0.5));
  color: var(--color-gray-900, #171717);
}

.lab-lang__tab:focus-visible {
  outline: 2px solid var(--color-cyan, #38bdf8);
  outline-offset: 2px;
}

.lg-welcome__panel {
  display: none;
}

.lg-welcome__panel.is-active {
  display: block;
}
/* If your theme already has .btn-primary/.btn-secondary, these are safe upgrades */
.btn-primary,
.btn-secondary{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-full, 999px);
  font-weight: var(--btn-font, 600);
  font-size: var(--btn-font-size, .95rem);
  text-decoration: none;
  transition: var(--transition-base, .3s var(--ease-apple));
  will-change: transform;
}

.btn-secondary{
  background: var(--surface-glass, rgba(255,255,255,0.72));
  color: var(--text-primary, rgba(29, 29, 31, 0.92));
  border: 1px solid var(--hero-border, rgba(0,0,0,0.10));
  box-shadow: var(--shadow-glass, 0 6px 18px rgba(0,0,0,0.04));
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    display: inline-block;
  }

  .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(0);
  }

.btn-primary {
  background: linear-gradient(135deg, 
    #FFD700 0%, 
    #FFA500 100%
  );
  color: #1a2f23;
}

.btn-primary:hover{
  background: var(--btn-bg-hover);
  box-shadow: var(--btn-shadow-hover, 0 14px 34px rgba(0,0,0,0.20));
  transform: translateY(0);
}

.btn-primary:focus-visible{
  outline: none;
  box-shadow: var(--btn-ring, 0 0 0 4px rgba(56,189,248,.22)), var(--btn-shadow-hover, 0 14px 34px rgba(0,0,0,0.20));
}


/* Mobile tune */
@media (max-width: 768px){
  .hero-cta a{ width: 100%; justify-content: center; }
  .lab-lang{ width: 100%; justify-content: space-between; }
  .lab-lang__tab{ flex: 1 1 0; text-align: center; }
}


 .fallback-emoji {
    font-size: 4rem;
  }

/* ================================================
   NAVIGATION LOADING OVERLAY
   ================================================ */




/* 島嶼信息卡片 */
.island-info-card {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-glass, rgba(10, 22, 40, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}
.lg-island-node:hover .island-info-card {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* 夜晚模式 */
.lg-map-container.night-mode {
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
}

.lg-map-container.night-mode .lg-island-node {
  filter: brightness(0.8);
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
  .lg-islandNode__image-wrapper {
    width: 150px;
    height: 150px;
  }
  
  .lg-islandCard {
    width: 280px;
  }
  
  .lock-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .lg-islandNode__image-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .lg-islandCard {
    width: 260px;
    padding: var(--spacing-md, 16px);
  }
}
/* ==================== Island Map ==================== */
.lg-island-map {
  padding: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100%;
  font-family: var(--lg-font);
  color: white;
  margin-top: 20px;
  position: relative;
}

.lg-island-map::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}

.lg-map__head {
  margin-bottom: 1.5rem;
}

.lg-map__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lg-map__desc {
  color: #94a3b8;
  font-size: 0.875rem;
}

.lg-cloud {
  position: absolute;
  background: white;
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(40px);
  animation: cloudDrift linear infinite;
}

.lg-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Island Paths SVG */
.lg-paths {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.lg-path {
  stroke-width: 3;
  stroke-dasharray: 10 5;
  stroke-linecap: round;
  fill: none;
  opacity: 0.4;
    transition: all 0.5s ease;
  stroke: #38bdf8;
  animation: dashMove 20s linear infinite;
}
.lg-path.is-completed {
  filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
}

.lg-path.is-locked {
  animation: dash-flow 2s linear infinite;
}

.lg-path.is-inactive {
  pointer-events: none;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: 24;
  }
}

.lg-path-marker {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: all 0.3s ease;
}

.lg-path-marker:hover {
  r: 8;
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
}
.lg-path--main {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  /* 用渐变 + mask 做"路径" */
  background:
    radial-gradient(120px 80px at 28% 70%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 40% 66%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 34% 58%, rgba(255,255,255,.25), transparent 70%),

    radial-gradient(120px 80px at 48% 54%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 62% 50%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 54% 44%, rgba(255,255,255,.25), transparent 70%),

    radial-gradient(120px 80px at 44% 40%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 58% 36%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 50% 30%, rgba(255,255,255,.25), transparent 70%),

    radial-gradient(120px 80px at 36% 28%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(120px 80px at 26% 36%, rgba(255,255,255,.25), transparent 70%),
    radial-gradient(140px 90px at 68% 26%, rgba(255,255,255,.28), transparent 70%);

  filter: blur(6px);
  opacity: .45;
}

/* SVG 容器 */
#island-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#island-paths defs {
  /* 渐变定义容器 */
}
.lg-island__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 20;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid;
}

.lg-island__badge--locked {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--gold);
}

.lg-island__badge--completed {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
  animation: pulse-glow 2s ease-in-out infinite;
}

.lg-island__icon{ 
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  line-height: 1;
}



.lg-island__icon--locked {
  filter: grayscale(1);
  opacity: 0.5;
}

.lg-island__info {
  text-align: center;
  margin-bottom: 1rem;
}



.lg-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #d946ef);
  border-radius: 9999px;
  transition: width 0.5s;
}

.lg-island__button {
  width: 100%;
  padding: 0.625rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lg-island__button.primary {
  background: linear-gradient(90deg, #22d3ee, #d946ef);
  color: white;
}

.lg-island__button.primary:hover {
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.4);
  transform: translateY(-2px);
}


.lg-tube {
  width: 60px;
  height: 200px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lg-tube__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #38bdf8 0%, #d946ef 50%, #fbbf24 100%);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
}

.lg-hud__pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
}


/* === Modals === */
.lg-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lg-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.lg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.lg-modal:not([hidden]) .lg-modal__panel {
  transform: scale(1);
}

.lg-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.lg-modal__close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.lg-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.lg-modal__p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.lg-modal__hint {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 1rem;
}

.lg-modal__body ul {
  list-style: none;
  padding: 0;
}

.lg-modal__body li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.lg-modal__body li:last-child {
  border-bottom: none;
}
.lg-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== Games/Cards ==================== */
.lg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.lg-game {
  position: relative;
  background: var(--lg-bg-medium);
  border-radius: 16px;
  border: 2px solid var(--lg-border);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.lg-game:hover {
  transform: perspective(1000px) rotateX(2deg) translateY(-8px);
  border-color: var(--gc-muted);
}

.lg-game.completed {
  border-color: var(--littleg-leaf);
}

.lg-game.completed::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--littleg-leaf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.lg-game__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lg-game__icon {
  font-size: 2.5rem;
}

.lg-game__title {
  flex: 1;
}

.lg-game__title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.lg-game__title p {
  font-size: 0.875rem;
  color: var(--lg-text-muted);
  margin: 0;
}

.lg-game__mode {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lg-game__mode.trial {
  background: rgba(34, 197, 94, 0.2);
  color: var(--littleg-leaf);
  border: 1px solid var(--littleg-leaf);
}

.lg-game__mode.play {
  background: rgba(217, 70, 239, 0.2);
  color: var(--gc-muted);
  border: 1px solid var(--gc-muted);
}

.lg-game__mode.product {
  background: rgba(59, 130, 246, 0.2);
  color: var(--littleg-accent-blue);
  border: 1px solid var(--littleg-accent-blue);
}

.lg-game__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lg-game__completed {
  margin-top: 0.75rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #22c55e;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-md);
}


.lg-edu__head {
  text-align: center;
  margin-bottom: 2rem;
}

.lg-edu__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.lg-edu__subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.lg-edu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.lg-edu-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.lg-edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22d3ee, #d946ef, #fbbf24);
}

.lg-edu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.3);
  box-shadow: 0 20px 50px rgba(217, 70, 239, 0.2);
}

.lg-edu-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lg-edu-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.lg-edu-card__subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  text-align: center;
}

.lg-edu-card__content {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.lg-edu-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
}

/* ==================== B2B CTA ==================== */
.lg-b2b-cta {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.lg-b2b-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(217, 70, 239, 0.1));
  z-index: 0;
}

.lg-b2b-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.lg-b2b-cta__icon {
  font-size: 5rem;
  flex-shrink: 0;
}

.lg-b2b-cta__content {
  flex: 1;
}

.lg-b2b-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fbbf24, #d946ef);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-b2b-cta__desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.lg-b2b-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.lg-b2b-feature svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
}

.lg-b2b-cta__btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(90deg, #fbbf24, #d946ef);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.lg-b2b-cta__btn:hover {
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.lg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, 
    #4DD0E1 0%, 
    #26C6DA 100%
  );
  border: 5px solid rgba(255,255,255,.9);
  border-radius: 50px;
  font-weight: 900;
  font-size: 16px;
  color: #1a2f23;
  text-decoration: none;
  box-shadow: 
    0 6px 0 #1E88A8,
    0 12px 24px rgba(77,208,225,.35),
    inset 0 3px 8px rgba(255,255,255,.5);
  transition: all .2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.lg-link::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(255,255,255,.4) 0%, 
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s ease;
}

.lg-link:hover::after {
  opacity: 1;
}

.lg-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 8px 0 #1E88A8,
    0 18px 36px rgba(77,208,225,.45);
}

.lg-link:active {
  transform: translateY(0) scale(1.02);
  box-shadow: 
    0 3px 0 #1E88A8,
    0 8px 16px rgba(77,208,225,.35);
}

.lg-kpi { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lg-kpi__item { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid rgba(15,23,42,.06); }
.lg-kpi__num { font-size: 22px; font-weight: 900; }
.lg-kpi__label { color:#64748b; margin-top: 4px; font-weight: 600; }

@media (max-width: 720px){
  .lglab-shell__title { font-size: 22px; }
  .lg-kpi { grid-template-columns: 1fr; }
  .lglab-shell__head { flex-direction: column; align-items: flex-start; }
}


/* ==================== Toast Notifications ==================== */
.lg-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lg-toast {
  padding: 1rem 1.5rem;
  border-radius: var(--r16);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lg-toast.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9));
}

.lg-toast.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
}

.lg-toast.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 70, 239, 0.9));
}

.lg-toast__icon {
  font-size: 1.5rem;
}

.lg-toast__message {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==================== Claim Reward Panel ==================== */
.lg-claim {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--r20);
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: slideUp 0.4s ease-out;
}

.lg-claim.active {
  display: flex;
}

.lg-claim__message {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
  text-align: center;
}

.lg-claim__amt {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #22c55e, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-claim__btn {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(90deg, #22c55e, #10b981);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.lg-claim__btn:hover:not(:disabled) {
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

.lg-claim__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.level-card {
  background: var(--surface-glass-light);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
  transition: 220ms var(--glg-workspace-ease);
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.level-card.ocean {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-ocean);
}

/* ==================== Completion Celebration ==================== */
.completion-celebration {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-content, 10102);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.celebration-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pulse 2s ease-in-out infinite;
}

.celebration-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30px;
  padding: 50px;
  text-align: center;
  color: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: bounceIn 0.6s ease;
  max-width: 500px;
}

.celebration-icon {
  font-size: 100px;
  animation: rotate 2s ease-in-out infinite;
}

.celebration-content h2 {
  font-size: 36px;
  margin: 20px 0;
}

.celebration-stats {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  gap: 20px;
}


.stat-item.highlight {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  transform: scale(1.1);
}

/* ==================== Utilities ==================== */
.lg-muted {
  color: #94a3b8;
}

.is-active {
  /* State class - applied contextually */
}

.is-locked {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.is-completed {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}


.error-cta-btn:focus-visible,
.suggest-card:focus-visible {
  outline: 3px solid var(--error-accent);
  outline-offset: 2px;
}


.mission-actions {
  text-align: center;
}


.lg-mission-play-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.mission-play-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
}
.mission-play-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.mission-rewards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}




.reward-stars, .reward-gfun {
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  backdrop-filter: blur(10px);
}




/* 🏆 任務完成結算視窗 - 玻璃擬態樣式 */
.lg-mission-complete-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 23, 42, 0.95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(15px);
  animation: overlayFadeIn 0.5s ease backwards;
}

.lg-reward-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px solid #00d4ff;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
  border-radius: 32px; padding: 40px; width: 90%; max-width: 480px;
  text-align: center; color: white;
}

.lg-mission-success-icon {
  font-size: 80px; margin-bottom: 20px;
  filter: drop-shadow(0 0 15px #fbbf24);
  animation: iconBounce 1s infinite alternate;
}

.lg-xp-bar-container {
  height: 12px; background: rgba(255, 255, 255, 0.1);
  border-radius: 6px; margin: 15px 0; overflow: hidden;
}

.lg-xp-fill {
  height: 100%; background: linear-gradient(90deg, #00d4ff, #8b5cf6);
  box-shadow: 0 0 10px #00d4ff;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 .lg-xp-bar {
    position: relative;
    width: 200px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lg-xp-progress {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    transition: width 0.3s ease;
  }

  .lg-xp-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
  }

.lg-stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px; border-radius: 16px; min-width: 100px;
}

@keyframes iconBounce {
  from { transform: scale(1); } to { transform: scale(1.1); }
}

/* 退出動畫 */
.lg-mission-complete-overlay.fade-out {
  opacity: 0; transform: scale(0.9); transition: 0.5s;
}


.lg-reward-card {
  transition: box-shadow 0.3s ease;
}

.lg-reward-card:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}
/* ==================== Animations ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInDown {}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }}

@keyframes  {50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }}

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 400px)); }
}

@keyframes dashMove {
  to { stroke-dashoffset: -1000; }
}

@keyframes spin {}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }}

@keyframes rotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}




/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
  .lg-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-engine-container {
    grid-template-columns: 1fr;
  }
  .game-menu,
  .game-info {
    max-width: 100%;
  }
}
  .lg-edu__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lg-b2b-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .lg-header__content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .lg-header__stats {
    flex-wrap: wrap;
  }

  .lg-wallet {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lg-wallet__item {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

  .lg-games-grid {
    grid-template-columns: 1fr;
  }

  .lg-edu__grid {
    grid-template-columns: 1fr;
  }

  .lg-island__card {
    width: 240px;
  }

  .lg-hud {
    bottom: 1rem;
    right: 1rem;
    transform: scale(0.85);
  }
  .lg-toast-container {
    right: 0.5rem;
    left: 0.5rem;
  }

  .lg-toast {max-width: 100%;}
  .lg-claim {
    left: 1rem;
    right: 1rem;
    transform: none;}
  .celebration-content {
    padding: 30px 20px;
    max-width: 90%;}
  .celebration-stats {flex-direction: column;}
  .lg-h2 {font-size: 1.5rem;}
  .lg-map__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .lg-brand__title {
    font-size: 1.25rem;
  }

  .lg-brand__sub {
    font-size: 0.75rem;
  }

  .lg-welcome__title {
    font-size: 1.75rem;
  }

  .lg-modal__title {
    font-size: 1.5rem;
  }
}


*:focus-visible {
  outline: 2px solid var(--gc-muted);
  outline-offset: 2px;
}


/* Header shell */
.lg-header{
  position: sticky;
  top: 0;
  z-index: var(--z-header, 1000);
  background: var(--header-bg, var(--surface-glass));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--header-border, rgba(0,0,0,.10));
  transition: var(--header-transition, all .3s var(--ease-apple));
}

  .lg-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
  }

  .lg-logo {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
  }

 .lg-logo img{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: var(--shadow-glass, 0 6px 18px rgba(0,0,0,.06));
  background: var(--white, #fff);
  transition: transform var(--duration-default, 200ms) var(--ease-apple);
}

.lg-logo img:hover{
  transform: translateY(0) scale(1.03);
}
.lg-brand__text{ min-width: 0; }
.lg-brand__sub{
  margin-top: 2px;
  font-size: var(--text-responsive-xs, 0.75rem);
  line-height: var(--line-height-normal, 1.5);
  color: var(--apple-grey-medium, #8e8e93);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats (GFun button) */
.lg-header__stats{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

  .lg-level {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
  }

  .lg-level-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
  }
  .lg-lang-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--lg-transition);
    font-size: 0.85rem;
  }

  .lg-lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }

  .lg-lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
  }



  .lab-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
  }

  .lab-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-weight: 500;
  }
  .lab-lang__tab.is-active {
    background: var(--gc-muted);
    color: white;
    border-color: var(--gc-muted);
  }

/* 故事內容區 */
.chapter-story-header {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface-glass, rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(var(--blur-md, 12px));
  border-radius: var(--radius-md, 0.75rem);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.3));
}


/* CTA 按鈕區 */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== GAME CONTENT ===== */
.game-content {
  background: linear-gradient(135deg, 
    rgba(255,255,255,.96) 0%, 
    rgba(255,248,220,.94) 100%
  );
  border: 8px solid #D4A574;
  border-radius: 36px;
  padding: 40px 36px;
  box-shadow: 
    0 10px 0 #B8956A,
    0 20px 40px rgba(0,0,0,.2),
    inset 0 5px 14px rgba(255,255,255,.7);
}

/* ===== GAME FEATURES & OUTCOMES ===== */
.game-features,
.game-outcomes {
  margin-bottom: 32px;
}

.game-features h3,
.game-outcomes h3 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 900;
  color: var(--ue-text);
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-features ul,
.game-outcomes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-features li,
.game-outcomes li {
  padding: 14px 20px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,.7) 0%, 
    rgba(255,248,220,.6) 100%
  );
  border: 4px solid rgba(212,165,116,.4);
  border-radius: 20px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ue-text);
  line-height: 1.6;
  box-shadow: 
    0 4px 0 rgba(184,149,106,.3),
    0 8px 16px rgba(0,0,0,.08),
    inset 0 2px 6px rgba(255,255,255,.5);
  transition: all .2s ease;
}

.game-features li:hover,
.game-outcomes li:hover {
  transform: translateX(8px);
  border-color: rgba(212,165,116,.6);
  box-shadow: 
    0 5px 0 rgba(184,149,106,.4),
    0 10px 20px rgba(0,0,0,.12);
}

/* ===== GAME ACTIONS ===== */
.game-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 32px;
  border-top: 4px solid rgba(212,165,116,.3);
}

.game-actions .btn {
  min-width: 280px;
}


@keyframes upgradeSparkle {
  0%, 100% { left: -30px; opacity: 0; }
  50% { left: 20px; opacity: 1; }
}

/* Theme Colors */
.island-card.island-aviation { border-color: #f59e0b; }
.island-card.island-aviation:hover { border-color: #fb923c; box-shadow: 0 20px 60px rgba(245,158,11,0.3); }

.island-card.island-school { border-color: #38bdf8; }
.island-card.island-school:hover { border-color: #0ea5e9; box-shadow: 0 20px 60px rgba(56,189,248,0.3); }

.island-card.island-memory { border-color: #d946ef; }
.island-card.island-memory:hover { border-color: #c026d3; box-shadow: 0 20px 60px rgba(217,70,239,0.3); }

.island-card.island-financial { border-color: #10b981; }
.island-card.island-financial:hover { border-color: #059669; box-shadow: 0 20px 60px rgba(16,185,129,0.3); }

.island-card.island-eco { border-color: #84cc16; }
.island-card.island-eco:hover { border-color: #65a30d; box-shadow: 0 20px 60px rgba(132,204,22,0.3); }

.island-card.island-urban { border-color: rgba(13, 13, 13, .56); }
.island-card.island-urban:hover { border-color: #0d0d0d; box-shadow: 0 20px 60px rgba(139,92,246,0.3); }
/* 四階段主題顏色 */
.island-header[data-chapter="little-game"] {
  border-left: 6px solid #38bdf8;
}

.island-header[data-chapter="little-lab"] {
  border-left: 6px solid #f59e0b;
}

.island-header[data-chapter="little-world"] {
  border-left: 6px solid #10b981;
}

.island-header[data-chapter="real-world"] {
  border-left: 6px solid #ea580c;
}

/* Game Node 顏色 */
.game-node[data-chapter="little-game"] .node-icon {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.game-node[data-chapter="little-lab"] .node-icon {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.game-node[data-chapter="little-world"] .node-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.game-node[data-chapter="real-world"] .node-icon {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

/* 科普標記 */
.game-node[data-id*="understanding"] {
  border: 2px dashed #fbbf24;
  background: rgba(251,191,36,0.05);
}

.game-node[data-id*="understanding"]:before {
  content: '📚 科普';
  position: absolute;
  top: -12px;
  right: 10px;
  background: #fbbf24;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}


/* Loading State */
.loading {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.6;
}

.lg-island:focus-visible{
  outline: none;
  box-shadow: var(--btn-ring, 0 0 0 4px rgba(56,189,248,.22)),
              var(--shadow-glass-hover, 0 10px 24px rgba(0,0,0,0.08));
}


.lg-island__meta,
.lg-island__hint{
  font-size: .78rem;
  color: var(--text-medium, #6e6e73);
}

/* Tiny "unlocked pulse" (subtle) */
.lg-island.is-unlocked::after{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--lg-accent, #38bdf8) 55%, transparent);
  opacity: .45;
  animation: lgPulse 2.6s var(--ease-out, cubic-bezier(.16,1,.3,1)) infinite;
}
@keyframes lgPulse{
  0%{ opacity: .0; transform: scale(.985); }
  20%{ opacity: .45; }
  60%{ opacity: .15; transform: scale(1.02); }
  100%{ opacity: 0; transform: scale(1.03); }
}



  .lg-island__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .lg-island__name-en {
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }

  .lg-progress__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
  }

  .lg-progress__bar {
    height: 8px;
    background: var(--lg-border);
    border-radius: 4px;
    overflow: hidden;
  }

  .lg-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gc-muted), var(--littleg-accent-blue));
    border-radius: 4px;
    transition: width 0.5s ease;
  }



  .lg-mission.completed {
    opacity: 0.6;
    border-left-color: var(--littleg-leaf);
  }
  .lg-mission__desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
  }

  .lg-mission__reward {
    font-size: 0.8rem;
    color: var(--gc-muted);
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .lglab-gate__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .lg-game {
    background: var(--lg-bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gc-muted);
    transition: var(--lg-transition);
  }

  .lg-game.is-completed {
    opacity: 0.7;
    border-left-color: var(--littleg-leaf);
  }

  .lg-game__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }

  .lg-game__info {
    flex: 1;
  }

  .lg-game__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gc-muted);
    margin-bottom: 0.25rem;
  }

  .lg-game__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lg-text-primary);
    margin-bottom: 0.25rem;
  }

  .lg-game__price {
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }

  .lg-game__price--free {
    color: var(--littleg-leaf);
    font-weight: 600;
  }

  .lg-game__price--discount {
    color: var(--littleg-gold);
  }

  .lg-game__price-original {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 0.5rem;
  }

  .lg-game__btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--lg-transition);
    flex: 1;
    min-width: 100px;
  }

/* 禁用狀態 */
.lg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* 響應式 */
@media (max-width: 768px) {
  .lg-btn {
    padding: 12px 24px;
    font-size: 15px;
    min-height: 44px; /* iOS 最小觸控尺寸 */
  }
}

/* === 🎨 Ghost Button (幽靈按鈕) === */
.lg-btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(14, 165, 233, 0.12);
  
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  
  max-width: 520px;
  margin: 0 auto;
  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* ========================================
   📍 SCROLL HINT
   ======================================== */

.lg-hero__scrollHint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateZ(50px);
  display: flex;
  align-items: center;
  gap: 12px;
  
  color: var(--text-primary-secondary);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  font-weight: 500;
  
  padding: 10px 18px;
  
  /* ✅ 完全圓角（膠囊形狀）*/
  border-radius: 999px;
  
  background: var(--surface-glass-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  
  animation: hintFloat 3s var(--ease-apple) infinite;
}

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

.lg-hero__scrollDot {
  width: 8px;
  height: 8px;
  
  /* ✅ 完全圓形 */
  border-radius: 50%;
  
  flex-shrink: 0;
  
  background: linear-gradient(
    135deg,
    var(--cyan) 0%,
    var(--gold) 100%
  );
  
  box-shadow: 
    0 0 0 10px rgba(14, 165, 233, 0.08),
    0 0 16px rgba(14, 165, 233, 0.4);
  
  animation: lgPulse 1.8s var(--ease-apple) infinite;
}

@keyframes lgPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow: 
      0 0 0 10px rgba(14, 165, 233, 0.08),
      0 0 16px rgba(14, 165, 233, 0.4);
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 
      0 0 0 14px rgba(14, 165, 233, 0.04),
      0 0 24px rgba(245, 158, 11, 0.5);
  }
}


/* ========================================
   🎨 ULTRA 3D CASES SECTION
   ======================================== */

.lg-cases {
  position: relative;
  padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 6vw, 100px);
  
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    rgba(14, 165, 233, 0.04) 50%,
    rgba(245, 158, 11, 0.03) 100%
  );
  
  overflow: hidden;
}

.lg-cases__bgMap {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: blur(0.3px) contrast(1.1);
  mix-blend-mode: multiply;
  animation: mapDrift 30s var(--ease-apple) infinite alternate;
}

@keyframes mapDrift {100% {
    transform: translateY(-20px) scale(1.05);
  }
}


.lg-cases__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  
  perspective: 1500px;
  transform-style: preserve-3d;
}

/* ========================================
   🎨 ULTRA 3D CARD
   超立體卡片
   ======================================== */

.lg-card {
  grid-column: span 4;
  
  /* ✅ 大圓角（卡片）*/
  border-radius: var(--radius);  /* 24px */
  
  overflow: hidden;
  position: relative;
  
  background: 
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 100%
    );
  
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border: 2px solid rgba(255, 255, 255, 0.6);
  outline: 1px solid rgba(14, 165, 233, 0.12);
  outline-offset: -3px;
  
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 5px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 30px rgba(14, 165, 233, 0.06);
  
  transform: translateZ(0);
  transform-style: preserve-3d;
  
  transition: all 220ms var(--glg-workspace-ease);
  cursor: pointer;
}

/* 🌈 彩色光暈 */
.lg-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  
  /* ✅ 繼承父元素圓角 */
  border-radius: calc(var(--radius) + 2px);  /* 26px */
  
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.3) 0%,
    rgba(16, 185, 129, 0.25) 50%,
    rgba(245, 158, 11, 0.3) 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms var(--glg-workspace-ease);
  z-index: -1;
}

/* ✅ 懸停時的 3D 效果 */
.lg-card:hover {
  transform: translateY(-12px) rotateX(2deg);  /* ✅ 添加 3D 旋轉 */
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 113, 227, 0.12),
    0 48px 96px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(0, 113, 227, 0.15);
}

/* ✅ 圖片懸停縮放 */
.lg-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(25, 65, 115, 0.08) 0%, 
    rgba(185, 154, 110, 0.05) 100%
  );
}

  .lg-game__complete {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    color: var(--littleg-leaf);
    font-weight: 600;
    text-align: center;
  }


  .lg-hud__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .lg-hud__info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  #lg-tube-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gc-muted);
  }

  #show-progress-details {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--lg-transition);
  }

  #show-progress-details:hover {
    transform: scale(1.2);
  }

  .lg-hud__stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-align: center;
  }

  .lg-hud__stat-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gc-muted);
  }

  .lg-hud__stat-label {
    color: var(--text-tertiary);
    font-size: 0.7rem;
  }

  /* ==================== EDUCATIONAL SECTION ==================== */
  .lg-edu {
    padding: 4rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    margin-top: 3rem;
    box-shadow: var(--lg-shadow-md);
  }

  .lg-edu__head {
    text-align: center;
    margin-bottom: 3rem;
  }

  .lg-edu__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .lg-edu__icon {
    font-size: 2.5rem;
  }

  .lg-edu__subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
  }

  .lg-edu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }



  .lg-edu-card__framework {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .lg-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--lg-border);
  }

  .lg-badge--framework {
    background: var(--gc-muted);
    color: white;
    border-color: var(--gc-muted);
  }

  .lg-badge--age {
    background: var(--littleg-accent-blue);
    color: white;
    border-color: var(--littleg-accent-blue);
  }

  .lg-edu-card__section {
    margin-bottom: 1.5rem;
  }



  .lg-edu-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-tertiary);
  }

  .lg-edu-card__more {
    width: 100%;
    padding: 0.75rem;
    background: var(--gc-muted);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--lg-transition);
  }
/* === Lab Container === */
.littleg-lab-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, 
    #87CEEB 0%,      /* Sky blue top */
    #B0E0E6 40%,     /* Powder blue */
    #98D8E8 60%,     /* Light cyan */
    #7EC8E3 100%     /* Deeper blue bottom */
  );
  overflow: hidden;
  transition: background var(--duration-slow, 0.8s) var(--ease-apple, cubic-bezier(0.25, 0.1, 0.25, 1));
}

/* Day/Night Cycle Backgrounds */
.littleg-lab-container[data-period="morning"] {
  background: linear-gradient(180deg, #FFB347 0%, #87CEEB 40%, #B0E0E6 100%);
}
.littleg-lab-container[data-period="afternoon"] {
  background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 40%, #98D8E8 100%);
}

.littleg-lab-container[data-period="evening"] {
  background: linear-gradient(180deg, #FF6B6B 0%, #4A5568 40%, #2D3748 100%);
}

.littleg-lab-container[data-period="night"] {
  background: linear-gradient(180deg, #1a202c 0%, #2d3748 40%, #4a5568 100%);
}

/* Optional: runtime flag (JS sets html[data-lg-reduced-motion]) */
html[data-lg-reduced-motion="true"] *{
  scroll-behavior:auto !important;
}
.littleg-game-container.active {
  opacity: 1;
  transform: scale(1);
}

.game-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-game {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.close-game:hover {
  background: rgba(255, 255, 255, 0.3);
}

.game-canvas {
  flex: 1;
  padding: 2rem;
  overflow: auto;
}



/* SVG 旋转动画 */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
/* SVG 描边动画 */
@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .game-header {
    padding: 1rem;
  }
  
  .game-header h2 {
    font-size: 1.2rem;
  }
  
  .game-canvas {
    padding: 1rem;
  }
}

.game-section {
  position: relative;
  z-index: 3;
  padding: 40px 20px;
}
.game-header {
  background: linear-gradient(135deg, 
    rgba(255,255,255,.96) 0%, 
    rgba(255,248,220,.94) 100%
  );
  border: 8px solid #D4A574;
  border-radius: 40px;
  padding: 40px 36px;
  margin-bottom: 32px;
  box-shadow: 
    0 12px 0 #B8956A,
    0 24px 48px rgba(0,0,0,.2),
    inset 0 6px 16px rgba(255,255,255,.7);
}

.game-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 900;
  color: var(--ue-text);
  text-shadow: 
    3px 3px 0 rgba(255,255,255,.7),
    -2px -2px 0 rgba(0,0,0,.08);
  transform: rotate(-1deg);
}

.game-intro {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  color: #4a7c5e;
}

.game-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.difficulty,
.gfun-cost,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, 
    rgba(255,215,0,.25) 0%, 
    rgba(255,165,0,.2) 100%
  );
  border: 4px solid #FFD700;
  border-radius: 50px;
  font-weight: 900;
  font-size: 14px;
  color: var(--ue-text);
  box-shadow: 
    0 4px 0 #D4A574,
    0 8px 16px rgba(255,165,0,.2),
    inset 0 2px 6px rgba(255,255,255,.6);
}

