/* Donk Contest — site styles
   Palette and type carried over from the WordPress (Astra) theme. */
:root {
  --gold: #f9c349;
  --gold-deep: #ffb100;
  --ink: #1e1810;
  --ink-2: #1e2925;
  --text: #4f4e49;
  --muted: #7a7972;
  --paper: #f8f7f3;
  --white: #fff;
  --line: #e6e3da;
  --danger: #b3261e;
  --ok: #1d6b3a;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgb(30 24 16 / .25);
  --wrap: min(1160px, 100% - 2.5rem);
  --font-head: "Open Sans", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--font-body); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .9rem 2rem; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; box-shadow: 0 6px 18px -8px rgb(255 177 0 / .8); }
.btn:hover { background: var(--gold-deep); color: var(--ink); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: none; }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn--sm { min-height: 40px; padding: .6rem 1.2rem; font-size: .72rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(30 24 16 / .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 132px; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { color: rgb(255 255 255 / .88); text-decoration: none; font: 600 .82rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: .75rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: .6rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.5rem; background: var(--ink); max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 1rem .25rem; font-size: .95rem; border-bottom: 1px solid rgb(255 255 255 / .08); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(30 24 16 / .55) 0%, rgb(30 24 16 / .35) 45%, rgb(30 24 16 / .8) 100%); }
.hero__inner { padding: 5rem 1.25rem 6rem; }
.hero__date { display: inline-block; font: 700 clamp(.85rem, 1.6vw, 1.05rem)/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; padding: .55rem 1rem; border: 1px solid rgb(249 195 73 / .55); border-radius: 999px; background: rgb(0 0 0 / .25); }
.hero__logo { width: min(560px, 88vw); margin: 0 auto .6rem; filter: drop-shadow(0 8px 24px rgb(0 0 0 / .45)); }
.hero h1 { color: var(--white); font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .3em; text-transform: uppercase; font-weight: 700; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.page-hero { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: rgb(255 255 255 / .75); margin: .75rem 0 0; max-width: 62ch; }
.eyebrow { display: block; font: 700 .75rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-2); color: rgb(255 255 255 / .8); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--gold { background: var(--gold); color: var(--ink); position: relative; }
.section--gold::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: rgb(255 255 255 / .65); }
.section--gold .section-head p { color: rgb(30 24 16 / .75); }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.lead { font-size: 1.12rem; color: var(--ink); }

/* ---------- Video facade ---------- */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000 center/cover no-repeat; box-shadow: var(--shadow); }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .45)); cursor: pointer; display: grid; place-items: center; }
.yt button span { width: 74px; height: 52px; border-radius: 14px; background: rgb(30 24 16 / .85); display: grid; place-items: center; transition: background .15s; }
.yt button:hover span { background: #e00; }
.yt button svg { width: 26px; height: 26px; fill: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video-grid figcaption { margin-top: .75rem; font: 700 1rem/1.35 var(--font-head); color: var(--ink); }

/* ---------- Forms ---------- */
.card { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font: 600 .9rem/1.3 var(--font-head); color: var(--ink); margin-bottom: .45rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, background-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); background: var(--white); box-shadow: 0 0 0 4px rgb(249 195 73 / .3); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 .9rem/1 var(--font-head); color: var(--ink); cursor: pointer; transition: all .15s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.chips input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.cf-turnstile { min-height: 65px; }
.notice { border-radius: 10px; padding: .9rem 1.1rem; font-weight: 500; margin-top: 1rem; }
.notice[hidden] { display: none; }
.notice--ok { background: #e6f4ea; color: var(--ok); }
.notice--err { background: #fdecea; color: var(--danger); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 2rem; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 2px; background: rgb(30 41 37 / .25); }
.t-item { position: relative; padding-left: 56px; }
.t-item::before { content: ""; position: absolute; left: 10px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 5px var(--paper); }
.t-time { font: 700 .85rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 .75rem; }
.t-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.t-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.t-card div { padding: 1.25rem 1.4rem 1.4rem; }
.t-card h3 { color: #d99a00; margin-bottom: .35rem; }
.t-card p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 820px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .t-item { padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .t-item::before { left: 50%; transform: translateX(-50%); }
  .t-time { grid-column: 1; text-align: right; }
  .t-card { grid-column: 2; grid-row: 1; }
  .t-item:nth-child(even) .t-time { grid-column: 2; text-align: left; }
  .t-item:nth-child(even) .t-card { grid-column: 1; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: rgb(0 0 0 / .08); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(10 8 5 / .9); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font: 700 1.08rem/1.35 var(--font-head); color: var(--white); background: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 1.25rem 1.5rem .25rem; }

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease; }
.post-card:hover { transform: translateY(-3px); color: inherit; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--ink); }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card time { font: 600 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #c48900; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose img, .prose .yt { margin: 2rem auto; border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.post-meta { color: rgb(255 255 255 / .7); font-size: .95rem; margin-top: .9rem; }
.back-link { display: inline-flex; gap: .4rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Misc ---------- */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 2rem 0; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.stat strong { display: block; font: 800 2rem/1.1 var(--font-head); color: var(--ink); }
.stat span { color: var(--muted); font-size: .95rem; }
.swatches { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 1.5rem 0; }
.swatch { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); font-size: .85rem; }
.swatch i { display: block; height: 72px; }
.swatch span { display: block; padding: .6rem .8rem; font-family: ui-monospace, monospace; }
.map { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.embed-frame { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); background: var(--white); }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--white); transition: background .15s, color .15s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.section:not(.section--dark) .social a { background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .7); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-logo { width: 170px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ---------- Voting ---------- */
.vote-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs button { min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 700 .85rem/1 var(--font-head); color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.entry-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.entry { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.entry__img { position: relative; aspect-ratio: 4/3; background: var(--ink); }
.entry__img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.entry__num { position: absolute; top: .75rem; left: .75rem; background: var(--gold); color: var(--ink); font: 800 .95rem/1 var(--font-head); padding: .45rem .7rem; border-radius: 8px; }
.entry__cat { position: absolute; top: .75rem; right: .75rem; background: rgb(30 24 16 / .8); color: var(--white); font: 700 .7rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 8px; }
.entry__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.entry__body h3 { margin: 0; font-size: 1.2rem; }
.entry__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.entry__desc { font-size: .95rem; margin: .25rem 0 0; }
.entry__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.entry__votes { font: 800 1.05rem/1 var(--font-head); color: var(--ink); }
.entry.is-voted { outline: 3px solid var(--gold-deep); }
.entry .btn.voted { background: var(--ink); color: var(--gold); box-shadow: none; }
.status-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); margin-bottom: 1.5rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font: 700 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 999px; background: var(--paper); color: var(--ink); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--open { background: #e6f4ea; color: var(--ok); }
.pill--closed { background: #fdecea; color: var(--danger); }
.modal { border: 0; border-radius: 18px; padding: 0; width: min(460px, 94vw); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
.modal::backdrop { background: rgb(10 8 5 / .7); }
.modal .card { box-shadow: none; }
.modal h2 { font-size: 1.5rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.code-input { letter-spacing: .5em; text-align: center; font: 800 1.6rem/1 var(--font-head) !important; }

/* Admin */
.admin-body { background: #efede6; }
.admin-shell { width: min(980px, 100% - 1.5rem); margin: 0 auto; padding: 1.25rem 0 4rem; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 1.25rem; }
.admin-top img { width: 110px; }
.admin-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.25rem; position: sticky; top: 0; z-index: 5; background: #efede6; padding: .5rem 0; }
.admin-tabs button { min-height: 48px; border: 0; border-radius: 12px; background: var(--white); font: 700 .8rem/1.1 var(--font-head); color: var(--ink); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold); }
.photo-drop { position: relative; display: grid; place-items: center; text-align: center; min-height: 220px; border: 2px dashed #cfcabb; border-radius: 16px; background: var(--paper); cursor: pointer; overflow: hidden; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { width: 100%; max-height: 360px; object-fit: cover; }
.photo-drop svg { width: 44px; height: 44px; margin: 0 auto .5rem; color: var(--muted); }
.admin-list { display: grid; gap: .75rem; }
.admin-row { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; align-items: center; background: var(--white); border-radius: 12px; padding: .65rem; }
.admin-row img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--ink); }
.admin-row h3 { font-size: 1rem; margin: 0; }
.admin-row p { margin: 0; font-size: .85rem; color: var(--muted); }
.admin-row .actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.admin-row.is-hidden { opacity: .55; }
.tally { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .75rem; align-items: center; background: var(--white); border-radius: 12px; padding: .75rem 1rem; }
.tally .rank { font: 800 1.3rem/1 var(--font-head); color: #c48900; }
.tally .bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: .4rem; }
.tally .bar i { display: block; height: 100%; background: var(--gold-deep); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--white); border-radius: 12px; padding: 1rem 1.1rem; }
.switch-row strong { font-family: var(--font-head); color: var(--ink); }
.switch-row p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.switch { position: relative; width: 56px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfcabb; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(24px); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-head); color: var(--ink); background: var(--paper); }
tr.void td { text-decoration: line-through; opacity: .55; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: .85rem 1.25rem; border-radius: 12px; z-index: 99; box-shadow: var(--shadow); max-width: 92vw; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .75rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-deep); transition: width .2s; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-deep); text-underline-offset: 3px; cursor: pointer; }
.how { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 2rem; counter-reset: how; }
.how li { list-style: none; background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.4rem; position: relative; font-size: .95rem; box-shadow: 0 2px 0 var(--line); }
.how li::before { counter-increment: how; content: counter(how); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 .95rem/1.8rem var(--font-head); text-align: center; }
.how strong { display: block; color: var(--ink); font-family: var(--font-head); }
.vote-search { max-width: 260px; min-height: 44px !important; }
[hidden] { display: none !important; }
.entry .btn.voted:disabled { opacity: 1; }
.admin-body .stat-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.admin-body .stat { padding: .8rem; box-shadow: none; border-top-width: 3px; }
.admin-body .stat strong { font-size: 1.5rem; }
.admin-body .stat span { font-size: .8rem; }
@media (max-width: 560px) {
  .admin-row { grid-template-columns: 64px 1fr; }
  .admin-row img { width: 64px; height: 52px; }
  .admin-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-body .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .how { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .how li { padding: .75rem .6rem; text-align: center; font-size: .82rem; }
  .how li::before { position: static; display: block; margin: 0 auto .4rem; }
  .how li span { display: none; }
}
