/* =========================================================
   Pro Carp Community — polish
   Deeper shadows, sharper shapes, bigger type and motion.
   ========================================================= */

:root {
    --shadow-lift: 0 44px 90px -48px rgba(9, 16, 10, .68);
    --shadow-glow: 0 22px 54px -24px rgba(201, 168, 106, .78);
    --ease-out: cubic-bezier(.25, .8, .25, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-image:
        radial-gradient(circle at 8% 0%, rgba(201, 168, 106, .06), transparent 36%),
        radial-gradient(circle at 94% 18%, rgba(130, 151, 127, .06), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(12, 21, 14, .02), transparent 60%);
    background-attachment: fixed;
    animation: page-in .6s var(--ease-out) both;
}

@keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

::selection {
    background: var(--gold);
    color: var(--forest);
}

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

h1,
h2,
h3 {
    text-wrap: balance;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--rust));
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

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

.site-header {
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 15, 10, .985);
    box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .8);
}

.primary-nav > a::after,
.nav-group-toggle::after {
    transition: transform .25s var(--ease-out), opacity .25s ease;
}

.primary-nav > a:hover,
.primary-nav > a.is-active {
    text-shadow: 0 0 24px rgba(201, 168, 106, .35);
}

.nav-group-toggle:hover svg {
    transform: translateY(2px);
}

.nav-group.is-open .nav-group-toggle:hover svg {
    transform: rotate(180deg) translateY(2px);
}

.user-chip,
.header-signin {
    transition: transform .25s var(--ease-out), color .2s ease, border-color .2s ease;
}

.user-chip:hover,
.header-signin:hover {
    transform: translateY(-2px);
}

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

.button {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    isolation: isolate;
    transition:
        background .24s ease,
        color .24s ease,
        border-color .24s ease,
        transform .3s var(--ease-spring),
        box-shadow .3s ease;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .34) 48%, transparent 76%);
    transform: translateX(-130%) skewX(-14deg);
    transition: transform .6s var(--ease-out);
    pointer-events: none;
}

.button:hover::after {
    transform: translateX(130%) skewX(-14deg);
}

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

.button--gold:hover {
    box-shadow: var(--shadow-glow);
}

.button--dark:hover {
    box-shadow: 0 22px 40px -24px rgba(9, 16, 10, .8);
}

.button--outline:hover,
.button--outline-dark:hover,
.button--ghost:hover {
    box-shadow: 0 16px 34px -26px rgba(9, 16, 10, .6);
}

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

.button:active {
    transform: translateY(0) scale(.985);
}

.button:disabled,
.button.is-disabled {
    transform: none;
}

.button:disabled::after,
.button.is-disabled::after {
    display: none;
}

/* Flip button — data-front / data-back */

.btn-flip {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    perspective: 700px;
    transform-style: preserve-3d;
}

.btn-flip::before,
.btn-flip::after {
    content: attr(data-front);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: var(--forest);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    background: var(--gold);
    backface-visibility: hidden;
    transition: transform .42s var(--ease-out), opacity .32s ease;
}

.btn-flip::after {
    content: attr(data-back);
    background: var(--gold-light);
    opacity: 0;
    transform: rotateX(-90deg) translateY(48%);
}

.btn-flip:hover::before {
    opacity: 0;
    transform: rotateX(90deg) translateY(-48%);
}

.btn-flip:hover::after {
    opacity: 1;
    transform: rotateX(0) translateY(0);
}

.btn-flip.button--dark::before {
    background: var(--forest);
    color: var(--paper);
}

.btn-flip.button--dark::after {
    background: var(--forest-3);
    color: var(--paper);
}

.btn-flip.button--outline-dark::before,
.btn-flip.button--outline-dark::after {
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
}

.btn-flip.button--outline-dark::after {
    background: var(--ink);
    color: var(--paper);
}

.btn-flip.button--small::before,
.btn-flip.button--small::after {
    padding: 0 18px;
}

.btn-flip.button--large::before,
.btn-flip.button--large::after {
    padding: 0 30px;
}

/* ---------- Type & links ---------- */

.section-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-kicker::before {
    width: 18px;
    height: 1px;
    background: currentColor;
    content: '';
    animation: kicker-grow .9s var(--ease-out) both;
}

