:root {
    --bg: #f3f5f7;
    --panel: #ffffff;
    --ink: #17191c;
    --muted: #667085;
    --line: #d9dee6;
    --brand: #b9232a;
    --brand-dark: #000000;
    --accent: #2563eb;
    --green: #198754;
    --green-soft: #e8f6ee;
    --red-soft: #f9e1e4;
    --red: #b4232d;
    --yellow: #fecd00;
    --yellow-smoke: rgba(254, 205, 0, 0.1);
    --white: #ffffff;
    --smoke: #b9b9b9;
    --night: #050505;
    --night-panel: #0c0c0d;
    --night-panel-soft: #151515;
    --night-border: rgba(255, 255, 255, .14);
    --night-muted: #b8b8b8;
    
    --shadow: 0 18px 50px rgba(15, 23, 42, .12);
    --font-heading: "Bebas Neue", Impact, sans-serif;
    --font-menu: "Oswald", Arial Narrow, sans-serif;
    --font-body: "Barlow Condensed", Arial Narrow, sans-serif;
    --font-graffiti: "Sedgwick Ave Display", "Bebas Neue", Impact, sans-serif;
    /* --font-sora: "Sora", Arial, sans-serif; */
}

* {
    box-sizing: border-box;

}

body {
    margin: 0;
    color: var(--ink);
    background: #8b8b87 url("images/concrete.png") center top repeat;
    font-family: var(--font-body);
    font-size: 18px;
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

body::before {
    content: none;
}

a {
    color: inherit;
}

.site-shell {
    position: relative;
    width: min(1120px, calc(100% - 48px));
    min-height: calc(100vh - 64px);
    margin: 32px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--night);
    box-shadow: 0 0 0 1px rgb(240 240 240 / 45%), 0 24px 70px rgba(0, 0, 0, 1);
}

.site-header-nav {
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(32px, 6vw, 56px);
    padding-top: 19px;
    z-index: 2;
    position: relative;
    background: linear-gradient(to bottom,  black 0%, black 50%, transparent 100%);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
}

.nav-list-auth,
.nav-list-guest {
    display: flex;
    column-gap: 10px;
}

.site-header-nav a {
    color: var(--white);
    text-decoration: none;
    line-height: 140%;
    padding: 5px 10px;
    text-transform: uppercase;
    position: relative;
    display: block;
}

.site-header-nav a.active {
    color: var(--yellow);
}

.site-header-nav a::before {
    position: absolute;
    bottom: 0;
    content: ' ';
    border: 1px solid var(--white);
    width: 0px;
    left: calc(50%);
    opacity: 0;
    transition: .2s width, .2s left;
}

.site-header-nav a:hover::before {
    width: 20px;
    left: calc(50% - 10px);
    opacity: 1;
}

.site-header-nav a.active::before {
    border: 1px solid var(--yellow);
    width: 20px;
    left: calc(50% - 10px);
}

a.nav-cta {
    background: var(--yellow);
    color: black;
    padding: 5px 20px;
    font-weight: 700;
}

a.nav-cta:hover {
    opacity: .9;
}

a.nav-cta::before {
    display: none;
}

.site-header-banner {
    background-image: url('images/headerFull.webp');
    background-size: cover;
    aspect-ratio: 1921/819;
    position: relative;
    z-index: 0;
}

.site-header-banner::before {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 232px;
    top: -69px;
    left: 0;
    z-index: 1;
    background-image:  url('images/fired.png');
    background-size: auto 166px;
    background-repeat: repeat-x;
    background-position: cover;
}

/*
.site-header-banner::after {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, black 90%);
}*/

.site-header-banner-after {
    width: 100%; 
    bottom: 0;
    position: relative;
    padding: 20px 40px 32px 40px;
    background:
    linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 18%, transparent 82%, rgba(0, 0, 0, .24)), 
    repeating-linear-gradient(-32deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 9px), repeating-linear-gradient(-18deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 11px), rgba(0, 0, 0);
}

