:root {
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0eeea;
  --mid-gray: #e0ddd8;
  --text-gray: #666;
  --ink: #111111;
  --ink-soft: #333333;
  --red: #c0392b;
  --red-dark: #a93226;
  --red-pale: #fdf1f0;
  --border: #ddd;
  --border-light: #ececec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--off-white);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 32px;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-gray);
  font-family: 'Inter', sans-serif;
}

.header-meta-center {
  font-style: italic;
  color: #aaa;
}

.header-main {
  padding: 20px 32px 16px;
  text-align: center;
  border-bottom: 3px double #ccc;
}

.header-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 span { color: var(--red); }

.header-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 8px;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: stretch;
  border-top: 2px solid var(--ink);
  background: var(--white);
}

.nav-item {
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border-right: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
}

.nav-item:first-child { border-left: none; }
.nav-item:hover { background: var(--light-gray); color: var(--red); }

.nav-item.active {
  background: var(--ink);
  color: var(--white);
}

.nav-separator { flex: 1; }

.nav-item.nav-cta {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  font-weight: 700;
  padding: 10px 24px;
  border-left: 1px solid var(--border-light);
}

.nav-item.nav-cta:hover { background: var(--red-dark); }

/* ===== TICKER ===== */
.ticker-band {
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}

.ticker-label {
  background: var(--red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track span {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  animation: ticker 40s linear infinite;
  padding-left: 100%;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 16px 40px;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-top: 4px;
  display: block;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-rubric {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 3px 9px;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.category-card {
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.category-card:hover,
.category-card.active {
  background: var(--red);
}

.category-card:hover .cat-name,
.category-card.active .cat-name { color: var(--white); }

.category-card:hover .cat-count,
.category-card.active .cat-count { color: rgba(255,255,255,0.65); }

.cat-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}

.cat-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: block;
  transition: color 0.15s;
  line-height: 1.3;
}

.cat-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 5px;
  display: block;
  transition: color 0.15s;
}

/* ===== PODIUM ===== */
.podium-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  padding: 32px;
  margin-bottom: 48px;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.podium-place {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.podium-rank {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--mid-gray);
  line-height: 1;
}

.podium-place:nth-child(2) .podium-rank {
  color: var(--red);
  font-size: 64px;
}

.podium-bar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--mid-gray);
  padding: 16px;
  margin-top: 8px;
}

.podium-place:nth-child(2) .podium-bar {
  background: var(--red-pale);
  border-color: var(--red);
  border-top-color: var(--red);
}

.podium-empty {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  padding: 24px;
  width: 100%;
}

.podium-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}

.podium-votes {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  margin-top: 6px;
  display: block;
}

.podium-cat {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-gray);
  display: block;
  margin-top: 3px;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.specimen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.specimen-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-ribbon {
  position: absolute;
  top: 12px;
  right: 0;
  background: var(--red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.card-ribbon.gold {
  background: #b8860b;
}

.card-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.specimen-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--mid-gray);
  line-height: 1;
  flex-shrink: 0;
}

.specimen-meta { flex: 1; }

.specimen-category {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 5px;
}

.specimen-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.screenshot-area {
  background: var(--light-gray);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-area img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.analysis {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  margin: 16px 16px 0;
  background: var(--red-pale);
}

.analysis-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.analysis-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.card-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.vote-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.vote-btn.voted {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ===== SUBMIT BANNER ===== */
.submit-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 22px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.submit-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-gray);
}

.submit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.submit-btn:hover { background: var(--red-dark); }

/* ===== NEWSLETTER BANNER ===== */
.newsletter-banner {
  background: var(--ink);
  padding: 28px 32px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.newsletter-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--white);
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.4); }

.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--red-dark); }

.newsletter-msg {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin-top: 8px;
  display: none;
}

.newsletter-msg.ok { color: #4ade80; display: block; }
.newsletter-msg.err { color: #f87171; display: block; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--white);
  border-top: 4px solid var(--red);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 3px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.modal-body { padding: 24px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus { border-color: var(--red); }

.form-file-label {
  display: block;
  padding: 24px;
  border: 2px dashed var(--border);
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-gray);
  transition: all 0.15s;
}

.form-file-label:hover { border-color: var(--red); color: var(--red); }

.form-file-info {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 4px;
  text-align: center;
}

.form-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.form-submit:hover:not(:disabled) { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.5; cursor: default; }

.form-msg {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: center;
  display: none;
}

.form-msg.ok  { color: #2e7d32; display: block; }
.form-msg.err { color: var(--red); display: block; }

/* ===== GALLERY EMPTY ===== */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-gray);
  font-size: 16px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  padding: 32px 40px;
  text-align: center;
}

.footer-main { margin-bottom: 16px; }

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
}

.footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { padding: 12px 20px; }
  .stat-divider { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .podium { flex-direction: column; align-items: center; }
  .header-meta-center { display: none; }
  .header-meta-right { display: none; }
  .submit-banner { flex-direction: column; }
  .newsletter-banner { flex-direction: column; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; border-right: 1px solid rgba(255,255,255,0.15); }
  .nav-separator { display: none; }
  .section-title { font-size: 16px; }
}
