/* ===== StarrKit — design "arcade" (proche Brawl Stars) =====
   Couleurs depuis le thème actif (css/themes/*.css). Look : police massive,
   boutons 3D pressables, contours sombres épais, fonds profonds + lueurs. */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --display: "Lilita One", "Arial Black", "Segoe UI", sans-serif;
    --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }

body {
    font-family: var(--body);
    font-weight: 700;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.45;
    background:
        radial-gradient(circle at 18% -5%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 42%),
        radial-gradient(circle at 102% 22%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 46%),
        var(--bg);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .4px; line-height: 1.05; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 10px 16px 48px; flex: 1 0 auto; }

/* ---- En-tête ---- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 12px; border: 2px solid var(--border);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--gold); font-size: 22px; transform: rotate(-8deg);
    box-shadow: 0 3px 0 var(--border);
}
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.coin-pill {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 1.05rem;
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 2px solid var(--border); box-shadow: 0 3px 0 var(--border);
}
.lang-switch { display: inline-flex; gap: 4px; }
.lang-link { padding: 6px 9px; border-radius: 10px; font-size: .82rem; font-weight: 800; color: var(--text-dim); cursor: pointer; }
.lang-link.is-active { color: var(--cta-ink); background: var(--cta); }

/* ---- Boutons "bonbon" 3D ---- */
.btn {
    font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: .5px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px 14px; border: none; border-radius: 16px; cursor: pointer;
    background: var(--btn-bg, var(--surface-2)); color: #fff;
    box-shadow: 0 5px 0 color-mix(in srgb, var(--btn-bg, var(--surface-2)) 52%, #000), 0 8px 14px rgba(0, 0, 0, .3);
    transition: transform .06s ease, box-shadow .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--btn-bg, var(--surface-2)) 52%, #000), 0 3px 8px rgba(0, 0, 0, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { --btn-bg: var(--cta); color: var(--cta-ink); }
.btn-secondary { --btn-bg: var(--accent); color: #fff; }
.btn-ghost { --btn-bg: var(--surface-2); color: var(--text); }
.btn-lg { font-size: 1.2rem; padding: 15px 30px 17px; border-radius: 18px; }

/* ---- Carte générique ---- */
.card {
    background: var(--surface); border: 2px solid var(--border); border-radius: 18px;
    box-shadow: 0 5px 0 var(--border), 0 8px 16px rgba(0, 0, 0, .3);
}

/* ---- Badges ---- */
.badge {
    display: inline-block; font-family: var(--display); font-weight: 400;
    padding: 5px 12px; border-radius: 999px; font-size: .8rem; letter-spacing: .4px;
    text-transform: uppercase; border: 2px solid var(--border);
}
.badge--available { background: var(--good); color: #06270f; }
.badge--owned { background: var(--cta); color: var(--cta-ink); }

/* ---- Lien retour ---- */
.backlink { margin: 4px 0 0; }
.backlink a, .backlink span { color: var(--text-dim); font-size: .9rem; font-weight: 800; cursor: pointer; }
.backlink a:hover, .backlink span:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 26px 12px 10px; }
.hero__title {
    font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hero__subtitle { color: var(--text-dim); margin: 0 auto 20px; max-width: 560px; font-weight: 700; }
.hero__reward { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__reward-note { font-size: .78rem; color: var(--text-dim); }

/* ---- Bandeau pub (placeholder) ---- */
.ad-banner { max-width: 1040px; margin: 8px auto; padding: 0 16px; }
.ad-banner__label {
    width: 100%; min-height: 84px; display: grid; place-items: center;
    border: 2px dashed var(--border); border-radius: 16px; color: var(--text-dim);
    font-size: .82rem; letter-spacing: .5px;
}

/* ---- Disclaimer + footer ---- */
.disclaimer { max-width: 1040px; margin: 0 auto; padding: 12px 16px; color: var(--text-dim); font-size: .76rem; text-align: center; }
.site-footer { padding: 16px; text-align: center; color: var(--text-dim); font-size: .82rem; border-top: 2px solid var(--border); }

/* ---- Toast ---- */
.sk-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    font-family: var(--display); background: var(--surface-2); color: var(--text);
    padding: 12px 22px; border-radius: 999px; border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border);
    opacity: 0; pointer-events: none; z-index: 50;
    transition: opacity .2s ease, transform .2s ease;
}
.sk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 540px) { .brand-name { display: none; } }

/* ---- Effets / animations ---- */
@keyframes sk-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sk-cardin { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sk-coinpop{ 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes sk-shine  { 0%, 55% { left: -60%; } 100% { left: 160%; } }
@keyframes sk-pulseav{ 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes sk-pop    { 0% { transform: scale(.85); opacity: .4; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sk-wob    { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-2deg); } }

.btn { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 36%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg); animation: sk-shine 3.6s ease-in-out infinite; pointer-events: none;
}
.brand-mark { animation: sk-wob 4s ease-in-out infinite; }
.coin-pill.pulse { animation: sk-coinpop .45s ease; }
.badge--available { animation: sk-pulseav 2.1s ease-in-out infinite; }
.sk-pop { animation: sk-pop .4s cubic-bezier(.2, 1.3, .4, 1); }
.hero__title { animation: sk-pop .45s ease both; }
