/* ==========================================================================
   Beduna.dk – hyggelig pastel-skov med Hyggefis
   ========================================================================== */

@font-face {
    font-family: 'Fredoka';
    src: url('../fonts/fredoka-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

:root {
    --ink: #2a2f6b;
    --ink-soft: #5b6096;
    --violet: #7c3aed;
    --violet-soft: #a78bfa;
    --pink: #db2777;
    --pink-soft: #f9a8d4;
    --mint: #5fd3b3;
    --teal: #0f9f8a;

    --card: rgba(255, 255, 255, .82);
    --card-solid: rgba(255, 255, 255, .92);
    --line: rgba(255, 255, 255, .95);

    --grad: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 50%, #99f6e4 100%);
    --grad-btn: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%);
    --grad-text: linear-gradient(95deg, #7c3aed 0%, #a855f7 30%, #d946ef 60%, #ec4899 100%);

    --shadow-sm: 0 4px 14px -8px rgba(76, 60, 160, .35);
    --shadow: 0 14px 34px -16px rgba(76, 60, 160, .45), 0 2px 6px rgba(76, 60, 160, .06);
    --shadow-lg: 0 24px 50px -20px rgba(76, 60, 160, .55);

    --r-xl: 32px;
    --r-lg: 24px;
    --r-md: 18px;

    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --font-head: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
    --font-body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;

    --nav-space: calc(96px + env(safe-area-inset-bottom));

    interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: #f1e9ff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: #f9a8d4; color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xs { width: 1em; height: 1em; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    translate: 0 -150%;
    transition: translate .3s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pink);
}

.lead { font-size: 1.08rem; color: var(--ink-soft); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.tag--ad { background: #fff4c7; color: #7a4f00; border: 1px solid #fde68a; }

/* ---------- Scenery: sky, clouds, sparkles & forest ---------- */

.scenery {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
    transform: translateZ(0);
    background: linear-gradient(180deg, #ece3ff 0%, #f8e5f6 38%, #e5efff 68%, #dcf6ec 100%);
}

.scenery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/watercolor.webp') center / cover;
    opacity: .18;
}

.blob {
    position: absolute;
    border-radius: 50%;
}
.blob--1 { width: 70vmax; height: 70vmax; top: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(196, 181, 253, .75), transparent 62%); }
.blob--2 { width: 60vmax; height: 60vmax; top: 5vh; right: -28vmax; background: radial-gradient(circle, rgba(249, 168, 212, .6), transparent 62%); }
.blob--3 { width: 55vmax; height: 55vmax; bottom: -25vmax; left: 5vw; background: radial-gradient(circle, rgba(153, 246, 228, .55), transparent 62%); }

.cloud {
    position: absolute;
    left: 0;
    width: 170px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    opacity: .8;
    filter: drop-shadow(0 8px 14px rgba(150, 130, 220, .18));
    animation: drift 120s linear infinite;
}
.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #fff;
}
.cloud::before { width: 78px; height: 78px; top: -38px; left: 26px; }
.cloud::after { width: 58px; height: 58px; top: -26px; left: 86px; }
.cloud--1 { top: 9vh; }
.cloud--2 { top: 26vh; scale: .65; opacity: .7; animation-duration: 150s; animation-delay: -70s; }
.cloud--3 { top: 4vh; scale: .45; opacity: .65; animation-duration: 95s; animation-delay: -40s; }

@keyframes drift {
    from { translate: -240px 0; }
    to { translate: calc(100vw + 240px) 0; }
}

.sparkles span {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    opacity: 0;
    animation: twinkle 3.6s ease-in-out infinite;
}
.sparkles span:nth-child(1) { top: 12%; left: 6%; }
.sparkles span:nth-child(2) { top: 22%; left: 88%; width: 18px; height: 18px; background: #f5d0fe; animation-delay: -.6s; }
.sparkles span:nth-child(3) { top: 40%; left: 14%; width: 10px; height: 10px; background: #a5f3fc; animation-delay: -1.2s; }
.sparkles span:nth-child(4) { top: 8%; left: 48%; width: 12px; height: 12px; animation-delay: -1.8s; }
.sparkles span:nth-child(5) { top: 56%; left: 92%; background: #fde68a; animation-delay: -2.4s; }
.sparkles span:nth-child(6) { top: 64%; left: 4%; width: 18px; height: 18px; background: #ddd6fe; animation-delay: -3s; }
.sparkles span:nth-child(7) { top: 30%; left: 70%; width: 10px; height: 10px; animation-delay: -.9s; }
.sparkles span:nth-child(8) { top: 72%; left: 60%; width: 12px; height: 12px; background: #fbcfe8; animation-delay: -2.1s; }
.sparkles span:nth-child(9) { top: 18%; left: 30%; width: 9px; height: 9px; background: #a5f3fc; animation-delay: -2.8s; }
.sparkles span:nth-child(10) { top: 48%; left: 40%; width: 8px; height: 8px; animation-delay: -1.5s; }
.sparkles span:nth-child(11) { top: 36%; left: 96%; width: 11px; height: 11px; background: #ddd6fe; animation-delay: -.3s; }
.sparkles span:nth-child(12) { top: 5%; left: 78%; width: 13px; height: 13px; background: #fbcfe8; animation-delay: -3.3s; }
.sparkles span:nth-child(13) { top: 60%; left: 24%; width: 9px; height: 9px; background: #fde68a; animation-delay: -1.1s; }
.sparkles span:nth-child(14) { top: 82%; left: 84%; width: 14px; height: 14px; animation-delay: -2.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
    50% { opacity: .95; transform: scale(1) rotate(45deg); }
}

.forest {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(150px, 27vh, 320px);
    background: url('../img/forest.svg') center bottom / auto 100% repeat-x;
}

/* ---------- Header & navigation ---------- */

.site-header {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(100% - 24px, 440px);
    translate: -50% 0;
}

.brand { display: none; }

.site-nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1.5px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 36px -14px rgba(60, 40, 140, .5);
}

.site-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 7px;
    border-radius: 22px;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background-color .25s, color .25s, transform .3s var(--spring);
}
.site-nav__link .icon { width: 22px; height: 22px; }
.site-nav__link:active { transform: scale(.94); }
.site-nav__link[aria-current='page'] {
    color: var(--violet);
    background: linear-gradient(135deg, #efe6ff, #ffe4f3);
}
.site-nav__link[aria-current='page'] .icon { animation: nav-bounce .7s var(--spring); }

@keyframes nav-bounce {
    0% { transform: scale(.6) rotate(-12deg); }
    100% { transform: none; }
}

@media (min-width: 820px) {
    .site-header {
        position: sticky;
        top: 16px;
        bottom: auto;
        left: auto;
        translate: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: min(100% - 40px, 1120px);
        margin: 16px auto 0;
        padding: 8px 8px 8px 16px;
        background: rgba(255, 255, 255, .72);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        border: 1.5px solid var(--line);
        border-radius: 999px;
        box-shadow: var(--shadow);
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    .brand__fis { width: 42px; transition: rotate .5s var(--spring), scale .5s var(--spring); }
    .brand__logo { width: 116px; }
    .brand:hover .brand__fis { rotate: -14deg; scale: 1.1; }

    .site-nav ul {
        display: flex;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-nav__link {
        flex-direction: row;
        gap: 8px;
        padding: 10px 18px;
        border-radius: 999px;
        font-size: .98rem;
    }
    .site-nav__link .icon { width: 18px; height: 18px; }
    .site-nav__link:hover { background: #f6f0ff; color: var(--ink); }
}

/* ---------- Layout ---------- */

main {
    width: min(100% - 28px, 1120px);
    margin: 0 auto;
    padding-block: 16px 24px;
}

@media (min-width: 820px) {
    main { width: min(100% - 40px, 1120px); padding-block: 32px 32px; }
}

.card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    padding-left: 2px;
    font-size: 1.3rem;
}
.section-title > .icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 12px;
    background: #fff;
    color: var(--violet);
    box-shadow: var(--shadow-sm);
}
.section-title__emoji {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
}
.section-head .section-title { margin: 0; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: .92rem;
    color: var(--violet);
    text-decoration: none;
}
.text-link .icon { transition: translate .3s var(--spring); }
.text-link:hover .icon { translate: 4px 0; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--spring), box-shadow .35s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }

.btn--primary {
    border-color: transparent;
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(192, 38, 211, .8);
}

/* ---------- Entrance & reveal animations ---------- */

@keyframes pop-in {
    from { opacity: 0; translate: 0 18px; scale: .98; }
}

.home .profile,
.home__content > *,
.page > :first-child {
    animation: pop-in .8s var(--ease-out) backwards;
}
.home__content > :nth-child(1) { animation-delay: .1s; }
.home__content > :nth-child(2) { animation-delay: .18s; }
.home__content > :nth-child(3) { animation-delay: .26s; }
.home__content > :nth-child(4) { animation-delay: .34s; }
.home__content > :nth-child(5) { animation-delay: .42s; }

.link-list > *,
.social-grid > *,
.channel-list > .channel-card,
.channel-grid > * {
    animation: pop-in .6s var(--ease-out) backwards;
}
.link-list > :nth-child(2), .social-grid > :nth-child(2), .channel-grid > :nth-child(1) { animation-delay: .22s; }
.link-list > :nth-child(3), .social-grid > :nth-child(3), .channel-grid > :nth-child(2) { animation-delay: .3s; }
.social-grid > :nth-child(4) { animation-delay: .38s; }
.social-grid > :nth-child(5) { animation-delay: .46s; }
.social-grid > :nth-child(6) { animation-delay: .54s; }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: pop-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
    }
}

/* ---------- Home ---------- */

.home {
    display: grid;
    gap: 22px;
    max-width: 580px;
}

.home__content { display: grid; gap: 26px; min-width: 0; }

@media (min-width: 1024px) {
    .home {
        max-width: 1120px;
        grid-template-columns: 400px minmax(0, 1fr);
        align-items: start;
        gap: 36px;
    }
    .home .profile { position: sticky; top: 104px; }
}

/* Profile card */

.profile {
    padding: 32px 0 24px;
    text-align: center;
}

.profile__avatar {
    position: relative;
    width: 124px;
    aspect-ratio: 1;
    margin: -62px auto 12px;
    padding: 5px;
    border-radius: 50%;
    background: conic-gradient(from var(--angle), #c4b5fd, #f9a8d4, #99f6e4, #7dd3fc, #c4b5fd);
    box-shadow: 0 14px 28px -12px rgba(120, 80, 200, .65);
    animation: ring-spin 7s linear infinite;
}
.profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
}

@keyframes ring-spin {
    to { --angle: 360deg; }
}

.profile__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(2.1rem, 8vw, 2.5rem);
    font-weight: 700;
}
.profile__sparkle {
    width: 22px;
    height: 22px;
    color: #c084fc;
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow { to { rotate: 360deg; } }

.profile__handle {
    margin: 2px 0 12px;
    padding-inline: 16px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.profile__bio {
    max-width: 34ch;
    margin: 0 auto 18px;
    padding-inline: 18px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 16px;
    list-style: none;
}
.stats__item {
    flex: 1;
    max-width: 112px;
    display: flex;
    flex-direction: column;
    padding: 10px 6px;
    border-radius: var(--r-md);
    border: 1.5px solid #fff;
    line-height: 1.2;
}
.stats__item strong { font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; }
.stats__item span { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.stats__item--lav { background: #efe8ff; }
.stats__item--pink { background: #ffe6f3; }
.stats__item--mint { background: #dcf7ee; }

/* Link groups & cards */

.link-group { position: relative; min-width: 0; }

.link-list { display: grid; gap: 12px; }

.link-card {
    --tint: #efe9ff;
    --accent: var(--violet);
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 12px 12px;
    background: var(--card-solid);
    border: 2px solid #fff;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.link-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow); }
.link-card:active { transform: scale(.98); }

.link-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: var(--tint);
    color: var(--accent);
    transition: transform .45s var(--spring);
}
.link-card__icon .icon { width: 26px; height: 26px; }
.link-card:hover .link-card__icon { transform: rotate(-9deg) scale(1.08); }

.link-card__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-card__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
}
.link-card__sub { font-size: .88rem; line-height: 1.35; color: var(--ink-soft); }

.link-card__arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent);
    transition: transform .4s var(--spring);
}
.link-card__arrow .icon { width: 17px; height: 17px; }
.link-card:hover .link-card__arrow { transform: translate(2px, -2px) rotate(10deg); }

.link-card--safir { --tint: #dff1fe; --accent: #0277bd; }
.link-card--merch { --tint: #f3e8ff; --accent: #9333ea; }
.link-card--book { --tint: #fef3c7; --accent: #c26a06; }

/* YouTube channel cards */

.channel-list,
.channel-grid { display: grid; gap: 12px; }

@media (min-width: 560px) {
    .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.channel-card {
    --tint: #ffe4ea;
    --accent: #f0245a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-solid);
    border: 2px solid #fff;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.channel-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow); }
.channel-card:active { transform: scale(.98); }

.channel-card__banner {
    display: block;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    background: var(--tint);
}
.channel-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.channel-card:hover .channel-card__banner img { transform: scale(1.05); }

.channel-card__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 14px 14px;
}

.channel-card__avatar {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    margin-top: -24px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 16px -8px rgba(60, 40, 140, .5);
    transition: transform .45s var(--spring);
}
.channel-card__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.channel-card:hover .channel-card__avatar { transform: rotate(-8deg) scale(1.06); }

.channel-card__badge {
    position: absolute;
    right: -5px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff0033;
    color: #fff;
}
.channel-card__badge .icon { width: 12px; height: 12px; }

.channel-card__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}
.channel-card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.channel-card__sub { font-size: .86rem; line-height: 1.35; color: var(--ink-soft); }

.channel-card .link-card__arrow { margin-top: 10px; }
.channel-card:hover .link-card__arrow { transform: translate(2px, -2px) rotate(10deg); }

.channel-card--featured {
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
    box-shadow: var(--shadow);
}
.channel-card--featured .channel-card__banner { aspect-ratio: 5 / 1; }
.channel-card--featured .channel-card__body { padding: 0 16px 16px; }
.channel-card--featured .channel-card__avatar { width: 78px; height: 78px; margin-top: -32px; border-width: 4px; }
.channel-card--featured .channel-card__badge { width: 28px; height: 28px; }
.channel-card--featured .channel-card__badge .icon { width: 14px; height: 14px; }
.channel-card--featured .channel-card__text { padding-top: 10px; }
.channel-card--featured .channel-card__title { font-size: 1.35rem; }

.channel-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    margin-top: 12px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--grad-btn);
    color: #fff;
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 600;
    box-shadow: 0 8px 16px -8px rgba(192, 38, 211, .8);
    transition: transform .4s var(--spring);
}
.channel-card--featured:hover .channel-card__cta { transform: scale(1.06); }
.channel-card--featured:hover .channel-card__cta .icon { animation: heartbeat .9s ease-in-out infinite; }

@keyframes heartbeat {
    0%, 100% { scale: 1; }
    30% { scale: 1.3; }
    60% { scale: .95; }
}

@media (max-width: 480px) {
    .channel-card--featured .channel-card__body { flex-wrap: wrap; row-gap: 0; }
    .channel-card--featured .channel-card__text { flex-basis: calc(100% - 90px); }
    .channel-card--featured .channel-card__cta { margin-left: 90px; }
}

.channel-card--sims { --tint: #eef8d0; --accent: #16a34a; }
.channel-card--rosa { --tint: #fde6f2; --accent: #db2777; }

/* Hyggefis sits at the bottom-right of Beduna's avatar */
.profile__people {
    position: relative;
    width: 168px;
    margin: 0 auto 16px;
}
.profile__people .profile__avatar { width: 100%; margin: 0; padding: 6px; }
.profile .hyggefis--buddy {
    position: absolute;
    right: -34px;
    bottom: -10px;
    z-index: 2;
    width: 78px;
}
/* Bubble pops out to the left at shoulder height so it never covers her face */
.profile .hyggefis--buddy .hyggefis__bubble {
    right: 74%;
    bottom: 6%;
}

/* Social tiles */

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.social-tile {
    --tint: #efe9ff;
    --accent: var(--violet);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    background: var(--card-solid);
    border: 2px solid #fff;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.social-tile::after {
    content: '';
    position: absolute;
    top: -34px;
    right: -34px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--tint);
    transition: transform .6s var(--spring);
}
.social-tile > * { position: relative; z-index: 1; }
.social-tile:hover { transform: translateY(-4px) rotate(.6deg); box-shadow: var(--shadow); }
.social-tile:hover::after { transform: scale(1.5); }
.social-tile:active { transform: scale(.97); }

.social-tile__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .2);
    transition: transform .45s var(--spring);
}
.social-tile__icon .icon { width: 24px; height: 24px; }
.social-tile:hover .social-tile__icon { transform: rotate(-10deg) scale(1.1); }

.social-tile__platform { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.social-tile__handle { font-size: .86rem; font-weight: 700; color: var(--ink-soft); overflow-wrap: anywhere; }
.social-tile__label {
    margin-top: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
}

.social-tile--tiktok { --tint: #e3f8fb; --accent: #111827; }
.social-tile--tiktok .social-tile__icon .icon { filter: drop-shadow(1.5px 1.5px 0 #ff2e63) drop-shadow(-1.5px -1.5px 0 #25f4ee); }
.social-tile--tiktok .social-tile__label { color: #0f766e; }
.social-tile--instagram { --tint: linear-gradient(135deg, #ffe0f0, #fff0d6); --accent: #d62976; }
.social-tile--discord { --tint: #e6e8ff; --accent: #5865f2; }
.social-tile--facebook { --tint: #e1ecff; --accent: #1877f2; }

/* Merch teaser */

.merch-teaser { padding: 18px 0 16px 18px; min-width: 0; }
.merch-teaser .section-head { padding-right: 18px; }

.merch-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    gap: 12px;
    padding: 4px 18px 12px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #d8ccff transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.merch-scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .merch-scroller { grid-auto-columns: 30%; } }

.merch-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 22px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.merch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.merch-card__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 20px 20px 14px 14px;
    background: #f5f0ff;
}
.merch-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.merch-card:hover .merch-card__media img { transform: scale(1.07) rotate(1deg); }

.merch-card__body { display: flex; flex-direction: column; flex: 1; gap: 2px; padding: 10px 12px 12px; }
.merch-card__kind {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pink);
}
.merch-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.merch-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    font-size: .8rem;
    font-weight: 800;
    color: var(--violet);
}
.merch-card__cta .icon { transition: translate .3s var(--spring); }
.merch-card:hover .merch-card__cta .icon { translate: 4px 0; }

/* Explore cards */

.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.explore-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 150px;
    padding: 16px 16px 44px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: var(--r-lg);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.explore-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow); }
.explore-card--om { background: linear-gradient(145deg, #efe4ff, #ffe0f0); }
.explore-card--faq { background: linear-gradient(145deg, #d9f8ee, #e0efff); }
.explore-card__emoji { font-size: 1.9rem; line-height: 1.2; margin-bottom: 4px; }
.explore-card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.explore-card__text { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.explore-card__arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: #fff;
    color: var(--violet);
    transition: translate .4s var(--spring);
}
.explore-card:hover .explore-card__arrow { translate: 4px 0; }

/* ---------- Hyggefis mascot ---------- */

.hyggefis {
    position: relative;
    display: block;
    width: 90px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hyggefis img {
    width: 100%;
    transform-origin: 50% 90%;
    filter: drop-shadow(0 10px 10px rgba(40, 50, 120, .22));
    animation: fis-idle 4.5s ease-in-out infinite;
}
.hyggefis:hover img { animation-duration: 1.4s; }
.hyggefis.is-happy img { animation: fis-jump .8s var(--spring); }
.hyggefis:focus-visible { outline-offset: 6px; border-radius: 20px; }

@keyframes fis-idle {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-5px); }
}

@keyframes fis-jump {
    0% { transform: scale(1); }
    25% { transform: scale(1.14, .86) translateY(6px); }
    55% { transform: scale(.94, 1.1) translateY(-18px) rotate(-8deg); }
    80% { transform: scale(1.04, .96) translateY(2px); }
    100% { transform: scale(1); }
}

.hyggefis__bubble {
    position: absolute;
    right: 82%;
    bottom: 64%;
    z-index: 4;
    width: max-content;
    max-width: 210px;
    padding: 9px 13px;
    border-radius: 18px 18px 4px 18px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    box-shadow: var(--shadow);
    opacity: 0;
    scale: .7;
    transform-origin: 100% 100%;
    pointer-events: none;
    transition: opacity .25s, scale .45s var(--spring);
}
.hyggefis__bubble.is-visible { opacity: 1; scale: 1; }

.hyggefis--md { width: 150px; }
.hyggefis--lg { width: min(230px, 60vw); }
.hyggefis--lg .hyggefis__bubble,
.hyggefis--md .hyggefis__bubble {
    right: auto;
    left: 50%;
    bottom: 96%;
    translate: -50% 0;
    border-radius: 18px;
    transform-origin: 50% 100%;
    text-align: center;
}

/* Particles & easter eggs (created by main.js) */

.particle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    animation: particle-fly 1.2s var(--ease-out) both;
}

@keyframes particle-fly {
    from { transform: translate(var(--x0), var(--y0)) scale(.3); opacity: 1; }
    to { transform: translate(var(--x1), var(--y1)) scale(1.15) rotate(var(--r)); opacity: 0; }
}

.fis-rain {
    position: fixed;
    top: -90px;
    z-index: 150;
    width: 60px;
    pointer-events: none;
    animation: fis-fall linear forwards;
}

@keyframes fis-fall {
    to { transform: translateY(calc(100vh + 180px)) rotate(var(--spin)); }
}

.trail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 140;
    width: 12px;
    height: 12px;
    pointer-events: none;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: trail-fade .9s ease-out forwards;
}

@keyframes trail-fade {
    to { opacity: 0; scale: .2; rotate: 120deg; translate: 0 16px; }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-space) + 8px);
    z-index: 170;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    translate: -50% 20px;
    pointer-events: none;
    transition: opacity .3s, translate .5s var(--spring);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }
@media (min-width: 820px) { .toast { bottom: 28px; } }

/* ---------- Sub pages ---------- */

.page { display: grid; gap: 24px; max-width: 1060px; }

.page-title { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 700; }
.page-title--sm { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }

.page-hero {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 26px 22px;
    overflow: visible;
}
.page-hero .lead { margin-top: 12px; max-width: 58ch; }
.page-hero__art { display: flex; justify-content: center; padding-top: 30px; }

@media (max-width: 759px) {
    .page-hero { margin-top: 28px; padding-top: 30px; }
    .page-hero__art { position: absolute; top: -30px; right: 12px; padding: 0; }
    .page-hero .hyggefis--md { width: 78px; }
    .page-hero .hyggefis__bubble {
        right: 82%;
        left: auto;
        bottom: 30%;
        translate: none;
        border-radius: 18px 18px 4px 18px;
        transform-origin: 100% 100%;
        text-align: left;
    }
}

@media (min-width: 760px) {
    .page-hero { grid-template-columns: minmax(0, 1fr) 220px; padding: 40px 44px; }
    .page-hero__art { padding-top: 40px; }
    .hyggefis--md { width: 180px; }
}

/* About */

.about-hero { overflow: hidden; }
.about-hero__banner {
    margin: 8px 8px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #e0d4ff, #fbd5ec, #cff5ea);
}
.about-hero__banner img { width: 100%; height: 100%; object-fit: cover; }

.about-hero__body {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 0 22px 28px;
    text-align: center;
}
.about-hero__avatar { width: 136px; margin: -68px 0 8px; }

@media (min-width: 760px) {
    .about-hero__banner { aspect-ratio: 16 / 7; }
    .about-hero__banner img { object-position: 50% 55%; }
    .about-hero__body {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: start;
        align-items: end;
        gap: 28px;
        padding: 0 44px 36px;
        text-align: left;
    }
    .about-hero__avatar { width: 176px; margin: -88px 0 0; }
}

.fact-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.about-hero__body .fact-chips { justify-content: center; }
@media (min-width: 760px) { .about-hero__body .fact-chips { justify-content: flex-start; } }

.fact-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.fact-chips li:nth-child(1) .icon { color: var(--pink); }
.fact-chips li:nth-child(2) .icon { color: var(--teal); }
.fact-chips li:nth-child(3) .icon { color: #f0245a; }
.fact-chips li:nth-child(4) .icon { color: var(--violet); }

.about-story {
    display: grid;
    gap: 28px;
    padding: 28px 22px;
}
@media (min-width: 760px) {
    .about-story { grid-template-columns: 260px minmax(0, 1fr); align-items: center; padding: 40px 44px; gap: 44px; }
}

.polaroid {
    justify-self: center;
    width: min(240px, 70vw);
    margin: 6px 0 0;
    padding: 10px 10px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    rotate: -4deg;
    transition: rotate .6s var(--spring), scale .6s var(--spring);
}
.polaroid::before {
    content: '';
    display: block;
    width: 90px;
    height: 26px;
    margin: -22px auto 8px;
    border-radius: 3px;
    background: rgba(249, 168, 212, .75);
    rotate: 3deg;
}
.polaroid:hover { rotate: 1deg; scale: 1.03; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.polaroid figcaption {
    margin-top: 10px;
    font-family: var(--font-head);
    font-size: 1rem;
    text-align: center;
    color: var(--ink-soft);
}

.prose { font-size: 1.04rem; max-width: 65ch; }
.prose .lead { font-size: 1.18rem; color: var(--ink); font-weight: 700; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 20px 12px;
    border: 2px solid #fff;
    border-radius: var(--r-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--spring);
}
.stat-card:hover { transform: translateY(-4px) rotate(-1deg); }
.stat-card strong { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.1; }
.stat-card span:last-child { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.stat-card__emoji { font-size: 1.6rem; margin-bottom: 4px; }
.stat-card--lav { background: linear-gradient(160deg, #f3edff, #e7ddff); }
.stat-card--pink { background: linear-gradient(160deg, #fff0f7, #ffdcee); }
.stat-card--mint { background: linear-gradient(160deg, #e9fbf4, #d2f5e8); }
.stat-card--sky { background: linear-gradient(160deg, #eaf6ff, #d8ecff); }

.games { padding: 26px 22px; }
@media (min-width: 760px) { .games { padding: 34px 44px; } }

.game-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.game-stickers li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 3px solid #fff;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    rotate: -2deg;
    transition: rotate .5s var(--spring), scale .5s var(--spring);
}
.game-stickers li:nth-child(even) { rotate: 2deg; }
.game-stickers li:hover { rotate: 0deg; scale: 1.08; }
.game-stickers li:nth-child(6n+1) { background: #dcfce7; }
.game-stickers li:nth-child(6n+2) { background: #ffe4e6; }
.game-stickers li:nth-child(6n+3) { background: #ede9fe; }
.game-stickers li:nth-child(6n+4) { background: #e0f2fe; }
.game-stickers li:nth-child(6n+5) { background: #fce7f3; }
.game-stickers li:nth-child(6n+6) { background: #fef9c3; }

.meet-fis {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 64px 22px 30px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .95) 0 90px, transparent 91px),
        linear-gradient(160deg, rgba(237, 233, 254, .9), rgba(220, 252, 231, .85));
}
.meet-fis__art { position: relative; }
.meet-fis__art::before {
    content: '';
    position: absolute;
    inset: 12% 6% 0;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 168, 212, .55), transparent 70%);
}
.meet-fis__text { max-width: 52ch; }
.meet-fis__text .page-title { margin-bottom: 12px; }
.meet-fis__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: .88rem;
    font-weight: 800;
    color: var(--violet);
}

@media (min-width: 760px) {
    .meet-fis {
        grid-template-columns: 300px minmax(0, 1fr);
        align-items: center;
        gap: 36px;
        padding: 56px 44px 44px;
        text-align: left;
        background:
            radial-gradient(circle at 170px 55%, rgba(255, 255, 255, .95) 0 110px, transparent 111px),
            linear-gradient(120deg, rgba(237, 233, 254, .9), rgba(220, 252, 231, .85));
    }
    .meet-fis__text { justify-self: start; }
}

/* Book */

.book {
    display: grid;
    gap: 28px;
    padding: 30px 22px;
    background:
        linear-gradient(160deg, rgba(254, 249, 195, .75), rgba(220, 252, 231, .8));
}
.book__cover {
    justify-self: center;
    width: min(220px, 60vw);
    perspective: 900px;
}
.book__cover img {
    width: 100%;
    border-radius: 6px 14px 14px 6px;
    box-shadow: -8px 16px 30px -10px rgba(40, 60, 40, .45);
    rotate: -3deg;
    transition: transform .7s var(--spring), rotate .7s var(--spring);
}
.book__cover:hover img { rotate: 0deg; transform: rotateY(-14deg) scale(1.03); }
.book__title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin-bottom: 4px; }
.book__authors { font-weight: 700; color: var(--ink-soft); }
.book .eyebrow { color: #a15c07; }
.book__note { margin-top: 12px; }

@media (min-width: 760px) {
    .book { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 44px; padding: 40px 44px; }
}

/* Timeline */

.journey { padding: 26px 22px; }
@media (min-width: 760px) { .journey { padding: 36px 44px; } }

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 10px 0 0;
    padding: 0 0 0 30px;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(#c4b5fd, #f9a8d4, #99f6e4);
}
.timeline__item {
    position: relative;
    padding: 14px 18px;
    border: 2px solid #fff;
    border-radius: var(--r-md);
    background: var(--card-solid);
    box-shadow: var(--shadow-sm);
}
.timeline__item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -29px;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--violet-soft);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .3);
}
.timeline__item:nth-child(2)::before { background: #f472b6; box-shadow: 0 0 0 3px rgba(244, 114, 182, .3); }
.timeline__item:nth-child(3)::before { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .3); }
.timeline__item:nth-child(4)::before { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .3); }
.timeline__item:nth-child(5)::before { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.timeline__when {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f3edff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--violet);
}
.timeline__title { font-size: 1.12rem; margin-bottom: 2px; }
.timeline__item p { color: var(--ink-soft); }

/* Setup */

.setup { padding: 26px 22px; }
@media (min-width: 760px) { .setup { padding: 36px 44px; } }

.gear-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 6px 0 22px;
    padding: 0;
    list-style: none;
}
@media (min-width: 760px) { .gear-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.gear {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 2px solid #fff;
    border-radius: var(--r-md);
    background: var(--card-solid);
    box-shadow: var(--shadow-sm);
}
.gear:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .gear:last-child:nth-child(odd) { grid-column: auto; } }
.gear__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 13px;
    background: linear-gradient(135deg, #efe6ff, #ffe4f3);
    color: var(--violet);
}
.gear__icon .icon { width: 20px; height: 20px; }
.gear__label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.gear__value { font-family: var(--font-head); font-weight: 600; line-height: 1.3; }

.pc {
    padding: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #2a2f6b, #4c3b8f);
    color: #fff;
    box-shadow: var(--shadow);
}
.pc__title { font-size: 1.15rem; margin-bottom: 14px; }
.pc__specs {
    display: grid;
    gap: 10px;
    margin: 0;
}
@media (min-width: 640px) { .pc__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc__specs div {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
}
.pc__specs dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f9a8d4; }
.pc__specs dd { margin: 0; font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Merch page */

.merch-banner {
    display: block;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    transition: transform .5s var(--spring), box-shadow .5s;
}
.merch-banner img { width: 100%; transition: transform .8s var(--ease-out); }
.merch-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.merch-banner:hover img { transform: scale(1.03); }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
    padding: 9px 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--card-solid);
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--spring), background-color .2s;
}
.chip:first-child { background: var(--grad-btn); color: #fff; border-color: transparent; }
.chip:hover { transform: translateY(-2px) rotate(-2deg); }

.merch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (min-width: 700px) { .merch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .merch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* FAQ */

.search {
    position: relative;
    max-width: 440px;
    margin-top: 20px;
}
.search[hidden] { display: none; }
.search > .icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 20px;
    height: 20px;
    translate: 0 -50%;
    color: var(--violet);
    pointer-events: none;
}
.search input {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px 12px 50px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s, border-color .3s;
}
.search input::placeholder { color: #8d92bf; font-weight: 600; }
.search input:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 5px rgba(167, 139, 250, .25); }

.faq-group[hidden] { display: none; }
.faq-list { display: grid; gap: 10px; }

.faq-item {
    border: 2px solid #fff;
    border-radius: 22px;
    background: var(--card-solid);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s;
}
.faq-item[hidden] { display: none; }
.faq-item[open] { box-shadow: var(--shadow); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 16px 20px;
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--violet); }

.faq-item__chevron {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #efe6ff, #ffe4f3);
    color: var(--violet);
    transition: rotate .45s var(--spring);
}
.faq-item__chevron .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-item__chevron { rotate: 180deg; }

.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

.faq-item__answer {
    padding: 0 20px 18px;
    color: var(--ink-soft);
}
.faq-item__answer a { color: var(--violet); font-weight: 800; }
.faq-item__answer strong { color: var(--ink); }

.spec-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.spec-list li { padding: 8px 12px; border-radius: 12px; background: #f6f2ff; color: var(--ink); font-weight: 700; }
.spec-list span {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pink);
}

.faq-empty { padding: 22px; text-align: center; font-weight: 700; }
.faq-empty[hidden] { display: none; }

.faq-more { padding: 26px 22px; text-align: center; }
.faq-more .section-title { justify-content: center; }
.faq-more .section-title > .icon { color: #5865f2; }
.faq-more .btn { margin-top: 14px; }

/* 404 */

.notfound {
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    padding: 70px 24px 36px;
    text-align: center;
}
.notfound__code {
    margin: 0;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: #d8ccff;
}
.notfound .btn { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
    padding: 28px 14px calc(var(--nav-space) + 16px);
    text-align: center;
}
@media (min-width: 820px) { .site-footer { padding-bottom: 40px; } }

.site-footer__inner {
    max-width: 620px;
    margin: 0 auto;
    padding: 22px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-xl);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-sm);
}
.site-footer__fis { width: 54px; margin: -48px auto 6px; filter: drop-shadow(0 6px 8px rgba(40, 50, 120, .2)); }
.site-footer__love { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 12px; }
.site-footer__nav a { font-weight: 800; color: var(--violet); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__small { font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .cloud, .sparkles { display: none; }
}
