/* ==========================================================
   Baby-Game.fr – Thème pastel Bootstrap 5 personnalisé
   Basé sur Baloo 2 (Google Font)
   Couleurs : bleu ciel, rose poudré, beige clair, violet doux
   ========================================================== */

/* ----------------------------------------------------------
   Variables principales (surcharges Bootstrap)
---------------------------------------------------------- */
:root, [data-bs-theme=light] {
    --bs-font-sans-serif: "Baloo 2", system-ui, sans-serif;

    color-scheme: light;

    /* Couleurs de marque */
    --bs-light: #F8F5F0;
    --bs-dark: #3B3B3B;
    --bs-dark-rgb: 59, 59, 59;
    --bs-dark-light: #6B6B6B;

    --bs-primary: #7CC2EF;
    --bs-primary-rgb: 124, 194, 239;
    --bs-primary-light: #4EA5DA;
    --bs-primary-extra-light: #E7F6FC;

    --bs-secondary: #F4A7B9;
    --bs-secondary-light: #F9CBD7;
    --bs-secondary-extra-light: #FFF1F4;

    --bs-info: #A2C6E3;
    --bs-success: #7BCFA9;
    --bs-warning: #F6D07F;
    --bs-danger: #F1948A;

    /* Neutres et tons doux */
    --bs-gray: #707070;
    --bs-gray-light: #A8A8A8;
    --bs-gray-bg: #EDEDED;

    /* Couleurs des liens et boutons */
    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: #2b6e96;

    --bs-body-line-height: 1.2;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: 0.5rem;

    --bs-body-bg: var(--bs-light);
    --bs-body-bg-constrast: #FFF;
    --bs-body-color: var(--bs-dark);
    --bs-emphasis-color: var(--bs-dark);
    --bs-tertiary-bg: #EBE9E4;
    --bs-border-color: #E0DCD4;
}

:root[data-bs-theme=dark] {
    color-scheme: dark;

    --bs-light: #121212;
    --bs-dark: #F3EFE6;
    --bs-dark-rgb: 243, 239, 230;
    --bs-dark-light: #DDD6C7;

    --bs-primary-extra-light: rgba(124, 194, 239, 0.18);

    --bs-secondary: #E89BB0;
    --bs-secondary-light: #D8869C;
    --bs-secondary-extra-light: rgba(232, 155, 176, 0.2);

    --bs-info: #6E9EC5;
    --bs-success: #6BBF98;
    --bs-warning: #E8C171;
    --bs-danger: #E2847F;

    --bs-gray: #BEB9AF;
    --bs-gray-light: #8B877F;
    --bs-gray-bg: #262626;

    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: #a7d8f6;

    --bs-body-bg: #121212;
    --bs-body-bg-constrast: #1E1E1E;
    --bs-body-color: var(--bs-dark);
    --bs-emphasis-color: var(--bs-dark);
    --bs-tertiary-bg: #242424;
    --bs-border-color: #2F2F2F;
}

:root {
    --story-viewport-height: 100vh;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #3b98ce;
    --bs-btn-hover-border-color: #3b98ce;
    --bs-btn-focus-shadow-rgb: 59, 152, 206;
    --bs-btn-active-bg: #3b98ce;
    --bs-btn-active-border-color: #3b98ce;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 92, 178, 230;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.card {
    --bs-card-bg: var(--bs-body-bg-constrast);
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
}

.modal {
    --bs-modal-bg: var(--bs-body-bg-constrast);
}

.accordion {
    --bs-accordion-bg: var(--bs-body-bg-constrast);
    --bs-accordion-color: var(--bs-dark-light);
    --bs-accordion-active-bg: var(--bs-body-bg-constrast);
}

#faq .accordion {
    --bs-accordion-bg: transparent;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--bs-primary);
}

/* ----------------------------------------------------------
   Styles globaux
---------------------------------------------------------- */
body {
    font-family: var(--bs-font-sans-serif);
    font-weight: 500;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--bs-dark);
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.copy-feedback {
    transition: opacity .2s ease;
}

.copy-feedback.d-none {
    opacity: 0;
}

.w500 {
    max-width: 500px !important;
}

