:root {
    --accent: #e0007a;
    --accent-2: #72246c;
    --page-bg: #fff8fc;
    --ink: #201923;
    --muted: #746b77;
    --line: #e9e1e7;
    --panel: #ffffff;
    --success: #16825d;
    --danger: #c5364d;
    --warning: #a86d00;
    --sidebar: #201923;
    --shadow: 0 24px 70px rgba(60, 20, 53, .14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background: var(--page-bg);
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
code { padding: .15em .4em; border-radius: 6px; background: #f3edf2; }

.eyebrow {
    margin-bottom: .65rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }

.brand-lockup { display: inline-flex; flex-direction: column; gap: .05rem; line-height: 1; }
.brand-lockup span { font-size: 1.75rem; font-weight: 950; letter-spacing: -.08em; }
.brand-lockup small { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-lockup img { display: block; width: min(100%, 290px); height: auto; max-height: 92px; object-fit: contain; object-position: left center; }
.brand-lockup-official { min-width: 0; max-width: min(100%, 290px); }
.brand-lockup-official img { filter: drop-shadow(0 8px 18px rgba(0,0,0,.10)); }
.admin-control-logo { width: min(100%, 360px); }
.admin-control-logo img { width: 100%; height: auto; max-height: 150px; object-fit: contain; object-position: left center; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }
.brand-lockup-light { color: #fff; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .75rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 850;
    line-height: 1.1;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px rgba(224, 0, 122, .22); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-dark { color: #fff; background: #251d28; }
.button-success { color: #fff; background: var(--success); }
.button-danger { color: #fff; background: var(--danger); }
.button-large { min-height: 54px; padding: .95rem 1.5rem; }
.button-small { min-height: 36px; padding: .55rem .85rem; font-size: .82rem; }

.notice { margin: 0 0 1rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid; font-weight: 650; }
.notice-error { color: #8e2437; background: #fff0f3; border-color: #f4c4cd; }
.notice-success { color: #116a4d; background: #edfbf5; border-color: #bce8d6; }
.notice-warning { color: #805300; background: #fff7e8; border-color: #f3d69e; }

.form-stack { display: grid; gap: 1.15rem; }
.form-stack fieldset { display: grid; gap: 1rem; margin: 0; padding: 0 0 1.3rem; border: 0; border-bottom: 1px solid var(--line); }
.form-stack fieldset:last-of-type { border-bottom: 0; }
.form-stack legend { margin-bottom: .8rem; padding: 0; font-size: 1rem; font-weight: 900; }
.form-stack label { display: grid; gap: .45rem; color: #3e3440; font-size: .86rem; font-weight: 800; }
.form-stack input:not([type="checkbox"]):not([type="color"]),
.form-stack textarea,
.form-stack select {
    width: 100%;
    min-height: 48px;
    padding: .8rem .9rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dcd2da;
    border-radius: 10px;
    outline: none;
    font-weight: 550;
    transition: border .15s ease, box-shadow .15s ease;
}
.form-stack textarea { resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.form-stack input[type="color"] { width: 100%; min-height: 48px; padding: .25rem; border: 1px solid #dcd2da; border-radius: 10px; background: #fff; }
.form-stack input[type="file"] { padding: .7rem; border: 1px dashed #cdbfca; border-radius: 10px; background: #fbf8fa; }
.form-stack small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkbox-label { display: flex !important; align-items: flex-start; gap: .7rem !important; cursor: pointer; }
.checkbox-label input { width: 20px; height: 20px; margin: .05rem 0 0; accent-color: var(--accent); }
.checkbox-label span { flex: 1; }
.checkbox-bottom { align-self: end; padding-bottom: .65rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.current-upload { max-width: 220px; max-height: 90px; padding: .7rem; object-fit: contain; background: #f4eef3; border-radius: 10px; }

/* Installer and login */
.install-page, .login-page { background: radial-gradient(circle at 15% 10%, rgba(224,0,122,.14), transparent 36%), linear-gradient(145deg, #fff8fc, #f2e6ef); }
.install-shell { min-height: 100vh; display: grid; place-items: center; padding: 3rem 1rem; }
.install-card { width: min(820px, 100%); padding: clamp(1.5rem, 5vw, 3.3rem); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.8); border-radius: 34px; box-shadow: var(--shadow); }
.install-card > .brand-lockup { margin-bottom: 2.5rem; }
.install-card h1 { max-width: 700px; margin-bottom: .75rem; font-size: clamp(2rem, 6vw, 4rem); }
.install-card .lead { max-width: 690px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.1rem; color: #fff; background: var(--success); border-radius: 50%; font-size: 2rem; font-weight: 900; box-shadow: 0 14px 28px rgba(22,130,93,.25); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); }
.login-visual { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(2rem, 6vw, 5rem); color: #fff; background: linear-gradient(145deg, rgba(114,36,108,.94), rgba(224,0,122,.91)), radial-gradient(circle, #fff, transparent); position: relative; overflow: hidden; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.login-visual::before { width: 42vw; height: 42vw; right: -10vw; top: -12vw; }
.login-visual::after { width: 28vw; height: 28vw; left: -8vw; bottom: -12vw; }
.login-visual > * { position: relative; z-index: 1; }
.login-visual h1 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 7rem); }
.login-visual p { max-width: 750px; font-size: 1.15rem; }
.login-visual .eyebrow { color: #ffd7ef; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); background: #fff; }
.login-card h2 { margin-bottom: 2rem; }
.login-card .form-stack { width: min(440px, 100%); }
.back-link { margin-top: 2rem; color: var(--muted); text-decoration: none; font-weight: 700; }

/* Public voting */
.voting-page { background: var(--page-bg); }
.voting-page::before { content: ""; position: fixed; inset: 0 0 auto; height: clamp(500px, 44vw, 680px); z-index: -1; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.voting-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0 3rem; overflow-x: clip; }
.voting-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; color: #fff; }
.voting-header > * { min-width: 0; }
.event-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .78rem; }
.event-meta strong { max-width: 100%; font-size: .9rem; overflow-wrap: anywhere; }
.event-meta span { max-width: 100%; opacity: .72; overflow-wrap: anywhere; }
.hero-copy { position: relative; z-index: 1; padding: clamp(2.4rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); color: #fff; }
.hero-copy .eyebrow { color: color-mix(in srgb, var(--accent) 72%, white); }
.hero-copy h1 { max-width: 980px; margin-bottom: 1rem; line-height: .96; text-wrap: balance; text-shadow: 0 3px 18px rgba(0,0,0,.16); }
.hero-copy .lead { max-width: 780px; color: rgba(255,255,255,.92); text-shadow: 0 2px 10px rgba(0,0,0,.16); }
.vote-form { display: grid; gap: 1.5rem; }
.vote-form fieldset { margin: 0; padding: 0; border: 0; }
.vote-form legend { margin-bottom: 1rem; font-size: 1.15rem; font-weight: 900; }
.startup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.startup-card { display: block; min-width: 0; cursor: pointer; }
.startup-card > input { position: absolute; opacity: 0; pointer-events: none; }
.startup-card-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 2px solid transparent; border-radius: var(--radius-lg); box-shadow: 0 16px 45px rgba(57,20,50,.1); transition: transform .2s ease, border .2s ease, box-shadow .2s ease; }
.startup-card:hover .startup-card-inner { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(57,20,50,.16); }
.startup-card.is-selected .startup-card-inner, .startup-card:has(input:checked) .startup-card-inner { border-color: var(--accent); box-shadow: 0 22px 60px color-mix(in srgb, var(--accent) 24%, transparent); }
.startup-visual { position: relative; display: block; height: 210px; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.startup-visual > img { width: 100%; height: 100%; object-fit: cover; }
.startup-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.86); background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 6rem; font-weight: 950; }
.startup-logo { position: absolute; left: 1rem; bottom: 1rem; display: grid; place-items: center; width: 100px; height: 64px; padding: .55rem; overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.startup-logo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; object-position: 50% 50%; border-radius: 8px; transform: scale(1.08); transform-origin: 50% 50%; }
.startup-copy { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .6rem; padding: 1.35rem; }
.startup-copy strong { padding-right: 2rem; font-size: 1.35rem; line-height: 1.1; overflow-wrap: anywhere; }
.startup-copy em { color: var(--accent); font-style: normal; font-size: .85rem; font-weight: 850; }
.startup-copy > span:last-child { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.startup-website { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin-top: .15rem; padding: .55rem .85rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, white); border: 1px solid color-mix(in srgb, var(--accent) 24%, white); border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 850; line-height: 1; transition: transform .18s ease, background .18s ease; }
.startup-website:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 15%, white); }
.startup-website:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 2px; }

.selection-check { position: absolute; right: 1.2rem; top: 1.2rem; display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: #cfc4cc; border-radius: 50%; font-weight: 900; }
.startup-card.is-selected .selection-check, .startup-card:has(input:checked) .selection-check { background: var(--accent); }
.start-number-section { min-width: 0; }
.start-number-section h2 { margin: 0 0 .85rem; font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.2; overflow-wrap: anywhere; }
.start-number-box, .vote-submit-wrap { min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 36px rgba(57,20,50,.07); }
.start-number-box { display: grid; gap: .65rem; overflow: hidden; }
.start-number-box label { font-size: .82rem; font-weight: 800; }
.start-number-box input { display: block; width: min(340px, 100%); max-width: 100%; min-width: 0; min-height: 58px; padding: .85rem 1rem; border: 2px solid #d9cfd7; border-radius: 12px; outline: none; font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 850; }
.start-number-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.start-number-box small { max-width: 100%; color: var(--muted); font-size: clamp(.78rem, 3.4vw, .92rem); line-height: 1.45; overflow-wrap: anywhere; }
.vote-submit-wrap { display: flex; align-items: center; gap: 1.4rem; }
.button-vote { min-height: 60px; padding-inline: 2rem; font-size: 1rem; }
.privacy-note { max-width: 520px; margin: 0; color: var(--muted); font-size: .78rem; }
.state-card { max-width: 820px; min-width: 0; margin: 2rem auto; padding: clamp(2rem, 6vw, 4rem); overflow: hidden; text-align: center; background: #fff; border-radius: 30px; box-shadow: var(--shadow); }
.state-card .success-icon { margin: 0 auto 1rem; }
.state-card h1, .state-card h2 { margin-bottom: 1rem; }
.countdown { display: inline-flex; margin-top: .8rem; padding: .75rem 1.2rem; color: #fff; background: var(--ink); border-radius: 999px; font-size: 1.3rem; font-variant-numeric: tabular-nums; font-weight: 900; }
.vote-success-animation { animation: successIn .5s cubic-bezier(.2,.9,.2,1.2); }
.success-hint { color: var(--muted); }
.public-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.2rem .2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
.public-footer a { text-decoration: none; }
.public-footer nav { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Presentation */
.presentation-page { overflow: hidden; color: #fff; background: #180f1d; }
.presentation-stage { position: relative; display: grid; grid-template-rows: auto 1fr auto; width: 100vw; height: 100vh; min-height: 620px; padding: clamp(1.4rem, 2.6vw, 3rem); overflow: hidden; background: radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 28%), linear-gradient(135deg, #1b111e 0%, color-mix(in srgb, var(--accent-2) 48%, #18101c) 55%, #170f1c 100%); }
.presentation-stage::before { content: ""; position: absolute; width: 42vw; height: 42vw; left: -20vw; bottom: -28vw; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(255,255,255,.018), 0 0 0 14vw rgba(255,255,255,.012); }
.presentation-stage > * { position: relative; z-index: 1; }
.presentation-header, .presentation-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.presentation-status { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: .8rem; }
.status-dot { width: 9px; height: 9px; background: #d7cbd5; border-radius: 50%; }
body[data-voting-status="open"] .status-dot { background: #53e5a9; box-shadow: 0 0 0 6px rgba(83,229,169,.12); animation: pulse 1.5s infinite; }
.presentation-footer { color: rgba(255,255,255,.56); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.presentation-footer nav { display: flex; gap: .4rem; }
.presentation-footer a { padding: .45rem .65rem; color: inherit; border-radius: 8px; text-decoration: none; }
.presentation-footer a:hover { color: #fff; background: rgba(255,255,255,.08); }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 28vw); gap: clamp(2rem, 4vw, 5rem); align-items: center; min-height: 0; }
.overview-main .eyebrow, .live-heading .eyebrow, .victory-layout .eyebrow { color: color-mix(in srgb, var(--accent) 68%, white); }
.overview-main h1 { max-width: 1100px; margin-bottom: .8rem; font-size: clamp(3rem, 5.7vw, 7.4rem); }
.presentation-lead { color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.55vw, 1.65rem); }
.presentation-startups { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 3rem); }
.presentation-startup-card { flex: 1 1 calc(33.333% - .7rem); max-width: calc(33.333% - .7rem); }
.presentation-startup-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; min-width: 0; padding: 1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; backdrop-filter: blur(12px); }
.pitch-number { position: absolute; right: .8rem; top: .5rem; color: rgba(255,255,255,.16); font-size: 2rem; font-weight: 950; }
.presentation-logo-box { position: relative; display: grid; place-items: center; width: clamp(64px, 6vw, 105px); height: clamp(64px, 6vw, 105px); padding: .7rem; overflow: hidden; contain: paint; isolation: isolate; color: var(--accent); background: #fff; border-radius: 15px; font-size: 2.4rem; font-weight: 950; }
.presentation-logo-box img { position: absolute; inset: .7rem; display: block; width: calc(100% - 1.4rem); height: calc(100% - 1.4rem); max-width: calc(100% - 1.4rem); max-height: calc(100% - 1.4rem); object-fit: contain; object-position: center; border-radius: 10px; clip-path: inset(0 round 10px); }
.presentation-startup-card h2 { margin: 0 0 .3rem; padding-right: 2.4rem; font-size: clamp(1rem, 1.55vw, 1.65rem); overflow-wrap: anywhere; }
.presentation-startup-card p { margin: 0; color: rgba(255,255,255,.6); font-size: clamp(.72rem, .85vw, .95rem); }
.qr-panel { display: flex; flex-direction: column; align-items: center; padding: clamp(1.3rem, 2.6vw, 2.3rem); color: var(--ink); text-align: center; background: #fff; border-radius: 28px; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.qr-frame { width: min(100%, 370px); aspect-ratio: 1; padding: .6rem; background: #fff; border: 1px solid #eee; border-radius: 18px; }
.qr-frame img { width: 100%; height: 100%; }
.qr-panel strong { margin-top: .9rem; font-size: clamp(1.2rem, 1.6vw, 2rem); }
.qr-panel > span { color: var(--muted); font-size: .7rem; word-break: break-all; }
.presentation-countdown { min-height: 40px; margin-top: 1rem; padding: .55rem .9rem; color: #fff; background: var(--ink); border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 950; letter-spacing: .05em; }
.live-layout { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 2vh 2vw; }
.live-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1rem, 3vh, 2.6rem); }
.live-heading h1 { max-width: 1100px; margin: 0; font-size: clamp(2.6rem, 5vw, 6.2rem); }
.live-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.live-total span { font-size: clamp(3rem, 6vw, 7rem); font-weight: 950; letter-spacing: -.08em; }
.live-total small { color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.results-mask { position: relative; display: grid; place-items: center; align-content: center; min-height: 42vh; padding: 3rem; overflow: hidden; text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; isolation: isolate; }
.results-mask::before { content: ""; position: absolute; inset: -18% auto auto -6%; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 64%); filter: blur(8px); opacity: .72; animation: maskDrift 9s ease-in-out infinite; }
.results-mask::after { content: ""; position: absolute; right: -10%; bottom: -16%; width: 28vw; height: 28vw; min-width: 180px; min-height: 180px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%); filter: blur(6px); opacity: .55; animation: maskDrift 10s ease-in-out infinite reverse; }
.results-mask h2 { position: relative; z-index: 2; margin: 1.5rem 0 .5rem; font-size: clamp(2rem, 4vw, 4.6rem); }
.results-mask p { position: relative; z-index: 2; color: rgba(255,255,255,.65); font-size: clamp(1rem, 1.6vw, 1.5rem); }
.pulse-orb { width: clamp(90px, 9vw, 150px); height: clamp(90px, 9vw, 150px); background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 18%, var(--accent-2) 62%, transparent 64%); border-radius: 50%; filter: drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 56%, transparent)); animation: orb 2s ease-in-out infinite; }
.live-mask-stage { position: relative; display: grid; place-items: center; width: min(38vw, 360px); height: min(38vw, 360px); max-width: 360px; max-height: 360px; }
.live-mask-rings { position: absolute; inset: 50% auto auto 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); }
.live-mask-rings span { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; animation: ripple 3.4s ease-out infinite; }
.live-mask-rings span:nth-child(2) { animation-delay: 1.1s; }
.live-mask-rings span:nth-child(3) { animation-delay: 2.2s; }
.live-signal { position: relative; z-index: 2; display: inline-grid; grid-auto-flow: column; gap: .38rem; align-items: end; min-height: 46px; margin-top: 1.1rem; }
.live-signal span { width: 10px; height: 18px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.28)); box-shadow: 0 0 18px rgba(255,255,255,.15); animation: signal 1.2s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.live-mask-shimmer { position: relative; z-index: 2; display: grid; gap: .7rem; width: min(100%, 620px); margin-top: 1.25rem; }
.live-mask-shimmer span { display: block; height: 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.08) 100%); background-size: 200% 100%; animation: shimmer 2.3s linear infinite; }
.live-mask-shimmer span:nth-child(1) { width: 100%; }
.live-mask-shimmer span:nth-child(2) { width: 82%; }
.live-mask-shimmer span:nth-child(3) { width: 66%; }
.live-bars { display: grid; gap: clamp(.8rem, 1.5vh, 1.4rem); }
.live-bar-row { display: grid; grid-template-columns: 70px 100px minmax(0, 1fr) 150px; align-items: center; gap: 1.2rem; padding: clamp(.8rem, 1.6vw, 1.45rem); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.live-bar-rank { color: rgba(255,255,255,.3); font-size: clamp(1.5rem, 2.4vw, 3rem); font-weight: 950; }
.live-bar-logo { position: relative; display: grid; place-items: center; width: 90px; height: 66px; padding: .5rem; overflow: hidden; contain: paint; isolation: isolate; color: var(--accent); background: #fff; border-radius: 12px; font-size: 1.8rem; font-weight: 950; }
.live-bar-logo img { position: absolute; inset: .5rem; display: block; width: calc(100% - 1rem); height: calc(100% - 1rem); max-width: calc(100% - 1rem); max-height: calc(100% - 1rem); object-fit: contain; object-position: center; border-radius: 8px; clip-path: inset(0 round 8px); }
.live-bar-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.live-bar-label strong { font-size: clamp(1.15rem, 1.8vw, 2rem); }
.live-bar-label span { color: rgba(255,255,255,.6); font-weight: 800; }
.live-bar-track { height: clamp(18px, 2vh, 30px); overflow: hidden; background: rgba(255,255,255,.1); border-radius: 999px; }
.live-bar-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), #ff8acb); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.live-bar-percent { text-align: right; font-size: clamp(2.5rem, 4.3vw, 5rem); font-weight: 800; letter-spacing: -.045em; }
.live-bar-percent small { margin-left: .15em; font-size: .36em; }
.victory-layout { display: grid; place-items: center; text-align: center; }
.victory-wait, .victory-reveal, .tie-state { position: relative; z-index: 2; max-width: 1300px; }
.victory-wait .pulse-orb { margin: 2rem auto; }
.victory-wait-copy { max-width: 780px; margin: 0 auto; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.6vw, 1.5rem); }
.victory-layout h1 { margin-bottom: .6rem; font-size: clamp(4rem, 9vw, 11rem); }
.winner-logo { display: grid; place-items: center; width: clamp(150px, 16vw, 300px); height: clamp(120px, 13vw, 240px); margin: 0 auto 1.4rem; padding: 1.5rem; overflow: hidden; color: var(--accent); background: #fff; border-radius: 30px; box-shadow: 0 26px 80px rgba(0,0,0,.3); font-size: 6rem; font-weight: 950; animation: winnerIn .9s cubic-bezier(.2,.9,.2,1.2); }
.winner-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
.winner-claim { color: rgba(255,255,255,.72); font-size: clamp(1.2rem, 2vw, 2rem); }
.winner-score { display: inline-flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: .8rem 1.25rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.winner-score strong { font-size: 1.5rem; font-weight: 800; }
.winner-score span { color: rgba(255,255,255,.66); }
.confetti-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-layer i { position: absolute; left: var(--x); top: -40px; width: var(--size); height: calc(var(--size) * .55); background: var(--accent); animation: confetti var(--duration) linear var(--delay) infinite; transform: rotate(var(--rotation)); }
.confetti-layer i:nth-child(3n) { background: #ffd54f; }
.confetti-layer i:nth-child(3n+1) { background: #fff; }

@keyframes ripple {
    0% { transform: scale(.72); opacity: .72; }
    100% { transform: scale(1.26); opacity: 0; }
}
@keyframes signal {
    0%, 100% { transform: scaleY(.75); opacity: .55; }
    50% { transform: scaleY(1.55); opacity: 1; }
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@keyframes maskDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3%, -2%, 0) scale(1.07); }
}


/* Adaptive presentation layouts for up to five candidates */
.presentation-stage.startup-count-4 .overview-main h1,
.presentation-stage.startup-count-5 .overview-main h1 { font-size: clamp(2.5rem, 4.6vw, 5.8rem); }
.presentation-stage.startup-count-4 .presentation-startups,
.presentation-stage.startup-count-5 .presentation-startups { margin-top: clamp(1rem, 2vw, 1.8rem); }
.presentation-stage.startup-count-4 .presentation-startup-card,
.presentation-stage.startup-count-5 .presentation-startup-card { flex-basis: calc(33.333% - .7rem); max-width: calc(33.333% - .7rem); padding: .78rem; }
.presentation-stage.startup-count-4 .presentation-logo-box,
.presentation-stage.startup-count-5 .presentation-logo-box { width: clamp(58px, 5vw, 84px); height: clamp(58px, 5vw, 84px); }
.presentation-stage.startup-count-4 .presentation-startup-card h2,
.presentation-stage.startup-count-5 .presentation-startup-card h2 { font-size: clamp(.95rem, 1.25vw, 1.35rem); }
.presentation-stage.startup-count-4 .presentation-startup-card p,
.presentation-stage.startup-count-5 .presentation-startup-card p { font-size: clamp(.65rem, .72vw, .82rem); }
.presentation-stage.startup-count-4 .live-layout,
.presentation-stage.startup-count-5 .live-layout { padding-block: 1vh; }
.presentation-stage.startup-count-4 .live-heading,
.presentation-stage.startup-count-5 .live-heading { margin-bottom: clamp(.7rem, 1.5vh, 1.2rem); }
.presentation-stage.startup-count-4 .live-heading h1,
.presentation-stage.startup-count-5 .live-heading h1 { font-size: clamp(2.2rem, 4.2vw, 5rem); }
.presentation-stage.startup-count-4 .live-bars,
.presentation-stage.startup-count-5 .live-bars { gap: clamp(.55rem, 1vh, .85rem); }
.presentation-stage.startup-count-4 .live-bar-row,
.presentation-stage.startup-count-5 .live-bar-row { padding: clamp(.55rem, 1vw, .85rem); border-radius: 18px; }
.presentation-stage.startup-count-4 .live-bar-logo,
.presentation-stage.startup-count-5 .live-bar-logo { width: 76px; height: 56px; }
.presentation-stage.startup-count-4 .live-bar-percent,
.presentation-stage.startup-count-5 .live-bar-percent { font-size: clamp(2rem, 3.5vw, 4rem); }

/* Admin */
.admin-page { background: #f7f4f6; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.5rem; color: #fff; background: var(--sidebar); }
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-bottom: 2.2rem; color: #fff; text-decoration: none; line-height: 1; }
.admin-brand img { display: block; width: min(100%, 220px); height: auto; max-height: 92px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 18px rgba(0,0,0,.16)); }
.admin-brand small { margin-top: .2rem; color: rgba(255,255,255,.52); font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.admin-nav { display: grid; gap: .35rem; }
.admin-nav a { padding: .8rem .85rem; color: rgba(255,255,255,.72); border-radius: 10px; text-decoration: none; font-size: .85rem; font-weight: 750; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-section { margin: 1.2rem .85rem .25rem; color: rgba(255,255,255,.34); font-size: .62rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.admin-user { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user > span, .admin-user > small { display: block; }
.admin-user > span { font-size: .82rem; font-weight: 850; }
.admin-user > small { margin-top: .2rem; color: rgba(255,255,255,.45); font-size: .65rem; word-break: break-all; }
.admin-user div { display: flex; gap: .8rem; margin-top: .7rem; }
.admin-user a { color: rgba(255,255,255,.65); font-size: .68rem; text-decoration: none; }
.admin-main { min-width: 0; padding: clamp(1.25rem, 3vw, 3rem); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.admin-topbar h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); }
.admin-topbar .eyebrow { margin-bottom: .3rem; }
.sidebar-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.status-badge { display: inline-flex; align-items: center; gap: .5rem; width: max-content; padding: .5rem .75rem; color: #554a56; background: #ece7eb; border-radius: 999px; font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.status-badge i { width: 8px; height: 8px; background: #9a8f98; border-radius: 50%; }
.status-open { color: #11684b; background: #e6f7ef; }
.status-open i { background: #20a875; }
.status-closed, .status-inactive { color: #8a2d40; background: #fbe9ed; }
.status-closed i, .status-inactive i { background: #cf4158; }
.status-scheduled { color: #7b570d; background: #fff3d9; }
.status-scheduled i { background: #d89713; }
.admin-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-actions-row p { margin: 0; color: var(--muted); }
.event-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; }
.event-card { position: relative; overflow: hidden; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 36px rgba(55,32,50,.06); }
.event-card-accent { position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.event-card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .25rem 0 1.2rem; }
.tag { display: inline-flex; width: max-content; padding: .35rem .55rem; color: #6b5c68; background: #f0eaee; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .06em; }
.tag-warning { color: #885700; background: #fff1d2; }
.event-date { margin-bottom: .35rem; color: var(--accent); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.event-card h2 { margin-bottom: .5rem; font-size: 1.65rem; }
.event-card > p:not(.event-date) { min-height: 1.5em; color: var(--muted); }
.event-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.3rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.event-stats div { display: flex; flex-direction: column; }
.event-stats strong { font-size: 1.2rem; }
.event-stats span { color: var(--muted); font-size: .66rem; }
.event-card-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.empty-state { padding: 3rem; text-align: center; background: #fff; border: 1px dashed #d7ccd4; border-radius: 20px; }
.admin-panel, .control-deck, .presentation-links, .admin-live-results, .results-control-header { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 32px rgba(55,32,50,.05); }
.admin-panel { padding: clamp(1.2rem, 2.6vw, 2rem); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.panel-heading h2 { margin: 0; font-size: 1.65rem; }
.panel-heading .eyebrow { margin-bottom: .3rem; }
.admin-two-column { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.control-deck { overflow: hidden; margin-bottom: 1.2rem; }
.control-deck-main { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; }
.control-deck-main h2 { margin: 0; }
.control-buttons, .control-deck-actions, .maintenance-actions, .presentation-link-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.control-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.2rem 1.5rem; background: #f8f4f7; border-block: 1px solid var(--line); }
.control-metrics div { display: flex; flex-direction: column; }
.control-metrics strong { font-size: 1.3rem; }
.control-metrics span { color: var(--muted); font-size: .7rem; }
.control-deck-actions { padding: 1rem 1.5rem; }
.presentation-links { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.35rem 1.5rem; }
.presentation-links h2 { margin-bottom: .3rem; }
.presentation-links p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }
.calculated-end { margin: 0; padding: .8rem; color: #5d4c59; background: #f7f1f5; border-radius: 10px; font-size: .82rem; }
.count-pill { padding: .45rem .7rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); border-radius: 999px; font-size: .75rem; font-weight: 900; }
.startup-admin-list { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.startup-admin-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; min-width: 0; max-width: 100%; padding: .75rem; overflow: hidden; background: #fbf9fa; border: 1px solid var(--line); border-radius: 13px; }
.startup-admin-item.is-inactive { opacity: .6; }
.startup-admin-logo { position: relative; display: grid; place-items: center; width: 56px; height: 44px; min-width: 0; padding: .35rem; overflow: hidden; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-weight: 950; line-height: 0; isolation: isolate; }
.startup-admin-logo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.startup-admin-item > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.startup-admin-item strong, .startup-admin-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.startup-admin-item > div:nth-child(2) span { color: var(--muted); font-size: .72rem; }
.startup-edit-form { padding: 1.2rem; background: #f8f4f7; border-radius: 15px; }
.subpanel-heading { display: flex; align-items: center; justify-content: space-between; }
.subpanel-heading h3 { margin: 0; font-size: 1.15rem; }
.subpanel-heading a { color: var(--accent); font-size: .75rem; font-weight: 800; text-decoration: none; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem; background: #fff1f3; border: 1px solid #f2c5cd; border-radius: 13px; }
.danger-zone div { display: flex; flex-direction: column; }
.danger-zone span { color: #8a4f5a; font-size: .72rem; }
.compact-panel { margin-top: 1.2rem; }
.narrow-panel { max-width: 760px; }
.results-control-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; padding: 1.5rem; }
.results-control-header h2 { margin-bottom: .4rem; }
.results-control-header p:last-child { max-width: 760px; margin: 0; color: var(--muted); }
.results-total-card { display: flex; flex-direction: column; align-items: flex-end; }
.results-total-card strong { color: var(--accent); font-size: 3.5rem; line-height: 1; letter-spacing: -.06em; }
.results-total-card span { color: var(--muted); font-size: .72rem; }
.admin-live-results { padding: 1.2rem; }
.admin-live-bars { display: grid; gap: .85rem; }
.admin-result-row { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 1rem; align-items: center; padding: 1rem; background: #f9f6f8; border-radius: 15px; }
.admin-result-logo { display: grid; place-items: center; width: 80px; height: 58px; padding: .5rem; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 1.7rem; font-weight: 950; }
.admin-result-logo img { width: 100%; height: 100%; object-fit: contain; }
.admin-result-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.admin-result-label strong { font-size: 1rem; }
.admin-result-label span { color: var(--muted); font-size: .78rem; }
.result-track { height: 18px; overflow: hidden; background: #e9dfe6; border-radius: 999px; }
.result-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .7s ease; }
.moderation-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: end; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }

/* Print */
.print-page { padding: 2rem; background: #eee; }
.print-sheet { width: min(980px, 100%); margin: 0 auto; padding: 3rem; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.print-sheet header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4rem; }
.print-sheet h1 { font-size: 3rem; }
.print-meta { display: grid; grid-template-columns: repeat(3,1fr); margin: 2rem 0; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.print-meta div { display: flex; flex-direction: column; }
.print-meta dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.print-meta dd { margin: .2rem 0 0; font-weight: 850; }
.print-winner { margin: 2rem 0; padding: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 18px; }
.print-winner span { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.print-winner h2 { margin: .5rem 0; font-size: 2.4rem; }
.print-winner p { margin-bottom: .8rem; opacity: .8; }
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet th, .print-sheet td { padding: .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.print-sheet th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.print-sheet footer { margin-top: 3rem; color: var(--muted); font-size: .7rem; }

@keyframes successIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(83,229,169,0); } }
@keyframes orb { 50% { transform: scale(1.08); filter: drop-shadow(0 0 56px color-mix(in srgb, var(--accent) 72%, transparent)); } }
@keyframes winnerIn { from { opacity: 0; transform: scale(.4) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes confetti { to { top: 110vh; transform: translateX(70px) rotate(calc(var(--rotation) + 720deg)); } }

@media (max-width: 1100px) {
    .startup-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .admin-two-column { grid-template-columns: 1fr; }
    .overview-layout { grid-template-columns: 1fr 300px; gap: 2rem; }
    .presentation-startups { grid-template-columns: 1fr; }
    .presentation-startup-card { flex-basis: 100%; max-width: 100%; padding: .7rem; }
    .live-bar-row { grid-template-columns: 50px 80px minmax(0,1fr) 110px; }
}

@media (max-width: 820px) {
    .form-grid.two-columns, .form-grid.three-columns { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 40vh; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: 0; top: 0; z-index: 20; width: 280px; transform: translateX(-102%); transition: transform .2s ease; }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .sidebar-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; }
    .admin-topbar { align-items: flex-start; }
    .admin-topbar .status-badge { display: none; }
    .control-deck-main, .presentation-links, .results-control-header { align-items: flex-start; flex-direction: column; }
    .moderation-grid { grid-template-columns: 1fr; }
    .moderation-actions { justify-content: flex-start; }
    .overview-layout { grid-template-columns: 1fr; overflow-y: auto; padding-block: 1rem; }
    .qr-panel { width: min(360px,100%); justify-self: center; }
    .presentation-stage { overflow: auto; min-height: 100vh; height: auto; }
    .presentation-header { position: sticky; top: 0; z-index: 3; padding-bottom: 1rem; background: linear-gradient(#1b111e 75%, transparent); }
    .live-bar-row { grid-template-columns: 42px 64px minmax(0,1fr) 90px; gap: .6rem; }
    .live-bar-logo { width: 64px; height: 50px; }
    .presentation-footer { margin-top: 2rem; }
}

@media (max-width: 640px) {
    .voting-page::before { height: 360px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 88%, #2a1530), color-mix(in srgb, var(--accent) 90%, #6e1d62)); }
    .voting-shell { width: min(100%, calc(100% - .9rem)); padding-top: .35rem; }
    .voting-header { position: sticky; top: 0; z-index: 30; min-height: auto; padding: .55rem .65rem .35rem; margin-inline: -.45rem; backdrop-filter: blur(10px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 94%, #111), color-mix(in srgb, var(--accent) 94%, #111)); border-bottom: 1px solid rgba(255,255,255,.12); }
    .voting-header .brand-lockup-official { max-width: 210px; }
    .voting-header .brand-lockup-official img { width: 100%; max-height: 64px; object-fit: contain; object-position: left center; }
    .hero-copy { padding: 1rem 0 .9rem; }
    .hero-copy .eyebrow { margin-bottom: .55rem; font-size: .88rem; }
    .hero-copy h1 { max-width: 12ch; font-size: clamp(2rem, 10.6vw, 3.35rem); line-height: .96; }
    .hero-copy .lead { max-width: 22ch; font-size: 1rem; line-height: 1.35; color: rgba(255,255,255,.92); }
    .vote-form legend { font-size: 1.05rem; }
    .startup-grid { grid-template-columns: 1fr; gap: 1rem; }
    .startup-card-inner { border-radius: 24px; }
    .startup-visual { height: 164px; }
    .startup-logo { top: 1rem; bottom: auto; width: 88px; height: 62px; }
    .startup-copy { padding: 1.05rem 1.1rem 1.2rem; }
    .startup-copy strong { font-size: 1.08rem; }
    .startup-copy em { font-size: .92rem; }
    .startup-copy > span:last-child { font-size: .84rem; }
    .selection-check { right: 1rem; top: 1rem; }
}

@media (max-width: 640px) {
    .hero-copy h1 { font-size: clamp(2.25rem, 11vw, 4rem); overflow-wrap: anywhere; }
    .state-card { margin: 1.2rem auto; padding: 1.5rem 1rem; border-radius: 24px; }
    .published-result h2 { font-size: clamp(1.7rem, 8vw, 2.5rem); overflow-wrap: anywhere; }
    .winner-public-claim { overflow-wrap: anywhere; }
    .public-result-list { width: 100%; }
    .public-result-list div { gap: .7rem; padding: .7rem .75rem; }
    .public-result-list strong { font-size: .92rem; }
    .startup-admin-item { grid-template-columns: 50px minmax(0,1fr) auto; }
    .startup-admin-logo { width: 50px; height: 42px; }
    .startup-admin-item .status-badge { justify-self: end; }
    .startup-admin-item .button { grid-column: 2 / 4; width: 100%; }
    .admin-panel { overflow: hidden; }
    .panel-heading { min-width: 0; }
    .panel-heading > div { min-width: 0; }
    .panel-heading h2 { overflow-wrap: anywhere; }

    .startup-grid { grid-template-columns: 1fr; }
    .vote-submit-wrap { align-items: stretch; flex-direction: column; }
    .button-vote { width: 100%; }
    .public-footer { flex-direction: column; }
    .public-footer nav { gap: .7rem; }
    .event-card-grid { grid-template-columns: 1fr; }
    .event-stats { gap: .5rem; }
    .control-metrics { grid-template-columns: 1fr; gap: .7rem; }
    .startup-admin-item { grid-template-columns: 50px minmax(0,1fr) auto; }
    .startup-admin-item .button { grid-column: 2 / 4; width: 100%; }
    .admin-main { padding: 1rem; }
    .admin-topbar { gap: .7rem; }
    .admin-topbar h1 { font-size: 1.6rem; }
    .results-total-card { align-items: flex-start; }
    .admin-result-row { grid-template-columns: 58px minmax(0,1fr); padding: .75rem; }
    .admin-result-logo { width: 58px; height: 46px; }
    .admin-result-label { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .print-page { padding: 0; }
    .print-sheet { padding: 1.2rem; }
    .print-meta { grid-template-columns: 1fr; gap: .8rem; }
    .presentation-footer nav { display: none; }
    .live-heading { align-items: flex-start; flex-direction: column; }
    .live-total { align-items: flex-start; }
    .live-bar-row { grid-template-columns: 35px 50px minmax(0,1fr); }
    .live-bar-logo { width: 50px; height: 42px; }
    .live-bar-percent { grid-column: 3; text-align: left; font-size: 2rem; }
    .live-bar-label span { display: none; }
}


@media (max-width: 640px) {
    .start-number-section h2 { margin-inline: .15rem; font-size: clamp(1.05rem, 5.2vw, 1.3rem); }
    .start-number-box { padding: 1rem; border-radius: 22px; }
    .start-number-box label { font-size: .9rem; }
    .start-number-box input { width: 100%; min-height: 54px; padding: .75rem .9rem; }
    .vote-submit-wrap { padding: 1rem; border-radius: 22px; }
    .privacy-note { max-width: 100%; font-size: clamp(.76rem, 3.5vw, .88rem); line-height: 1.45; overflow-wrap: anywhere; }
}

@media (max-width: 430px) {
    .hero-copy { padding-top: 1.2rem; }
    .public-result-list div { grid-template-columns: 1fr; gap: .25rem; }
    .public-result-list strong { justify-self: start; }
    .startup-admin-item { grid-template-columns: 46px minmax(0, 1fr); gap: .65rem; }
    .startup-admin-logo { width: 46px; height: 40px; }
    .startup-admin-item .status-badge { grid-column: 2; justify-self: start; }
    .startup-admin-item .button { grid-column: 1 / -1; }
}

@media print {
    .no-print { display: none !important; }
    .print-page { padding: 0; background: #fff; }
    .print-sheet { width: 100%; padding: 0; box-shadow: none; }
    @page { margin: 16mm; }
}

.public-winner-logo { display: grid; place-items: center; width: min(190px, 68vw); aspect-ratio: 4 / 3; height: auto; margin: 0 auto 1.2rem; padding: 1rem; overflow: hidden; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 36px rgba(52,25,47,.12); font-size: 3rem; font-weight: 950; }
.public-winner-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.winner-public-claim { color: var(--accent); font-weight: 850; }
.public-result-list { display: grid; gap: .55rem; max-width: 560px; margin: 1.5rem auto 0; text-align: left; }
.public-result-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; padding: .75rem .9rem; overflow: hidden; background: #f7f2f6; border-radius: 10px; }
.public-result-list span { min-width: 0; overflow-wrap: anywhere; }
.public-result-list strong { white-space: nowrap; font-weight: 800; }

@media (max-width: 640px) {
    .public-result-list { width: 100%; }
    .public-result-list div { gap: .7rem; padding: .7rem .75rem; }
    .public-result-list strong { font-size: .92rem; }
}

@media (max-width: 430px) {
    .public-result-list div { grid-template-columns: 1fr; gap: .25rem; }
    .public-result-list strong { justify-self: start; }
}

/* Mobile typography refinements */
@media (max-width: 640px) {
    .hero-copy { min-width: 0; }
    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2rem, 9.4vw, 3.1rem);
        line-height: .98;
        letter-spacing: -.045em;
        overflow-wrap: anywhere;
        hyphens: auto;
        text-wrap: balance;
    }
    .hero-copy .lead {
        max-width: 100%;
        font-size: clamp(.98rem, 4.5vw, 1.15rem);
        line-height: 1.35;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .state-card {
        width: 100%;
        padding: clamp(1.3rem, 6vw, 2rem) clamp(1rem, 5vw, 1.5rem);
    }
    .state-card h2 {
        font-size: clamp(1.65rem, 7.5vw, 2.35rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
    .state-card p {
        font-size: clamp(1rem, 4.7vw, 1.25rem);
        line-height: 1.42;
        overflow-wrap: anywhere;
    }
    .state-card .success-hint { font-size: clamp(.95rem, 4.2vw, 1.1rem); }
    .success-icon { width: clamp(64px, 19vw, 88px); height: clamp(64px, 19vw, 88px); }
    .startup-copy strong, .startup-copy em, .startup-copy > span:last-child { overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 390px) {
    .hero-copy h1 { font-size: clamp(1.85rem, 9vw, 2.65rem); }
    .hero-copy .lead { font-size: .96rem; }
    .state-card h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .state-card p { font-size: 1rem; }
}


/* Voting landing page */
.voting-landing-page {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 8%, rgba(159, 207, 0, .13), transparent 27rem),
        radial-gradient(circle at 10% 22%, rgba(255,255,255,.8), transparent 32rem),
        linear-gradient(145deg, #f6f4f5, #ebe8ea);
}
.voting-landing-shell { width: min(1180px, calc(100% - 2rem)); min-height: 100vh; margin: 0 auto; padding: 1.5rem 0 2.5rem; }
.voting-landing-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(32,25,35,.1); }
.voting-landing-brand { display: inline-flex; width: min(220px, 48vw); text-decoration: none; }
.voting-landing-brand img { width: 100%; height: auto; max-height: 72px; object-fit: contain; object-position: left center; }
.voting-landing-header > span { color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.voting-landing-hero { max-width: 850px; padding: clamp(3.2rem, 9vw, 7rem) 0 clamp(2.2rem, 6vw, 4rem); }
.voting-landing-hero .eyebrow { color: #6f9100; }
.voting-landing-hero h1 { margin-bottom: 1rem; font-size: clamp(3rem, 8vw, 7rem); }
.voting-landing-hero > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.3rem); }
.voting-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.voting-event-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 390px; padding: clamp(1.25rem, 3vw, 2rem); overflow: hidden; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: 0 22px 60px rgba(46,35,44,.1); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.voting-event-card:hover { transform: translateY(-4px); box-shadow: 0 30px 75px rgba(46,35,44,.16); }
.voting-event-card-accent { position: absolute; inset: 0 0 auto; z-index: -1; height: 9px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.voting-event-card::after { content: ""; position: absolute; right: -90px; bottom: -120px; z-index: -1; width: 280px; height: 280px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%); border-radius: 50%; }
.voting-event-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.voting-event-logo { display: grid; place-items: center; width: 150px; height: 88px; padding: .7rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.voting-event-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.voting-event-card-copy { flex: 1; margin-top: 2rem; }
.voting-event-card-copy .eyebrow { color: color-mix(in srgb, var(--accent) 74%, #2b2230); }
.voting-event-card-copy h2 { margin-bottom: .8rem; font-size: clamp(1.8rem, 3vw, 3rem); overflow-wrap: anywhere; }
.voting-event-card-copy > p:last-child { color: var(--muted); overflow-wrap: anywhere; }
.voting-event-card-meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-top: 1.5rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.voting-event-card-meta span:not(:last-child)::after { content: "·"; margin-left: .8rem; }
.voting-event-card-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 900; }
.voting-event-card-action b { color: var(--accent); font-size: 1.4rem; }
.voting-landing-empty { padding: clamp(2rem, 6vw, 4rem); text-align: center; background: rgba(255,255,255,.92); border-radius: 28px; box-shadow: var(--shadow); }

@media (max-width: 760px) {
    .voting-landing-shell { width: min(100% - 1rem, 1180px); padding-top: .6rem; }
    .voting-landing-header { min-height: 64px; padding-inline: .35rem; }
    .voting-landing-brand { width: min(180px, 50vw); }
    .voting-landing-header > span { font-size: .65rem; }
    .voting-landing-hero { padding: 2.8rem .35rem 2rem; }
    .voting-landing-hero h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
    .voting-event-grid { grid-template-columns: 1fr; }
    .voting-event-card { min-height: 340px; border-radius: 23px; }
    .voting-event-logo { width: 118px; height: 72px; }
    .voting-event-card-head { align-items: center; }
    .voting-event-card .status-badge { font-size: .68rem; }
    .voting-event-card-copy { margin-top: 1.4rem; }
}


/* Neutral platform landing page */
.voting-landing-page {
    min-height: 100vh;
    color: #211d22;
    background:
        radial-gradient(circle at 84% 12%, rgba(164, 207, 0, .18), transparent 30%),
        radial-gradient(circle at 12% 86%, rgba(150, 150, 150, .16), transparent 34%),
        linear-gradient(145deg, #fff 0%, #f6f4f5 58%, #eeecee 100%);
}
.voting-landing-shell { min-height: 100vh; }
.voting-landing-simple {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1180px, calc(100% - 3rem));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.2rem) 0 1.4rem;
    overflow: hidden;
}
.voting-landing-simple::before {
    content: "";
    position: absolute;
    right: -12rem;
    bottom: -16rem;
    width: 36rem;
    height: 36rem;
    border: 1px solid rgba(164, 207, 0, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 6rem rgba(164, 207, 0, .035), 0 0 0 12rem rgba(164, 207, 0, .025);
    pointer-events: none;
}
.voting-landing-logo { position: relative; z-index: 1; width: min(360px, 62vw); }
.voting-landing-logo img { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; }
.voting-landing-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 930px;
    padding: clamp(3rem, 9vh, 7rem) 0;
}
.voting-landing-copy .eyebrow { margin-bottom: 1.1rem; color: #759600; }
.voting-landing-copy h1 {
    max-width: 900px;
    margin-bottom: 1.3rem;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: .96;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.voting-landing-copy > p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 2rem;
    color: #686168;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
}
.voting-landing-contact {
    color: #202020;
    background: linear-gradient(135deg, #b8db11, #96bf00);
    box-shadow: 0 16px 34px rgba(125, 157, 0, .22);
}
.voting-landing-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    color: #7d767c;
    border-top: 1px solid rgba(32, 25, 35, .1);
    font-size: .78rem;
    font-weight: 700;
}
.voting-landing-footer a { color: inherit; text-decoration: none; }
.voting-landing-footer a:hover { color: #5e7800; }

@media (max-width: 640px) {
    .voting-landing-simple { width: min(100% - 1.4rem, 1180px); padding-top: 1rem; }
    .voting-landing-logo { width: min(270px, 75vw); }
    .voting-landing-copy { padding: 3.2rem 0 4rem; }
    .voting-landing-copy h1 { font-size: clamp(2.65rem, 14vw, 4.7rem); }
    .voting-landing-copy > p:not(.eyebrow) { font-size: 1rem; }
    .voting-landing-contact { width: 100%; }
    .voting-landing-footer { align-items: flex-start; flex-direction: column; }
}


/* v0.1.13 – Landingpage refinement */
.voting-landing-simple {
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1120px, calc(100% - 3rem));
    padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}
.voting-landing-logo { width: min(320px, 56vw); }
.voting-landing-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 940px;
    padding: clamp(3rem, 10vh, 7.5rem) 0;
}
.voting-landing-copy .eyebrow {
    margin-bottom: 1.25rem;
    color: #789600;
    font-size: clamp(.78rem, 1vw, .95rem);
}
.voting-landing-copy h1 {
    max-width: 860px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.2rem, 6.5vw, 6.6rem);
    line-height: .98;
}
.voting-landing-lead {
    max-width: 720px;
    margin: 0 0 2.25rem;
    color: #5f5960;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.55;
}
.voting-landing-contact {
    min-height: 54px;
    padding: .9rem 1.45rem;
    color: #fff;
    background: #201c20;
    border: 0;
    box-shadow: 0 14px 32px rgba(32, 28, 32, .18);
    font-size: .95rem;
    font-weight: 850;
}
.voting-landing-contact:hover {
    color: #fff;
    background: #313033;
    box-shadow: 0 18px 38px rgba(32, 28, 32, .24);
}
.voting-landing-footer {
    align-items: center;
    padding-top: 1.2rem;
    font-size: .82rem;
}
.voting-landing-footer a {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
@media (max-width: 640px) {
    .voting-landing-simple { width: min(100% - 1.5rem, 1120px); padding: 1.2rem 0 1.4rem; }
    .voting-landing-logo { width: min(250px, 72vw); }
    .voting-landing-copy { padding: 3.5rem 0 4rem; }
    .voting-landing-copy h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
    .voting-landing-lead { font-size: 1rem; line-height: 1.5; }
    .voting-landing-contact { width: auto; min-width: 180px; }
    .voting-landing-footer { align-items: flex-start; gap: .45rem; }
}


/* v0.1.14 – Landingpage CTA and footer */
.voting-landing-logo { text-decoration: none; }
.voting-landing-contact {
    color: #fff;
    background: linear-gradient(135deg, #e0007a, #ba0067);
    box-shadow: 0 14px 32px rgba(224, 0, 122, .24);
}
.voting-landing-contact:hover {
    color: #fff;
    background: linear-gradient(135deg, #ee1689, #c4006d);
    box-shadow: 0 18px 38px rgba(224, 0, 122, .3);
}
.voting-landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
}
.voting-landing-footer-main,
.voting-landing-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .55rem;
}
.voting-landing-footer nav { gap: 1rem; }
.voting-landing-footer a {
    color: #39333a;
    font-weight: 800;
    text-decoration: none;
}
.voting-landing-footer a:hover { color: #e0007a; }

@media (max-width: 640px) {
    .voting-landing-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }
    .voting-landing-footer-main { gap: .3rem .45rem; }
}
