/*
 * Igrišče: the floor of a school gym.
 *
 * Everyone who has played in one knows it: the lines of every sport on top of each other,
 * white for basketball, the club's other colour for handball, a shade for the rest. Titles are lettered onto the floor, so the lines stop around the letters, and
 * the page lies on the same floor all the way down.
 */

@font-face {
    font-family: 'Outfit League Spartan';
    src: url('/fonts/league-spartan-400.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

html[data-outfit='igrisce'] {
    --color-background: 223 223 223;
    --color-content: 255 255 255;
    --color-content-secondary: 238 238 238;
    --color-bright: 22 22 22;
    --color-normal: 52 52 52;
    --color-faded: 85 85 85;
    /* Basketball in white, handball in the club's other colour, volleyball as a shade. */
    --o-basket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 520' preserveAspectRatio='xMaxYMid slice' fill='none' stroke='%23000' stroke-width='8'%3E%3Cpath d='M-20 486H1640M1040 486V150H1420V486'/%3E%3Cpath d='M1120 150a110 110 0 0 1 220 0'/%3E%3Cpath d='M1120 150a110 110 0 0 0 220 0' stroke-dasharray='26 20'/%3E%3C/svg%3E");
    --o-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 520' preserveAspectRatio='xMaxYMid slice' fill='none' stroke='%23000' stroke-width='6'%3E%3Cpath d='M660 540C660 250 900 60 1190 60S1640 190 1700 330'/%3E%3Cpath d='M540 540C540 190 820 -30 1190 -30S1700 60 1760 200' stroke-dasharray='30 22'/%3E%3C/svg%3E");
    --o-volley: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 520' preserveAspectRatio='xMaxYMid slice' fill='none' stroke='%23000' stroke-width='5' stroke-opacity='.34'%3E%3Cpath d='M820 -20V340H1640M1080 -20V340M-20 436H1640M1330 -20V560'/%3E%3C/svg%3E");
    --o-floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1800' fill='none' stroke='%23fff' stroke-width='7'%3E%3Cpath d='M60 -10V1810M1380 -10V1810M60 900H1380'/%3E%3Ccircle cx='720' cy='900' r='190'/%3E%3Cpath d='M60 330H420a190 190 0 0 1 0 0M420 140V520H60M420 140H60'/%3E%3Cpath d='M420 220a110 110 0 0 1 0 220'/%3E%3Cpath d='M60 40H300C560 40 700 180 700 330S560 620 300 620H60' stroke-dasharray='0'/%3E%3Cpath d='M1380 1280H1020V1660H1380M1020 1360a110 110 0 0 0 0 220'/%3E%3Cpath d='M1380 1180H1140C880 1180 740 1320 740 1470S880 1760 1140 1760H1380'/%3E%3Cpath d='M60 1230C330 1230 520 1400 520 1640V1810' stroke-width='5' stroke-dasharray='30 22'/%3E%3Cpath d='M1380 600C1110 600 920 430 920 190V-10' stroke-width='5' stroke-dasharray='30 22'/%3E%3C/svg%3E");
    --o-floor-strength: 0.75;
}

html[data-outfit='igrisce'].dark {
    --o-menu: 35 35 35;
    --color-background: 26 26 26;
    --color-content: 39 39 39;
    --color-content-secondary: 52 52 52;
    --color-bright: 248 248 248;
    --color-normal: 215 215 215;
    --color-faded: 168 168 168;
    --o-floor-strength: 0.05;
}

html[data-outfit='igrisce'][data-outfit-fonts='own'] {
    --font-wide: 'Outfit League Spartan', Verdana, sans-serif !important;
    --font-narrow: 'Outfit League Spartan', Verdana, sans-serif !important;
}

html[data-outfit='igrisce'][data-outfit-fonts='own'] body {
    font-family: Source-Sans-3, Verdana, sans-serif;
    font-size: 1.0625rem;
}

/* The floor lies under the page and scrolls with it. */
html[data-outfit='igrisce'] .bg-background.min-h-dvh {
    position: relative;
    isolation: isolate;
}

html[data-outfit='igrisce'] .bg-background.min-h-dvh::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--o-floor) center top / max(1440px, 100%) auto repeat-y;
    opacity: var(--o-floor-strength);
    pointer-events: none;
}