.w600 {
    max-width: 600px !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--bs-secondary);
    color: var(--bs-body-bg-constrast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.dropdown-item:hover {
    text-decoration: none;
}

.tag-badge {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background-color: var(--bs-primary-extra-light) !important;
    color: var(--bs-primary) !important;
    border-color: rgba(92, 178, 230, 0.35) !important;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
.site-footer {
    position: relative;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

.site-footer .footer-cta {
    background: linear-gradient(135deg, rgba(92, 178, 230, 0.18), rgba(244, 167, 185, 0.15));
    border: 1px solid rgba(92, 178, 230, 0.25);
    box-shadow: 0 2px 4px rgba(92, 178, 230, 0.18);
    backdrop-filter: blur(4px);
}

.site-footer .footer-cta__actions .btn {
    box-shadow: 0 12px 24px rgba(92, 178, 230, 0.18);
}

.site-footer .footer-cta__actions .btn.btn-outline-primary {
    background-color: rgba(255, 255, 255, 0.9);
    border-width: 2px;
    box-shadow: none;
}

.site-footer .footer-cta__actions .btn.btn-outline-primary:hover,
.site-footer .footer-cta__actions .btn.btn-outline-primary:focus {
    box-shadow: none;
}

.site-footer .footer-brand__logo {
    width: 52px;
    height: 52px;
}

.site-footer .footer-brand__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark);
}

.site-footer .footer-brand-stack {
    background-color: var(--bs-body-bg-constrast);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 14px 35px rgba(59, 59, 59, 0.08);
}

.site-footer .footer-brand__promises {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer .footer-brand__promises i {
    font-size: 1rem;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer .footer-links a {
    color: var(--bs-dark-light);
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    color: var(--bs-primary);
    text-decoration: none;
}

.site-footer .footer-heading {
    letter-spacing: 0.08em;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(59, 59, 59, 0.08);
}

.site-footer .badge.bg-light {
    background-color: var(--bs-body-bg-constrast) !important;
    color: var(--bs-primary) !important;
    border: 1px solid rgba(92, 178, 230, 0.35);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.site-footer .x-small {
    font-size: 0.75rem;
}


@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* ----------------------------------------------------------
   Boutons arrondis et doux
---------------------------------------------------------- */
.btn {
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active {
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:active {
    background-color: #e38aa0 !important;
    border-color: #e38aa0 !important;
}

/* ----------------------------------------------------------
   Blog
---------------------------------------------------------- */
.share-section .btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-width: 2px;
}

.share-section .btn span {
    display: block;
}

.blog-card img,
.blog-card .ratio img {
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.blog-card .btn {
    box-shadow: none;
}

.blog-article__container {
    max-width: 760px;
}

.blog-article .article-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-article .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem auto;
    display: block;
}

.blog-article .article-content h2,
.blog-article .article-content h3,
.blog-article .article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article .article-content ul,
.blog-article .article-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.share-section .btn:hover {
    transform: scale(1.1);
}

.blog-hero {
    background: linear-gradient(135deg, var(--bs-primary-extra-light), var(--bs-secondary-extra-light));
    box-shadow: 0 25px 60px rgba(92, 178, 230, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.blog-hero__meta .btn {
    box-shadow: none;
}

.blog-hero__meta .badge {
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: var(--bs-dark-light) !important;
    backdrop-filter: blur(4px);
}

.blog-hero__intro {
    max-width: 560px;
}

.blog-hero__tags .tag-badge {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(92, 178, 230, 0.25) !important;
}

.blog-hero__cover {
    background-color: var(--bs-body-bg-constrast);
    padding: 1rem;
    border-radius: 2rem;
    position: relative;
}

.blog-hero__cover::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(92, 178, 230, 0.35);
    border-radius: 1.5rem;
    pointer-events: none;
}

.blog-hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(0);
    z-index: 0;
}

.blog-hero__shape--one {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -20px;
}

.blog-hero__shape--two {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -60px;
}

.blog-hero .row {
    z-index: 1;
}

.shadow-soft {
    box-shadow: 0 18px 45px rgba(59, 152, 206, 0.12) !important;
    border-radius: 1.75rem;
}

.blog-article.card {
    background: var(--bs-body-bg-constrast);
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin-bottom: 1.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--bs-primary-light);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--bs-dark-light);
    background-color: rgba(92, 178, 230, 0.08);
    border-radius: 0.75rem;
}

.prose code {
    background-color: rgba(59, 152, 206, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 0.5rem;
    font-size: 0.95em;
}

.related-articles {
    background: linear-gradient(180deg, rgba(231, 246, 252, 0.6), rgba(255, 241, 244, 0.55));
}

.related-article-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(92, 178, 230, 0.18);
}

.related-article-card .btn {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .blog-hero__cover {
        margin-top: 1rem;
    }

    .blog-hero {
        border-radius: 1.5rem;
    }
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-success {
    color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-dark {
    color: var(--bs-dark);
    border-color: var(--bs-dark);
}

.btn-outline-info {
    color: var(--bs-info);
    border-color: var(--bs-info);
}

/* ----------------------------------------------------------
   Barre de navigation
---------------------------------------------------------- */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: var(--bs-body-bg);
}

.navbar .container {
    flex-wrap: wrap;
    position: relative;
    min-height: 72px;
    padding-block: 1rem;
}

.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    padding: 0;
}

.navbar a.navbar-brand:hover,
.navbar a.navbar-brand:focus,
.navbar a.navbar-brand:active {
    text-decoration: none;
}

.navbar .navbar-brand img {
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.navbar .logo__text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    text-transform: lowercase;
    line-height: 1;
}

.navbar .logo__brand,
.navbar .logo__tld {
    font-size: 2rem;
    line-height: 1;
}

.navbar .navbar__inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.navbar .theme-switcher {
    position: absolute;
    right: clamp(1rem, 3vw, 2.5rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.navbar-toggler { 
    border: none;
    outline: none;
}

.theme-switcher .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0.5rem;
    border-radius: 999px;
    font-size: 1rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-switcher .theme-toggle .fa-solid {
    pointer-events: none;
}

.navbar-toggler:hover,
.navbar-toggler:active,
.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background: none;
    width: 24px;
    height: 2px;
    background-color: var(--bs-primary);
    position: relative;
    display: block;
    transition: 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--bs-primary);
    left: 0;
    transition: 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Animation quand le menu est ouvert */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.navbar .nav-link {
    color: var(--bs-dark);
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--bs-primary);
}


/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
footer {
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--bs-dark-light);
}

/* ----------------------------------------------------------
   Formulaires
---------------------------------------------------------- */
form.container {
    max-width: 650px;
}

.form-control,
.form-select {
    border: 1px solid var(--bs-border-color);
    padding: 0.7rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control,
.form-control:focus,
.form-check-input,
.form-select {
    background-color: var(--bs-body-bg-constrast);
}

.input-group-text {
    background-color: var(--bs-body-bg);
}

.form-label {
    color: var(--bs-dark);
    font-weight: 500;
    margin-bottom: 4px;
}

.form-check .form-check-label {
    color: var(--bs-dark);
    vertical-align: text-bottom;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(92, 178, 230, 0.2);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.input-group .btn {
    display: flex;
    align-items: center;
}

/* ----------------------------------------------------------
   Cards & Sections
---------------------------------------------------------- */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--bs-light);
    font-weight: 600;
}

/* ----------------------------------------------------------
   Accordeons
---------------------------------------------------------- */
.accordion-button {
    font-weight: 600;
}

.accordion-body {
    font-weight: 400;
}

/* ----------------------------------------------------------
   Logo animé (flottement + halo)
---------------------------------------------------------- */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bs-dark);
    position: relative;
}

