:root {
  --color-bg: #0d0d0f;
  --color-bg-card: #161618;
  --color-border: #2b2b2e;
  --color-text: #ece9e2;
  --color-text-muted: #a3a19c;
  --color-gold: #c8a24a;
  --color-gold-hover: #dab766;
  --color-red: #a5231f;
  --color-error: #e0655c;
  --color-success: #7fae7a;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.site-nav__link {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--color-text);
}

.site-nav__link.is-active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.site-nav__link.is-disabled {
  color: #4a4945;
  cursor: default;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, #1a1a1d 0%, var(--color-bg) 60%);
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero__kicker {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--color-text);
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(13px, 3vw, 15px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 10px 0 0;
  font-weight: 600;
}

.hero__rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
  margin: 20px auto 0;
}

.card {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form[hidden] {
  display: none;
}

.field-row {
  display: flex;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

label {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

input {
  background: #0f0f11;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease;
}

input::placeholder {
  color: #55534f;
}

input:focus {
  outline: none;
  border-color: var(--color-gold);
}

input:invalid.touched {
  border-color: var(--color-error);
}

.field__hint {
  margin: 0;
  font-size: 12px;
  color: #77756f;
  line-height: 1.4;
}

.btn {
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--color-gold);
  color: #16130a;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--color-gold-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- How to Participate ---- */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0f11;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.rules-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.rules-list a {
  color: var(--color-gold);
  text-decoration: none;
}

.rules-list a:hover {
  text-decoration: underline;
}

/* ---- Prizes ---- */

.prize-table-wrap {
  overflow-x: auto;
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
}

.prize-table th,
.prize-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.prize-table th {
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.prize-table td:last-child {
  color: var(--color-gold);
  font-weight: 600;
}

.prize-table tr:last-child td {
  border-bottom: none;
}

.prize-table__note {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 13px;
}

.prize-payout-note {
  margin: 22px 0 0;
  padding: 14px 18px;
  text-align: center;
  font-size: 14.5px;
  color: var(--color-text);
  background: #1c1a14;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
}

.prize-payout-note strong {
  color: var(--color-gold);
}

.form-message {
  min-height: 18px;
  margin: 0;
  font-size: 13.5px;
  text-align: center;
}

.form-message.error {
  color: var(--color-error);
}

.success-message {
  text-align: center;
  padding: 20px 10px 6px;
}

.success-message p {
  color: var(--color-success);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.footer {
  margin-top: 32px;
}

.footer p {
  color: #57554f;
  font-size: 12px;
  margin: 0;
}

@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
    gap: 18px;
  }

  .card {
    padding: 26px 20px;
  }
}

/* ---- Countdown & Vincitori (linktree-style) ---- */

.page--wide {
  max-width: 820px;
}

.giveaway-section {
  width: 100%;
}

.giveaway-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.g-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 12px 0;
}

.section-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.g-card {
  position: relative;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
}

.g-card--active {
  border-color: var(--color-gold);
  background: #1c1a14;
  box-shadow: 0 10px 24px rgba(200, 162, 74, 0.08);
}

.g-card--pending {
  border-color: #6d5b33;
  background: #1a1815;
}

.g-card--history {
  opacity: 0.92;
}

.g-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.g-badge--active {
  background: var(--color-gold);
  color: #16130a;
}

.g-badge--pending {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.g-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.g-card__title-row .g-card__title {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.g-clock {
  flex-shrink: 0;
  display: inline-block;
  background: #000;
  color: #2fd0ff;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  text-shadow: 0 0 3px rgba(47, 208, 255, 0.5);
  box-shadow: inset 0 0 4px rgba(47, 208, 255, 0.08);
}

.g-card__row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.g-card__thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #0f0f11;
}

.g-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.g-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}
