:root {
    --bg: #f4f8fc;
    --panel: #ffffff;
    --panel-soft: #eaf3fb;
    --text: #14273d;
    --muted: #60758b;
    --primary: #0875c9;
    --primary-dark: #045a9d;
    --primary-light: #dceefd;
    --border: #cfe0ef;
    --success: #16794b;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(24, 76, 119, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--primary-dark); letter-spacing: .3px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: white; background: linear-gradient(135deg, var(--primary), #38a8f5); border-radius: 13px; box-shadow: 0 9px 24px rgba(8,117,201,.24); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: #38556e; font-weight: 700; }
nav a:hover { color: var(--primary); }
.nav-button, .button { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 24px rgba(8,117,201,.2); }
.nav-button:hover, .button:hover { background: var(--primary-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.button.small { padding: 9px 14px; font-size: 14px; }
.hero { padding: 88px 0 70px; background: linear-gradient(120deg, #fff 0%, #edf7ff 55%, #d8edfd 100%); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.eyebrow { color: var(--primary); text-transform: uppercase; font-weight: 900; letter-spacing: 2.4px; font-size: 13px; }
h1 { font-size: clamp(44px, 7vw, 78px); line-height: .98; margin: 18px 0 24px; letter-spacing: -3px; color: #0b3558; }
.hero p { color: var(--muted); font-size: 20px; line-height: 1.7; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.race-card { min-height: 410px; border-radius: 28px; background: linear-gradient(150deg, #0875c9, #42a9ef 52%, #d9efff 52%); box-shadow: var(--shadow); padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: white; }
.race-card::before { content: '27'; position: absolute; top: 18px; right: 28px; font-size: 140px; font-weight: 900; color: rgba(255,255,255,.22); font-style: italic; }
.race-card::after { content: ''; position: absolute; width: 220px; height: 220px; border: 25px solid rgba(8,117,201,.12); border-radius: 50%; right: -70px; bottom: -90px; }
.race-card h2 { font-size: 34px; margin: 0 0 10px; position: relative; z-index: 1; }
.race-card p { font-size: 16px; margin: 0; color: #eaf7ff; position: relative; z-index: 1; }
.features, .events-section { padding: 70px 0 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-title { font-size: 38px; margin: 0; color: #123b5d; }
.section-subtitle { color: var(--muted); margin: 8px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card, .event-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 32px rgba(30,78,112,.07); overflow: hidden; }
.info-card { padding: 28px; }
.info-card strong { display: block; font-size: 20px; margin-bottom: 10px; color: #15456a; }
.info-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-image { height: 190px; background: linear-gradient(135deg, #0b79c9, #85c9f7); display: flex; align-items: center; justify-content: center; color: white; font-size: 42px; font-weight: 900; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 22px; }
.event-date { color: var(--primary); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.event-card h3 { margin: 9px 0 10px; font-size: 22px; color: #123b5d; }
.event-meta { color: var(--muted); line-height: 1.7; font-size: 15px; }
.event-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; }
.event-detail-image { min-height: 360px; border-radius: 18px; overflow: hidden; background: var(--primary-light); display: flex; justify-content: center; align-items: center; color: var(--primary); font-size: 72px; font-weight: 900; }
.event-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.form-page { padding: 64px 0 90px; }
.form-shell { width: min(860px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.form-shell.narrow { width: min(520px, 100%); }
.form-shell.wide { width: min(1040px, 100%); }
.form-shell h1 { font-size: 42px; letter-spacing: -1.5px; margin-top: 0; color: #123b5d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { color: #284c68; font-weight: 700; }
input, select, textarea { width: 100%; background: #fff; color: var(--text); border: 1px solid #bdd3e4; border-radius: 10px; padding: 13px 14px; font-size: 16px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,117,201,.12); }
textarea { resize: vertical; min-height: 140px; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.alert.error { background: #fff1f0; border: 1px solid #f3b7b2; color: var(--danger); }
.alert.success { background: #ecfdf3; border: 1px solid #a7e2c2; color: var(--success); }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.profile-item { background: #f8fbfe; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.profile-item span { color: var(--muted); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.empty-state { background: white; border: 1px dashed #9dbdd5; border-radius: 16px; padding: 42px; text-align: center; color: var(--muted); }
.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--muted); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 900px) { .hero-grid, .card-grid, .event-grid, .form-grid, .profile-grid, .event-detail { grid-template-columns: 1fr; } .hero { padding-top: 58px; } .race-card { min-height: 310px; } nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; } .section-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 620px) { .container { width: min(100% - 24px, 1140px); } .nav-wrap { padding: 10px 0; align-items: flex-start; } .brand span:last-child { display: none; } nav a { font-size: 14px; } h1 { letter-spacing: -2px; } .form-shell { padding: 22px; } }
.profile-header { display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center; margin-bottom: 30px; }
.profile-header h1 { margin: 8px 0 8px; font-size: 46px; }
.profile-lead { margin: 0; color: var(--muted); font-size: 18px; }
.profile-avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--primary), #63bdf5); display: grid; place-items: center; color: #fff; font-size: 58px; font-weight: 900; border: 5px solid #fff; box-shadow: 0 10px 32px rgba(8,117,201,.22); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-edit-button { align-self: start; }
.profile-bio { margin-top: 18px; padding: 20px; background: #f8fbfe; border: 1px solid var(--border); border-radius: 14px; }
.profile-bio span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.profile-bio p { margin: 0; line-height: 1.7; }
.profile-image-editor { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; padding: 18px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 14px; background: #f8fbfe; }
.small-avatar { width: 100px; height: 100px; font-size: 38px; }
.form-group small { color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .profile-header { grid-template-columns: 1fr; text-align: center; justify-items: center; } .profile-edit-button { align-self: auto; } .profile-image-editor { grid-template-columns: 1fr; justify-items: center; } .profile-image-editor .form-group { width: 100%; } }

/* Nyilvános versenyzői lista és profil */
.page-hero.compact {
    padding: 54px 0 44px;
    background: linear-gradient(135deg, #eaf3ff 0%, #ffffff 70%);
    border-bottom: 1px solid #dce9f8;
}
.page-hero.compact h1 { margin: 6px 0 8px; }
.page-hero.compact p { margin: 0; color: #52667e; }
.content-section { padding: 42px 0 70px; }
.rider-search {
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dce9f8;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 73, 130, .08);
}
.rider-search .grow { flex: 1; }
.rider-search .field { min-width: 210px; }
.rider-search input, .rider-search select { width: 100%; }
.rider-results-heading { margin-top: 38px; }
.rider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.rider-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce9f8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 73, 130, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.rider-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 73, 130, .14); }
.rider-card-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, #dcecff, #f7fbff);
    color: #075bc7;
    font-size: 74px;
    font-weight: 800;
}
.rider-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rider-card-body { padding: 20px; }
.rider-card-body h3 { margin: 10px 0 7px; font-size: 1.24rem; }
.rider-card-body h3 a { color: #102a43; text-decoration: none; }
.rider-card-body p { margin: 0; color: #60758b; }
.category-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7f1ff;
    color: #075bc7;
    font-size: .8rem;
    font-weight: 700;
}
.rider-card-meta { display: flex; gap: 12px; margin: 14px 0; color: #52667e; font-size: .92rem; }
.text-link { color: #075bc7; font-weight: 700; text-decoration: none; }
.empty-state { padding: 36px; border: 1px dashed #bcd2eb; border-radius: 16px; text-align: center; color: #60758b; background: #f8fbff; }
.profile-actions { margin-top: 24px; }
.public-profile-page { min-height: 65vh; }

@media (max-width: 900px) {
    .rider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rider-search { flex-wrap: wrap; }
    .rider-search .grow { flex: 1 1 100%; }
}
@media (max-width: 620px) {
    .rider-grid { grid-template-columns: 1fr; }
    .rider-search { display: grid; }
    .rider-search .field { min-width: 0; }
}


/* Nyilvános profil adatvédelmi beállítások */
.privacy-settings { margin-top: 26px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #f8fbfe; }
.privacy-settings legend { padding: 0 8px; color: #123b5d; font-size: 20px; font-weight: 900; }
.privacy-settings > p { margin: 0 0 16px; color: var(--muted); }
.check-option { display: flex; align-items: center; gap: 11px; margin: 11px 0; cursor: pointer; }
.check-option input { width: 19px; height: 19px; margin: 0; accent-color: var(--primary); }
.check-option span { font-weight: 700; color: #284c68; }
.privacy-note { margin-top: 17px; padding: 12px 14px; border-radius: 10px; background: var(--primary-light); color: #235476; font-size: 14px; line-height: 1.5; }

.racer-profile-shell { overflow: hidden; padding: 0; }
.racer-banner { position: relative; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; padding: 34px; margin-bottom: 30px; color: #fff; background: linear-gradient(125deg, #063c6b 0%, #0875c9 58%, #53b2f0 100%); }
.racer-banner::after { content: ''; position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(135deg, transparent 0 22px, #fff 22px 24px); pointer-events: none; }
.racer-banner > * { position: relative; z-index: 1; }
.racer-banner .eyebrow { color: #d8efff; }
.racer-banner h1 { margin: 7px 0 11px; color: #fff; font-size: clamp(38px, 6vw, 62px); }
.racer-banner p { margin: 12px 0 0; color: #e4f3ff; font-size: 18px; font-weight: 700; }
.racer-banner .profile-avatar { border-color: rgba(255,255,255,.92); box-shadow: 0 14px 38px rgba(0,0,0,.22); }
.racer-banner .profile-edit-button { background: #fff; color: var(--primary-dark); box-shadow: none; }
.racer-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.racer-tags strong, .racer-tags span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; border-radius: 9px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 900; letter-spacing: .7px; }
.racer-tags strong { font-size: 22px; }
.racer-profile-shell > .profile-grid, .racer-profile-shell > .profile-bio, .racer-profile-shell > .profile-actions { margin-left: 34px; margin-right: 34px; }
.racer-profile-shell > .profile-actions { margin-bottom: 34px; }

@media (max-width: 760px) {
    .racer-banner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .racer-tags { justify-content: center; }
}


/* V7 arculati frissítés */
:root {
    --bg: #f3f7fb;
    --panel: #ffffff;
    --panel-soft: #eaf3fb;
    --text: #10273d;
    --muted: #5d7185;
    --primary: #0875c9;
    --primary-dark: #063c6b;
    --primary-deep: #041f38;
    --primary-light: #dceefd;
    --accent: #2ca4ef;
    --border: #d7e4ef;
    --shadow: 0 22px 55px rgba(6, 60, 107, .13);
}
body {
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(44,164,239,.06), transparent 28rem),
        var(--bg);
}
.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(6,60,107,.12);
    box-shadow: 0 6px 26px rgba(6,60,107,.06);
}
.nav-wrap { min-height: 82px; }
.brand { gap: 13px; }
.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px 12px 18px 12px;
    background: linear-gradient(145deg, #041f38, #0875c9 62%, #2ca4ef);
    box-shadow: 0 10px 24px rgba(6,60,107,.26);
    transform: skew(-7deg);
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px 8px 13px 8px;
}
.brand-mark span { transform: skew(7deg); position: relative; z-index: 1; font-style: italic; letter-spacing: -1px; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 18px; letter-spacing: .2px; }
.brand-copy small { margin-top: 5px; color: #72879a; font-size: 11px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
nav a { position: relative; padding: 10px 0; }
nav a:not(.nav-button)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: right .2s ease;
}
nav a:hover::after, nav a.active::after { right: 0; }
nav a.active { color: var(--primary-dark); }
.nav-button, .button {
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(8,117,201,.20);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav-button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8,117,201,.24); }
.hero {
    position: relative;
    padding: 92px 0 78px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.98) 0%, rgba(243,249,254,.96) 48%, rgba(221,239,252,.92) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(45deg, rgba(6,60,107,.08) 25%, transparent 25%, transparent 75%, rgba(6,60,107,.08) 75%),
        linear-gradient(45deg, rgba(6,60,107,.08) 25%, transparent 25%, transparent 75%, rgba(6,60,107,.08) 75%);
    background-size: 34px 34px;
    background-position: 0 0, 17px 17px;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, #000 100%);
}
.hero-grid { position: relative; z-index: 1; }
.eyebrow { color: var(--primary); letter-spacing: 2.8px; }
h1 { color: var(--primary-deep); text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.hero p { color: #526a80; }
.race-card {
    min-height: 430px;
    padding: 0;
    justify-content: stretch;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(4,31,56,.98), rgba(6,60,107,.96) 56%, rgba(8,117,201,.94));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 30px 70px rgba(6,60,107,.25);
}
.race-card::before {
    content: '';
    inset: 0;
    top: auto;
    right: auto;
    font-size: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 18px, transparent 18px 38px);
}
.race-card::after {
    width: 310px;
    height: 310px;
    border: 34px solid rgba(255,255,255,.055);
    right: -105px;
    bottom: -135px;
}
.race-card-topline {
    display: flex;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: #bfe6ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
}
.race-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 42px 34px 34px;
}
.race-card-kicker {
    color: #83cdfa;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}
.race-card h2 { max-width: 430px; margin: 12px 0 14px; color: #fff; font-size: clamp(34px, 4vw, 48px); line-height: 1.03; letter-spacing: -1.4px; }
.race-card p { max-width: 430px; color: #d8efff; line-height: 1.65; }
.race-card-badge {
    position: absolute;
    z-index: 1;
    top: 48px;
    right: 24px;
    color: rgba(255,255,255,.10);
    font-size: 150px;
    font-weight: 950;
    font-style: italic;
    line-height: 1;
}
.events-section, .features { position: relative; }
.events-section { background: #fff; border-bottom: 1px solid var(--border); }
.features { background: linear-gradient(180deg, #edf5fb 0%, #f7fafc 100%); }
.section-title { color: var(--primary-deep); letter-spacing: -1.1px; }
.info-card, .event-card, .form-shell, .rider-card {
    border-color: rgba(6,60,107,.12);
    box-shadow: 0 14px 34px rgba(6,60,107,.075);
}
.info-card, .event-card, .rider-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.info-card:hover, .event-card:hover, .rider-card:hover {
    transform: translateY(-4px);
    border-color: rgba(8,117,201,.26);
    box-shadow: 0 22px 44px rgba(6,60,107,.13);
}
.info-card { position: relative; overflow: hidden; }
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
}
.event-image { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent)); }
.event-card h3 { color: var(--primary-deep); }
.button.secondary { background: rgba(255,255,255,.92); }
.page-hero.compact {
    background:
        linear-gradient(135deg, #e9f3fb 0%, #ffffff 72%),
        repeating-linear-gradient(135deg, transparent 0 20px, rgba(8,117,201,.04) 20px 22px);
}
.site-footer {
    color: #d5e8f6;
    background: linear-gradient(110deg, #041f38, #063c6b);
    border-top: 0;
    padding: 30px 0;
}
.footer-inner { align-items: center; }
.footer-inner > div:first-child { display: grid; gap: 5px; }
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner span { color: #b7d2e7; }
.footer-flag { display: grid; grid-template-columns: repeat(6, 16px); grid-template-rows: repeat(2, 16px); gap: 0; transform: skew(-12deg); opacity: .78; }
.footer-flag span { background: #fff; }
.footer-flag span:nth-child(2), .footer-flag span:nth-child(4), .footer-flag span:nth-child(6) { background: var(--primary); }
.footer-flag span:nth-child(7), .footer-flag span:nth-child(9), .footer-flag span:nth-child(11) { background: var(--primary); }

@media (max-width: 900px) {
    .brand-copy small { display: none; }
    nav { gap: 13px; }
    .race-card { min-height: 350px; }
}
@media (max-width: 620px) {
    .site-header { position: static; }
    .nav-wrap { align-items: center; }
    .brand-copy { display: none; }
    nav { justify-content: flex-end; }
    nav a { padding: 7px 0; }
    .hero { padding-top: 58px; }
    .race-card-content { padding: 34px 24px 26px; }
    .race-card-badge { font-size: 105px; }
    .footer-inner { align-items: flex-start; }
}


/* V8 – karakteres, kategóriafüggő eseménygrafikák kép nélkül */
.event-image { position: relative; }
.event-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 76% 22%, rgba(255,255,255,.24), transparent 28%),
        linear-gradient(135deg, #075f9f 0%, #0b82d4 54%, #45b3f3 100%);
}
.event-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .2;
    background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(255,255,255,.22) 17px 19px);
}
.event-placeholder::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    right: -90px;
    bottom: -125px;
    border: 25px solid rgba(255,255,255,.12);
    border-radius: 50%;
}
.event-visual-label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.event-silhouette {
    display: block;
    font-size: 104px;
    line-height: 1;
    filter: grayscale(1) brightness(0) invert(1) drop-shadow(0 12px 18px rgba(0,31,65,.28));
    opacity: .94;
    transform: rotate(-7deg) scale(1.06);
}
.event-placeholder--cross .event-silhouette { transform: rotate(-13deg) translateY(-3px) scale(1.08); }
.event-placeholder--stunt .event-silhouette { transform: rotate(-28deg) translateY(-4px) scale(1.08); }
.event-placeholder--enduro .event-silhouette { transform: rotate(-8deg) translateY(-1px) scale(1.08); }
.event-placeholder--quad .event-silhouette { font-size: 118px; transform: rotate(-8deg); }

.checkered-flag {
    position: relative;
    display: block;
    width: 142px;
    height: 112px;
    transform: rotate(-8deg) translateY(-2px);
    filter: drop-shadow(0 14px 16px rgba(0,34,67,.35));
}
.flag-pole {
    position: absolute;
    left: 10px;
    top: 3px;
    width: 7px;
    height: 109px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d8e3eb, #fff 45%, #8da1b2);
    box-shadow: 0 0 0 2px rgba(3,38,67,.55);
}
.flag-cloth {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 122px;
    height: 82px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    overflow: hidden;
    transform: skewY(-4deg);
    clip-path: polygon(0 0, 100% 7%, 94% 29%, 100% 53%, 94% 76%, 100% 100%, 0 92%);
    box-shadow: 0 0 0 2px rgba(3,38,67,.58);
}
.flag-cloth i { display: block; background: #fff; }
.flag-cloth i:nth-child(odd) { background: #08131d; }
.flag-cloth i:nth-child(6n+1),
.flag-cloth i:nth-child(6n+3),
.flag-cloth i:nth-child(6n+5) { background: #08131d; }
.flag-cloth i:nth-child(6n+2),
.flag-cloth i:nth-child(6n+4),
.flag-cloth i:nth-child(6n+6) { background: #fff; }
.flag-cloth i:nth-child(n+7):nth-child(-n+12),
.flag-cloth i:nth-child(n+19):nth-child(-n+24) { filter: invert(1); }
.event-placeholder--detail .checkered-flag { transform: rotate(-8deg) scale(1.55); }
.event-placeholder--detail .event-silhouette { font-size: 170px; }
.event-placeholder--detail .event-visual-label { left: 28px; bottom: 24px; font-size: 15px; }

@media (max-width: 620px) {
    .checkered-flag { transform: rotate(-8deg) scale(.86); }
    .event-silhouette { font-size: 88px; }
}