a.logo:hover,
a.logo:focus,
a.logo:active {
    text-decoration: none;
}

.logo__icon {
    width: 100px;
    height: auto;
    display: block;
    animation: babyFloat 4s ease-in-out infinite, babyGlow 6s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 6px rgba(244, 167, 185, 0.25));
}

.logo__text {
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.logo__brand {
    font-size: 2.2rem;
    color: var(--bs-primary);
}

.logo__tld {
    font-size: 2.2rem;
    color: var(--bs-secondary);
}

/* Animations */
@keyframes babyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes babyGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(244, 167, 185, 0.25));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(92, 178, 230, 0.35));
    }
}

/* ----------------------------------------------------------
   PAGE D’ACCUEIL
---------------------------------------------------------- */
.hero img {
    max-width: 200px;
}

#concept .card img {
    max-height: 80px;
}

#concept .card h3 {
    line-height: 1.1;
}

#concept .card p {
    line-height: 1.2;
}

/* ----------------------------------------------------------
   TABLEAU DE BORD PARENT
---------------------------------------------------------- */
.game-card {
    margin-bottom: 1.2rem;
    transition: transform 0.2s ease;
}

.game-card:hover {
    transform: translateY(-3px);
}

.game-card .badge {
    font-size: 0.8rem;
    border-radius: 12px;
    padding: 0.4em 0.8em;
}

