:root {
    color-scheme: light;
    --ink: #162644;
    --muted: #495b75;
    --navy: #152a4b;
    --blue: #234e94;
    --orange: #ff9a5c;
    --line: #d8e2ee;
    --surface: #f4f7fb;
    font: 100%/1.55 system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
form { margin: 0; }
:focus-visible { outline: 3px solid #3570c8; outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; max-width: 155px; object-fit: contain; }
.contest-tabs { display: flex; flex-wrap: wrap; gap: .15rem .45rem; }
.contest-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .65rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650; text-decoration: none; }
.contest-tabs a:hover, .contest-tabs a[aria-current="page"] { color: var(--blue); }
.contest-tabs a[aria-current="page"] { border-bottom-color: var(--blue); }
.hero { background: var(--navy); color: #fff; padding: clamp(2.4rem, 7vw, 5rem) 0; }
.eyebrow { color: #ffbf98; font-size: .87rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.hero h1 { margin: .45rem 0 .7rem; font-size: clamp(2.15rem, 6vw, 4.3rem); line-height: 1.05; letter-spacing: -.045em; }
.hero h1 span { color: #ffad7d; display: inline-block; }
.intro { color: #e0ebff; font-size: clamp(1rem, 2vw, 1.17rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.button, .text-button { font: inherit; font-weight: 650; cursor: pointer; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; text-align: center; }
.primary { background: var(--orange); color: #211b19; }
.primary:hover { background: #ffb281; }
.hero-secondary { border-color: #a5b8d8; color: #fff; }
.hero-secondary:hover { background: #243f66; }
.secondary { background: #fff; border-color: #a9bddc; color: var(--blue); }
.secondary:hover { background: #ecf3ff; }
.text-button { color: var(--blue); background: none; border: 0; padding: .55rem .1rem; text-decoration: underline; }
.contest { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.85fr); align-items: start; gap: clamp(1rem, 3vw, 2rem); padding-block: 2rem 3rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.5rem); }
.panel, .gallery { scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; margin-bottom: .7rem; }
.panel > p, .gallery > p { margin-bottom: .9rem; }
.entry-form { display: grid; gap: .45rem; }
.entry-form label { font-weight: 650; margin-top: .4rem; }
.entry-form input:not([type=hidden]), .entry-form textarea { display: block; width: 100%; min-width: 0; font: inherit; color: inherit; background: #fff; border: 1px solid #a8b9ce; border-radius: 6px; padding: .58rem .65rem; }
.entry-form textarea { resize: vertical; }
.entry-form button { justify-self: start; margin-top: .45rem; }
.hint { color: var(--muted); font-size: .87rem; }
.notice { background: #ebf2ff; border-radius: 6px; padding: .65rem .8rem; color: #233d73; }
ul.notice { padding-left: 1.9rem; }
.notice.error { background: #fff0ea; color: #812b15; }
.notice.success { background: #e7f6ed; color: #155b34; }
.gallery .empty { padding: 1.45rem; border: 1px dashed #a9bbd2; border-radius: 12px; background: #fbfdff; color: var(--muted); }
.vote-login { margin-bottom: .9rem; }
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: .85rem; }
.entry { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.logo-preview { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #edf2f8; padding: .8rem; }
.logo-preview img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.entry-info { padding: .85rem; }
.entry-info h3 { font-size: 1.03rem; line-height: 1.25; overflow-wrap: anywhere; }
.entry-info p { color: var(--muted); margin-top: .35rem; }
.entry-info form { margin-top: .65rem; }
.entry-info .selection { font-weight: 650; color: #155b34; }
.pages { margin-top: 1rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1rem; font-size: .88rem; }
.terms { max-width: 820px; margin-block: clamp(1rem, 4vw, 3rem); }
.terms h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); line-height: 1.15; margin-bottom: .75rem; }
.terms section { margin-top: 1.55rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.terms section ul { margin-block: 0; padding-inline-start: 1.35rem; }
.terms section li + li, .terms section p + p { margin-top: .5rem; }

@media (max-width: 700px) {
    .contest { grid-template-columns: 1fr; }
    .top-inner { min-height: 58px; }
}

@media (max-width: 520px) {
    .top-inner { flex-wrap: wrap; gap: .2rem .75rem; padding-top: .5rem; }
    .contest-tabs { order: 1; width: 100%; }
}