.site-header-banner-after {
    color: var(--smoke);
    display: flex;
    flex-flow: column;
    border-top: 1px solid var(--yellow-smoke);
    border-bottom: 1px solid var(--yellow-smoke);
}

.site-header-slogan {
    text-align: center;
    line-height: 140%;
    padding: 0px 40px 10px 40px;
    font-size: 22px;
    text-shadow: 0 0 1px black, 0 0 10px black;
    user-select: none;
}

.site-header-slogan-btns {
    display: flex;
    align-content: center;
    justify-content: center;
    column-gap: 20px
}

.btn {
    background: var(--yellow);
    color: black;
    padding: 5px 20px;
    font-weight: 700;
    text-decoration: none;
    line-height: 140%;
    text-transform: uppercase;
    position: relative;
    font-size: 18px;
    display: flex;
    align-items: center;
    width: fit-content;
    height: fit-content;
    white-space: nowrap;
    font-family: var(--font-body);
    border: none;
    font-size: 18px;
}

.btn:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--smoke);
}

.btn-outline:hover {
    color: white;
}

.btn-outline::after {
    content: ' ';
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    position: absolute;
    left: 0;
    top: 0;
    mask-image: url('images/patriot-grunge-mask.svg');
    -webkit-mask-image: url('images/patriot-grunge-mask.svg');
    mask-size: cover;
    -webkit-mask-size: cover;
    border: 1px solid var(--smoke);
}

.btn-outline:hover::after {
    border: 1px solid var(--white);
}

h1,
h2,
h3,
.button,
.schedule-toolbar strong {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: .02em;
}

.site-main {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(143, 143, 143, 0.18), transparent 24rem),
        radial-gradient(circle at 85% 16%, rgba(254, 205, 0, .09), transparent 20rem),
        repeating-linear-gradient(-32deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 10px),
        var(--night);
    color: var(--white);
}

.toast-message,
.form-error,
.modal-alert {
    border-radius: 0px;
    padding: 18px 32px;
    margin-bottom: 18px;
    font-weight: 600;
}

.toast-message.success {
    background: rgba(25, 135, 84, .18);
    color: #98f0bd; 
}

.toast-message.error {
    background: rgba(185, 35, 42, .22);
    color: #ffb4b9;
}

.form-error,
.modal-alert.error {
    background: rgba(185, 35, 42, .22);
    color: #ffb4b9;
}


.auth-panel {
    height: 100%;
    border-radius: 10px;
}



.site-main > .toast-message {
    margin: 0px
}

.hero-carousel {
    overflow: hidden;
    width: 100%;
    min-height: 460px;
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 460px;
    align-items: flex-end;

    background-size: cover;
    background-position: center
}

.hero-slide.active {
    display: flex;
}

.hero-carousel.flickity-enabled .hero-slide {
    display: flex;
    width: 100%;
}

.hero-carousel .flickity-viewport,
.hero-carousel .flickity-slider {
    width: 100%;
    min-height: 460px;
}

.hero-carousel .flickity-button {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .9);
    color: #17191c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    display: none;
}

.hero-carousel .flickity-button:hover {
    background: #fff;
}

.hero-carousel .flickity-button:disabled {
    opacity: 0;
}

.hero-carousel .flickity-page-dots {
    left: 0;
    right: 0;
    bottom: 18px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.hero-carousel .flickity-page-dots .dot {
    width: 28px;
    height: 4px;
    margin: 0 4px;
    border-radius: 999px;
    background: #fff;
    opacity: .5;
}

.hero-carousel .flickity-page-dots .dot.is-selected {
    background: var(--brand);
    opacity: 1;
}

.hero-slide > div {
    position: relative;
    max-width: 620px;
    color: #fff;
}

.hero-slide h1,
.hero-simple h1,
.member-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.02;
}

.hero-slide h1 {
    font-weight: 500;
}

.graffiti-text,
.text-graffiti,
.red-graffiti {
    font-family: var(--font-graffiti);
    color: var(--brand);
    font-weight: 400;
    letter-spacing: 0;
}