/* ------------------------------------------------------------------ header */

html[data-outfit='igrisce'] .min-h-dvh > .fixed.top-0 .font-narrow.text-xl {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgb(var(--color-bright));
}

html[data-outfit='igrisce'] .min-h-dvh > .fixed.top-0 .font-narrow.text-transparent {
    color: transparent;
}

html[data-outfit='igrisce'] .min-h-dvh > .fixed.top-0 .hidden.lg\:grid {
    box-shadow: none;
}

/* The crest on the jump circle. */
@media (min-width: 1024px) {
    html[data-outfit='igrisce'] .lg\:fixed.rounded-full {
        left: 1.75rem;
        padding: 0.8rem;
        border-radius: 50%;
        background: #fff;
        box-shadow:
            0 0 0 7px rgb(var(--color-primary)),
            0 0 0 13px #fff;
    }

    html[data-outfit='igrisce'] .lg\:fixed.rounded-full > div {
        width: 6.25rem;
        height: 6.25rem;
    }

    html[data-outfit='igrisce'] .lg\:fixed.lg\:left-8.rounded-full > div {
        width: 4rem;
        height: 4rem;
    }
}

html[data-outfit='igrisce'] .sticky.top-0 .rounded-full.bg-menu {
    background: #fff;
    padding: 0.5rem;
}

html[data-outfit='igrisce'] .sticky.top-0 .rounded-full.bg-menu > div {
    width: 5rem;
    height: 5rem;
}

/* -------------------------------------------------------------- page title */

html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary {
    align-items: flex-end;
    min-height: clamp(13rem, 26vw, 24rem);
    padding-block: 5rem clamp(1.4rem, 4.4vw, 3.9rem);
    position: relative;
    isolation: isolate;
    background: var(--o-volley) right center / cover no-repeat rgb(var(--color-primary));
}

html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::before,
html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::before {
    background: rgb(var(--o-second-on-first));
    -webkit-mask: var(--o-hand) right center / cover no-repeat;
    mask: var(--o-hand) right center / cover no-repeat;
}

html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::after {
    background: rgb(var(--o-primary-on-big));
    -webkit-mask: var(--o-basket) right center / cover no-repeat;
    mask: var(--o-basket) right center / cover no-repeat;
}

/* Lettered onto the floor: the paint goes round the letters. */
html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary > .font-wide {
    font-size: clamp(3.4rem, 9.5vw, 9rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.05em;
    -webkit-text-stroke: 0.08em rgb(var(--color-primary));
    paint-order: stroke fill;
}

/* ---------------------------------------------------------------- headings */

html[data-outfit='igrisce'] .font-wide:is(.text-\[28px\].w-full, .text-3xl.grow) {
    text-align: left;
    font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.05em;
    color: rgb(var(--color-bright));
    -webkit-text-stroke: 0.07em rgb(var(--color-background));
    paint-order: stroke fill;
}

html[data-outfit='igrisce'] .content-container .font-wide.w-full.text-\[28px\] {
    padding-top: clamp(1.75rem, 4vw, 3.75rem);
    margin-bottom: 1.1rem;
}

html[data-outfit='igrisce'] .font-wide:is(.text-2xl, .text-xl) {
    font-weight: 800;
    letter-spacing: -0.035em;
}

html[data-outfit='igrisce'] .font-wide.text-2xl.font-bold {
    font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
    line-height: 1;
}

html[data-outfit='igrisce'] .news-container > .font-primary.text-\[32px\] {
    font-family: var(--font-wide);
    font-weight: 800;
    font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-wrap-style: balance;
}

html[data-outfit='igrisce'] .news-container > .text-normal.font-semibold {
    font-size: 1.3rem;
    line-height: 1.45;
}

/* -------------------------------------------------------------------- news */

/* The lead is the end of a court seen from above: the picture lies inside the three-point
   line, whose straight edge is the menu, and the words are painted on the floor below. */
html[data-outfit='igrisce'] .relative .grid.xl\:grid-cols-4:has(> div > a.group.relative) {
    --pad: clamp(0.5rem, 1.4vw, 1.25rem);
    gap: clamp(1rem, 1.4vw, 1.25rem);
    padding: 0 var(--pad) clamp(1.25rem, 2vw, 2rem);
}

html[data-outfit='igrisce'] .grid > .sm\:col-span-3:has(> a.group.relative) {
    margin-inline: calc(var(--pad) * -1);
}

@media (min-width: 768px) {
    html[data-outfit='igrisce'] .relative .grid.xl\:grid-cols-4:has(> div > a.group.relative) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-outfit='igrisce'] .grid > .sm\:col-span-3:has(> a.group.relative) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

html[data-outfit='igrisce']
    .sm\:col-span-3
    > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0)) {
    --arc-x: 56vw;
    --arc-y: 74vw;
    --arc-c: 50%;
    --line: clamp(4px, 0.55vw, 8px);
    --off: clamp(0.8rem, 1.7vw, 1.6rem);
    display: block;
    isolation: isolate;
    overflow: hidden;
    background: rgb(var(--color-primary));
    color: rgb(var(--o-primary-on-big));
}

