:root {
    --ink: #1f2a44;
    --muted: #5a6785;
    --paper: #fffdf8;
    --surface: rgba(255, 255, 255, 0.82);
    --red: #ff4d6d;
    --orange: #ff8a3d;
    --yellow: #ffd166;
    --green: #7ed957;
    --blue: #3d9eff;
    --violet: #9b5de5;
    --pink: #ff5ca8;
    --flik: #ff8a3d;
    --lumi: #9b5de5;
    --radius: 1.4rem;
    --shadow: 0 12px 30px rgba(31, 42, 68, 0.12);
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff8ee;
    line-height: 1.55;
    position: relative;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.btn:focus-visible,
.chip:focus-visible,
.nav-toggle:focus-visible,
.hero-video-btn:focus-visible,
.hero-slider-btn:focus-visible,
.hero-slider-dot:focus-visible,
.book-marquee-card:focus-visible,
.main-nav a:focus-visible,
.main-nav .nav-group-toggle:focus-visible,
.header-actions a:focus-visible,
.footer-col a:focus-visible,
.social-link:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

#contenuto-principale:focus {
    outline: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 209, 102, 0.45),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(61, 158, 255, 0.28),
            transparent 26%
        ),
        radial-gradient(
            circle at 78% 78%,
            rgba(255, 92, 168, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 18% 82%,
            rgba(126, 217, 87, 0.25),
            transparent 28%
        ),
        linear-gradient(160deg, #fff4e0 0%, #ffe8f2 42%, #e8f4ff 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 20px 20px,
            rgba(255, 255, 255, 0.35) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 60px 50px,
            rgba(255, 255, 255, 0.2) 1.5px,
            transparent 2.5px
        );
    background-size: 90px 90px;
    opacity: 0.55;
    pointer-events: none;
}

.float-shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.55;
    pointer-events: none;
    animation: float-orbit 12s ease-in-out infinite;
}

.float-shape.shape-1 {
    width: 70px;
    height: 70px;
    left: 8%;
    top: 18%;
    background: color-mix(in srgb, var(--yellow) 70%, white);
    animation-duration: 11s;
}

.float-shape.shape-2 {
    width: 46px;
    height: 46px;
    right: 12%;
    top: 28%;
    background: color-mix(in srgb, var(--pink) 65%, white);
    animation-duration: 14s;
    animation-delay: -2s;
}

.float-shape.shape-3 {
    width: 88px;
    height: 88px;
    left: 18%;
    bottom: 16%;
    background: color-mix(in srgb, var(--blue) 55%, white);
    animation-duration: 16s;
    animation-delay: -4s;
}

.float-shape.shape-4 {
    width: 36px;
    height: 36px;
    right: 22%;
    bottom: 22%;
    background: color-mix(in srgb, var(--green) 60%, white);
    animation-duration: 10s;
    animation-delay: -1s;
}

.float-shape.shape-5 {
    width: 54px;
    height: 54px;
    left: 48%;
    top: 8%;
    background: color-mix(in srgb, var(--violet) 55%, white);
    animation-duration: 13s;
    animation-delay: -6s;
}

.landing-sparkles {
    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.landing-sparkles span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25);
    animation: sparkle-twinkle 2.8s ease-in-out infinite;
}

.landing-sparkles span:nth-child(1) {
    left: 12%;
    top: 90px;
}
.landing-sparkles span:nth-child(2) {
    left: 28%;
    top: 40px;
    background: var(--pink);
    animation-delay: 0.4s;
}
.landing-sparkles span:nth-child(3) {
    left: 55%;
    top: 70px;
    background: var(--blue);
    animation-delay: 0.8s;
}
.landing-sparkles span:nth-child(4) {
    left: 72%;
    top: 30px;
    background: var(--green);
    animation-delay: 1.1s;
}
.landing-sparkles span:nth-child(5) {
    left: 86%;
    top: 100px;
    background: var(--violet);
    animation-delay: 1.5s;
}
.landing-sparkles span:nth-child(6) {
    left: 42%;
    top: 120px;
    background: var(--orange);
    animation-delay: 1.9s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-main > .container,
.site-main > .section.container,
.site-main > .hero.container {
    margin-inline: auto;
}

.content-narrow {
    width: min(720px, 100%);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(255, 253, 248, 0.78);
    border-bottom: 3px solid rgba(255, 138, 61, 0.25);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand end";
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.75rem 0;
    position: relative;
}

.brand {
    grid-area: brand;
    justify-self: start;
    z-index: 1;
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: min(100%, 200px);
    animation: soft-wiggle 5s ease-in-out infinite;
    transform-origin: center;
}

.header-menus {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem 0.75rem;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: nowrap;
    z-index: 1;
}

.header-end {
    grid-area: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    z-index: 2;
}

.header-social--desktop {
    display: none;
}

.header-social--bar {
    display: inline-flex;
}

.header-social,
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.social-link {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: rgba(255, 209, 102, 0.55);
    transform: translateY(-1px);
}

.social-link svg {
    display: block;
}

.footer-social .social-link {
    color: var(--yellow);
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
    background: rgba(255, 209, 102, 0.22);
    color: #fff;
}

.main-nav a,
.main-nav .nav-group-toggle,
.header-actions a:not(.btn):not(.social-link) {
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .nav-group.is-active > .nav-group-toggle,
.main-nav .nav-group[open] > .nav-group-toggle,
.header-actions a:not(.btn):not(.social-link):hover,
.header-actions a:not(.btn):not(.social-link).active {
    background: rgba(255, 209, 102, 0.55);
    transform: translateY(-1px);
}

.nav-group {
    position: relative;
}

.nav-group-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    user-select: none;
}

.nav-group-toggle::-webkit-details-marker {
    display: none;
}

.nav-group-toggle::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-group[open] > .nav-group-toggle::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 11.5rem;
    padding: 0.45rem;
    border-radius: 1rem;
    background: rgba(255, 253, 248, 0.98);
    border: 2px solid rgba(255, 138, 61, 0.22);
    box-shadow: var(--shadow);
}

.nav-submenu a {
    white-space: nowrap;
}

.main-nav a.nav-link-danger {
    color: var(--red);
}

.main-nav a.nav-link-danger:hover,
.main-nav a.nav-link-danger.active {
    background: rgba(255, 77, 109, 0.18);
    color: #c0392b;
}

.nav-user {
    font-weight: 800;
    color: var(--violet);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    display: inline;
    margin: 0;
}

.nav-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--yellow);
    cursor: pointer;
    place-items: center;
    gap: 5px;
    padding: 10px;
    flex: 0 0 auto;
}

