@font-face {
    font-family:Unbounded;
    src:url('../fonts/Unbounded.woff2') format('woff2');
    font-style:normal;
    font-weight:200 900;
    font-display:swap
}

@font-face {
    font-family:Manrope;
    src:url('../fonts/Manrope.woff2') format('woff2');
    font-style:normal;
    font-weight:200 800;
    font-display:swap
}

:root {
    color-scheme:dark;
    --ink:#fffaf5;
    --soft:#e2e3e5;
    --muted:#b8c8d0;
    --line:rgba(255,255,255,.21);
    --panel:rgba(7,27,45,.36);
    --blue:#158bc7;
    --orange:#ff702b;
    --heading:Unbounded,Arial,sans-serif;
    --body:Manrope,Arial,sans-serif
}

* {
    box-sizing:border-box
}

html {
    min-height:100%;
    scroll-behavior:smooth;
    background:#0b2943
}

body {
    margin:0;
    min-width:320px;
    min-height:100vh;
    color:var(--ink);
    font-family:var(--body);
    font-size:16px;
    line-height:1.6;
    isolation:isolate;
    background:radial-gradient(ellipse at -9% 7%,rgba(255,108,23,.89),transparent 48%),radial-gradient(ellipse at 109% 22%,rgba(0,111,192,.95),transparent 52%),linear-gradient(120deg,#713517 0%,#223540 44%,#06365a 76%,#042644 100%);
    background-attachment:fixed
}

body::before {
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:radial-gradient(ellipse at 9% 92%,rgba(188,58,8,.34),transparent 45%),radial-gradient(ellipse at 82% 88%,rgba(0,98,178,.28),transparent 56%)
}

body::after {
    content:"";
    position:fixed;
    inset:0;
    z-index:9;
    pointer-events:none;
    background:url('../images/grain.svg');
    opacity:.13;
    mix-blend-mode:soft-light
}

a {
    color:inherit;
    text-decoration:none
}

button,input,select,textarea {
    font:inherit
}

button,a {
    -webkit-tap-highlight-color:transparent
}

button {
    cursor:pointer
}

img {
    display:block;
    max-width:100%
}

h1,h2,h3,p {
    margin:0
}

h1,h2,h3 {
    line-height:1.25
}

a:focus-visible,button:focus-visible {
    outline:3px solid #ffb26d;
    outline-offset:5px
}

button:disabled {
    opacity:.45;
    cursor:not-allowed
}

[hidden] {
    display:none!important
}

.shell {
    width:min(1320px,calc(100% - 96px));
    margin-inline:auto
}

.site-header {
    height:114px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    border-bottom:1px solid var(--line)
}

.brand {
    display:flex;
    align-items:center;
    gap:16px;
    flex-shrink:0
}

.brand img {
    width:65px;
    height:65px;
    object-fit:contain
}

.brand>span {
    font-family:var(--heading);
    font-size:12px;
    font-weight:600;
    letter-spacing:.055em;
    line-height:1.55
}

.brand small {
    display:block;
    font:500 10px var(--body);
    letter-spacing:.38em;
    margin-top:5px;
    color:var(--soft)
}

.site-nav {
    display:flex;
    align-items:center;
    gap:34px;
    font-size:13px;
    font-weight:600
}

.site-nav>a:not(.button) {
    padding-block:8px;
    border-bottom:1px solid transparent
}

.site-nav>a:hover,.site-nav>[aria-current=page] {
    border-color:#fff
}

.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    padding:17px 24px;
    min-height:56px;
    border:1px solid transparent;
    border-radius:10px;
    font-weight:700;
    font-size:14px;
    line-height:1.3;
    transition:background .2s,transform .2s,box-shadow .2s
}

.button>span {
    font-size:22px;
    line-height:1
}

.button:hover {
    transform:translateY(-2px)
}

.button-light {
    background:#fff9f1;
    color:#17384f;
    box-shadow:0 8px 30px #2020201c
}

.button-light:hover {
    background:#fff;
    box-shadow:0 10px 35px #1a20202e
}

.button-outline {
    border-color:rgba(255,255,255,.5);
    background:rgba(255,255,255,.04)
}

.button-outline:hover {
    background:#ffffff13
}

.button-small {
    padding:11px 18px;
    min-height:43px;
    font-size:12px;
    gap:17px
}

.text-link {
    font-weight:600;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    gap:16px
}

.text-link:hover {
    color:#ffd0a9
}

.skip-link {
    position:fixed;
    top:-100px;
    left:20px;
    padding:12px;
    background:#fff;
    color:#102e48;
    z-index:20
}

