@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&display=swap");

@font-face {
  font-family: "Atlas";
  src: url("/static/assets/fonts/atlas_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #111013;
  --ink: #f3e7cf;
  --muted: #bda983;
  --accent: #d6a84c;
  --accent-2: #9b6b16;
  --card: #151318;
  --border: #3b2a10;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --input-bg: #101015;
  --input-border: #4a3618;
  --link: #f0d9a2;
  --left-img: url("/static/assets/bg-statue-b.png");
  --right-img: url("/static/assets/bg-statue-b.png");
  --bg-image-opacity: 0.22;
  --bg-image-opacity-mobile: 0.18;
  --logo-mark-img: url("/static/assets/logo-mark-neg.png");
  --laurel-logo-img: url("/static/assets/laurel-icono.webp");
  --laurel-logo-fill: linear-gradient(145deg, #f9e8b0 0%, #d8a63e 50%, #8f6115 100%);
  --laurel-badge-shadow: drop-shadow(0 10px 16px rgba(214, 168, 76, 0.28));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 70px;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(200px, 22vw, 380px);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center top;
  opacity: var(--bg-image-opacity);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.9) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.9) 88%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: 0;
  background-image: var(--left-img);
}

body::after {
  right: 0;
  background-image: var(--right-img);
}
@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

@supports (height: 100svh) {
  body {
    min-height: 100svh;
  }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 18px 80px;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Atlas", serif;
  font-size: 38px;
  letter-spacing: 1.2px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

h2 {
  font-family: "Atlas", serif;
  margin: 0 0 16px;
  letter-spacing: 0.8px;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 10px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-statue {
  width: 42px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: var(--logo-mark-img) center/contain no-repeat;
  mask: var(--logo-mark-img) center/contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(214, 168, 76, 0.25));
}

.logo-wordmark {
  width: 240px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: url("/static/assets/logo-wordmark.png") center/contain no-repeat;
  mask: url("/static/assets/logo-wordmark.png") center/contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(214, 168, 76, 0.25));
}

.header-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.header-link:hover {
  text-decoration: underline;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

.theme-toggle:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  animation: rise 420ms ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(214, 168, 76, 0.35);
  border-radius: 14px;
  pointer-events: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.row:last-of-type {
  margin-bottom: 0;
}

label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.consent-row {
  grid-column: 1 / -1;
}

.consent-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
}

.consent-checkbox input {
  width: auto;
  margin: 0;
}

.consent-checkbox a {
  color: var(--link);
  text-decoration: underline;
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  font-size: 15px;
  background: var(--input-bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 168, 76, 0.2);
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1306;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(214, 168, 76, 0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(197, 155, 55, 0.4);
}

button.secondary {
  background: #2a2420;
  color: #e9dcc4;
  box-shadow: none;
}

.language-card h2 {
  text-align: center;
  margin-bottom: 52px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.lang-card {
  position: relative;
  padding: 36px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.9), rgba(14, 12, 10, 0.9));
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body[data-theme="light"] .lang-card {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(248, 242, 233, 0.95));
}