.game-card.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.game-card .badge.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.game-card.link-section .form-control {
    background: var(--bs-body-bg-constrast);
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--bs-border-color);
    font-size: 0.85rem;
}

.game-card .link-section .btn {
    font-size: 0.85rem;
}

.game-card .link-section .form-control+.btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.game-card.actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive : cartes en grille sur desktop */
@media (min-width: 992px) {
    .parent-dashboard {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 1.5rem;
    }
}

/* ----------------------------------------------------------
   Badges pastel (optionnels)
---------------------------------------------------------- */
.badge-blue {
    background-color: rgba(92, 178, 230, 0.15);
    color: #256b94;
    border-radius: 2rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

.badge-pink {
    background-color: rgba(244, 167, 185, 0.18);
    color: #9b4c62;
    border-radius: 2rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Blog
---------------------------------------------------------- */
nav.sommaire {
    background-color: var(--bs-primary-extra-light);
    border-radius: 6px;
    padding: 15px;
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.4;
    max-width: 420px;
}

nav.sommaire h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px -15px !important;
    color: var(--bs-primary-light);
    padding-left: 20px;
    position: relative;
}

nav.sommaire ul {
    list-style-type: none;
    padding-left: 0 !important;
    margin: 0 !important;
}

nav.sommaire li {
    margin-bottom: .5rem;
    padding-left: 1rem;
    position: relative;
}

nav.sommaire li::before {
    content: "•";
    color: var(--bs-primary-light);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1rem;
}

nav.sommaire a {
    color: #222;
    text-decoration: none;
    transition: color .2s ease;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 576px) {
    .navbar .theme-switcher {
        position: absolute;
        right: clamp(0.75rem, 3vw, 1.5rem);
        top: 50%;
        transform: translateY(-50%);
    }

    .logo__icon {
        width: 75px;
    }

    .logo__brand,
    .logo__tld {
        font-size: 1.8rem;
    }

    .hero-card h1 {
        font-size: 1.9rem;
    }

    .hero-card p {
        font-size: 1rem;
    }
}

/* ----------------------------------------------------------
   Story / Wrapped leaderboard
---------------------------------------------------------- */
.story-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    height: 100vh;
    height: var(--story-viewport-height, 100dvh);
    min-height: var(--story-viewport-height, 100dvh);
    color: var(--bs-dark);
    padding: 0;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.65), transparent 55%),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.55), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 243, 248, 0.72));
    transition: background 0.6s ease, color 0.3s ease;
    overflow: hidden;
    --story-panel-bg: rgba(255, 255, 255, 0.82);
    --story-panel-border: rgba(255, 255, 255, 0.55);
    --story-chip-bg: rgba(255, 255, 255, 0.7);
    --story-chip-muted-bg: rgba(255, 255, 255, 0.35);
    --story-chip-color: var(--bs-dark);
    --story-accent: #ff8fb6;
    --story-accent-strong: #ff6a9a;
    --story-visual-bubble-1: rgba(255, 165, 204, 0.28);
    --story-visual-bubble-2: rgba(150, 201, 255, 0.32);
    --story-visual-bubble-3: rgba(255, 220, 170, 0.26);
}

.story-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 18, 37, 0.35) 0%, rgba(14, 18, 37, 0.08) 35%, rgba(14, 18, 37, 0.4) 100%);
    pointer-events: none;
}

.story-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    max-width: 100vw;
}

body.story-is-active {
    overflow: hidden;
    height: var(--story-viewport-height, 100dvh);
}

html.story-is-active {
    overflow: hidden;
    height: var(--story-viewport-height, 100dvh);
}

.story-launch {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 26, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 6vw, 3rem);
    z-index: 12;
    transition: opacity 0.35s ease;
}

.story-launch.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.story-launch__panel {
    width: min(28rem, 100%);
    text-align: center;
    display: grid;
    gap: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    padding: clamp(1.75rem, 5vw, 2.8rem);
    border-radius: 1.8rem;
    background: linear-gradient(155deg, rgba(38, 45, 86, 0.92), rgba(17, 20, 40, 0.88));
    box-shadow: 0 28px 65px rgba(5, 7, 16, 0.55);
    position: relative;
    overflow: hidden;
}

.story-launch__panel::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto;
    height: 60%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

.story-launch__panel > * {
    position: relative;
    z-index: 1;
}

.story-launch__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(12, 16, 38, 0.35);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: center;
}