@media (min-width: 1101px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: none;
        align-items: center;
        column-gap: 1rem;
        min-height: 4.25rem;
        width: min(1440px, calc(100% - 2rem));
    }

    .brand {
        grid-area: auto;
        grid-column: 1;
        justify-self: start;
        position: relative;
        z-index: 2;
    }

    .header-menus {
        display: contents;
    }

    .main-nav {
        grid-column: 2;
        justify-self: center;
        position: relative;
        z-index: 1;
        max-width: none;
    }

    .header-actions {
        grid-column: 3;
        justify-self: end;
        position: relative;
        z-index: 2;
    }

    .header-end {
        display: none;
    }

    .header-social--bar {
        display: none;
    }

    .header-social--desktop {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-submenu {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        z-index: 40;
    }

    .nav-group:not([open]) > .nav-submenu {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
}

.site-main {
    padding: 1.5rem 0 3.5rem;
}

.flash-stack {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    width: min(22rem, calc(100vw - 1.7rem));
    pointer-events: none;
}

.flash-stack:not(:has(.flash)) {
    display: none;
}

.flash-stack .flash {
    pointer-events: auto;
    width: 100%;
    margin: 0;
    transform-origin: top right;
}

.flash {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    box-shadow: var(--shadow);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.35s ease,
        margin 0.35s ease,
        padding 0.35s ease;
    max-height: 12rem;
    overflow: hidden;
}

.flash-stack .flash {
    border-radius: 1rem;
    padding: 0.85rem 1.05rem;
    animation: flash-in 0.28s ease;
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(-0.4rem);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.flash-stack .flash.is-hiding {
    transform: translate(0.6rem, -0.35rem) scale(0.96);
}

.flash-success {
    background: #e8ffe0;
    border: 2px solid var(--green);
}

.flash-error {
    background: #ffe4ea;
    border: 2px solid var(--red);
}

.flash-info {
    background: #e8f4ff;
    border: 2px solid var(--blue);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translate(0.75rem, -0.4rem) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flash,
    .flash-stack .flash {
        transition: none;
        animation: none;
    }
}

.site-main:has(.hero-video) {
    padding-top: 0;
}

.hero-video {
    position: relative;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0;
}

.hero-video-frame {
    position: relative;
    width: 100%;
    padding: 5px 0;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        var(--orange),
        var(--yellow),
        var(--violet),
        var(--pink)
    );
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-video-frame:has([data-hero-video-youtube]) {
    aspect-ratio: 16 / 9;
    max-height: min(86vh, 920px);
}

.hero-video-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(86vh, 920px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 24%;
    background: #0f172a;
    border-radius: 0;
}

.hero-video-frame:has([data-hero-video-youtube]) .hero-video-player {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
}

.hero-video-poster {
    position: relative;
    z-index: 1;
}

.hero-video-poster.is-concealed {
    opacity: 0;
    pointer-events: none;
}

.hero-video-youtube {
    position: absolute;
    inset: 5px 0;
    z-index: 2;
    width: 100%;
    height: auto;
    border: 0;
    background: #0f172a;
}

.hero-video-youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-youtube[hidden] {
    display: none !important;
}

.hero-video-frame.is-youtube-playing .hero-video-youtube {
    display: block;
}

.hero-video-logo-sticker {
    position: absolute;
    top: 4.25rem;
    left: 5.5rem;
    z-index: 2;
    width: min(42vw, 240px);
    height: auto;
    padding: 0.95rem 1.45rem 0.85rem;
    border: 3px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 10px 0 rgba(31, 42, 68, 0.08),
        0 16px 28px rgba(31, 42, 68, 0.22);
    transform: rotate(-7deg);
    transform-origin: center;
    pointer-events: none;
    user-select: none;
    animation: sticker-wiggle 5.5s ease-in-out infinite;
}

.hero-video-logo-sticker[hidden] {
    display: none !important;
}

.hero-video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 88px;
    height: 88px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    color: #fff;
    box-shadow: 0 14px 32px rgba(31, 42, 68, 0.28);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.hero-video-play-center[hidden] {
    display: none !important;
}

.hero-video-play-center:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.hero-video-play-center:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

.hero-video-play-center-icon {
    width: 2.1rem;
    height: 2.1rem;
    margin-left: 0.2rem;
    fill: currentColor;
}

.hero-video-controls {
    position: absolute;
    right: 1rem;
    bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 4;
}

.hero-video-controls[hidden] {
    display: none !important;
}

.hero-video-btn {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 42, 68, 0.22);
    cursor: pointer;
}

.hero-video-btn:hover {
    transform: translateY(-1px);
}

.hero-video-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

.hero-video-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.hero-video-btn[data-hero-video-fullscreen] .hero-video-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.hero-video-icon[hidden] {
    display: none !important;
}

.hero-video-frame:fullscreen,
.hero-video-frame:-webkit-full-screen {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    box-shadow: none;
}

.hero-video-frame:fullscreen .hero-video-player,
.hero-video-frame:-webkit-full-screen .hero-video-player {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

.hero-video-frame:fullscreen .hero-video-controls,
.hero-video-frame:-webkit-full-screen .hero-video-controls {
    right: 1.25rem;
    bottom: 1.25rem;
}

.hero-video-frame:fullscreen .hero-video-logo-sticker,
.hero-video-frame:-webkit-full-screen .hero-video-logo-sticker {
    top: 4.5rem;
    left: 5.75rem;
}

.hero-slider {
    position: relative;
    margin-bottom: 1rem;
}

.hero-slider-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 1rem 0 2rem;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    transition:
        opacity 0.45s ease,
        visibility 0.45s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 0.2rem 0 0.8rem;
}

.hero-copy .brand-hero {
    display: block;
    width: min(100%, 420px);
    margin-bottom: 0.4rem;
    animation: floaty 7s ease-in-out infinite;
}

.hero-copy p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 0 0 1.4rem;
}

.hero-prize {
    max-width: 34rem;
    margin: -0.4rem 0 1.2rem !important;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(255, 138, 61, 0.28);
    color: var(--ink) !important;
    font-size: 1rem !important;
    box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
}

.hero-feature {
    position: relative;
    animation: pop-in 0.8s ease both;
}

.hero-feature-card {
    margin: 0;
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.55);
}

.hero-feature.lumi .hero-feature-card {
    background: linear-gradient(
        160deg,
        rgba(181, 124, 255, 0.35),
        rgba(122, 92, 255, 0.18)
    );
    border-color: rgba(181, 124, 255, 0.45);
}