.hero-simple p,
.member-hero p,
.page-headline {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.4;
}

.hero-slide p, {
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1.4
}

.hero-slide p {
    color: rgba(255, 255, 255, .86);
}

.hero-simple,
.member-hero {
    padding: clamp(32px, 6vw, 56px);
    text-align: center;
}

.member-hero {
    margin: 0 0 24px;
}

.member-hero > p {
    margin: 0 0 6px;
    color: var(--yellow);
    font-weight: 700;
    line-height: 1.2;
}

.member-account {
    position: relative;
    padding: clamp(36px, 7vw, 72px) clamp(24px, 6vw, 64px);
    color: var(--white);
    overflow: hidden;
}

.member-account::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 52%, rgba(254, 205, 0, .08)),
        repeating-linear-gradient(-32deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 10px);
    pointer-events: none;
}

.member-account > * {
    position: relative;
    z-index: 1;
}

.member-account-header {
    margin-bottom: clamp(24px, 4vw, 38px);
}

.member-account-header .page-kicker {
    margin: 0 0 8px;
    color: var(--yellow);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.member-account-header h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1;
    color: var(--white);
}

.member-alert {
    display: grid;
    gap: 6px;
    max-width: 760px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(185, 35, 42, .65);
    background: linear-gradient(90deg, rgba(185, 35, 42, .26), rgba(185, 35, 42, .08));
    color: #ffd6d8;
}

.member-alert strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.member-stats {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.member-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--night-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
        rgba(0, 0, 0, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.member-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--yellow);
    font-family: var(--font-menu);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.member-card strong {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;
}

.member-card p {
    margin: 12px 0 0;
    color: var(--night-muted);
    line-height: 1.35;
}

.member-card-program {
    border-color: rgba(254, 205, 0, .45);
}

.member-card-visits strong {
    color: var(--yellow);
    font-size: clamp(46px, 6vw, 72px);
}

.member-account-actions {
    display: flex;
    margin: 0 0 24px;
}

.member-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    color: var(--night-muted);
    font-family: var(--font-menu);
    font-size: 15px;
    text-transform: uppercase;
}

.member-quick-links a {
    color: inherit;
    text-decoration: none;
}

.member-quick-links a:hover {
    color: var(--yellow);
}

.member-quick-links a + a::before {
    content: "|";
    margin: 0 10px;
    color: rgba(255, 255, 255, .28);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    background: var(--night-panel-soft);
    color: var(--white);
    border: 1px solid var(--night-border);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: var(--yellow);
    color: #000;
    border-color: var(--yellow);
    text-transform: uppercase;
}

.button.primary:hover {
    background: var(--white);
    color: #000;
}

.button.large {
    min-height: 54px;
    padding-inline: 26px;
}

.button.ghost {
    background: transparent;
    color: var(--white);
}

.page-section {
    margin: 0;
    padding: clamp(32px, 6vw, 56px);
    margin-top: clamp(16px, 3vw, 28px) !important;
    color: var(--white);
}

.page-section.narrow {
    max-width: 920px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 34px;
    border-bottom: 1px solid var(--night-border);
    padding-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 6vw, 56px);
    color: var(--white);
}

.page-header .page-kicker {
    margin: 0 0 6px;
    color: var(--yellow);
    font-weight: 700;
    line-height: 1.2;
}

.content-block {
    margin: 30px 0;
}

.rich-text {
    line-height: 1.75;
    color: var(--night-muted);
    font-size: 1.08rem;
}

[data-slug="kontakt"] .rich-text p:has(img) {
    display: flex;
    gap: 5px;
}

[data-slug="kontakt"] .rich-text p a:has(img) {
    display: inline-block;
}

.rich-text h2,
.rich-text h3 {
    color: var(--white);
    line-height: 1.2;
    margin: 1.6em 0 .6em;
}

.rich-text a {
    color: var(--yellow);
}