.story-launch__logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-launch__logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.story-launch__brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
}

.story-launch__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.story-launch__title {
    font-size: clamp(1.35rem, 5vw, 2.05rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
    text-wrap: balance;
}

.story-launch__subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 3.4vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    text-wrap: balance;
}

.story-launch__button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--story-accent-strong), var(--story-accent));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: min(100%, 20rem);
    justify-self: center;
}

.story-launch__button:hover,
.story-launch__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
    outline: none;
}

.story-launch__hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.4;
}

.story-wrapper[data-story-theme="birth"] {
    --story-accent: #ff8fb6;
    --story-accent-strong: #ff6a9a;
    --story-visual-bubble-1: rgba(255, 143, 182, 0.28);
    --story-visual-bubble-2: rgba(133, 196, 255, 0.35);
    --story-visual-bubble-3: rgba(255, 214, 168, 0.26);
}

.story-wrapper[data-story-theme="crowd"] {
    --story-accent: #f0a354;
    --story-accent-strong: #e48035;
    --story-visual-bubble-1: rgba(240, 163, 84, 0.28);
    --story-visual-bubble-2: rgba(112, 178, 255, 0.3);
    --story-visual-bubble-3: rgba(255, 232, 186, 0.26);
}

.story-wrapper[data-story-theme="categories"] {
    --story-accent: #5b7dff;
    --story-accent-strong: #3c5bff;
    --story-visual-bubble-1: rgba(91, 125, 255, 0.28);
    --story-visual-bubble-2: rgba(154, 214, 255, 0.3);
    --story-visual-bubble-3: rgba(205, 175, 255, 0.28);
}

.story-wrapper[data-story-theme="category"] {
    --story-accent: #5b7dff;
    --story-accent-strong: #3c5bff;
    --story-visual-bubble-1: rgba(91, 125, 255, 0.28);
    --story-visual-bubble-2: rgba(154, 214, 255, 0.3);
    --story-visual-bubble-3: rgba(205, 175, 255, 0.28);
}

.story-wrapper[data-story-theme="podium"] {
    --story-accent: #f2b94b;
    --story-accent-strong: #f0a12c;
    --story-visual-bubble-1: rgba(242, 185, 75, 0.32);
    --story-visual-bubble-2: rgba(255, 168, 194, 0.28);
    --story-visual-bubble-3: rgba(255, 238, 189, 0.32);
}

.story-wrapper[data-story-theme="flop"] {
    --story-accent: #ff7a85;
    --story-accent-strong: #ff4f61;
    --story-visual-bubble-1: rgba(255, 122, 133, 0.28);
    --story-visual-bubble-2: rgba(255, 179, 189, 0.3);
    --story-visual-bubble-3: rgba(255, 213, 220, 0.3);
}

.story-wrapper[data-story-theme="souvenir"] {
    --story-accent: #9a66ff;
    --story-accent-strong: #7b4de2;
    --story-visual-bubble-1: rgba(154, 102, 255, 0.28);
    --story-visual-bubble-2: rgba(116, 188, 255, 0.3);
    --story-visual-bubble-3: rgba(224, 200, 255, 0.28);
}

.story-wrapper[data-story-theme="leaderboard"] {
    --story-accent: #4b74ff;
    --story-accent-strong: #365bff;
    --story-visual-bubble-1: rgba(75, 116, 255, 0.28);
    --story-visual-bubble-2: rgba(137, 182, 255, 0.3);
    --story-visual-bubble-3: rgba(196, 215, 255, 0.28);
}

.story-header {
    position: absolute;
    top: max(env(safe-area-inset-top), 1rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    color: #fff;
    pointer-events: none;
    z-index: 3;
}

.story-header__identity {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    pointer-events: auto;
}

.story-header__avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.story-header__avatar img {
    width: 100%;
    height: 100%;
}

.story-header__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin: 0;
}

.story-header__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.story-header__close {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.story-header__close:hover,
.story-header__close:focus,
.story-header__close:focus-visible {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
    outline: none;
    text-decoration: none;
}

.story-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.45s ease;
}

.story-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    --story-stage-padding-top: clamp(4rem, 7vw, 4rem);
    --story-stage-padding-side: clamp(0.6rem, 4vw, 1.5rem);
    --story-stage-padding-bottom: clamp(0.6rem, 4vw, 1.5rem);
    padding: calc(env(safe-area-inset-top, 0px) + var(--story-stage-padding-top))
        var(--story-stage-padding-side)
        calc(env(safe-area-inset-bottom, 0px) + var(--story-stage-padding-bottom));
    gap: clamp(1rem, 3vw, 1rem);
}

