@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1f2d;
  --blue: #07558f;
  --blue-dark: #063c68;
  --blue-pale: #dcecf5;
  --red: #d84335;
  --green: #179767;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --gold: #efb83c;
  --line: #0b1f2d24;
  --shadow: 0 24px 80px #062a461f;
  --font-geist-sans: 'Geist', Arial, sans-serif;
  --font-geist-mono: 'Geist Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans);
  margin: 0;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  z-index: 20;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 82px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: grid;
  position: absolute;
  top: 0; left: 0;
}
.site-header.solid { position: relative; background: #fff; }
.site-header .brand img { width: 150px; height: auto; }
.site-header nav { gap: 34px; font-size: 13px; font-weight: 650; display: flex; }
.site-header nav a { position: relative; }
.site-header nav a:after {
  content: ""; background: var(--red); width: 0; height: 2px;
  transition: all .25s; position: absolute; bottom: -8px; left: 0;
}
.site-header nav a:hover:after { width: 100%; }
.site-header > .button { justify-self: end; }

/* ---------- Buttons ---------- */
.button {
  background: var(--blue); color: #fff; cursor: pointer; border: 0; border-radius: 3px;
  justify-content: center; align-items: center; gap: 18px; min-height: 52px; padding: 0 23px;
  font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s;
  display: inline-flex; box-shadow: 0 10px 25px #07558f2e; font-size: 14px;
}
.button:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 30px #07558f40; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.button-red { background: var(--red); box-shadow: 0 10px 25px #d843352e; }
.button-red:hover { background: #b92f25; }
.text-button {
  cursor: pointer; border: 0; border-bottom: 1px solid var(--ink); background: none;
  padding: 12px 0; font-weight: 750; color: var(--ink); font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(110deg, #f9f4e9 0% 56%, #e8f0f0 56%, #dcecef 100%);
  grid-template-columns: 1.05fr .95fr; min-height: 760px;
  padding: 146px clamp(24px, 6.5vw, 104px) 110px; display: grid; position: relative;
  overflow: hidden;
}
.hero:before {
  content: ""; border: 1px solid #07558f2e; border-radius: 50%; width: 240px; height: 240px;
  position: absolute; top: 160px; left: -145px;
  box-shadow: 0 0 0 34px #07558f08, 0 0 0 68px #07558f06;
}
.hero-copy { z-index: 3; max-width: 720px; position: relative; }
.eyebrow, .section-kicker { color: var(--red); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 800; }
.eyebrow { align-items: center; gap: 10px; display: flex; }
.eyebrow span { background: var(--red); width: 35px; height: 2px; }
.hero h1 {
  letter-spacing: -.075em; text-transform: uppercase; margin: 37px 0 30px;
  font-size: clamp(46px, 7vw, 112px); font-weight: 900; line-height: .82;
}
.hero h1 em, .section-heading h2 em, .rules h2 em, .final-cta h2 em {
  color: var(--red); text-transform: none; letter-spacing: -.045em;
  font-family: Georgia, serif; font-weight: 500; font-style: italic;
}
.hero h1 em { font-size: .93em; }
.section-heading h2 em { color: var(--blue); }
.rules-title h2 em { color: var(--blue); }
.final-cta h2 em { color: var(--blue); }
.hero-lead { color: #425563; max-width: 590px; font-size: 18px; line-height: 1.65; }
.hero-actions { align-items: center; gap: 30px; margin: 37px 0 46px; display: flex; }
.hero-deadline { border-top: 1px solid var(--line); justify-content: space-between; align-items: flex-end; max-width: 620px; padding-top: 20px; display: flex; }
.hero-deadline > p { color: #5c6870; max-width: 155px; margin: 0; font-size: 12px; line-height: 1.6; }
.hero-deadline > p span { color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; display: block; }
.countdown { align-items: flex-start; display: flex; justify-content: space-between; }
.countdown-cell { text-align: center; min-width: 60px; position: relative; }
.countdown-cell strong { font-family: var(--font-geist-mono); letter-spacing: -.08em; font-size: 29px; display: block; }
.countdown-cell span { text-transform: uppercase; color: #72808a; letter-spacing: .12em; font-size: 9px; }
.countdown-cell i { color: #82909a; font-style: normal; position: absolute; top: 4px; right: -2px; }

.hero-art { min-height: 560px; position: relative; }
.sun-disc {
  aspect-ratio: 1; background: #f0c448; border-radius: 50%; width: min(36vw, 500px);
  position: absolute; top: 16px; right: -30px;
  box-shadow: inset 0 0 0 1px #784b0014, 0 28px 100px #cc970c3d;
}
.sound-line {
  z-index: 1; border: 2px solid #07558f2e; border-color: #07558f2e #07558f2e transparent transparent;
  border-radius: 50%; width: 110px; height: 110px; position: absolute; top: 160px; right: -58px;
  transform: rotate(45deg);
}
.sound-line-two { width: 150px; height: 150px; top: 140px; right: -78px; }
.mascot-crop { z-index: 2; width: min(42vw, 580px); height: 430px; position: absolute; top: -15px; right: -8px; overflow: hidden; }
.mascot-crop img { transform-origin: top; width: 100%; height: auto; position: absolute; top: 0; left: 0; transform: scale(1.03); }
.shout-pill {
  z-index: 4; border: 1px solid var(--ink); background: #fff; border-radius: 50%; padding: 19px 23px;
  font-family: Georgia, serif; font-size: 22px; font-style: italic; position: absolute; top: 42px; left: -13px;
  transform: rotate(-7deg); box-shadow: 8px 8px #07558f26;
}
.floating-tag {
  z-index: 4; background: var(--blue); color: #fff; text-transform: uppercase; letter-spacing: .14em;
  padding: 8px 12px; font-size: 9px; font-weight: 800; position: absolute; transform: rotate(5deg);
}
.tag-one { top: 210px; right: 40px; }
.tag-two { top: 260px; right: 100px; transform: rotate(-6deg); }
.hero-ticker {
  background: var(--blue); color: #fff; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
  justify-content: space-around; align-items: center; width: 100%; height: 54px; font-size: 10px; font-weight: 750;
  display: flex; position: absolute; bottom: 0; left: 0; overflow: hidden;
}
.hero-ticker i { color: var(--gold); }

/* ---------- Sections ---------- */
.section-pad { padding: 110px clamp(24px, 7vw, 112px); }
.section-heading { justify-content: space-between; align-items: flex-end; gap: 80px; margin-bottom: 58px; display: flex; }
.section-heading h2, .rules h2, .final-cta h2 {
  text-transform: uppercase; letter-spacing: -.06em; margin: 15px 0 0; font-size: clamp(36px, 5.2vw, 74px); line-height: .92;
}
.section-intro { color: #5c6870; max-width: 390px; font-size: 15px; line-height: 1.65; }
.section-intro strong { color: var(--ink); }
.light-heading .section-intro { color: #bacbd5; }
.light-heading .section-intro strong { color: #fff; }

/* ---------- Leaderboard / podium ---------- */
.leaderboard { background: var(--blue-dark); color: #fff; position: relative; }
.leaderboard .section-heading h2 { color: #fff; }
.podium { z-index: 1; justify-content: center; align-items: flex-end; gap: 18px; min-height: 350px; display: flex; position: relative; flex-wrap: wrap; }
.podium-place {
  text-align: center; background: #0b4a78; border: 1px solid #ffffff26; width: min(29%, 270px);
  min-height: 240px; padding: 32px 20px 23px; position: relative;
}
.podium-place.place-1 { min-height: 310px; color: var(--ink); background: #f7f1e4; order: 2; padding-top: 36px; }
.podium-place.place-2 { order: 1; }
.podium-place.place-3 { order: 3; }
.podium-rank {
  background: var(--gold); width: 38px; height: 38px; color: var(--ink); border-radius: 50%; place-items: center;
  font-weight: 900; display: grid; position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
}
.place-2 .podium-rank { background: #d4e3eb; }
.place-3 .podium-rank { background: #d28e62; }
.podium-place h3 { font-size: 17px; margin: 12px 0 3px; }
.podium-place p { color: #cfe0e9; font-size: 12px; font-style: italic; font-family: Georgia, serif; margin: 0 0 12px; }
.place-1 p { color: #556571; }
.podium-place > strong { font-size: 19px; }
.avatar {
  color: #fff; background: var(--blue); border-radius: 50%; flex: none; place-items: center; width: 48px; height: 48px;
  font-weight: 900; display: grid; position: relative; overflow: hidden; border: 5px solid #ffffffe6; margin: 0 auto 18px;
}
.avatar-large { width: 62px; height: 62px; font-size: 17px; }
.avatar-green { background: var(--green); }
.avatar-red { background: var(--red); }
.avatar-gold { background: #cf8d13; }
.score-legend {
  color: #bdd0db; text-transform: uppercase; letter-spacing: .08em; z-index: 1; border-top: 1px solid #ffffff26;
  justify-content: center; gap: 20px; padding-top: 22px; font-size: 11px; display: flex; flex-wrap: wrap; margin-top: 26px;
}
.dot { border-radius: 50%; width: 7px; height: 7px; margin-right: 5px; display: inline-block; }
.dot-blue { background: #6ab6e6; }
.dot-red { background: #ff7368; }
.score-legend span:last-child:before {
  content: ""; background: #42cf8c; border-radius: 50%; width: 7px; height: 7px; margin-right: 8px;
  display: inline-block; box-shadow: 0 0 0 4px #42cf8c1f;
}

/* ---------- Gallery / participant cards ---------- */
.gallery { background: var(--paper); }
.gallery-tools { justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; display: flex; flex-wrap: wrap; }
.search-box { border-bottom: 1px solid var(--line); align-items: center; gap: 12px; width: min(100%, 440px); display: flex; }
.search-box span { color: var(--blue); font-size: 20px; transform: rotate(-18deg); }
.search-box input { background: none; border: 0; outline: none; width: 100%; padding: 13px 0; font-size: 14px; }
.sort-box { text-transform: uppercase; letter-spacing: .1em; color: #66747e; align-items: center; gap: 12px; font-size: 11px; display: flex; }
.sort-box select { border: 1px solid var(--line); color: var(--ink); background: none; padding: 10px 12px; }
.participant-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; display: grid; }
.participant-card { border: 1px solid var(--line); background: #fff; min-width: 0; transition: transform .25s, box-shadow .25s; position: relative; }
.participant-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.participant-card-top { background: linear-gradient(145deg, #e7f0f3, #d8e6eb); place-items: center; height: 135px; display: grid; position: relative; overflow: hidden; }
.participant-card-top .avatar { z-index: 1; position: relative; }
.position { z-index: 2; font-family: var(--font-geist-mono); font-size: 13px; font-weight: 900; position: absolute; top: 12px; left: 13px; }
.share-icon { z-index: 2; border: 1px solid var(--line); cursor: pointer; background: #fffc; border-radius: 50%; width: 31px; height: 31px; position: absolute; top: 9px; right: 9px; }
.participant-content { padding: 22px; }
.participant-content h3 { margin: 0; font-size: 19px; }
.participant-content h4 { color: #64727b; min-height: 35px; margin: 5px 0 17px; font-family: Georgia, serif; font-style: italic; font-weight: 500; }
.area-label { letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 7px; font-size: 9px; font-weight: 800; }
.audio-control { border: 1px solid var(--line); cursor: pointer; background: #f8faf9; align-items: center; gap: 10px; width: 100%; height: 43px; padding: 5px 9px; display: flex; }
.play-disc { background: var(--blue); color: #fff; border-radius: 50%; place-items: center; width: 29px; height: 29px; font-size: 9px; display: grid; }
.waveform { flex: 1; align-items: center; gap: 2px; height: 25px; display: flex; }
.waveform i { background: #79a4bd; border-radius: 2px; width: 2px; display: block; }
.audio-time { font-size: 10px; font-family: var(--font-geist-mono); color: #6e7b83; }
.vote-total { border-bottom: 1px solid var(--line); grid-template-columns: auto 1fr; align-items: baseline; column-gap: 5px; padding: 17px 0 13px; display: grid; }
.vote-total > strong { color: var(--blue); font-size: 30px; }
.vote-total > span { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.vote-total div { color: #77838b; grid-column: 1 / -1; font-size: 10px; }
.category-mini { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 12px 0; display: grid; }
.category-mini span { color: #76838b; text-align: center; font-size: 8px; }
.category-mini b { color: var(--ink); font-size: 14px; display: block; }
.vote-button { width: 100%; min-height: 45px; font-size: 12px; margin-top: 6px; }
.card-share-row { grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; display: grid; }
.card-share-row button { color: var(--blue); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; background: none; border: 0; padding: 8px 2px 1px; font-size: 8px; font-weight: 850; }
.card-share-row button:first-child { color: var(--green); border-right: 1px solid var(--line); }
.leader-ribbon {
  z-index: 4; background: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .1em; padding: 6px 9px;
  font-size: 8px; font-weight: 900; position: absolute; top: 105px; left: -5px;
}
.preview-note { text-align: center; color: #75828a; margin-top: 24px; font-size: 11px; }

/* ---------- Categories ---------- */
.category-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; display: grid; }
.category-card { flex-direction: column; min-height: 285px; padding: 30px; display: flex; position: relative; overflow: hidden; color: #fff; }
.category-card:after {
  content: ""; border: 1px solid #ffffff1f; border-radius: 50%; width: 220px; height: 220px; position: absolute;
  top: -70px; right: -85px; box-shadow: 0 0 0 30px #ffffff06;
}
.category-card h3 { letter-spacing: -.04em; max-width: 250px; margin: 40px 0 12px; font-size: 25px; line-height: 1.05; }
.category-card p { color: #ffffffbf; max-width: 315px; font-size: 13px; line-height: 1.55; }
.category-card a { text-transform: uppercase; letter-spacing: .1em; border-top: 1px solid #fff3; justify-content: space-between; margin-top: auto; padding-top: 25px; font-size: 9px; font-weight: 800; display: flex; color: #fff; }
.category-blue { background: #0b5c96; }
.category-red { background: #bd3f34; }
.category-green { background: #137c59; }
.category-number { font-family: var(--font-geist-mono); opacity: .55; font-size: 12px; }
.category-spark { color: #ffd157; font-size: 30px; position: absolute; top: 26px; right: 28px; }

/* ---------- Steps ---------- */
.steps { background: var(--cream); }
.steps-grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); display: grid; }
.steps-grid article { border-right: 1px solid var(--line); padding: 35px 42px 42px; position: relative; }
.steps-grid article:last-child { border-right: 0; }
.steps-grid article > span { font-family: var(--font-geist-mono); color: var(--red); font-size: 11px; }
.step-icon { color: var(--blue); margin: 42px 0 16px; font-size: 29px; }
.steps-grid h3 { margin: 0 0 8px; font-size: 20px; }
.steps-grid p { color: #5c6870; font-size: 14px; line-height: 1.6; margin: 0; }
.center-action { text-align: center; margin-top: 36px; }

/* ---------- Rules ---------- */
.rules { background: #fff; }
.rules-layout { grid-template-columns: .8fr 1.2fr; gap: 100px; display: grid; }
.rules-title { position: relative; }
.rule-date { border-top: 1px solid var(--line); align-items: center; gap: 12px; max-width: 330px; margin-top: 45px; padding-top: 25px; display: flex; }
.rule-date strong { color: var(--red); letter-spacing: -.07em; font-size: 52px; }
.rule-date span { color: var(--red); font-size: 10px; font-weight: 850; line-height: 1.35; }
.rule-date p { border-left: 1px solid var(--line); color: #69767e; padding-left: 18px; font-size: 12px; margin: 0; }
.rules-list details { border-top: 1px solid var(--line); padding: 23px 0; }
.rules-list details:last-child { border-bottom: 1px solid var(--line); }
.rules-list summary { cursor: pointer; justify-content: space-between; gap: 20px; font-weight: 750; list-style: none; display: flex; }
.rules-list summary::-webkit-details-marker { display: none; }
.rules-list summary span { color: var(--blue); font-size: 20px; font-weight: 400; }
.rules-list p { color: #64727a; margin: 14px 40px 0 0; font-size: 13px; line-height: 1.65; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center; background: #e7eff0; flex-direction: column; justify-content: center; align-items: center;
  min-height: 510px; padding: 70px 30px; display: flex; position: relative;
}
.final-cta .button { margin: 30px 0 15px; }
.final-cta > p:last-child { color: #6c7b83; font-size: 11px; }
.final-mascot { width: 205px; height: 240px; position: absolute; bottom: -30px; left: 4vw; overflow: hidden; transform: rotate(-5deg); }
.final-mascot img { object-fit: cover; object-position: 50% 100%; width: 100%; height: 100%; }

/* ---------- Footer ---------- */
footer {
  color: #fff; background: #071b28; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px;
  min-height: 120px; padding: 30px clamp(24px, 6vw, 90px); display: grid;
}
footer img { width: 140px; height: auto; }
footer p { color: #9db0bd; font-size: 11px; text-align: center; margin: 0; }
footer div { color: #9db0bd; justify-self: end; gap: 20px; font-size: 10px; display: flex; }
footer div a:hover { color: #fff; }

/* ---------- Generic page shell (participar / admin) ---------- */
.page-hero { padding: 150px clamp(24px, 6vw, 90px) 60px; background: linear-gradient(110deg, #f9f4e9 0%, #e8f0f0 100%); }
.page-hero h1 { text-transform: uppercase; letter-spacing: -.06em; font-size: clamp(36px, 6vw, 64px); line-height: .95; margin: 10px 0; }
.page-hero p { color: #425563; font-size: 16px; max-width: 560px; }
.page-body { max-width: 620px; margin: 0 auto; padding: 60px clamp(20px, 5vw, 24px) 100px; }
.form-step { background: #fff; border: 1px solid var(--line); padding: 34px clamp(20px, 4vw, 44px); margin-bottom: 24px; }
.form-step h2 { text-transform: uppercase; letter-spacing: -.03em; font-size: 24px; margin: 0 0 22px; }
.form-step label { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #5c6870; margin: 16px 0 6px; }
.form-step label:first-of-type { margin-top: 0; }
.form-step input {
  width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 13px 14px; font-size: 15px;
  font-family: inherit; color: var(--ink);
}
.form-step input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.rec-controls { display: flex; gap: 10px; align-items: center; margin: 20px 0 10px; flex-wrap: wrap; }
.rec-timer { font-family: var(--font-geist-mono); font-size: 22px; color: var(--red); font-weight: 700; }
audio { width: 100%; }
.msg { padding: 12px 16px; margin: 16px 0 0; font-size: 14px; border-left: 3px solid; }
.msg.ok { background: #eafaf1; color: #0f6b3f; border-color: var(--green); }
.msg.err { background: #fdecea; color: #a3281c; border-color: var(--red); }

.admin-card {
  background: #fff; border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 14px;
}
.admin-card h3 { margin: 0 0 4px; font-size: 17px; }
.admin-card p { margin: 0 0 12px; color: #5c6870; font-size: 13px; }
.admin-actions { display: flex; gap: 10px; margin-top: 12px; }
.admin-actions button.reject { background: var(--red); }
.admin-actions button.reject:hover { background: #b92f25; }

/* ---------- Vote modal ---------- */
.vote-modal-backdrop {
  position: fixed; inset: 0; background: #0b1f2dcc; display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.vote-modal-backdrop.open { display: flex; }
.vote-modal { background: #fff; max-width: 380px; width: 100%; padding: 28px; position: relative; }
.vote-modal h3 { margin: 0 0 6px; font-size: 19px; text-transform: uppercase; letter-spacing: -.03em; }
.vote-modal p { color: #5c6870; font-size: 13px; margin: 0 0 16px; }
.vote-modal input { width: 100%; border: 1px solid var(--line); padding: 12px 14px; font-size: 15px; margin-bottom: 14px; font-family: inherit; }
.vote-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); min-height: auto; padding: 4px; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (width <= 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-art { min-height: 385px; margin-top: 25px; }
  .hero h1 { font-size: clamp(54px, 7vw, 78px); }
  .participant-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-layout { gap: 55px; }
  .category-grid { gap: 12px; }
}
@media (width <= 820px) {
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2, .rules h2, .final-cta h2 { font-size: 45px; }
  .section-pad { padding: 76px 20px; }
  .rules-layout { grid-template-columns: 1fr; gap: 45px; }
  .podium { gap: 7px; min-height: 310px; }
  .podium-place { width: 33.33%; min-height: 205px; padding: 25px 7px 17px; }
  .podium-place.place-1 { min-height: 270px; }
}
@media (width <= 780px) {
  .site-header { grid-template-columns: 1fr auto; height: 68px; padding: 0 18px; }
  .site-header nav { display: none; }
  .participant-grid, .category-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { border-right: 0; border-bottom: 1px solid var(--line); padding: 27px 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 28px 0; }
  .hero-deadline { flex-direction: column; align-items: flex-start; gap: 15px; }
  .hero-deadline > p { max-width: none; }
  footer { text-align: center; grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  footer div { justify-content: center; flex-wrap: wrap; justify-self: center; }
  .final-cta { min-height: 400px; padding-bottom: 140px; }
  .final-mascot { width: 170px; height: 200px; bottom: -20px; left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
