/* HackBarna "Barcelona after midnight" night register, ported from the hackbcn design system.
   Rules kept: never pure black, no glow, stepped corners instead of radius, near-black type on
   drenched bands, two drenched bands never touch, glitch only on state change. */

:root {
  --ground: #06060e;
  --ground-raised: #0b0a16;
  --band-2: #140f26;
  --band-3: #241242;
  --pink: #ff3d9a;
  --cyan: #4de3e8;
  --ink: #e6e8f2;
  --ink-dim: #9aa0bf;
  --ink-edge: #40405a;
  --paper: #efeadf;
  --night: #06060e;
  --module: 4px;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--ground); color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.section { padding-block: 4rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--pink); color: var(--night); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Grounds, stepped. */
.band-ground { background: var(--ground); }
.band-2 { background: var(--band-2); }
.band-3 { background: var(--band-3); }
.band-pink { background: var(--pink); color: var(--night); }
.band-pink :focus-visible { outline-color: var(--night); }

/* Type */
.display { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.headline { font-size: clamp(1.875rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--ink-dim); max-width: 60ch; margin-top: 1.25rem; }
.kicker, .label-mono {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 1rem; display: block;
}
.label-mono { color: var(--ink-dim); margin-bottom: .5rem; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-dim); }
.small { font-size: .875rem; }
.pink { color: var(--pink); }

/* The stepped corner. */
.hb-px {
  --px-step: 4px;
  clip-path: polygon(
    calc(var(--px-step) * 2) 0, calc(100% - var(--px-step) * 2) 0,
    calc(100% - var(--px-step) * 2) var(--px-step), calc(100% - var(--px-step)) var(--px-step),
    calc(100% - var(--px-step)) calc(var(--px-step) * 2), 100% calc(var(--px-step) * 2),
    100% calc(100% - var(--px-step) * 2), calc(100% - var(--px-step)) calc(100% - var(--px-step) * 2),
    calc(100% - var(--px-step)) calc(100% - var(--px-step)), calc(100% - var(--px-step) * 2) calc(100% - var(--px-step)),
    calc(100% - var(--px-step) * 2) 100%, calc(var(--px-step) * 2) 100%,
    calc(var(--px-step) * 2) calc(100% - var(--px-step)), var(--px-step) calc(100% - var(--px-step)),
    var(--px-step) calc(100% - var(--px-step) * 2), 0 calc(100% - var(--px-step) * 2),
    0 calc(var(--px-step) * 2), var(--px-step) calc(var(--px-step) * 2),
    var(--px-step) var(--px-step), calc(var(--px-step) * 2) var(--px-step)
  );
}
.hb-px-sm { --px-step: 3px; }
.hb-px-lg { --px-step: 6px; }
.hb-rule { height: 2px; background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); }

/* Dither */
.hb-dither { position: relative; overflow: hidden; }
.hb-dither-img {
  width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated;
  filter: contrast(1.45) saturate(1.2) brightness(0.96);
  transition: filter 320ms var(--ease);
}
.hb-dither-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23000000'/%3E%3Crect width='1' height='1' x='1' y='0' fill='%23888888'/%3E%3Crect width='1' height='1' x='2' y='0' fill='%23222222'/%3E%3Crect width='1' height='1' x='3' y='0' fill='%23aaaaaa'/%3E%3Crect width='1' height='1' x='0' y='1' fill='%23cccccc'/%3E%3Crect width='1' height='1' x='1' y='1' fill='%23444444'/%3E%3Crect width='1' height='1' x='2' y='1' fill='%23eeeeee'/%3E%3Crect width='1' height='1' x='3' y='1' fill='%23666666'/%3E%3Crect width='1' height='1' x='0' y='2' fill='%23333333'/%3E%3Crect width='1' height='1' x='1' y='2' fill='%23bbbbbb'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23111111'/%3E%3Crect width='1' height='1' x='3' y='2' fill='%23999999'/%3E%3Crect width='1' height='1' x='0' y='3' fill='%23ffffff'/%3E%3Crect width='1' height='1' x='1' y='3' fill='%23777777'/%3E%3Crect width='1' height='1' x='2' y='3' fill='%23dddddd'/%3E%3Crect width='1' height='1' x='3' y='3' fill='%23555555'/%3E%3C/svg%3E");
  background-size: 6px 6px; mix-blend-mode: overlay; opacity: .55;
  transition: opacity 320ms var(--ease);
}
.hb-dither:hover .hb-dither-img, .polaroid:hover .hb-dither-img { filter: contrast(1) saturate(1) brightness(1); }
.hb-dither:hover .hb-dither-tex, .polaroid:hover .hb-dither-tex { opacity: 0; }

