:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E6B8;
  --dark: #1C0A0F;
  --dark-2: #230D14;
  --dark-3: #2C1019;
  --dark-4: #36141F;
  --dark-5: #401826;
  --cream: #F0E8D5;
  --cream-dim: #C8BBA0;
  --white: #FAF6EE;
  --border: rgba(201,168,76,0.25);
  --border-dim: rgba(201,168,76,0.12);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

img,
picture,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}
.btn-submit-ya {
  display: inline-block;
  background: #C9A84C;
  color: #1C0A0F;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 3.2rem;
  border: 1px solid #C9A84C;
  transition: opacity 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.btn-submit-ya:hover {
  opacity: 0.82;
  background: #b8943e;
}
.btn-submit-ya:disabled {
  background: #555;
  border-color: #555;
  cursor: not-allowed;
  color: #aaa;
}
@media (max-width: 480px) {
  .btn-submit-ya {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }
}
body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  margin: 0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}
.site-nav,
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: linear-gradient(to bottom, rgba(13,11,8,0.97) 0%, rgba(13,11,8,0) 100%);
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  min-width: 0;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.hero {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(201,168,76,0.04) 0%, transparent 60%),
    var(--dark);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.hero > *:not(.scroll-hint) {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.scroll-hint { z-index: 1; }
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease both;
}
.hero-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 1em;
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.1s ease both;
  opacity: 0.7;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  animation: fadeUp 1s 0.2s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-style: italic;
  animation: fadeUp 1s 0.3s ease both;
}
.hero-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 3.5rem;
  animation: fadeUp 1s 0.4s ease both;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.hero-meta-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.hero-actions {
  display: flex;
  gap: 1.5rem;
  animation: fadeUp 1s 0.5s ease both;
}
.btn-primary {
  padding: 0.9rem 2.8rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  padding: 0.9rem 2.8rem;
  background: transparent;
  color: var(--cream-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-hint span {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.6;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
section {
  width: 100%;
  max-width: 100%;
  padding: 7rem 2rem;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  min-width: 0;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 300px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.countdown-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 4rem 2rem;
}
.countdown-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  min-width: 0;
}
.countdown-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.countdown-unit-label {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--cream-dim);
  text-transform: uppercase;
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}
.category-card {
  background: var(--dark-2);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s;
  cursor: default;
  overflow: hidden;
  min-width: 0;
}
.category-card:hover { background: var(--dark-3); }
.category-content {
  padding: 0;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2.5rem; right: 2.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover::after { opacity: 1; }
.category-roman {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}
.category-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.category-desc {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.7;
  margin: 0;
}
.prizes-section {
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}
.prizes-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.prizes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}
.prize-card {
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  background: var(--dark-2);
  transition: transform 0.3s;
  min-width: 0;
}
.prize-card:hover { transform: translateY(-4px); }
.prize-card.featured {
  border-color: var(--gold);
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, rgba(201,168,76,0.05) 0%, var(--dark-2) 100%);
}
.prize-place {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.prize-card.featured .prize-place { font-size: 5rem; }
.prize-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1.5rem;
}
.prize-award {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.prize-card.featured .prize-award { font-size: 1.6rem; }
.prize-details {
  font-size: 0.85rem;
  color: var(--cream-dim);
  font-style: italic;
}
.gallery-section {
  background: var(--dark);
}
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
}
.photo-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark-4);
  cursor: pointer;
  min-width: 0;
}
.photo-empty {
  position: absolute;
  inset: 0;
  background: var(--dark-4);
  border: 1px dashed rgba(201,168,76,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: border-color 0.3s;
}
.photo-card:hover .photo-empty {
  border-color: rgba(201,168,76,0.35);
}
.photo-empty-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,0.3);
  font-size: 1.1rem;
}
.photo-empty-label {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.25);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}
.step-card {
  background: var(--dark-2);
  padding: 3rem 2rem;
  position: relative;
  min-width: 0;
}
.step-number {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.step-text {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.7;
  margin: 0;
}
.submit-section {
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}
.submit-section::before {
  content: '✦';
  position: absolute;
  font-size: 40rem;
  color: var(--gold);
  opacity: 0.015;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: serif;
  line-height: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.form-group.full { grid-column: span 2; }
.form-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.form-input,
.form-select,
.form-textarea {
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(200,187,160,0.3); font-style: italic; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C9A84C'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
}
.form-select option { background: var(--dark-2); }
.form-textarea { resize: vertical; min-height: 100px; }
.upload-zone {
  grid-column: span 2;
  border: 1px dashed var(--border);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  background: transparent;
  position: relative;
  min-width: 0;
}
.upload-zone:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.upload-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.8rem;
  display: block;
}
.upload-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream-dim);
  margin-bottom: 0.4rem;
  font-style: italic;
}
.upload-hint {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
}
#form-message {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  display: none;
}
.success-msg { color: var(--gold); }
.error-msg { color: #ff6b6b; }

#file-name-display,
.upload-hint,
.checkbox-text,
.modal-body,
.photo-empty-label {
  overflow-wrap: anywhere;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-custom {
  position: relative;
  top: 0.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}
.checkbox-label:hover input ~ .checkbox-custom {
  border-color: var(--gold);
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 0.35rem;
  top: 0.15rem;
  width: 0.3rem;
  height: 0.6rem;
  border: solid var(--dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input:checked ~ .checkbox-custom:after {
  display: block;
}
.checkbox-text {
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  display: inline;
}
.link-btn:hover {
  color: var(--gold-light);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 11, 8, 0.9);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-container {
  background: var(--dark-2);
  border: 1px solid var(--border);
  max-width: 700px;
  width: min(100%, 700px);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3rem 2rem;
  position: relative;
  color: var(--cream-dim);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}
.modal-close-btn:hover {
  transform: scale(1.1);
}
.modal-body h3 {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.modal-body p {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Home-page blocks that contain legacy inline sizing. */
.season-divider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.season-divider-mark {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

#past-results .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
}

.partners-row,
.partners-column,
.partner-logo-box {
  min-width: 0 !important;
  max-width: 100%;
}

.partners-column {
  flex: 1 1 280px !important;
}

.partner-logo-box {
  width: min(200px, 100%) !important;
  margin-inline: auto;
}

footer {
  width: 100%;
  max-width: 100%;
  background: var(--dark-2);
  border-top: 1px solid var(--border-dim);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  min-width: 0;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}
.footer-text {
  font-size: 0.85rem;
  color: var(--cream-dim);
  text-align: center;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.1); }
}
@media (max-width: 1100px) {
  .site-nav,
  body > nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .lang-switch { margin-right: 0; }
}
@media (max-width: 900px) {
  .site-nav,
  body > nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .prizes-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full,
  .upload-zone,
  .form-submit { grid-column: span 1; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; width: min(100%, 36rem); }
}
@media (max-width: 600px) {
  section {
    padding: 4rem 1.2rem;
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .container { padding: 0; }
  .site-nav,
  body > nav {
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
    background: rgba(13,11,8,0.98);
  }
  .nav-logo { font-size: 0.72rem; letter-spacing: 0.12em; }
  .nav-logo {
    max-width: calc(100% - 86px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem 1.2rem 4.5rem;
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .hero-eyebrow {
    max-width: 100%;
    font-size: clamp(0.58rem, 2.8vw, 0.7rem);
    letter-spacing: clamp(0.14em, 1.6vw, 0.3em);
    overflow-wrap: anywhere;
  }
  .hero-ornament {
    max-width: 100%;
    letter-spacing: clamp(0.35em, 2.5vw, 0.8em);
  }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.5rem);
    overflow-wrap: anywhere;
  }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .hero-meta { flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; width: 100%; }
  .hero-meta-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dim);
  }
  .hero-meta-label { min-width: 0; text-align: left; overflow-wrap: anywhere; }
  .hero-meta-value { min-width: 0; text-align: right; overflow-wrap: anywhere; }
  .hero-meta-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 30rem); gap: 0.8rem; margin-inline: auto; }
  .btn-primary,
  .btn-secondary,
  .btn-submit-ya {
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .btn-primary, .btn-secondary { padding: 1rem 1.5rem; }
  .scroll-hint { display: none; }
  .countdown-section {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.2rem;
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .countdown-grid { gap: 0.8rem; }
  .countdown-number { font-size: clamp(2rem, 9vw, 3rem); }
  .countdown-sep { font-size: 2rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .category-card { padding: 2rem 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
  #past-results .gallery-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .prizes-grid { gap: 1rem; }
  .prize-card { padding: 2rem 1.5rem; }
  .prize-card.featured { padding: 2.5rem 1.5rem; }
  .prize-card.featured .prize-place { font-size: 3.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 2rem 1.5rem; }
  .submit-section { padding: 4rem 1.2rem; }
  .form-grid { gap: 1rem; }
  .upload-zone { padding: 2rem 1.2rem; }
  .upload-text,
  .upload-hint,
  #file-name-display { max-width: 100%; overflow-wrap: anywhere; }
  .season-divider { padding-inline: 1.2rem !important; margin-block: 4rem !important; }
  .season-divider-mark {
    margin-inline: clamp(0.65rem, 5vw, 1.5rem) !important;
    font-size: clamp(0.95rem, 4.5vw, 1.25rem) !important;
    letter-spacing: clamp(0.12em, 1.5vw, 0.3em) !important;
  }
  #partners .container {
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .partners-row { gap: 3rem !important; }
  .partners-column { flex: 1 1 100% !important; width: 100%; }
  footer { padding: 3rem 1.2rem 2rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .modal-overlay { padding: 0.75rem; }
  .modal-container {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 3.5rem 1.2rem 2rem;
  }
  .modal-close-btn { top: 0.75rem; right: 0.9rem; }
  .lightbox-overlay { padding: 1rem; }
  .lightbox-img { max-width: 100%; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
  .lightbox-close-btn {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
  }
}
@media (max-width: 480px) {
  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.25rem, 2vw, 0.6rem);
  }
  .countdown-sep { display: none; }
  .countdown-number { font-size: clamp(1.6rem, 9vw, 2.5rem); }
  .countdown-unit-label { font-size: 0.5rem; letter-spacing: 0.12em; }
}

@media (max-width: 380px) {
  .site-nav,
  body > nav { gap: 0.5rem; }
  .nav-logo { font-size: 0.66rem; }
  .lang-switch { gap: 0.4rem; }
  .hero h1 { font-size: clamp(1.85rem, 11vw, 2.2rem); }
  .hero-meta-item { grid-template-columns: 1fr; justify-items: center; gap: 0.15rem; }
  .hero-meta-label,
  .hero-meta-value { text-align: center; }
  .countdown-grid { gap: 0.35rem; }
  .countdown-number { font-size: 1.8rem; }
  .gallery-filters { gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.55rem; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero {
    justify-content: flex-start;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
}

.like-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(28, 10, 15, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  outline: none;
}
.like-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(28, 10, 15, 0.85);
}
.like-btn.liked {
  color: var(--gold);
  border-color: var(--gold);
  cursor: default;
}
.like-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.like-count {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}

.pagination-elite {
  margin: 2rem 0;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  max-width: 100%;
}
.pagination-elite .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.pagination-elite .page-numbers,
.navigation.pagination .page-numbers {
  color: var(--cream-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  max-width: 100%;
}
.pagination-elite .page-numbers:hover {
  color: var(--gold);
}
.pagination-elite .page-numbers.current {
  color: var(--gold);
  border-color: var(--border);
}

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 11, 8, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
  z-index: 10001;
}
.lightbox-close-btn:hover {
  transform: scale(1.1);
}

/* Language Toggle */
.lang-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.6rem;
  margin-left: auto;
  margin-right: 3rem;
}
.lang-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--cream-dim);
  transition: color 0.3s;
  user-select: none;
}
.lang-label.active {
  color: var(--gold);
  font-weight: 600;
}
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--dark-4);
  border: 1px solid var(--border);
  transition: .4s;
  border-radius: 20px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--gold);
  transition: .4s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: var(--dark-3);
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}

@media (max-width: 900px) {
  .lang-switch { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