@keyframes kicker-grow {
    from { width: 0; opacity: 0; }
    to { width: 18px; opacity: 1; }
}

.text-link {
    transition: color .2s ease, border-color .2s ease, gap .25s ease;
}

.text-link:hover {
    gap: 8px;
}

.club-head h1,
.profile-identity h1,
.section-head h2,
.donate-intro h2,
.empty-state h1,
.empty-state .empty-state-title,
.empty-state h3 {
    text-shadow: 0 22px 44px rgba(9, 16, 10, .12);
}

.club-head h1 em,
.profile-identity h1 em {
    background: linear-gradient(100deg, var(--gold-light), var(--gold), var(--gold-deep));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-pan 6s ease-in-out infinite alternate;
}

@keyframes gold-pan {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* ---------- Panels & cards ---------- */

.club-panel,
.sponsor-card,
.competition-card,
.event-card,
.winner-card,
.donate-receipt,
.donate-totals {
    border-radius: 3px;
}

.club-panel {
    transition: box-shadow .35s ease, transform .35s var(--ease-out), border-color .35s ease;
}

.club-panel:hover {
    border-color: rgba(201, 168, 106, .42);
    box-shadow: var(--shadow-lift);
}

.sponsor-card,
.competition-card,
.winner-card,
.event-card {
    will-change: transform;
}

.sponsor-card:hover,
.competition-card:hover,
.winner-card:hover {
    transform: translateY(-7px) scale(1.006);
}

.event-card:hover {
    transform: translateY(-5px);
}

.sponsor-card h3,
.competition-card h3,
.winner-card h3,
.event-card h3 {
    transition: color .25s ease, letter-spacing .3s ease;
}

.sponsor-card:hover h3,
.competition-card:hover h3,
.event-card:hover h3 {
    letter-spacing: .035em;
}

.sponsor-card::before,
.competition-card::before {
    transition: transform .5s var(--ease-out);
    transform-origin: 0 50%;
}

.sponsor-card:hover::before,
.competition-card:hover::before {
    transform: scaleX(1.08);
}

/* Staggered reveal */

[data-reveal].is-revealed {
    animation-duration: .78s;
    animation-timing-function: var(--ease-out);
}

.sponsor-grid > [data-reveal]:nth-child(2),
.competition-grid > [data-reveal]:nth-child(2),
.winner-grid > [data-reveal]:nth-child(2),
.event-list > [data-reveal]:nth-child(2) {
    animation-delay: .07s;
}

.sponsor-grid > [data-reveal]:nth-child(3),
.competition-grid > [data-reveal]:nth-child(3),
.winner-grid > [data-reveal]:nth-child(3),
.event-list > [data-reveal]:nth-child(3) {
    animation-delay: .14s;
}

.sponsor-grid > [data-reveal]:nth-child(4),
.competition-grid > [data-reveal]:nth-child(4),
.winner-grid > [data-reveal]:nth-child(4),
.event-list > [data-reveal]:nth-child(4) {
    animation-delay: .21s;
}

.sponsor-grid > [data-reveal]:nth-child(5),
.competition-grid > [data-reveal]:nth-child(5),
.winner-grid > [data-reveal]:nth-child(5),
.event-list > [data-reveal]:nth-child(5) {
    animation-delay: .28s;
}

.sponsor-grid > [data-reveal]:nth-child(6),
.competition-grid > [data-reveal]:nth-child(6),
.winner-grid > [data-reveal]:nth-child(6),
.event-list > [data-reveal]:nth-child(6) {
    animation-delay: .35s;
}

/* ---------- Pills, avatars, capacity ---------- */

.status-pill,
.price-pill,
.staff-chip,
.you-chip,
.received-chip {
    border-radius: 999px;
    transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}

.status-pill:hover,
.price-pill:hover,
.staff-chip:hover {
    transform: translateY(-1px);
}

.avatar {
    box-shadow: inset 0 0 0 1px rgba(9, 16, 10, .12), 0 10px 22px -14px rgba(9, 16, 10, .5);
    transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}

.avatar:hover {
    transform: scale(1.06);
}

.avatar-stack:hover .avatar {
    transform: translateY(-3px);
}

.avatar-stack .avatar:nth-child(2) { transition-delay: .03s; }
.avatar-stack .avatar:nth-child(3) { transition-delay: .06s; }
.avatar-stack .avatar:nth-child(4) { transition-delay: .09s; }
.avatar-stack .avatar:nth-child(5) { transition-delay: .12s; }

.capacity-bar {
    height: 5px;
    box-shadow: inset 0 1px 2px rgba(9, 16, 10, .12);
}

.capacity-bar span {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
    background-size: 220% 100%;
    animation: capacity-flow 4s linear infinite;
}

@keyframes capacity-flow {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* ---------- Winner likes ---------- */

.kudos-button {
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .3s var(--ease-spring);
}

.kudos-button:hover {
    transform: translateY(-2px) scale(1.03);
}

.kudos-button.is-active {
    box-shadow: 0 10px 24px -16px rgba(189, 91, 56, .8);
}

.kudos-button.just-liked svg {
    animation: heart-pop .5s var(--ease-spring);
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.45) rotate(-8deg); }
    65% { transform: scale(.92) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ---------- Forms ---------- */

.input,
.select,
.textarea {
    border-radius: 3px;
    transition: border-color .2s ease, box-shadow .25s ease, background .2s ease, transform .2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 168, 106, .16), 0 12px 30px -22px rgba(9, 16, 10, .55);
    transform: translateY(-1px);
}

.donate-kind-inner {
    border-radius: 3px;
}

.donate-kind input:checked + .donate-kind-inner {
    animation: choice-pop .35s var(--ease-spring);
}

@keyframes choice-pop {
    0% { transform: scale(.97); }
    60% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

/* ---------- Motion accents ---------- */

.club-head-glow {
    will-change: transform, opacity;
}

.sponsor-mark {
    animation: mark-float 6s ease-in-out infinite alternate;
}

.sponsor-card:nth-child(2) .sponsor-mark { animation-delay: -2s; }
.sponsor-card:nth-child(3) .sponsor-mark { animation-delay: -4s; }

@keyframes mark-float {
    from { transform: translateY(0) rotate(-2deg); }
    to { transform: translateY(-5px) rotate(2deg); }
}

.winner-place {
    background: linear-gradient(100deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-pan 5s ease-in-out infinite alternate;
}

.event-day {
    text-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

.flash {
    animation: flash-drop .5s var(--ease-out) both;
}

@keyframes flash-drop {
    from { opacity: 0; transform: translateY(-18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle continuous drift on the profile halo */

.profile-head::after {
    animation: halo-drift 14s ease-in-out infinite alternate;
}

@keyframes halo-drift {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: .7; }
    to { transform: translate3d(-30px, -24px, 0) scale(1.08); opacity: 1; }
}

/* ---------- Scrollbar ---------- */

@supports (scrollbar-color: auto) {
    html {
        scrollbar-color: var(--gold-deep) rgba(12, 21, 14, .12);
        scrollbar-width: thin;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(12, 21, 14, .08);
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--gold-deep);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
    background-clip: padding-box;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 900px) {
    .btn-flip::before,
    .btn-flip::after {
        padding: 0 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-head-glow,
    .sponsor-mark,
    .profile-head::after,
    .capacity-bar span,
    .club-head h1 em,
    .winner-place {
        animation: none !important;
    }

    .btn-flip::before,
    .btn-flip::after {
        transition: none;
    }
}


.feed-card, .challenge-card, .market-card, .messages-sidebar, .messages-thread, .board-panel, .board-podium-card, .improved-card, .kids-card, .app-step, .app-req-card {
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.feed-card:hover, .challenge-card:hover, .market-card:hover, .kids-card:hover, .app-step:hover, .app-req-card:hover,
.board-podium-card:hover, .improved-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}


/* ---------- Role colours ---------- */

/* The same three colours the role chips already use, worn as a ring and a glow
   so a member's rank reads before the label does. Owner green, admin blue,
   moderator and help desk red. Anglers have no class at all and keep the plain
   avatar — most of a club is anglers, and a page of glowing rings would say
   nothing. */
.avatar--role-owner {
    box-shadow: 0 0 0 2px rgba(74, 160, 106, .95), 0 0 22px rgba(74, 160, 106, .45);
}

.avatar--role-admin {
    box-shadow: 0 0 0 2px rgba(88, 150, 210, .95), 0 0 22px rgba(88, 150, 210, .45);
}

.avatar--role-mod,
.avatar--role-helpdesk {
    box-shadow: 0 0 0 2px rgba(200, 84, 84, .95), 0 0 22px rgba(200, 84, 84, .45);
}

/* ---------- On the bank now ---------- */

.online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 12px;
}

.online-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.online-card:hover {
    transform: translateY(-2px);
    border-color: var(--muted);
}

.online-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.online-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-role,
.online-seen {
    color: var(--muted);
    font-size: 11px;
}

.online-role {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.online-count {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.online-empty {
    color: var(--muted);
    font-size: 14px;
}

/* The key under the page title. Inherit the text colour and tint only the
   background, so the chips read on the cream theme and the dark one alike. */
.role-key {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .92em;
    font-weight: 700;
    white-space: nowrap;
}

.role-key--owner {
    background: rgba(74, 160, 106, .2);
    box-shadow: inset 0 0 0 1px rgba(74, 160, 106, .5);
}

.role-key--admin {
    background: rgba(88, 150, 210, .2);
    box-shadow: inset 0 0 0 1px rgba(88, 150, 210, .5);
}

.role-key--mod {
    background: rgba(200, 84, 84, .2);
    box-shadow: inset 0 0 0 1px rgba(200, 84, 84, .5);
}

/* ---------- Change a username ---------- */

.username-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.username-search .field {
    flex: 1 1 260px;
    margin: 0;
}

.username-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.username-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.username-who {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    min-width: 0;
}

.username-who-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.username-who-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.username-who-handle {
    color: var(--muted);
    font-size: 12px;
}

.username-field {
    flex: 1 1 200px;
    margin: 0;
}

/* =========================================================
   Effects, second pass
   Motion that carries a meaning: something is new, something is
   about to happen, or something is yours. Everything here is
   turned off under prefers-reduced-motion at the bottom.
   ========================================================= */

/* ---------- Reveal stagger for the grids that never had one ---------- */

/* The stagger only ever covered the sponsor, competition, winner and event
   grids, so the catch grid — the one members look at most — arrived all at once.
   Same rhythm, applied to every repeating grid on the site. */
.catch-grid > [data-reveal]:nth-child(2),
.badges-grid > [data-reveal]:nth-child(2),
.honours-grid > [data-reveal]:nth-child(2),
.feature-grid > [data-reveal]:nth-child(2),
.legacy-grid > [data-reveal]:nth-child(2),
.market-grid > [data-reveal]:nth-child(2),
.challenge-grid > [data-reveal]:nth-child(2),
.event-album-grid > [data-reveal]:nth-child(2) {
    animation-delay: .07s;
}

.catch-grid > [data-reveal]:nth-child(3),
.badges-grid > [data-reveal]:nth-child(3),
.honours-grid > [data-reveal]:nth-child(3),
.feature-grid > [data-reveal]:nth-child(3),
.legacy-grid > [data-reveal]:nth-child(3),
.market-grid > [data-reveal]:nth-child(3),
.challenge-grid > [data-reveal]:nth-child(3),
.event-album-grid > [data-reveal]:nth-child(3) {
    animation-delay: .14s;
}

.catch-grid > [data-reveal]:nth-child(4),
.badges-grid > [data-reveal]:nth-child(4),
.honours-grid > [data-reveal]:nth-child(4),
.feature-grid > [data-reveal]:nth-child(4),
.market-grid > [data-reveal]:nth-child(4),
.challenge-grid > [data-reveal]:nth-child(4),
.event-album-grid > [data-reveal]:nth-child(4) {
    animation-delay: .21s;
}

.catch-grid > [data-reveal]:nth-child(5),
.badges-grid > [data-reveal]:nth-child(5),
.honours-grid > [data-reveal]:nth-child(5),
.market-grid > [data-reveal]:nth-child(5),
.challenge-grid > [data-reveal]:nth-child(5),
.event-album-grid > [data-reveal]:nth-child(5) {
    animation-delay: .28s;
}

.catch-grid > [data-reveal]:nth-child(n + 6),
.badges-grid > [data-reveal]:nth-child(n + 6),
.honours-grid > [data-reveal]:nth-child(n + 6),
.market-grid > [data-reveal]:nth-child(n + 6),
.challenge-grid > [data-reveal]:nth-child(n + 6),
.event-album-grid > [data-reveal]:nth-child(n + 6) {
    animation-delay: .35s;
}

/* ---------- Text links: a gold rule that grows ---------- */

/* The link already carries an underline. This puts a gold one over it that
   grows from the left, so "see the catch" pulls rather than just changing
   colour. The arrow beside it nudges out at the same time. */
.text-link {
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .32s var(--ease-out);
    pointer-events: none;
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: scaleX(1);
}

.text-link:hover span,
.text-link:focus-visible span {
    transform: translateX(4px);
}

/* ---------- Cards: a gold edge when you reach for one ---------- */

/* The lift was already there. The edge is the new part: a hairline of gold
   appears around anything you can act on, so a card reads as a control rather
   than a picture. */
.club-panel,
.event-card,
.event-album-card,
.honour-card,
.badge-card,
.feed-card,
.challenge-card,
.market-card {
    position: relative;
    transition:
        transform .32s var(--ease-out),
        box-shadow .32s var(--ease-out),
        border-color .32s ease;
}

.club-panel::after,
.event-card::after,
.event-album-card::after,
.honour-card::after,
.badge-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color .32s ease;
}

.club-panel:hover::after,
.event-card:hover::after,
.event-album-card:hover::after,
.honour-card:hover::after,
.badge-card:hover::after {
    border-color: rgba(201, 168, 106, .55);
}

/* ---------- Photos: a slow breath rather than a jump ---------- */

.event-photo img,
.honour-photo img,
.event-album-card img {
    transition: transform .7s var(--ease-out), filter .5s ease;
}

.event-photo:hover img,
.honour-card:hover .honour-photo img {
    transform: scale(1.03);
}

/* A warm bloom on the catch photo. The dark gradient was always there; this
   lets it ease off on hover, so the fish brightens as you reach for it. */
.catch-media::after {
    transition: opacity .45s ease;
}

.catch-card:hover .catch-media::after {
    opacity: .55;
}

/* ---------- Grain on the dark head ---------- */

/* A flat dark panel is the one place the site can look cheap. A fine noise at
   three per cent reads as paper rather than pixels, and costs one decoded image
   for the whole page. Only .club-head is used here: the other dark panels
   (.legacy, .cta-panel, .feature-card--chat) already spend their ::before on
   something else, and overwriting that to add texture would be a bad trade. */
.club-head {
    isolation: isolate;
}

.club-head::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: .04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* ---------- Disclosures: a chevron that turns ---------- */

/* <details> gave us a native marker that looks different in every browser. The
   marker is removed and replaced with one that rotates, so opening a section
   reads the same everywhere. */
.event-details > summary,
.event-paid-list > summary {
    display: flex;
    align-items: center;
    list-style: none;
}

.event-details > summary::-webkit-details-marker,
.event-paid-list > summary::-webkit-details-marker {
    display: none;
}

.event-details > summary::after,
.event-paid-list > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .28s var(--ease-out);
    opacity: .7;
}

.event-details[open] > summary::after,
.event-paid-list[open] > summary::after {
    transform: rotate(-135deg) translateY(-1px);
}

/* ---------- Scrollbar ---------- */

/* The default scrollbar is the loudest thing on a dark page. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 106, .45) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    background-color: rgba(201, 168, 106, .45);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(201, 168, 106, .7);
}

/* ---------- Everything above, switched off ---------- */

@media (prefers-reduced-motion: reduce) {
    .text-link::after,
    .club-panel,
    .event-card,
    .event-album-card,
    .honour-card,
    .badge-card,
    .club-panel::after,
    .event-card::after,
    .event-album-card::after,
    .honour-card::after,
    .badge-card::after,
    .event-photo img,
    .honour-photo img,
    .event-album-card img,
    .catch-media::after,
    .event-details > summary::after,
    .event-paid-list > summary::after {
        transition: none;
        animation: none;
    }

    .text-link:hover span,
    .text-link:focus-visible span {
        transform: none;
    }

    .event-photo:hover img,
    .honour-card:hover .honour-photo img {
        transform: none;
    }
}