.rich-text p {
    margin: 0 0 1em;
}

.image-block {
    text-align: center;
}

.image-block img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    border: 1px solid var(--night-border);
    border-radius: 0;
}

.image-block figcaption,
.gallery-grid figcaption {
    margin-top: 9px;
    color: var(--night-muted);
    font-size: .9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--night-border);
    border-radius: 0;
}

.attachment-list {
    display: grid;
    gap: 10px;
}

.attachment-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--night-border);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    color: var(--white);
    text-decoration: none;
}

.attachment-list a:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.auth-panel {
    width: min(560px, 100%);
    margin: 64px auto 44px auto;
    padding: clamp(32px, 6vw, 56px);
    background: rgba(0, 0, 0, .68);
    border: 1px solid var(--night-border);
}

.auth-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 6vw, 56px);
    color: var(--white);
}

.auth-panel p {
    margin: 0 0 6px;
    color: var(--yellow);
    font-weight: 700;
}

.auth-panel span {
    color: var(--night-muted);
}

.stack-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.stack-form label,
.location-select {
    display: grid;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--night-border);
    border-radius: 0;
    padding: 12px 13px;
    font: inherit;
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    font-weight: 100;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-color: rgba(255, 255, 255, .06);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
}

select::-ms-expand {
    display: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(254, 205, 0, .45);
    border-color: var(--yellow);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    grid-template-columns: none !important;
    gap: 10px !important;
    font-weight: 500 !important;
}

.checkbox-row input {
    width: auto;
}

.form-actions,
.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dev-link {
    margin-top: 16px;
    overflow-wrap: anywhere;
}

.notice-panel {
    margin: 0;
    padding: clamp(32px, 6vw, 56px);
    background: rgba(0, 0, 0, .62);
    border: 1px solid var(--night-border);
}

.schedule-page {
    margin: 0;
    padding: clamp(32px, 6vw, 56px);
    color: var(--white);
}

.schedule-title,
.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.schedule-title h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 56px);
    color: var(--white);
}

.schedule-title p {
    margin: 0 0 5px;
    color: var(--yellow);
    font-weight: 700;
}

.view-switcher {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--night-border);
    border-radius: 0;
}

.view-switcher a {
    border-radius: 0;
    padding: 9px 11px;
    text-decoration: none;
    font-weight: 700;
    color: var(--night-muted);
}

.view-switcher a.active {
    background: var(--yellow);
    color: #000;
    box-shadow: none;
}

.schedule-toolbar {
    margin: 24px 0 14px;
}

.schedule-toolbar strong {
    border-radius: 0;
    background: var(--brand);
    color: var(--white);
    padding: 10px 16px;
}

.pager-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--night-border);
    border-radius: 0;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.pager-button:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.schedule-scroll {
    overflow: auto;
    border: 1px solid var(--night-border);
    border-radius: 0;
    max-height: 72vh;
    background: rgba(0, 0, 0, .4);
}

.day-schedule {
    border: 1px solid var(--night-border);
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, .42);
}

.day-schedule-head,
.day-slot {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
}

.day-schedule-head {
    background: rgba(255, 255, 255, .08);
    border-bottom: 1px solid var(--night-border);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
}

.day-schedule-head span,
.day-schedule-head strong {
    padding: 14px 12px;
}

.day-slot {
    min-height: 82px;
    border-bottom: 1px solid var(--night-border);
    cursor: pointer;
}

.day-slot:last-child {
    border-bottom: 0;
}

.day-slot:hover {
    outline: 2px solid #f5a400;
    outline-offset: -2px;
}

.day-slot-time {
    padding: 16px 12px;
    text-align: right;
    color: var(--night-muted);
    font-weight: 600;
}

.day-slot-body {
    padding: 12px;
    background: rgba(255, 255, 255, .035);
}

.day-slot.past .day-slot-body {
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .38);
}

.day-slot.closed .day-slot-body {
    background: rgba(185, 35, 42, .24);
    color: #ffb4b9;
}