.skip-link:focus {
    top:12px
}

.hero {
    display:grid;
    grid-template-columns:1.13fr 1fr;
    align-items:center;
    gap:12px;
    min-height:660px;
    padding:48px 0 62px
}

.hero-copy {
    position:relative;
    z-index:1
}

.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:.2em;
    text-transform:uppercase;
    display:flex;
    align-items:center;
    gap:12px;
    color:#f1dfcf
}

.small-line {
    width:26px;
    height:1px;
    background:currentColor
}

.hero h1 {
    font-family:var(--heading);
    font-size:clamp(30px,3.25vw,48px);
    font-weight:600;
    letter-spacing:-.055em;
    line-height:1.4;
    margin:26px 0 24px;
    white-space:nowrap
}

.hero h1 span {
    font-weight:400
}

.hero-description {
    font-size:16px;
    color:var(--soft);
    line-height:1.85
}

.hero-actions {
    display:flex;
    align-items:center;
    gap:26px;
    flex-wrap:wrap;
    margin-top:34px
}

.hero-caption {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    color:var(--soft);
    margin-top:27px
}

.status-dot {
    height:6px;
    width:6px;
    flex-shrink:0;
    background:#a8dbf8;
    border-radius:50%;
    box-shadow:0 0 12px #68c8ff80
}

.hero-art {
    position:relative;
    display:grid;
    place-items:center
}

.hero-art::before {
    content:"";
    position:absolute;
    inset:18% 0 0;
    border-radius:50%;
    background:radial-gradient(ellipse,#031d2a80,transparent 68%);
    filter:blur(25px);
    z-index:-1
}

.hero-logo {
    width:100%;
    height:auto;
    max-width:560px;
    filter:drop-shadow(0 25px 35px rgba(0,19,32,.26))
}

.participate-section {
    padding:16px 0 75px
}

.section-heading {
    margin-bottom:30px
}

.section-heading .eyebrow {
    margin-bottom:15px;
    font-size:9px
}

.section-heading h2 {
    font-family:var(--heading);
    font-size:clamp(19px,2vw,28px);
    font-weight:400;
    letter-spacing:-.04em
}

.section-heading-row {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:22px
}

.section-count,.muted {
    font-size:12px;
    color:var(--muted)
}

.participate-grid {
    display:grid;
    grid-template-columns:1fr 1fr .86fr;
    gap:18px
}

.feature-card,.qr-card {
    padding:26px 28px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--panel);
    box-shadow:0 16px 50px #03172a13;
    backdrop-filter:blur(12px)
}

.feature-card {
    display:flex;
    flex-direction:column;
    transition:background .2s,border-color .2s
}

.feature-card:hover {
    border-color:#ffffff70;
    background:rgba(12,42,62,.56)
}

.feature-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:26px
}

.step-number {
    font-family:var(--heading);
    font-size:30px;
    font-weight:400;
    color:#e8c4ac
}

.round-arrow {
    display:grid;
    place-items:center;
    flex-shrink:0;
    border:1px solid var(--line);
    height:36px;
    width:36px;
    border-radius:50%;
    font-size:22px;
    font-weight:400
}

.feature-card h3,.qr-card h3 {
    font-family:var(--heading);
    font-size:13px;
    font-weight:500;
    letter-spacing:-.02em
}

.feature-card p,.qr-card p {
    font-size:12px;
    line-height:1.9;
    color:var(--muted);
    margin-top:12px
}

.card-link {
    font-size:11px;
    font-weight:700;
    margin-top:22px
}

.qr-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
    text-align:center
}

.qr-image {
    background:white;
    border-radius:10px;
    border:9px solid #fff;
    width:140px;
    height:140px;
    object-fit:contain
}

.qr-card p {
    margin-top:8px
}

.event-section {
    padding:0 0 70px
}

.campaign-list {
    border-top:1px solid var(--line)
}

.campaign-row {
    display:flex;
    align-items:center;
    gap:24px;
    padding:23px 0;
    border-bottom:1px solid var(--line)
}

.campaign-index {
    font-family:var(--heading);
    font-size:12px;
    color:#efb18a
}

.campaign-row h3 {
    font-size:19px;
    font-weight:500;
    flex:1;
    overflow-wrap:anywhere
}

.quiet-state {
    display:flex;
    align-items:center;
    gap:24px;
    border-block:1px solid var(--line);
    padding:32px 0
}

.quiet-icon {
    font-family:var(--heading);
    font-size:36px;
    color:#f4bc92
}

.quiet-state h3 {
    font-size:17px;
    font-weight:600
}

