/* Red Protocol: File 02, the awards. Builds on theme.css + app.css */

.awards-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter-r) 40px var(--gutter);
  display: grid;
  gap: 28px;
}

.awards-main[hidden] { display: none; }

/* ---------- progress strip ---------- */

.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red-hot);
  border-radius: var(--radius);
}

.progress-text { margin: 0; flex: 1; min-width: 12rem; font-weight: 600; }

/* ---------- award cards ---------- */

.award-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.award {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 22px 22px;
  min-width: 0;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  animation: rise 0.7s var(--ease) both;
}

.award:nth-child(2) { animation-delay: 0.08s; }
.award:nth-child(3) { animation-delay: 0.16s; }

.award.featured {
  border-color: var(--red-line);
  box-shadow: 0 0 0 1px rgba(255, 40, 40, 0.08), 0 24px 60px -28px rgba(255, 20, 20, 0.75);
}

.award.featured::before {
  /* small wax seal on the big award */
  content: "";
  position: absolute;
  top: -14px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 46% 54% 50% 50% / 52% 48% 54% 46%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 140, 120, 0.55), transparent 40%),
    radial-gradient(circle at 50% 50%, #c4121b 0 52%, #8e0a10 72%, #5e060a 100%);
  box-shadow: 0 0 0 3px rgba(150, 10, 16, 0.5), 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 16px -2px var(--red-glow);
}

.award-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.award-no { font-size: 0.8rem; color: var(--muted); }

.award-tone {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 3px 7px;
  border: 1px solid currentColor;
}

.featured .award-tone { color: var(--red-hot); }

.award-name {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.featured .award-name {
  background: linear-gradient(180deg, #ff6a5c, #d8121b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 30, 30, 0.35));
}

.award-desc { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; }

.award-body {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* ---------- nomination form ---------- */

.nom-form .field { position: relative; }
.nom-form textarea { padding-bottom: 26px; }

.nom-form .char-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font: 400 0.7rem var(--f-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
  pointer-events: none;
}

.nom-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nom-actions .btn-primary { flex: 1; }

/* ---------- filed nomination ---------- */

.filed { position: relative; display: grid; gap: 6px; }
.filed .label { margin: 0; font-size: 0.62rem; }

.filed-name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--silver-1);
  overflow-wrap: anywhere;
}

.filed-reason {
  margin: 4px 0 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--red-line);
  overflow-wrap: anywhere;
}

.filed-stamp {
  position: absolute;
  top: -4px;
  right: 0;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-hot);
  padding: 4px 6px 4px 10px;
  border: 2px solid var(--red-hot);
  transform: rotate(-8deg);
  text-shadow: 0 0 8px rgba(255, 30, 30, 0.45);
  opacity: 0.9;
  animation: stamp 0.45s var(--ease) both;
}

.nothing { margin: 0; color: var(--dim); font-size: 0.88rem; }

/* ---------- organiser results ---------- */

.results { display: grid; gap: 18px; }
.results-head { display: grid; gap: 10px; justify-items: start; }
.results-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.results-head p { margin: 0; }

.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

.result h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result > p { margin: 4px 0 14px; }

.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tally-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.tally-rank { font: 700 0.78rem var(--f-mono); color: var(--dim); }
.tally-name { font-weight: 600; overflow-wrap: anywhere; }
.tally-name em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warn); margin-left: 6px; }
.tally-count { font: 700 1rem var(--f-mono); font-variant-numeric: tabular-nums; }
.lead .tally-rank, .lead .tally-count { color: var(--red-hot); }

.tally-bar { position: relative; display: block; height: 2px; margin: 6px 0 0 36px; background: var(--line-soft); }
.tally-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share, 0%);
  background: linear-gradient(90deg, var(--red-deep), var(--red-hot));
}

.tally details { margin: 6px 0 0 36px; font-size: 0.84rem; }
.tally summary { cursor: pointer; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; }
.tally summary:hover { color: var(--text); }
.tally details ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 6px; color: var(--text); font-family: var(--f-type); overflow-wrap: anywhere; }

@keyframes stamp { 0% { transform: rotate(-8deg) scale(1.8); opacity: 0; } 70% { transform: rotate(-8deg) scale(0.95); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 0.9; } }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .award-grid, .results-grid { grid-template-columns: 1fr; max-width: 640px; }
}

/* ================= atmosphere additions ================= */

/* ---------- police lineup wall behind the cards ---------- */

.lineup {
  position: relative;
  padding: 48px 52px 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(237, 230, 226, 0.07) 39px 40px),
    repeating-linear-gradient(180deg, transparent 0 199px, rgba(255, 52, 52, 0.18) 199px 200px),
    radial-gradient(120% 80% at 50% 0%, rgba(255, 30, 30, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.35);
}

.lineup::before {
  /* overhead lamp glow */
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 60, 60, 0.7), transparent);
  box-shadow: 0 0 40px 10px rgba(255, 30, 30, 0.12);
}

.lineup-scale { position: absolute; inset: 0; pointer-events: none; }

.lineup-scale span {
  position: absolute;
  left: 10px;
  transform: translateY(-50%);
  font: 700 0.6rem var(--f-mono);
  letter-spacing: 0.06em;
  color: rgba(237, 230, 226, 0.28);
}

.lineup-scale span:nth-child(4n) { color: rgba(255, 70, 70, 0.6); }

/* ---------- card watermarks ---------- */

.award { isolation: isolate; }

.award-marks {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.mark-suspect {
  position: absolute;
  right: -22px;
  top: 96px;
  width: 112px;
  height: 124px;
  color: rgba(237, 230, 226, 0.028);
}

.featured .mark-suspect { color: rgba(255, 40, 40, 0.05); }
.is-filed .mark-suspect { color: rgba(255, 40, 40, 0.07); }

.mark-print {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 70px;
  height: 84px;
  color: rgba(224, 20, 30, 0.08);
  transform: rotate(-14deg);
}

/* ---------- mugshot placard for a filed nominee ---------- */

.placard {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 4px 0 6px;
  padding: 12px 14px 10px;
  text-align: center;
  background: #0a0a0a;
  border: 2px solid #2c2c2c;
  box-shadow: inset 0 0 0 1px #000, 0 10px 24px -10px rgba(0, 0, 0, 0.9);
}

.placard-top, .placard-no {
  font: 700 0.6rem var(--f-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(237, 230, 226, 0.6);
}

.placard-name {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4efe9;
  overflow-wrap: anywhere;
}

.placard-no { color: var(--red-hot); }
.filed-stamp { z-index: 2; top: -30px; right: -8px; background: rgba(10, 6, 6, 0.85); }

@media (max-width: 1020px) {
  .lineup { padding: 40px 16px 32px 40px; }
}
