@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* Loko : charte du site (fond encre, vert vif, crème, pastille jaune). Boucle de 6 s. */
.k-loko { background: #0A0908; color: #F2EFE6; font-family: 'Space Grotesk', sans-serif; }
.k-loko .logo { left: 5cqw; top: 4.5cqw; width: 15cqw; }
.k-loko h3 { left: 5cqw; top: 16cqw; width: 46cqw; font-weight: 700; font-size: 6.8cqw; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.k-loko h3 em { font-style: normal; color: #00EA6A; }
.k-loko .tag { left: 5cqw; bottom: 4.5cqw; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 3.2cqw; letter-spacing: .02em; text-transform: uppercase; color: #00EA6A; }

/* Téléphone crème, coupé par le bas de la carte comme sur le site */
.k-loko .phone { right: 5cqw; top: 4.5cqw; width: 33cqw; height: 58cqw; background: #1A1817; border-radius: 5.6cqw; padding: .9cqw; animation: loko-buzz 6s infinite; }
.k-loko .island { position: absolute; left: 50%; top: 2.2cqw; width: 10cqw; height: 2.6cqw; margin-left: -5cqw; border-radius: 2cqw; background: #0A0908; z-index: 1; }
.k-loko .screen { height: 100%; background: #F2EFE6; border-radius: 4.8cqw; padding: 5.8cqw 2.6cqw 0; color: #0A0908; }
.k-loko .status { display: flex; align-items: center; gap: 1cqw; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 3.2cqw; letter-spacing: .02em; color: #00A850; white-space: nowrap; }
.k-loko .status > i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #00C25A; animation: loko-pulse 2s ease-in-out infinite; }
.k-loko .score { margin-left: auto; display: flex; gap: .6cqw; color: #0A0908; }
.k-loko .score .roll { display: block; height: 3.4cqw; overflow: hidden; }
.k-loko .score .roll b { display: block; height: 3.4cqw; line-height: 3.4cqw; font-weight: 700; }
.k-loko .score .roll > b:first-child { animation: loko-roll 6s infinite; }
.k-loko .ask { margin-top: 2.6cqw; font-weight: 700; font-size: 4cqw; line-height: 1.04; letter-spacing: -.035em; }
.k-loko .ask em { font-style: normal; color: #00A850; }
.k-loko .bars { margin-top: 2.6cqw; display: flex; gap: .9cqw; }
.k-loko .bars i { flex: 1; height: 1.6cqw; border-radius: .8cqw; background: #D9D5C8; }
.k-loko .bars i:nth-child(-n+3) { background: #00C25A; }
.k-loko .bars .last { background: #00C25A; animation: loko-fill 6s infinite; }
.k-loko .ok { margin-top: 2.6cqw; padding: 1.8cqw 0; border-radius: 2.8cqw; background: #0A0908; color: #00EA6A; text-align: center; font-weight: 700; font-size: 4cqw; animation: loko-press 6s infinite; }

/* Notification de défi : posée par défaut, tombe à chaque boucle */
.k-loko .notif { left: 54cqw; top: 11cqw; width: 38cqw; padding: 2cqw 2.4cqw 2.2cqw; border-radius: 3cqw; background: #F2EFE6; color: #0A0908; transform: rotate(-6deg); box-shadow: 0 1.6cqw 4cqw rgba(0,0,0,.55); border: 1px solid #fff; animation: loko-drop 6s infinite; z-index: 2; }
.k-loko .notif small { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 3.2cqw; letter-spacing: 0; text-transform: uppercase; color: #5a564c; white-space: nowrap; }
.k-loko .notif b { display: block; font-size: 4.4cqw; line-height: 1.1; letter-spacing: -.03em; }
.k-loko .notif span { display: inline-block; font-weight: 700; font-size: 4.4cqw; line-height: 1.1; letter-spacing: -.03em; color: #00A850; animation: loko-pop 6s infinite; }

/* Pastille jaune qui oscille */
.k-loko .sticker { right: 1.5cqw; bottom: .8cqw; padding: .9cqw 2.2cqw; background: #FFD400; color: #0A0908; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 3.2cqw; letter-spacing: .04em; white-space: nowrap; transform: rotate(5deg); animation: loko-wobble 3s ease-in-out infinite; z-index: 3; }

@keyframes loko-drop {
  0%, 5% { opacity: 0; transform: translateY(-14cqw) rotate(-14deg); }
  11% { opacity: 1; transform: translateY(1.2cqw) rotate(-4deg); }
  15%, 50% { opacity: 1; transform: rotate(-6deg); }
  58%, 100% { opacity: 0; transform: translateY(-3cqw) rotate(-6deg); }
}
@keyframes loko-pop { 0%, 12% { transform: scale(1); } 15% { transform: scale(1.2); } 19%, 100% { transform: scale(1); } }
@keyframes loko-buzz { 0%, 10%, 16%, 100% { transform: none; } 12% { transform: translateX(-.5cqw); } 14% { transform: translateX(.5cqw); } }
@keyframes loko-press { 0%, 56%, 66%, 100% { transform: none; background: #0A0908; color: #00EA6A; } 60% { transform: scale(.94); background: #00EA6A; color: #0A0908; } }
@keyframes loko-roll { 0%, 60% { margin-top: 0; } 64%, 94% { margin-top: -3.4cqw; } 98%, 100% { margin-top: 0; } }
@keyframes loko-fill { 0%, 60% { background: #D9D5C8; } 64%, 94% { background: #00C25A; } 98%, 100% { background: #D9D5C8; } }
@keyframes loko-wobble { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-2deg); } }
@keyframes loko-pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .k-loko .notif, .k-loko .notif span, .k-loko .phone, .k-loko .ok, .k-loko .sticker { animation: none; }
  .k-loko .notif { opacity: 1; transform: rotate(-6deg); }
  .k-loko .score .roll > b:first-child { animation: none; margin-top: -3.4cqw; }
  .k-loko .bars .last { animation: none; background: #00C25A; }
}