html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > img {
    width: 100%;
    height: var(--arc-y);
    object-fit: cover;
    object-position: center 22%;
    clip-path: ellipse(var(--arc-x) 100% at var(--arc-c) 0);
    transform: none;
}

/* The line itself, and the one of another sport a little further out. */
html[data-outfit='igrisce']
    .sm\:col-span-3
    > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0))::before,
html[data-outfit='igrisce']
    .sm\:col-span-3
    > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0))::after {
    --out: calc(var(--off) + var(--line));
    content: '';
    position: absolute;
    z-index: -1;
    top: calc((var(--arc-y) + var(--out)) * -1);
    left: calc(var(--arc-c) - var(--arc-x) - var(--out));
    width: calc((var(--arc-x) + var(--out)) * 2);
    height: calc((var(--arc-y) + var(--out)) * 2);
    box-sizing: border-box;
    border: var(--line) solid rgb(var(--o-primary-on-big));
    border-radius: 50%;
    pointer-events: none;
}

html[data-outfit='igrisce']
    .sm\:col-span-3
    > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0))::after {
    --out: calc(var(--off) * 3.4 + var(--line));
    border: var(--line) dashed rgb(var(--o-second-on-first));
}

html[data-outfit='igrisce']
    .sm\:col-span-3
    > a.group.relative
    > .absolute:is(.bottom-3, .bottom-0) {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: clamp(0.5rem, 1vw, 1rem);
    padding: 1.25rem clamp(0.75rem, 3vw, 3rem) clamp(1.75rem, 3vw, 3rem);
    background: none;
    color: inherit;
}

html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute > div {
    padding: 0;
    gap: 1.25rem;
}

html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute .font-narrow {
    font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.05em;
    padding-top: 0.16em;
    -webkit-text-stroke: 0.1em rgb(var(--color-primary));
    paint-order: stroke fill;
}

html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute .font-narrow + div {
    max-width: 30rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-text-stroke: 6px rgb(var(--color-primary));
    paint-order: stroke fill;
}

@media (min-width: 1024px) {
    html[data-outfit='igrisce']
        .sm\:col-span-3
        > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0)) {
        --arc-x: 37vw;
        --arc-y: 33vw;
        --arc-c: 57%;
    }

    html[data-outfit='igrisce']
        .sm\:col-span-3
        > a.group.relative
        > .absolute:is(.bottom-3, .bottom-0) {
        margin-top: -2vw;
        padding-inline: var(--o-edge);
    }

    html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute > div {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2.5rem;
    }

    html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute .font-narrow {
        flex: 0 1 64%;
    }

    html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > .absolute .font-narrow + div {
        flex: 0 1 27rem;
        padding-bottom: 0.4rem;
    }
}

html[data-outfit='igrisce']
    .grid
    > div:not(.sm\:col-span-3)
    > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0)) {
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: 100%;
}

html[data-outfit='igrisce'] .grid > div:not(.sm\:col-span-3) > a.group.relative > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transform: none;
}