.day-slot.no-access .day-slot-body {
    background: rgba(255, 255, 255, .05);
    color: #ffb4b9;
}

.day-slot.mine .day-slot-body {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.day-slot .occupancy-lines {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.person-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.schedule-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1280px;
    width: 100%;
}

.schedule-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #111;
    padding: 14px 12px;
    border-bottom: 1px solid var(--night-border);
    color: var(--white);
    text-align: left;
    font-family: var(--font-heading);
}

.schedule-table .sticky-day {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 118px;
}

.date-cell {
    vertical-align: top;
    background: #0d0d0e !important;
    border-right: 1px solid var(--night-border);
    color: var(--white);
}

.date-cell.weekend {
    background: rgba(185, 35, 42, .2) !important;
}

.date-cell span,
.date-cell strong {
    display: block;
}

.slot-cell {
    min-width: 150px;
    height: 132px;
    vertical-align: top;
    padding: 10px;
    border-right: 1px solid var(--night-border);
    border-bottom: 1px solid var(--night-border);
    background: rgba(255, 255, 255, .035);
    color: var(--white);
    cursor: pointer;
}

.slot-cell:hover {
    outline: 2px solid #f5a400;
    outline-offset: -2px;
}

.slot-cell small {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .42);
    font-size: .72rem;
}

.slot-cell.past {
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .38);
}

.slot-cell.closed {
    background: rgba(185, 35, 42, .24);
    color: #ffb4b9;
}

.slot-cell.no-access {
    background: rgba(255, 255, 255, .05);
    color: #ffb4b9;
}

.slot-cell.mine {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.state-label {
    display: inline-block;
    margin-top: 12px;
    font-size: .78rem;
}

.occupancy-lines {
    display: grid;
    gap: 3px;
    margin-bottom: 8px;
    font-size: .76rem;
}

.person-pill {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 4px;
    border-radius: 7px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-pill.me {
    background: var(--yellow);
    color: #000;
}

.person-pill em {
    display: block;
    font-style: normal;
    font-size: .65rem;
    opacity: .9;
}

.site-footer {
    display: grid;
    grid-template-columns: 3fr 3fr 2fr;
    gap: 22px;
    padding: 50px clamp(32px, 6vw, 56px);
    background: var(--brand-dark);
    color: #e6e9ee;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer h2 {
    margin: 0 0 10px;
    font-size: .92rem;
}

.site-footer p {
    margin: 0;
    color: #c1c7d0;
    line-height: 1.7;
}

.site-footer a {
    color: var(--yellow);
}

.site-footer a:hover {
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
    background: var(--yellow);
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.75;
    transition: .2s all;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: black;
    transition: .2s all;
}

.social-links a:hover svg {
    fill: var(--brand);
}

.social-links span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .9);
}

.modal-backdrop[hidden] {
    display: none;
}

.term-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid var(--yellow);
    border-radius: 0;
    background: var(--night-panel);
    color: var(--white);
    padding: 26px;
    box-shadow: 10px 24px 70px rgba(255, 255, 137, 0.25);
}



.term-modal h2 {
    margin: 0 36px 20px 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    border-radius: 0;
    width: 34px;
    height: 34px;
    background: var(--brand);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover {
    opacity: 0.9;
}

.friend-list:has(input),
.action-list:has(input) {
    padding: 10px;
    background: #2d2d2d;
    border-radius: 5px;
}

.action-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.action-list label,
.friend-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--night-border);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

.action-list label:hover,
.friend-list label:hover {
    border-color: var(--yellow);
}

.action-list input,
.friend-list input {
    width: auto;
}

.location-select {
    margin-bottom: 18px;
}

.friend-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    margin-bottom: 18px;
}

.friend-list small {
    color: var(--night-muted);
    margin-left: auto;
}


.hero-carousel .flickity-slider .hero-section {
    position: absolute;
    margin: clamp(16px, 6vw, 56px);
    padding: clamp(8px, 3vw, 28px);
    padding-right: 58px;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transform: rotate(-3deg);
}

