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

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(1.5px 1.5px at 15px 25px, rgba(245,241,232,0.5), transparent),
    radial-gradient(1px 1px at 60px 60px, rgba(245,241,232,0.35), transparent),
    radial-gradient(1.5px 1.5px at 110px 30px, rgba(245,241,232,0.45), transparent),
    radial-gradient(1px 1px at 40px 90px, rgba(245,241,232,0.3), transparent),
    radial-gradient(1.5px 1.5px at 130px 110px, rgba(245,241,232,0.4), transparent),
    radial-gradient(1px 1px at 80px 140px, rgba(245,241,232,0.25), transparent),
    radial-gradient(1.5px 1.5px at 20px 150px, rgba(245,241,232,0.35), transparent),
    radial-gradient(ellipse at 15% 0%, rgba(178,34,52,0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(11,31,58,0.5) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, #142645 0%, #0B1420 55%, #08101A 100%);
  background-size: 160px 160px, 160px 160px, 160px 160px, 160px 160px, 160px 160px, 160px 160px, 160px 160px, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  color: #EDEBE2;
  min-height: 100vh;
}

::selection { background: #B22234; color: #fff; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
input:focus, select:focus {
  border-color: #B22234 !important;
  box-shadow: 0 0 0 3px rgba(178,34,52,0.12);
  outline: none;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.seal-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.star-ring { position: absolute; inset: -12px; }
.rstar { position: absolute; }
.seal {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(160deg, #F5F1E8, #DCD5BF);
  border: 1.5px solid #C9A227;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
  font-size: 14px;
}
.brand-name {
  display: block; font-family: 'Source Serif 4', serif; font-weight: 700;
  font-size: 17px; color: #F5F1E8;
}
.brand-tag {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: #8FA0C4;
}
.nav { display: flex; gap: 4px; }
.nav a, .nav button {
  background: none; border: none; color: #9AA8C4; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; text-decoration: none; display: inline-block;
}
.nav a.active { background: rgba(245,241,232,0.08); color: #F5F1E8; }

.tri-stripe { display: flex; width: 100%; height: 3px; }
.tri-stripe span { flex: 1; height: 100%; }

.main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px 32px; gap: 18px;
}

.trust-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(245,241,232,0.06); border: 1px solid rgba(245,241,232,0.12);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 4px;
  font-size: 12px; color: #C7CDDD;
}

.card {
  width: 100%; max-width: 480px;
  background: #F5F1E8; border: 1px solid #D9D0B8; border-top: 3px solid #B22234;
  border-radius: 10px; padding: 34px; color: #1A1F2E;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #B22234; font-weight: 600; margin-bottom: 6px;
}
.title {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 26px;
  color: #0B1F3A; margin-bottom: 10px;
}
.subtitle { font-size: 13.5px; color: #5A5240; line-height: 1.65; margin-bottom: 22px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }
.form-row > label { flex: 1; }
label {
  display: flex; flex-direction: column; gap: 6px; font-size: 12px;
  color: #3E3A2E; font-weight: 600;
}
input, select {
  background: #FFFFFF; border: 1px solid #D0C6A8; border-radius: 6px;
  padding: 10px 12px; color: #1A1F2E; font-size: 13.5px;
}

.primary-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #B22234; color: #fff; border: none; border-radius: 7px;
  padding: 12px 22px; font-weight: 600; font-size: 14px; margin-top: 4px;
  box-shadow: 0 4px 12px rgba(178,34,52,0.35);
}
.secondary-button {
  background: #0B1F3A; color: #F5F1E8; border: none; border-radius: 7px;
  padding: 9px 16px; font-size: 13px; font-weight: 500; margin-top: 14px;
  align-self: flex-start;
}

.confirm-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.confirm-badge {
  width: 52px; height: 52px; border-radius: 50%; background: #E4F1E8;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.confirm-title { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 20px; color: #0B1F3A; }

.error-text { color: #B22234; font-size: 12.5px; font-weight: 500; }
.error-banner {
  margin: 0 32px; background: #2A1416; border: 1px solid #5A2A2D; color: #E8AEB2;
  font-size: 13px; padding: 8px 12px; border-radius: 6px;
}

.panel-title { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 16px; color: #0B1F3A; margin-bottom: 12px; }
.muted-text { font-size: 13px; color: #7A7260; margin-bottom: 12px; }

.stats-row { display: flex; gap: 12px; width: 100%; max-width: 480px; }
.stat-card {
  flex: 1; background: rgba(245,241,232,0.06); border: 1px solid rgba(245,241,232,0.14);
  border-radius: 10px; padding: 14px 16px; text-align: center;
}
.stat-number { display: block; font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 24px; color: #F5F1E8; }
.stat-label { display: block; font-size: 11px; color: #9AA8C4; margin-top: 2px; }

.entry-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid #E4DCC4; font-size: 12.5px;
}
.entry-name { font-weight: 600; flex: 1; color: #1A1F2E; }
.entry-meta { color: #7A7260; flex: 1.4; }
.entry-time { color: #A39B85; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.entry-winner-form { flex-shrink: 0; }
.entry-winner-button {
  background: #0B1F3A; color: #F5F1E8; border: none; border-radius: 6px;
  padding: 6px 10px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.entry-winner-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 600; color: #1F7A45;
  white-space: nowrap;
}

.winner-name { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px; color: #0B1F3A; }
.winner-meta { color: #7A7260; font-size: 13px; margin-bottom: 14px; }
.token-box { background: #FFFFFF; border: 1px solid #D0C6A8; border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.token-label { font-size: 11.5px; color: #7A7260; display: block; margin-bottom: 8px; }
.token-row { display: flex; align-items: center; justify-content: space-between; }
.token-value { font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 600; letter-spacing: 2px; color: #0B1F3A; }
.copy-button {
  display: flex; align-items: center; gap: 5px; background: #0B1F3A; color: #F5F1E8;
  border: none; border-radius: 6px; padding: 6px 10px; font-size: 12px;
}
.claim-received { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #1F7A45; margin-top: 12px; font-weight: 500; }
.ship-line { font-size: 13.5px; margin: 2px 0; color: #1A1F2E; }

.prize-reveal {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(160deg, #FFFBEF, #F5EBC9);
  border: 1px solid #C9A227; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px;
}
.prize-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; color: #8A6D0E; font-weight: 600;
}
.prize-value { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px; color: #0B1F3A; }

.rep-contact {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #E4DCC4;
  display: flex; flex-direction: column; gap: 6px;
}
.rep-contact-title { font-size: 12.5px; font-weight: 700; color: #0B1F3A; }
.rep-contact-text { font-size: 12.5px; color: #5A5240; line-height: 1.6; }
.rep-contact-text a { color: #B22234; font-weight: 600; }

.footer { font-size: 11.5px; color: #5C6580; text-align: center; max-width: 460px; margin-top: 12px; line-height: 1.6; }

.loading-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  color: #8A93A6; font-family: 'IBM Plex Mono', monospace; font-size: 13px;
}

.about-card {
  width: 100%; max-width: 480px;
  background: rgba(245,241,232,0.05);
  border: 1px solid rgba(245,241,232,0.14);
  border-radius: 10px;
  padding: 22px 26px;
}
.about-title {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 16px;
  color: #F5F1E8; margin-bottom: 12px;
}
.about-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.about-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid rgba(245,241,232,0.1);
}
.about-row dt { font-size: 12px; color: #9AA8C4; font-weight: 500; }
.about-row dd { font-size: 12.5px; color: #E7E4D8; text-align: right; margin: 0; }
.privacy-note { font-size: 11.5px; color: #9AA8C4; line-height: 1.6; margin: 0; }
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.faq-item { display: flex; flex-direction: column; gap: 4px; }
.faq-q { font-size: 12.5px; font-weight: 600; color: #E7E4D8; margin: 0; }
.faq-a { font-size: 12px; color: #9AA8C4; line-height: 1.55; margin: 0; }

