/* Explain: Base reset and typography defaults with custom cursors for links and text input. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    margin: 0;
}

::selection {
    background: var(--text-color);
    color: var(--primary-color);
}

img {
    max-width: 100%;
}

[id] {
    scroll-margin-top: 90px;
}

/* Custom cursors for the whole club (default and shop themes). */
:root {
    --cursor-striped: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cpattern id='p' width='6' height='6' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='3' height='6' fill='%23ffcb05'/%3E%3Crect x='3' width='3' height='6' fill='%23ff7a00'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M4 2 L4 24 L10 18 L13 25 L16 24 L13 17 L20 17 Z' fill='url(%23p)' stroke='%231a1400' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
    --cursor-striped-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cdefs%3E%3Cpattern id='t' width='6' height='6' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='3' height='6' fill='%23ffcb05'/%3E%3Crect x='3' width='3' height='6' fill='%23ff7a00'/%3E%3C/pattern%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='%231a1400' stroke-width='5'/%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='url(%23t)' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 8 12, text;
    --cursor-striped-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cpattern id='ph' width='6' height='6' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='3' height='6' fill='%23ffcb05'/%3E%3Crect x='3' width='3' height='6' fill='%23ff7a00'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M10 1 L10 9 L7 9 L7 22 L17 22 L17 14 L20 14 L20 6 L14 6 L14 1 Z' fill='url(%23ph)' stroke='%231a1400' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 10 1, pointer;

    /* Neon */
    --cursor-neon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M4 2 L4 24 L10 18 L13 25 L16 24 L13 17 L20 17 Z' fill='%2300ffff' stroke='%23ff00ff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
    --cursor-neon-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='%23ff00ff' stroke-width='5'/%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='%2300ffff' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 8 12, text;
    --cursor-neon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M10 1 L10 9 L7 9 L7 22 L17 22 L17 14 L20 14 L20 6 L14 6 L14 1 Z' fill='%2300ffff' stroke='%23ff00ff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 10 1, pointer;

    /* Dark */
    --cursor-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M4 2 L4 24 L10 18 L13 25 L16 24 L13 17 L20 17 Z' fill='%23000000' stroke='%23ff0000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
    --cursor-dark-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='%23ff0000' stroke-width='5'/%3E%3Cpath d='M3 2 H13 M8 2 V22 M3 22 H13' stroke='%23000000' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 8 12, text;
    --cursor-dark-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M10 1 L10 9 L7 9 L7 22 L17 22 L17 14 L20 14 L20 6 L14 6 L14 1 Z' fill='%23000000' stroke='%23ff0000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 10 1, pointer;

    /* Pixel */
    --cursor-pixel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M2 2 h2 v2 h2 v2 h2 v2 h2 v2 h2 v2 h-6 v6 h-2 v-6 h-2 v-6 z' fill='%2300ff00' stroke='%23ffffff' stroke-width='2' shape-rendering='crispEdges'/%3E%3C/svg%3E") 2 2, auto;
    --cursor-pixel-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M4 4 h8 v4 h-2 v8 h2 v4 h-8 v-4 h2 v-8 h-2 z' fill='%2300ff00' stroke='%23ffffff' stroke-width='2' shape-rendering='crispEdges'/%3E%3C/svg%3E") 8 12, text;
    --cursor-pixel-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M10 2 h4 v4 h4 v6 h4 v10 h-14 v-10 h2 v-4 h-4 v-2 h4 z' fill='%2300ff00' stroke='%23ffffff' stroke-width='2' shape-rendering='crispEdges'/%3E%3C/svg%3E") 10 2, pointer;

    --cursor-current: var(--cursor-striped);
    --cursor-current-text: var(--cursor-striped-text);
    --cursor-current-hover: var(--cursor-striped-hover);
}

html.cursor-theme-neon {
    --cursor-current: var(--cursor-neon);
    --cursor-current-text: var(--cursor-neon-text);
    --cursor-current-hover: var(--cursor-neon-hover);
}

html.cursor-theme-dark {
    --cursor-current: var(--cursor-dark);
    --cursor-current-text: var(--cursor-dark-text);
    --cursor-current-hover: var(--cursor-dark-hover);
}

html.cursor-theme-pixel {
    --cursor-current: var(--cursor-pixel);
    --cursor-current-text: var(--cursor-pixel-text);
    --cursor-current-hover: var(--cursor-pixel-hover);
}

html,
body {
    cursor: var(--cursor-current), auto;
}

a,
button,
[role="button"],
summary,
select,
label,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"] {
    cursor: var(--cursor-current-hover), pointer;
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea {
    cursor: var(--cursor-current-text), text;
}