#hcLudoAyisyen{position:fixed;inset:0;z-index:2147483000;background:#03132c;color:#fff;font-family:inherit;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#hcLudoAyisyen *{box-sizing:border-box}
.la-shell{position:relative;min-height:100%;max-width:760px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;isolation:isolate;overflow:hidden}
.la-shell:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(1,13,33,.2),rgba(1,13,33,.08) 42%,rgba(1,13,33,.92) 80%),url('/app/ludo-ayisyen/ludo-ayisyen-background-v1.png?v=1') center/cover no-repeat}
.la-shell:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 40%,rgba(255,189,52,.13),transparent 34%);animation:laGlow 4s ease-in-out infinite}
.la-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:3}
.la-round{width:50px;height:50px;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:rgba(5,23,49,.82);color:#fff;font-size:27px;font-weight:800;display:grid;place-items:center;box-shadow:0 7px 20px rgba(0,0,0,.28);touch-action:manipulation}
.la-eyebrow{text-align:center;color:#ffc83d;font-size:12px;font-weight:900;letter-spacing:3px;text-transform:uppercase}
.la-hero{text-align:center;padding:30px 0 12px;text-shadow:0 4px 18px rgba(0,0,0,.75)}
.la-flag{font-size:35px;animation:laFloat 3s ease-in-out infinite}
.la-title{margin:9px 0 0;font-family:Georgia,serif;font-size:clamp(44px,11vw,78px);line-height:.95;letter-spacing:2px;color:#ffd45c;text-shadow:0 3px 0 #8e5700,0 10px 30px rgba(0,0,0,.8)}
.la-subtitle{margin:12px 0 0;font-size:clamp(20px,5vw,30px);font-weight:950;letter-spacing:5px;color:#fff}
.la-tagline{margin:12px auto 0;max-width:480px;color:#d7e2f4;font-size:16px;font-weight:650}
.la-menu{margin-top:auto;padding-top:min(36vh,360px);display:grid;gap:12px;position:relative;z-index:2}
.la-btn{width:100%;min-height:62px;border-radius:17px;border:1px solid rgba(255,255,255,.18);background:rgba(5,25,54,.94);color:#fff;font-size:16px;font-weight:950;letter-spacing:.5px;box-shadow:0 9px 22px rgba(0,0,0,.28);touch-action:manipulation}
.la-btn-primary{border:0;color:#071936;background:linear-gradient(135deg,#ffd85d,#e7a516);animation:laPulse 2.4s ease-in-out infinite}
.la-btn-outline{border-color:#f7c63d;color:#ffd45c}
.la-coming{display:block;font-size:10px;letter-spacing:1.6px;color:#96a8c5;margin-top:3px}
.la-sheet{position:fixed;inset:0;z-index:2147483647;background:rgba(0,7,20,.78);padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;justify-content:center}
.la-card{width:100%;max-width:600px;max-height:88vh;overflow:auto;background:linear-gradient(180deg,#0a2347,#04152f);border:1px solid rgba(255,202,60,.55);border-radius:24px;padding:22px;color:#fff;box-shadow:0 20px 55px rgba(0,0,0,.5)}
.la-card h2{margin:0;color:#ffd052}.la-card h3{margin:20px 0 7px;color:#ffd052}.la-card p,.la-card li{color:#d7e1f2;line-height:1.55}.la-card ol{padding-left:23px}.la-card .la-btn{margin-top:16px}
.la-toast{position:fixed;z-index:2147483647;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 40px);max-width:500px;background:#071d3d;border:1px solid #f7c63d;color:#fff;border-radius:15px;padding:14px;text-align:center;font-weight:800;box-shadow:0 12px 35px rgba(0,0,0,.45)}
@keyframes laFloat{50%{transform:translateY(-7px)}}@keyframes laGlow{50%{opacity:.55}}@keyframes laPulse{50%{transform:scale(1.015);box-shadow:0 10px 28px rgba(255,199,45,.28)}}
@media(min-width:800px){#hcLudoAyisyen{background:#020d20}.la-shell{min-height:100vh;box-shadow:0 0 70px #000}.la-menu{grid-template-columns:1fr 1fr}.la-btn-primary{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){#hcLudoAyisyen *{animation:none!important}}


.la-hero-dice{
  margin:18px auto 0;
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#071936;
  background:linear-gradient(145deg,#fffdf3,#e8dfc9);
  border:3px solid #f6c63e;
  box-shadow:
    0 8px 0 #9a6707,
    0 14px 28px rgba(0,0,0,.55),
    0 0 25px rgba(255,199,52,.28);
  transform:rotate(-8deg);
  animation:laDiceFloat 2.6s ease-in-out infinite;
}
.la-hero-dice span{
  display:block;
  font-size:51px;
  line-height:1;
  transform:translateY(-2px);
}
@keyframes laDiceFloat{
  0%,100%{transform:translateY(0) rotate(-8deg)}
  50%{transform:translateY(-9px) rotate(8deg)}
}


/* =========================================================
   LUDO FRONT PAGE — SINGLE-SCREEN MOBILE LAYOUT
   ========================================================= */

#hcLudoAyisyen{
  height:100vh;
  height:100dvh;
  overflow:hidden;
}

#hcLudoAyisyen .la-shell{
  height:100vh;
  height:100dvh;
  min-height:0;
  padding:
    calc(12px + env(safe-area-inset-top))
    16px
    calc(12px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

#hcLudoAyisyen .la-top{
  flex:0 0 auto;
}

#hcLudoAyisyen .la-round{
  width:44px;
  height:44px;
  font-size:24px;
}

#hcLudoAyisyen .la-eyebrow{
  font-size:10px;
  letter-spacing:2.2px;
}

#hcLudoAyisyen .la-hero{
  flex:0 0 auto;
  padding:12px 0 0;
}

#hcLudoAyisyen .la-flag{
  font-size:25px;
}

#hcLudoAyisyen .la-title{
  margin-top:4px;
  font-size:clamp(38px,10vw,58px);
  line-height:.88;
}

#hcLudoAyisyen .la-subtitle{
  margin-top:8px;
  font-size:18px;
  letter-spacing:4px;
}

#hcLudoAyisyen .la-tagline{
  margin-top:7px;
  max-width:420px;
  font-size:13px;
  line-height:1.3;
}

/* Visible animated dice */
#hcLudoAyisyen .la-hero-dice{
  position:relative;
  margin:10px auto 0;
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:13px;
  transform-origin:50% 50%;
  will-change:transform,filter;
  animation:
    laDiceBounce 1.35s cubic-bezier(.45,.05,.2,1) infinite,
    laDiceGlow 1.35s ease-in-out infinite !important;
}

#hcLudoAyisyen .la-hero-dice span{
  font-size:39px;
}

/* Place the menu over the dark lower portion of the artwork */
#hcLudoAyisyen .la-menu{
  margin-top:auto;
  padding-top:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

#hcLudoAyisyen .la-btn{
  min-height:52px;
  padding:8px 6px;
  border-radius:14px;
  font-size:12px;
  line-height:1.15;
}

#hcLudoAyisyen .la-btn-primary{
  grid-column:1 / -1;
  min-height:56px;
}

#hcLudoAyisyen .la-coming{
  margin-top:3px;
  font-size:8px;
  letter-spacing:1px;
}

/* Rank button spans both columns for a balanced five-row layout */
#hcLudoAyisyen .la-btn-outline{
  grid-column:1 / -1;
}