/* Ribbon + nav */
.ribbon {
  background: var(--ground); color: var(--ink); font-size: .8125rem;
  display: flex; gap: .75rem 1.25rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: .5rem 1rem; border-bottom: 1px solid var(--band-2);
}
.ribbon a { color: var(--cyan); text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }
.ribbon-dim { color: var(--ink-dim); font-family: var(--mono); font-size: .75rem; }
.badge-new {
  position: relative; font-family: var(--mono); font-size: .6875rem; letter-spacing: .2em;
  background: var(--pink); color: var(--night); padding: .0625rem .5rem; font-weight: 700;
}
.badge-new::before, .badge-new::after {
  content: attr(data-text); position: absolute; inset: 0; padding: inherit; background: inherit;
  clip-path: inset(50% 0 50% 0);
}
.badge-new::before { animation: hb-tear 1.6s steps(1) 3; color: var(--night); }
.badge-new::after { animation: hb-tear 1.6s steps(1) .3s 3; background: var(--cyan); }
@keyframes hb-tear {
  0%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
  10% { clip-path: inset(10% 0 60% 0); transform: translateX(-3px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translateX(2px); }
  30% { clip-path: inset(50% 0 50% 0); transform: none; }
}

.nav { background: var(--ground-raised); border-bottom: 1px solid var(--band-2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .875rem; flex-wrap: wrap; }
.brand img { height: 26px; width: auto; transition: filter 160ms; }
.brand:hover img, .brand:focus-visible img { filter: drop-shadow(-2px 0 0 var(--pink)) drop-shadow(2px 0 0 var(--cyan)); }
.nav nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: var(--ink-dim); font-size: .9375rem; font-weight: 500; padding: .25rem 0; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 0; padding: .75rem 1.5rem; transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn-sm { padding: .5rem .875rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pink); color: var(--night); }
.btn-primary:hover { background: var(--cyan); }
.btn-primary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--night); }
.btn-secondary { background: rgb(230 232 242 / .1); color: var(--ink); }
.btn-secondary:hover { background: rgb(230 232 242 / .18); }
.btn-secondary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Chips + filters */
.chip {
  display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.6;
  background: rgb(77 227 232 / .15); color: var(--cyan); padding: .125rem .625rem;
}
.chip-dim { background: rgb(154 160 191 / .15); color: var(--ink-dim); }
.filters, .samples { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; align-items: center; }
.filter {
  font: 500 .8125rem/1.2 var(--sans); color: var(--ink-dim); background: transparent; cursor: pointer;
  border: 1px solid var(--ink-edge); padding: .4375rem .75rem;
}
.filter span { font-family: var(--mono); opacity: .7; margin-left: .25rem; }
.filter:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--night); border-color: var(--ink); }

/* Hero */
.hero { padding-block: 3.5rem 4.5rem; overflow: hidden; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.4fr 1fr; } .hero { padding-block: 5rem 6rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stats { margin-top: 1.5rem; font-size: .8125rem; color: var(--ink-dim); letter-spacing: .05em; }

.polaroid {
  position: relative; margin: 0 auto; width: min(20rem, 80vw); background: var(--paper); padding: .5rem .5rem 2rem;
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0));
  filter: drop-shadow(0 10px 15px rgb(0 0 0 / .35));
  transition: transform 320ms var(--ease);
}
.polaroid:hover { transform: rotate(0) scale(1.04); }
.polaroid-photo { aspect-ratio: 1; background: var(--band-2); }
.polaroid figcaption { color: rgb(6 6 14 / .7); font-size: .875rem; text-align: center; padding-top: .625rem; font-weight: 500; }
.tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg); z-index: 2; opacity: .92; }
.tape-pink { background: var(--pink); }

/* Pink hype band */
.hype, .launched { padding-block: 3rem; display: grid; gap: 1rem 3rem; align-items: center; }
@media (min-width: 900px) { .hype { grid-template-columns: 1fr 1.4fr; } }
.hype-big { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.hype-copy { font-size: 1.0625rem; margin: 0; max-width: 60ch; }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2rem; }
.section-head p { margin: 0; }