.story-progress {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + var(--story-stage-padding-top));
    left: var(--story-stage-padding-side);
    right: var(--story-stage-padding-side);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0;
    z-index: 2;
}

.story-progress__segment {
    position: relative;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.story-progress__fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--story-accent-strong);
}

.story-progress__segment.is-active .story-progress__fill,
.story-progress__segment.is-complete .story-progress__fill {
    width: 100%;
}

.story-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: clamp(1.4rem, 4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(16, 35, 60, 0.22);
    backdrop-filter: blur(14px);
    overflow: hidden;
    margin-top: 15px;
}

.story-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.story-slide.is-active {
    opacity: 1;
}

.story-slide__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
    height: 100%;
    padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1rem, 4vw, 2.5rem);
    overflow: hidden;
    isolation: isolate;
}

.story-slide__inner::before {
    content: '';
    position: absolute;
    inset: -45% -20% -30% -20%;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.4), transparent 70%),
        radial-gradient(120% 120% at 100% 10%, rgba(255, 255, 255, 0.2), transparent 70%),
        radial-gradient(120% 120% at 100% 100%, rgba(255, 255, 255, 0.16), transparent 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 65%),
        radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.story-slide__inner > * {
    position: relative;
    z-index: 1;
}

.story-touch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: clamp(3rem, 10vw, 3.5rem);
    width: clamp(3rem, 10vw, 3.5rem);
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    opacity: 0.65;
    transition: opacity 0.2s ease;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.story-touch:hover {
    opacity: 1;
}

.story-touch i {
    font-size: 1.3rem;
}

.story-touch--prev {
    left: clamp(0.75rem, 3vw, 1.5rem);
}

.story-touch--next {
    right: clamp(0.75rem, 3vw, 1.5rem);
}

.story-touch:disabled {
    pointer-events: none;
    opacity: 0.35;
}

.story-touch:focus-visible {
    outline: 2px solid var(--story-accent-strong);
    outline-offset: 2px;
}

.story-stage__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 clamp(0.6rem, 4vw, 1.5rem);
}

.story-index {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.story-hint {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.story-category-focus {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.story-category-focus__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.story-category-focus__header .story-tag {
    margin-bottom: 0.85rem;
}


.story-category-focus__lists {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.story-category-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.1rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.story-category-panel--top {
    border-color: rgba(91, 125, 255, 0.35);
}

.story-category-panel--flop {
    border-color: rgba(255, 122, 133, 0.35);
    background: rgba(255, 255, 255, 0.78);
}

.story-category-panel__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.02em;
    color: rgba(17, 24, 39, 0.75);
}

.story-category-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.story-category-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.story-category-entry__rank {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(91, 125, 255, 0.12);
    color: var(--story-accent-strong);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.story-category-panel--flop .story-category-entry__rank {
    background: rgba(255, 122, 133, 0.15);
    color: #ff4f61;
}

.story-category-entry__body {
    display: grid;
    gap: 0.25rem;
}

.story-category-entry__name {
    font-weight: 700;
    color: rgba(17, 24, 39, 0.85);
    word-break: break-word;
}

.story-category-entry__value {
    font-weight: 600;
    color: rgba(17, 24, 39, 0.75);
    word-break: break-word;
}

.story-category-entry__diff {
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.55);
    word-break: break-word;
}

.story-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 4vw, 1.75rem);
    position: relative;
    z-index: 1;
    height: 100%;
}

.story-main--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.story-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-inline: 2rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(54, 91, 255, 0.25);
}

.story-main--center .story-actions__hint {
    text-align: center;
    margin-bottom: 0;
}

.story-layout--split {
    flex: 1;
    justify-content: space-between;
    gap: clamp(1.4rem, 6vw, 2.4rem);
}

.story-layout--stack,
.story-layout--stack-lg {
    flex: 1;
}

.story-layout--split > .story-main {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: clamp(1rem, 4vw, 1.6rem);
}

.story-layout--split > .story-visual {
    flex: 0 0 auto;
    align-self: center;
}

.story-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--story-accent-strong);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.story-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--story-accent-strong);
}

