/* ═══════════════════════════════════════════════════════════════════════════
   La Linotte DELUXE – Landing page
   ═══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0912;
    --surface: #1a1830;
    --text: #fffffe;
    --muted: #a7a9be;
    --gold: #ffe066;
    --font: 'IM Fell English', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ── Gems ─────────────────────────────────────────────── */
.gem {
    width: 3.429em;
    height: 3.429em;
    background-image: url('/assets/tokens/sprite.png');
    background-size: 34.286em 34.286em;
    background-repeat: no-repeat;
    pointer-events: none;
    flex-shrink: 0;
}

.gem-7 {
    background-position: -20.571em 0;
}

.gem-23 {
    background-position: -6.857em -3.429em;
}

.gem-41 {
    background-position: 0 -13.714em;
}

.gem-58 {
    background-position: -23.999em -17.143em;
}

/* ── Nav ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 2em;
    background: rgba(10, 9, 18, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 224, 102, 0.12);
}

.nav-logo {
    font-size: 1.2em;
    letter-spacing: .06em;
    color: var(--gold);
    text-decoration: none;
}

.nav-logo span {
    color: var(--text);
    opacity: .7;
}

/* ── Boutons ──────────────────────────────────────────── */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .45em 1.2em;
    border-radius: 2em;
    border: 1px solid rgba(255, 224, 102, 0.5);
    border-top-color: rgba(255, 224, 102, 0.85);
    background: rgba(255, 224, 102, 0.08);
    color: var(--gold);
    font-family: var(--font);
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 0 8px rgba(255, 224, 102, 0.1);
}

.btn-play:hover {
    background: rgba(255, 224, 102, 0.18);
    box-shadow: 0 0 18px rgba(255, 224, 102, 0.3);
    transform: translateY(-1px);
}

.btn-play-lg {
    font-size: 1.25em;
    padding: .65em 2em;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-top: 1.2em;
    padding: .65em 2em;
    border-radius: 2em;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font);
    font-size: 1.25em;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.btn-discover:hover {
    border-color: rgba(255, 255, 255, .3);
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}

/* ── Hero ─────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7em 1.5em 4em;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 35%, rgba(90, 40, 180, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 60%, rgba(255, 224, 102, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.dice-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.die-float {
    position: absolute;
    opacity: .07;
    animation: float linear infinite;
}

.die-float img {
    display: block;
    filter: sepia(1) saturate(3) hue-rotate(15deg) brightness(1.5);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-eyebrow {
    font-size: .85em;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .75;
    margin-bottom: 1em;
}

h1 {
    font-size: clamp(2.8em, 8vw, 5.5em);
    line-height: 1.1;
    letter-spacing: .03em;
    margin-bottom: .3em;
}

h1 .deluxe {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255, 224, 102, .4);
}

h1 .star {
    color: var(--gold);
    font-size: .7em;
    vertical-align: .1em;
    margin: 0 .15em;
    animation: star-pulse 3s ease-in-out infinite;
}

@keyframes star-pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(255, 224, 102, .4);
    }

    50% {
        opacity: .6;
        text-shadow: 0 0 20px rgba(255, 224, 102, .7);
    }
}

.hero-tagline {
    font-size: clamp(1.1em, 2.5vw, 1.5em);
    font-style: italic;
    color: var(--muted);
    max-width: 30em;
    margin-bottom: 1.2em;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    gap: .75em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5em;
}

.badge {
    font-size: .8em;
    padding: .3em .9em;
    border-radius: 2em;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--muted);
    letter-spacing: .05em;
}

.hero-cta {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Steps ────────────────────────────────────────────── */
#how {
    padding: 6em 1.5em;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
    letter-spacing: .04em;
    margin-bottom: .3em;
}

.section-title .gold {
    color: var(--gold);
}

.section-sub {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 3em;
    font-size: 1.55em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: .75em;
    padding: 2em 1.5em;
    position: relative;
    transition: border-color .2s, background .2s;
}

.step:hover {
    border-color: rgba(255, 224, 102, .25);
    background: rgba(255, 224, 102, .04);
}


.step-icon {
    font-size: 2.5em;
    margin-bottom: .4em;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 224, 102, .3));
}

.step-icon img {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.step h3 {
    font-size: 1.3em;
    color: var(--gold);
    margin-bottom: .4em;
    letter-spacing: .04em;
}

.step p {
    font-size: 1.3em;
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
}

/* ── Combos ───────────────────────────────────────────── */
#combos {
    padding: 0em 1.5em;
    background: linear-gradient(180deg, transparent, rgba(255, 224, 102, .03) 50%, transparent);
}

.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1em;
    max-width: 900px;
    margin: 0 auto;
}

.combo-card {
    border-radius: .6em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}

.combo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

.combo-tile {
    width: 100%;
    aspect-ratio: 1;
    background-image: url('/assets/ui/tiles.png');
    background-size: 400% 300%;
}

.combo-tile-NUMBERED {
    background-position: 0% 0%;
}

.combo-tile-SMALL {
    background-position: 33.333% 0%;
}

.combo-tile-BIG {
    background-position: 66.667% 0%;
}

.combo-tile-FULL {
    background-position: 100% 0%;
}

.combo-tile-PETITE_QUINTE {
    background-position: 0% 50%;
}

.combo-tile-APPEL {
    background-position: 33.333% 50%;
}

.combo-tile-PARITE {
    background-position: 66.667% 50%;
}

.combo-tile-SEC {
    background-position: 100% 50%;
}

.combo-tile-CHANCE {
    background-position: 0% 100%;
}

.combo-tile-GRANDE_QUINTE {
    background-position: 33.333% 100%;
}

.combo-tile-CARRE {
    background-position: 66.667% 100%;
}

.combo-tile-YAM {
    background-position: 100% 100%;
}

.combo-name {
    width: 100%;
    padding: .45em .5em;
    text-align: center;
    font-size: 1.22em;
    font-style: italic;
    background: rgba(12, 6, 28, 0.85);
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ── Players ──────────────────────────────────────────── */
#players {
    padding: 3em 1.5em;
    text-align: center;
}

.gems-row {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5em 0 1em;
    font-size: 1.8em;
}

.gem-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6em;
}

.gem-wrap span {
    font-size: 0.75em;
    color: var(--muted);
    font-style: italic;
}

.players-desc {
    max-width: 28em;
    margin: 0 auto 1.3em;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.55em;
}

.features {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3em;
}

.feature {
    display: flex;
    align-items: center;
    gap: .5em;
    color: var(--muted);
    font-size: .95em;
}

.feature::before {
    content: '✦';
    color: var(--gold);
    opacity: .7;
    font-size: .8em;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
    padding: 3em 2em;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted);
}

.footer-logo {
    font-size: 1.3em;
    color: var(--gold);
    margin-bottom: .8em;
}

.footer-attr {
    font-size: .82em;
    font-style: italic;
    line-height: 1.8;
    opacity: .6;
    max-width: 32em;
    margin: 0 auto;
}

/* ── Divider ──────────────────────────────────────────── */
.section-divider {
    width: 4em;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 1em;
    opacity: .4;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
    nav {
        padding: .75em 1.2em;
    }

    .nav-logo {
        font-size: 1em;
    }

    .combos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}