.hero-feature.flik .hero-feature-card {
    background: linear-gradient(
        160deg,
        rgba(255, 154, 77, 0.35),
        rgba(255, 77, 109, 0.16)
    );
    border-color: rgba(255, 138, 61, 0.45);
}

.hero-feature-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    animation: bounce 5.5s ease-in-out infinite;
}

.hero-chat-tag {
    position: absolute;
    left: 1rem;
    bottom: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(31, 42, 68, 0.16);
    font-weight: 800;
    color: var(--ink);
    animation: floaty 6.5s ease-in-out infinite;
}

.hero-chat-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.hero-slider-pause {
    min-width: 5.5rem;
    height: 42px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hero-slider-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.hero-slider-btn:hover {
    transform: translateY(-1px);
    background: white;
}

.hero-slider-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(31, 42, 68, 0.22);
    cursor: pointer;
    padding: 0;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hero-slider-dot.is-active {
    background: linear-gradient(135deg, var(--orange), var(--violet));
    transform: scale(1.2);
}

.hero-duo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: end;
    animation: pop-in 0.8s ease both;
}

#classifica,
#concorsi,
#libri {
    scroll-margin-top: 90px;
}

.ranking-grid {
    align-items: stretch;
}

.ranking-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.ranking-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.45rem;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
    border-radius: var(--radius) 0 0 var(--radius);
}