.quiet-state p {
    color:var(--muted);
    font-size:13px;
    margin-top:8px;
    max-width:620px
}

.quiet-state .text-link {
    margin-left:auto;
    flex-shrink:0
}

.recent-section {
    padding-bottom:70px
}

.table-wrap {
    overflow-x:auto;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel)
}

.event-table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    text-align:left
}

.event-table th {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:var(--muted);
    font-weight:500
}

.event-table td,.event-table th {
    padding:19px 24px;
    border-bottom:1px solid #ffffff10
}

.event-table tr:last-child td {
    border-bottom:0
}

.event-table td:last-child {
    white-space:nowrap
}

.status-pill {
    display:inline-flex;
    padding:5px 9px;
    border-radius:5px;
    background:#ffffff0d;
    white-space:nowrap;
    font-size:10px
}

.status-active {
    color:#c2ebff;
    background:#3385ac40
}

.status-published {
    color:#ffd7ae;
    background:#c7682529
}

.site-footer {
    padding:26px 0 32px;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:10px;
    font-weight:600;
    letter-spacing:.05em
}

.site-footer a {
    color:var(--muted);
    font-weight:400;
    letter-spacing:0
}

.footer-separator {
    color:#df9e73;
    margin-inline:9px
}

/* Live scoreboard: the same atmosphere, with large readable names and counts. */
.results-page {
    background:radial-gradient(ellipse at -10% 0%,rgba(243,103,22,.8),transparent 53%),radial-gradient(ellipse at 110% 30%,rgba(0,108,184,.9),transparent 59%),linear-gradient(112deg,#633821,#143247 48%,#073f68)
}

.scoreboard {
    padding:46px 0 50px;
    min-height:calc(100svh - 196px)
}

.results-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    margin-bottom:28px
}

.results-heading h1 {
    font-family:var(--heading);
    font-size:clamp(27px,2.6vw,40px);
    font-weight:400;
    letter-spacing:-.045em;
    margin:14px 0 12px
}

.results-heading .campaign-name {
    font-size:13px;
    color:var(--soft)
}

.results-heading .heading-brand {
    width:125px;
    height:125px;
    object-fit:contain;
    flex-shrink:0
}

.results-utility {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:19px 0 25px
}

.live-indicator {
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-size:11px;
    color:var(--soft)
}

.vote-total {
    font-size:12px;
    color:var(--soft)
}

.vote-total strong {
    font-family:var(--heading);
    font-size:22px;
    font-weight:500;
    margin-left:12px;
    color:var(--ink)
}

.score-table {
    border:1px solid #ffffff29;
    border-radius:18px;
    overflow:hidden;
    background:rgba(5,27,44,.55);
    box-shadow:0 25px 70px #021d3026;
    backdrop-filter:blur(20px)
}

.score-table-head {
    display:grid;
    grid-template-columns:1fr 1fr;
    background:#ffffff06;
    color:var(--muted);
    font-size:9px;
    letter-spacing:.16em;
    text-transform:uppercase
}

.score-table-head>div {
    display:flex;
    justify-content:space-between;
    padding:17px 28px
}

.score-table-head>div+div {
    border-left:1px solid #ffffff14
}

.results-grid {
    display:grid;
    grid-template-columns:1fr 1fr
}

.column+.column {
    border-left:1px solid #ffffff1c
}

.snake-item {
    min-height:88px;
    display:flex;
    align-items:center;
    gap:22px;
    padding:22px 28px;
    border-top:1px solid #ffffff16;
    transition:background .2s
}

.position {
    font-family:var(--heading);
    font-weight:400;
    font-size:16px;
    color:#bed3e1;
    min-width:30px;
    flex-shrink:0
}

.name {
    font-size:clamp(15px,1.25vw,20px);
    font-weight:600;
    line-height:1.5;
    flex:1;
    overflow-wrap:anywhere
}

.votes {
    font-family:var(--heading);
    font-size:clamp(22px,2.2vw,32px);
    font-weight:400;
    letter-spacing:-.04em;
    min-width:40px;
    text-align:right;
    flex-shrink:0
}

