@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');
:root {
--bg-1: #a18cd1;
--bg-2: #fbc2eb;
--bg-3: #8ec5fc;
--bg-4: #e0c3fc;
--c-gld-1: #ffe259;
--c-gld-2: #ffa751;
--c-pnk-1: #ff9a9e;
--c-pnk-2: #fecfef;
--c-blu-1: #4facfe;
--c-blu-2: #00f2fe;
--c-grn-1: #43e97b;
--c-grn-2: #38f9d7;
--c-prp-1: #c471ed;
--c-prp-2: #f64f59;
--text-main: #2d3436;
--text-light: #ffffff;
}
* {
box-sizing: border-box;
user-select: none;
-webkit-tap-highlight-color: transparent;
font-family: 'Lalezar', cursive;
}
body {
margin: 0;
padding: 0;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
height: 100dvh;
width: 100vw;
overflow: hidden;
  direction: ltr;
}
.app-container {
width: 100%;
max-width: 480px;
height: 100%;
position: relative;
overflow: hidden;
/* background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-4)); */
background: linear-gradient(135deg, #0a0418, #1e1a4a, #2e2a6e, #4a3c9c);
background-size: 300% 300%;
animation: fluidBg 15s ease infinite;
box-shadow: 0 0 30px rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
}
@keyframes fluidBg {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.particles-wrap {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.ptc {
position: absolute;
background: rgba(255,255,255,0.4);
border-radius: 50%;
animation: floatUp linear infinite;
box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
@keyframes floatUp {
0% { transform: translateY(110vh) scale(0.5) rotate(0); opacity: 0; }
20% { opacity: 1; }
80% { opacity: 1; }
100% { transform: translateY(-10vh) scale(1.5) rotate(360deg); opacity: 0; }
}
.screen {
position: absolute;
inset: 0;
z-index: 10;
display: flex;
flex-direction: column;
padding: 1rem;
padding-bottom: 120px;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: none;
animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.screen::-webkit-scrollbar { display: none; }

.glass-box {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 2px solid rgba(255, 255, 255, 0.6);
border-top: 3px solid rgba(255, 255, 255, 0.9);
border-left: 3px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 12px 30px rgba(0,0,0,0.15), inset 0 0 20px rgba(255,255,255,0.5);
border-radius: 30px;
}
.btn-3d {
position: relative;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 99px;
border: 3px solid rgba(255,255,255,0.9);
transition: all 0.1s;
box-shadow: 
inset 0 6px 10px rgba(255,255,255,0.7),
inset 0 -6px 10px rgba(0,0,0,0.2),
0 8px 15px rgba(0,0,0,0.2);
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
color: var(--text-light);
overflow: hidden;
}
.btn-3d::before {
content: '';
position: absolute;
top: 0; left: 10%; right: 10%; height: 35%;
background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
border-radius: 99px;
pointer-events: none;
}
.btn-3d:active {
transform: translateY(5px) scale(0.96);
box-shadow: 
inset 0 2px 5px rgba(255,255,255,0.7),
inset 0 -2px 5px rgba(0,0,0,0.2),
0 3px 5px rgba(0,0,0,0.2);
}
.btn-circ { width: 50px; height: 50px; font-size: 26px; flex-shrink: 0; }
.bg-gld { background: linear-gradient(to bottom, var(--c-gld-1), var(--c-gld-2)); color: #784a00; text-shadow: 0 2px 2px rgba(255,255,255,0.6); }
.bg-blu { background: linear-gradient(to bottom, var(--c-blu-1), var(--c-blu-2)); }
.bg-pnk { background: linear-gradient(to bottom, var(--c-pnk-1), var(--c-pnk-2)); color: #8a1344; text-shadow: 0 2px 2px rgba(255,255,255,0.6); }
.bg-grn { background: linear-gradient(to bottom, var(--c-grn-1), var(--c-grn-2)); color: #005230; text-shadow: 0 2px 2px rgba(255,255,255,0.6); }
.bg-prp { background: linear-gradient(to bottom, var(--c-prp-1), var(--c-prp-2)); }
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
margin-bottom: 20px;
position: relative;
z-index: 20;
flex-shrink: 0;
}
.prof-badge {
display: flex;
align-items: center;
background: rgba(0,0,0,0.25);
border: 2px solid rgba(255,255,255,0.5);
border-radius: 99px;
padding: 4px 12px 4px 4px;
box-shadow: inset 0 3px 6px rgba(0,0,0,0.3), 0 5px 10px rgba(0,0,0,0.1);
position: relative;
gap: 10px;
}
.avt {
width: 50px; height: 50px; border-radius: 50%;
background: var(--c-pnk-1); border: 3px solid white;
display: flex; align-items: center; justify-content: center;
font-size: 30px; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
margin-right: -20px; z-index: 5; flex-shrink: 0;
}
.coin-tag {
position: absolute;
bottom: -15px; left: 50%; transform: translateX(-50%);
display: flex; align-items: center; gap: 4px;
background: linear-gradient(to bottom, #fff, #ffe259);
color: #784a00; border: 2px solid white; border-radius: 99px;
padding: 2px 10px; font-size: 18px; white-space: nowrap;
box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 10;
}
.main-act {
position: relative;
width: 100%;
margin-bottom: 25px;
}
.direction-rtl {
direction: rtl;
}
.main-act:active .btn-3d { transform: translateY(5px) scale(0.98); }
.main-act:active .act-icon { transform: translateY(5px) scale(0.98) rotate(15deg); }
.act-btn {
width: 100%; height: 85px;
font-size: 32px;
justify-content: flex-start;
}
.act-icon {
position: absolute;
right: -5px; top: 0;
width: 85px; height: 85px;
border-radius: 25px;
border: 4px solid rgba(255,255,255,0.9);
display: flex; align-items: center; justify-content: center;
font-size: 45px; z-index: 20;
transform: rotate(15deg);
transition: all 0.1s;
box-shadow: inset 0 6px 10px rgba(255,255,255,0.7), inset 0 -6px 10px rgba(0,0,0,0.2), 0 8px 15px rgba(0,0,0,0.2);
}
.float-obj {
animation: floatObj 3s ease-in-out infinite;
position: absolute;
z-index: 30;
}
@keyframes floatObj {
0%, 100% { transform: translateY(0) rotate(-5deg); }
50% { transform: translateY(-15px) rotate(5deg); }
}
.whl-btn {
width: 90px; height: 90px;
border-radius: 50%; border: 5px solid white;
margin: 10px auto;
display: flex; align-items: center; justify-content: center;
background: linear-gradient(to bottom, var(--c-gld-1), var(--c-gld-2));
box-shadow: 0 0 20px rgba(255,226,89,0.8), inset 0 5px 8px rgba(255,255,255,0.8), inset 0 -5px 8px rgba(0,0,0,0.2);
animation: pulseWhl 2s infinite; cursor: pointer;
}
.whl-btn:active { transform: scale(0.9); animation: none; }
@keyframes pulseWhl {
0% { box-shadow: 0 0 0 0 rgba(255,226,89,0.7), inset 0 5px 8px rgba(255,255,255,0.8), inset 0 -5px 8px rgba(0,0,0,0.2); }
70% { box-shadow: 0 0 0 20px rgba(255,226,89,0), inset 0 5px 8px rgba(255,255,255,0.8), inset 0 -5px 8px rgba(0,0,0,0.2); }
100% { box-shadow: 0 0 0 0 rgba(255,226,89,0), inset 0 5px 8px rgba(255,255,255,0.8), inset 0 -5px 8px rgba(0,0,0,0.2); }
}
.bot-nav {
position: absolute;
bottom: 20px; left: 20px; right: 20px;
height: 80px;
display: flex; justify-content: center; align-items: center;
z-index: 50;
padding: 0 10px;
gap: 20px;
}
.nav-itm {
width: 25%; /* custom */
display: flex; flex-direction: column; align-items: center;
cursor: pointer; transition: transform 0.1s;
position: relative;
}
.nav-itm:active { transform: scale(0.9); }
.nav-ic {
width: 55px; height: 55px;
border-radius: 50%; background: linear-gradient(to bottom, #fff, #e0e0e0);
border: 3px solid white; display: flex; align-items: center; justify-content: center;
font-size: 30px; box-shadow: 0 5px 10px rgba(0,0,0,0.2), inset 0 -3px 5px rgba(0,0,0,0.1);
color: var(--text-main);
margin-bottom: -10px; z-index: 2;
}
.nav-tx {
/* background: rgba(0,0,0,0.6); */ color: white; 
padding: 12px 15px 4px 15px; border-radius: 15px;
font-size: 16px; /* border: 1px solid rgba(255,255,255,0.3); */
}
.lvl-crd {
background: rgba(255,255,255,0.3);
backdrop-filter: blur(10px);
border: 2px solid rgba(255,255,255,0.5);
border-radius: 25px; padding: 15px;
margin-bottom: 25px; position: relative;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
display: flex; flex-direction: column; gap: 8px;
}
.lvl-crd:active { transform: scale(0.98); }
.lvl-bdg {
position: absolute; right: -15px; top: -15px;
width: 70px; height: 70px; border-radius: 18px;
border: 3px solid white; display: flex; align-items: center; justify-content: center;
font-size: 30px; transform: rotate(15deg); z-index: 20;
box-shadow: inset 0 5px 8px rgba(255,255,255,0.7), inset 0 -5px 8px rgba(0,0,0,0.2), 0 8px 15px rgba(0,0,0,0.2);
}
.crd-inf {
background: rgba(0,0,0,0.2); border-radius: 15px;
padding: 10px; display: flex; justify-content: space-between;
border: 1px solid rgba(255,255,255,0.2); margin-top: 5px;
}
.st-it {
background: rgba(0,0,0,0.2); border-radius: 15px;
padding: 15px; text-align: center; border: 2px solid rgba(255,255,255,0.3);
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1); position: relative;
}
/* CUSTOM ENLEVER!!! .st-it:active { transform: scale(0.96); } */
.rbn {
position: absolute; top: -10px; background: var(--c-prp-2); color: white;
padding: 2px 12px; border-radius: 10px; font-size: 14px;
border: 2px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
z-index: 10;
}
.ttl-bx {
  background: linear-gradient(to bottom, #fff, #f0f0f0);
  color: var(--text-main);
  padding: 5px 30px;
  border-radius: 99px;
  font-size: 28px;
  border: 3px solid white;
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  
  /* Centrage horizontal */
  margin: 0 auto;
  width: fit-content; /* ou une largeur spécifique */
}
.anim-pop { animation: popBounce 0.5s cubic-bezier(0.28, 0.84, 0.42, 1) forwards; }
@keyframes popBounce {
0% { transform: scale(0.8); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
.wheel-wrapper {
width: 300px; height: 300px; border-radius: 50%;
border: 12px solid white; position: relative;
overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.3);
background: conic-gradient(
#ff9a9e 0 60deg, #fecfef 60deg 120deg,
#a8edea 120deg 180deg, #fed6e3 180deg 240deg,
#e0c3fc 240deg 300deg, #8ec5fc 300deg 360deg
);
display: flex; align-items: center; justify-content: center;
animation: spinSlow 20s linear infinite;
}
.wheel-center {
width: 60px; height: 60px; background: white; border-radius: 50%;
z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 5px solid var(--c-prp-2);
}
.wheel-pointer {
position: absolute; top: -20px; width: 50px; height: 60px;
background: var(--c-prp-2); clip-path: polygon(50% 100%, 0 0, 100% 0);
z-index: 20; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4));
}
@keyframes spinSlow { 100% { transform: rotate(360deg); } }
.wheel-itm { position: absolute; font-size: 35px; transform-origin: 150px 150px; top: 0; left: 130px; height: 150px; display: flex; align-items: flex-start; padding-top: 15px; }
.tgl-btn { width: 60px; height: 30px; border-radius: 99px; position: relative; cursor: pointer; transition: 0.3s; }
.tgl-in { width: 24px; height: 24px; background: white; border-radius: 50%; position: absolute; top: 3px; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.tgl-on { background: var(--c-grn-1); }
.tgl-on .tgl-in { left: 3px; }
.tgl-off { background: #ccc; }
.tgl-off .tgl-in { right: 3px; }
/* FIX AJAX FULL HEIGHT */
#app-content {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.screen {
    position: relative !important;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 120px;
    z-index: 10; /* Ajoutez cette ligne */
}




/* SWEET ALERT POUR MATCHER AVEC MON UI KIT */
.swal2-popup {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 90% !important;
    max-width: 420px !important;
}
.swal2-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.swal2-popup .swal2-actions,
.swal2-popup .swal2-title,
.swal2-popup .swal2-close { display: none !important; }
.swal2-container {
    backdrop-filter: blur(4px) !important;
    background: rgba(0,0,0,0.45) !important;
}