.ranking-panel--lumi::before {
    background: linear-gradient(180deg, #d4b4ff, var(--lumi), #6b2fba);
}

.ranking-panel--flik::before {
    background: linear-gradient(180deg, #ffd166, var(--flik), #c45a10);
}

.ranking-panel-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-left: 0.35rem;
}

.ranking-panel-emoji {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.55rem;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.ranking-panel--lumi .ranking-panel-emoji {
    background: linear-gradient(145deg, rgba(155, 93, 229, 0.22), rgba(255, 255, 255, 0.85));
}

.ranking-panel--flik .ranking-panel-emoji {
    background: linear-gradient(145deg, rgba(255, 138, 61, 0.24), rgba(255, 255, 255, 0.85));
}

.ranking-panel h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.ranking-panel-sub {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.ranking-panel-cta {
    margin-top: auto;
    padding-top: 0.25rem;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: auto 4.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(31, 42, 68, 0.06);
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    animation: ranking-rise 0.55s ease both;
}

.ranking-row:nth-child(1) {
    animation-delay: 0.05s;
}
.ranking-row:nth-child(2) {
    animation-delay: 0.12s;
}
.ranking-row:nth-child(3) {
    animation-delay: 0.18s;
}
.ranking-row:nth-child(4) {
    animation-delay: 0.24s;
}
.ranking-row:nth-child(5) {
    animation-delay: 0.3s;
}
.ranking-row:nth-child(6) {
    animation-delay: 0.36s;
}

.ranking-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 42, 68, 0.1);
}

.ranking-row--leader {
    grid-template-columns: auto 6.25rem minmax(0, 1fr) auto;
    padding: 0.95rem 1rem;
    border-width: 3px;
    background:
        linear-gradient(135deg, rgba(255, 209, 102, 0.35), rgba(255, 255, 255, 0.92) 48%, rgba(255, 138, 61, 0.14));
    border-color: rgba(255, 177, 47, 0.55);
    box-shadow:
        0 14px 28px rgba(196, 120, 20, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ranking-board--lumi .ranking-row--leader {
    background:
        linear-gradient(135deg, rgba(212, 180, 255, 0.42), rgba(255, 255, 255, 0.94) 50%, rgba(155, 93, 229, 0.12));
    border-color: rgba(155, 93, 229, 0.4);
    box-shadow:
        0 14px 28px rgba(107, 47, 186, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ranking-board--flik .ranking-row--leader {
    background:
        linear-gradient(135deg, rgba(255, 209, 102, 0.4), rgba(255, 255, 255, 0.94) 50%, rgba(255, 138, 61, 0.16));
    border-color: rgba(255, 138, 61, 0.45);
}

.ranking-medal {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 2px rgba(31, 42, 68, 0.06);
    flex-shrink: 0;
}

.ranking-medal--gold {
    background: linear-gradient(145deg, #ffe08a, #ffb84d);
    box-shadow:
        0 6px 14px rgba(196, 120, 20, 0.22),
        inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.ranking-medal--silver {
    background: linear-gradient(145deg, #f2f4f8, #c9d0db);
    box-shadow:
        0 5px 12px rgba(90, 103, 133, 0.16),
        inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.ranking-medal--bronze {
    background: linear-gradient(145deg, #ffd2a8, #e08a4f);
    box-shadow:
        0 5px 12px rgba(176, 90, 30, 0.18),
        inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.ranking-medal-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.ranking-thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #f3f6ff;
    box-shadow:
        0 6px 14px rgba(31, 42, 68, 0.12),
        inset 0 0 0 2px rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

.ranking-row--leader .ranking-thumb {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 1.2rem;
}

.ranking-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-copy {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.ranking-crown {
    display: inline-flex;
    width: fit-content;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.55);
    color: #8a5a00;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ranking-board--lumi .ranking-crown {
    background: rgba(155, 93, 229, 0.18);
    color: #6b2fba;
}

.ranking-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.15;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row--leader .ranking-title {
    font-size: 1.35rem;
    white-space: normal;
}

.ranking-author {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-votes {
    display: grid;
    justify-items: center;
    gap: 0.05rem;
    min-width: 3.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 1rem;
    background: rgba(255, 248, 220, 0.95);
    border: 2px solid rgba(255, 209, 102, 0.65);
    color: var(--ink);
}

.ranking-votes-star {
    font-size: 0.95rem;
    line-height: 1;
}

.ranking-votes strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
}

.ranking-votes-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ranking-row--leader .ranking-votes {
    background: linear-gradient(160deg, #ffe08a, #ffd166);
    border-color: rgba(196, 120, 20, 0.35);
    min-width: 4rem;
    padding: 0.55rem 0.65rem;
}

.ranking-row--leader .ranking-votes strong {
    font-size: 1.35rem;
}

@keyframes ranking-rise {
    from {
        opacity: 0;
        transform: translateY(0.7rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .ranking-row,
    .ranking-row--leader {
        grid-template-columns: auto 3.75rem minmax(0, 1fr);
        grid-template-areas:
            "medal thumb copy"
            "votes votes votes";
        gap: 0.65rem 0.7rem;
    }

    .ranking-medal {
        grid-area: medal;
    }

    .ranking-thumb,
    .ranking-row--leader .ranking-thumb {
        grid-area: thumb;
        width: 3.75rem;
        height: 3.75rem;
    }

    .ranking-copy {
        grid-area: copy;
    }

    .ranking-votes,
    .ranking-row--leader .ranking-votes {
        grid-area: votes;
        width: 100%;
        min-width: 0;
        grid-template-columns: auto auto auto;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.65rem;
    }

    .ranking-votes-label {
        text-transform: none;
        font-size: 0.82rem;
        letter-spacing: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ranking-row {
        animation: none;
    }
}

.section.author-section {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
    padding-block: 0.5rem 0.25rem;
    padding-inline: 1rem;
}

.author-row {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.35fr);
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}

.author-welcome,
.author-video-card {
    min-width: 0;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(255, 209, 102, 0.22),
        rgba(61, 158, 255, 0.14) 45%,
        rgba(155, 93, 229, 0.16)
    );
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 0.35rem);
    box-shadow: var(--shadow);
}

.author-welcome {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 1.15rem 1.35rem;
    align-items: center;
}

.author-video-card {
    display: flex;
    padding: 0.85rem;
}

.author-video-frame {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 240px;
    overflow: hidden;
    border-radius: calc(var(--radius) + 0.1rem);
    background: #0f172a;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.author-video-frame:has([data-hero-video-youtube]) {
    aspect-ratio: 16 / 9;
}

.author-video-player {
    display: block;
    width: 100%;
    height: auto;
    min-height: 240px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #0f172a;
    border: 0;
}

.author-video-frame:has([data-hero-video-youtube]) .author-video-player {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

.author-video-frame .hero-video-youtube {
    inset: 0;
    max-height: none;
    min-height: 0;
}

.author-video-card .hero-video-logo-sticker {
    top: 1rem;
    left: 1rem;
    width: min(38vw, 150px);
    padding: 0.65rem 1rem 0.55rem;
}

.author-video-card .hero-video-play-center {
    width: 74px;
    height: 74px;
}

.author-video-card .hero-video-play-center-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.author-video-card .hero-video-controls {
    right: 0.75rem;
    bottom: 0.75rem;
}

.author-video-frame:fullscreen,
.author-video-frame:-webkit-full-screen {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    box-shadow: none;
    border-radius: 0;
}

.author-video-frame:fullscreen .author-video-player,
.author-video-frame:-webkit-full-screen .author-video-player,
.author-video-frame:fullscreen .hero-video-youtube,
.author-video-frame:-webkit-full-screen .hero-video-youtube {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    inset: 0;
}

.author-video-frame:fullscreen .hero-video-controls,
.author-video-frame:-webkit-full-screen .hero-video-controls {
    right: 1.25rem;
    bottom: 1.25rem;
}

.author-avatar {
    margin: 0;
    justify-self: center;
    width: min(100%, 180px);
}

.author-avatar img {
    display: block;
    width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 1.6rem;
    box-shadow: 0 10px 24px rgba(31, 42, 68, 0.12);
    animation: floaty 6.5s ease-in-out infinite;
}

.author-copy {
    min-width: 0;
}

.author-eyebrow {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--orange);
}

.author-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin: 0 0 0.65rem;
    line-height: 1.15;
}

.author-copy p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    max-width: none;
}

.author-copy p strong {
    color: var(--ink);
}

.author-copy .cta-row {
    margin-top: 1rem;
}

.section.contact-section {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
    padding-block: 0.75rem 1.5rem;
    padding-inline: 1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.35fr);
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}

.contact-visual {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.85rem;
    margin: 0;
    min-height: 100%;
    padding: 1.35rem 1.2rem 1.1rem;
    border-radius: calc(var(--radius) + 0.35rem);
    border: 3px solid rgba(255, 255, 255, 0.95);
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 209, 102, 0.7), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(255, 92, 168, 0.42), transparent 38%),
        radial-gradient(circle at 70% 78%, rgba(61, 158, 255, 0.45), transparent 42%),
        radial-gradient(circle at 24% 78%, rgba(126, 217, 87, 0.38), transparent 36%),
        linear-gradient(145deg, #ffe8a8 0%, #ffd1e8 42%, #c9e7ff 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-visual-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), transparent 48%),
        repeating-linear-gradient(
            -18deg,
            transparent 0 18px,
            rgba(255, 255, 255, 0.12) 18px 20px
        );
    pointer-events: none;
    animation: contact-glow 8s ease-in-out infinite;
}

.contact-visual-copy {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 26rem;
}

.contact-visual-eyebrow {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--violet);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-visual-text {
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.contact-visual-text strong {
    color: var(--flik);
}

.contact-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 14px 24px rgba(31, 42, 68, 0.18));
    animation: floaty 6.5s ease-in-out infinite;
}

.panel.form-panel.contact-form-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    height: 100%;
}

.contact-form .form-fieldset {
    margin-bottom: 1rem;
}

.contact-form [data-contact-status] {
    margin: 0 0 1rem;
}

@keyframes contact-glow {
    0%,
    100% {
        opacity: 0.85;
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate3d(0, -1.5%, 0) scale(1.03);
    }
}

.books-marquee-section {
    overflow: hidden;
}

.books-all-link {
    margin-top: 0.75rem !important;
}

.books-all-link a {
    font-weight: 800;
    color: var(--flik);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.books-all-link a:hover {
    color: var(--lumi);
}

.books-marquee-wrap {
    position: relative;
}

.books-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}

.books-marquee.is-drag-enabled {
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.books-marquee.is-drag-enabled.is-dragging {
    cursor: grabbing;
}

.books-marquee.is-dragging .book-marquee-card:hover {
    transform: none;
}

.books-marquee.is-drag-enabled .book-marquee-card,
.books-marquee.is-drag-enabled .book-marquee-card img {
    -webkit-user-drag: none;
    user-select: none;
}

.books-marquee-track {
    display: flex;
    width: max-content;
    animation: books-marquee-scroll 42s linear infinite;
}

.books-marquee.is-drag-enabled .books-marquee-track {
    animation: none;
    will-change: transform;
}

.books-marquee:hover .books-marquee-track,
.books-marquee.is-paused .books-marquee-track {
    animation-play-state: paused;
}

.books-pause-btn {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.books-pause-btn:hover {
    transform: translateY(-1px);
}

.books-pause-btn:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.books-pause-icon {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.books-pause-icon[hidden] {
    display: none !important;
}

.motion-controls {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.motion-toggle {
    min-width: 7.5rem;
}

.books-marquee-group {
    display: flex;
    gap: 1rem;
    padding-inline: 0.5rem;
}

.book-marquee-card {
    position: relative;
    flex: 0 0 auto;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    border-top: 6px solid var(--accent, var(--orange));
    transition: transform 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.book-marquee-card:hover {
    transform: translateY(-4px);
}

.book-marquee-card .book-cover-image {
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
}

.book-marquee-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    color: var(--ink);
}

@keyframes books-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero-character {
    margin: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.hero-character img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.hero-character figcaption {
    padding: 0.75rem 0.9rem 1rem;
    text-align: center;
}

.hero-character figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.1;
}

.hero-character figcaption span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-character.flik {
    animation: bounce 5s ease-in-out infinite;
}

.hero-character.lumi {
    animation: bounce 5s ease-in-out 0.5s infinite;
}

.hero-and {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--violet);
    align-self: center;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #c2410c, #be123c);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: #fff;
}

.btn-green {
    background: linear-gradient(135deg, #15803d, #166534);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(31, 42, 68, 0.12);
    box-shadow: none;
}

.btn-icon {
    width: 2.6rem;
    height: 2.6rem;
    min-width: 2.6rem;
    padding: 0;
    border-radius: 999px;
}

.btn-icon svg {
    display: block;
    flex-shrink: 0;
}

.header-actions .btn-ghost {
    background: var(--yellow);
    border-color: transparent;
    color: var(--ink);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.header-actions .btn-ghost.active,
.header-actions .btn-ghost:hover {
    background: #ffc94a;
}

.btn-vote {
    background: var(--yellow);
    color: var(--ink);
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
}

.btn-vote.btn-icon {
    padding: 0;
}

.vote-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.15;
    background: rgba(255, 209, 102, 0.5);
    color: #7a5b00;
}

.vote-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    min-width: 2.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    line-height: 0;
}

.vote-status-icon svg {
    display: block;
    flex-shrink: 0;
}

.vote-status-icon.is-ok {
    background: rgba(46, 160, 90, 0.16);
    border-color: rgba(46, 160, 90, 0.45);
    color: #1f7a3f;
}

.vote-status-icon.is-blocked {
    background: rgba(180, 60, 60, 0.12);
    border-color: rgba(180, 60, 60, 0.35);
    color: #a33a3a;
}

.vote-info-trigger {
    color: var(--ink);
}

.vote-info-popover {
    inset: unset;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 1rem 1.1rem;
    border: 2px solid rgba(31, 42, 68, 0.14);
    border-radius: 1rem;
    background: #fffdf8;
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(31, 42, 68, 0.18);
}

.vote-info-popover p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 650;
}

.vote-info-popover-speakers {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a9d8f;
}

.vote-info-popover::backdrop {
    background: rgba(31, 42, 68, 0.28);
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn.btn-vote:disabled,
.btn.btn-vote.is-disabled {
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.15;
    box-shadow: none;
    opacity: 0.72;
}

.section {
    margin: 2.5rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-head h1,
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 0.4rem;
}

.book-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0.75rem 0 0.35rem;
    color: var(--ink);
}

.section-head p {
    margin: 0 auto;
    max-width: 40rem;
    color: var(--muted);
}

.panel {
    background: var(--surface);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.contest-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.5rem;
    color: white;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.contest-card:hover {
    transform: translateY(-4px) rotate(-0.4deg);
}

.contest-card.flik {
    background: linear-gradient(145deg, #ff9a4d, #ff4d6d 70%);
}

.contest-card.lumi {
    background: linear-gradient(145deg, #b57cff, #7a5cff 70%);
}

.contest-card-with-image {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.contest-card-with-image img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.contest-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.6rem;
}

.contest-share-btn--detail {
    margin-top: 0.2rem;
}

.contest-detail-grid {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 1.4rem;
    align-items: start;
}

.contest-detail-cover {
    width: 100%;
    border-radius: 1.2rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .contest-detail-grid {
        grid-template-columns: 1fr;
    }

    .contest-detail-cover {
        max-width: 260px;
        margin-inline: auto;
    }
}

.contest-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 0.4rem;
}

.contest-card-head h3 {
    margin: 0;
    flex: 1 1 auto;
}

.contest-share-btn {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.contest-share-btn:hover,
.contest-share-btn:focus-visible {
    background: #fff;
    transform: translateY(-1px);
}

.contest-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 0.4rem;
}

.contest-card p {
    margin: 0 0 1rem;
    opacity: 0.95;
}

.contest-duration {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 0.95rem;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.contest-duration-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.contest-duration-range {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}

.contest-duration-remaining {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.15rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(31, 42, 68, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.contest-period-inline {
    margin: 0.35rem 0 0 !important;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

/* Bottoni sui card colorati: contrasto alto (no testo bianco su fondo chiaro) */
.contest-card .btn-ghost {
    background: #ffffff;
    color: #1f2a44;
    border: 2px solid transparent;
    box-shadow: 0 6px 0 rgba(31, 42, 68, 0.18);
    font-weight: 800;
}

.contest-card .btn-ghost:hover {
    background: #fff8e8;
    color: #1f2a44;
    transform: translateY(-2px);
}

.contest-card .btn-secondary {
    background: #1f2a44;
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
    font-weight: 800;
}

.contest-card .btn-secondary:hover {
    background: #162033;
    color: #ffffff;
}

.contest-card .cta-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
}

.contest-card .cta-row .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
}

.contest-card .contest-rules-link {
    margin: 0.75rem 0 0;
    opacity: 0.95;
}

.contest-card .contest-rules-link a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.contest-card .contest-rules-link a:hover {
    color: #fff8e8;
}

.prize-list {
    display: grid;
    gap: 0.85rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: min(720px, 100%);
}

.prize-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 2px solid rgba(31, 42, 68, 0.12);
    border-left: 5px solid var(--violet);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 8px 20px rgba(31, 42, 68, 0.1);
}

.prize-list li.lumi {
    border-left-color: var(--lumi);
    background: linear-gradient(90deg, rgba(155, 93, 229, 0.08), #fff 28%);
}

.prize-list li.flik {
    border-left-color: var(--flik);
    background: linear-gradient(90deg, rgba(255, 138, 61, 0.1), #fff 28%);
}

.prize-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.form-panel {
    max-width: 520px;
    margin: 0 auto;
}

.auth-logo {
    display: block;
    margin: 0 auto 1.4rem;
    max-width: 12rem;
    height: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 3px solid rgba(31, 42, 68, 0.12);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    font: inherit;
    background: white;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
}

.help {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.required-mark {
    color: #c0392b;
    font-weight: 800;
}

.field-error {
    margin: 0.35rem 0 0;
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: 700;
}

.password-rules {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    transition: color 0.15s ease;
}

.password-rules li::before {
    content: "○";
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1;
}

.password-rules li.is-valid {
    color: #1f7a3a;
}

.password-rules li.is-valid::before {
    content: "✓";
    color: #1f7a3a;
}

.password-rules li.is-invalid {
    color: #c0392b;
}

.password-rules li.is-invalid::before {
    content: "✗";
    color: #c0392b;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.form-fieldset {
    border: 2px dashed rgba(255, 138, 61, 0.35);
    border-radius: 1.1rem;
    padding: 1rem 1rem 0.2rem;
    margin: 0 0 1.1rem;
}

.form-fieldset legend {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0 0.4rem;
    color: var(--violet);
}

.consent-box {
    background: rgba(255, 209, 102, 0.18);
}

.check-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}

.check-row input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.check-row.is-invalid {
    color: #c0392b;
}

.check-row.is-invalid input {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

.consent-link {
    display: inline;
    color: #6b2fba;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    background: linear-gradient(
        135deg,
        rgba(255, 209, 102, 0.55),
        rgba(181, 124, 255, 0.28)
    );
    padding: 0.1rem 0.35rem;
    border-radius: 0.45rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.consent-link:hover,
.consent-link:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    text-decoration-color: #fff;
    outline: none;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    margin-bottom: 0.65rem;
}

.captcha-image {
    flex: 0 0 auto;
    width: min(42%, 180px);
    height: auto;
    border-radius: 0.85rem;
    border: 3px solid rgba(31, 42, 68, 0.12);
    background: #e8fffb;
    box-shadow: var(--shadow);
}

.captcha-group .captcha-row .captcha-answer {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

.captcha-refresh {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-radius: 999px;
}

.captcha-refresh svg {
    display: block;
}

@media (max-width: 560px) {
    .captcha-row {
        flex-wrap: wrap;
    }

    .captcha-image {
        width: min(calc(100% - 3.4rem), 180px);
    }

    .captcha-refresh {
        order: 2;
    }

    .captcha-group .captcha-row .captcha-answer {
        flex: 1 1 100%;
        order: 3;
    }
}

.legal-page .section-head,
.legal-page .panel,
.legal-panel {
    opacity: 1;
    transform: none;
}

.legal-panel h3 {
    font-family: var(--font-display);
    margin: 1.4rem 0 0.5rem;
}

.legal-panel h3:first-child {
    margin-top: 0;
}

.legal-panel ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.legal-updated {
    margin-top: 1.5rem;
}

.hero-title-glow {
    background: linear-gradient(
        120deg,
        var(--orange),
        var(--pink),
        var(--violet),
        var(--blue)
    );
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease-in-out infinite;
}

.btn-bounce:hover {
    animation: btn-wiggle 0.55s ease;
}

/* Niente float continuo sulle card con testo: resta solo l’ingresso reveal. */
.step-animated {
    animation: none;
}

.filters-stack {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.filters-stack .filters {
    margin-bottom: 0;
}

.filters-sort {
    gap: 0.45rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid transparent;
    font-weight: 800;
}

.chip.active {
    border-color: var(--ink);
    background: var(--yellow);
}

.chip-sort {
    font-size: 0.92rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(31, 42, 68, 0.12);
}

.chip-sort.active {
    border-color: rgba(31, 42, 68, 0.55);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(31, 42, 68, 0.08);
}

.drawing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 300px));
    justify-content: center;
    gap: 1.15rem;
}

.drawing-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.drawing-card-moderation {
    border-color: rgba(138, 109, 0, 0.35);
    box-shadow: 0 10px 24px rgba(138, 109, 0, 0.12);
}

.drawing-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.drawing-media {
    aspect-ratio: 1;
    background: #f3f6ff;
    overflow: hidden;
}

.drawing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawing-body {
    padding: 0.95rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.drawing-body h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.badge-flik {
    background: rgba(255, 138, 61, 0.2);
    color: #c45a10;
}

.badge-lumi {
    background: rgba(155, 93, 229, 0.2);
    color: #6b2fba;
}

.status-pill {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-pending {
    background: #fff3c4;
    color: #8a6d00;
}
.status-approved {
    background: #dff8d2;
    color: #2f7a14;
}
.status-rejected {
    background: #ffd5de;
    color: #a11636;
}

.participant-drawings {
    display: grid;
    gap: 1rem;
}

.participant-drawing-card {
    display: grid;
    grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0.85rem;
    border-radius: calc(var(--radius) + 0.15rem);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 42, 68, 0.08);
}

.participant-drawing-media {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(31, 42, 68, 0.06);
}

.participant-drawing-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.participant-drawing-body h3 {
    margin: 0.45rem 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .participant-drawing-card {
        grid-template-columns: 1fr;
    }

    .participant-drawing-media {
        width: min(100%, 12rem);
    }
}

.vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.votes {
    font-weight: 800;
    color: var(--violet);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 220px));
    justify-content: center;
    gap: 1.15rem;
}

.book-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.4rem;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    border-top: 8px solid var(--accent, var(--orange));
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 260px;
}

.book-card-compact {
    min-height: 0;
    padding: 0.85rem;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.book-card-stretch-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.book-card-compact:has(.book-card-stretch-link) {
    cursor: pointer;
}

.book-card-compact:has(.book-card-stretch-link:hover),
.book-card-compact:has(.book-card-stretch-link:focus-visible) {
    transform: translateY(-3px);
}

.book-card-stretch-link:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.book-card-compact a:not(.book-card-stretch-link),
.book-card-compact .btn {
    position: relative;
    z-index: 2;
}

.book-card-compact .btn {
    width: 100%;
}

.book-cover {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: color-mix(in srgb, var(--accent, var(--orange)) 22%, white);
}

.book-cover-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 1rem;
    overflow: hidden;
    background: #f3f0ff;
}

.book-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-contest-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    left: auto;
    bottom: auto;
    z-index: 2;
    pointer-events: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: calc(100% - 0.7rem);
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: #2f9e44;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(31, 42, 68, 0.2);
}

.book-contest-note {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.book-contest-note a {
    color: var(--violet);
}

.book-contest-note a:hover {
    color: var(--orange);
}

.book-marquee-card .book-cover-image {
    position: relative;
}

.book-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.book-rating:hover .book-rating-score {
    color: #9b5de5;
}

.book-stars {
    color: #de7921;
    letter-spacing: 0.04em;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    gap: 1px;
}

.book-stars .star-empty {
    color: #d5d9d9;
}

.book-stars .star-half {
    background: linear-gradient(90deg, #de7921 50%, #d5d9d9 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.book-rating-score {
    font-size: 0.95rem;
}

.book-rating-count {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.book-card h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.35rem;
}

.book-card p {
    margin: 0;
    color: var(--muted);
    flex: 1;
}

.book-card.featured {
    outline: 3px dashed
        color-mix(in srgb, var(--accent, var(--orange)) 55%, white);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state .emoji {
    font-size: 3rem;
}

.contest-empty-state {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.contest-empty-image {
    width: min(100%, 280px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.ranking-panel .contest-empty-image {
    width: min(100%, 220px);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: step;
    justify-content: center;
}

.steps-flow {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1.3rem;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.step h3 {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    background: rgba(31, 42, 68, 0.94);
    color: #f7f4ff;
    padding: 2.6rem 0 2rem;
}

.footer-inner {
    display: grid;
    gap: 1.75rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(12rem, 1.15fr) minmax(0, 2fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.footer-brand {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    text-align: left;
    width: max-content;
    max-width: 100%;
}

.footer-brand p,
.footer-note {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.footer-brand p {
    max-width: 18rem;
    line-height: 1.5;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.footer-col {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    justify-items: start;
}

.footer-col-title {
    margin: 0 0 0.15rem;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.35;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--yellow);
}

.footer-contact {
    margin: 0;
    font-weight: 700;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    line-height: 1.2;
    word-break: break-word;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #fff;
}

.footer-contact-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    display: block;
}

.footer-bottom {
    display: grid;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.footer-bottom .footer-social {
    flex-shrink: 0;
    margin-left: auto;
}

.footer-note {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.footer-note-sep {
    opacity: 0.7;
}

.footer-supervision {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
    font-weight: inherit;
    line-height: 1.4;
}

.footer-supervision-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.footer-supervision-icon svg {
    display: block;
}

.footer-credit {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
    min-width: 0;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 700;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--yellow);
}

.reveal {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}
.reveal-delay-2 {
    transition-delay: 0.16s;
}
.reveal-delay-3 {
    transition-delay: 0.24s;
}
.reveal-delay-4 {
    transition-delay: 0.32s;
}

.revealed {
    opacity: 1;
    transform: none;
}

.cta-row .btn {
    animation: gentle-pop 0.7s ease both;
}

.cta-row .btn:nth-child(2) {
    animation-delay: 0.08s;
}
.cta-row .btn:nth-child(3) {
    animation-delay: 0.16s;
}

.step,
.panel {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.revealed.step:hover,
.revealed.panel:hover {
    transform: translateY(-1px);
}

.page-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(255, 209, 102, 0.18),
            transparent 22%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(61, 158, 255, 0.14),
            transparent 24%
        );
    animation: color-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.01);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes soft-wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-0.6deg);
    }
    75% {
        transform: rotate(0.6deg);
    }
}

@keyframes sticker-wiggle {
    0%,
    100% {
        transform: rotate(-7deg);
    }
    25% {
        transform: rotate(-8.2deg);
    }
    75% {
        transform: rotate(-5.8deg);
    }
}

@keyframes gentle-pop {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes color-drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 2%, 0) scale(1.05);
    }
}

@keyframes float-orbit {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(12px, -18px, 0) scale(1.08);
    }
}

@keyframes sparkle-twinkle {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.7) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(18deg);
    }
}

@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes btn-wiggle {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-2deg) scale(1.03);
    }
    75% {
        transform: rotate(2deg) scale(1.03);
    }
}

@media (max-width: 900px) {
    .hero,
    .grid-2,
    .grid-3,
    .steps {
        grid-template-columns: 1fr;
    }

    .drawing-grid,
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    }

    .hero {
        min-height: auto;
    }

    .hero-video-player {
        max-height: min(70vh, 640px);
        object-position: center 26%;
    }

    .hero-video-logo-sticker {
        top: 1.35rem;
        left: 1.1rem;
        width: min(34vw, 112px);
        padding: 0.45rem 0.7rem 0.4rem;
        border-width: 2px;
        border-radius: 999px;
    }

    .hero-video-controls {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .hero-duo {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-and {
        transform: rotate(90deg);
    }

    .hero-feature {
        max-width: 420px;
        margin-inline: auto;
    }

    .contest-card-with-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contest-card-with-image img {
        margin-inline: auto;
    }

    .contest-card .cta-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contest-card .cta-row .btn {
        flex: 1 1 auto;
        white-space: normal;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .brand-hero {
        margin-inline: auto;
    }

    .hero-copy p {
        margin-inline: auto;
    }

    .author-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
        width: 100%;
        margin-inline: auto;
    }

    .author-welcome,
    .author-video-card {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .author-welcome {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 1.35rem 1.1rem 1.5rem;
    }

    .author-video-card {
        padding: 0.75rem;
    }

    .author-video-player,
    .author-video-frame .hero-video-youtube {
        min-height: 200px;
    }

    .author-video-card .hero-video-logo-sticker {
        top: 0.75rem;
        left: 0.75rem;
        width: min(42vw, 120px);
        padding: 0.5rem 0.75rem 0.45rem;
    }

    .author-video-card .hero-video-play-center {
        width: 64px;
        height: 64px;
    }

    .author-video-card .hero-video-controls {
        right: 0.55rem;
        bottom: 0.55rem;
        gap: 0.4rem;
    }

    .author-video-card .hero-video-btn {
        width: 40px;
        height: 40px;
    }

    .author-avatar {
        margin-inline: auto;
        width: min(100%, 220px);
    }

    .author-copy {
        width: 100%;
    }

    .author-copy p {
        margin-inline: auto;
    }

    .author-copy .cta-row {
        justify-content: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        justify-items: stretch;
        width: 100%;
        margin-inline: auto;
    }

    .contact-visual,
    .panel.form-panel.contact-form-panel {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .contact-visual {
        min-height: 240px;
        padding: 1.1rem;
    }

    .contact-visual img {
        width: min(100%, 400px);
        margin-inline: auto;
    }

    .cta-row {
        justify-content: center;
    }

    .book-marquee-card {
        width: 140px;
    }

    .books-marquee-track {
        animation-duration: 32s;
    }

    .site-header {
        position: sticky;
    }
}

@media (max-width: 1100px) {
    .header-menus {
        display: none;
        position: absolute;
        top: calc(100% + 2px);
        left: 1rem;
        right: 1rem;
        background: rgba(255, 253, 248, 0.98);
        border: 3px solid rgba(255, 138, 61, 0.25);
        border-radius: 1.2rem;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        box-shadow: var(--shadow);
        z-index: 45;
    }

    .header-menus.open {
        display: flex;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        flex-wrap: nowrap;
        gap: 0.35rem;
        position: static;
        left: auto;
        transform: none;
        max-width: none;
    }

    .main-nav a,
    .main-nav .nav-group-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-group-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-submenu {
        position: static;
        box-shadow: none;
        margin: 0.2rem 0 0.35rem;
        min-width: 0;
    }

    .nav-group:not([open]) > .nav-submenu {
        display: none;
    }

    .header-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: stretch;
        flex-wrap: nowrap;
        gap: 0.65rem;
        margin-left: 0;
    }

    .header-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 0.85rem;
    }

    .header-actions--auth {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
    }

    .header-actions--auth .nav-user {
        max-width: none;
        width: 100%;
        padding: 0.15rem 0.35rem 0.35rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .header-actions--auth .logout-form {
        display: block;
        width: 100%;
        margin-top: 0.15rem;
        padding-top: 0.85rem;
        border-top: 2px solid rgba(255, 138, 61, 0.28);
    }

    .header-actions--auth .logout-form .btn {
        width: 100%;
        flex: none;
    }

    .header-social--desktop {
        display: none;
    }

    .header-social--bar {
        display: inline-flex;
    }

    .header-end {
        display: inline-flex;
    }

    .nav-toggle {
        display: grid;
    }
}

.app-modal {
    border: none;
    border-radius: 1.2rem;
    padding: 0;
    width: min(28rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    box-shadow: var(--shadow);
    background: #fffaf1;
    color: inherit;
}

.app-modal::backdrop {
    background: rgba(31, 42, 68, 0.45);
}

.app-modal-panel {
    padding: 1.25rem 1.35rem 1.4rem;
}

.app-modal-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.app-modal-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--ink);
}

.app-modal-message {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.app-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

@media (max-width: 520px) {
    .app-modal-actions {
        flex-direction: column-reverse;
    }

    .app-modal-actions .btn {
        width: 100%;
    }
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    max-width: 52rem;
    margin-inline: auto;
    background: rgba(255, 253, 248, 0.97);
    border: 3px solid rgba(212, 165, 116, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 1rem 1.1rem;
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease;
}

.cookie-banner.is-hiding {
    transform: translateY(1.25rem);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.cookie-banner-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    background: linear-gradient(
        145deg,
        rgba(255, 209, 102, 0.55),
        rgba(232, 188, 138, 0.45)
    );
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.cookie-banner-icon svg {
    display: block;
}

.cookie-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-banner-title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.cookie-banner-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.cookie-banner-copy a {
    color: #6b2fba;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cookie-banner-actions {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-brand {
        justify-items: center;
        text-align: center;
        margin-inline: auto;
    }

    .footer-brand p {
        max-width: 22rem;
        margin-inline: auto;
    }

    .footer-columns {
        width: 100%;
        max-width: 36rem;
        margin-inline: auto;
    }
}

@media (max-width: 720px) {
    .site-footer {
        padding: 2rem 0 2.5rem;
    }

    .footer-inner {
        gap: 1.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 22rem;
    }

    .footer-col {
        justify-items: center;
        text-align: center;
        padding: 1.1rem 0;
    }

    .footer-col + .footer-col {
        border-top: 1px solid rgba(255, 209, 102, 0.28);
    }

    .footer-col:first-child {
        padding-top: 0;
    }

    .footer-col:last-child {
        grid-column: auto;
        padding-bottom: 0;
    }

    .footer-col-title {
        font-size: 0.74rem;
    }

    .footer-col a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        gap: 1rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .footer-bottom .footer-social {
        margin-left: 0;
        order: -1;
    }

    .footer-note {
        flex-wrap: wrap;
        white-space: normal;
        justify-content: center;
        padding-inline: 0.35rem;
        line-height: 1.45;
        font-size: 0.9rem;
    }

    .footer-credit {
        text-align: center;
        margin-inline: auto;
        max-width: 18rem;
        padding-inline: 0.5rem;
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .cookie-banner-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .books-marquee-track {
        animation: none !important;
        transform: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .books-marquee-group[aria-hidden="true"] {
        display: none;
    }
}

.maintenance-page,
.error-page {
    min-height: 100vh;
}

.maintenance-shell,
.error-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
}

.maintenance-panel,
.error-panel {
    width: min(100%, 52rem);
    text-align: center;
    padding: 1rem 0.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.maintenance-logo,
.error-logo {
    display: block;
    margin: 0 auto 1.6rem;
    max-width: 12rem;
    height: auto;
}

.error-logo-link {
    display: inline-block;
}

.maintenance-body,
.error-body {
    display: grid;
    grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
    gap: 1.6rem 2rem;
    align-items: center;
    text-align: left;
}

.maintenance-avatar,
.error-avatar {
    margin: 0;
    width: 100%;
    justify-self: center;
}

.maintenance-avatar img,
.error-avatar img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: floaty 6.5s ease-in-out infinite;
}

.maintenance-copy,
.error-copy {
    min-width: 0;
}

.maintenance-eyebrow,
.error-eyebrow {
    margin: 0 0 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--flik);
    font-size: 0.85rem;
}

.error-code {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 138, 61, 0.85);
}

.maintenance-copy h1,
.error-copy h1 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.15;
    color: var(--ink);
}

.maintenance-message,
.error-message {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.maintenance-hint,
.error-hint {
    margin: 0 0 1.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.error-copy .cta-row {
    margin-top: 0.25rem;
    justify-content: flex-start;
}

@media (max-width: 700px) {
    .maintenance-body,
    .error-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    .maintenance-avatar,
    .error-avatar {
        width: min(100%, 12rem);
    }

    .error-copy .cta-row {
        justify-content: center;
    }
}

.faq-panel {
    padding: 0.35rem 0.85rem 0.85rem;
}

.faq-item {
    border-bottom: 2px solid rgba(31, 42, 68, 0.08);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.35rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(61, 158, 255, 0.14);
    color: var(--blue, #3d9eff);
    font-weight: 800;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 0.35rem 1rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.drawing-share {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.drawing-share-media {
    border-radius: 1.35rem;
    overflow: hidden;
    background: #f3f6ff;
    box-shadow: var(--shadow);
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.drawing-share-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.drawing-share-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.drawing-share-body h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.15;
}

.share-code-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.share-code-form .field {
    flex: 1 1 12rem;
    margin: 0;
}

.share-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.45rem;
}

.share-copy-row code {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(61, 158, 255, 0.12);
    color: var(--ink);
}

.share-copy-row .share-link-text {
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--muted);
    max-width: min(100%, 22rem);
}

@media (max-width: 800px) {
    .drawing-share {
        grid-template-columns: 1fr;
    }
}