.snake-item.is-winner {
    background:linear-gradient(100deg,#dd6a2424,transparent 72%)
}

.snake-item.is-winner .position,.snake-item.is-winner .votes {
    color:#ffc194
}

.winner-mark {
    color:#ffd3ad
}

.individual-grid {
    grid-template-columns:1fr
}

.score-table-head.individual-head {
    grid-template-columns:1fr
}

.results-bottom {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding-top:26px
}

.results-note {
    color:var(--muted);
    font-size:11px;
    max-width:390px
}

.vote-via-qr {
    display:flex;
    align-items:center;
    gap:14px
}

.vote-via-qr .qr-image {
    width:77px;
    height:77px;
    border-width:6px;
    border-radius:8px
}

.vote-via-qr p {
    font-size:10px;
    color:var(--muted);
    margin-top:5px
}

.vote-via-qr a {
    font-size:12px;
    font-weight:600
}

.rounds-section {
    border-top:1px solid var(--line);
    padding-top:29px;
    margin-top:34px
}

.rounds-section h2 {
    font-family:var(--heading);
    font-size:13px;
    font-weight:400;
    letter-spacing:-.02em;
    margin-bottom:18px
}

.round-links {
    display:flex;
    flex-wrap:wrap;
    gap:9px
}

.round-link {
    border:1px solid var(--line);
    border-radius:7px;
    padding:10px 15px;
    font-size:11px;
    color:var(--soft)
}

.round-link:hover {
    background:#ffffff0c
}

.round-link.is-selected {
    background:#f9eadb;
    color:#1b3648;
    border-color:#f9eadb
}

.tie-notice {
    padding:16px 20px;
    border:1px solid #e7a06f80;
    background:#a764382b;
    border-radius:10px;
    margin-bottom:23px;
    font-size:13px;
    color:#ffdcba
}

.empty-scoreboard {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
    min-height:430px;
    padding:40px 20px;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--panel)
}

.empty-scoreboard img {
    width:170px;
    height:170px;
    object-fit:contain;
    margin-bottom:27px
}

.empty-scoreboard h2 {
    font-family:var(--heading);
    font-size:23px;
    font-weight:400;
    margin-bottom:14px
}

.empty-scoreboard p {
    max-width:480px;
    font-size:14px;
    color:var(--soft);
    margin-bottom:25px
}

.score-placeholder {
    padding:45px;
    text-align:center;
    color:var(--soft);
    font-size:14px
}

@media(min-width:1600px) {
    .shell {
        width:min(1520px,calc(100% - 140px))
    }
    .hero {
        min-height:740px
    }
    .hero-logo {
        max-width:640px
    }
    .hero h1 {
        font-size:54px
    }
    .snake-item {
        min-height:108px
    }
    .name {
        font-size:23px
    }
    .votes {
        font-size:37px
    }
}

@media(max-width:1100px) {
    .shell {
        width:calc(100% - 64px)
    }
    .site-nav {
        gap:22px
    }
    .hero {
        min-height:560px
    }
    .hero h1 {
        font-size:34px
    }
    .hero-actions {
        gap:20px
    }
    .hero-actions .text-link {
        font-size:12px
    }
    .hero-actions .button {
        padding:16px 18px;
        font-size:12px
    }
    .participate-grid {
        grid-template-columns:1fr 1fr
    }
    .qr-card {
        grid-column:1/-1;
        flex-direction:row;
        text-align:left;
        padding:20px
    }
    .qr-card .qr-image {
        height:95px;
        width:95px
    }
    .feature-card h3 {
        font-size:12px
    }
    .snake-item {
        gap:15px;
        padding:20px
    }
    .score-table-head>div {
        padding-inline:20px
    }
    .quiet-state .text-link {
        display:none
    }
    .desktop-break {
        display:none
    }
}