.lang-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.lang-flag-wrap {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.lang-flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.lang-title {
  font-family: "Atlas", serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.lang-sub {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-card h2 {
  margin-bottom: 18px;
}

.progress-block {
  margin-bottom: 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.progress-title {
  font-weight: 600;
}

.progress-count {
  text-align: right;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #1b1510;
  border: 1px solid #2b2116;
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.nominee-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: rgba(16, 14, 12, 0.9);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body[data-theme="light"] .nominee-card {
  background: rgba(255, 253, 249, 0.95);
}

.nominee-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nominee-poster {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 76, 0.25);
}

.nominee-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.nominee-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.nominee-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214, 168, 76, 0.25), 0 12px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.nominee-card:has(input:checked) .radio-dot {
  border-color: var(--accent);
}

.nominee-card:has(input:checked) .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.nominee-name {
  line-height: 1.2;
}

.error {
  color: #b00020;
  margin-top: 8px;
  font-weight: 600;
}

.summary {
  line-height: 1.6;
}

.rules-card h2 {
  text-align: center;
  margin-bottom: 14px;
}

.rules-grid {
  display: grid;
  gap: 14px;
}

.rules-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(18, 16, 22, 0.7);
}

body[data-theme="light"] .rules-block {
  background: rgba(255, 253, 249, 0.9);
}

.rules-block h3 {
  margin: 0 0 10px;
  font-family: "Atlas", serif;
  letter-spacing: 0.06em;
  font-size: 16px;
  color: var(--ink);
}

.rules-block ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.rules-block li {
  color: var(--ink);
  line-height: 1.5;
}

.laurel-logo {
  margin: 0 auto 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.laurel-logo-image {
  display: block;
  width: min(244px, 64vw);
  aspect-ratio: 1 / 1;
  background: var(--laurel-logo-fill);
  -webkit-mask: var(--laurel-logo-img) center / contain no-repeat;
  mask: var(--laurel-logo-img) center / contain no-repeat;
  filter: var(--laurel-badge-shadow);
}

.thank-card {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.thank-check {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
  color: #2a1e08;
  background: radial-gradient(circle at 28% 25%, #f7dd8d 0%, #d9a73e 52%, #a17015 100%);
  box-shadow: 0 16px 34px rgba(214, 168, 76, 0.38);
}

.thank-message {
  font-size: 20px;
  font-weight: 800;
}

.thank-submessage {
  font-size: 16px;
  font-weight: 600;
  max-width: 820px;
}

.thank-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1306;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(214, 168, 76, 0.35);
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(18, 16, 22, 0.75);
  margin-bottom: 16px;
}

body[data-theme="light"] .summary-card {
  background: rgba(255, 253, 249, 0.9);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #2b2116;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary-value {
  font-weight: 600;
  text-align: right;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(214, 168, 76, 0.35), rgba(214, 168, 76, 0.15));
  border-top: 1px solid rgba(214, 168, 76, 0.35);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.6;
}

.grecaptcha-badge {
  left: 16px !important;
  right: auto !important;
  transform: scale(0.85);
  transform-origin: left bottom;
  opacity: 0.85;
}

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

body[data-theme="light"] {
  --bg: #f8f5ef;
  --bg-2: #efe4d2;
  --ink: #1f1d18;
  --muted: #6b5f52;
  --accent: #c59b37;
  --accent-2: #916214;
  --card: #fffaf2;
  --border: #e5d7c3;
  --shadow: 0 12px 24px rgba(29, 27, 22, 0.12);
  --input-bg: #fffdf9;
  --input-border: #d7c9b6;
  --link: #4b3a1f;
  --left-img: url("/static/assets/bg-statue-w.png");
  --right-img: url("/static/assets/bg-statue-w.png");
  --bg-image-opacity: 0.2;
  --bg-image-opacity-mobile: 0.16;
  --logo-mark-img: url("/static/assets/logo-mark-pos.png");
  --laurel-logo-fill: linear-gradient(145deg, #ddb65b 0%, #be8f34 56%, #7a5516 100%);
  --laurel-badge-shadow: drop-shadow(0 8px 12px rgba(124, 89, 28, 0.22));
}

body[data-theme="light"] .site-footer {
  background: linear-gradient(90deg, rgba(210, 210, 210, 0.8), rgba(240, 240, 240, 0.7));
  border-top: 1px solid #d7c9b6;
  color: #3b2e1b;
}

@media (max-width: 1100px) {
  body {
    padding-bottom: 190px;
  }
  .header-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 4;
  }
}

@media (max-width: 820px) {
  .row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }
  label {
    margin-bottom: 10px;
  }
  .buttons {
    flex-direction: column;
  }
  button {
    width: 100%;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-header {
    align-items: center;
    text-align: center;
  }
  .brand {
    flex-direction: column;
    order: 2;
  }
  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    order: 1;
  }
  .header-actions {
    left: 12px;
    right: 12px;
  }
  .logo-lockup {
    width: 100%;
    justify-content: center;
    order: 0;
    margin-bottom: 4px;
  }
  .logo-mark {
    width: 52px;
    height: 52px;
  }
  .logo-wordmark {
    width: 200px;
    height: 34px;
  }
  body::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(320px, 68vw);
    top: 0;
    bottom: auto;
    height: 100vh;
    background-position: center;
    background-size: auto 100%;
    opacity: var(--bg-image-opacity-mobile);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 16%, rgba(0, 0, 0, 0.9) 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 16%, rgba(0, 0, 0, 0.9) 84%, transparent 100%);
  }
  body::after {
    display: none;
  }
  .language-grid {
    grid-template-columns: 1fr;
  }
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .summary-value {
    text-align: left;
  }
  .laurel-logo {
    transform: scale(0.9);
    transform-origin: center top;
  }
  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    flex-wrap: wrap;
    text-align: center;
    padding: 12px 14px;
    z-index: 3;
  }
  body.keyboard-open .site-footer,
  body.keyboard-open .header-actions {
    display: none;
  }
  body.keyboard-open {
    padding-bottom: 18px;
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    background-attachment: fixed, fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  button {
    transition: none;
  }
}
