/* ===== StarrKit — Dashboard (tuiles "arcade") ===== */
.hero__reward .btn { font-size: 1.15rem; }

.modules { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.module-card {
    position: relative; padding: 24px 20px 20px; border-radius: 20px; overflow: hidden;
    background: var(--surface); border: 2px solid var(--border);
    box-shadow: 0 6px 0 var(--border), 0 10px 18px rgba(0, 0, 0, .35);
    transition: transform .12s ease;
}
.module-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.module-card:hover { transform: translateY(-4px) rotate(-1deg); }
.module-card:active { transform: translateY(0); }
.module-card--soon { opacity: .8; }
.module-card__icon { font-size: 2.5rem; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.module-card__title { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 12px 0 6px; }
.module-card__desc { margin: 0; color: var(--text-dim); font-size: .9rem; min-height: 40px; font-weight: 700; }
.module-card__link { position: absolute; inset: 0; border-radius: inherit; }
.module-card--available:hover { border-color: var(--accent); }

.badge--next { background: var(--accent); color: #fff; }
.badge--soon { background: var(--surface-2); color: var(--text-dim); }

/* ---- Effets ---- */
@keyframes sk-slide { to { background-position: 200% 0; } }
.module-card { animation: sk-cardin .45s both; }
.module-card:nth-child(1) { animation-delay: .03s; }
.module-card:nth-child(2) { animation-delay: .09s; }
.module-card:nth-child(3) { animation-delay: .15s; }
.module-card:nth-child(4) { animation-delay: .21s; }
.module-card:nth-child(5) { animation-delay: .27s; }
.module-card:nth-child(6) { animation-delay: .33s; }
.module-card::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200% 100%; animation: sk-slide 3s linear infinite;
}
.module-card__icon { display: inline-block; animation: sk-float 2.8s ease-in-out infinite; }
.module-card:nth-child(even) .module-card__icon { animation-delay: .5s; }
.module-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 11px 0 var(--border), 0 16px 26px rgba(0, 0, 0, .4); }

/* ===== Bannière Arcade — bloc proéminent sur l'accueil ===== */
.arcade-banner {
    position: relative;
    display: block;
    margin: 22px 0 8px;
    padding: 22px 26px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    border: 3px solid var(--border);
    box-shadow: 0 8px 0 var(--border), 0 16px 30px rgba(0, 0, 0, .45);
    text-decoration: none;
    isolation: isolate;
    transition: transform .15s ease, box-shadow .15s ease;
    animation: ab-in .55s ease both;
}
@keyframes ab-in {
    from { opacity: 0; transform: translateY(-10px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.arcade-banner:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--border), 0 22px 38px rgba(0, 0, 0, .55); }
.arcade-banner:active { transform: translateY(2px); }

.arcade-banner__bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(135deg, #7c3aed 0%, #db2777 38%, #f59e0b 72%, #facc15 100%);
    background-size: 220% 220%;
    animation: ab-gradient 9s ease infinite;
}
@keyframes ab-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.arcade-banner::after {
    /* Trame radiale subtile pour donner du relief */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.22), transparent 38%),
        radial-gradient(circle at 82% 78%, rgba(0,0,0,.18), transparent 42%);
    pointer-events: none;
}
.arcade-banner__sparkles {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.ab-sparkle {
    position: absolute; color: #fff7cc; font-size: 18px;
    text-shadow: 0 0 8px rgba(255,255,255,.7);
    animation: ab-twinkle 2.4s ease-in-out infinite;
    opacity: 0;
}
.ab-sparkle--1 { top: 18%;  left: 6%;  animation-delay: .0s; }
.ab-sparkle--2 { top: 72%;  left: 22%; animation-delay: .7s; font-size: 14px; }
.ab-sparkle--3 { top: 30%;  left: 48%; animation-delay: 1.3s; font-size: 22px; }
.ab-sparkle--4 { top: 78%;  left: 64%; animation-delay: .4s; }
.ab-sparkle--5 { top: 22%;  left: 86%; animation-delay: 1.7s; font-size: 16px; }
@keyframes ab-twinkle {
    0%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

.arcade-banner__content {
    display: flex; align-items: center; gap: 26px;
    flex-wrap: wrap; justify-content: space-between;
}
.arcade-banner__left { flex: 1 1 280px; min-width: 0; }
.arcade-banner__badge {
    display: inline-block;
    background: #fff; color: #7c3aed;
    font-family: var(--display); font-size: .85rem;
    padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 2px 0 rgba(0,0,0,.25);
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.arcade-banner__title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.7rem, 4.4vw, 2.5rem);
    margin: 0 0 6px;
    line-height: 1.05;
    text-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.arcade-banner__pitch {
    margin: 0 0 12px;
    font-size: clamp(.95rem, 2.2vw, 1.1rem);
    font-weight: 800;
    text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.arcade-banner__cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    background: #1a1340; color: #fde68a;
    font-family: var(--display); font-size: 1.05rem;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,.4);
    box-shadow: 0 4px 0 rgba(0,0,0,.5);
    transition: transform .12s ease;
}
.arcade-banner:hover .arcade-banner__cta { transform: translateX(3px); }

.arcade-banner__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 0 1 260px;
}
.ab-thumb {
    display: grid; place-items: center;
    width: 56px; height: 56px; font-size: 28px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 14px;
    box-shadow: 0 3px 0 rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
    backdrop-filter: blur(2px);
    animation: ab-bob 2.6s ease-in-out infinite;
    text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.ab-thumb--memory   { animation-delay: .15s; }
.ab-thumb--runner   { animation-delay: .30s; }
.ab-thumb--clicker  { animation-delay: .45s; }
.ab-thumb--breaker  { animation-delay: .60s; }
.ab-thumb--timber   { animation-delay: .75s; }
.ab-thumb--flappy   { animation-delay: .90s; }
.ab-thumb--minesweeper { animation-delay: 1.05s; }
@keyframes ab-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-4px) rotate(2deg); }
}
.arcade-banner:hover .ab-thumb { animation-duration: 1.2s; }

@media (max-width: 720px) {
    .arcade-banner { padding: 18px 18px; margin: 18px 0 6px; border-radius: 20px; }
    .arcade-banner__content { gap: 16px; }
    .arcade-banner__thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1 1 100%; }
    .ab-thumb { width: 100%; height: 48px; font-size: 22px; }
}
@media (max-width: 380px) {
    .arcade-banner { padding: 16px 14px; }
    .ab-thumb { height: 44px; font-size: 20px; }
}