.hero-carousel .flickity-slider .hero-section .h1 {
    display: grid;
    max-width: min(760px, calc(100vw - 80px));
}

.hero-carousel .flickity-slider .hero-section h1,
.hero-carousel .flickity-slider .hero-section .h1-shaddow {
    color: transparent;
    z-index: 1;
    position: relative;
    font-size: 80px;
    border-radius: 20px;
    width: 100%;
    padding: 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.02em;
    font-size: 80px;
    grid-area: 1 / 1;
    overflow-wrap: normal;
}

.hero-carousel .flickity-slider .hero-section h1 {
    color: transparent;
    background:
            url('images/white-scratch.webp')
            center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 80px;
    text-shadow: 0 0 0 rgba(234, 234, 234, 0.8);
}

.hero-carousel .flickity-slider .hero-section .h1-shaddow {
    color: black;
    text-shadow: 0 0 5px rgba(255,255,255,.25);
    transform: translateX(-5px);
}

.hero-slide {
    position: relative;
}

.hero-slide::before {
    position: absolute;
    top: 0;
    left: 0;
    content: ' ';
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 1;
    background: repeating-linear-gradient(-32deg, rgba(0, 0, 0, 0.025) 0 2px, transparent 2px 9px), rgba(0,0,0,.5);
}

.hero-carousel .flickity-slider .hero-section {
    z-index: 5;
}

.hero-carousel .flickity-slider .hero-section .h2 {
    position: relative;
}

.hero-carousel .flickity-slider .hero-section h2,
.hero-carousel .flickity-slider .hero-section .h2-shaddow {
    margin-top: -50px;
    font-family: var(--font-graffiti);
    text-transform: uppercase;
    z-index: 2;
    position: relative;
    font-style: italic;
    transform: translateX(3px);
    font-weight: 100;
    display: block;
    letter-spacing: .02em;
    font-size: 28px;
}