html[data-outfit='igrisce']
    .grid
    > div:not(.sm\:col-span-3)
    > a.group.relative
    > .absolute:is(.bottom-3, .bottom-0) {
    position: static;
    width: auto;
    flex: 1;
    padding: 1.1rem 1.25rem 1.35rem;
    background: rgb(var(--color-content));
    color: rgb(var(--color-bright));
}

html[data-outfit='igrisce'] .grid > div:not(.sm\:col-span-3) > a.group.relative > .absolute > div {
    justify-content: flex-start;
}

html[data-outfit='igrisce']
    .grid
    > div:not(.sm\:col-span-3)
    > a.group.relative
    > .absolute
    .font-narrow {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

html[data-outfit='igrisce'] .grid > div > a.group.relative:hover .font-narrow {
    text-decoration: underline;
    text-decoration-color: rgb(var(--o-tape));
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.1em;
    text-decoration-skip-ink: none;
}

/* ------------------------------------------------------------------- games */

html[data-outfit='igrisce'] .w-full.bg-content-secondary:has(> .px-2 .swiper) {
    background: transparent;
}

html[data-outfit='igrisce'] .font-wide.text-3xl.grow {
    padding-left: 0.5rem;
}

html[data-outfit='igrisce'] .border.bg-background.p-3 {
    border: 0;
    padding: 1.25rem 1.4rem 1rem;
    background: rgb(var(--color-content));
}

html[data-outfit='igrisce'] .border.bg-background.p-3 .font-narrow {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgb(var(--color-bright));
}

html[data-outfit='igrisce'] .border.bg-background.p-3 .divide-y > * {
    border-color: rgb(var(--color-normal) / 0.18);
}

html[data-outfit='igrisce'] .rounded-lg.font-bold.tabular-nums {
    width: auto;
    min-width: 3.5rem;
    justify-content: flex-end;
    padding: 0.2em 0 0;
    background: none;
    font-family: var(--font-wide);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgb(var(--color-bright));
}

/* -------------------------------------------------------------------- tabs */

/* Floor tape marks where you stand. */
html[data-outfit='igrisce'] .flex.rounded-t-lg > div:has(> .font-narrow, > div > .font-narrow) {
    margin: 0;
    padding: 0.5rem 0 0.35rem;
    border: 0;
    background: transparent;
    color: rgb(var(--color-bright));
}

html[data-outfit='igrisce'] .flex.rounded-t-lg > div .font-narrow.px-5 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.3em rgb(var(--color-background));
    paint-order: stroke fill;
}

html[data-outfit='igrisce']
    .flex.rounded-t-lg
    > div:has(> .font-narrow, > div > .font-narrow):hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

html[data-outfit='igrisce'] .flex.rounded-t-lg > .bg-content:has(> .font-narrow) {
    background: rgb(var(--o-tape));
    color: rgb(var(--o-tape-on));
}

html[data-outfit='igrisce'] .flex.rounded-t-lg > .bg-content .font-narrow.px-5 {
    -webkit-text-stroke: 0;
}

html[data-outfit='igrisce'] .bg-content.h-full.w-full.rounded-b-xl {
    padding: clamp(1rem, 2.4vw, 2.25rem);
}

/* ------------------------------------------------------------------- cards */

html[data-outfit='igrisce'] .bg-content.flex.h-full.flex-col.rounded-xl > .flex.grow {
    padding: 1.1rem 1.25rem 1.3rem;
}

html[data-outfit='igrisce'] .bg-content .font-primary.text-lg.font-semibold {
    font-family: var(--font-wide);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: rgb(var(--color-bright));
    text-wrap-style: balance;
}

html[data-outfit='igrisce'] .bg-content .mt-2.text-sm {
    font-size: 1rem;
    line-height: 1.45;
}

html[data-outfit='igrisce'] .font-wide.text-lg.font-bold {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}

html[data-outfit='igrisce'] a.group.rounded-xl.bg-content .font-semibold.leading-snug {
    font-family: var(--font-narrow);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: rgb(var(--color-bright));
}

/* Squad */
html[data-outfit='igrisce'] .relative.rounded-xl.pb-12 .font-narrow {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    padding-top: 0.3em;
}