.story-slide__title {
    font-size: clamp(1.4rem, 5vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    max-width: min(38ch, 100%);
    text-wrap: balance;
    word-break: break-word;
}

.story-slide__subtitle {
    font-size: clamp(0.98rem, 3.2vw, 1.2rem);
    color: rgba(17, 24, 39, 0.75);
    margin-bottom: clamp(1rem, 4vw, 1.4rem);
    line-height: 1.55;
    max-width: min(42ch, 100%);
    text-wrap: balance;
    word-break: break-word;
}

.story-baby-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
    border-radius: 1.25rem;
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(18, 52, 86, 0.12);
}

.story-baby-card__caption {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.5);
}

.story-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--story-accent-strong);
    margin: 0;
}

.story-infos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.story-infos li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.story-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
    color: var(--story-accent-strong);
    font-size: 1rem;
}

.story-participants {
    display: grid;
    gap: 0.75rem;
}

.story-participants__figure {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    color: var(--story-accent-strong);
    margin: 0;
}

.story-participants__label {
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.story-participants__copy {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(17, 24, 39, 0.7);
    line-height: 1.5;
    max-width: 36ch;
}

.story-lead {
    margin: 0;
    font-size: clamp(0.92rem, 3vw, 1.05rem);
    color: rgba(17, 24, 39, 0.65);
    line-height: 1.5;
    text-wrap: balance;
}

.story-ranking-card {
    display: grid;
    gap: clamp(0.9rem, 3vw, 1.4rem);
    padding: clamp(1.1rem, 4vw, 1.6rem);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.story-ranking-card--flop {
    background: linear-gradient(150deg, rgba(255, 239, 241, 0.9), rgba(255, 219, 224, 0.65));
    border-color: rgba(255, 122, 133, 0.35);
}

.story-ranking-card--podium {
    background: linear-gradient(150deg, rgba(255, 248, 232, 0.9), rgba(255, 236, 199, 0.7));
    border-color: rgba(242, 185, 75, 0.4);
}

.story-ranking-card--flop .story-lead {
    color: rgba(156, 44, 60, 0.7);
}

.story-ranking-card--podium .story-lead {
    color: rgba(128, 90, 14, 0.72);
}

.story-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--story-accent-strong);
    font-size: 1.35rem;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
.story-empty {
    color: rgba(17, 24, 39, 0.6);
    font-style: italic;
    margin: 0;
    font-size: 0.85rem;
}

.story-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.story-ranking--flop {
    gap: 0.75rem;
}

.story-ranking__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.85rem 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(18, 45, 77, 0.12);
}

.story-ranking__item--gold {
    border-color: rgba(242, 185, 75, 0.45);
}

.story-ranking__item--silver {
    border-color: rgba(177, 184, 192, 0.45);
}

.story-ranking__item--bronze {
    border-color: rgba(242, 179, 146, 0.45);
}

.story-ranking__item--flop {
    border-color: rgba(255, 122, 133, 0.45);
    background: rgba(255, 255, 255, 0.74);
}

.story-ranking__position {
    font-weight: 800;
    color: rgba(17, 24, 39, 0.78);
}

.story-ranking__points {
    font-weight: 700;
    color: var(--story-accent-strong);
    font-size: 0.95rem;
}

.story-ranking--flop .story-ranking__points {
    color: #ff4f61;
}

.story-visual {
    position: relative;
    border-radius: 1.75rem;
    min-height: 160px;
    max-height: 32vh;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), transparent 65%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 18px 32px rgba(18, 45, 77, 0.14);
}

.story-visual__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.5rem, 9vw, 5rem);
    height: clamp(3.5rem, 9vw, 5rem);
    border-radius: 50%;
    background: var(--story-accent-strong);
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.18);
    z-index: 1;
}

.story-visual__bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
}

.story-visual__bubble--one {
    width: 180px;
    height: 180px;
    top: -35px;
    right: -35px;
    background: var(--story-visual-bubble-1);
}

.story-visual__bubble--two {
    width: 150px;
    height: 150px;
    bottom: -35px;
    left: -20px;
    background: var(--story-visual-bubble-2);
}

.story-visual__bubble--three {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 52%;
    transform: translate(-50%, -50%);
    background: var(--story-visual-bubble-3);
}

.story-visual__sparkle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0.5;
    filter: blur(8px);
}

.story-visual__sparkle--one {
    top: 10%;
    left: 12%;
}

.story-visual__sparkle--two {
    bottom: 12%;
    right: 14%;
}