@media(max-width:760px) {
    .shell {
        width:calc(100% - 40px)
    }
    .site-header {
        height:89px;
        gap:15px
    }
    .brand {
        gap:9px
    }
    .brand img {
        width:48px;
        height:48px
    }
    .brand>span {
        font-size:9px
    }
    .brand small {
        font-size:8px
    }
    .site-nav {
        gap:18px;
        font-size:11px
    }
    .site-nav .nav-admin,.site-nav>.button {
        display:none
    }
    .hero {
        grid-template-columns:1fr;
        padding:44px 0 34px;
        gap:8px
    }
    .hero h1 {
        font-size:clamp(27px,6.5vw,44px);
        line-height:1.5;
        margin-top:20px
    }
    .eyebrow {
        font-size:8px;
        letter-spacing:.15em
    }
    .hero-description {
        font-size:14px
    }
    .hero-actions {
        margin-top:24px;
        gap:20px
    }
    .hero-actions .button {
        font-size:12px;
        min-height:51px
    }
    .hero-caption {
        font-size:10px;
        margin-top:22px
    }
    .hero-art {
        margin:12px auto 0;
        max-width:400px;
        width:88%
    }
    .hero-logo {
        max-width:390px
    }
    .participate-section {
        padding:0 0 45px
    }
    .section-heading {
        margin-bottom:22px
    }
    .section-heading h2 {
        font-size:21px;
        line-height:1.5
    }
    .section-heading .eyebrow {
        font-size:8px
    }
    .participate-grid {
        grid-template-columns:1fr;
        gap:12px
    }
    .feature-card {
        padding:22px
    }
    .feature-top {
        margin-bottom:18px
    }
    .feature-card h3 {
        font-size:13px
    }
    .feature-card p {
        font-size:13px
    }
    .card-link {
        font-size:12px;
        margin-top:18px
    }
    .qr-card {
        grid-column:auto;
        gap:22px;
        padding:22px
    }
    .qr-card h3 {
        font-size:12px
    }
    .qr-card p {
        font-size:11px
    }
    .event-section,.recent-section {
        padding-bottom:45px
    }
    .section-heading-row {
        align-items:start;
        flex-direction:column;
        gap:12px
    }
    .campaign-row {
        gap:14px
    }
    .campaign-row h3 {
        font-size:16px
    }
    .campaign-row>.muted {
        display:none
    }
    .quiet-state {
        gap:18px;
        padding:24px 0;
        align-items:start
    }
    .quiet-icon {
        font-size:27px
    }
    .quiet-state h3 {
        font-size:15px
    }
    .quiet-state p {
        font-size:12px
    }
    .event-table td,.event-table th {
        padding:16px;
        min-width:120px
    }
    .site-footer {
        font-size:8px;
        gap:18px;
        line-height:1.7
    }
    .site-footer a {
        text-align:right
    }
    .scoreboard {
        padding-top:30px
    }
    .results-heading {
        gap:12px;
        margin-bottom:13px
    }
    .results-heading h1 {
        font-size:26px;
        line-height:1.4;
        margin-top:10px
    }
    .results-heading .heading-brand {
        height:82px;
        width:82px
    }
    .results-heading .campaign-name {
        font-size:11px
    }
    .results-utility {
        padding:15px 0 20px;
        gap:10px
    }
    .live-indicator {
        font-size:9px;
        gap:6px
    }
    .vote-total {
        font-size:9px
    }
    .vote-total strong {
        font-size:18px;
        margin-left:6px
    }
    .results-grid {
        grid-template-columns:1fr
    }
    .column+.column {
        border-left:0
    }
    .score-table-head {
        grid-template-columns:1fr
    }
    .score-table-head>div+div {
        display:none
    }
    .score-table-head>div {
        padding:15px 18px;
        font-size:8px
    }
    .snake-item {
        min-height:76px;
        padding:18px;
        gap:14px
    }
    .position {
        font-size:13px;
        min-width:22px
    }
    .name {
        font-size:15px
    }
    .votes {
        font-size:24px
    }
    .results-bottom {
        flex-direction:column;
        align-items:stretch;
        padding-top:22px;
        gap:22px
    }
    .vote-via-qr {
        justify-content:space-between;
        flex-direction:row-reverse;
        padding-top:17px;
        border-top:1px solid var(--line)
    }
    .results-note {
        font-size:10px
    }
    .round-link {
        font-size:10px;
        padding:9px 12px
    }
    .rounds-section {
        margin-top:28px
    }
    .empty-scoreboard {
        min-height:420px;
        padding:30px 22px
    }
    .empty-scoreboard h2 {
        font-size:20px;
        line-height:1.5
    }
    .empty-scoreboard p {
        font-size:13px
    }
    .tie-notice {
        font-size:12px;
        padding:13px 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    *,*::before,*::after {
        transition:none!important;
        animation:none!important
    }
}

/* The projection view leaves only the voting content on screen. */
.screen-toggle {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 12;
    border: 1px solid #ffffff55;
    border-radius: 8px;
    background: #10344eed;
    color: white;
    padding: 10px 15px;
    font-size: 12px;
}
html.scoreboard-screen .site-header,
html.scoreboard-screen .site-footer,
html.scoreboard-screen .rounds-section {
    display: none;
}
html.scoreboard-screen .scoreboard {
    min-height: 100svh;
    padding-top: 22px;
    padding-bottom: 22px;
}
html.scoreboard-screen .screen-toggle {
    opacity: 0;
}
html.scoreboard-screen .screen-toggle:hover,
html.scoreboard-screen .screen-toggle:focus-visible {
    opacity: 1;
}
html.scoreboard-screen .results-heading h1 {
    font-size: clamp(22px, 2.1vw, 34px);
}
.results-heading > div {
    min-width: 0;
}
@media (max-width: 760px) {
    .results-heading h1 { font-size: 21px; overflow-wrap: anywhere; }
    .results-heading .heading-brand { width: 65px; height: 65px; }
}
