@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg-canvas: #111214;
  --bg-surface-1: #191a1d;
  --bg-surface-2: #202125;
  --bg-surface-3: #2a2b30;
  --border-subtle: #303136;
  --border-default: #404147;
  --text-primary: #f5f4ef;
  --text-secondary: #c4c3c7;
  --text-muted: #a6a6af;
  --accent-periwinkle: #cfcbff;
  --header-height: 68px;
  --clay-grain: url("/clay-grain.svg");
  --clay-face: radial-gradient(ellipse at 25% -95%, #44414a, #29282e 58%, #202025);
  --clay-depth: inset 0 2px 2px -1px #ffffff32, inset 0 -3px 5px #0c0b104d, 0 2px 2px #08080b85, 0 9px 16px -12px #000c;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg-canvas); color: var(--text-primary); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; text-underline-offset: .19em; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
svg { flex-shrink: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #d3ceff; outline-offset: 4px; }
::selection { color: #141321; background: #c9c6ff; }
input, textarea { caret-color: var(--accent-periwinkle); }
[hidden] { display: none !important; }
.container { width: min(100% - 80px, 1192px); margin-inline: auto; }
.sr-only, .hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp-field { pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 5; pointer-events: none; }
.site-header :is(a, button) { pointer-events: auto; }
.site-header:has(+ main > .hero) { margin-bottom: calc(-1 * var(--header-height)); }
.site-header__inner, .site-footer__inner, .header-nav, .footer-links, .brand,
.btn-primary-pill, .btn-ghost-pill, .apply-btn, .segmented, .seg-btn,
.filter-toggle, .stat__label, .directory-heading, .search-pill, .table-identity, .event-card__top,
.event-card__identity, .status-pill, .event-card__footer, .signup-form { display: flex; align-items: center; }
.site-header__inner { min-height: var(--header-height); justify-content: space-between; gap: 12px; }
.brand { gap: 10px; font-size: 20px; line-height: 1; font-weight: 680; letter-spacing: -.04em; white-space: nowrap; width: max-content; }
.brand img { flex: none; }
.header-nav { gap: 7px; }
.nav-link, .footer-links a { background: none; color: var(--text-secondary); font-size: 13px; padding: 0; }
.site-header .nav-link { background-color: #202024f2; border-radius: 11px; box-shadow: inset 0 1px #ffffff16, 0 2px 4px #0a090d44; }
.site-header .nav-link { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 13px; color: #e2e0e6; }
.btn-primary-pill, .btn-ghost-pill, .apply-btn { width: max-content; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border-radius: 11px; font-size: 13px; font-weight: 620; line-height: 1.2; text-align: center; transition: transform 140ms var(--ease-out), background-color 150ms ease; }
.btn-primary-pill { color: #1c1b21; background: var(--text-primary); }
.btn-ghost-pill { background: var(--bg-surface-2); border: 1px solid var(--border-default); color: var(--text-primary); }
.btn-primary-pill:active, .btn-ghost-pill:active, .apply-btn:active { transform: scale(.97); }
button:disabled { opacity: .65; cursor: wait; }

.hero { position: relative; isolation: isolate; overflow: clip; padding-top: var(--header-height); background: radial-gradient(ellipse 62% 133% at 43% -40%, #918c97, #5e5964 20%, #37343e 42%, #222127 61%, #161619 81%, var(--bg-canvas) 96%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--clay-grain); mix-blend-mode: soft-light; mask-image: linear-gradient(black 12%, transparent 94%); }
.hero__inner { position: relative; text-align: center; padding-block: clamp(42px, 4.2vw, 66px) 35px; }
.hero h1 { font-size: clamp(60px, 6.1vw, 90px); font-weight: 620; line-height: .99; letter-spacing: -.04em; }
.hero h1 em { display: inline-block; color: var(--accent-periwinkle); font: italic 1.12em/.99 "Instrument Serif", Georgia, serif; letter-spacing: -.03em; }
.hero__inner > p { max-width: 46ch; margin: 19px auto 21px; color: var(--text-secondary); font-size: 17px; line-height: 1.5; text-wrap: balance; }
.hero__inner .email-signup { width: min(100%, 410px); margin-inline: auto; }
.signup-form { gap: 4px; padding: 4px; border: 1px solid #4a4852; border-radius: 14px; background: #1d1c21; box-shadow: inset 0 1px 3px #0b0a0e52, 0 3px 8px #08080b42; }
.signup-form:has(.signup-input:focus-visible) { outline: 2px solid var(--accent-periwinkle); outline-offset: 3px; }
.signup-input { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 15px; }
.signup-form button { flex: none; min-height: 42px; padding-inline: 17px; border-radius: 9px; font-size: 14px; white-space: nowrap; box-shadow: inset 0 1px 1px #fff, inset 0 -2px 3px #746f7c30, 0 2px 4px #08080b73; }
.email-signup .signup-feedback { min-height: 1.5em; margin-top: 8px; }
.hero-art { position: absolute; z-index: -1; inset: var(--header-height) 0 0; max-width: 1490px; margin: auto; overflow: hidden; pointer-events: none; }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: radial-gradient(#59575c .8px, transparent .9px); background-size: 17px 17px; mask-image: linear-gradient(90deg, transparent, black 13%, transparent 36%, transparent 64%, black 87%, transparent); }
.hero-tile { --angle: 0deg; position: absolute; display: grid; place-items: center; width: var(--size); aspect-ratio: 1; border-radius: 24%; transform: rotate(var(--angle)); }
.object { display: block; width: 100%; height: 100%; background: url("/hero-objects.webp") no-repeat; background-size: 300% 200%; filter: drop-shadow(0 5px 4px #07070a70); }
html[data-hero-icons="framed"] .hero-tile { background: var(--clay-grain), radial-gradient(ellipse at 30% -18%, #55505a, #353239 55%, #25242a); background-blend-mode: soft-light, normal; box-shadow: inset 0 2px 3px -1px #ffffff51, inset 0 -4px 5px #100e175e, 0 2px 3px #07070bb0, 0 13px 17px -8px #000b; }
html[data-hero-icons="framed"] .object { filter: none; }
.object--megaphone { background-position: 0 0; }
.object--target { background-position: 50% 0; }
.object--trophy { background-position: 100% 0; }
.object--terminal { background-position: 0 100%; }
.object--workflow { background-position: 50% 100%; }
.object--envelope { background-position: 100% 100%; }
.hero-tile--megaphone { --size: clamp(78px, 8.8vw, 130px); --angle: -13deg; left: 13.5%; top: 17%; }
.hero-tile--target { --size: clamp(48px, 5vw, 72px); --angle: 12deg; left: 3.5%; top: 53%; }
.hero-tile--terminal { --size: clamp(58px, 5.8vw, 85px); --angle: 8deg; left: 22%; bottom: 10%; }
.hero-tile--workflow { --size: clamp(50px, 5vw, 75px); --angle: 13deg; right: 21%; top: 12%; }
.hero-tile--trophy { --size: clamp(80px, 8.6vw, 125px); --angle: 10deg; right: 7%; top: 32%; }
.hero-tile--envelope { --size: clamp(54px, 5.2vw, 78px); --angle: -9deg; right: 22%; bottom: 9%; }

.overview { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 12px; }
.stat { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; min-height: 132px; padding: 20px 23px; text-align: left; border-radius: 16px; }
.stat, .event-card, .detail-card {
  background: var(--clay-grain), var(--clay-face);
  background-blend-mode: soft-light, normal;
  box-shadow: var(--clay-depth);
}
.event-card, .detail-card { position: relative; isolation: isolate; }
:is(.stat, .event-card, .detail-card)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 24% -20%, #d8ceff24, transparent 70%); box-shadow: inset 0 1px 1px #ebe6ff30; }
:is(.stat, .event-card, .detail-card):is(:focus-visible, :has(:focus-visible))::before { opacity: 1; }
.stat__body { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stat__label { gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 510; }
.stat__value { font-size: clamp(36px, 3.2vw, 48px); font-weight: 520; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat--prize { --clay-face: radial-gradient(ellipse at 26% -60%, #e9e7fb, #cfceee 52%, #b6b6dc); color: #1b1a29; box-shadow: inset 0 2px 3px -1px #ffffffe0, inset 0 -3px 5px #55547d45, 0 2px 2px #08080b85, 0 9px 16px -12px #000c; }
.stat--prize .stat__label { color: #39384d; }
.stat--prize .stat__value { width: fit-content; }
.stat--live > svg, .stat--closing > svg { color: var(--text-muted); }
.organizer-stack { display: flex; align-items: center; margin: 0 -1px 2px auto; padding-left: 7px; }
.organizer-stack:empty { display: none; }
.organizer-stack .org-avatar { width: 30px; height: 30px; padding: 4px; margin-left: -7px; border: 2px solid var(--bg-surface-2); border-radius: 50%; font-size: 10px; }
.prize-checks { position: absolute; inset: -25% -40px -30% auto; width: 40%; z-index: -1; background: repeating-conic-gradient(from 0deg, #7e82b4 0 25%, transparent 0 50%) 0 0 / 38px 38px; opacity: .46; transform: rotate(-17deg) skew(-9deg); mask-image: linear-gradient(100deg, transparent, black 80%); }
.live-dot, .status-pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #a0d8b0; }
.stat--closing .stat__label svg { color: #f3b593; }

.directory-section { padding: 42px 0 40px; }
.directory-heading { justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.directory-heading > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 15px; }
.directory-heading h2 { font-size: clamp(29px, 2.8vw, 38px); font-weight: 590; letter-spacing: -.04em; line-height: 1.1; }
#results-count { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.controls-row, .filter-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters-disclosure { display: none; }
.segmented { gap: 2px; padding: 3px; background: var(--bg-surface-1); border: 1px solid var(--border-subtle); border-radius: 9px; }
.seg-btn, .filter-toggle, .filter-select, .tag-pill { background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 480; }
.seg-btn { min-height: 32px; border-radius: 6px; padding: 0 10px; justify-content: center; gap: 6px; white-space: nowrap; }
.seg-btn.is-active { background: #37383e; color: var(--text-primary); box-shadow: inset 0 1px #ffffff19, 0 1px 3px #0004; }
.format-switch { --format-index: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.format-switch:has([data-format-btn="online"][aria-pressed="true"]) { --format-index: 1; }
.format-switch:has([data-format-btn="hybrid"][aria-pressed="true"]) { --format-index: 2; }
.format-switch:has([data-format-btn="in-person"][aria-pressed="true"]) { --format-index: 3; }
.format-switch::before { content: ""; position: absolute; inset: 3px auto 3px 3px; width: calc((100% - 6px) / 4); border-radius: 6px; background: #3b3a42; box-shadow: inset 0 1px #ffffff25, 0 1px 3px #0005; transform: translateX(calc(var(--format-index) * 100%)); pointer-events: none; }
.format-switch .seg-btn { position: relative; min-width: 0; background: transparent; box-shadow: none; }
.format-count { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.search-pill, .filter-select, .filter-toggle { min-height: 40px; border-radius: 9px; border: 1px solid var(--border-subtle); background-color: var(--bg-surface-1); }
.search-pill { flex: 1 1 185px; gap: 8px; padding: 0 12px; color: var(--text-muted); }
.search-pill:focus-within { outline: 2px solid var(--accent-periwinkle); outline-offset: 1px; }
.search-pill input { width: 100%; min-width: 0; min-height: 38px; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
.filter-select { padding-inline: 10px; }
.filter-toggle { gap: 6px; padding-inline: 13px; }
.filter-toggle.is-active { background: #42332e; color: #ffd2bc; }
.tag-bar, .event-card__tags { display: flex; align-items: center; flex-wrap: wrap; }
.tag-bar { gap: 5px; margin: 11px 0 19px; }
.tag-pill { padding: 4px 10px; border-radius: 6px; color: var(--text-muted); font-size: 12px; min-height: 30px; }
.tag-pill.is-active { background: #2d2b38; color: var(--accent-periwinkle); }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.bento-card, .signup-composer { background: var(--bg-surface-1); border-radius: 14px; border: 1px solid var(--border-subtle); padding: 22px; }
.event-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; padding: 22px; border-radius: 17px; border: 1px solid; border-color: #414047 #343339 #212025; }
.event-card__top { justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.event-card__identity, .table-identity { gap: 9px; min-width: 0; }
.event-card__identity, .event-card__org { color: var(--text-secondary); font-size: 13px; }
.org-avatar { flex: none; display: inline-grid; place-content: center; width: 38px; height: 38px; border-radius: 10px; font-weight: 650; background: #322f42; color: #dad5ff; }
.org-avatar--logo { display: inline-block; padding: 6px; object-fit: contain; background: #f4f4f1; }
.status-pill { gap: 6px; min-height: 25px; padding: 2px 8px; border-radius: 6px; color: #c9d7cf; background: #222a26; font-size: 11px; font-weight: 520; white-space: nowrap; width: fit-content; }
.status-pill i { width: 5px; height: 5px; }
.status-pill--urgent { color: #f4c7b1; background: #362c29; }
.status-pill--urgent i { background: #f4b58f; }
.event-card h3 { margin: 0 0 5px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.19; font-weight: 590; letter-spacing: -.03em; }
.event-card__title { border-radius: 2px; }
.event-format { display: block; font-size: 12px; color: var(--text-muted); }
.event-format::first-letter { text-transform: uppercase; }
.event-card__desc { margin: 12px 0 17px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.prize { display: grid; align-content: start; justify-items: start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.event-card > .prize { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.prize__label { color: var(--text-muted); font-size: 12px; }
.prize__amount { color: var(--accent-periwinkle); font-size: 28px; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.prize__details { font-size: 14px; line-height: 1.48; color: var(--text-secondary); }
.prize__details:first-of-type, .prize__label + .prize__details { color: var(--text-primary); }
.prize__text { color: var(--text-primary); font-size: 17px; line-height: 1.4; font-weight: 500; letter-spacing: -.012em; }
.event-card__tags { gap: 6px; }
.event-card > .event-card__tags { margin: 13px 0; }
.tag-chip, .example-badge { color: #b8b6c1; background: #27272d; padding: 2px 6px; font-size: 11.5px; border-radius: 4px; line-height: 1.45; }
.event-card__footer { border-top: 1px solid var(--border-subtle); padding-top: 12px; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 12px; }
.apply-btn, .detail-card [data-apply-id] { color: #241f34; background: #d7d1fa; box-shadow: inset 0 1px #ffffffe0, inset 0 -2px 3px #746a9b38, 0 2px 4px #1010157a; }
.apply-btn { flex: none; min-height: 38px; padding-inline: 13px; gap: 6px; border-radius: 9px; font-size: 13px; }
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border-subtle); border-radius: 13px; }
.events-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; background: var(--bg-surface-1); }
.events-table th, .events-table td { padding: 15px; font-size: 13px; vertical-align: top; border-bottom: 1px solid var(--border-subtle); overflow-wrap: anywhere; }
.events-table thead th { font-weight: 540; color: var(--text-muted); background: var(--bg-surface-2); font-size: 12px; }
.events-table thead th:nth-child(1) { width: 34%; }
.events-table thead th:nth-child(2) { width: 29%; }
.events-table thead th:nth-child(4) { width: 13%; }
.events-table thead th:last-child { width: 116px; }
.events-table tbody th { font-weight: 550; }
.events-table tr:last-child > * { border-bottom: 0; }
.table-identity { align-items: flex-start; }
.table-identity .org-avatar { width: 31px; height: 31px; }
.event-card__org { display: block; font-weight: 400; }
.table-prize .prize__label { display: none; }
.table-prize .prize__amount { font-size: 18px; }
.table-prize .prize__details { font-size: 13px; }
.table-prize .prize__text { font-size: 14px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 44px 16px; border: 1px dashed var(--border-default); border-radius: 12px; }
.empty-state p { margin: 6px 0 14px; color: var(--text-muted); }
.empty-state button { margin: auto; }

.form-control { min-width: 0; width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-default); background: var(--bg-canvas); color: var(--text-primary); border-radius: 9px; font-size: 14px; }
.signup-feedback { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; }
.signup-feedback--success { color: #a7dfb7; }
.signup-feedback--error { color: #ffb1a0; }
.site-footer { border-top: 1px solid var(--border-subtle); }
.footer-invitation { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--border-subtle); background: radial-gradient(ellipse 45% 126% at 74% 46%, #4b4658, #302d38 40%, #201e25 70%, #17171a); }
.footer-invitation::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--clay-grain); mix-blend-mode: soft-light; pointer-events: none; }
.footer-invitation__inner { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: clamp(330px, 29vw, 400px); padding-block: 40px; }
.footer-invitation__inner::before { content: ""; position: absolute; right: 4%; bottom: 6%; z-index: -2; width: 37%; height: 13%; background: radial-gradient(ellipse, #a69ac034, transparent 66%); }
.footer-award { position: absolute; z-index: -1; isolation: isolate; top: calc(50% + 18px); right: 6%; width: clamp(245px, 29vw, 355px); aspect-ratio: 1; transform: translateY(-50%); }
.footer-trophy { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 12px #0b0a1038); }
.footer-award::before { content: ""; position: absolute; z-index: -1; left: 0; top: -31%; width: 100%; height: 48%; transform: rotate(-10deg); transform-origin: 50% 100%; background: conic-gradient(from -42deg at 51% 166%, transparent, #d7aff04d 11deg, #ffdfa7bf 29deg, #ffdfa793 44deg, #ffd6c575 57deg, #d6aae952 70deg, transparent 84deg); mask-image: linear-gradient(to top, black 6%, #000c 31%, #0005 67%, transparent); filter: blur(5px); }
.footer-award::after { content: ""; position: absolute; left: 23%; top: 10%; width: 54%; height: 11%; border-radius: 50%; transform: rotate(-12deg); background: radial-gradient(ellipse, #fff0caad 5%, #ffe7b75c 53%, transparent 76%); filter: blur(2px); }
.footer-invitation h2 { width: fit-content; font-size: clamp(43px, 4.6vw, 65px); font-weight: 590; line-height: 1; letter-spacing: -.04em; }
.footer-invitation h2 em { color: var(--accent-periwinkle); font: italic 1.09em/1 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.footer-invitation .email-signup { width: min(100%, 410px); margin-top: 22px; }
.site-footer__inner { padding-block: 20px; flex-wrap: wrap; gap: 14px 34px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-links { gap: 18px; flex-wrap: wrap; }
.footer-links :is(a, button), .creator-credit a { display: inline-flex; align-items: center; min-height: 34px; }
.creator-credit { display: inline-flex; align-items: center; flex-wrap: wrap; margin-left: auto; gap: 4px 14px; color: var(--text-muted); font-size: 13px; }
.creator-credit a { gap: 5px; color: var(--text-secondary); text-decoration: underline; text-decoration-color: #65636d; }
.creator-credit img { flex: none; object-fit: contain; }

.modal-backdrop { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; color: var(--text-primary); border: 1px solid var(--border-default); border-radius: 17px; background: var(--bg-surface-1); box-shadow: 0 24px 80px #0007; padding: 0; overscroll-behavior: contain; }
.modal-backdrop::backdrop { background: #08080bbd; }
body:has(dialog[open]) { overflow: hidden; }
.modal-panel { padding: 24px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-header h2 { font-size: 24px; letter-spacing: -.035em; }
.modal-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--bg-surface-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 4px; min-width: 0; }
.form-field--full { grid-column: 1/-1; }
.form-field label { font-size: 13px; color: var(--text-secondary); }
textarea.form-control { resize: vertical; }

.detail-wrap { width: min(100% - 40px, 760px); margin: 32px auto 70px; overflow-wrap: anywhere; }
.detail-wrap > .analytics-settings { margin-top: 16px; min-height: 36px; }
.analytics-choice { position: fixed; z-index: 8; inset: auto auto max(12px, env(safe-area-inset-bottom)) 12px; width: min(365px, calc(100% - 24px)); padding: 16px; background: var(--bg-surface-1); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: 14px; box-shadow: 0 7px 26px #0007; }
.analytics-choice__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.analytics-choice h2 { font-size: 16px; }
.analytics-choice p { margin-top: 6px; color: var(--text-secondary); font-size: 13px; }
.analytics-choice a { text-decoration: underline; }
.analytics-choice__actions { display: flex; gap: 8px; margin-top: 13px; }
.analytics-choice__actions button { flex: 1; min-width: 0; padding-inline: 8px; white-space: nowrap; }
.analytics-choice__close { background: transparent; color: var(--text-secondary); padding: 4px 6px; font-size: 13px; }
.back-link { display: inline-flex; padding: 6px 0; margin-bottom: 14px; gap: 6px; color: var(--text-secondary); font-size: 13px; }
.detail-card { padding: clamp(20px, 4vw, 38px); border-radius: 17px; border: 1px solid; border-color: #414047 #343339 #212025; }
.detail-card h1 { font-size: clamp(31px, 4.1vw, 50px); line-height: 1.08; letter-spacing: -.04em; margin: 16px 0 8px; }
.detail-card .event-card__desc { font-size: 16px; }
.detail-card .prize { padding: 16px 0; border-block: 1px solid var(--border-subtle); }
.detail-card .prize__amount { font-size: 35px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-block: 22px; }
.detail-facts dt { color: var(--text-muted); font-size: 12px; }
.detail-facts dd { margin: 4px 0 0; font-size: 14px; }
.detail-card [data-apply-id] { margin-top: 20px; min-height: 46px; padding-inline: 19px; font-size: 14px; }

@media (hover:hover) and (pointer:fine) {
  .nav-link:hover, .footer-links a:hover, .creator-credit a:hover, .back-link:hover, .event-card__title:hover { color: var(--accent-periwinkle); }
  .event-card__title:hover { text-decoration: underline; }
  .btn-primary-pill:hover { background: #dcd9ff; }
  .btn-ghost-pill:hover, .filter-toggle:hover, .view-switch .seg-btn:hover, .tag-pill:hover { background-color: #34343b; color: #f5f4ef; }
  .format-switch .seg-btn[aria-pressed="false"]:hover { background-color: #ffffff0d; color: var(--text-primary); }
  .site-header .nav-link:hover { background-color: #34323a; }
  .apply-btn:hover, .detail-card [data-apply-id]:hover { background-color: #e7e2ff; color: #201a30; }
  :is(.stat, .event-card, .detail-card):hover::before { opacity: 1; }
  .events-table tbody tr:hover { background: #1e1f22; }
}
@media (prefers-reduced-motion:no-preference) {
  :is(.stat, .event-card, .detail-card)::before { transition: opacity 230ms ease-out; }
  .format-switch::before { transition: transform 225ms var(--ease-out); }
  .format-switch .seg-btn, .site-header .nav-link { transition: background-color 150ms ease, color 150ms ease; }
  .hero-tile { animation: place-object 600ms var(--ease-out) backwards; }
  .hero-tile--target, .hero-tile--workflow { animation-delay: 50ms; }
  .hero-tile--terminal, .hero-tile--envelope { animation-delay: 100ms; }
  @keyframes place-object { from { opacity: 0; transform: translateY(14px) rotate(0deg) scale(.94); } to { opacity: 1; transform: rotate(var(--angle)); } }
  .modal-backdrop[open] { animation: open-form 200ms var(--ease-out); }
  @keyframes open-form { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary-pill:active, .btn-ghost-pill:active, .apply-btn:active { transform: none; }
}
@media (forced-colors:active) {
  .format-switch .seg-btn[aria-pressed="true"] { border: 1px solid Highlight; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .hero-tile--terminal { left: 12%; }
  .hero-tile--envelope { right: 12%; }
  .hero-tile--workflow { right: 16%; }
  .hero-tile--megaphone { left: 8%; }
  .stat { padding: 17px; min-height: 115px; }
  .controls-row, .filter-fields { gap: 7px; }
  .search-pill { flex-basis: 175px; }
  .filter-fields { flex: 0 1 auto; }
  .organizer-stack { display: none; }
  .events-table thead th:nth-child(3), .events-table tbody td:nth-child(3) { display: none; }
  .hero__inner .email-signup { max-width: 385px; }
  .footer-award { right: 2%; width: 32%; }
  .footer-invitation .email-signup { width: min(60%, 385px); }
}
@media (max-width: 700px) {
  :root { --header-height: 59px; }
  .container { width: calc(100% - 32px); }
  .site-header__inner { gap: 7px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .header-nav .btn-primary-pill { min-height: 37px; padding: 0 11px; }
  .site-header .nav-link--hide-sm { display: none; }
  .hero__inner { padding: 45px 0 24px; }
  .hero h1 { font-size: clamp(40px, 10.7vw, 67px); }
  .hero__inner > p { max-width: 36ch; font-size: 14px; margin: 14px auto 18px; }
  .signup-form button { padding-inline: 13px; font-size: 13px; }
  .hero-tile--megaphone { --size: 53px; top: 8%; left: 3%; }
  .hero-tile--trophy { --size: 53px; top: 12%; right: 2%; }
  .hero-tile--terminal { --size: 43px; left: -10px; bottom: 20%; }
  .hero-tile--envelope { --size: 43px; right: -9px; bottom: 13%; }
  .hero-tile--workflow, .hero-tile--target { display: none; }
  .overview { grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
  .stat { min-height: 90px; border-radius: 10px; padding: 12px 10px; align-items: flex-start; }
  .stat__body { gap: 9px; }
  .stat__label { font-size: 12px; line-height: 1.3; gap: 5px; }
  .stat__label svg, .stat > svg { display: none; }
  .live-dot { width: 5px; height: 5px; }
  .stat__value { font-size: clamp(23px, 5vw, 33px); }
  .prize-checks { width: 35%; opacity: .3; }
  .directory-section { padding: 28px 0; }
  .directory-heading { margin-bottom: 13px; }
  .directory-heading > div:first-child { display: block; }
  .directory-heading h2 { font-size: 27px; }
  #results-count { font-size: 12px; }
  .seg-btn { padding-inline: 8px; font-size: 12px; }
  .format-switch { width: 100%; }
  .format-switch .seg-btn { padding-inline: 5px; gap: 3px; }
  .controls-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .search-pill { min-width: 0; }
  .filter-fields { display: none; grid-column: 1/-1; align-items: center; }
  .filters-disclosure { display: flex; }
  .filters-disclosure[aria-expanded=true] + .filter-fields { display: flex; }
  .controls-row:has(.format-switch .is-active:not([data-format-btn=""]), .filter-select option:checked:not([value=""]), #closing-soon-btn.is-active) .filters-disclosure { border-color: #716e90; color: var(--accent-periwinkle); }
  .filter-select, .filter-toggle { min-height: 39px; font-size: 13px; }
  .tag-bar { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 5px; margin: 6px 0 10px; scrollbar-width: thin; scrollbar-color: #424148 transparent; }
  .tag-pill { white-space: nowrap; }
  .cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .event-card { padding: 17px; }
  .event-card h3 { font-size: 22px; }
  .footer-invitation__inner { min-height: 260px; padding-block: 28px; }
  .footer-invitation h2 { font-size: clamp(35px, 6vw, 43px); }
  .site-footer__inner { justify-content: space-between; gap: 6px 18px; padding-block: 15px 20px; }
  .creator-credit { flex-basis: 100%; margin-left: 0; }
  .table-wrap { border-radius: 10px; }
  .events-table th, .events-table td { padding: 12px 8px; }
  .events-table thead th:nth-child(1) { width: 46%; }
  .events-table thead th:nth-child(2) { width: 54%; }
  .events-table thead th:nth-child(4), .events-table thead th:last-child, .events-table tbody td:nth-child(4), .events-table tbody td:last-child { display: none; }
  .events-table, .events-table thead, .events-table tbody { display: block; }
  .events-table tr { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .events-table thead th:nth-child(n) { width: auto; }
  .events-table tbody tr + tr { border-top: 1px solid var(--border-subtle); }
  .events-table tbody th, .events-table tbody td { border: 0; }
  .events-table tbody td:nth-child(4), .events-table tbody td:last-child { display: flex; align-items: center; padding-top: 0; }
  .events-table tbody td:last-child { justify-content: flex-end; }
  .table-identity { flex-direction: column; }
  .table-prize .prize__details { font-size: 12px; }
  .detail-facts, .form-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 17px; }
  .signup-input, .search-pill input, .form-control { font-size: 16px; }
}
@media (max-width: 520px) {
  .hero__inner { padding: 54px 0 20px; }
  .hero__inner > p { max-width: 30ch; }
  .hero-tile--megaphone { --size: 44px; top: 6px; left: 8%; }
  .hero-tile--trophy { --size: 43px; top: 5px; right: 9%; }
  .hero-tile--terminal { --size: 35px; left: -9px; bottom: 35%; }
  .hero-tile--envelope { --size: 36px; right: -9px; bottom: 34%; }
  .overview { grid-template-columns: 1fr 1fr; }
  .stat { padding: 10px 12px; min-height: 46px; align-items: center; }
  .stat--prize { grid-column: 1/-1; min-height: 64px; padding: 14px 16px; }
  .stat__body { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
  .stat--prize .stat__body { flex-wrap: wrap; }
  .stat__value { font-size: 21px; }
  .stat--prize .stat__value { margin-left: auto; font-size: clamp(30px, 7.8vw, 38px); background: none; }
  .stat--prize .stat__label svg, .stat--closing .stat__label svg { display: block; }
  .stat--closing .stat__label svg { width: 12px; height: 12px; }
  .prize-checks { width: 30%; opacity: .21; }
  .view-switch .seg-btn { width: 34px; min-height: 34px; }
  .view-switch .seg-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .directory-heading h2 { font-size: clamp(24px, 6.5vw, 28px); }
  .footer-invitation { background: radial-gradient(ellipse 80% 110% at 89% 13%, #4b4658, #27252e 55%, #17171a); }
  .footer-invitation__inner { min-height: 0; padding-block: 32px 24px; }
  .footer-invitation__inner::before { display: none; }
  .footer-award { top: 29px; right: 0; width: clamp(96px, 28vw, 136px); transform: none; }
  .footer-award::before { filter: blur(2px); }
  .footer-invitation h2 { max-width: 66%; min-height: clamp(94px, 25vw, 126px); font-size: clamp(28px, 7.5vw, 39px); }
  .footer-invitation .email-signup { width: 100%; margin-top: 13px; }
}
@media (max-width: 370px) {
  .brand { font-size: 15px; }
  .brand img { width: 27px; height: 27px; }
  .header-nav .btn-primary-pill { padding-inline: 9px; gap: 4px; font-size: 12px; }
  .stat--prize { padding-inline: 12px; }
  .stat--live, .stat--closing { padding-inline: 9px; }
  .stat--closing .stat__label svg { display: none; }
  .format-switch .seg-btn { padding-inline: 3px; }
  .footer-links { gap: 13px; }
  .creator-credit { gap: 4px 8px; }
  .creator-credit img { width: 22px; height: 22px; }
}


.directory-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: var(--text-secondary); font-size: 13px; }
.directory-pager:empty { display: none; }

.org-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.org-home { text-decoration: underline; text-decoration-color: var(--border-default); }
.org-home:hover, .org-social:hover { color: var(--accent-periwinkle); }
.org-social { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 27px; }