/* ---------------------------------------------------------------- calendar */

html[data-outfit='igrisce'] .w-24.shrink-0.font-wide {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgb(var(--color-bright));
}

html[data-outfit='igrisce'] .divide-y > .flex.flex-wrap.items-baseline {
    padding-inline: 1.4rem;
}

/* ----------------------------------------------------------------- buttons */

html[data-outfit='igrisce'] :is(.cursor-pointer, a).rounded-xl.px-3.py-1 {
    padding: 0.65rem 1.15rem 0.5rem;
    font-family: var(--font-narrow);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

html[data-outfit='igrisce'] a.rounded-full.px-6.py-2 {
    padding: 1rem 1.9rem 0.8rem;
    border-radius: 0;
    font-family: var(--font-narrow);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------ footer */

html[data-outfit='igrisce'] footer .font-semibold.uppercase {
    font-family: var(--font-wide);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    text-transform: none;
}

/* Words laid straight on the floor keep the lines off themselves too. */
html[data-outfit='igrisce'] .prose,
html[data-outfit='igrisce'] .news-container > .text-normal.font-semibold,
html[data-outfit='igrisce'] .mt-3.flex.flex-wrap.items-baseline.text-sm {
    -webkit-text-stroke: 6px rgb(var(--color-background));
    paint-order: stroke fill;
}

/* The page ends on the halfway line. */
html[data-outfit='igrisce'] .min-h-20.w-full:has(footer) {
    --paint: rgb(var(--o-primary-lettering));
}

html[data-outfit='igrisce'] .min-h-20.w-full.bg-primary:has(footer) {
    --paint: rgb(var(--o-primary-on-big));
}

html[data-outfit='igrisce'] .min-h-20.w-full.bg-secondary:has(footer) {
    --paint: rgb(var(--o-secondary-on-big));
}

html[data-outfit='igrisce'] .min-h-20.w-full:has(footer) > div {
    --band: clamp(8.5rem, 17vw, 15rem);
    --line: clamp(5px, 0.6vw, 9px);
    position: relative;
    padding-top: var(--band);
    overflow: hidden;
}

html[data-outfit='igrisce'] .min-h-20.w-full:has(footer) > div::before {
    content: '';
    position: absolute;
    inset: calc((var(--band) - var(--line)) / 2) 0 auto;
    height: var(--line);
    background: var(--paint);
}

html[data-outfit='igrisce'] .min-h-20.w-full:has(footer) > div::after {
    content: '';
    position: absolute;
    top: calc(var(--band) / 2);
    left: 50%;
    width: calc(var(--band) * 0.72);
    aspect-ratio: 1;
    box-sizing: border-box;
    border: var(--line) solid var(--paint);
    border-radius: 50%;
    translate: -50% -50%;
}

html[data-outfit='igrisce'] footer address > .font-semibold {
    font-family: var(--font-wide);
    font-weight: 800;
    font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem);
    line-height: 1;
    letter-spacing: -0.04em;
    padding-bottom: 0.35rem;
}

/* ------------------------------------------------------------------- menus */

html[data-outfit='igrisce'] .min-h-dvh > .fixed.top-0 .bg-menu\/95 {
    padding: 1rem 0;
    border: 5px solid rgb(var(--color-primary));
}

html[data-outfit='igrisce'] .min-h-dvh > .fixed.top-0 .bg-menu\/95 .py-0\.5:hover {
    background: rgb(var(--color-primary));
    color: rgb(var(--color-on-primary));
}

html[data-outfit='igrisce'] .isolate.fixed > :has(> #popup-content > .w-full > .gap-2.rounded-2xl) {
    overflow: hidden;
    background: rgb(var(--color-primary));
    color: rgb(var(--o-primary-on-big));
}

html[data-outfit='igrisce']
    .isolate.fixed
    > :has(> #popup-content > .w-full > .gap-2.rounded-2xl)::before,
html[data-outfit='igrisce']
    .isolate.fixed
    > :has(> #popup-content > .w-full > .gap-2.rounded-2xl)::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 22rem;
    aspect-ratio: 1;
    box-sizing: border-box;
    border: 6px solid rgb(var(--o-primary-on-big));
    border-radius: 50%;
    translate: 42% -42%;
}

html[data-outfit='igrisce']
    .isolate.fixed
    > :has(> #popup-content > .w-full > .gap-2.rounded-2xl)::after {
    width: 32rem;
    border: 5px dashed rgb(var(--o-second-on-first));
}

html[data-outfit='igrisce']
    .isolate.fixed
    > :has(> #popup-content > .w-full > .gap-2.rounded-2xl)
    > div:first-child
    svg {
    color: rgb(var(--o-primary-on-big));
}

html[data-outfit='igrisce'] .isolate.fixed .gap-2.rounded-2xl .border-l-2 {
    padding: 0.5rem 0;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: rgb(var(--o-primary-on-big));
    -webkit-text-stroke: 0.1em rgb(var(--color-primary));
    paint-order: stroke fill;
}

html[data-outfit='igrisce'] .isolate.fixed .gap-2.rounded-2xl .mt-0\.5 {
    padding: 0.35rem 0;
    background: rgb(var(--color-content));
}

html[data-outfit='igrisce'] .isolate.fixed .gap-2.rounded-2xl .mt-0\.5 .border-l-2 {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: rgb(var(--color-normal));
    -webkit-text-stroke: 0;
}

html[data-outfit='igrisce']
    .isolate.fixed
    .gap-2.rounded-2xl
    > div
    > .text-base
    > div
    > [aria-current='page'] {
    text-decoration: underline;
    text-decoration-color: rgb(var(--o-second-on-first));
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.16em;
}

html[data-outfit='igrisce'] .isolate.fixed .gap-2.rounded-2xl > .mt-3 {
    border: 0;
    background: rgb(var(--color-content));
}

html[data-outfit='igrisce'] .fixed.bottom-0.h-20 {
    border-top: 5px solid rgb(var(--color-primary));
    background: rgb(var(--color-content));
}

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

@media (prefers-reduced-motion: no-preference) {
    /* The lines are painted onto the floor, one sport after the other. */
    @keyframes igrisce-paint {
        from {
            clip-path: inset(0 0 0 100%);
        }
        to {
            clip-path: inset(0 0 0 0);
        }
    }

    @keyframes igrisce-arc {
        from {
            clip-path: polygon(50% 50%, 100% 50%, 100% 50%, 100% 50%, 100% 50%);
        }
        50% {
            clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 50% 100%, 50% 100%);
        }
        to {
            clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 0 100%, 0 50%);
        }
    }

    html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::after {
        animation: igrisce-paint 0.9s cubic-bezier(0.5, 0, 0.2, 1) both;
    }

    html[data-outfit='igrisce'] .h-32.bg-gradient-to-b.from-primary::before {
        animation: igrisce-paint 1.2s 0.15s cubic-bezier(0.5, 0, 0.2, 1) both;
    }

    html[data-outfit='igrisce']
        .sm\:col-span-3
        > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0))::before {
        animation: igrisce-arc 1s cubic-bezier(0.5, 0, 0.2, 1) both;
    }

    html[data-outfit='igrisce']
        .sm\:col-span-3
        > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0))::after {
        animation: igrisce-arc 1.2s 0.2s cubic-bezier(0.5, 0, 0.2, 1) both;
    }

    html[data-outfit='igrisce']
        .isolate.fixed
        > :has(> #popup-content > .w-full > .gap-2.rounded-2xl) {
        animation: outfit-sheet 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    /* Pointed at, the picture goes past the line. */
    html[data-outfit='igrisce'] .sm\:col-span-3 > a.group.relative > img {
        transition: clip-path 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @media (hover: hover) {
        html[data-outfit='igrisce']
            .sm\:col-span-3
            > a.group.relative:has(> .absolute:is(.bottom-3, .bottom-0)):hover
            > img {
            clip-path: ellipse(
                calc(var(--arc-x) + var(--off)) calc(100% + var(--off)) at var(--arc-c) 0
            );
        }
    }

    @supports (animation-timeline: view()) {
        html[data-outfit='igrisce'] .min-h-20.w-full:has(footer) > div::before {
            animation: igrisce-paint linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 220%;
        }
    }
}
