:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #5f6b66;
  --line: #dce4df;
  --brand: #137a49;
  --brand-dark: #0b5532;
  --accent: #80eaae;
  --accent-soft: #e8fbf0;
  --gold: #d99a18;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 40, 29, .09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, rgba(128,234,174,.18), transparent 34rem), var(--bg); line-height: 1.55; }
button, input, textarea { font: inherit; }
a { color: inherit; }
.site-header { padding: 22px clamp(18px, 5vw, 64px); border-bottom: 1px solid rgba(220,228,223,.8); background: rgba(255,255,255,.86); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: white; background: var(--brand); font-weight: 900; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(19,122,73,.24); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
footer { padding: 28px 18px 40px; text-align: center; color: var(--muted); font-size: .78rem; }
.eyebrow, .step { color: var(--brand); font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(2.35rem, 6vw, 5rem); letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
h2 { margin: 8px 0 10px; font-size: 1.42rem; letter-spacing: -.035em; line-height: 1.1; }
p { color: var(--muted); }
.card, .auth-card, .success-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card, .success-card { width: min(540px, 100%); margin: 8vh auto; padding: clamp(26px, 6vw, 50px); }
.auth-card h1, .success-card h1 { margin-top: 14px; font-size: clamp(2.2rem, 6vw, 4rem); }
.stack { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 8px; color: #27352f; font-size: .86rem; font-weight: 750; }
input, textarea { width: 100%; border: 1px solid #cbd6cf; border-radius: 11px; background: #fbfdfc; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
textarea { resize: vertical; min-height: 112px; }
input:focus, textarea:focus { border-color: var(--brand); background: white; box-shadow: 0 0 0 4px rgba(19,122,73,.12); }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 11px; background: var(--brand); color: white; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .16s, background .16s; }
button:hover, .button:hover { transform: translateY(-1px); background: var(--brand-dark); }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: #e7efe9; color: var(--brand-dark); }
.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 34px; align-items: center; margin-bottom: 42px; }
.hero p { max-width: 680px; font-size: 1.05rem; }
.goat-badge { justify-self: end; display: grid; place-items: center; width: 160px; height: 160px; color: #201707; background: #f4c85f; border: 1px solid #dca72d; border-radius: 50%; transform: rotate(5deg); box-shadow: 0 18px 40px rgba(217,154,24,.22); }
.goat-badge span { font-size: 2.3rem; font-weight: 950; letter-spacing: -.06em; }
.goat-badge small { margin-top: -34px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.nomination-form { display: grid; gap: 20px; }
.identity, .goat-card { padding: clamp(24px, 4vw, 38px); }
.identity label { max-width: 560px; }
.hint, .counter { color: var(--muted); font-size: .76rem; font-weight: 500; }
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.value-card { position: relative; padding: clamp(24px, 4vw, 34px); overflow: hidden; }
.value-card label { margin-top: 18px; }
.value-number { position: absolute; right: 20px; top: 14px; color: #edf3ef; font-size: 3.8rem; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.value-description { min-height: 52px; max-width: 85%; }
.counter { justify-self: end; margin-top: -4px; }
.goat-card { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); gap: 36px; align-items: end; border-color: #e5c26b; background: linear-gradient(135deg, #fff 65%, #fff8e5); }
.submit-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0 0; }
.submit-card p { margin-bottom: 0; }
.submit-card button { min-width: 220px; }
.alerts { position: relative; z-index: 2; display: grid; gap: 8px; margin-bottom: 20px; }
.alert { padding: 13px 16px; border-radius: 10px; border: 1px solid #efb9b5; color: #7a271a; background: #fff0ef; font-size: .88rem; font-weight: 650; }
.success-check { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); font-size: 2rem; font-weight: 900; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.admin-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.admin-head h1 { margin: 8px 0 10px; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.rankings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.ranking { padding: 20px; box-shadow: none; }
.ranking ol { list-style: none; padding: 0; margin: 14px 0 0; }
.ranking li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ranking li strong { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--brand-dark); }
.responses { padding: 26px; box-shadow: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .8rem; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.goat-cell { color: #8a5b00; font-weight: 850; }
.empty { padding: 24px 0; }
@media (max-width: 900px) {
  .rankings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page { padding-top: 34px; }
  .hero { grid-template-columns: 1fr; }
  .goat-badge { display: none; }
  .values-grid, .goat-card { grid-template-columns: 1fr; }
  .submit-card, .admin-head { align-items: stretch; flex-direction: column; }
  .submit-card button { width: 100%; }
  .rankings { grid-template-columns: 1fr; }
  .admin-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