@keyframes laDiceBounce{
  0%{
    transform:translateY(0) rotate(-12deg) scale(1);
  }
  25%{
    transform:translateY(-12px) rotate(12deg) scale(1.06);
  }
  50%{
    transform:translateY(0) rotate(32deg) scale(.97);
  }
  75%{
    transform:translateY(-6px) rotate(5deg) scale(1.03);
  }
  100%{
    transform:translateY(0) rotate(-12deg) scale(1);
  }
}

@keyframes laDiceGlow{
  0%,100%{
    filter:drop-shadow(0 4px 5px rgba(0,0,0,.5));
  }
  50%{
    filter:drop-shadow(0 0 15px rgba(255,205,65,.9));
  }
}

/* Keep the dice active even when the device requests reduced motion.
   Other decorative movement remains disabled. */
@media (prefers-reduced-motion:reduce){
  #hcLudoAyisyen .la-hero-dice{
    animation:
      laDiceBounce 1.8s ease-in-out infinite,
      laDiceGlow 1.8s ease-in-out infinite !important;
  }
}

/* Extra compression for shorter phones */
@media (max-height:720px){
  #hcLudoAyisyen .la-shell{
    padding-top:calc(8px + env(safe-area-inset-top));
    padding-bottom:calc(8px + env(safe-area-inset-bottom));
  }

  #hcLudoAyisyen .la-round{
    width:39px;
    height:39px;
  }

  #hcLudoAyisyen .la-hero{
    padding-top:5px;
  }

  #hcLudoAyisyen .la-flag{
    font-size:20px;
  }

  #hcLudoAyisyen .la-title{
    font-size:36px;
  }

  #hcLudoAyisyen .la-subtitle{
    margin-top:5px;
    font-size:15px;
  }

  #hcLudoAyisyen .la-tagline{
    margin-top:4px;
    font-size:11px;
  }

  #hcLudoAyisyen .la-hero-dice{
    width:40px;
    height:40px;
    flex-basis:40px;
    margin-top:6px;
  }

  #hcLudoAyisyen .la-hero-dice span{
    font-size:32px;
  }

  #hcLudoAyisyen .la-btn{
    min-height:44px;
    font-size:11px;
  }

  #hcLudoAyisyen .la-btn-primary{
    min-height:48px;
  }
}


/* Official carved Haitian dice */
#hcLudoAyisyen button.la-hero-dice{
  width:74px;
  height:74px;
  flex:0 0 74px;
  margin:10px auto 0;
  padding:0;
  border:0;
  border-radius:20px;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  cursor:pointer;
  touch-action:manipulation;
}

#hcLudoAyisyen .la-hero-dice img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  filter:drop-shadow(0 10px 8px rgba(0,0,0,.58));
}

#hcLudoAyisyen .la-hero-dice.la-rolling img{
  filter:drop-shadow(0 0 17px rgba(255,205,65,.95));
}

@media(max-height:720px){
  #hcLudoAyisyen button.la-hero-dice{
    width:58px;
    height:58px;
    flex-basis:58px;
    margin-top:6px;
  }
}