.story-visual__sparkle--three {
    top: 18%;
    right: 20%;
}

.story-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.story-actions__hint {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(17, 24, 39, 0.65);
}

.story-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.story-actions .btn.is-loading::after {
    content: '';
    margin-left: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: inline-block;
    animation: storySpin 0.75s linear infinite;
}

.story-share-wrapper {
    display: grid;
    gap: 1rem;
}

.story-share-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
    border-radius: 1.45rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    box-shadow: 0 18px 30px rgba(18, 45, 77, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.story-share-card__eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.5rem;
    color: rgba(17, 24, 39, 0.55);
}

.story-share-card__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.story-share-card__content {
    display: grid;
    gap: 1rem;
}

.story-share-card__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    color: rgba(17, 24, 39, 0.6);
}

.story-share-card__list,
.story-share-card__ranking {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.story-share-card__ranking {
    counter-reset: ranking;
}

.story-share-card__ranking li::marker {
    display: none;
}

.story-share-card__ranking li {
    position: relative;
    padding-left: 1.2rem;
}

.story-share-card__ranking li::before {
    counter-increment: ranking;
    content: counter(ranking) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--story-accent-strong);
    font-weight: 700;
}

.story-share-card__footer {
    margin-top: 2rem;
    font-weight: 600;
}

.story-share-helper {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.6);
}

.story-share-helper.is-error {
    color: #c0392b;
    font-weight: 600;
}

@keyframes storySpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575.98px) {
    .story-launch__panel {
        padding: 1.5rem 1.2rem;
        gap: 1rem;
    }

    .story-launch__brand {
        flex-direction: column;
        width: 100%;
        gap: 0.35rem;
    }

    .story-launch__brand-name {
        letter-spacing: 0.18em;
        font-size: 0.72rem;
    }

    .story-launch__button {
        width: 100%;
    }

    .story-launch__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .story-layout--split {
        align-items: flex-start;
    }

    .story-layout--split > .story-main {
        text-align: left;
    }

    .story-layout--split > .story-visual {
        width: min(220px, 55vw);
        max-width: 260px;
        margin-inline: auto;
    }
}

@media (min-width: 768px) {
    .story-launch__panel {
        gap: 1.8rem;
        padding: 2.8rem 3.2rem;
    }

    .story-launch__button {
        width: auto;
    }

    .story-launch__brand {
        gap: 0.8rem;
    }

    .story-infos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .story-shell {
        width: min(100%, 900px);
    }

    .story-layout {
        flex-direction: row;
        align-items: center;
        gap: clamp(2rem, 4vw, 3rem);
    }

    .story-layout--split {
        align-items: center;
    }

    .story-layout--split > .story-main {
        max-width: 55%;
    }

    .story-layout--split > .story-visual {
        max-width: 40%;
    }

    .story-stage__footer {
        padding: 0 2rem;
    }

    .story-touch {
        width: clamp(60px, 6vw, 90px);
    }

    .story-infos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-category-lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-category-focus__lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-general {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-share-card__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.story-leaderboard-hero {
    background: linear-gradient(135deg, #f9f5ff 0%, #eef5ff 60%, #ffffff 100%);
    border-radius: 1.5rem;
}

.story-leaderboard-hero .card-body {
    position: relative;
    z-index: 1;
}

.story-leaderboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.story-leaderboard-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #102044;
    line-height: 1.15;
}

.story-leaderboard-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0d3c66;
    text-decoration: none;
}

.story-leaderboard-secondary:hover,
.story-leaderboard-secondary:focus {
    color: #0d6efd;
    text-decoration: underline;
}

.story-leaderboard-podium {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.35rem;
    box-shadow: 0 18px 45px -32px rgba(17, 24, 39, 0.35);
}

.story-leaderboard-podium__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.story-leaderboard-podium__list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
    background: rgba(239, 244, 255, 0.9);
    font-weight: 600;
    color: #142444;
}

.story-leaderboard-podium__rank {
    font-variant-numeric: tabular-nums;
    color: #0d6efd;
    font-weight: 700;
}

.story-leaderboard-podium__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-leaderboard-podium__points {
    font-size: 0.95rem;
    color: rgba(17, 24, 39, 0.6);
}

@media (max-width: 575.98px) {
    .story-leaderboard-podium__list li {
        grid-template-columns: auto 1fr;
    }

    .story-leaderboard-podium__points {
        justify-self: start;
        margin-top: 0.25rem;
    }
}