.hero-carousel .flickity-slider .hero-section h2 {
    color: transparent;
    background:
            url('images/red-scratch.webp')
            center/cover;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-carousel .flickity-slider .hero-section .h2-shaddow {
    color: black;
    position: absolute;
    font-size: 28px;
    text-shadow: 0 0 5px rgba(0,0,0,1);
    transform: translateX(-5px);
    top: 55px;
    left: 5px
}

.footer-supertitle,
.stat-supertitle,
.service-supertitle,
.hero-carousel .flickity-slider .hero-section .hero-supertitle {
    margin: 0 0;
    text-transform: uppercase;
    text-shadow: 0 0 1px black, 0 0 10px black;
    font-weight: 700;
    margin-left: 3px;
    font-family: var(--font-body);
    color: var(--red);
}

.footer-supertitle {
    margin-left: 0px;
    padding-bottom: 15px;
    color: var(--brand)
}

.hero-carousel .flickity-slider .hero-section h3 {
    margin: 4px 0 12px;
    color: #fff;
    font-family: var(--font-menu);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-shadow: 0 0 1px black, 0 0 10px black;
}

.logo {
    position: absolute;
    top: 50px;
    width: 100%;
    z-index: 50;
    width: fit-content;
    left: calc((100% - clamp(75px, 20vw, 200px))/2);
}

.logo img {
    display: block;
    left:  clamp(32px, 6vw, 56px);
    width: 250px;
    height: 250px;
    max-width:  clamp(75px, 20vw, 200px);
    max-height:  clamp(75px, 20vw, 200px);
    margin: auto;
}


@media (max-width: 760px) {
    .site-header-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 16px 22px 34px;
        background: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, .94) 68%, transparent 100%);
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        gap: 5px;
        width: 42px;
        height: 34px;
        padding: 6px 8px;
        color: var(--yellow);
        transform: translateX(-8px);
    }

    .nav-list-guest,
    .nav-list-auth {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .site-header-nav.open {
        padding-bottom: 22px;
        background: rgba(0, 0, 0, .96);
        border-bottom: 1px solid rgba(254, 205, 0, .28);
    }

    .site-header-nav.open .nav-list-guest,
    .site-header-nav.open .nav-list-auth {
        display: flex;
    }

    .site-header-nav.open .nav-list-guest {
        margin-top: 12px;
    }

    .site-header-nav.open .nav-list-auth {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .site-header-nav a {
        width: 100%;
        padding: 10px 0;
    }
    

    .site-header-nav a::before,
    .site-header-nav a.active::before,
    .site-header-nav a:hover::before {
        left: 0;
    }

    .site-header-nav a:hover::before,
    .site-header-nav a.active::before {
        width: 20px;
    }

    .site-header-nav a.nav-cta {
        width: fit-content;
        margin-top: 8px;
        padding: 5px 20px;
    }

    .site-main {
        padding: 0;
    }

    .member-account {
        padding: 34px 22px 42px;
    }

    .member-stats {
        grid-template-columns: 1fr;
    }

    .member-card {
        min-height: 0;
    }

    .member-quick-links {
        display: grid;
        gap: 8px;
    }

    .member-quick-links a + a::before {
        content: none;
    }

    .site-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        box-shadow: none;
    }

    .gallery-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .view-switcher {
        width: 100%;
        overflow-x: auto;
    }

    .view-switcher a {
        white-space: nowrap;
    }

    .hero-carousel,
    .hero-slide {
        width: 100%;
        max-width: 100%;
        min-height: 380px;
    }

    .hero-carousel .flickity-viewport,
    .hero-carousel .flickity-slider {
        width: 100%;
        min-height: 380px;
    }

    .hero-carousel .flickity-slider .page-section,
    .hero-carousel .page-section {
        width: calc(100% - 32px);
        max-width: none;
        margin: 16px;
        padding: 24px;
    }

    .term-modal {
        /* align-self: start; */
        max-height: calc(100vh - 24px);

    }

    .day-schedule-head,
    .day-slot {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .day-slot-time {
        padding-inline: 8px;
        font-size: .92rem;
    }
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 0;
    padding: 10px;
    background: black;
    user-select: none;
    border-top: 1px solid var(--yellow-smoke);
}


.stats {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 0;
    padding: 10px;
    background: black;
    user-select: none;
    border-top: 1px solid var(--yellow-smoke);
}

.stat img,
.service img {
    max-width: 100%;
    display: block;
}

.stat-header,
.service-header {
    margin: 0;
    padding: 0 48px;
}

.service {
    display: flex;
    justify-content: center;
    flex-flow: column;
}

.stat-header h2,
.service.service-header h2  {
    color: transparent;
    margin: 15px 0 0 0;
    z-index: 1;
    position: relative;
    font-size: 30px;
    border-radius: 20px;
    width: fit-content;
    background:
            url('images/white-scratch.webp')
            center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 0 rgba(255,255,255,.75);
}

.stat-header h3,
.service.service-header h3 {
    margin-top: -5px;
    margin-left: -3px;
    color: transparent;
    font-family: var(--font-graffiti);
    text-transform: uppercase;
    text-shadow: 0 0 1px black, 0 0 10px black, inset 0 0 1px blue;
    z-index: 2;
    position: relative;
    font-style: italic;
    transform: translateX(3px);
    font-weight: 100;
    font-size: 23px;
    background:
            url('images/red-scratch.webp')
            center/cover;
    -webkit-background-clip: text;
}

.service p {
    margin: -30px 0 0 0;
    padding: 0 40px;
    text-align: center;
    color: var(--white);
    text-transform: uppercase;
    height: 73px;
    overflow: hidden;
}

.service-inner {
    display: block;
    margin: 10px;
    background: transparent;
    color: var(--smoke);
    position: relative;
}

.service-inner::after {
    content: ' ';
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    position: absolute;
    left: 0;
    top: 0;
    mask-image: url('images/patriot-grunge-mask.svg');
    -webkit-mask-image: url('images/patriot-grunge-mask.svg');
    mask-size: cover;
    -webkit-mask-size: cover;
    border: 1px solid var(--smoke);
    opacity: 0.5;
}

.site-header-banner-after::after,
.site-header-banner-after::before {
    content: ' ';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: url("images/gmask.png");
    z-index: 5;
    pointer-events: none;
    background-position: top right;
    background-size: 50%;
    background-repeat: no-repeat;
}



.site-header-banner-after-scratch {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 232px;
    top: 50px;
    left: 0;
    z-index: 1;
    background-image: url(images/fired.png);
    background-size: auto 166px;
    background-repeat: repeat-x;
    pointer-events: none;
}

.site-header-slogan {
    z-index: 2;
}

.site-header-slogan-btns {
    z-index: 3;
}


.site-header-banner-after::after {
    transform: rotate(180deg);
}

.stat:not(.stat-header) {
    display: flex;
    margin: 10px 10px;
}

.stat-inner {
    flex: 1 1 0;
    width: 0;
    text-align: center;
    display: flex;
    flex-flow: column;
    align-items: center;
    position: relative;
}

.stat-inner + .stat-inner::before {
    content: ' ';
    position: absolute;
    left: -2px;
    top: 30%;
    width: 4px;
    height: 40%;
    background-image: repeating-linear-gradient(
            to bottom,
            var(--smoke) 0 4px,
            transparent 4px 8px
    );
    background-repeat: repeat-y;
    background-size: 4px 8px;
    pointer-events: none;
}

.stat-inner img { width: 200px; max-width: 100%; }

.stat-inner p {
    margin: -40px 0 0 0;
    padding: 0;
    text-align: center;
    color: var(--white);
    text-transform: uppercase;
    height: 73px;
    overflow: hidden;
    opacity: 0.75;
}

.stat-inner p strong {
    font-size: 36px;
    color: transparent;
    background:
            url('images/white-scratch.webp')
            center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 0 rgba(255,255,255,.75);
}

.stat-header {
    display: flex;
    justify-content: center;
    flex-flow: column;
}

@media screen and (max-width: 960px) {
    .services{
        grid-template-columns: repeat(4, 1fr);
    }

    .service.service-header {
        grid-column: 1 / -1;
    }
    
    .stat-header-wrapper,
    .service-header-wrapper {
        display: flex;
        flex-flow: rows;
        align-items: center;
    }

    .stat-h,
    .service-h {
        flex-grow: 1;
        padding: 5px 0;
    }

    .stat-supertitle,
    .service-supertitle {
        display: none;
    }

    .stat-header-wrapper h2,
    .service.service-header h2 {
        margin-top: 8px !important;
    }
    .stat-header-wrapper h3,
    .service.service-header h3 {
        margin-bottom: 0px !important;
    }

    .stats {
        grid-template-columns: repeat(1, 1fr);
    }

    .stat:not(.stat-header) {
        margin-top: -20px;
    }
}

@media screen and (max-width: 700px) {
    .services{
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-inner p {
        margin: -20px 0 0 0;
    }
    
    .stat-inner p strong {
        font-size: 24px;
    }

    .stat-header, .service-header {
        padding: 0 22px;
    }

    .hero-carousel .flickity-slider .hero-section h1,
    .hero-carousel .flickity-slider .hero-section .h1-shaddow {
        font-size: 60px;
    }
}

.construction {
    background: var(--yellow);
    height: 10px;
    background: 
            repeating-linear-gradient(-32deg, rgba(0, 0, 0, 1) 0 6px, transparent 2px 9px), var(--yellow);
}
.copy { color: var(--smoke); text-align: center; padding: 0 20px 20px 20px; margin-top: -12px; font-size: 14px; }

@media screen and (max-width: 700px) {
    .copy { padding: 30px 0px 20px 20px; }
}

@media screen and (min-width: 761px)  and (max-width: 860px) {
    .site-header-nav a {
        padding: 5px 5px;
    }
}