/* The wall: ranked rows, not a card grid */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--band-3); }
.row {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--band-3);
}
.row[hidden] { display: none; }
.row-rank { font-family: var(--mono); font-size: 1.25rem; color: var(--ink-dim); }
.row:nth-child(1) .row-rank { color: var(--pink); }
.row:nth-child(2) .row-rank, .row:nth-child(3) .row-rank { color: var(--cyan); }
.row h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--pink); }
.row-tagline { color: var(--ink-dim); margin: .25rem 0 .5rem; max-width: 70ch; }
.row-meta { display: flex; flex-wrap: wrap; gap: .25rem .875rem; align-items: center; font-size: .8125rem; color: var(--ink-dim); margin: 0; }
.meta-video { color: var(--cyan); }
@media (max-width: 600px) { .row { grid-template-columns: 2rem 1fr; } .row .vote { grid-column: 2; justify-self: start; } }

/* Vote button: the element stays unclipped so its focus ring survives; the inner span is clipped. */
.vote { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.vote-inner {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; min-width: 6.5rem; justify-content: center;
  background: rgb(230 232 242 / .08); transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.vote-count { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.vote-label { font-size: .8125rem; font-weight: 600; }
.vote:hover .vote-inner { background: rgb(230 232 242 / .16); }
.vote[aria-pressed="true"] .vote-inner { background: var(--pink); color: var(--night); }
.vote[aria-pressed="true"]:hover .vote-inner { background: var(--cyan); }
.vote:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vote-lg .vote-inner { padding: .75rem 1.25rem; min-width: 9rem; }
.vote-lg .vote-count { font-size: 1.25rem; }
.vote.bump .vote-count { animation: bump 380ms var(--ease); }
@keyframes bump {
  0% { transform: none; text-shadow: none; }
  30% { transform: translateY(-3px); text-shadow: -2px 0 var(--cyan), 2px 0 var(--night); }
  100% { transform: none; text-shadow: none; }
}

.empty { background: var(--ground-raised); padding: 2.5rem; text-align: center; }
.empty .btn { margin-top: .5rem; }

/* Cards: bordered = two clipped layers */
.card-shell { background: var(--band-3); padding: 1px; }
.card-fill { background: var(--ground-raised); padding: 1.5rem; }
@media (min-width: 700px) { .card-fill { padding: 2rem; } }

/* Jev teaser */
.jev-teaser { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .jev-teaser { grid-template-columns: 1fr 1fr; align-items: end; } }
.jev-teaser p { color: var(--ink-dim); max-width: 60ch; }

/* Forms */
.submit-grid, .jev-grid, .project-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) {
  .submit-grid { grid-template-columns: 1fr 1.25fr; }
  .jev-grid { grid-template-columns: 1.1fr 1fr; }
  .project-grid { grid-template-columns: 1.5fr 1fr; }
  .submit-intro { position: sticky; top: 2rem; }
}
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: baseline; color: var(--ink-dim); }
.steps span { font-family: var(--mono); color: var(--pink); font-weight: 700; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; padding: 0; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .375rem; }
.optional { font-weight: 400; color: var(--ink-dim); font-size: .8125rem; }
input[type="text"], input[type="url"], input[type="email"], input:not([type]), textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--band-3); padding: .5rem .75rem; min-height: 2.5rem; border-radius: 0;
  transition: border-color 160ms;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--ink-dim); opacity: .7; }
input:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--pink); }
.hint { font-size: .8125rem; color: var(--ink-dim); margin: .375rem 0 0; }
.error { font-size: .8125rem; color: var(--pink); margin: .25rem 0 0; min-height: 0; }
.error:empty { display: none; }
.form-error { margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin: 0 0 1.5rem; cursor: pointer; font-size: .9375rem; position: relative; }
.check input { position: absolute; opacity: 0; width: 1.25rem; height: 1.25rem; margin: 0; }
.check-box { width: 1.25rem; height: 1.25rem; background: var(--band-3); margin-top: .2rem; display: grid; place-items: center; }
.check input:checked + .check-box { background: var(--pink); }
.check input:checked + .check-box::after { content: ""; width: .5rem; height: .5rem; background: var(--night); }
.check input:focus-visible + .check-box { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Project page */
.project-by { margin-top: 1rem; }
.project-by a { color: var(--cyan); font-weight: 600; }
.project-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 2rem 0; }
.video { aspect-ratio: 16 / 9; background: var(--ground-raised); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.project-side { display: grid; gap: 1.5rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.share-text textarea { font-size: .875rem; color: var(--ink-dim); }
.bars { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; font-size: .8125rem; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr 3rem; gap: .75rem; align-items: center; }
.bar { height: 8px; background: var(--band-2); display: block; }
.bar > span { display: block; height: 100%; background: var(--cyan); transition: width 420ms var(--ease); }
.bars li:first-child .bar > span { background: var(--pink); }
.bars .mono { text-align: right; color: var(--ink-dim); }

/* Leaderboard */
.board-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.board-cta { text-align: right; }
.board-cta p { margin: 0; }
.board-url { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 700; color: var(--cyan); }
.board { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.board-row {
  display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.25rem; align-items: center;
  background: var(--ground-raised); padding: 1rem 1.25rem; position: relative;
}
.board-row a { text-decoration: none; }
.board-row a:hover h3 { color: var(--pink); }
.board-rank { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; color: var(--ink-dim); }
.board-row:nth-child(1) .board-rank { color: var(--pink); }
.board-row:nth-child(2) .board-rank, .board-row:nth-child(3) .board-rank { color: var(--cyan); }
.board-row h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.board-sub { font-size: .875rem; color: var(--ink-dim); display: flex; gap: .25rem .875rem; flex-wrap: wrap; align-items: center; margin-top: .25rem; }
.board-votes { text-align: right; }
.board-votes strong { display: block; font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; }
.board-votes span { font-size: .75rem; color: var(--ink-dim); font-family: var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.board-meter { grid-column: 2 / -1; height: 6px; background: var(--band-2); }
.board-meter > span { display: block; height: 100%; background: var(--cyan); transition: width 600ms var(--ease); }
.board-row:nth-child(1) .board-meter > span { background: var(--pink); }
.board-row.moved { animation: moved 900ms var(--ease); }
@keyframes moved { 0% { transform: translateX(-4px); } 15% { transform: translateX(3px); } 30%, 100% { transform: none; } }

/* Jev lab */
.jev-results { display: grid; gap: 1rem; }
.jev-answer h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.jev-answer .q { font-size: .8125rem; color: var(--ink-dim); margin-bottom: .75rem; }
.jev-big { font-size: 1.5rem; font-weight: 700; color: var(--pink); }
.jev-meta { font-family: var(--mono); font-size: .75rem; color: var(--ink-dim); letter-spacing: .05em; }
.code {
  background: var(--ground); color: var(--ink); padding: 1.5rem; overflow-x: auto; font-size: .8125rem; line-height: 1.6;
  margin-top: 1.5rem;
}
code { font-size: .9em; }
p code { color: var(--cyan); }

/* Footer: the cyan inversion closes the page. Near-black type only. */
.footer { background: var(--cyan); color: var(--night); padding: 3rem 0; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer p { max-width: 50ch; color: rgb(6 6 14 / .75); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; font-weight: 600; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: var(--night); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--night); font-weight: 600; font-size: .9375rem; padding: .75rem 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .polaroid:hover { transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0)); }
}

/* Screenshots + jury score */
.row.has-thumb { grid-template-columns: 3rem 7.5rem 1fr auto; }
.row-thumb { display: block; width: 7.5rem; aspect-ratio: 16 / 10; background: var(--ground-raised); overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .row.has-thumb { grid-template-columns: 2rem 1fr; }
  .row.has-thumb .row-thumb { grid-column: 2; }
}
.jury-chip { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--pink); }
.jury-total { margin: .5rem 0 0; }
.jury-total strong { font-family: var(--mono); font-size: 2.5rem; line-height: 1; color: var(--pink); }
.shot { display: block; margin-top: 1.5rem; background: var(--ground-raised); overflow: hidden; }
.shot img { width: 100%; height: auto; }
input[type="file"] {
  width: 100%; font: inherit; font-size: .875rem; color: var(--ink-dim); background: var(--ground);
  border: 1px dashed var(--ink-edge); padding: .75rem; cursor: pointer;
}
input[type="file"]::file-selector-button {
  font: 600 .8125rem/1.2 var(--sans); color: var(--night); background: var(--cyan); border: 0;
  padding: .5rem .75rem; margin-right: .75rem; cursor: pointer;
}
input[type="file"]:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
input[type="file"][aria-invalid="true"] { border-color: var(--pink); }
.shot-preview { margin-top: .75rem; max-height: 12rem; width: auto; background: var(--ground-raised); }
.shot-preview[hidden] { display: none; }
.board-jury { font-family: var(--mono); color: var(--pink); }
.bars-jury li { grid-template-columns: 8.5rem 1fr 4.5rem; }
